]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Fix definition of grub_efi_hard_drive_device_path. Take care that
[grub2.git] / ChangeLog
CommitLineData
6dc33377
VS
12013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Fix definition of grub_efi_hard_drive_device_path. Take care that
4 existing code would work even if by some reason bogus definition is
5 used by EFI implementations.
6
f2c6ff15
VS
72013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8
9 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
10
6b8a1625
VS
112013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12
13 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
14 invocation.
15
954c723a
VS
162013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * util/config.c: Remove trailing newline from distributor in simple
19 parsing.
20
607a39f9
VS
212013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
22
23 * include/grub/efi/api.h: Rename protocol and interface to avoid
24 conflict.
25
df6fedca
VS
262013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
27
28 * .gitignore: Add .exe variants. Add missing files. Remove few outdated
29 entries.
30
f684d7e1
VS
312013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
32
33 * grub-core/osdep/exec.c: Use unix version on cygwin.
34
0df77d79
VS
352013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
36
37 Implement multiboot2 EFI BS specification.
38
dafff9ce
VS
392013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
40
41 * grub-core/normal/charset.c: Fix premature line wrap and crash.
42 Crash happened only in some cases like a string starting at the
43 half of the screen of same length.
44
6644d973
VS
452013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
46
47 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
48 with EFI counterpart.
49
44bbfa33
VS
502013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
51
52 Propagate the EFI commits to x86-efi specific parts.
53
3e3dff24
VS
542013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
55
56 * grub-core/commands/efi/lssal.c: Fix terminating condition.
57
316dda71
VS
582013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
59
60 Introduce grub_efi_packed_guid and use it where alignment is not
61 guaranteed.
62
219401b8
VS
632013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
64
65 * include/grub/efi/api.h (grub_efi_device_path): Define length as
66 unaligned u16 rather than u8[2].
67
30d00537
VS
682013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
69
70 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
71 for relocation range.
72
979742bc
VS
732013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
74
75 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
76 non-function pcrel21b relocation. It happens with .text.unlikely
77 section.
78
16c8f785
LL
792013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
80
81 * make MAX_USABLE_ADDRESS platform-specific
82 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
83
3f1423e7
LL
842013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
85
86 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
87
dd73313c
JM
882013-12-09 Jon McCune <jonmccune@google.com>
89
90 * Add --no-rs-codes flag to optionally disable reed-solomon codes
91 in grub-install and grub-bios-setup for x86 BIOS targets.
92
eaf01c25
VS
932013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
94
95 Add missing compile and link options for sparc64-emu.
96
7a148da6
VS
972013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
98
99 Implement sparc64 trampolines (needed for sparc64-emu).
100
21eee750
VS
1012013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
102
103 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
104 range of R_SPARC_HI22.
105 Implement R_SPARC_LM22.
106
7b54b626
VS
1072013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
108
109 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
110 Do not explicitly check for symbol table as it's already checked in
111 platform-independent layer.
112
9a945e2a
VS
1132013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
114
115 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
116 on ia64 as __clear_cache is a dummy on ia64.
117
4f4ea1b4
VS
1182013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
119
120 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
121 Do not explicitly check for symbol table as it's already checked in
122 platform-independent layer.
123
fe4ae213
CW
1242013-12-09 Colin Watson <cjwatson@ubuntu.com>
125
126 * util/grub-mkconfig.in: Add missing newline to output.
127
78b2b0a1
VS
1282013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
129
130 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
131 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
132
d14772c4
VS
1332013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
134
135 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
136 compilation with GCC <= 4.2.
137 * grub-core/kern/emu/argp_common.c: Likewise.
138
388f3cd0
VS
1392013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
140
141 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
142 right platform rather than leaking to sparc64-emu.
143
11e4167a
VS
1442013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
145
146 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
147 But ensure that the variables in question are indeed unsigned.
148
fa7eb63d
VS
1492013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
150
151 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
152
50b3a68d
VS
1532013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
154
155 Remove grub_memalign on emu.
156
fbbfb6ab
VS
1572013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
158
159 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
160 truncate incomplete lines but instead flushes them.
161
a19293cb
VS
1622013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
163
164 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
165 and implement windows variant.
166
d5c14e1e
VS
1672013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
168
169 Fix mips-emu compilation.
170
b75db69a
VS
1712013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
172
173 * configure.ac: Check for freetype library usability.
174
c311ced5
VS
1752013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
176
177 Make arm-emu work.
178
c8fd2ddf
VS
1792013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
180
181 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
182
c50e5f45
AB
1832013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
184
185 * docs/grub.texi (Environment): Update color_normal and color_highlight
186 defaults (light-gray instead of white).
187
bb05e313
AB
1882013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
189
190 * grub-core/normal/main.c (INIT): Set default color to light-gray
191 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
192 and apparently BIOS defaults.
193
f23bc651
VS
1942013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
195
196 Transform -C option to grub-mkstandalone to --core-compress available
197 in all grub-install flavours.
198
4c4ea9c7
VS
1992013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
200
201 Merge GRUBFS and GRUB_FS variables.
202
92e9352d
AB
2032013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
204
205 Revert commit 69ca97c820, it caused failures when using OS device name
206 in grub-install. Instead just strip off parenthesis in grub-install
207 if (hdX) was passed.
208
f585c905
AB
2092013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
210
211 * util/grub-install.c (push_partmap_module): Add helper to convert
212 partmap names to module names and use it in probe_mods(). Fixes
213 failure to find partmap modules in diskfilter case.
214
5ff24907
VS
2152013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
216
217 * configure.ac: Make unifont mandatory on coreboot.
218
0277eab7
VS
2192013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
220
221 * configure.ac: Skip unifont 6.3 pcf and bdf.
222
4861b6c8
VS
2232013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
224
225 * Makefile.am: Remove partial font files if generation failed.
226
3100cdc7
AB
2272013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
228
229 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
230 strings.
231 * include/grub/util/misc.h: Define it ...
232 * util/grub-install.c (device_map_check_duplicates): ... and use it.
233
ad73cc33
AB
2342013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
235
236 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
237 ${grub_probe}.
238
41822625
VS
2392013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
240
241 Don't add -mlong-calls when compiling with clang.
242
896f483d
VS
2432013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
244
245 * configure.ac: Fix a typo.
246
8c534b85
VS
2472013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
248
249 Revamp relocation handling.
250
251 Move more code to common dl.c. Add missing veneers for arm and arm64.
252 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
253
a846dd4b
VS
2542013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
255
256 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
257
aa437b58
MG
2582013-12-05 Mike Gilbert <floppym@gentoo.org>
259
260 * INSTALL: Raise minimum python version to 2.6.
261 * gentpl.py: Use python3-style print function.
262
b0f311f4
VS
2632013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
264
265 * util/grub-install.c: Mention Boot* variable.
266
59b38922
CW
2672013-12-05 Colin Watson <cjwatson@ubuntu.com>
268
269 * grub-core/osdep/linux/hostdisk.c
270 (grub_util_find_partition_start_os): Initialise start to avoid
271 spurious compiler warning.
272
0480665b
CW
2732013-12-05 Colin Watson <cjwatson@ubuntu.com>
274
275 On Linux, read partition start offsets from sysfs if possible, to
276 cope with block device drivers that don't implement HDIO_GETGEO.
277 Fixes Ubuntu bug #1237519.
278
279 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
280 function.
281 (sysfs_partition_start): Likewise.
282 (grub_util_find_partition_start_os): Try sysfs_partition_start
283 before HDIO_GETGEO.
284
bbeee1c4
LL
2852013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
286
287 * grub-core/kern/fdt.c: Update struct size when adding node.
288
e5ed2f69
VS
2892013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
290
291 Handle unaligned .bss on sparc64.
292
293 Current code improperly assumes that both __bss_start and _end are
294 aligned to 8-bytes. Eliminating this assumption and explicitly align
295 modules.
296
4a73746a
VS
2972013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
298
299 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
300 so it doesn't land in the middle of loaded image.
301
382b500e
VS
3022013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
303
304 * configure.ac: Move all warning options that may be absent in
305 gcc >= 3.1 to optional.
306
307 Note: while this allows to compile with older GCC, official requirements
308 remain the same and no support for older GCC.
309
3a82f8bb
CW
3102013-12-04 Colin Watson <cjwatson@ubuntu.com>
311
312 Copying the themes directory in grub-shell isn't
313 parallel-test-friendly and breaks on the second test when the source
314 directory is read-only (as in "make distcheck"). Instead, add a
315 hidden --themes-directory option to grub-mkrescue et al, and use it
316 in grub-shell.
317
e3046431
VS
3182013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
321 as it's no longer necessarry.
322
bdb6090d
VS
3232013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
324
325 * configure.ac: Allow compilation with older GCC for ARM.
326
b73b70eb
VS
3272013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
328
329 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
330 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
331 ppc.
332
8a3f0a24
VS
3332013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
334
335 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
336
6f07c4e4
VS
3372013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
338
339 Pass font config to config.h and not by TARGET_CFLAGS as adding
340 arguments doesn't work if TARGET_CFLAGS is specified on command
341 line.
342
60d5e9cb
VS
3432013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
344
345 * configure.ac: Add -Wvla if compiler supports it.
346
cd15c394
VS
3472013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
348
349 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
350 Remove variable length arrays.
351 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
352
bb6e299c
VS
3532013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
354
355 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
356
85eb579a
VS
3572013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
358
359 * include/grub/types.h: Declare all byteswaps as inline functions
360 except compile-time ones.
361
362 Solves variable shadowing in constructions like
363 cpu_to_le (le_to_cpu(x) + 1).
364
47f88cc9
VS
3652013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/kern/efi/efi.c: Remove variable length arrays.
368
40b5739f
VS
3692013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
370
371 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
372 minutes.
373
234d9346
VS
3742013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
375
376 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
377 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
378
0c0eab52
CW
3792013-12-03 Colin Watson <cjwatson@ubuntu.com>
380
381 * grub-core/Makefile.core.def (setjmp): Distribute
382 lib/arm64/setjmp.S.
383
44d48847 3842013-12-03 Colin Watson <cjwatson@ubuntu.com>
8f236c14
CW
385
386 Add a new timeout_style environment variable and a corresponding
387 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
388 controls hidden-timeout handling more simply than the previous
389 arrangements, and pressing any hotkeys associated with menu entries
390 during the hidden timeout will now boot the corresponding menu entry
391 immediately.
392
393 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
394 generates a warning, and if it shows the menu it will do so as if
395 the second timeout were not present. Other combinations are
396 translated into reasonable equivalents.
397
10955cda
CW
398 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
399
9e4e6ddf
VS
4002013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
401
402 * util/config.c: Add missing pointer adjustment.
403 Reported by: qwertial
404
5037aa9a
AB
4052013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
406
407 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
408 directly, not via `cpu' link, to fix libgrub.pp generation.
409
8a952d20
VS
4102013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
411
412 New port arm64-efi.
413
be0d4555
AB
4142013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
415
416 * docs/grub.texi (sleep): Document exit codes.
417
d74b9a1d
VS
4182013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
419
420 Ensure that -mno-unaligned-access or some equivalent option is used.
421
35de6d4b
VS
4222013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
423
424 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
425 -march=armv3.
426
ce55ed03
VS
4272013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
428
429 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
430
8ddf84bf
CW
4312013-11-29 Colin Watson <cjwatson@ubuntu.com>
432
433 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
434 builds, since we don't have an EPS version of font_char_metrics.png.
435 Add leading dot to image extension per the Texinfo documentation.
436
fd0df6d0
CW
4372013-11-29 Colin Watson <cjwatson@ubuntu.com>
438
439 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
440 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
441 * util/grub-gen-widthspec.c: Likewise.
442 * util/grub-mkfont.c: Likewise.
443
69ca97c8
AB
4442013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
445
446 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
447 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
448 failed to install on (hdX).
449 * util/grub-setup.c (get_device_name): Remove, not needed after
450 above change.
451
eec893ae
VS
4522013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
453
454 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
455
621e167f
VS
4562013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
457
458 * util/grub-fstest.c: Remove variable length arrays.
459
d54f647a
VS
4602013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
461
462 * grub-core/osdep/linux/ofpath.c: Check return value of read.
463
c8a0f1b2
VS
4642013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
465
466 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
467 computing crc32 rather than handling with md fundtions directly.
468
726409a5
VS
4692013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
470
471 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
472 checking fwstart.img rather than md fundtions directly.
473
422e6e88
VS
4742013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
475
476 * util/grub-mkrescue.c (main): Check that fread succeeded.
477
af1faca3
VS
4782013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
479
480 * conf/Makefile.common: Remove -mexplicit-relocs and
481 -DUSE_ASCII_FALLBACK on yeeloong.
482
483 -DUSE_ASCII_FALLBACK is already added by font snippets.
484 -mexplicit-relocs isn't needed is compiler/assemblera are
485 configured properly.
486 If they're not we shouldn't attempt to fix it by ourselves.
487 Binary compare between before and after shows no difference.
488
469021b4
VS
4892013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
492 sources in dependencies directly.
493
494 This was the only instance of "library" in core config. A bug was
495 reported that -fno-stack-protector wasn't passed to it. Instead of
496 figuring out why it failed just remove this construction used
497 needlessly.
498
83c256ba
VS
4992013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
500
501 * grub-core/osdep/unix/password.c (grub_password_get): Check that
502 fgets succeeded.
503
b67422d3
FL
5042013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
505
506 * docs/grub.texi (ls): Fix command description in case of a device name
507 passed as argument.
508
2d76b4d8
VS
5092013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
510
511 Eliminate variable length arrays in grub_vsnprintf_real.
512
513 A bit tricky because this function has to continue to work without
514 heap for short strings. Fixing prealloc to 32 arguments is reasonable
515 but make all stack references use 32-bit offset rather than 8-bit one.
516 So split va_args preparsing to separate function and put the prealloc
517 into the caller.
518
4f954122
VS
5192013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
520
521 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
522 Fixes build for windows.
523
b1f742c1
VS
5242013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
525
526 * gentpl.py: Don't generate platform-dependent conditionals for
527 platform-independent targets.
528
16ef26fd
CW
5292013-11-27 Colin Watson <cjwatson@ubuntu.com>
530
531 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
532 references to mdadm from otherwise generic code.
533 (grub_util_exec_pipe): Likewise.
534 (grub_util_exec_pipe_stderr): Likewise.
535 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
536 This function calls vgs, not mdadm; adjust variable names
537 accordingly.
538
cf8c80ff 5392013-11-27 Colin Watson <cjwatson@ubuntu.com>
ab4f1501
CW
540
541 Generate Makefile.*.am directly from gentpl.py, eliminating the use
542 of Autogen. The Autogen definitions files remain intact as they
543 offer a useful abstraction.
544
5c7206e4
CW
5452013-11-27 Colin Watson <cjwatson@ubuntu.com>
546
547 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
548 into no-ops, and use it in programs that copy files but do not need
549 to take special care to sync writes (grub-mknetdir, grub-rescue,
550 grub-mkstandalone).
551
fc3f2b72
CW
5522013-11-26 Colin Watson <cjwatson@ubuntu.com>
553
554 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
555 than hardcoding /usr/local/bin/xorriso.
556
1e4b3587
VS
5572013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
558
559 Add PCI command activation to all PCI drivers as required for coreboot
560 and maybe some other firmwares.
561
9208367d
VS
5622013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
563
564 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
565 and non-Apple variants of efiemu compile.
566
67b9b7af
AB
5672013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
568
569 * configure.ac: Add explicit check for linking format of
570 efiemu64; save it as EFIEMU64_LINK_FORMAT.
571 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
572 hardcoding linking format.
573
bee1b5ce
VS
5742013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
575
576 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
577 and not pkgdatadir.
578
07e3b047
CW
5792013-11-25 Colin Watson <cjwatson@ubuntu.com>
5802013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
581
582 Add a --locale-directory option to grub-install and related tools.
583
584 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
585 --locale-directory option.
586 (enum grub_install_options): Add
587 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
588 * util/grub-install-common.c (grub_install_help_filter): Handle
589 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
590 (grub_install_parse): Likewise.
591 (get_localedir): New function to check for a user-provided option
592 before trying grub_util_get_localedir.
593 (copy_locales): Use get_localedir rather than
594 grub_util_get_localedir. Handle differing locale directory layouts.
595 (grub_install_copy_files): Likewise.
596
61e1b9a4
VS
5972013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
598
599 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
600 Don't rely on PATH_MAX.
601
c98dd165
VS
6022013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
603
604 * grub-core/genmoddep.awk: Use more portable && rather than and.
605
ff1c277e
VS
6062013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
607
608 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
609 an object after data. While it doesn't seem right solution, it
610 works well enough and OSX isn't main compilation platform.
611
c8f7614b
VS
6122013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
613
614 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
615 While it doesn't seem right solution, it works well enough and
616 OSX isn't main compilation platform.
617
246a434f
VS
6182013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
619
620 * configure.ac: Add -static to LDFLAGS when using apple linker to
621 prevent it from pulling in dynamic linker.
622
5c066a81
VS
6232013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
624
625 Apple assembly doesn't handle symbol arithmetic well. So define an
626 offset symbol in boot.S and use it.
627
78f961ef
VS
6282013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
629
630 Apple assembly doesn't handle symbol arithmetic well. So instead
631 of getting addres of kernel_sector + 4 define kernel_sector_high.
632 It also makes code more readable.
633
09bc0a57
VS
6342013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
635
636 With Apple assembly in .macro environvemnt you have to use $$ instead
637 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
638 to $$x on Apple and to $x on everything else.
639
b700a427
VS
6402013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
643 OBJCONV.
644
4480b95d
VS
6452013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
646
647 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
648 and non-Apple. This instruction is shorter and faster,
649 so no reason not to use it on both.
650
e77c81f6
VS
6512013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
652
653 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
654 .text when compiling for Apple.
655
971dbee5
VS
6562013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * grub-core/term/arc/console.c: Add missing cast to silence warning.
659
6f2e82be
VS
6602013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
661
662 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
663 %dx restore the probe worked on non-existant drive. Reorganize the
664 code a little bit to free 2 bytes necessary for push/pop.
665
9eec9699
VS
6662013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
669 Add missing cast to silence warning.
670
5ae5c54c
KPA
6712013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
672
673 * util/grub-install.c (update_nvram): Support --no-nvram flag
674 for EFI targets.
675
7b04fe6c
VS
6762013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
677
678 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
679
e67566ce
VS
6802013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * util/garbage-gen.c: Add missing include of sys/time.h.
683
f93ddcfd
VS
6842013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
685
686 Don't add -mflush-func if it's not supported by compiler.
687
1bba40f5
VS
6882013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
689
690 Move common BIOS/coreboot memory map declarations to
691 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
692
f65e14dc
AB
6932013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
694
695 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
696
14a94bba
VS
6972013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
698
699 * INSTALL: Document why older clang versions aren't appropriate.
700
8109c5d4
VS
7012013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
702
703 * INSTALL: Document about clang for mips.
704
a92b5cb8
VS
7052013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
706
707 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
708 clang.
709
4a23e2fe
VS
7102013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
711
712 Add *-xen to the list of grub-install-common platforms.
713
a3ba7410
VS
7142013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
715
716 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
717 3 last commits.
718
e1c22419
VS
7192013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
720
721 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
722
189090ce
VS
7232013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
724
725 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
726 with -mcmodel=large.
727
1a5b7b40
VS
7282013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
729
730 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
731 range-checking for 32-bit quantities.
732
9cf12b20
VS
7332013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
734
735 * configure.ac: Compile with -fPIC when compiling with clang on
736 mips.
737
63a45330
VS
7382013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
739
740 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
741 when compiling with clang.
742
4a0aaad0
VS
7432013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
744
745 clang emits calls to abort () under some unknown conditions.
746 Export abort () when compiling with clang.
747
095bb1bf
VS
7482013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
749
750 * docs/grub-dev.texi: Document stack and heap sizes.
751
3937bd96
VS
7522013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
753
754 * include/grub/i386/pc/memory.h: Decrease
755 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
756 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
757 The binary doesn't change (checked). It's more to better reflect actual
758 usage.
759
ddb3efc9
VS
7602013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
761
762 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
763 at compile time that enough of scratch size is available.
764
4e42521d
VS
7652013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
768 Previously we misaligned stack by 8 in startup.S and compensated
769 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
770 right behaviour is to align stack in startup.S and keep it aligned
771 in callwrap.S. startup.S part was committed few commits before. This
772 takes care of callwrap.S.
773 Reported by: Gary Lin.
774
054efe54
VS
7752013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
776
777 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
778 .data and .bss. May happen if compiler and assembly use different
779 alignment.
780
a0e1befb
VS
7812013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
782
783 On MIPS handle got16 relocations to local symbols in an ABI-compliant
784 way.
785
c36c73f6
VS
7862013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
787
788 Add support for a new magic symbol _gp_disp on mips to handle PIC
789 binaries.
790
6f4a19f5
VS
7912013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
792
793 Use $t9 for indirect calls from asm to C as PIC ABI requires.
794
0d8f04cd
VS
7952013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
796
797 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
798 when rest of GRUB is compiled for hisher stepping. Instead use
799 .set mips3/.set mips1 around cache and sync opcodes.
800
49060520
VS
8012013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
802
803 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
804 do essentially the same thing, do it in similar way.
805
c6a823e2
CW
8062013-11-21 Colin Watson <cjwatson@ubuntu.com>
807
808 * util/grub-mkrescue.c (main): If a source directory is not
809 specified, read platform-specific files from subdirectories of
810 pkglibdir, not pkgdatadir.
811
b7f9aedf
CW
8122013-11-21 Colin Watson <cjwatson@ubuntu.com>
813
814 * grub-core/normal/progress.c: Remove unused file.
815
7dd0a303
VS
8162013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
817
818 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
819 array.
820
ca120e31
VS
8212013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
822
823 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
824 than grub.cfg.
825
48eb35cd
VS
8262013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
827
828 * coreboot.cfg: Add missing file.
829
7f20dbbc
VS
8302013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
831
832 * Makefile.am: Allow STRIP to be empty when creating windowszip.
833
55e706c9
AK
8342013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
835
836 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
837 selectively skipping systems.
838
4e7d433d
CW
8392013-11-19 Colin Watson <cjwatson@ubuntu.com>
840
841 * Makefile.util.def (grub-mkimage): Add
842 grub-core/osdep/aros/config.c to extra_dist.
843 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
844 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
845 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
846 grub-core/gnulib-no-gets.diff.
847
7d44ff7d
VS
8482013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
849
850 Add automated filesystem checking based on scripts I've used now for
851 quite some time locally. Most of the test require root so they are
852 skipped when run without necessarry privelegies.
853
a8c3e5e3
CW
8542013-11-19 Colin Watson <cjwatson@ubuntu.com>
855
856 * util/grub-install.c (main): Adjust info messages to match
857 installed paths of grub-bios-setup and grub-sparc64-setup.
858
4402db3e
CW
8592013-11-19 Colin Watson <cjwatson@ubuntu.com>
860
861 * util/grub-install-common.c (copy_locales): Consistently use
862 grub_util_get_localedir () rather than LOCALEDIR.
863 (grub_install_copy_files): Likewise.
864
7960d3e1
JT
8652013-11-19 Josh Triplett <josh@joshtriplett.org>
866
867 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
868 16-byte boundary, as required by the x86-64 ABI, before calling
869 grub_main. In some cases, GCC emits code that assumes this
870 alignment, which crashes if not aligned. The EFI firmware is also
871 entitled to assume that stack alignment without checking.
872
d53f4900
JT
8732013-11-18 Josh Triplett <josh@joshtriplett.org>
874
875 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
876 4k page boundaries as expected by firmware rather than 1k
877 boundaries.
878 (grub_mmap_malign_and_register): Likewise.
879
bb2b275b
VS
8802013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
881
882 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
883 fragmentation 512M is enough.
884
45bf8b3a
VS
8852013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
888 pointer to 32K. This is the size of cache element which is the most
889 common allocation >1K. This way the pointer is always around blocks
890 of 32K and so we keep performance while decreasing fragmentation.
891
39ff43c5
VS
8922013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
895 current memory when allocating large chunks. This significantly
896 decreases memory fragmentation.
897
60870be8
CW
8982013-11-18 Colin Watson <cjwatson@ubuntu.com>
899
900 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
901 but for symmetry).
902 * tests/lzocompress_test.in: Skip if lzop is not installed.
903 * tests/xzcompress_test.in: Skip if xz is not installed.
904
a1f00cc5
CW
9052013-11-18 Colin Watson <cjwatson@ubuntu.com>
906
907 * util/grub-mkrescue.c (main): Fix typo.
908
74e632fe
VS
9092013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
910
911 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
912 clock frequency to 200 MHz,
913
efb8de49
VS
9142013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
915
916 * tests/util/grub-shell.in: Increase console size to 1024x1024.
917
b7526e78
VS
9182013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
919
920 * Makefile.am (default_payload.elf): Add pata to loaded modules.
921 Load config file from (cbfsdisk)/etc/grub.cfg.
922
b40ce651
VS
9232013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
924
925 * util/grub-install-common.c (grub_install_copy_files): Fix module
926 destination directory.
927
1e8e2e78
CW
9282013-11-18 Colin Watson <cjwatson@ubuntu.com>
929
930 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
931 files have not been built.
932
3bf4088b
CW
9332013-11-18 Colin Watson <cjwatson@ubuntu.com>
934
935 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
936 Handle errors from mkstemp.
937 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
938
35c2851c
VS
9392013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
940
941 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
942 on primary master on pseries.
943
ea7c1a7d
VS
9442013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
947 already loaded. This saves memory needed for tests,
948
96adefdb
VS
9492013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
952 work again.
953
5e3cb8a7
VS
9542013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
957 work again.
958
256ee7ac
VS
9592013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
960
961 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
962 master since with some combinations of qemu and firmware only primary
963 IDE channel is available.
964
f8b4c3b6
VS
9652013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
966
967 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
968 low-memory platforms where we don't have enough memory for them.
969 * grub-core/tests/videotest_checksum.c: Likewise.
970
4bf70320
VS
9712013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
972
973 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
974 already loaded. This saves memory needed for tests,
975
a284320e
VS
9762013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
977
978 Fix handling of install lists.
979
2df8f43d
VS
9802013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
981
982 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
983
6f1bc8bc
VS
9842013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
985
986 On i386-ieee1275 we run in paged mode. So we need to explicitly map
987 the devices before accessing them.
988
04f39f6d
VS
9892013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
990
991 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
992 as file argument.
993
35d4761c
VS
9942013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
995
996 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
997
33d02a42
VS
9982013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
1001 (grub_file_close): Free file->name.
1002
7bbb60cf
VS
10032013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 * grub-core/commands/verify.c (free_pk): Plug memory leak.
1006 (grub_load_public_key): Likewise.
1007 (grub_verify_signature_real): Likewise.
1008 (grub_cmd_verify_signature): Likewise.
1009
da93d675
VS
10102013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1011
1012 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
1013 memory leak.
1014
59c943ec
VS
10152013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1016
1017 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
1018 (grub_longjmp): Restore r31.
1019 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
1020
4336b5d8
VS
10212013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
1024 modules to be in line with make_image_abs.
1025
44ce3a93
VS
10262013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
1029
1030 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
1031
7d400406
IC
10322013-11-17 Ian Campbell <ijc@hellion.org.uk>
1033
1034 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
1035
77dae919
VS
10362013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
1039 to leave some memory to firmware.
1040
0ab8e025
VS
10412013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1042
1043 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
1044 of loading gfxterm as gfxterm is embed in kernel on some platforms.
1045 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
1046 Load gfxmenu.
1047
b80c2d6d
VS
10482013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
1051 now needs full arguments.
1052
6aa6077b
VS
10532013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1054
1055 * util/grub-mkrescue.c (main): Add trailing \n in
1056 .disk_label.contentDetails to be in line with previous shell script.
1057
66c00cb1
VS
10582013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
1061
3a129dba
VS
10622013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * util/grub-install-common.c (grub_install_parse): Recognize
1065 --compress=none like shell script did.
1066
8df6eff6
VS
10672013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 * include/grub/misc.h: Replace check for __sparc64__ with one for
1070 __sparc__ as __sparc64__ isn't actually defined.
1071
889ebe92
VS
10722013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
1075 counterpart of fixing the naming of escc ports.
1076
d4d55b29
VS
10772013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
1078
1079 * util/grub-install-common.c (platforms): Fix the order of entries and
1080 remove useless field val.
1081
55e2c84f
VS
10822013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 * util/grub-install.c: Add new option --no-bootsector to skip
1085 installing of bootsector. Accept --grub-setup=/bin/true as
1086 backwards-compatible synonym.
1087
cd46aa6c
VS
10882013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1089
1090 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
1091 order of qsort arguments (number of elements vs. element size).
1092
10932013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1094
1095 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
1096 the function of these files exceeds what can be sanely handled in shell
1097 in posix-comaptible way. Also writing it in C extends the functionality
1098 to non-UNIX-like OS and minimal environments.
1099
9ef81064
VS
11002013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
1103 compiling to thumb2.
1104 * grub-core/kern/arm/cache_armv7.S: Likewise.
1105 * grub-core/lib/arm/setjmp.S: Likewise.
1106
11a77932
LL
11072013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1108
1109 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
1110 in grub_uboot_syscall
1111
080603f0
VS
11122013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1113
1114 Decrease stack usage in lexer.
1115
1116 We have only 92K of stack and using over 4K per frame is wasteful
1117
1118 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
1119 as macros so that compiler would remove useless structure on stack.
1120 Better solution would be to fix flex not to put this structure on
1121 the stack but flex is external program.
1122
4f84ae0e
VS
11232013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 Decrease stack usage in signature verification.
1126
1127 We have only 92K of stack and using over 4K per frame is wasteful
1128
1129 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
1130 rather than stack.
1131 (grub_verify_signature_real): Likewise.
1132
e6a6182d
VS
11332013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1134
1135 Decrease stack usage in mdraid 0.9x.
1136
1137 We have only 92K of stack and using over 4K per frame is wasteful
1138
1139 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
1140 rather than stack.
1141
1a454efe
VS
11422013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 Decrease stack usage in BtrFS.
1145
1146 We have only 92K of stack and using over 4K per frame is wasteful
1147
1148 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
1149 rather than stack.
1150
7b5d51d8
VS
11512013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 Decrease stack usage in JFS.
1154
1155 We have only 92K of stack and using over 4K per frame is wasteful
1156
1157 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
1158 stack. Note: this function is recursive.
1159 (grub_jfs_read_inode): Read only part we care about.
1160
593865b9
LL
11612013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
1162
1163 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
1164 handling
7b5d51d8 1165
31c0cd43
AB
11662013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1167
1168 * configure.ac: Restore -nostdlib for libgcc symbols tests.
1169
c2fdb331
AB
11702013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1171
1172 * docs/grub.texi (Environment): Document cmdpath.
1173
9e18dfe2
AB
11742013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
1175
1176 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
1177 Remove "unused" attribute from arguments, they are used.
1178
59ba9d14
CW
11792013-11-15 Colin Watson <cjwatson@debian.org>
1180
1181 * .gitignore: Only ignore grub-mk* at the top level.
1182
23012db9
CW
11832013-11-15 Colin Watson <cjwatson@ubuntu.com>
1184
1185 * util/grub-reboot.in (usage): Fix a typo.
1186
6fcec439
VS
11872013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 Replace libgcc version of ctz with our own.
1190
1191 On upcoming arm64 port libgcc ctz* are not usable in standalone
1192 environment. Since we need ctz* for this case and implementation is
1193 in C we may as well use it on all concerned platforms.
1194
a9f25a08
VS
11952013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1196
1197 * configure.ac: Probe for linking format rather than guessing it based
1198 on target_os.
1199
c7995256
VS
12002013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
1203 "1" prior to handoff.
1204
1205 Reported by: M A Young.
1206
e1aa5b66
VS
12072013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
1210 \0 to all files.
1211
1212 Reported by: M A Young.
1213
da5ed5cf
VS
12142013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
1217 compilation on NetBSD.
1218
5757a93e
VS
12192013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 * acinclude.m4: Don't add -P on initial nm test.
1222
1223 Note: even though this patch postdates Andrey's it bears 14 Nov as
1224 date due to timezone difference.
1225
a5986276
AB
12262013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
1227
1228 * grub-core/Makefile.core.def (signature_test): Add missing
1229 tests/signatures.h.
1230
0de172a0
CW
12312013-11-14 Colin Watson <cjwatson@ubuntu.com>
1232
1233 * util/grub-install_header: Set localedir here, since this file is
1234 where it's used.
1235 * util/grub-install.in: Remove setting of localedir.
1236 * util/grub-mkrescue.in: Likewise.
1237
da45f43c
VS
12382013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1239
1240 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
1241
20aea949
VS
12422013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 * configure.ac: Move nm checks to the end.
1245 Call grub_PROG_NM_WORKS.
1246 * acinclude.m4: New check grub_PROG_NM_WORKS.
1247 Use $TARGET_CFLAGS -c when compiling test binary.
1248
1326b9ae
CW
12492013-11-14 Colin Watson <cjwatson@ubuntu.com>
1250
1251 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
1252 unused variables.
1253
1fe26ab4
MG
12542013-11-14 Matthew Garrett <mjg@redhat.com>
1255
1256 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
1257 cmdpath to firmware directory.
1258
83e9c273
VS
12592013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
1262 at the start of second iteration.
1263
ec525c18
VS
12642013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
1267
93fcc7ad
VS
12682013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * Makefile.am (default_payload.elf): New target for easier coreboot
1271 build.
1272
57ffe934
VS
12732013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
1276 clang (not necessarry with -no-integrated-as).
1277 * include/grub/symbol.h [__arm__]: Likewise.
1278
2312f06c
VS
12792013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 * configure.ac: Use -no-integrated-as on arm with clang.
1282 * INSTALL: Mention ARM compilation with clang.
1283
2416415c
VS
12842013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1285
1286 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
1287 -mthumb-interwork.
1288
5da55172
CW
12892013-11-14 Colin Watson <cjwatson@ubuntu.com>
1290
1291 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
1292 code for indirect block handling.
1293
1294 Saves 185 bytes on compressed image.
1295
da770328
PFS
12962013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1297
1298 Fix make clean.
1299
1300 * Makefile.am: Remove build-grub-* in make clean.
1301
f02e6b56
PFS
13022013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1303
1304 New files to gitignore.
1305
1306 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
1307 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
1308
035a26c1
LL
13092013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
1310
1311 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
1312
bc8a6137
LL
13132013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
1314
1315 * .gitignore: fix rules for .dep* and add *.a post git migration
1316
6fe506b0
CW
13172013-11-13 Colin Watson <cjwatson@ubuntu.com>
1318
1319 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
1320 to match INSTALL.
1321
81a2e438
CW
13222013-11-13 Colin Watson <cjwatson@ubuntu.com>
1323
1324 * grub-core/kern/misc.c: Don't redirect divisions in the
1325 GRUB_UTIL case.
1326 * include/grub/misc.h: Likewise.
1327
9b45c073
CW
13282013-11-13 Colin Watson <cjwatson@ubuntu.com>
1329
1330 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
1331 systems that require checking the return value of write.
1332
11b2a9b7
CW
13332013-11-13 Colin Watson <cjwatson@ubuntu.com>
1334
1335 * util/grub-install.in (efi_quiet): Fix inverted logic: make
1336 efibootmgr quiet when --debug is not used, rather than when it is.
1337
d743d22d
CW
13382013-11-13 Colin Watson <cjwatson@ubuntu.com>
1339
1340 * gentpl.py (define_macro_for_platform_dependencies): Remove
1341 first (and thus unused) of two definitions for this function.
1342 (platform_dependencies): Likewise.
1343
11da14b5
CW
13442013-11-13 Colin Watson <cjwatson@ubuntu.com>
1345
1346 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
1347 functions, we only need to check this for the target, not the host.
1348 * configure.ac (grub_apple_cc): Likewise.
1349
2bdd0719
VS
13502013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1351
1352 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
1353 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
1354 asm to stay in arm even if surrounding is thumb.
1355
5e77d9cf
VS
13562013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1357
1358 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
1359 helper functions are needed for thumb.
1360
7d511625
VS
13612013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
1364 level / 3 division explicitly unsigned. Saves few bytes.
1365
81023dbd
VS
13662013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1367
1368 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
1369
b2e9294f
VS
13702013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1371
1372 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
1373 division.
1374
16a22c38
VS
13752013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
1378 grub_uboot_boot_data to asm part.
1379
c9cd02c9
VS
13802013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
1383 literal load.
1384 (grub_uboot_syscall): Save/restore r9 and align stack.
1385
81498615
VS
13862013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
1389
ea57de18
VS
13902013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
1393 occurencies with END.
1394
d0d1e3da
CW
13952013-11-13 Colin Watson <cjwatson@ubuntu.com>
1396
1397 * util/grub-editenv.c (help_filter, argp): Document how to delete
1398 the whole environment block.
1399 Reported by Dan Jacobson. Fixes Debian bug #726265.
1400
3809f016
CW
14012013-11-13 Colin Watson <cjwatson@ubuntu.com>
1402
1403 * docs/grub.texi (Internationalisation, Supported kernels): Fix
1404 sectioning.
1405
46d8a203
JT
14062013-11-13 Josh Triplett <josh@joshtriplett.org>
1407
1408 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
1409 increment/decrement.
1410
513eeb61
VS
14112013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
1414 compiling with clang.
1415
bc379c1a
VS
14162013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1417
1418 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
1419 ".".
1420
14212013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
286551b4 1422
16057d6b
VS
1423 Redirect all divisions to grub_divmod64.
1424
f649a6a8
VS
14252013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1426
1427 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
1428
ef28ee8b
VS
14292013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 Add missing includes of loader.h.
1432
300f48c5
VS
14332013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1434
1435 * configure.ac: Allow disabling themes.
1436
2d357558
LS
14372013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
1438
1439 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
1440
0c62a5b2
VS
14412013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1442
1443 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
1444 until it becomes operational.
1445
b0720b49
VS
14462013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 * grub-core/Makefile.core.def (legacy_password_test): Disable
1449 on platforms where no legacycfg is compiled.
1450 * grub-core/tests/lib/functional_test.c: Tolerate failure to
1451 load legacy_password_test.
1452
d5bab2c0
VS
14532013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1454
1455 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
1456
3ea0ccb3
VS
14572013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1458
1459 * grub-core/efiemu/prepare.c: Remove variable length arrays.
1460
08772054
VS
14612013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1462
1463 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
1464 strict-aliasing warning.
1465 (fsync): Silence cast warning.
1466
1dcb2715
VS
14672013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1468
1469 * grub-core/commands/verify.c: Remove variable length arrays.
1470 Load gcry_dsa/gcry_rsa automatically.
1471
61c22fdf
VS
14722013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 * grub-core/tests/signature_test.c: New test.
1475
431e57a7
VS
14762013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1477
1478 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
1479 API.
1480
b521bb81
VS
14812013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 * grub-core/tests/legacy_password_test.c (vectors): Make static.
1484 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
1485
7d06b24e
VS
14862013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
1489
3bbeade4
VS
14902013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 * grub-core/fs/proc.c: Allow \0 in proc files.
1493
ba82db7a
VS
14942013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
1497
801564c8
VS
14982013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
1501
ac8cac1d
VS
15022013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 * grub-core/fs/ext2.c: Remove variable length arrays.
1505
4b85f122
VS
15062013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1507
1508 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
1509 length arrays.
1510
c35fcdc0
VS
15112013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1512
1513 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
1514 * grub-core/disk/cryptodisk.c: Likewise.
1515 * grub-core/disk/geli.c: Likewise.
1516 * grub-core/disk/luks.c: Likewise.
1517
15decd26
VS
15182013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 * grub-core/tests/legacy_password_test.c: New test.
1521 * grub-core/commands/legacycfg.c: Remove variable length arrays.
1522
9c6482b8
VS
15232013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1524
1525 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
1526
41f26e0e
VS
15272013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 * grub-core/tests/pbkdf2_test.c: New test.
1530
2def6616
VS
15312013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1532
1533 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
1534
9e34a34e
VS
15352013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 * grub-core/io/lzopio.c: Remove variable length arrays.
1538
5ccaf904
VS
15392013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 * include/grub/crypto.h: Add maximums on hash size and cipher block
1542 size.
1543
44a387e0
VS
15442013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
1547
a388e255
VS
15482013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1549
1550 * grub-core/tests/xnu_uuid_test.c: New test.
1551
a1ef7718
VS
15522013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1553
1554 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
1555 covers it).
1556
65ddb300
VS
15572013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1558
1559 * grub-core/commands/hashsum.c: Remove variable length arrays.
1560
31747dd5
VS
15612013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
1564 condition.
1565 * tests/grub_func_test.in: Increase memory allocation.
1566
6a74c4df
VS
15672013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1568
1569 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
1570 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
1571 sys/mount.h.
1572
394c3e0a
VS
15732013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
1576 (grub_util_get_fd_size_os): ...this.
1577 (grub_hostdisk_flush_initial_buffer): New empty function.
1578
60d31116
VS
15792013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * grub-core/gensyminfo.sh.in: Handle the case of portable output
1582 without --defined-only.
1583
8445b011
VS
15842013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
1587 rip-relative addressing in prologue.
1588
8506a641
VS
15892013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1590
1591 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
1592 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
1593
66acd9d6
VS
15942013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
1597 Add missing semicolon.
1598
348d0535
VS
15992013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1600
1601 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
1602
0d2d30bb
VS
16032013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1604
1605 * configure.ac: Check for lzma.h for enabling liblzma and allow
1606 manual disabling.
1607
631187be
VS
16082013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1609
1610 Add missing includes of loader.h.
1611
e756ec82
FZ
16122013-11-11 Fam Zheng <famcool@gmail.com>
1613
1614 * util/grub.d/30_os-prober.in: Add minix entry.
1615
87d62d7d
VS
16162013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
1619 right buffer for temporary load.
1620
5460cfeb
VS
16212013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
1624
89977306
VS
16252013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
1628 payload.
1629
3617c59b
VS
16302013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
1633 not Types.h.
1634 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
1635 environment.
1636 (LzmaDec_InitDicAndState): Make static.
1637
881c6a10
VS
16382013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1639
1640 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
1641
2024ade2
VS
16422013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1643
1644 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
1645
1646 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
1647
674ad4f6
VS
16482013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1649
1650 * docs/grub-dev.texi: Replace bzr references with git ones.
1651
5b99970e
AB
16522013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
1653
1654 * docs/grub.texi (Simple configuration): Remove reference to
1655 grub-reboot from saved default entry description - grub-default
1656 does not use it anymore.
1657
3c2304d5
VS
16582013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1659
1660 * configure.ac: Make efiemu test cflags match the cflags efiemu is
1661 compiled with.
1662
80cfd940
AB
16632013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
1664
1665 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
1666
33690255
VS
16672013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 Fix grub_machine_fini bitrot.
1670
1671 Reported by: Glenn Washburn.
1672
c61471fc
VS
16732013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
1676
54da019f
VS
16772013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
1680 -DELF.
1681 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
1682 instead of ELF*.
1683
16842013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
1685
1686 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
1687 Add -march=core2 when testing compile of efiemu64.
1688
1689 Thanks Andrey Borzenkov for spotting this.
1690
9612ebc0
VS
16912013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
1694 XEN PV environment and load kernels.
1695
1a46a3a4
VS
16962013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1697
1698 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
1699 * grub-core/loader/multiboot_mbi2.c: Likewise.
1700
2df12551
VS
17012013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
1704 handling.
1705
3c980381
VS
17062013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
1709
1710 Tested by: Denis 'GNUtoo' Carikli.
1711
800f63d3
VS
17122013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1713
1714 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
1715
9f8acdaa
VS
17162013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1717
5620eb53
VS
1718 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
1719 Use to get rounded angle rather than truncated.
1720
17212013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1722
1723 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
1724 RTS/CTS flow control.
1725
2dc1eb6c
VS
17262013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
1729 divisions.
1730
b9563c94
VS
17312013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
1734 Use grub_fatal rather than divide by zero.
1735 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
1736
d6d8e9a9
VS
17372013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1738
1739 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
1740 truncate.
1741 (grub_fixed_fsf_divide): Likewise.
1742
d06de6c8
VS
17432013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1744
1745 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
1746 division by-zero and senseless negative divisions.
1747
6af7d49b
VS
17482013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
1751 division by-zero and senseless negative divisions.
1752 (circprog_set_property): Don't accept negative num_ticks.
1753
bcfa6d72
VS
17542013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
1757 division by-zero and senseless negative divisions.
1758
dd7f792c
VS
17592013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1760
1761 * configure.ac: Use elf_*_fbsd on kfreebsd.
1762
d061fda7
VS
17632013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1764
1765 * grub-core/tests/div_test.c: New test.
1766
4db22500
VT
17672013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1768
1769 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
1770 * grub-core/gfxmenu/gui_canvas.c: Likewise.
1771 * grub-core/gfxmenu/view.c: Likewise.
1772 * grub-core/video/fb/video_fb.c: Introduce new functions:
1773 grub_video_set_area_status, grub_video_get_area_status,
1774 grub_video_set_region, grub_video_get_region.
1775 * grub-core/video/bochs.c: Likewise.
1776 * grub-core/video/capture.c: Likewise.
1777 * grub-core/video/video.c: Likewise.
1778 * grub-core/video/cirrus.c: Likewise.
1779 * grub-core/video/efi_gop.c: Likewise.
1780 * grub-core/video/efi_uga.c: Likewise.
1781 * grub-core/video/emu/sdl.c: Likewise.
1782 * grub-core/video/radeon_fuloong2e.c: Likewise.
1783 * grub-core/video/sis315pro.c: Likewise.
1784 * grub-core/video/sm712.c: Likewise.
1785 * grub-core/video/i386/pc/vbe.c: Likewise.
1786 * grub-core/video/i386/pc/vga.c: Likewise.
1787 * grub-core/video/ieee1275.c: Likewise.
1788 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
1789 * include/grub/video.h: Likewise.
1790 * include/grub/video_fb.h: Likewise.
1791 * include/grub/fbfill.h: Updated render_target structure.
1792 grub_video_rect_t viewport, region, area
1793 int area_offset_x, area_offset_y, area_enabled
1794 * include/grub/gui.h: New helper function
1795 grub_video_bounds_inside_region.
1796 * docs/grub-dev.texi: Added information about new functions.
1797
c6b755df
VS
17982013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1799
1800 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
1801 for alignment.
1802
e2a68100
VS
18032013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1804
1805 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
1806 missing attribute.
1807 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
1808
c4f11a2a
VS
18092013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1810
1811 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
1812 simple division on arm and ia64.
1813
e0a7bffa
VS
18142013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1815
1816 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
1817 link with libgcc.
1818
38b864ea
VS
18192013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
1822
12359faf
VS
18232013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1824
1825 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
1826 prefix symbol, not @.
1827
9fdc64a9
VS
18282013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 * INSTALL: Add note about older gcc and clang.
1831
665c575b
VS
18322013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
1835
47dcf7b1
VS
18362013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
1839 NULL pointer dereference.
1840
d59849b2
VS
18412013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1842
1843 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
1844 clang.
1845
7a3f4a18
VS
18462013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1847
1848 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
1849 warnings.
1850
7f084087
VS
18512013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1852
1853 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
1854 function.
1855 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
1856 * grub-core/disk/geli.c (ascii2hex): Likewise.
1857
d5524ca8
VS
18582013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1859
1860 * configure.ac: Run linker tests without -Werror.
1861 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
1862 Change all occurences of -static-libgcc resp -lgcc to
1863 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
1864
390cd7ca
VS
18652013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
1868
60375a88
VS
18692013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1870
1871 Allow compiling with clang (not really supported though).
1872
1873 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
1874 unconditionally.
1875 * configure.ac: Add -no-integrated-as when using clangfor asm files.
1876 Add -mrtd -mregparm=3 on i386 when not using clang.
1877 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
1878
dd07e0c4
VS
18792013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1880
1881 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
1882 bindings.
1883 * grub-core/lib/reed_solomon.c: Likewise.
1884 * include/grub/i386/gdb.h: Likewise.
1885 * include/grub/i386/pc/int.h: Likewise.
1886 * include/grub/i386/pc/pxe.h: Likewise.
1887 * include/grub/ieee1275/ieee1275.h: Likewise.
1888
9d3ae8ec
VS
18892013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1890
1891 Import libgcrypt 1.5.3.
1892
c12936c5
VS
18932013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1894
1895 * configure.ac: Don't add -Wcast-align on x86.
1896
cdc17f60
VS
18972013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1898
1899 * configure.ac: Add -freg-struct-return on all platforms that
1900 support it.
1901
b35ec299
VS
19022013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * acinclude.m4: Use -Werror on parameter tests.
1905 * configure.ac: Likewise.
1906
05f3a0d7
VS
19072013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
1910
c966a489
VS
19112013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1912
1913 * configure.ac: Check that -malign-loops works rather than assuming that
1914 either -falign-loops or -malign-loops work.
1915
bb0c57ec
VS
19162013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1917
1918 * configure.ac: Remove -fnested-functions. We don't need it anymore.
1919
24f4e57c
VS
19202013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1921
1922 * configure.ac: Prevent cflags leaking to subsequent tests by always
1923 resetting cflags to target_cflags in target tests.
1924
ac319fbc
VS
19252013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
1928 function.
1929
4bfe934c
VS
19302013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
1933
40a5bfde
VS
19342013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
1937
a67c755e
VS
19382013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/normal/cmdline.c (grub_cmdline_get):
1941 Remove nested functions.
1942
87a04a2d
VS
19432013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1944
1945 * tests/test_sha512sum.in: Make it work on emu.
1946
c03995d2
VS
19472013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1948
1949 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
1950 functions.
1951 (grub_bidi_line_logical_to_visual): Likewise.
1952
ec0ebb3f
VS
19532013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1954
1955 Remove vestiges of -Wunsafe-loop-optimisations.
1956
1957 * conf/Makefile.common (CFLAGS_GNULIB): Remove
1958 -Wno-unsafe-loop-optimisations.
1959 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
1960 pragma.
1961 * grub-core/io/gzio.c: Likewise.
1962 * grub-core/script/parser.y: Likewise.
1963 * grub-core/script/yylex.l: Likewise.
1964 * util/grub-mkfont.c: Likewise.
1965
6ab537e3
VS
19662013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1967
1968 * util/grub-mkfont.c (process_cursive): Remove nested function.
1969
e6c368d4
VS
19702013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
1973 (grub_boot_time): Likewise.
1974
4f1cfd22
VS
19752013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * include/grub/symbol.h (FUNCTION): Use @function rather than
1978 "function".
1979 (VARIABLE): Likewise.
1980
6d5a4cee
VS
19812013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
1984
f06c2172
VS
19852013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
1988 (parse_dhcp_vendor): Likewise.
1989
7cb24eb5
VS
19902013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
1993
f30c692c
VS
19942013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * grub-core/gettext/gettext.c (main_context), (secondary_context):
1997 Define after defining type and not before.
1998
8b66bb5d
VS
19992013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
2002 type.
2003 (grub_gcm_decrypt): Likewise.
2004 (algo_decrypt): Likewise.
2005 (grub_zfs_decrypt_real): Transform error type.
2006
5d17fd0f
VS
20072013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2008
2009 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
2010
ac35a0f7
VS
20112013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
2014 (grub_usbms_cbi_reset): Likewise.
2015 (grub_usbms_bo_reset): Likewise.
2016 (grub_usbms_reset): Likewise.
2017 (grub_usbms_attach): Likewise.
2018 (grub_usbms_transfer_cbi): Likewise.
2019
3ee08697
VS
20202013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
2023 "checksum = checksum;".
2024
70bb6c85
VS
20252013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
2028 entry_type.
2029
c7f34744
VS
20302013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
2033 BIOS disk check.
2034
3f63b4d8
VS
20352013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
2038 type.
2039 (grub_ehci_fini_hw): Likewise.
2040 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2041
dac6ce73
VS
20422013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
2045 return grub_usb_err_t for cosistency. All users updated.
2046
5701750c
VS
20472013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
2050 assigning to itself.
2051
9e236169
GLD
20522013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
20532013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2054
2055 Issue separate DNS queries for ipv4 and ipv6
2056
2057 Adding multiple questions on a single DNS query is not supportted by
2058 most DNS servers. This patch issues two separate DNS queries
2059 sequentially for ipv4 and then for ipv6.
2060
2061 Fixes: https://savannah.gnu.org/bugs/?39710
2062
2063 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
2064 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
2065 * (grub_net_dns_lookup): Now using separated dns packages.
2066 * (grub_cmd_nslookup): Add error condition.
2067 * (grub_cmd_list_dns): Print DNS option.
2068 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
2069 --prefer-ipv4, and --prefer-ipv6.
2070 * include/grub/net.h (grub_dns_option_t): New enum.
2071 * (grub_net_network_level_address): option added.
2072
339eacce
VT
20732013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
2074
2075 * grub-core/video/fb/video_fb.c: Merge two blit functions
2076 into one.
2077
810f991b
VS
20782013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2079
2080 * grub-core/term/terminfo.c: Add sequences for home and end.
2081
386571a2
VS
20822013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
2085 graphics console.
2086
3fe63754
VS
20872013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2088
2089 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
2090 add mode 0x12.
2091
76681e71
VS
20922013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
2095 e-mail by Per Öberg.
2096
46522fb7
VS
20972013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2098
2099 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
2100 name.
2101
e7d09ac4
AB
21022013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
2103
2104 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
2105 emu platforms.
2106 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
2107
67508925
VS
21082013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 * docs/grub.texi: Document usage of menuentry id.
2111
0c62124e
VS
21122013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
2115
9b5d4eed
PL
21162013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
2117
2118 * grub-core/commands/i386/nthibr.c: New command.
2119
79054c1d
VS
21202013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
2123
44d47bbe
VS
21242013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
2127 coordinate.
2128
323de05b
VS
21292013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 Support GRUB_DISABLE_SUBMENU config.
2132
2133 Inspired by patch from Prarit Bhargava.
2134
5a01722e
VS
21352013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * docs/grub.texi: Mention RSA support.
2138
1106c3f0
VS
21392013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2140
2141 * grub-core/commands/verify.c: Add RSA support.
2142
a1dcc2cb
VS
21432013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2144
2145 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
2146 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
2147 device is known to be ATAPI.
2148
ee7fb780
MF
21492013-11-03 Mike Frysinger <vapier>
2150
2151 * configure.ac: Don't add target-prefix.
2152
5ade4a42
VS
21532013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2154
2155 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
2156 variables.
2157
6cd66043
VS
21582013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2159
2160 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
2161 if language is English.
2162
090d7c81
VS
21632013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
2166
dd614590
VS
21672013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 * configure.ac: Don't add -m32/-m64 on emu.
2170
a8686589 21712013-11-02 neil
2172
2173 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
2174 broken linux headers.
2175
fb9f12a0
VS
21762013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2177
2178 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
2179
e25f8e1f
VS
21802013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2181
2182 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
2183 Reed-Solomon recovery if more than half of redundancy info is 0.
2184
4685200f
VS
21852013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2186
2187 * util/grub-mount.c: Handle symlinks to directories.
2188
1397f0b5
VS
21892013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2190
2191 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
2192 find_file recursively for symlink.
2193
8b3e6eb6
VS
21942013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * tests/util/grub-shell.in: Copy themes.
2197
a0c9d5c6
VS
21982013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2199
2200 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
2201
5cf9459c
VS
22022013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2203
2204 * configure.ac: Use 0x8000 for address instead of 8000.
2205
e7b66a28
VS
22062013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2207
2208 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
2209 signature.
2210
203f53fb
VS
22112013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2212
2213 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
2214 variable.
2215
02663ee9
VS
22162013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
2219
f169f65e
VS
22202013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2221
2222 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
2223 file_progress_read_hook.
2224 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
2225
2855a0fc
VS
22262013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
2229 and double.
2230
bf0f3a8c
VS
22312013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
2234
cb72aa18
VS
22352013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 Rewrite blocklist functions in order to get progress when
2238 reading large extents and decrease amount of blocklist hook calls.
2239
896f9135
VS
22402013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
2243 of SI suffixes.
2244
89295a06
VS
22452013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 Support --base-clock for serial command to handle weird cards with
2248 non-standard base clock.
2249
eb03ede0
VS
22502013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
2253 strncpy.
2254 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
2255 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
2256 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
2257 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
2258 + strcpy rather than strncpy.
2259
8fbe5c7d
VS
22602013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2261
2262 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
2263 (check_pool_label): Likewise. Fixes overflow.
2264 (nvlist_find_value): Fix comparison.
2265
e54b8f53
VS
22662013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 * include/grub/misc.h (grub_strcat): Removed. All users changed to
2269 more appropriate functions.
2270
fa9b3dca
VS
22712013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
2274 realloc.
2275
9a021c55
VS
22762013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 * util/grub-mkrescue.in: Do not use UUID search on EFI.
2279
80e8b13a
VS
22802013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2281
2282 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
2283 on core size.
2284
b61599ac
VS
22852013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2286
2287 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
2288
a602dc54
VS
22892013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2290
2291 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
2292 (initialize_tables): reset tl and td to NULL after freeing.
2293
93c12075
VS
22942013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
2297
1ca4b75e
VS
22982013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
2301 of supported tags.
2302
329550c4
VS
23032013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
2306
00bfa988
VS
23072013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2308
2309 * grub-core/loader/multiboot.c: Add support for multiboot kernels
2310 quirks.
2311
81afc5cc
VS
23122013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2313
2314 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
2315 a page in protected space.
2316
cb3c4a47
VS
23172013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2318
2319 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
2320 allocate space for zero-sized modules.
2321
954f7bf5
VS
23222013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2323
2324 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
2325
526d3d25
FL
23262013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
2327
2328 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
2329
74124c34
VS
23302013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2331
2332 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
2333 safeguards. Fixes a crash with i386/pc/console.c.
2334
5177391e
VS
23352013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2336
2337 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
2338 and grub_hostfs_init.
2339
64db14b0
VS
23402013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
2343 windows method on other platforms without good stat as well.
2344
effe2036
VS
23452013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2346
2347 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
2348
82591fa6 23492013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 2350
82591fa6
VS
2351 Make / in btrfs refer to real root, not the default volume.
2352 Modify mkrelpath to work even if device is mounted with subvolid option.
2353
23542013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
2355
2356 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
2357 extra_dist.
2358 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
2359 extra_dist.
2360
30fd7198
VS
23612013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2362
2363 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
2364 fails.
2365
8d179dae
BC
23662013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
2367
2368 * docs/autoiso.cfg: New file.
2369
3bc9c8cf
VS
23702013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
2373 COND_GRUB_PE2ELF conditions.
2374
8b46b0ea
VS
23752013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2376
2377 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
2378 "vnd", "rd" and "fd" disks.
2379
442b86de
VS
23802013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2381
2382 Move grub_disk_write out of kernel into disk.mod.
2383
04dea7e6
VS
23842013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2385
2386 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
2387 handling.
2388
23892013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
2390
2391 * grub-core/kern/misc.c (grub_abort): Make static
2392
04dea7e6 23932013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
2394
2395 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
2396 transform invalid unicode codepoints.
2397
04dea7e6 23982013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
2399
2400 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
2401 \0 checking.
2402
03dcac7f
VS
24032013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2404
2405 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
2406
c81acb7f
VS
24072013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 Consolidate cpuid code.
2410
c1bee646
VS
24112013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 Move cpuid code to cpuid.h and TSC code to tsc.c.
2414
f37bf9c7
GS
24152013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2416
2417 * util/grub.d/00_header.in: Don't use LANG if it's not set.
2418
4021132b
GS
24192013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2420
2421 * util/grub-mkconfig.in: Replace $0 with $self.
2422 * util/grub-reboot.in: Likewise.
2423 * util/grub-set-default.in: Likewise.
2424
3ace8d75
BC
24252013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2426
2427 * docs/osdetect.cfg: New file.
2428
1e6ad6a6
BC
24292013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2430
2431 * tests/util/grub-shell.in: Add new --debug option.
2432
188929eb
BC
24332013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2434
2435 * tests/test_unset.in: New test.
2436
7994a09a
BC
24372013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
2438
2439 * tests/test_sha512sum.in: New test.
2440
2a8a7585
VS
24412013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2442
2443 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
2444 * include/grub/misc.h: Remove strncat.
2445 * grub-core/lib/posix_wrap/string.h: Likewise.
2446
cf8d6bbd
VS
24472013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
2450 Try to handle more than 0xFFFF packets.
2451 Reported by: Bernhard Übelacker <bernhardu>.
2452 He also spotted few overflows in first version of this patch.
2453
6d1fc99a
VS
24542013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2455
2456 * tests/date_unit_test.c: New test.
2457
10bafa1c
VS
24582013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2459
2460 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
2461 of first three years after start of validity of unixtime.
2462
b1c6d037
VS
24632013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2464
2465 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
2466 division as the one making more sense.
2467 (update_screen): Likewise.
2468 (complete): Likewise.
2469
5f4028d4
VS
24702013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
2473
a2856736
VS
24742013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 Make char and string width grub_size_t rather than grub_ssize_t.
2477
0a7e52b2
VS
24782013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2479
2480 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
2481 unsigned.
2482 (grub_history_replace): Likewise.
2483
42829573
VS
24842013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2485
2486 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
2487 appropriate.
2488
3523b8d8
VS
24892013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2490
2491 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
2492 appropriate.
2493
d43c6489
VS
24942013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2495
2496 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
2497 Use unsigned divisions rather than signed variants.
2498
f690f8b0
VS
24992013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 * grub-core/video/readers/png.c (grub_png_convert_image): Use
2502 unsigned arithmetics.
2503 Add missing break.
2504
74ff2c05
VS
25052013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
2508
fb56391e
VS
25092013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2510
2511 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
2512 rather than signed one.
2513 (recovery): Likewise.
2514
40f29060
VS
25152013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2516
2517 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
2518
c64577a5
VS
25192013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2520
2521 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
2522 than signed.
2523
c16535a8
JM
25242013-10-25 Jon McCune <jonmccune@google.com>
2525
2526 * docs/grub.texi: Cleanup security documentation around signatures.
2527
6673d8e7
VS
25282013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
2531
a105d375
VS
25322013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2533
2534 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
2535 than int.
2536
af81ed88
VS
25372013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2538
2539 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
2540 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
2541 functions when compiling for kernel.
2542
ea899a57
VS
25432013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2544
2545 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
2546 unsigned long long when using %llu.
2547
c6dc6fa1
VS
25482013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2549
2550 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
2551 terminal after updating progress.
2552
ad2dc003
VS
25532013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
2556 argument. We don't disable Gate A20 in this code.
2557
b46684ae
VS
25582013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
2561 Conceptually based on change in branch "vbe-on-coreboot".
2562
f70d5c07
RM
25632013-10-24 Robert Millan <rmh@gnu.org>
2564
2565 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
2566 numeric constants with their symbolic equivalent.
2567 Taken from branch "vbe-on-coreboot".
2568
bca274b4
VS
25692013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2570
2571 * docs/grub.texi: Fix ordering and use pxref rather than xref.
2572
238f0489
VS
25732013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
2576 divmod64 for offset division.
2577
863c590b
PFS
25782013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2579
2580 Rename .bzrignore to .gitignore. Add "*.o" rule.
2581
2582 * .bzrignore: Renamed to...
2583 * .gitignore: ...this.
2584
84a0e969
PFS
25852013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2586
2587 Add new progress module that displays the load progress of files.
2588
2589 * grub-core/lib/progress.c: New file.
2590 * grub-core/Makefile.core.def (progress): New module.
2591 * grub-core/kern/file.c (grub_file_open): File name added.
2592 * (grub_file_read): Progress hook added.
2593 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
2594 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
2595 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
2596 * include/grub/file.h (struct grub_file): Add progress module members.
2597 * include/grub/term.h (struct grub_term_output): Likewise.
2598 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
2599 Terminal velocity added.
2600 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
2601 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
2602 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
2603 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
2604 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
2605 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
2606 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
2607 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
2608 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
2609 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
2610 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
2611 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
2612
0d711431
VS
26132013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 Verify signatures of signatures unless --skip-sig is specified.
2616
f8401f76
VS
26172013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
2620 \0 checking.
2621
2622 Saves 70 bytes on compressed image.
2623
ac1feb61
VS
26242013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
2627 check.
2628
2629 Saves 10 bytes on compressed image.
2630
00f72e89
VS
26312013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2632
2633 * grub-core/kern/misc.c (grub_isprint): Move to ...
2634 * include/grub/misc.h (grub_isprint): ... here. Make inline.
2635
2636 Saves 20 bytes on compressed image due to remving exporting.
2637
067e6ae7
VS
26382013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
2641
2642 Saves 5 bytes on compressed image.
2643
64a6c791
VS
26442013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
2647 function get_utf8.
2648
2649 Saves 379 bytes on compressed image.
2650
979d9f52
VS
26512013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2652
2653 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
2654
1437da54
VS
26552013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
2658
2659 Saves 40 bytes on compressed image.
2660
d9ee2269
VS
26612013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2662
2663 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
2664 mask rather than 64-bit type.
2665
2666 Saves 20 bytes on compressed image.
2667
63efa602
VS
26682013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
2669
2670 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
2671 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
2672
47601ffe
VS
2673 Saves 273 bytes on compressed image.
2674
2cc679ad
VS
26752013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
2678 variable length arrays.
2679
2680 Saves 50 bytes on compressed image.
2681
2e4659b8
VS
26822013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2683
2684 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2685
2a40badf
VS
26862013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * grub-core/fs/ufs.c: Remove variable length arrays.
2689
1ba6b9b9
VS
26902013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2691
2692 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
2693
f3e39341
VS
26942013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2695
2696 * grub-core/fs/zfs.c: Remove variable length arrays.
2697 Reduces zfs.mod by 160 bytes (208 compressed).
2698
71523935
VS
26992013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2700
2701 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
2702
28153eb8
VS
27032013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 * grub-core/net/arp.c: Remove variable length arrays.
2706 * grub-core/net/bootp.c: Likewise.
2707 * grub-core/net/dns.c: Likewise.
2708 * grub-core/net/icmp6.c: Likewise.
2709 * grub-core/net/net.c: Likewise.
2710
88ce4cd7
VS
27112013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * grub-core/fs/ntfs.c: Remove variable length arrays.
2714 Increases ntfs.mod by 64 bytes (but decreases by 3 when
2715 compressed).
2716
66123940
VS
27172013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2718
2719 * grub-core/fs/hfs.c: Remove variable length arrays.
2720 Reduces hfs.mod by 8 bytes (52 compressed).
2721
0927e5bd
VS
27222013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 2725 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
2726 compressed).
2727
9c12ac97
VS
27282013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 2731 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
2732 compressed).
2733
97ec2d71
VS
27342013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2735
2736 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 2737 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
2738 compressed).
2739
156e4ea0
VS
27402013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2741
2742 * grub-core/fs/xfs.c: Remove variable length arrays.
2743 Reduces xfs.mod by 40 bytes (43 compressed).
2744
3b502c29
VS
27452013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * grub-core/fs/fshelp.c: Remove variable length arrays.
2748 Reduces fshelp.mod by 116 bytes (23 compressed).
2749
c7037f1d
VS
27502013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * grub-core/normal/completion.c: Remove variable length arrays.
2753 * grub-core/normal/menu_entry.c: Likewise.
2754
2755 Reduces normal.mod by 496 bytes.
2756
a07e6ad0
VS
27572013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
2760 by 356 bytes (158 compressed).
2761
2359bf88
VS
27622013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
2765 by 364 bytes (169 compressed).
2766
d28e1163
VS
27672013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
2770 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
2771 * include/grub/types.h (grub_unaligned_uint64_t): New type.
2772
e89c2d48
VS
27732013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2774
2775 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
2776 bitmasks to small structures of size chosen to fit in registers.
2777
7abdac8e
VS
27782013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2779
2780 * conf/Makefile.common: Use -freg-struct-return on i386. This
2781 decreases code size and improves performance.
2782
518864c0
VS
27832013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2784
2785 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
2786
bbd2b539
VS
27872013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2788
2789 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
2790 "(null)" string.
2791 Simplify expressions to save around 256 bytes in kernel.img.
2792 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
2793
99519c15
VS
27942013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2795
2796 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
2797 Use GRUB_UTIL_FD_O_* rather than O_*.
2798
20285765
VS
27992013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2800
2801 Add haiku-specific functions.
2802
887c0bb6
VS
28032013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2804
2805 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
2806
cd78a56f
VS
28072013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 Move stat () and device mode checking into OS-dependent files as
2810 long as performance doesn't suffer.
2811
a4012f07
VS
28122013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2813
2814 Split make_system_path_relative_to_its_root into separate file
2815 relpath.c from getroot.c as it's common between unix and haiku
2816 but otherwise haiku doesn't use any functions from unix getroot.c.
2817
31de274d
VS
28182013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
2821 New function.
2822 (grub_util_is_special_file): Likewise.
2823
40346de6
VS
28242013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2825
2826 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
2827 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
2828
d3923ab9
VS
28292013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2830
2831 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
2832 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
2833
663f6eb1
VS
28342013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
2837 (load_image): Likewise.
2838
44d1c20a
VS
28392013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2840
2841 * util/grub-render-label.c: Move backend part to ...
2842 * util/render-label.c: ... here.
2843
d0a116ee
VS
28442013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
2847 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
2848
b47fcae6
VS
28492013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
2852
0f7c00c1
VS
28532013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
2856 CD-ROM in case when it's declared as having subpartitions.
2857
29013cba
VS
28582013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 Don't add -lm on haiku.
2861
2862 * configure.ac: Define BUILD_LIBM to -lm on most platforms
2863 and empty on haiku.
2864 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
2865 -lm.
2866
e8559d24
VS
28672013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2868
2869 * configure.ac: Use -melf_*_haiku as target on haiku.
2870
8104063c
VS
28712013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2872
2873 * Makefile.util.def: Add util/setup.c to extra_dist.
2874
fc3182c7
VS
28752013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2876
2877 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
2878 unknown types through.
2879
f90a3cc0
VS
28802013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
2883 (grub_util_check_char_device): Likewise.
2884 * include/grub/emu/getroot.h: Likewise.
2885
1e3e7419
VS
28862013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2887
2888 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
2889 memset rather than inline static function.
2890
92c88fc8
VS
28912013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
2894 not doing embedded decompressor.
2895
3cd910a2
VS
28962013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2897
2898 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
2899 shadowing.
2900 * grub-core/kern/disk.c: Likewise.
2901 * grub-core/kern/misc.c: Likewise.
2902 * include/grub/parser.h: Likewise.
2903 * include/grub/script_sh.h: Likewise.
2904 * include/grub/zfs/zfs.h: Likewise.
2905
7b3aca00
VS
29062013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
2909
97dfe7e4
VS
29102013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
2913 defined before trying to use it.
2914
bf919aa9
VS
29152013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
2918 warning.
2919
f4ccf29d
VS
29202013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2921
2922 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
2923 Use __unused__ rather than __used__ on gcc < 3.2.
2924
0d3a6f85
VS
29252013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2926
2927 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
2928 gcc < 4.0.
2929 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
2930
757e3eb7
VS
29312013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
2934
fb320faf
VS
29352013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
2938 * include/grub/emu/misc.h: Likewise.
2939
ea73acd2
VS
29402013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2941
2942 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
2943 cur_color.
2944
71237a6f
VT
29452013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
2946
2947 * grub-core/tests/checksums.h: Regenerated due to progress bar
2948 get_minimal_size changes.
2949
3d46c22f
BC
29502013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
2951
2952 Added `tr' command support.
2953
2954 * grub-core/commands/tr.c: New file.
2955 * grub-core/Makefile.core.def: Build rules for new module.
2956
2957 * tests/grub_cmd_tr.in: New test.
2958 * Makefile.util.def: Build rules for new test.
2959
47e0a61f
VT
29602013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
2961
2962 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
2963
946fd073
VT
29642013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
2965
2966 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
2967 * docs/gurb.texi: Likewise.
2968
9c13c576
VT
29692013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
2970
2971 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
2972 Pixmap highlighted section with east and west slices was displayed
2973 incorrectly due to negative width of the central slice.
2974
ad543f12
VT
29752013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
2976
2977 * docs/grub.texi: Graphical options information update.
2978 Removed outdated. Updated current. Inserted missed.
2979
6176a0cd
VS
29802013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
2981
2982 * docs/grub.texi: Mention few new platform-specific commands.
2983
9688cae2
VS
29842013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
2987 currently used so this doesn't really have any effect.
2988 Reported by: Douglas Ray <dougray>
2989
f7b69a3f
VS
29902013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
2993 compilation but prevents gcc from displaying messages in non-Latin
2994 alphabets.
2995 * conf/Makefile.common: Likewise.
2996
ceca6ddf
HY
29972013-10-16 Hiroyuki YAMAMORI
2998
2999 Handle Japanese special keys.
3000 Reported by: Hiroyuki YAMAMORI.
3001 Codes supplied by: Hiroyuki YAMAMORI.
3002
ac48d334
VT
30032013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3004
3005 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
3006
b2b71bff
VT
30072013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
3008
3009 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
3010 * docs/grub.texi: Likewise.
3011
669fc449
VS
30122013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3013
3014 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
3015 value in case of incomplete read.
3016 (grub_util_fd_write): Likewise.
3017
59381678
VS
30182013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
3021
bacfefbb
VS
30222013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * util/grub-editenv.c (create_envblk_file): More from here ...
3025 * util/editenv.c (grub_util_create_envblk_file): ... to here.
3026
f7c49570
VS
30272013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
3030 canonicalize file name before doing the rest.
3031
7b83ca44
VS
30322013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
3035 mingw32.
3036
df1e64c9
VS
30372013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3038
3039 Define grub_util_is_directory/regular/special_file and
3040 use OS-dependent versions rather than to rely on stat().
3041
ec16e026
VS
30422013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 * util/grub-mkimage.c: Move backend part to ...
3045 * util/mkimage.c: ... here.
3046
4b4eeb3c
VS
30472013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 Allow compilation with mingw64 albeit with warnings due to lack of
3050 %llx/%llu.
3051
3052 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
3053 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
3054 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
3055 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
3056 on mingw64.
3057 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
3058
f4e0adc0
VS
30592013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3060
3061 Remove leftover references to some of the system headers.
3062
e0127364
VS
30632013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3064
3065 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
3066 read.
3067
20d53541
VS
30682013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
3071 of strerror.
3072
5a869940
VS
30732013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 Split out blocklist retrieving from setup.c to
3076 grub-core/osdep/blocklist.c and add windows implementation since
3077 generic version doesn't work on NTFS on Windows due to aggressive
3078 unflushable cache.
3079
c06c7520
VS
30802013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
3083 files.
3084
8f53bb3f
VS
30852013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3086
3087 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
3088 Cut tailing newline. Remove arbitrary limitation. Always use
3089 grub_util_tchar_to_utf8.
3090
148f1007
VS
30912013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
3094 * tests/printf_unit_test.c (printf_test): Add %% tests.
3095 Reported by: Paulo Flabiano Smorigo.
3096
af3b06be
VS
30972013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
3100 implement fsync.
3101
27f9d02e
VS
31022013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 * configure.ac: Check for nvlist_lookup_string in nvpair since we
3105 use nvlist_lookup_string and don't use nvlist_print.
3106
f6a81f0a
VS
31072013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 Add wrappers around rename, unlink, mkdir, opendir, readdir and
3110 closedir to handle filename charset translation.
3111
d7750b32
VS
31122013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * include/grub/emu/hostdisk.h: Move file operations to
3115 * include/grub/emu/hostfile.h: ... here.
3116
2859196e
VS
31172013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
3120 unicode path.
3121
c018c968
VS
31222013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
3125
7e45abce
VS
31262013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
3129 and remove export.h.
3130
23934da2
VS
31312013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 * grub-core/kern/emu/error.c: Removed.
3134 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
3135 explicitly as it's already in libgnu.a.
3136
c11ebcc8
VS
31372013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3138
3139 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
3140 config-util.h include.
3141
70671037
VS
31422013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 Split emunet into platform-dependent and GRUB-binding parts. Keep
3145 platform-dependent part in kernel for easy access to OS functions.
3146
25ac643a
VS
31472013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
3148
3149 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
3150 open/read/write.
3151
69ca5876
VS
31522013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 * grub-core/osdep/windows/emuconsole.c: New file.
3155
d9d68ef0
AB
31562013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3157
3158 * conf/Makefile.extra-dist: Add osdep/*/init.c
3159
58e211cc
VS
31602013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
3163
588744d0
VS
31642013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * util/grub-probe.c (probe): Separate different drives in hint-str
3167 by spaces and not newlines.
3168 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
3169
44016e52
AB
31702013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3171
3172 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
3173 Handle CD-ROMs.
3174
6de9ee86
VS
31752013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 Pass-through unknown E820 types. It required reorganisation of mmap
3178 module.
3179
f8f3f155
AB
31802013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
3181
3182 * Makefile.util.def: Add osdep/init.c to grub-mount files.
3183
b73249d2
VS
31842013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
3187 fseeko.
3188
dac86b18 31892013-10-14 qwertial <qwertial>
3190
3191 * grub-core/gdb_grub.in: Fix overflow and wrong field.
3192
17614b84
JM
31932013-10-14 Jon McCune <jonmccune@google.com>
3194
3195 * docs/grub.texi: Document new signatures possibility.
3196
6de292cb
VS
31972013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3198
3199 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
3200
84379b61
VS
32012013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
3204 missing prototype.
3205 (grub_util_tchar_to_utf8): Likewise.
3206
21d85db1
VS
32072013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
3210 * grub-core/kern/emu/main.c: Add missing include.
3211 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
3212 Don't call grub_util_init_nls.
3213 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
3214 Likewise.
3215
66a1b3ee
VS
32162013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
3219 stat.
3220
e19bec17
VS
32212013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
3224
ee8c1b29
VS
32252013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
3228
bb338aaf
VS
32292013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 Add a wrapper for fopen. On unix-like systems just pass-through. On
3232 windows use unicode version.
3233
ae5540d3
VS
32342013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 Move set_program_name and init_nls to host_init. On windows
3237 fix in this fuction console and argument charset as well.
3238
4cd3c4fe
AB
32392013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
3240
3241 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
3242 GRUB_ENABLE_CRYPTODISK.
3243
3244 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
3245 GRUB_ENABLE_CRYPTODISK.
3246 * util/grub-mkconfig_lib.in: Likewise.
3247
78170f3e
CCZ
32482013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
3249
3250 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
3251
3414b6c0
MC
32522013-10-12 Melki Christian <Christian.melki@saabgroup.com>
3253
3254 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
3255 error when enabling debug.
3256
6d0740e8
IB
32572013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
3258
3259 * configure.ac: Use -melf_*_obsd on openbsd.
3260
ff2d4dc4
VS
32612013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
3262
3263 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
3264
eac6ae82
VS
32652013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
3266
3267 * include/grub/misc.h: Use gnu_printf rather than printf as format
3268 template since our functions are independent of libc.
3269
ba9baabe
VS
32702013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
3271
3272 * util/grub-setup.c (setup): Move copying of partition table as
3273 futher up as possible to avoid possible overwrite by floppy routines.
3274
32752013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
3276
3277 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
3278
145e2369
VT
32792013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
3280
3281 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
3282 * docs/grub.texi: Likewise.
3283
3530bc9d
VS
32842013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3285
3286 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
3287 it's mostly unused. Move vestiges to the callers.
3288
fb9f59c3
VS
32892013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3290
3291 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
3292 version of salt and hash. Use grub_snprintf rather than snprintf.
3293
9be1c255
VS
32942013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * docs/grub.texi: Fix problem with braces.
3297
ed8c0887
VS
32982013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * conf/Makefile.extra-dist: Fix extra-dist list.
3301 * grub-core/Makefile.core.def: Likewise.
3302
f72ab14e
VS
33032013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * docs/grub.texi: Document disk names used on Windows and AROS.
3306
2fe53a22
VS
33072013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
3310 with AROS devs.
3311 * grub-core/osdep/aros/hostdisk.c: Likewise.
3312
71c1d67a
VS
33132013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 Avoid including hostfile.h when not necessarry as it pulls
3316 in OS-specific headers which may redefine generic names
3317 like "far".
3318
ad297ec7
VT
33192013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
3320
3321 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
3322 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
3323 scrollbar_bottom_pad
3324 * docs/grub.texi: Likewise.
3325
6e9e5dc9
VT
33262013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
3327
3328 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
3329
761c718b
VS
33302013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3331
3332 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
3333
37149a2f
VS
33342013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3335
3336 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
3337 Removed.
3338 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
3339 Made static.
3340
3837a151
VS
33412013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
3344 leftover.
3345
caca1c70
VS
33462013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3347
3348 Move OS-specific driver configuration to grub_util_fd_open. This
3349 moves OS-dependent parts from kern/emu/hostdisk.c to
3350 grub-core/osdep/*/hostdisk.c.
3351
f7676b70
VS
33522013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3353
3354 * util/grub-mkimage.c (generate_image): Use size_t instead of
3355 grub_size_t.
3356 * util/grub-mkimagexx.c (locate_sections): Likewise.
3357 (load_image): Likewise.
3358
22f98db2
VS
33592013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3360
3361 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
3362 size_t.
3363 (grub_util_write_image): Likewise.
3364
b102ce69
VS
33652013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
3368 get random when no RNG is available.
3369 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
3370
acbbe5cb
VS
33712013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3372
3373 * include/grub/util/lvm.h: Removed.
3374
2112fb3f
VS
33752013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3376
3377 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
3378 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
3379
79f78fbf
VS
33802013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3381
3382 * grub-core/osdep/windows/sleep.c: Add missing config.h.
3383
c2e6f705
VS
33842013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3385
3386 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
3387
aabe433a
VS
33882013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3389
3390 * grub-core/net/drivers/emu/emunet.c: Move to ..
3391 * grub-core/osdep/linux/emunet.c: ..here.
3392
9a2c903f
VS
33932013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3394
3395 * util/ieee1275/ofpath.c: Move to ...
3396 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
3397 * grub-core/osdep/basic/ofpath.c: ..here.
3398
4a445f58
VS
33992013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 Move password-querying (util-version) routines to grub-core/osdep.
3402
c1ca4244
VS
34032013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 Move sleep routines to grub-core/osdep.
3406
672fa55e
VS
34072013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 Move OS-dependent files to grub-core/osdep and document it.
3410
a5b0365a
VS
34112013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3412
3413 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
3414 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
3415
29072e99
VS
34162013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3417
3418 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
3419
f8772ea7
VS
34202013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 * util/misc.c: Remove leftover inclusion of malloc.h.
3423
a1a315e7
VS
34242013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3425
3426 * include/grub/setjmp.h: Remove leftover GRUBOF.
3427
cef86fef
VS
34282013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3429
3430 * util/raid.c: Fold into ...
3431 * util/getroot_linux.c: ... here. Make all functions static.
3432
c4cf25ee
VS
34332013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
3436 macros to GRUB ones.
3437
53a5f5c2
VT
34382013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3439
3440 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
3441 occasional bug. If there are too many boot entries or too low
3442 scrollbar height then we need to use another formula to calculate
3443 the position and size of the scrollbar thumb.
3444
de300af2
VS
34452013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3446
c4cf25ee 3447 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 3448
c5827364
VT
34492013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3450
3451 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
3452 * docs/grub.texi: Likewise.
3453
dd2ed8b0
VT
34542013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3455
3456 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
3457 viewport.
3458
7286c384
VT
34592013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3460
ffdfc1f3
VT
3461 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
3462 minimal width calculations.
7286c384 3463
ea547e14
VS
34642013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3465
3466 * docs/grub.texi: Update note on colors on emu console.
3467
b726be76
VS
34682013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
3471 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
3472 it's FS and not GRUB limitation.
3473
a5f6ade6
VS
34742013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3475
3476 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
3477
3b0f3aa2
VS
34782013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
3479
3480 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
3481
1db38304
ST
34822013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3483
3484 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
3485 kernels by version order.
3486
fb295fc0
VS
34872013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
3490
47345010
VS
34912013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 Add AROS hostdisk and getroot routines.
3494
bf25f879
VS
34952013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3496
3497 Make cryptodisk and diskfilter probe data retrievable programmatically
3498 and not just printable.
3499
24ca4512
VS
35002013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 Split random retrieving code into separate files.
3503
c7c177f0
VS
35042013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
3507 R_ARM_V4BX.
3508
d71b45ae
VS
35092013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
3512 condition.
3513 * grub-core/tests/fake_input.c: Likewise.
3514 * grub-core/tests/cmdline_cat_test.c: Likewise.
3515
e44b9a83
VS
35162013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3517
3518 * grub-core/video/capture.c: Do not do finalization when .fini
3519 is called as there is explicit capture_end.
3520
4fa60739
VS
35212013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3522
3523 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
3524 changing windows to avoid crash.
3525
17c8bc37
VS
35262013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3527
3528 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
3529
9d4d7977
VS
35302013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 * po/exclude.pot: Add several strings to exclude.
3533
0caa407c
VS
35342013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
3537
9ae393da
VS
35382013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3539
3540 * autogen.sh: Add ./util/grub-gen-widthspec.c and
3541 ./util/grub-gen-asciih.c to exclude list.
3542
498d5033
VS
35432013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
3546 and don't mark error strings for translation.
3547
7d93298f
VS
35482013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3549
3550 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
3551 properly in case of missing block size.
3552
b2cae20c
VS
35532013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3554
3555 * grub-core/lib/arm/setjmp.S: Add missing license section.
3556
3896d6b4
VS
35572013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 * po/swiss.sed: Add replacement for key names and for term computer.
3560
ebc1da55
VT
35612013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
3562
3563 * grub-core/gfxmenu/theme_loader.c: New global options for the
3564 theme background image handling. desktop-image-scale-method,
3565 desktop-image-h-align, desktop-image-v-align.
3566 * grub-core/gfxmenu/view.c: Likewise.
3567 * include/gfxmenu_view.h: Likewise.
3568 * include/bitmap_scale.h: Proportional scale functions introduced.
3569 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
3570 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
3571 cases of unexpected input variables for scale functions.
3572 * docs/grub.texi: Updated documentation for new options.
3573
c5739143
VS
35742013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
3577
be74aeb3
VT
35782013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
3579
3580 * grub-core/tests/checksums.h: Corrected due to changes in
3581 bilinear interpolation function.
3582
d999ac72
VT
35832013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
3584
3585 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
3586 to eliminate artefacts in bilinear interpolation.
3587
2b131610
VS
35882013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * grub-core/video/readers/tga.c: Support paletted tga.
3591
de6e5ff8
VS
35922013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
3595 incorrect cbcr setting when in color mode.
3596
fa31ee9c
VS
35972013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 * grub-core/video/readers/png.c: Support paletted images and clean up
3600 greyscale support.
3601
e84f8188
VS
36022013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
3605 usage of wrong table which resulted in mishandling of 4-byte
3606 sequences.
3607
36082013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
3609
3610 * grub-core/term/terminfo.c: Add Home and End key sequences.
3611
d72bff09
VS
36122013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3613
3614 * grub-core/video/readers/png.c (grub_png_decode_image_header):
3615 Fix formula for computing total number of bytes.
3616
29648c5d
VS
36172013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
3620 image processing, fix big-endian and support grayscale.
3621
4a876492
VS
36222013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3623
3624 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
3625 Correctly will with maximum transparency when using index color.
3626
3ccf16df
VS
36272013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
3628
3629 * grub-core/video/readers/png.c: Support grayscale
3630
36312013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
3632
3633 * grub-core/video/readers/jpeg.c: Support grayscale.
3634
3ccf16df 36352013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
3636
3637 * grub-core/commands/loadenv.c: Support skipping signature check
3638 and variable names filtering.
3639
30b7f58f
VS
36402013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
3643 * grub-core/kern/emu/hostfs.c: Likewise.
3644 * util/getroot_unix.c: Likewise.
3645
bab7b1eb
VS
36462013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
3649 Migrate all explicit defines to this new one.
3650
43b1c99d
VS
36512013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
3654 grub_util_fd_strerror when using grub_util_fd_*.
3655 (grub_util_fd_open_device): Likewise.
3656 (grub_util_biosdisk_read): Likewise.
3657 (grub_util_biosdisk_write): Likewise.
3658 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
3659 (grub_util_fd_strerror): Likewise.
3660 (grub_util_fd_sync): Likewise.
3661 (grub_util_fd_close): Likewise.
3662 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
3663 (grub_util_fd_close): Likewise.
3664 (grub_util_fd_strerror): Likewise.
3665 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
3666 function proto rather than macro.
3667 (grub_util_fd_sync): Likewise.
3668 (grub_util_fd_open): Likewise.
3669 (grub_util_fd_strerror): New proto.
3670
e8fd80bc
VS
36712013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
3674 platforms on which it doesn't work.
3675
bf645fda
VS
36762013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
3679 stat immediately to where it's used.
3680
5177ba14
VS
36812013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * util/getroot.c (grub_util_check_block_device): Move to ...
3684 * util/getroot_unix.c (grub_util_check_block_device): ... here.
3685 * util/getroot.c (grub_util_check_char_device): Move to ...
3686 * util/getroot_unix.c (grub_util_check_char_device): ... here.
3687
9db826e1
VS
36882013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
3691 disk closing logic.
3692
49120085
AB
36932013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
3694
3695 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
3696
b3328b68
AB
36972013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
3698
3699 * docs/grub.texi (File name syntax): Document ZFS filenames
3700 (/volume@snapshot/...).
3701
3fff48ab
VS
37022013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
3705 Always return full path. Fixes a problem with mkrelpath.
3706
39cfdaa9
PFS
37072013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3708
3709 * util/grub-install.in: Add GPT PReP support.
3710 * util/grub-probe.c (probe): Support GPT partition type.
3711 (main): Support -t gpt_parttype.
3712
7c680e1f 37132013-09-23 Aleš Nesrsta <starous@volny.cz>
3714
3715 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
3716
890bdabe
MM
37172013-09-23 Massimo Maggi <me@massimo-maggi.eu>
3718
3719 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
3720
9c262ff9
TH
37212013-09-23 Tim Hardeck <thardeck>
3722
3723 * util/grub.d/10_hurd.in: Filter out character for the class.
3724 * util/grub.d/10_kfreebsd.in: Likewise.
3725 * util/grub.d/10_linux.in: Likewise.
3726 * util/grub.d/20_linux_xen.in: Likewise.
3727
d755342a
MC
37282013-09-23 Melki Christian <Christian.melki@saabgroup.com>
3729
3730 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
3731 "changed".
3732
68b77707
JT
37332013-09-23 Josh Triplett <josh@joshtriplett.org>
3734
3735 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
3736 boot partition.
3737
efa68bfa
VS
37382013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
3741 doesn't use posix_wrap. Keep literal -fno-builtin however.
3742
d9104204
VS
37432013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3744
3745 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
3746
c248781a 37472013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
37482013-09-23 neil
3749
5830df88 3750 * configure.ac: Do not enable -Wmissing-noreturn as its
3751 usefulness is limited and creates problems on some OS notably with
3752 code generated by bison.
3753
37542013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
37552013-09-23 neil
3756
3757 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 3758 supported by all gcc and when it is, it's already enabled by -Wall.
3759
621bed69
VS
37602013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
3763 desactivated use of EDID at all.
3764
71764dc8 37652013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
37662013-09-23 neil
3767
3768 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
3769 video if no text is available.
3770
affce7d4 37712013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
37722013-09-23 neil
3773
3774 * configure.ac: Substitute TARGET_RANLIB.
3775
37762013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
37772013-09-23 neil
affce7d4
VS
3778
3779 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
3780
3781 Based on patches from AROS.
3782
0e8daad0 37832013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 37842013-09-23 neil
0e8daad0
VS
3785
3786 * grub-core/Makefile.am: Override STRIP and RANLIB.
3787 * configure.ac: compute TARGET_RANLIB.
3788 * INSTALL: Document TARGET_RANLIB
3789
3790 Based on patches from AROS.
3791
3f7d9c82
VS
37922013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
3795 that floppies are unpartitioned.
3796
bca8873a
VS
37972013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
3800 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
3801
38022013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3803
3804 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
3805 less nice but more portable.
3806 * grub-core/lib/posix_wrap/wchar.h: Likewise.
3807
a47a78be
VS
38082013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
3811 for cheat_fd.
3812 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
3813 functions.
3814 (grub_cryptodisk_cheat_insert): Likewise.
3815 (grub_cryptodisk_close): Likewise.
3816
e85a5d5c
VS
38172013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3818
3819 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
3820 Use windows path for DEFAULT_DIRECTORY.
3821
dad9fa6b
VS
38222013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3823
3824 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
3825 difference was likely just gcc version, not anything mingw-related.
3826
7e518ca8
VS
38272013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 Use Winapi on both cygwin and mingw32 to share more code between both.
3830
d68d0157
AB
38312013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
3832
3833 * util/grub-install.in: Add --grub-editenv option.
3834 * util/grub-install_header (grub_compress_file): Explicitly check for
3835 plain file to avoid cp error.
3836
775b284d
AB
38372013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
3838
3839 * docs/grub.texi (Device syntax): Document new LVM UUID based device
3840 names; fix LVM driver name (lvm, not lv).
3841 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
3842 names.
3843
3ff4063d
VS
38442013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
3847 files rather than one file with loads of #if's.
3848 * util/getroot.c: Likewise.
3849
287faafe
VS
38502013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
3853
d1983764
VS
38542013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
3857 GNU/Hurd to the list of checked PRNG.
3858
15ce95c4
VS
38592013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * configure.ac: On FreeBSD use -melf_*_fbsd format.
3862
207862dd 38632013-09-21 Ales Nesrsta <starous@volny.cz>
3864
7c680e1f 3865 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 3866
63653cfd
VS
38672013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
3870 * grub-core/disk/lvm.c: Add LVM UUIDs.
3871 * util/getroot.c: Use LVM UUIDs whenever possible.
3872
f5d3e7ef
AB
38732013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
3874
3875 * docs/grub.texi (Networking commands): Add documentation for
3876 network related commands.
3877
53c6b7d6
VS
38782013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
3879
3880 * util/getroot.c (grub_util_open_dm): Check major rather than the name
3881 to determine if device is handled by devmapper.
3882 (convert_system_partition_to_system_disk): Likewise.
3883 (get_dm_uuid): Don't check explicitly if device is mapped, it's
3884 already done in grub_util_open_dm.
3885
e70d6736
LL
38862013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
3887
3888 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
3889 Clean up stack manipulation (sync_caches_armv*)
3890
90379808
VS
38912013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 * util/lvm.c: Remove since unused. Remove remaining references.
3894
386701a8
VS
38952013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
3896
3897 Handle the case of partitioned LVM properly.
3898
3899 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
3900 Stop on meeting LVM, mpath or DMRAID.
3901 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
3902 (read_device_map): Likewise.
3903 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
3904 device is full disk rather than erroring out on LVM and similar cases.
3905
53070787
VS
39062013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3907
3908 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
3909
1bc783bd
VS
39102013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3911
3912 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
3913 4K before the end.
3914 Reported by: Leif Lindholm
3915
436ad5c3
PW
39162013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
39172013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3918
3919 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
3920 codes.
3921
607319c9
CW
39222013-09-18 Colin Watson <cjwatson@ubuntu.com>
3923
3924 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
3925 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
3926
d404d154
DR
39272013-09-18 Douglas Ray <dougray@cpan.org>
3928
3929 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
3930 as secure.
3931
28851ef6
AN
39322013-09-18 Aleš Nesrsta <starous@volny.cz>
3933
3934 * docs/grub.texi: Fix broken link.
3935
897c3bc6
MC
39362013-09-18 Melki Christian <Christian.melki@saabgroup.com>
3937
3938 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
3939 to break endless loop.
3940
f1630459
VS
39412013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * util/grub-fstest.c: Fix several printf formats.
3944 * util/grub-mkimage.c: Likewise.
3945 * util/grub-mkimagexx.c: Likewise.
3946 * util/grub-script-check.c: Likewise.
3947
64463dfd
VS
39482013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
3951 error.
3952
48972495
VS
39532013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3954
3955 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
3956
5dd5e64b
VS
39572013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3958
3959 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
3960 removed in current versions cygwin_conv_*.
3961
1c1f31e5
VS
39622013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3963
3964 * configure.ac: Disable efiemu runtime on cygwin.
3965
c546a259
VS
39662013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
3969 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
3970
81690478
VS
39712013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
3974 error message.
3975
6b87c10a
VS
39762013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
3977
3978 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
3979 windows variant.
3980 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
3981 data.
3982
8f0baaac
VS
39832013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
3986 when on x86 and not cygwin.
3987 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
3988 -Wl,-melf_x86_64.
3989
b224c266
VS
39902013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 * configure.ac: Set CPP to build one when checkoing for freetype for
3993 build.
3994
506b336b
VS
39952013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
3998 [!GRUB_BUILD]: Remove has_argument.
3999
8c8c87b7
VS
40002013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
4003 Replace with a dummy.
4004
7dc5ca13
VS
40052013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * configure.ac: Don't change host_os from mingw to cygwin.
4008
c3302aa5
VS
40092013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 * configure.ac: Change target_os from windows to cygwin.
4012
7b780018
VS
40132013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4014
4015 Handle grub-pe2elf and grub-mkfont for cases when build != host.
4016
4017 * Makefile.am (build-grub-mkfont): Don't include gnulib.
4018 (build-grub-gen-asciih): Likewise.
4019 (build-grub-gen-widthspec): Likewise.
4020 * Makefile.util.def (grub-pe2elf): Remove.
4021 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
4022 * configure.ac: Separate tests for build.
4023 Move ./build-grub-pe2elf to grub-core.
4024 Fix typo.
4025 * grub-core/Makefile.am (build-grub-pe2elf): New target.
4026 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
4027 defined.
4028 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
4029 constants.
4030 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
4031 * util/grub-pe2elf.c: Simplify not to rely on getopt.
4032 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
4033
984cfd8a
VS
40342013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4035
4036 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
4037 mingw32 as well based on grub_util_get_disk_size.
4038 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
4039 grub_util_get_fd_size.
4040 (sync): Removed.
4041 (fsync): Moved to ...
4042 * grub-core/kern/emu/misc.c (fsync): ... here.
4043
f82d79c9
VS
40442013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4045
4046 * include/grub/mm.h (grub_extend_alloc): Remove.
4047 * grub-core/loader/i386/pc/plan9.c: Use own version of
4048 grub_extend_alloc with appropriate types.
4049
fd7dd66d
VS
40502013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
4053
43ffba7c
VS
40542013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 * util/getroot.c: Include sys/wait.h only when we need waitpid.
4057
3c7eac44
VS
40582013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4059
4060 Fix dependencies on cygwin.
4061
4062 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
4063 dependencies when used and defined.
4064 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
4065
bdb5ba47
VS
40662013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
4069 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
4070
ed7fbf43
VS
40712013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4072
4073 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
4074 implementation available to cause compile-time rather than runtime
4075 error.
4076
fc46e9fc
VS
40772013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4078
4079 * util/grub-fstest.c: Don't check for symlinks on windows.
4080
7f68269a
VS
40812013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4082
4083 * INSTALL: Mention unavailability of man pages when cross-compiling.
4084
8ed358e0
VS
40852013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4086
4087 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
4088 and gcry_log_bug.
4089 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
4090
fc97214f
VS
40912013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * INSTALL: Document cross-compilation.
4094 * acinclude.m4: Determine whether nm support -P and --defined-only.
4095 * configure.ac: Add TARGET_ to all variables pertaining to target
4096 that don't have it yet.
4097 * gentpl.py: Likewise.
4098 * grub-core/Makefile.am: Likewise.
4099 * grub-core/genmod.sh.in: Likewise.
4100 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
4101 as well.
4102
ca1fb563
IB
41032013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4104
4105 * configure.ac: Remove -Wempty-body. It's not essential and needs
4106 recent gcc.
4107
0031b229
IB
41082013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
4109
4110 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
4111 * util/getroot.c: Likewise.
4112
54ea2f44
VS
41132013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4114
4115 * grub-core/disk/ahci.c: Add needed explicit cast.
4116 * grub-core/lib/backtrace.c: Likewise.
4117 * grub-core/net/ip.c: Likewise.
4118 * grub-core/net/tcp.c: Likewise.
4119 * grub-core/net/udp.c: Likewise.
4120
3c601f8c
VS
41212013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4122
4123 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
4124
1d679dda
VS
41252013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 * util/import_gcry.py: Add final newline in visibility.h.
4128
00c28dd9
VS
41292013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 * conf/Makefile.common: Fix typo.
4132
32af299a
VS
41332013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4134
4135 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
4136
e733cf52
VS
41372013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * Makefile.am (widthspec.h): Fix typo.
4140 * util/grub-gen-widthspec.c: Likewise.
4141
c6b066f2
VS
41422013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 Move ascii.h and widthspec.h generation to a separate build-time-only
4145 tool.
4146
ad1fe3f9 41472013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4148
4149 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4150 Always fill bootdisk info and improve check for NetBSD disklabel.
4151
92a52dd4
VS
41522013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 * conf/Makefile.extra-dist: Add util/bin2h.c.
4155 Reported by: floppym.
4156
b2e9d276
VS
41572013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4158
4159 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
4160
7b966834
VS
41612013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4162
4163 * configure.ac: Disable unifont and starfield if no freetype was found.
4164
d5c1eef1
VS
41652013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
4168 on NetBSD and OpenBSD.
4169
66345b50 41702013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
4171
4172 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
4173
66345b50 41742013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
4175
4176 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
4177 reduced. Inheritant options are processed during the theme loading.
4178
66345b50 41792013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
4180
4181 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
4182
369508b3
AS
41832013-08-14 Avik Sil <aviksil@in.ibm.com>
4184
4185 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
4186
41872013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
4188
4189 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
4190 using qemu.
4191
6f27a3f6
PFS
41922013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4193
4194 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
4195 remove-potcdate.sed.
4196
c6ed362a
AB
41972013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4198
4199 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
4200 unused attribute from pull argument.
4201
5e7d9464
AB
42022013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4203
4204 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
4205 memory leak.
4206
dea55e2a
AB
42072013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
4208
4209 * util/getroot.c (pull_lvm_by_command): add --separator option
4210 to vgs call to disable padding of output to 10 characters.
4211
f0b94ded
VS
42122013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
4215 here ...
4216 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
4217 here.
4218
b828fb5d
VS
42192013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4220
4221 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
4222 length.
4223
7c9d0c39
VS
42242013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4225
4226 Fix handling of build-time grub-bin2h and grub-mkfont when doing
4227 full Canadian cross. Tested with build=x86_64, host=arm,
4228 target=ppc-ieee1275.
4229
816719c8
VS
42302013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4231
4232 * configure.ac: Error if no $BUILD_CC could be found.
4233 Reported by: DevHC.
4234
2af2353b
VS
42352013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
4238 i386-multiboot.
4239
797abd0a
VS
42402013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
4243 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
4244
36e87d25
CW
42452013-08-13 Colin Watson <cjwatson@ubuntu.com>
4246
4247 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
4248 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
4249 falling back to the partition device, otherwise a later call to this
4250 function may fail spuriously.
4251 Reported by Axel Beckert. Fixes Debian bug #708614.
4252
273349fe
GS
42532013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
4254
4255 * autogen.sh: Replace find -not by the POSIX-compliant find !.
4256
418f86c6
GS
42572013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
4258
4259 Prevent shadowing of stdlib's devname(3) on BSD.
4260
4261 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
4262 and devlast to diskname and disklast, respectively.
4263
c137aea0
CW
42642013-08-11 Colin Watson <cjwatson@ubuntu.com>
4265
4266 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
4267
272dc8df 42682013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
4269
4270 * docs/grub.texi: Introduce terminal window position options:
4271 terminal-left: terminal window's left position
4272 terminal-top: terminal window's top position
4273 terminal-width: terminal window's width
4274 terminal-height: terminal window's height
4275 terminal-border: terminal window's border width
4276 * grub-core/gfxmenu/theme-loader.c: Likewise.
4277 * include/grub/gfxmenu_view.h: Likewise.
4278 * po/exlude.pot: Likewise.
4279 * grub-core/gfxmenu/view.c: Likewise.
4280 Also updated minimal window size.
4281 Also terminal_sanity_check function has been introduced.
272dc8df
VT
4282 * grub-core/tests/checksums.h: Update (terminal window height
4283 is adjusted now for low resolution screen)
b4743461 4284
748a4533
VS
42852013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
4288 position).
4289
fca5f944
VS
42902013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * po/exclude.pot: Add few recent exceptions.
4293
4f47d809
VS
42942013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * tests/grub_func_test.in: Add unicode.pf2.
4297
a62ae90c
VS
42982013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
4301 standard rather than noral color, in line with other terminals.
4302
4ed41392
VS
43032013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4304
4305 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
4306 analysis.
4307
3719fbc5
VS
43082013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4309
4310 * grub-core/loader/arm/linux.c: Change printf to dprintf.
4311
459b1d91
VS
43122013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
4313
4314 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
4315 inappropriate printf.
4316
f4e1ab9d
AB
43172013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
4318
4319 * .bzrignore: Remove grub-core/lib/dtc-grub,
4320 grub-core/Makefile.libfdt.def
4321 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
4322
fa471bfa
VS
43232013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 * include/grub/video.h (grub_video_register): Keep double-linked as
4326 well as single-linked invariants.
4327 Reported by: qwertial.
4328
d65be02b
VS
43292013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
4330
4331 * grub-core/commands/nativedisk.c (get_uuid): Handle
4332 GRUB_DISK_DEVICE_UBOOTDISK_ID.
4333
ba8bc620
VT
43342013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
4335
4336 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
4337 maximum of NW, N, NE heights instead of N's height and maximum of
4338 NW, W, SW widths instead of W's width. (So the box will be always
4339 correctly drawn)
4340
4f0ad029
GS
43412013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
4342
4343 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
4344 Fix misuse of variable count.
4345
43d53b72
LL
43462013-07-18 Leif Lindholm <leif.lindholm@arm.com>
43472013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
43482013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 4349
43d53b72
LL
4350 New ports to arm-uboot and arm-efi.
4351 Mostly by Leif Lindholm with some additions from
4352 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 4353
88f8d146
VS
43542013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
4357 and not before.
4358 Reported by: Leon Drugi.
4359
3f42504c
VS
43602013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
4363 Reported by: Paulo Flabiano Smorigo.
4364
d110499b
VT
43652013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
4366
4367 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
4368
a8674ad3
VT
43692013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
4370
4371 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
4372
286fe4b3
VS
43732013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4374
4375 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
4376
1bd57aa3
VS
43772013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
4380
7a87d69f
AB
43812013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
4382
4383 * grub-core/net/bootp.c: Export net_* variables.
4384 * grub-core/net/net.c: Likewise.
4385
b2182299
VS
43862013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
4389
795b3dc0
VS
43902013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
4393
68714c43
VS
43942013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
4397
af211bab
VS
43982013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
4401
0036f02d
MM
44022013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4403
4404 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
4405 <= 0.
4406
6d0ddff3
MM
44072013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4408
4409 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
4410 functions.
4411
038016f4
MM
44122013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4413
4414 * grub-core/fs/zfs/zfs_lz4.c: New file.
4415 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
4416
776bdce2
MM
44172013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4418
4419 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
4420
c71dbd40
MM
44212013-07-14 Massimo Maggi <me@massimo-maggi.eu>
4422
4423 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
4424 (check_pool_label): Likewise.
4425 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
4426
44272013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
4428
4429 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
4430
8e67b50f
AB
44312013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
4432
4433 * docs/grub.texi (Commands): Document postition parameters
4434 for menuentry command.
4435
f5ae3717
AB
44362013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
4437
4438 * util/grub-mknetdir.in: Remove stray line from help output.
4439
9c28da2a
VS
44402013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4441
4442 Remove early sm712 init as there is no reason for it (the "watchdog"
4443 effect was due to wrong GPIO map).
4444
139072b8
VS
44452013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 * grub-core/commands/pcidump.c: Remove static variables.
4448
c6a61bda
VS
44492013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4450
4451 * grub-core/commands/sleep.c: Refresh screen before sleeping.
4452
51369614
VS
44532013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4454
4455 * configure.ac: Move delimiter after the infos.
4456
efa8640a
VS
44572013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4458
4459 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
4460
6f80a7b2
VS
44612013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
4464 not filling whole 8x16 space.
4465
a2371e19
VS
44662013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
4469
64fce2d8
VS
44702013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * configure.ac: Indicate which liblzma is used if any.
4473
eb272d84
PW
44742013-06-21 Paul Wise <pabs3@bonedaddy.net>
44752013-06-21 Craig Sanders <savannah@taz.net.au>
4476
4477 * util/grub-reboot.in: Document submenu usage.
4478
a9e5abee
CW
44792013-06-25 Colin Watson <cjwatson@ubuntu.com>
4480
4481 * .bzrignore: Update with a number of new test-related files.
4482
e639c204
CW
44832013-06-25 Colin Watson <cjwatson@ubuntu.com>
4484
4485 * util/grub-script-check.c: Fail on scripts containing no
4486 commands, to guard against corrupted grub-mkconfig setups that
4487 produce no useful output.
4488 * tests/grub_script_no_commands.in: New test.
4489 * Makefile.util.def (grub_script_no_commands): Add.
4490 Reported by Hans Putter. Fixes Debian bug #713886.
4491
a4c89b17
AB
44922013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4493
4494 * grub-core/disk/diskfilter.c: Forgot to remove comment
4495 from previous commit.
4496
5b06b53c
AB
44972013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4498
4499 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
4500 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
4501
702da5c9
AB
45022013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4503
4504 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
4505
aa62a5b7
AB
45062013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
4507
4508 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
4509 rescan diskfilter devices until nothing new is found.
4510
4aa237c8
VS
45112013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 Fix casts when compiling coreboot-specific code for 64-bit EFI.
4514
93d8479b
VS
45152013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 Don't try to detect cbfs on *-emu.
4518
837222cc
VS
45192013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4520
4521 * grub-core/term/gfxterm.c: USe right background color when scrolling.
4522
99c971af
VS
45232013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4524
4525 Add support for processed coreboot payload chainloading.
4526
e6930a45
VS
45272013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4528
4529 Enable coreboot information commands even when not loaded as
4530 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
4531
5027af38
VS
45322013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 Support for cbfs. Also factor out the part which is common
4535 for all archives to a separate module. This splits tar from cpio
4536 as they are very different but keeps cpio, cpio_be, odc and newc
4537 together since they're very similar.
4538
a5b55c4b
DM
45392013-06-15 David Michael <fedora.dm0@gmail.com>
4540
4541 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
4542 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
4543
0301a8b3
VS
45442013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4545
4546 * tests/grub_script_eval.in: Really add the eval test.
4547
3d84cb17
VS
45482013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 Move flavour-specific parts out of common cpio.c file and
4551 rename remaining to cpio_common.c
4552
593e430c
AB
45532013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4554
4555 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
4556 off new function grub_script_execute_new_scope. Change callers to use
4557 either of them as appropriate.
4558 * grub-core/commands/eval.c: New command eval.
4559 * docs/grub.texi (Commands): Document it.
4560
63c29849
AB
45612013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4562
4563 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
4564 to fetch values when listing.
4565
cc284112
AB
45662013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
4567
4568 Fix make dist on non-pc.
4569
45702013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
4571
4572 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
4573 without a device name.
4574
69544d1e
VS
45752013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4576
4577 Remove enable_executable_check as it's not needed anymore.
4578 Reported by: dougray.
4579
96dbe648
VS
45802013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4581
4582 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
4583 ambigouos RAID before discovering RAIDs on top of it.
4584 Reported by: bodom.
4585
ccfc0bdb
VS
45862013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4587
4588 Fix typo (failback vs fallback).
4589
f2587088
AB
45902013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
4591
4592 * util/grub.d/30_os-prober.in: Add support for probing EFI
4593 System Partition (as of os-prober 1.58).
4594
cec5cf0c
VS
45952013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4596
4597 * configure.ac: Add yet another path to unifont. For parabola.
4598
e40b4596
JT
45992013-05-30 Josh Triplett <josh@joshtriplett.org>
4600
4601 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
4602 handling to copy the killed characters to the kill buffer as
4603 UCS4 stored as grub_uint32_t rather than as 8-bit characters
4604 stored as char. Eliminates UCS4 truncation and corruption
4605 observed when killing characters with Ctrl-u and yanking them
4606 back with Ctrl-y.
4607
fc4c4fdd
VS
46082013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4609
4610 Detach optional parts of gfxterm and integrate in with coreboot init.
4611
6570b205
VS
46122013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4613
4614 Move blit and fill dispatcher to appropriate files to decrease export
4615 and relocation overhead.
4616
b8323067
VS
46172013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4618
4619 * grub-core/font/font.c, include/grub/font.h: Inline simple font
4620 functions.
4621
3cc1878f
VS
46222013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4623
4624 * grub-core/Makefile.am: Fix compilation problem with some
4625 automake versions.
4626
4b80e43c
VS
46272013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
4630
57e0c20c
VS
46312013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
4634 automake versions.
4635
4fd42c53
VS
46362013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
4639 SSDT.
4640
1e908b34
RS
46412013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
4642
4643 * grub-core/partmap/dfly.c: New partition map.
4644
1359e474
VS
46452013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4646
4647 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
4648 checking.
4649 Reported by: Francesco Lavra.
4650
17806392
AB
46512013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
4652
4653 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
4654 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
4655 false conditions.
4656 * conf/Makefile.common: define dist_grubconf_DATA
4657
cdce14fa
VS
46582013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4659
4660 Progressively skip menu elements on small terminals rather
4661 than crashing.
4662
c8d6cc3c
VS
46632013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4666 to avoid losing last column.
4667
a73b31ce
VS
46682013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * po/exclude.pot: Add missing string "%C".
4671
1202c764
VS
46722013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4673
4674 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
4675 after the test.
4676
50268344
VS
46772013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 * util/grub-install.in: Gettextize "Not found" message.
4680
62b15edf
VS
46812013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 Fix distfiles list.
4684 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4685
46862013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
4687
4688 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
4689 present.
4690 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
4691
709ad61b
VS
46922013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4693
4694 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
4695
d128901a
VS
46962013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
4699 attribute since structure is not necessarily aligned.
4700
34b22f5c
AB
47012013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
4702
4703 * docs/grub.texi (Device syntax): Clarify description of network
4704 drives.
4705
0f7e980b
VS
47062013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4707
4708 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
4709 for vasprintf presence.
4710
30b03dc2
VS
47112013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 * util/grub-install.in: Handle efibootmgr presence check.
4714 Reported by: Leif Lindholm.
4715
0dc11c08
VS
47162013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
4719 new strings to translate.
4720
f8024c3f
VS
47212013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
4724 yet another string (pun intended) to translate.
4725
b4c1da62
VS
47262013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 * po/POTFILES-shell.in: Autogenerate it.
4729
0ef7478b
VS
47302013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4731
4732 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
4733
8200fa15
VS
47342013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4735
4736 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
4737 misnomer.
4738
091945b2
AB
47392013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
4740
4741 * docs/grub.texi (Network): Add description of net_default_interface,
4742 net_default_ip and net_default_mac. Rewrite variables description
4743 to emphasize that they are per-interface.
4744
0e7b2e32
VS
47452013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 New test: cmdline and cat.
4748
16f7c8f6
VS
47492013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4750
4751 * grub-core/commands/cat.c: Show UTF-8 characters.
4752
3e912fda
VS
47532013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4754
4755 * conf/Makefile.common: Poison float and double on non-emu.
4756
ee0220bc
VS
47572013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4758
4759 * configure.ac: Don't disable extended registers on emu.
4760
89e0240c
VS
47612013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4762
4763 * configure.ac: Don't use extended registers on x86_64.
4764 Reported by: Peter Jones.
4765
e56d9637
VS
47662013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4767
4768 * grub-core/term/efi/console.c: Fix compile error.
4769
8098f655
VS
47702013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 Compressed HFS+ support.
4773
16940e07
VS
47742013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
4777 pixel".
4778
c5dbc13d
VS
47792013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4780
4781 Menu color test.
4782
011f8ae8
VS
47832013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4784
4785 * grub-core/tests/setjmp_test.c: New test.
4786
2aa072d7
VS
47872013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 New variables 'net_default_*' to determine MAC/IP of default interface.
4790
43fe02cb
VS
47912013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4792
4793 * tests/gettext_strings_test.in: A test to check for strings not
4794 marked for translation.
4795
bed06142
VS
47962013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4797
4798 * autogen.sh: Exclude unused libgcrypt files from translation.
4799
fb2666b5
VS
48002013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 Simplify few strings.
4803
d22840ec
VS
48042013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 Mark few forgotten strings for translation.
4807
e34092fd
VS
48082013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
4811 rather than printf.
4812
47cf82b4
VS
48132013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
4816 rather than printf.
4817 * grub-core/video/readers/tga.c: Likewise.
4818
1eed0e6e
VS
48192013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * tests/priority_queue_unit_test.cc: New test.
4822
c5b7697b
VS
48232013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4824
4825 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
4826 than printf.
4827
5945c2f8
AB
48282013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
4829
4830 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
4831 variable for one time boot menu entry.
4832
fa292343
B
48332013-05-05 Bean <bean123ch@gmail.com>
4834
4835 * grub-core/commands/testspeed.c: New command testspeed.
4836
310d4214
VS
48372013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 Factor-out human-size printing.
4840
85002bf3
VS
48412013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 Agglomerate more mallocs to speed-up gfxterm.
4844
22b06e96
VS
48452013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 Speed-up gfxterm by slightly agglomerating mallocs.
4848
b7c036bc
VS
48492013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 More video checks.
4852
92323d1f
VS
48532013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4854
4855 Speed-up gfxterm by saving intermediate results in index+alpha
4856 format.
4857
0fb356a3
VS
48582013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4859
4860 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
4861 test.
4862
44dea3f9
VS
48632013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4864
4865 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
4866 line of timeout as it may contain the rest of long line.
4867
14af86e4
VS
48682013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4869
4870 * grub-core/normal/main.c: Fix freed memory dereference.
4871
03f7c8c3
VS
48722013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 Fix several memory leaks.
4875
c686014c
VS
48762013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
4879
0788a695
VS
48802013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
4883
daf01d61
VS
48842013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4885
4886 Fix test -a and -o precedence.
4887 Reported by: adrian15.
4888
82ae74d7
VS
48892013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
4892
8cec7bd4
AB
48932013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
4894
4895 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
4896 and add it as source to functional_test module.
4897
aa73d688
VS
48982013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4899
4900 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
4901
c104b6f9
VS
49022013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4903
4904 New series of tests for gfxterm and gfxmenu.
4905
7391c4d5
VS
49062013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
4909 the theme path relative to $prefix/themes.
4910
cff50118
VS
49112013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4912
4913 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
4914 Fix order bug.
4915 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
4916
7c332bdc
VS
49172013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4918
4919 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
4920 descriptor.
4921
a4f9a5ff
VS
49222013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
4925 grub_gfxmenu_timeout_notifications.
4926 (grub_gfxmenu_view_destroy): Likewise.
4927
b5a2114d
VS
49282013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4929
4930 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
4931
a8905e8a
VS
49322013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 Several fixes to ieee1275 and big-endian video.
4935
813c1622
VS
49362013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4937
4938 Add missing exports on mips.
4939
3f3e7326
VS
49402013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4941
4942 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
4943 if no unifont is found.
4944 Restore original keyboard.
4945
095accd1
VS
49462013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4947
4948 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
4949 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
4950
50361660
VS
49512013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 First automated video test (running videotest and comparing results)
4954
cd0f6eec
VS
49552013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4956
4957 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
4958 instead of 2 to have full RGB/CMY test pattern.
4959
3f9634e5
VS
49602013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 Add few more tests.
4963
583e5b64
VS
49642013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
4965
4966 * include/grub/arc/arc.h: Account for missing "other" peripheral on
4967 ARCS. All users updated.
4968
aa7bcb99
VS
49692013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
4972
95ef1a54
VS
49732013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
4974
4975 * grub-core/partmap/amiga.c: Fix size of checksummed block.
4976
46546fc5
VS
49772013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
4978
4979 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
4980 Reported by: qwertial.
4981
3476e0ef
VT
49822013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
4983
4984 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
4985 with syntax "XXX deg"/"XXX °".
4986
96f33fed
VS
49872013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 Make PCI init in i386-qemu port more robust.
4990
49912013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
4992
4993 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
4994 cached view is reused.
4995 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
4996 open boot menus.
4997
c53b4e67
VS
49982013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
4999
5000 Unify more code in grub-install_header.
5001
f7457fb2
VS
50022013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 Add few new tests.
5005
e2f27a8c
VS
50062013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 Enforce disabling of firmware disk drivers when native drivers kick in.
5009
ef9d8cd5
VS
50102013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5011
5012 * grub-core/commands/nativedisk.c: Customize the list of modules on
5013 platform. Don't try to search for disks already using native drivers.
5014
f7bf6c31
VS
50152013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
5018 platforms.
5019
bdc4add8
VS
50202013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5021
5022 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
5023 handling of variables containing backslash.
5024
e9e46c9a
VS
50252013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5026
5027 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
5028 dereference.
5029 Reported by: qwertial.
5030
0e90dee8
VS
50312013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
5034
e0aacf24
VS
50352013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
5036
5037 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
5038 dereference.
5039 Reported by: qwertial.
5040
3c0003c3
VS
50412013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5042
5043 * docs/grub.texi: Add a comment about usefullness of nativedisk.
5044
adb7d667
VS
50452013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
5048
7cd0df84
VS
50492013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5050
5051 New command `nativedisk'.
5052
02adbb93
VS
50532013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5054
5055 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
5056 * grub-core/loader/i386/bsd.c: Likewise.
5057
9fb0fd4f
VS
50582013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5059
5060 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
5061
bd69257a
VS
50622013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5063
5064 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
5065 grub_get_unaligned16 rather than shifts.
5066
178c2764
VS
50672013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 * grub-core/kern/file.c: Use const char * rather than casting to
5070 non-const.
5071
eadfad24
VS
50722013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5073
5074 * grub-core/commands/probe.c: Add missing grub_device_close.
5075
9f73ebd4
VS
50762013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5077
5078 * INSTALL: Document linguas.sh.
5079
965fa829
VS
50802013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 Remove POTFILES.in and regenerate it in autogen.sh.
5083
d417ddc4
VS
50842013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5085
5086 Move --directory/--override-directorry to grub-install_header and unify.
5087
f97ec546
VS
50882013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
5089
5090 * grub-core/term/morse.c: Macroify dih and dah.
5091
b2d7470c
PFS
50922013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5093
5094 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
5095
141e2a78
VS
50962013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5097
5098 * grub-core/term/ns8250.c: Systematically probe ports by writing
5099 to SR before using them.
5100
1dd70ebd
PFS
51012013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5102
5103 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
5104 disks.
5105 (check_sas): Get sas_adress info.
5106
c796a107
VS
51072013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5108
5109 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
5110 ports.
5111
43168646
LD
51122013-04-27 Leon Drugi <eyak>
5113
5114 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
5115 BSS clearing.
5116
e7b8fd08
VS
51172013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5118
5119 Core compression test.
5120
17f9fd29
VS
51212013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5122
5123 Implement grub_machine_get_bootlocation for ARC.
5124
dc2a6c8b
VS
51252013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5126
5127 Improve AHCI detection and command issuing.
5128
f25a2ba6
VS
51292013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 Fix pseries test.
5132
a6393224
VS
51332013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5134
5135 Make 'make check' work on emu.
5136
db99fbe8
VS
51372013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5138
5139 Replace libcurses with our own vt100 handling for the ease of testing
5140 and decreasing prerequisites.
5141
b24ca7cd
VS
51422013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5143
5144 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
5145
63314aa4
VS
51462013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
5149 compile when not needed.
5150
c1b00fff
VS
51512013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5152
5153 * tests/pseries_test.in: New test.
5154
f93e89ef
VS
51552013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 Add test to check that different boot mediums work.
5158
c4b456d3
VS
51592013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
5162 ofw limited ISO support.
5163
5fe67f39
VS
51642013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 * configure.ac: Fix loongson conditional.
5167
7f63a64f
VS
51682013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 Enable mipsel-arc.
5171
b04b5990
VS
51722013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 Add serial on ARC platform.
5175
88d2f302
VS
51762013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5177
5178 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
5179 commit.
5180
86eb23bc
VS
51812013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5182
5183 * tests/partmap_test.in: Add missing double semicolon.
5184
eec3bb75
VS
51852013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5186
5187 * util/grub-mkrescue.in: Fix loongson filename.
5188
e0810df3
VS
51892013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 * util/grub-mkrescue.in: Move all files that don't have a location
5192 set in stone under /boot/grub. Use ISO hard links rather than copies
5193 to save some space.
5194
65a6b30b
VS
51952013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5196
5197 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
5198 bogus SLOF values.
5199
6aff0107
VS
52002013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5201
5202 Make check work on mips-arc.
5203
5e013e56
VS
52042013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5205
5206 * util/grub-mkrescue.in: Alias sashARCS as sash.
5207
d1989e2e
VS
52082013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5209
5210 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
5211 it's serial.
5212
1a25e72c
VS
52132013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5214
5215 * util/grub-install.in: Fix target fo qemu_mips.
5216 Fix extension on EFI.
5217
a59a9826
VS
52182013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5219
5220 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
5221 in front of chosen entry to mark it even if highlighting is lost.
5222
1a40f80c
VS
52232013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5224
5225 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
5226 gfxpayload=keep if cbfb is active.
5227
e343549c
VS
52282013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5229
5230 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
5231
45fbd9a2
VS
52322013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5233
5234 Add missing video ids to coreboot and ieee1275 video.
5235
ab1440bd
VS
52362013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5237
5238 * util/grub-mkrescue.in: Add mips-arc support.
5239
cdeb8324
VS
52402013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
5243
8528c879
VS
52442013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
5245
5246 Move mips-arc link address. Previous link address was chosen
5247 in belief that RAM on SGI platforms grows down while in fact it
5248 grows up from an unusual base.
5249
17fca573
VS
52502013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5251
5252 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
5253 Fix a type which prevented CD-ROM and floppy boot.
5254
d178788e
VS
52552013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5256
5257 Support coreboot framebuffer.
5258
5259 * grub-core/video/i386/coreboot/cbfb.c: New file.
5260
fe4c3e7e
VS
52612013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5262
5263 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
5264 detecting too small regions.
5265
ec2dd179
VS
52662013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
5269
872dac83
VS
52702013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
5273 Remove dprintf.
5274 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
5275
90ec4b7f
VS
52762013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5277
5278 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
5279 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
5280 * grub-core/loader/powerpc/ieee1275/linux.c
5281 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
5282
f32555dd
VS
52832013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5284
5285 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
5286 Look for /boot-rom as well as /rom/boot-rom.
5287
38649799
VS
52882013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
5291 handling when creating text_layer failed.
5292 * grub-core/video/video.c (grub_video_create_render_target):
5293 Set result to 0 on error.
5294 (grub_video_delete_render_target): Do not dereference NULL.
5295
aeace7f7
VS
52962013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5297
5298 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
5299 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
5300 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
5301 (grub_linux_load64): Mask out 2 high bits.
5302
4eafa175
AB
53032013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
5304
5305 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
5306 more place.
5307
daaa64bd
VS
53082013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5309
5310 Add support for pseries and other bootinfo machines to grub-mkrescue.
5311
5312 Tested by: Paulo Flabiano Smorigo.
5313
d0d2daa6
VS
53142013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5315
5316 * util/grub-mkrescue.in: Add GPT for EFI boot.
5317
b193e100
VS
53182013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5319
5320 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
5321 It improves performance in qemu.
5322
a0f8f3ac
VS
53232013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5324
5325 * build-aux/snippet: Add missing gnulib files.
5326
284df0e2
AB
53272013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
5328
5329 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
5330
740201f3
AB
53312013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
5332
5333 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
5334
a7e03923
PJ
53352013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
53362013-04-15 Peter Jones <pjones@redhat.com>
5337
5338 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
5339 sectors.
5340 Based on patch by Peter Jones.
5341
25fc51a8
VS
53422013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5343
5344 Fix DMRAID partition handling.
5345
88017d47
VS
53462013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5347
5348 * tests/grub_cmd_date.in: Skip on sparc64.
5349
fa7d914e
VS
53502013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5351
5352 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
5353 firmware error messages.
5354
cbe57a48
VS
53552013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
5358 source and destination differ.
5359
21aecce0
VS
53602013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5361
5362 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
5363 detection.
5364
25092d29
VS
53652013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5366
5367 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
5368 match config-util.h to avoid warnings and increase compatibility.
5369
79451522 53702013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 53712013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
5372
5373 Add option to compress files on install/image creation.
5374
78b7d77b
VS
53752013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 * docs/grub-dev.texi: Rearrange menu to match the section order.
5378 Reported by: Bryan Hundven.
5379
cc2fa5ec
VS
53802013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5381
5382 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
5383
b49fe879
VS
53842013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5385
5386 Move GRUB out of system area when using xorriso 1.2.9 or later.
5387
5351da81
VS
53882013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 * tests/grub_cmd_date.in: Add missing exit 1.
5391
c9d586ea
VS
53922013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * tests/partmap_test.in: Skip on sparc64.
5395
3f729741
VS
53962013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5397
5398 Support grub-shell on sparc64.
5399
8ca86b3a
VS
54002013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5401
5402 Support mkrescue on sparc64.
5403
aa1af9bb
VS
54042013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5405
5406 Allow IEEE1275 ports on path even if it wasn't detected automatically.
5407 Needed on OpenBIOS due to incomplete device tree.
5408
ac4fea79
VS
54092013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5410
5411 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
5412 would be otherwise excluded.
5413
54142013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
5415
5416 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
5417 Inline name defines used only once.
5418
fe22b071
VS
54192013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 Fix memory leaks in ofnet.
5422 Reported by: Francesco Lavra.
5423
9d21381b
VS
54242013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5425
5426 * docs/man/grub-glue-efi.h2m: Add missing file.
5427
07aec23c
VS
54282013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5429
5430 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
5431
67ab8353
VS
54322013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5433
5434 Better support Apple Intel Macs on CD.
5435
ba44ca6d
VS
54362013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5437
5438 Replace stpcpy with grub_stpcpy in tools.
5439
bbdd6305
VS
54402013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5441
5442 Handle Japanese special keys.
5443 Reported by: Hiroyuki YAMAMORI.
5444 Codes supplied by: Hiroyuki YAMAMORI.
5445
8573d302
VS
54462013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5447
5448 * util/grub-mkimage.c: Document memdisk implying --prefix.
5449
d70dbab7
VS
54502013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
5453 much we can do about it anyway.
5454
51a4c3e3
AN
54552013-04-12 Aleš Nesrsta <starous@volny.cz>
5456
5457 Fix handling of split transfers.
5458
92c8f58d
VS
54592013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5460
5461 * grub-core/net/http.c: Fix bad free.
5462
b7d17a49
VS
54632013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5464
5465 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
5466 than buffer size.
5467
a3d566d4
VS
54682013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 Disable partmap check on i386-ieee1275 due to openfirmware issues.
5471
a936af56
VS
54722013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5473
5474 * tests/util/grub-shell.in: Fix it on powerpc.
5475
51212234
VS
54762013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5477
5478 Turn off QEMU ACPI-way since new releases don't have shutdown port
5479 anymore.
5480
a21eec9e
VS
54812013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5482
5483 * docs/grub.texi: Update coreboot status info.
5484
e3734b84
VS
54852013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5486
5487 * tests/grub_cmd_date.in: New test for datetime.
5488
f9d40055
VS
54892013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
5490
5491 * tests/partmap_test.in: Fix missing qemudisk setting.
5492
dbc56d8f
VS
54932013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5494
5495 Support i386-ieee1275 grub-mkrescue and make check on it.
5496
a79b8a15
VS
54972013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5498
5499 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
5500 feature for it.
5501
48f39bb4
VS
55022013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5503
5504 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
5505 GRUB_CMDLINE_XEN_DEFAULT.
5506 Reported by: Marc Warne (GigaTux) <gigatux>
5507
053cfcdd
VS
55082013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5509
5510 Import new gnulib.
5511
93cd84df
VS
55122013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 Use ACPI shutdown intests as traditional port was removed.
5515
f4b1fa4f
AB
55162013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
5517
5518 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
5519 distinction.
5520
49818a59
VS
55212013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5522
5523 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
5524 Fix few warining messages and leaks while on it.
5525
9277a306
AB
55262013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
5527
5528 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
5529 links under grub-core/lib/libgcrypt-grub/mpi.
5530
d5e2a158
VS
55312013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 Fix ia64-efi image generation on big-endian machines. Deduplicate
5534 some code while on it.
5535 Reported by: Leif Lindholm.
5536
18866643
AB
55372013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
5538
5539 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
5540 as extra_dist.
5541
ca53deb8
AB
55422013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
5543
5544 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
5545
d4c4b8e1
BH
55462013-04-08 Bryan Hundven <bryanhundven@gmail.com>
5547
5548 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
5549 texinfo-5.1.
5550
47043f95
VS
55512013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * grub-core/normal/term.c: Few more fixes for menu entry editor
5554 rendering.
5555 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5556
a3216068
VS
55572013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5558
5559 * grub-core/normal/term.c: Few more fixes for menu entry editor
5560 rendering.
5561 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
5562
21026747
AB
55632013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
5564
5565 * conf/Makefile.extra-dist (EXTRA_DIST): Add
5566 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
5567
59624ca8
AB
55682013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
5569
5570 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
5571 instead of hardcoding grub.mo.
5572
1f44478c
FN
55732013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
5574
5575 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
5576
eeada7b1
VS
55772013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5578
5579 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
5580 grub-core/disk/geli.c.
5581
132867de
VS
55822013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * util/grub-mkfont.c: Prefer enum to #define.
5585
de73de17
VS
55862013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5587
5588 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
5589
1865baa7
VS
55902013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5591
5592 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
5593
ce7d92a9
VS
55942013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5595
5596 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
5597
52eab656
VS
55982013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5599
5600 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
5601
98b23b95
VS
56022013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5603
5604 * include/grub/bsdlabel.h: Use enums.
5605
0467a5dd
VS
56062013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 Move GRUB_CHAR_BIT to types.h.
5609
16cc9f03
AB
56102013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
5611
5612 * docs/grub.texi: Document more user commands.
5613
3152aecb
AB
56142013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
5615
5616 * docs/grub.texi: Document menuentry --id option.
5617
c506fc30
FL
56182013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
5619
5620 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
5621
aa428238
VS
56222013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5623
5624 Unify file copying setup across different install scripts. Add
5625 options for performing partial install.
5626
efe0cdda
PJ
56272013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
56282013-04-04 Peter Jones <pjones@redhat.com>
5629
5630 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
5631
f75835bd
VS
56322013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5633
5634 Use TSC as a possible time source on i386-ieee1275.
5635
2cd5ce6c
VS
56362013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5637
5638 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
5639 Init err.
5640
c9625630
VS
56412013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * util/grub-setup.c (setup): Handle some corner cases.
5644
be008941
VS
56452013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5646
5647 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
5648
1a78d573
VS
56492013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5650
5651 * grub-core/commands/verify.c: Save verified file to avoid it being
5652 tampered with after verification was done.
5653
db8ff59f
VS
56542013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5655
5656 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
5657 reported width by one to compensate for curesor algorithm problem.
5658
91bf46b1
VS
56592013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5660
5661 Fix screen corruption in menu entry editor and simplify the code
5662 flow while on it.
5663
a7b1d693
AB
56642013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
5665
5666 * util/grub-mount.c (fuse_init): Return error if fuse_main
5667 failed.
5668
31df9ad8
FL
56692013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
5670
5671 * include/grub/elf.h: Add missing ARM relocation codes and fix
5672 existing ones.
5673
07f392eb
VT
56742013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
5675
5676 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
5677
9efd73ec 56782013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
56792013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5680
5681 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
5682 into account when calculating radius.
5683
56842013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
5685
5686 * grub-core/gfxmenu/view.c: Fix off-by-one error.
5687
4985ddaa
VT
56882013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
5689
5690 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
5691
8c3635ff
RS
56922013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
5693
5694 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
5695 missing closing bracket.
5696
74a35e69
RS
56972013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
5698
5699 * INSTALL: Mention xorriso requirement.
5700
40f1c000
AB
57012013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
5702
5703 * grub-core/commands/verify.c: Fix hash algorithms values for
5704 the first three hashes - they start with 1, not with 0.
5705
e75fdee4
VS
57062013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5707
5708 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
5709 Try terminating EFI services several times due to quirks in some
5710 implementations.
5711
33028f4c
CW
57122013-03-26 Colin Watson <cjwatson@ubuntu.com>
5713
5714 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
5715 skipping Event, Device, Processor, PowerRes, ThermalZone, and
5716 BankField extended opcodes.
5717 (get_sleep_type): Add minimal scope handling (just enough to
5718 handle setting the scope to the root path).
5719 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
5720 * include/grub/acpi.h: Add enumeration values for Event, Device,
5721 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
5722
33871a10
VT
57232013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
5724
5725 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
5726 memory leak.
5727
8990963a
VS
57282013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 * grub-core/disk/ahci.c: Give more time for AHCI request.
5731
daae8f9e
VS
57322013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
5733
5734 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
5735 command.
5736
6a7fb94b
VS
57372013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
5738
5739 Replace the region at 0 from coreboot tables to available in BSD
5740 memory map.
5741
ff99babd
VS
57422013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
5745 non-BIOS platforms.
5746
30d6b1b2
VS
57472013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
5750 platforms.
5751
6ccd0b31
VS
57522013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
5755 handling of multi-device filesystems.
5756
23c9cc04
VS
57572013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5758
5759 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
5760 platforms.
5761
ce50dbd7
VS
57622013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5763
5764 Add new 'proc' filesystem framework and put luks_script into it.
5765
d975e8d5
VS
57662013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
5769 and qemu.
5770
e73ba5e8
VS
57712013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
5774
92750e4c
VS
57752013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 Add ability to generate newc additions on runtime.
5778
0ec45a68
VS
57792013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5780
5781 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
5782 description.
5783
320abd43
VS
57842013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5785
5786 * po/POTFILES.in: Regenerate.
5787
d7a6506e
VS
57882013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5789
5790 * grub-core/commands/verify.c (hashes): Add several hashes
5791 from the spec.
5792
8fe05def
VS
57932013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5794
5795 Slight improve in USB-related boot-time checkpoints.
5796
524e2766
VS
57972013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5798
5799 * grub-core/commands/boottime.c: Fix copyright header.
5800
cc19857a
VS
58012013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
5804 coreboot tables content. Support for cbmemc.
5805
ef8810e9
VS
58062013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5807
5808 Fix a conflict between ports structures with 2 controllers of
5809 same kind.
5810
e9dabdfa
VS
58112013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 * include/grub/boottime.h: Add missing file.
5814
f6df57d2
VS
58152013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5816
5817 Initialize USB ports in parallel to speed-up boot.
5818
d745dda7
VS
58192013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5820
5821 Fix USB devices not being detected when requested
5822 due to delayed attach.
5823
e5a2dd7b
VS
58242013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5825
e744219b
VS
5826 Implement boot time analysis framework.
5827
58282013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
5831 descriptor to just receive it as argument rather than endpoint
5832 address.
5833
5dd6f587
VS
58342013-03-19 Aleš Nesrsta <starous@volny.cz>
5835
5836 Better estimate the maximum USB transfer size.
5837
2f1071d5
VS
58382013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
5839
5840 Resend a packet if we got the wrong buffer in status.
5841
46ecfc49
VS
58422013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
5845 multiplication rather than division.
5846
ea811130
VS
58472013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5848
5849 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
5850 than divisions.
5851
d2789cf0
VS
58522013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5853
5854 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
5855 operations to have intended shifts and not divisions.
5856
a9c94590
VS
58572013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5858
5859 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
5860 intended shifts rather than division.
5861
84cfe81b
VS
58622013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5863
5864 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
5865 computation for some years before epoch. Avode confusing division
5866 while on it.
5867
21344ef6
VS
58682013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5869
5870 * grub-core/video/i386/pc/vbe.c
5871 (grub_video_vbe_print_adapter_specific_info): Replace division by
5872 shifts.
5873
3f2b4d1a
VS
58742013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5875
5876 Adjust types in gdb module to have intended unsigned shifts rather than
5877 signed divisions.
5878
3dac5878
VS
58792013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5880
5881 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
5882 maximum size is 4G - 1 on hfs
5883
5341c0fb
VS
58842013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
5887
fc3ff2a2
VS
58882013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5889
5890 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
5891 function.
5892
81455e8e
AB
58932013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
5894
5895 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
5896 causing gcc error with gcc 4.7.1.
5897
efd4f117
NZ
58982013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
5899
5900 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
5901 dereference null pointer. While the code is technically correct, gcc
5902 may eliminate a null check if pointer is already dereferenced.
5903
e11645f4
NZ
59042013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
5905
5906 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
5907 OOM check.
5908 * grub-core/normal/term.c (read_terminal_list): Likewise.
5909
77468368
VS
59102013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
5911
5912 Lift up core size limits on some platforms. Fix potential memory
5913 corruption with big core on small memory systems. Document remaining
5914 limits.
5915
f6b58fe5
VS
59162013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5917
5918 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
5919 gotoxy to 0,0.
5920
19ce697d
VS
59212013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5922
5923 Remove all trampoline support. Add -Wtrampolines when
5924 present. Remove symbols used for trampolines to make
5925 link fail if trampolines are present.
5926
73b5d90f
VS
59272013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5928
5929 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
5930 append out of its parent.
5931
cb758e96
VS
59322013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5933
5934 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
5935 parent.
5936
3188131f
VS
59372013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5938
5939 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
5940 all vars to a macro. All users updated.
5941
e42b2514
VS
59422013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5943
5944 * grub-core/disk/ieee1275/nand.c: Fix compilation on
5945 i386-ieee1275.
5946
83e1a1a1
VS
59472013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5948
5949 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
5950
1d5a880f
VS
59512013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
5954
6e4146c4
VS
59552013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5956
5957 Move to more hookless approach in IEEE1275 devices handling.
5958
99fcda8a
VS
59592013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5960
5961 * grub-core/kern/term.c (grub_term_normal_color),
5962 (grub_term_highlight_color): Add back lost defaults.
5963
73bf57e2
VS
59642013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5965
5966 Make elfload not use hooks. Opt for flags and iterators instead.
5967
7f8c105f
VS
59682013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
5971 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
5972
396d4091
VS
59732013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * grub-core/script/execute.c (gettext_append): Remove nested functions.
5976
59772013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
5980 hook pass-through parameter. All users updated and unnested.
5981
74a27421
VS
59822013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
5985 out of its parent.
5986
b46d4213
VS
59872013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * grub-core/fs/hfs.c: Remove nested functions.
5990
e114c3cc
VS
59912013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
5994 the context through.
5995 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
5996
f9b7d780
VS
59972013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * util/grub-editenv.c (list_variables): Move print_var out of its
6000 parent.
6001
ca9c2608
VS
60022013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6003
6004 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
6005 function.
6006
5d983f5f
VS
60072013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 * grub-core/gentrigtables.c: Make tables const.
6010
3056d3e7
VS
60112013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 Remove nested functions from videoinfo iterators.
6014
e2303774
VS
60152013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6016
6017 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
6018 for 64-bit platforms.
6019
f42e3a2f
VS
60202013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6021
6022 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
6023 a FOR_CHILDREN macro.
6024
be174e5e
VS
60252013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6026
6027 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
6028 platform from firmware path.
6029
0789b672
VS
60302013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6031
6032 Enable linux16 on non-BIOS systems for i.a. memtest.
6033
6034 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
6035 correctly.
6036 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
6037
005a9c32
VS
60382013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6039
6040 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
6041 Fix end of table condition.
6042
ff2b3cd9
VS
60432013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
6046 out of its parent.
6047
4fc40ff8
VS
60482013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 * grub-core/fs/jfs.c: Remove nested functions.
6051
be42d97a
VS
60522013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6053
6054 * grub-core/fs/minix.c: Remove nested functions.
6055
99373ce4
VS
60562013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6057
6058 * grub-core/fs/iso9660.c: Remove nested functions.
6059
5aec2afe
VS
60602013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
6063 of parent function.
6064
6c69e691
VS
60652013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * util/grub-fstest.c: Remove nested functions.
6068
43c91882
VS
60692013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6070
6071 * grub-core/loader/machoXX.c: Remove nested functions.
6072
4eb8b756
CW
60732013-02-27 Colin Watson <cjwatson@ubuntu.com>
6074
6075 Remove nested functions from disk and file read hooks.
6076
6077 * include/grub/disk.h (grub_disk_read_hook_t): New type.
6078 (struct grub_disk): Add read_hook_data member.
6079 * include/grub/file.h (struct grub_file): Likewise.
6080 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
6081 argument.
6082
6083 Update all callers.
6084
df6da5a5
AB
60852012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
6086
6087 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
6088 Fix off by one error in enumerating extended partitions.
6089
21aecde5
AB
60902013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
6091
6092 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
6093 memory leak if device name is not found.
6094
f1a19118
AB
60952013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6096
6097 * grub-core/normal/menu_entry.c (update_screen): remove
6098 unused variable `off' which caused scroll down arrow to be always shown.
6099
958bfd20
AB
61002013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6101
6102 * grub-core/normal/menu_entry.c (insert_string): fix off by one
6103 access to unallocated memory.
6104
b7b78edb
AB
61052013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
6106
6107 * Makefile.util.def: Add partmap/msdos.c to common library.
6108 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
6109 * grub-core/disk/ldm.c: Check for existence of
6110 GRUB_PC_PARTITION_TYPE_LDM.
6111
28d468d6
VS
61122013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6113
6114 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
6115 sizes and display sector size.
6116
d55ffb02
VS
61172013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 Implement new command cmosdump.
6120
b5ea6ce0
VS
61212013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6122
6123 Support Openfirmware disks with non-512B sectors.
6124
6125 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
6126 size of the disk.
6127 * (grub_ofdisk_get_block_size): New function.
6128 * (grub_ofdisk_prepare): Use the correct block size.
6129 * (grub_ofdisk_read): Likewise.
6130 * (grub_ofdisk_write): Likewise.
6131 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
6132 New proto.
6133
cc0e476f
VS
61342013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
6135
6136 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
6137
c5dbdc33
VS
61382013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
6141 on first error.
6142
3f078c0f
VS
61432013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
6146 freeing it.
6147
66a93674
VS
61482013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6149
6150 Implement USBDebug (full USB stack variant).
6151
c9f0c134
VS
61522013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6153
6154 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
6155 unless they have unexpected values.
6156
cfe1288b
VS
61572013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6158
6159 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
6160 grub_print_error.
6161
e42b9969
VS
61622013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6163
6164 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
6165 zero-out of port structure.
6166
cf94fd62
VS
61672013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6168
6169 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
6170 of extended attributes.
6171
f81ef4b5
AB
61722013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
6173
6174 * util/grub-install.in: change misleading comment about
6175 device.map creation
6176
af18fdb4
VS
61772013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6178
6179 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
6180 when menu highlight color isn't set.
6181
08bcec50
M
61822013-01-27 C. Masloch <pushbx@38.de>
6183
6184 Improve FreeDOS direct loading support compatibility.
6185
6186 * include/grub/i386/relocator.h (grub_relocator16_state):
6187 New member ebp.
6188 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
6189 variable.
6190 (grub_relocator16_boot): Handle %ebp.
6191 * grub-core/lib/i386/relocator16.S: Likewise.
6192 * grub-core/loader/i386/pc/freedos.c:
6193 Load BPB to pass kernel which partition to load from.
6194 Check that kernel file is not too large.
6195 Set register dl to BIOS unit number as well.
6196
7782b8a6
CW
61972013-01-22 Colin Watson <cjwatson@ubuntu.com>
6198
6199 * util/grub-reboot.in (usage): Document the need for
6200 GRUB_DEFAULT=saved.
6201 * util/grub-set-default.in (usage): Likewise.
6202 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
6203
e661c180
VS
62042013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6205
6206 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
6207 than defining WORDS_BIGENDIAN manually.
6208
1c22ca9a
VS
62092013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6210
6211 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
6212 invariants.
6213
d44892fe
CW
62142013-01-21 Colin Watson <cjwatson@ubuntu.com>
6215
6216 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
6217 nested.
6218 (blit_comb: add_device_width): Likewise.
6219
5fdbaed1
CW
62202013-01-21 Colin Watson <cjwatson@ubuntu.com>
6221
6222 Remove nested functions from USB iterators.
6223
6224 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
6225 (grub_usb_controller_iterate_hook_t): Likewise.
6226 (grub_usb_iterate): Add hook_data argument.
6227 (grub_usb_controller_iterate): Likewise.
6228 (struct grub_usb_controller_dev.iterate): Likewise.
6229
6230 Update all implementations and callers.
6231
4250985a
VS
62322013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6233
6234 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
6235 margin when not needed.
6236
7d8848f3
VS
62372013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6238
bc136973 6239 Make color variables global instead of it being per-terminal.
7d8848f3
VS
6240
62412013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6242
bc136973
VS
6243 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
6244 asterisk.
7d8848f3 6245
ed12a003
CW
62462013-01-21 Colin Watson <cjwatson@ubuntu.com>
6247
6248 Fix powerpc and sparc64 build failures caused by un-nesting memory
6249 map iterators.
6250
6a0db449
CW
62512013-01-21 Colin Watson <cjwatson@ubuntu.com>
6252
6253 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
6254 parameter declarations.
6255
ccd86b21
VS
62562013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6257
6258 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
6259
822b726b
VS
62602013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 Improve spkmomdem reliability by adding a separator between bytes.
6263
115c2cc1
CW
62642013-01-21 Colin Watson <cjwatson@ubuntu.com>
6265
6266 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
6267 an Acer registration utility with several sightings in the wild.
6268 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
6269
fc524edf
CW
62702013-01-21 Colin Watson <cjwatson@ubuntu.com>
6271
6272 Remove nested functions from filesystem directory iterators.
6273
6274 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
6275 (struct grub_fs.dir): Add hook_data argument.
6276
6277 Update all implementations and callers.
6278
53d3e4e3
CW
62792013-01-21 Colin Watson <cjwatson@ubuntu.com>
6280
6281 * docs/grub.texi (Multi-boot manual config): Fix typo for
6282 "recommended".
6283
c821711f
LL
62842013-01-20 Leif Lindholm <leif.lindholm@arm.com>
6285
6286 * util/grub-mkimage.c (main): Postpone freeing arguments.output
6287 until after its use in generate_image.
6288
6a0debbd
CW
62892013-01-20 Colin Watson <cjwatson@ubuntu.com>
6290
6291 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
6292 initrd size to addr_min, since the initrd will be allocated after
6293 this address.
6294
f41e08db
AB
62952013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
6296
6297 * conf/Makefile.common: Fix autogen rules to pass definition
6298 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
6299
77529e0f
LL
63002013-01-20 Leif Lindholm <leif.lindholm@arm.com>
6301
6302 * include/grub/elf.h: Update ARM definitions based on binutils.
6303
b879aa7b
VS
63042013-01-20 Aleš Nesrsta <starous@volny.cz>
6305
6306 Split long USB transfers into short ones.
6307
8eb8284d
AB
63082013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
6309
6310 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
6311 is interrupted by ESC.
6312
08dad2dc
VS
63132013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6314
6315 * util/grub-script-check.c (main): Uniform the error message.
6316
6c724b85
CW
63172013-01-20 Colin Watson <cjwatson@ubuntu.com>
6318
6319 Remove nested functions from ELF iterators.
6320
25239370
CW
63212013-01-20 Colin Watson <cjwatson@ubuntu.com>
6322
6323 Remove nested functions from device iterators.
6324
6325 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
6326 (grub_arc_iterate_devs): Add hook_data argument.
6327 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
6328 (struct grub_ata_dev.iterate): Add hook_data argument.
6329 * include/grub/device.h (grub_device_iterate_hook_t): New type.
6330 (grub_device_iterate): Add hook_data argument.
6331 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
6332 (struct grub_disk_dev.iterate): Add hook_data argument.
6333 (grub_disk_dev_iterate): Likewise.
6334 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
6335 Likewise.
6336 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
6337 Likewise.
6338 * include/grub/partition.h (grub_partition_iterate_hook_t): New
6339 type.
6340 (struct grub_partition_map.iterate): Add hook_data argument.
6341 (grub_partition_iterate): Likewise.
6342 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
6343 (struct grub_scsi_dev.iterate): Add hook_data argument.
6344
6345 Update all callers.
6346
6c0314d6
CW
63472013-01-20 Colin Watson <cjwatson@ubuntu.com>
6348
6349 Fix typos for "developer" and "development".
6350
600dc5f1
VS
63512013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6352
6353 Add license header to spkmodem-recv.c.
6354
17334a6b
VS
63552013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
6356
6357 Rewrite spkmodem to use PIT for timing. Double the speed.
6358
7d462559
VS
63592013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 Add new command pcidump.
6362
b78d6c32
VS
63632013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 New terminal outputs using serial: morse and spkmodem.
6366
34f71cb8
VS
63672013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6368
6369 Improve bidi handling in entry editor.
6370
4542e71b
VS
63712013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6372
6373 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6374 argument to prevent name collision.
6375
09fd6d82
CW
63762013-01-15 Colin Watson <cjwatson@ubuntu.com>
6377
6378 Remove nested functions from script reading and parsing.
6379
6380 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
6381 getline_data argument, passed to getline.
6382 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
6383 getline_data argument, passed to grub_parser_split_cmdline.
6384 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
6385 lexerstate->getline_data to lexerstate->getline.
6386 (grub_script_lexer_init): Add getline_data argument, saved in
6387 lexerstate->getline_data.
6388 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
6389 argument, passed to grub_script_parse.
6390 * grub-core/script/script.c (grub_script_parse): Add getline_data
6391 argument, passed to grub_script_lexer_init.
6392 * include/grub/parser.h (grub_parser_split_cmdline): Update
6393 prototype. Update all callers to pass appropriate getline data.
6394 (struct grub_parser.parse_line): Likewise.
6395 (grub_rescue_parse_line): Likewise.
6396 * include/grub/reader.h (grub_reader_getline_t): Add void *
6397 argument.
6398 * include/grub/script_sh.h (struct grub_lexer_param): Add
6399 getline_data member.
6400 (grub_script_parse): Update prototype. Update all callers to pass
6401 appropriate getline data.
6402 (grub_script_lexer_init): Likewise.
6403 (grub_normal_parse_line): Likewise.
6404
6405 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
6406 data argument.
6407 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
6408 static instead of nested. Rename to ...
6409 (grub_parser_execute_getline): ... this.
6410 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
6411 data argument.
6412 * grub-core/normal/main.c (read_config_file: getline): Make static
6413 instead of nested. Rename to ...
6414 (read_config_file_getline): ... this.
6415 (grub_normal_read_line): Add unused data argument.
6416 * grub-core/script/execute.c (grub_script_execute_sourcecode:
6417 getline): Make static instead of nested. Rename to ...
6418 (grub_script_execute_sourcecode_getline): ... this.
6419 * util/grub-script-check.c (main: get_config_line): Make static
6420 instead of nested.
6421
d0d4b8a0
CW
64222013-01-15 Colin Watson <cjwatson@ubuntu.com>
6423
6424 Remove nested functions from memory map iterators.
6425
6426 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
6427 argument, passed to hook.
6428 * grub-core/kern/i386/coreboot/mmap.c
6429 (grub_linuxbios_table_iterate): Likewise.
6430 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
6431 instead of nested.
6432 (grub_machine_mmap_iterate): Add hook_data argument.
6433 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
6434 Add hook_data argument, passed to hook.
6435 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
6436 Likewise.
6437 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
6438 Likewise.
6439 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
6440 Likewise.
6441 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
6442 Likewise.
6443 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
6444 Likewise.
6445 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
6446 Likewise.
6447 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
6448 (grub_machine_mmap_iterate): Likewise.
6449 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
6450 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
6451 prototype.
6452 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
6453 Remove NESTED_FUNC_ATTR from here and from all users.
6454 (grub_mmap_iterate): Update prototype.
6455 (grub_efi_mmap_iterate): Update prototype. Update all callers to
6456 pass appropriate hook data.
6457 (grub_machine_mmap_iterate): Likewise.
6458
6459 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
6460 static instead of nested.
6461 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
6462 Rename to ...
6463 (lsmmap_hook): ... this.
6464 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
6465 Likewise.
6466 (grub_efiemu_mmap_fill: fill_hook): Likewise.
6467 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
6468 heap_init): Likewise.
6469 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
6470 Rename to ...
6471 (mmap_iterate_hook): ... this.
6472 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
6473 Likewise.
6474 * grub-core/lib/ieee1275/relocator.c
6475 (grub_relocator_firmware_get_max_events: count): Likewise.
6476 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
6477 to ...
6478 (grub_relocator_firmware_fill_events_iter): ... this.
6479 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
6480 hook): Likewise. Rename to ...
6481 (grub_relocator_alloc_chunk_align_iter): ... this.
6482 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
6483 Rename to ...
6484 (generate_e820_mmap_iter): ... this.
6485 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
6486 Rename to ...
6487 (count_hook): ... this.
6488 (grub_linux_boot: hook): Likewise. Rename to ...
6489 (grub_linux_boot_mmap_find): ... this.
6490 (grub_linux_boot: hook_fill): Likewise. Rename to ...
6491 (grub_linux_boot_mmap_fill): ... this.
6492 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
6493 hook): Likewise. Rename to ...
6494 (grub_fill_multiboot_mmap_iter): ... this.
6495 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
6496 hook): Likewise. Rename to ...
6497 (count_hook): ... this.
6498 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
6499 hook): Likewise. Rename to ...
6500 (grub_fill_multiboot_mmap_iter): ... this.
6501 * grub-core/loader/powerpc/ieee1275/linux.c
6502 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
6503 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
6504 Likewise. Rename to ...
6505 (alloc_phys_choose): ... this.
6506 (determine_phys_base: get_physbase): Likewise.
6507 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
6508 find_hook): Likewise.
6509 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
6510 (malloc_hook: count_hook): Likewise.
6511 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
6512 Likewise. Rename to ...
6513 (lower_hook): ... this.
6514 (grub_mmap_get_upper: hook): Likewise. Rename to ...
6515 (upper_hook): ... this.
6516 (grub_mmap_get_post64: hook): Likewise. Rename to ...
6517 (post64_hook): ... this.
6518 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
6519 Likewise. Rename to ...
6520 (lower_hook): ... this.
6521 (grub_mmap_get_upper: hook): Likewise. Rename to ...
6522 (upper_hook): ... this.
6523 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
6524 (grub_mmap_iterate: fill_hook): Likewise.
6525 (fill_mask): Pass addr and mask within a single struct.
6526 (grub_cmd_badram: hook): Make static instead of nested. Rename
6527 to ...
6528 (badram_iter): ... this.
6529 (grub_cmd_cutmem: hook): Likewise. Rename to ...
6530 (cutmem_iter): ... this.
6531
22099030
VS
65322013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
6535 delimit path in strings using quotes.
6536 * util/getroot.c (grub_guess_root_devices): Likewise.
6537 (grub_make_system_path_relative_to_its_root): Likewise.
6538 * util/grub-probe.c (probe): Likewise.
6539 * util/ieee1275/ofpath.c (find_obppath): Likewise.
6540 (xrealpath): Likewise.
6541
4a9950ec
VS
65422013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6543
6544 Fix compilation with older compilers.
6545
6546 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
6547 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
6548 declarations.
6549 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
6550 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
6551 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
6552 identifier with b.
6553 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
6554 * include/grub/crypto.h: Add type defines.
6555 * util/import_gcrypth.sed: Remove duplicate type defines.
6556
adcc6020
VS
65572013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 New command list_trusted.
6560
6561 * grub-core/commands/verify.c (grub_cmd_list): New function.
6562
a4528937
CW
65632013-01-13 Colin Watson <cjwatson@ubuntu.com>
6564
6565 * util/grub-mkimage.c (generate_image): Fix "size of public key"
6566 info message.
6567
ca3a7446
CW
65682013-01-13 Colin Watson <cjwatson@ubuntu.com>
6569
6570 Remove nested functions from PCI iterators.
6571
6572 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
6573 passed to hook. Update all callers to pass appropriate hook data.
6574 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
6575 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
6576 Remove NESTED_FUNC_ATTR from here and from all users.
6577 (grub_pci_iterate): Update prototype.
6578 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
6579 instead of nested. Rename to ...
6580 (grub_cs5536_find_iter): ... this.
6581 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
6582 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
6583 Likewise.
6584 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
6585 Likewise.
6586 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
6587 Likewise.
6588 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
6589 Likewise.
6590 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
6591 * grub-core/video/radeon_fuloong2e.c
6592 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
6593 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
6594 find_card): Likewise.
6595 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
6596 Likewise.
6597
f8e98fee
VS
65982013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6599
6600 * grub-core/commands/verify.c: Mark messages for translating.
6601
055b36b6
VS
66022013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6603
6604 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
6605 fatal.
6606
f7ff879b
VS
66072013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
6610 fatal.
6611
66122013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
6613
6614 * autogen.sh: Do not try to delete nonexistant files.
6615 * util/import_gcrypth.sed: Add some missing header removals.
6616
01323d49
CW
66172013-01-12 Colin Watson <cjwatson@ubuntu.com>
6618
6619 Clean up dangling references to grub-setup.
6620 Fixes Ubuntu bug #1082045.
6621
6622 * docs/grub.texi (Images): Refer generally to grub-install rather
6623 than directly to grub-setup.
6624 (Installing GRUB using grub-install): Remove direct reference to
6625 grub-setup.
6626 (Device map) Likewise.
6627 (Invoking grub-install): Likewise.
6628 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
6629 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
6630 * util/grub-install.in (usage): Likewise.
6631
6632 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
6633 Apply to grub-bios-setup and grub-sparc64-setup rather than to
6634 grub-setup.
6635 * configure.ac: Remove grub_setup output variable.
6636
6637 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
6638 to grub-bios-setup.
6639 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
6640 grub-setup to grub-sparc64-setup.
6641
5e3b8dcb
VS
66422013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6643
6644 Import gcrypt public-key cryptography and implement signature checking.
6645
535714bd
VS
66462013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6647
6648 * grub-core/fs/ntfs.c: Ue more appropriate types.
6649 * grub-core/fs/ntfscomp.c: Likewise.
6650 * include/grub/ntfs.h: Likewise.
6651
3e4f3566
VS
66522013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 Support Apple FAT binaries on non-Apple platforms.
6655
6656 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
6657 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
6658 Likewise.
6659 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
6660 Apple FAT binaries.
6661
4dedb13f
VS
66622013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6663
6664 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
6665 sector devices.
6666
f8861eaf
CW
66672013-01-07 Colin Watson <cjwatson@ubuntu.com>
6668
6669 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
6670 explicitly zeroing elements.
6671 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
6672 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
6673 of elements in a structure already allocated using grub_zalloc.
6674 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
6675
86065b0a
CW
66762013-01-07 Colin Watson <cjwatson@ubuntu.com>
6677
6678 * docs/grub.texi (grub_cpu): New subsection.
6679 (grub_platform): Likewise.
6680
c6f1e92f
VS
66812013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6682
6683 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
6684
f797ec85
VS
66852013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6686
6687 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
6688 divisions.
6689
033d0b4b
VS
66902013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
6693 * grub-core/fs/ntfscomp.c: Likewise.
6694 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
6695 (grub_ntfs_comp): Likewise.
6696
21d1b9a0
VS
66972013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
6700 Rename to ...
6701 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
6702 of groups_per_block. All users updated.
6703
10ca8645
VS
67042013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6705
6706 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
6707 grub_error properly.
6708 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
6709 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
6710
a4c3ed4c
VS
67112013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
6714 always in /boot/zfs.
6715 Reported by: Yuta Satoh.
6716
0b716507
YS
67172013-01-03 Yuta Satoh <nigoro>
6718
6719 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
6720 ${grub_probe}
6721
00c05e22
VS
67222013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * configure.ac: Extend -Wno-trampolines to host.
6725
dadddb76
VS
67262013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
6729 entry->len = 0.
6730
54ce53ca
CW
67312013-01-03 Colin Watson <cjwatson@ubuntu.com>
6732
6733 * docs/grub.texi (Invoking grub-mkrelpath): New section.
6734 (Invoking grub-script-check): Likewise.
6735
8912efca
CW
67362013-01-03 Colin Watson <cjwatson@ubuntu.com>
6737
6738 * docs/grub.texi (Invoking grub-mount): New section.
6739 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
6740
c3fc8394
CW
67412013-01-02 Colin Watson <cjwatson@ubuntu.com>
6742
6743 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
6744 test failures, so that a failing unit test correctly causes 'make
6745 check' to fail.
6746
45d26abb
CW
67472013-01-02 Colin Watson <cjwatson@ubuntu.com>
6748
6749 Fix failing printf test.
6750
6751 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
6752 '$' in the correct order when collecting type information.
6753
971dd2c6
CW
67542013-01-02 Colin Watson <cjwatson@ubuntu.com>
6755
6756 * docs/grub.texi (configfile): Explain environment variable
6757 handling.
6758 (source): New section.
6759 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
6760
5c67ea6c
CW
67612012-12-31 Colin Watson <cjwatson@ubuntu.com>
6762
6763 Remove several trivially-unnecessary uses of nested functions.
6764
6765 * grub-core/commands/i386/pc/sendkey.c
6766 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
6767 instead of nested.
6768 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
6769 Rename to ...
6770 (legacy_file_getline): ... this.
6771 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
6772 Likewise.
6773 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
6774 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
6775 to ...
6776 (probe_dummy_iter): ... this.
6777 * grub-core/kern/i386/coreboot/mmap.c
6778 (grub_linuxbios_table_iterate: check_signature): Likewise.
6779 * grub-core/kern/parser.c (grub_parser_split_cmdline:
6780 check_varstate): Likewise. Mark inline.
6781 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
6782 an additional parameter.
6783 (find_long: fnd_long): Likewise. Pass two additional parameters.
6784 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
6785 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
6786 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
6787 Likewise. Rename to ...
6788 (grub_cmos_find_port_iter): ... this.
6789 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
6790 Rename to ...
6791 (find_rtc_iter): ... this.
6792
6793 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
6794 function directly into the function body, since it is only called
6795 once.
6796
33a68ac6
CW
67972012-12-30 Colin Watson <cjwatson@ubuntu.com>
6798
6799 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
6800 __attribute__ ((unused)).
6801 * grub-core/video/bochs.c (find_card): Likewise.
6802 * grub-core/video/cirrus.c (find_card): Likewise.
6803 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
6804 * grub-core/video/sis315pro.c (find_card): Likewise.
6805 * grub-core/video/sm712.c (find_card): Likewise.
6806
608b647a
CW
68072012-12-28 Colin Watson <cjwatson@ubuntu.com>
6808
6809 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
6810 Fixes Savannah bug #37821.
6811
fd49ceb3
CW
68122012-12-28 Colin Watson <cjwatson@ubuntu.com>
6813
6814 Apply program name transformations at build-time rather than at
6815 run-time. Fixes Debian bug #696465.
6816
6817 * acinclude.m4 (grub_TRANSFORM): New macro.
6818 * configure.ac: Create output variables with transformed names for
6819 most programs.
6820 * util/bash-completion.d/grub-completion.bash.in: Use
6821 pre-transformed variables for program names.
6822 * util/grub-install.in: Likewise.
6823 * util/grub-kbdcomp.in: Likewise.
6824 * util/grub-mkconfig.in: Likewise.
6825 * util/grub-mkconfig_lib.in: Likewise.
6826 * util/grub-mknetdir.in: Likewise.
6827 * util/grub-mkrescue.in: Likewise.
6828 * util/grub-mkstandalone.in: Likewise.
6829 * util/grub-reboot.in: Likewise.
6830 * util/grub-set-default.in: Likewise.
6831 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6832 * tests/util/grub-shell-tester.in: Remove unused assignment.
6833 * tests/util/grub-shell.in: Likewise.
6834 * util/grub.d/00_header.in: Likewise.
6835
7024b3c0
CW
68362012-12-28 Colin Watson <cjwatson@ubuntu.com>
6837
6838 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
6839
6840 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
6841 HAVE_RAW_DECL_GETS.
6842 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
6843
e3501b13
VS
68442012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
6847 Reported by: Eriks Latosheks <foresterlv>.
6848
b40c88a9
VS
68492012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 * docs/grub.texi (Network): Update instructions on generating netboot
6852 image.
6853
ce96d01c
VS
68542012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
6857 around device name if necessarry.
6858
0f596201
PFS
68592012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6860
6861 * util/grub-install.in: Follow the symbolic link parameter added
6862 to the file command.
6863
600d5bdb
AB
68642012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
6865
6866 * util/grub-install.in: Remove stale TODO.
6867
64ebd2f4
PFS
68682012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6869
6870 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
6871 dynamic allocation for the bootpath buffer.
6872
74b2fe3e
DTB
68732012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
6874
6875 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
6876 window too small.
6877
969b804f
VS
68782012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
6881 argument rather than font name. All users updated.
6882 (grub_gfxterm_set_window): Likewise.
6883
b9f5ebd6
VT
68842012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
6885
6886 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
6887 from working.
6888
258f43b7
VS
68892012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6890
6891 * util/getroot.c (convert_system_partition_to_system_disk): Support
6892 nbd disks.
6893
cc1ce5f9
VS
68942012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
6897 infinite loop on corrupted FS.
6898
e77a16ca
VS
68992012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 Fix big-endian mtime.
6902
6903 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
6904 together sec and usec.
6905 (grub_ufs_dir): Use correct byteswapping for UFS time.
6906
d9c48c7b
VS
69072012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
6908
6909 Support big-endian UFS1.
6910
6911 * Makefile.util.def (libgrubmods): Add ufs_be.c
6912 * grub-core/Makefile.core.def (ufs1_be): New module.
6913 * grub-core/fs/ufs_be.c: New file.
6914 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
6915 the file.
6916
2f9f40ba
LL
69172012-11-28 Leif Lindholm <leif.lindholm@arm.com>
6918
6919 * include/grub/types.h: Fix functionality unaffecting typo in
6920 GRUB_TARGET_WORDSIZE conditional macro.
6921
48ff0889
PFS
69222012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6923
6924 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
6925
03711240
GS
69262012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
6927
6928 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
6929 that /netbsd appears first (when it exists).
6930
a31b11bd
CJ
69312012-10-12 Christoph Junghans <ottxor@gentoo.org>
6932
6933 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
6934 Fixes Savannah bug #37558.
6935
e8a5d5d4
CW
69362012-10-12 Colin Watson <cjwatson@ubuntu.com>
6937
6938 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
6939 description of extract_entries_configfile.
6940
69412012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
6942
6943 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
6944 preferred_address.
6945 (grub_cmd_linux): Likewise.
6946 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
6947 preferred_lifetime. Update all users.
6948
288c757d
CW
69492012-09-26 Colin Watson <cjwatson@ubuntu.com>
6950
6951 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
6952 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
6953
0d35da3f
CW
69542012-09-26 Colin Watson <cjwatson@ubuntu.com>
6955
6956 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
6957 errors from grub-probe to /dev/null, not stdout.
6958
b78c3127
VS
69592012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
6960
6961 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
6962 sector 1.
6963
473959f0
CW
69642012-09-24 Colin Watson <cjwatson@ubuntu.com>
6965
6966 * util/grub-install.in: Make the error message if $source_dir
6967 doesn't exist more useful.
6968
794c8c33
CW
69692012-09-22 Colin Watson <cjwatson@ubuntu.com>
6970
6971 Fix grub-emu build on FreeBSD.
6972
6973 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
6974 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
6975 headers on Linux.
6976 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
6977 implementation is currently Linux-specific.
6978 * util/getroot.c (exec_pipe): Define only on Linux or when either
6979 libzfs or libnvpair is unavailable.
6980 (find_root_devices_from_poolname): Remove unused path variable.
6981
86d08fdb
CW
69822012-09-19 Colin Watson <cjwatson@ubuntu.com>
6983
6984 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
6985 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
6986 should fit before end == 63.
6987
735abf54
CW
69882012-09-19 Colin Watson <cjwatson@ubuntu.com>
6989
6990 * util/grub-setup.c (write_rootdev): Remove unused core_img
6991 parameter. Update all callers.
6992 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
6993 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
6994 GRUB_SETUP_BIOS.
6995
140acd3c
VS
69962012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
6997
6998 * util/grub-mkconfig_lib.in (grub_tab): New variable.
6999 (grub_add_tab): New function.
7000 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
7001 * util/grub.d/10_illumos.in: Likewise.
7002 * util/grub.d/10_kfreebsd.in: Likewise.
7003 * util/grub.d/10_linux.in: Likewise.
7004 * util/grub.d/10_netbsd.in: Likewise.
7005 * util/grub.d/10_windows.in: Likewise.
7006 * util/grub.d/10_xnu.in: Likewise.
7007 * util/grub.d/20_linux_xen.in: Likewise.
7008 * util/grub.d/30_os-prober.in: Likewise.
7009
7ddffdad
VS
70102012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7013 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
7014 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
7015 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
7016 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
7017 ieee1275-nocursor.
7018 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
7019 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
7020
4e092454
VS
70212012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7022
7023 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
7024 le-conversion.
7025 Reported by: BURETTE, Bernard.
7026
735abf54 70272012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
7028
7029 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
7030 from comment.
7031
dfd39dbd
CW
70322012-09-14 Colin Watson <cjwatson@ubuntu.com>
7033
7034 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
7035 IEEE1275 machines. Fixes powerpc-emu compilation.
7036 * include/grub/terminfo.h: Likewise.
7037
3bfa763c
VS
70382012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7039
7040 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
7041 a const pointer.
7042 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
7043 const pointer.
7044 (efiemu_set_variable): Make vendor_guid a const pointer.
7045
250e475b
VS
70462012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 Don't require grub-mkconfig_lib to generate manpages for programs.
7049
7050 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
7051 dependencies, don't add grub-mkconfig_lib.
7052 (program): Pass empty adddeps.
7053 (script): Pass grub-mkconfig_lib as adddeps.
7054
592fd0e4
VS
70552012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
7058 * util/getroot.c (grub_find_device): Likewise.
7059 (get_mdadm_uuid): Likewise.
7060 (grub_util_is_imsm): Likewise.
7061 (grub_util_pull_device): Likewise.
7062 * util/grub-probe.c (probe): Likewise.
7063
801a3027
BG
70642012-09-10 Benoit Gschwind <gschwind>
7065
7066 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
7067 (devs): Add devpath_8.
7068
c5052c81
PJ
70692012-09-08 Peter Jones <pjones@redhat.com>
7070
7071 * grub-core/Makefile.core.def (efifwsetup): New module.
7072 * grub-core/commands/efi/efifwsetup.c: New file.
7073 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
7074 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
7075 New define.
7076 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
7077
8e832f71
JS
70782012-09-05 Jiri Slaby <jslaby@suse.cz>
7079
7080 * configure.ac: Add SuSe path.
7081
f0f55752
CW
70822012-09-05 Colin Watson <cjwatson@ubuntu.com>
7083
7084 * NEWS: Fix typo.
7085
ecadc4c2
CW
70862012-09-05 Colin Watson <cjwatson@ubuntu.com>
7087
7088 * util/import_gcry.py: Sort cipher_files, to make build system
7089 generation more deterministic.
7090
64498f25
VS
70912012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7092
7093 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
7094 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
7095 (grub_set_datetime): Likewise.
7096
9cc836a2
VS
70972012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7098
7099 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
7100 warnings.
7101
bcfcea01
VS
71022012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7103
7104 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
7105
a4099485
VS
71062012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7107
7108 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
7109
265c162a
CW
71102012-09-04 Colin Watson <cjwatson@ubuntu.com>
7111
7112 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
7113 required for checkouts from bzr, but it may be useful for users or
7114 distributors wishing to update translations against a tarball
7115 distribution, and it can be helpful for the tarball to be a superset
7116 of what's in bzr.
7117
3d171e95
CW
71182012-09-04 Colin Watson <cjwatson@ubuntu.com>
7119
7120 * Makefile.am (EXTRA_DIST): Add
7121 grub-core/tests/boot/linux.init-mips.S,
7122 grub-core/tests/boot/linux.init-ppc.S, and
7123 grub-core/tests/boot/linux-ppc.cfg.
7124
f2c2503e
CW
71252012-09-04 Colin Watson <cjwatson@ubuntu.com>
7126
7127 * grub-core/mmap/mips/loongson: Remove empty directory.
7128
71292012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
7130
7131 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
7132 gone.
7133
ab2163d5
CW
71342012-09-04 Colin Watson <cjwatson@ubuntu.com>
7135
7136 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
7137 grub-sparc64-setup.
7138
ce938140
GS
71392012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7140
7141 * configure.ac: Strengthen the test for working -nostdinc -isystem.
7142
529f58a5
GS
71432012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7144
7145 * po/POTFILES.in: Regenerated.
7146
16cf79e9
GS
71472012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
7148
7149 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
7150 (NetBSD): New subsection.
7151
39b27f1e 71522012-07-22 Ales Nesrsta <starous@volny.cz>
7153
7154 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
7155 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
7156
a885261b
VS
71572012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
7160 * util/grub.d/10_hurd.in: Add missing quoting.
7161 * util/grub.d/10_illumos.in: Likewise.
7162 * util/grub.d/10_kfreebsd.in: Likewise.
7163 * util/grub.d/10_linux.in: Likewise.
7164 * util/grub.d/20_linux_xen.in: Likewise.
7165
7bd29c01
VS
71662012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7167
7168 New command `lsefi'.
7169
7170 * grub-core/Makefile.core.def (lsefi): New module.
7171 * grub-core/commands/efi/lsefi.c: New file.
7172 * include/grub/efi/api.h: Add more GUIDs.
7173
ac625d8f
VS
71742012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
7177 (grub_bsd_elf32_hook): Likewise.
7178 (grub_bsd_elf64_size_hook): Likewise.
7179 (grub_bsd_elf64_hook): Likewise.
7180 (grub_bsd_load_elf): Likewise.
7181
e73bb801
VS
71822012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7183
7184 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
7185 if hash function is unavailable.
7186 (dec_stream_header): Likewise.
7187
e81db8b5
VS
71882012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7189
7190 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
7191 filter state.
7192
d187a1c3
VS
71932012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
7194
7195 Fix coreboot compilation.
7196
7197 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
7198 (grub_vga_text_init_real): ... this.
7199 (grub_vga_text_fini): Rename to ...
7200 (grub_vga_text_fini_real): ... this.
7201
91a05f64
VS
72022012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7203
7204 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
7205
6af96df7
VS
72062012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7207
7208 * grub-core/lib/legacy_parse.c: Support clear and testload.
7209
4d569e12
VS
72102012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7211
7212 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
7213
073b57bb
VS
72142012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7215
7216 * grub-core/fs/ext2.c: Experimental support for 64-bit.
7217
a706f4cc
VS
72182012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 * grub-core/net/tftp.c (ack): Fix endianness problem.
7221 (tftp_receive): Likewise.
7222 Reported by: Michael Davidsaver.
7223
e7850aa9
VS
72242012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7225
7226 * gentpl.py: Make mans depend on grub-mkconfig_lib.
7227
72282012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7229
7230 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
7231 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
7232 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
7233
35692881
VS
72342012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7235
7236 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
7237 efi_mmap_size.
7238 Reported by: Stuart Hayes.
7239
c35fc5bd
VS
72402012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
7241
7242 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
7243
7244 * grub-core/Makefile.core.def (mda_text): New module.
7245 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
7246 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
7247 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
7248 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
7249 here.
7250 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
7251 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
7252 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
7253 here.
7254 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
7255 to ..
7256 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
7257 ... here
7258 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
7259 here.
7260 * grub-core/term/i386/vga_common.c: Removed.
7261 * include/grub/i386/vga_common.h: Likewise.
7262 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
7263 (grub_vga_cr_bw_read): Likewise.
7264 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
7265 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
7266 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
7267 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
7268 grub_vga_cr_read/grub_vga_cr_write.
7269 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
7270
5f91f701
VS
72712012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7272
7273 * configure.ac: Bump version to 2.00.
7274 * grub-core/normal/main.c (features): Add feature_200_final.
7275
0c4f85f6
VS
72762012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
72772012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
7278
7279 * NEWS: Fix unclarity and language mistakes.
7280
f923ad22
VS
72812012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
7284 additional size to 3 pages.
7285 Reported by: Stuart Hayes.
7286
d22029ba
VS
72872012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7288
7289 * NEWS: Add 2.00 entry.
7290
58eee08f
VS
72912012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7292
7293 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
7294 put explicit "/" for empty path.
7295 (wildcard_expand): Improve dprintf.
7296
c59bdff7
VS
72972012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
7300 it's equal to currnode. This can happen with "" symlink.
7301
5e6a440a
YB
73022012-06-27 Yves Blusseau <blusseau@zetam.org>
7303
7304 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
7305 echo shell command by printf command.
7306
73a68bcb
VS
73072012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
7310 the value returned by firmware is the maximal position, not diumension.
7311 (grub_terminfo_output_state): Use a more sane fallback.
7312
392a603b
VS
73132012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
7316
42d0867f
VS
73172012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
7320 frequency to 150 MHz.
7321
489509f4
VS
73222012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 Apple fixes.
7325
7326 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
7327 __APPLE_
7328 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
7329 definition.
7330 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
7331
9f3fc883
VS
73322012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 Handle slash in HFS label.
7335
7336 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
7337 (grub_hfs_dir): Tanslate slash.
7338 (grub_hfs_label): Don't translate slash.
7339
54853fd7
VS
73402012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
7343 network protocol listing since it introduces problematic dependency on
7344 net module.
7345
4dc02ddf
VS
73462012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7347
7348 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
7349
c50c867d
VS
73502012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 Init video early on yeeloong to avoid being rebooted by watchdog.
7353
7354 * grub-core/Makefile.am (gensm712): New target.
7355 (sm712_start.S): Likewise.
7356 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
7357 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
7358 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
7359 description.
7360 * include/grub/vga.h: Move registry definitions to...
7361 * include/grub/vgaregs.h: ... here.
7362
5f92c8a1
VS
73632012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
7366 signedness.
7367
e9e6f111
VS
73682012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
7371 platforms with firmware disk drivers in the core.
7372
754ad9eb
VS
73732012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
7376 informative verbose message.
7377 (read_lv): Handle 64-bit segment size.
7378
315654c2
VS
73792012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
7382
fb022c79
VS
73832012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7384
7385 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
7386 character but still remove trainling spaces.
7387 (grub_fat_label): Ignore archive flag.
7388
8645f72c
VS
73892012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7390
7391 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
7392 cast between linux_kernel_header and linux_kernel_params.
7393
36498496
VS
73942012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
7397 type for size.
7398 (grub_raid6_recover_func_t): Likewise.
7399 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
7400 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
7401
0b5ea6b8
VS
74022012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7403
7404 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
7405
650cfcfe
GS
74062012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
7407
7408 Fix overflow.
7409
7410 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
7411 [__NetBSD__]: Add explicit cast before bitshift.
7412
8a4d6a44
VS
74132012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * configure.ac: Bump to 2.00~rc1.
7416
2fb97ed3
VS
74172012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
7420 half of $a0.
7421
1fa097dc
VS
74222012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
74232012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
7424
7425 * docs/grub.texi: Fix search syntax.
7426 (Multi-boot manual config): Put msdos rather than GPT example.
7427 Grammar corrections.
7428
c890ba78
VS
74292012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7430
7431 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
7432
0f92dca7
VS
74332012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7434
7435 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
7436
3988c4a0
VS
74372012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
7440 message on double free. Put the value of magic in case of mismatch.
7441
9e86d4c5
VS
74422012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7443
7444 Speed-up video on yeeloong.
7445
7446 * grub-core/video/sm712.c (framebuffer): Remove render_target and
7447 add cached_ptr.
7448 (grub_video_sm712_video_fini): Unmap cached_ptr.
7449 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
7450 (grub_video_sm712_set_active_render_target): Removed.
7451 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
7452 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
7453 sync caches.
7454
ed24c312
VS
74552012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 Avoid flushing the same line multiple times on loongson.
7458
7459 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
7460 Step in 32 bytes and not 1 byte.
7461 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
7462 Likewise.
7463
d1718e7d
VS
74642012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7465
7466 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
7467 subvolumes.
7468
982f1909
VS
74692012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 Implement flow control for http.
7472
7473 * grub-core/net/http.c (parse_line): Handle response 206.
7474 (http_receive): Stall if too many packets are in the queue.
7475 (http_establish): Fix range header.
7476 (http_seek): Fix double free.
7477 (http_close): Likewise.
7478 (http_packets_pulled): New function.
7479 (grub_http_protocol): Set http_seek
7480 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
7481 (ack_real): Set window depending on i_stall.
7482 (grub_net_send_tcp_packet): Likewise.
7483 (grub_net_tcp_stall): New function.
7484 (grub_net_tcp_unstall): Likewise.
7485 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
7486 (grub_net_tcp_unstall): Likewise.
7487
bd407d6e
VS
74882012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7489
7490 * grub-core/net/tftp.c: Decrease stall to 50 packets.
7491
c7564b8e
VS
74922012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7493
7494 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
7495
a3706162
VS
74962012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7497
7498 * tests/util/grub-shell.in: Fix a typo.
7499
b27069e0
VS
75002012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 Implement flow control for tftp.
7503
7504 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
7505 packets but stop only if stop condition is satisfied.
7506 (grub_net_fs_read_real): Call packets_pulled after real read. Use
7507 `stall' instead of `eof' as stop condition.
7508 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
7509 (http_err): Likewise.
7510 * grub-core/net/tftp.c (ack): Replace the first argument with data
7511 instead of socket.
7512 (tftp_receive): Stall if too many packets are in wait queue.
7513 (tftp_packets_pulled): New function.
7514 (grub_tftp_protocol): Set packets_pulled.
7515 * include/grub/net.h (grub_net_packets): New field count.
7516 (grub_net_put_packet): Increment count.
7517 (grub_net_remove_packet): Likewise.
7518 (grub_net_app_protocol): New field `packets_pulled'.
7519 (grub_net): New field `stall'.
7520
6b9cfac6
VS
75212012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
7522
7523 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
7524 sync part to handle them.
7525
f35abd81
VS
75262012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7527
7528 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
7529 * grub-core/net/drivers/ieee1275/ofnet.c
7530 (grub_ieee1275_net_config_real): Likewise.
7531
0e7ec820
VS
75322012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7533
7534 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
7535 the direct route for server/gateway.
7536
9d611a31
VS
75372012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7538
7539 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
7540 IP address to server name since we may not hame the DNS.
7541
418f45ab
VS
75422012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7543
7544 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
7545 freeing random buffer on failure.
7546 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
7547
44a0efc1
VS
75482012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
7551
531e2241
VS
75522012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7553
7554 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
7555 reserved bytes.
7556 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
7557 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
7558 Handle malloc error correctly.
7559
cde393c9
VS
75602012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7561
7562 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
7563 blocks.
7564
538478d0
VS
75652012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7566
7567 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
7568 increment.
7569
9b55efe0
VS
75702012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7571
7572 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
7573 none is explicitly specified.
7574
9eb832c3
VS
75752012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7576
7577 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
7578 while reallocating.
7579
d6b7c7c9
VS
75802012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 Respect netmask from bootp/dhcp.
7583
7584 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
7585 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
7586 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
7587 into ...
7588 (grub_net_add_ipv4_local): ... this.
7589 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
7590 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
7591 (grub_net_add_ipv4_local): New proto.
7592
67caf9eb
VS
75932012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7594
7595 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
7596 determining EFI memory map size.
7597
43657558
VS
75982012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7599
7600 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
7601
eb6d0dd3
VS
76022012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7603
7604 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
7605 when looking for partition separator.
7606
31230544
VS
76072012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7610 Escape commas.
7611
918a2517
VS
76122012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7613
7614 Restructure FAT driver to avoid hook in label reading as it hits a
7615 GCC bug.
7616
7617 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
7618 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
7619 (grub_fat_iterate_dir): Split into ...
7620 (grub_fat_iterate_init): ... this, ...
7621 (grub_fat_iterate_fini): ... this, ...
7622 (grub_fat_iterate_dir_next): ... and this. All users updated.
7623
9f1d654e
VS
76242012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7625
7626 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
7627 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
7628 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7629 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
7630 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
7631 New fields last_key and last_key_time.
7632 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
7633 extended key-esc into extended key-extended key.
7634
52f0f643
VS
76352012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 Avoid unnecessary memcpy of whole video buffer.
7638
7639 * grub-core/video/fb/video_fb.c (dirty): New struct.
7640 (framebuffer): Add members current_dirty and previous_dirty.
7641 (dirty): New function.
7642 (grub_video_fb_fill_rect): Update dirty.
7643 (common_blitter): Likewise.
7644 (grub_video_fb_scroll): Likewise.
7645 (doublebuf_blit_update_screen): Copy only dirty part.
7646 (doublebuf_pageflipping_update_screen): Likewise.
7647 (grub_video_fb_doublebuf_blit_init): Init dirty.
7648 (doublebuf_pageflipping_init): Likewise.
7649 (grub_video_fb_setup): Likewise.
7650
e169a180
VS
76512012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7652
7653 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
7654 poll rate.
7655
48556879
VS
76562012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 Fix wildcard regexp dot and other special characters handling.
7659 Reported by: Robert Mabee.
7660
7661 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
7662 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
7663 (split_path): Trigger expansion on '?'.
7664 (unescape): New function.
7665 (wildcard_expand): Unescape parts copied without globbing.
7666 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
7667 (grub_script_arglist_to_argv): Don't unescape expansions.
7668
0494408e
VS
76692012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 * include/grub/net.h (grub_net_card): New member txbufsize.
7672 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
7673 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
7674 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
7675 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
7676 txbufsize.
7677 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
7678 compatible property to check for macs. Set
7679 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
7680 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
7681 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
7682 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
7683 (send_card_buffer): Use txbuf.
7684 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
7685 nested function out of the parent while on it.
7686
cc35fe8f
VS
76872012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7688
7689 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
7690 presence check.
7691 (grub_ieee1275_net_config_real): Fix config pointer.
7692
970a0a09
VS
76932012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7694
7695 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
7696 filename parsing to non-block devices.
7697
3e19bf87
VS
76982012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7699
7700 * grub-core/kern/device.c (grub_device_open): Remove dead code.
7701
c62d1a0c
VS
77022012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
7703
7704 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
7705 All users updated.
7706
ef76bec3
VS
77072012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
7708
7709 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
7710 UUID search command even if hints probing failed.
7711
77122012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
7713
7714 * po/POTFILES.in: Regenerated.
7715
70aaf305
VS
77162012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
7717
7718 Speed-up video on fuloong.
7719
7720 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
7721 New function.
7722 (grub_pci_device_unmap_range): Handle non-cached address.
7723 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
7724 add direct_ptr.
7725 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
7726 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
7727 (grub_video_sis315pro_set_active_render_target): Removed.
7728 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
7729 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
7730 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
7731 sync caches.
7732 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
7733 New proto.
7734
10400f0b
VS
77352012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
7736
7737 * docs/grub.texi (Multi-boot manual config): New section.
7738
ba67e2c6
VS
77392012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7740
7741 Avoid slow read-back from VRAM.
7742
7743 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
7744 Move from here ...
7745 * grub-core/video/fb/video_fb.c
7746 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
7747 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
7748 (front_target): Remove front_target. Add pages.
7749 (grub_video_fb_init): Skip setting front_pages.
7750 (grub_video_fb_fini): Likewise.
7751 (doublebuf_blit_update_screen): Use pages.
7752 (grub_video_fb_doublebuf_blit_init): Likewise.
7753 (doublebuf_pageflipping_init): Allocate offscreen buffer.
7754 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
7755 (grub_video_fb_setup): Prefer doublebuffing.
7756
377c98cb
VS
77572012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7758
7759 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
7760 gzio.
7761
eac49cff
VS
77622012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7763
7764 Add loongson tests.
7765
7766 * tests/util/grub-shell.in: Handle loongson.
7767 * tests/partmap_test.in: Add loongson to the list of platform using ATA
7768 drivers.
7769 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
7770 Reboot instead of shutdown if REBOOT is defined.
7771
0321415e
VS
77722012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7773
7774 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
7775 sized ports since unlike on real hardware qemu supports only 32-bit
7776 regs.
7777
3f2bdd8f
VS
77782012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7779
7780 * Makefile.util.def (grub-mkrescue): Enable on loongson.
7781 * util/grub-mkrescue.in: Handle loongson.
7782
29a049c9
VS
77832012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
7784
7785 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
7786 Set is_part appropriately.
7787 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
7788 names. Canonicalize partition without full disk.
7789
4abde346
VS
77902012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7791
7792 Revert usb-quiesce since it's wrong.
7793
7794 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
7795 (grub_ofdisk_init): Don't do quiesce.
7796
61f1d93b
VS
77972012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7798
7799 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
7800 PowerMac workaround to Xserves as well.
7801 Information supplied by: Benjamin Herrenschmidt.
7802
a09eb541
VS
78032012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7804
7805 Don't assume that beginning address is also the entry point on ppc.
7806
7807 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
7808 (grub_linux_boot): Use linux_entry.
7809 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
7810 (grub_linux_load64): Likewise.
7811
505b3c9b
VS
78122012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7813
7814 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
7815
cbe0b4ef
VS
78162012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7817
7818 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
7819 needlessly lose the console.
7820
3006e981
VS
78212012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7822
7823 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
7824 space.
7825
4e5a96b0
VS
78262012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
7827
7da036bb
VS
7828 Remove non-functional EFI grub_get_rtc. Put a better fatal message
7829 than current grub_get_rtc() not implemented when booted with
7830 coreboot without TSC.
7831
7832 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
7833 Add machine/time.h to kernel headers on loongson.
7834 * grub-core/Makefile.core.def (kernel): Remove
7835 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
7836 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
7837 (grub_get_rtc): Likewise.
7838 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
7839 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
7840 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
7841 * grub-core/kern/i386/tsc.c (grub_tsc_init)
7842 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
7843 rather than installing known non-working time source.
7844 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
7845 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
7846 * include/grub/time.h: Don't include machine/time.h.
7847 * include/grub/efi/time.h: Removed.
7848 * include/grub/i386/efi/time.h: Likewise.
7849 * include/grub/i386/ieee1275/time.h: Likewise.
7850 * include/grub/powerpc/ieee1275/time.h: Likewise.
7851 * include/grub/sparc64/ieee1275/time.h: Likewise.
7852 * include/grub/x86_64/efi/time.h: Likewise.
7853
78542012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
7855
7856 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
7857
7858 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
7859 value.
7860 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
7861 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
7862 with dotless variants when any combining above is present.
7863
5561c22d
VS
78642012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
7865
7866 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
7867 text and not binary.
7868
96f7e60e
VS
78692012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
7870
7871 Stop polling as soon as we have the packet we were waiting for.
7872
7873 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
7874 All users updated.
7875 * grub-core/net/arp.c (have_pending): New var.
7876 (pending_req): Likewise.
7877 (grub_net_arp_send_request): Fill pending_req and use have_pending as
7878 stop indicator.
7879 (grub_net_arp_receive): Set have_pending.
7880 * grub-core/net/dns.c (recv_data): New field stop.
7881 (recv_hook): Set stop.
7882 (grub_net_dns_lookup): Init stop and use as stop condition.
7883 * grub-core/net/http.c (http_establish): Use headers_recv as stop
7884 condition.
7885 * grub-core/net/net.c (grub_net_poll_cards): New argument
7886 stop_condition. Stop when it goes true.
7887 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
7888 indicator.
7889 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
7890
3e747239
VS
78912012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
7892
7893 Keep TX and RX buffers on EFI rather than always allocate new ones.
7894
7895 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
7896 card. All users updated.
7897 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
7898 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
7899 (get_card_packet): Likewise.
7900 (grub_efinet_findcards): Init new fields.
7901
f695e99a
VS
79022012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
7903
7904 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
7905 compilation error on sparc64.
7906
9e5e66d1
VS
79072012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
7908
7909 Use ITC on IA64 rather than broken routine based on daytime.
7910
7911 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
7912 ia64.
7913 (grub_get_rtc) [__ia64__]: Likewise.
7914 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
7915 (get_itc): New function.
7916 (grub_rtc_get_time_ms): Likewise.
7917 (grub_machine_init): Calibrate ITC.
7918 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
7919 Keep only on non-ia64. Don't export since it's broken and used only
7920 if TSC is unavailable.
7921
a1767404
VS
79222012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
7923
7924 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
7925 even if it's used.
7926 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
7927 Skip if parent is unused.
7928
34b2bced
VS
79292012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7930
7931 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
7932
5e619f40
VS
79332012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7934
7935 Fix wildcard escaping.
7936
7937 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
7938 * grub-core/script/execute.c (wildcard_escape): .. to here.
7939 Don't escape dot.
7940 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
7941 * grub-core/script/execute.c (wildcard_unescape): .. to here.
7942 Don't escape dot.
7943 * grub-core/script/execute.c (gettext_append): Always escape.
7944 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
7945 * grub-core/script/yylex.l: Don't cut away the escaping.
7946 * tests/grub_script_echo1.in: Add tests with wildcard.
7947
c8ca5855
VS
79482012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7949
7950 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
7951 (ftdi_hw_configure): Likewise.
7952 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
7953 define.
7954 (real_config): Handle 1.5 stop bits.
7955 (pl2303_hw_configure): Likewise.
7956
7183452c
VS
79572012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7958
7959 * Makefile.am: Add ppc linux bootcheck.
7960 * grub-core/tests/boot/linux-ppc.cfg: New file.
7961 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
7962
f57c84cd
VS
79632012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7964
7965 * tests/grub_script_expansion.in: Skip network protocols.
7966
ecfc6207
VS
79672012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7968
7969 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
7970
8d03d284
VS
79712012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7972
7973 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
7974 --rom-directory.
7975 Add -graft-points.
7976
61c42af0
VS
79772012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7978
7979 ESCC serial driver for conducting sautomated tests in qemu.
7980 Not tested on real hardware.
7981
7982 * include/grub/serial.h (grub_serial_port): New field escc_desc.
7983 * grub-core/term/ieee1275/escc.c: New file.
7984 * grub-core/Makefile.core.def (escc): New module.
7985
08fd1291
VS
79862012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7987
7988 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
7989 invalid on error.
7990 (serial_hw_fetch): Don't read invalid handle.
7991 (serial_hw_put): Don't write into invalid handle.
7992
08dafeea
VS
79932012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7994
7995 Add a 1.5 stop bits value.
7996
7997 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
7998 * include/grub/serial.h (grub_serial_stop_bits_t): Add
7999 GRUB_SERIAL_STOP_BITS_1_5.
8000
9068fdcf
VS
80012012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
8002
8003 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
8004 value rather than let it uninited.
8005
f4d5820f
VS
80062012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8007
8008 * grub-core/commands/wildcard.c (+check_file): New function.
8009 (wildcard_expand): Don't expand to non-existing files, expand with
8010 suffix and not attempt to expand if not needed.
8011
3d2de9a7
VS
80122012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8013
8014 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
8015 out of partitions containing other partitions.
8016
c5c81ff9
VS
80172012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8018
8019 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
8020 on some qemu versions with GRUB.
8021
8022 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
8023 define.
8024 (grub_openbsd_bootarg_pcibios): New struct.
8025 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
8026 Add PCIINFO.
8027
08a14e0b
VS
80282012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8029
8030 * tests/util/grub-shell.in: Trim firmware output on EFI.
8031
cede3ca3
VS
80322012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8033
8034 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
8035 and coreboot since it's already in kernel.
8036
558d3a60
VS
80372012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8038
8039 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
8040 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8041 to here. New return value start. All users updated.
8042 Recursively scan linear mappings.
8043 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
8044 proto.
8045 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8046 Use grub_util_get_dm_node_linear_info.
8047 * util/getroot.c (convert_system_partition_to_system_disk): Use
8048 grub_util_info rather than grub_dprintf.
8049 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
8050
60fde14d
VS
80512012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8052
8053 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
8054
8055 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
8056 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
8057
24bd8838
VS
80582012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * include/grub/types.h (grub_set_unaligned64): New function.
8061 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
8062 (setup): Likewise.
8063
7bc06a49
VS
80642012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8065
8066 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
8067 (grub_ofdisk_fini): Quiesce USB devices.
8068
49cea015
VS
80692012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8070
8071 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
8072 caches.
8073
8dcbe03b
VS
80742012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8075
8076 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
8077
5b258735
VS
80782012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8079
8080 * grub-core/disk/pata.c (grub_pata_pio_read)
8081 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
8082 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
8083
37ba07eb
VS
80842012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8085
8086 Extend automated tests to qemu-mips.
8087
8088 * Makefile.am: reorganise tests and enable qemu-mips.
8089 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
8090 * grub-core/tests/boot/linux.init-mips.S: New file.
8091 * tests/partmap_test.in: Handle ata0 disks.
8092 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
8093 non-pc i386.
8094
070038f8
VS
80952012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8096
8097 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
8098 ia64.
8099 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
8100 quotes while on it.
8101
004be2cd
VS
81022012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8103
8104 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
8105 (grub_halt): Likewise.
8106 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
8107
b1622487
VS
81082012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * grub-core/term/serial.c (grub_serial_register)
8111 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
8112 the behaviour in line with x86 platforms.
8113
b7b4ab33
VS
81142012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8115
8116 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
8117 (grub_ata_strncpy): Likewise.
8118 (grub_ata_identify): Add missing byteswaps.
8119
5e3535ae
VS
81202012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8121
8122 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
8123 byte-swap.
8124 (screen_read_char): Likewise.
8125 (grub_vga_text_cls): Likewise.
8126
c21b17e6
VS
81272012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8128
8129 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
8130 filenames.
8131 (make_file_path): Likewise.
8132
bf293dec
VS
81332012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
8134
8135 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
8136 machines.
8137 Tested by: Paulo Flabiano Smorigo.
8138 Crucial information about API supplied by: Coleen <Last name unknown>.
8139 Reviewed by: Coleen <Last name unknown>.
8140
81f6ef0e
VS
81412012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8142
8143 * util/grub-mkimage.c: Disable -Wcast-align.
8144
7284143a
VS
81452012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8146
8147 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
8148 as they are fatal.
8149
b99f3e00
VS
81502012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8151
8152 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
8153
944f752d
VS
81542012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8155
8156 * util/grub-probe.c (escape_of_path): Fix double free.
8157
6cce6f38
VS
81582012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8159
8160 * grub-core/commands/videoinfo.c (hook): Show pitch.
8161
1e1eb50e
VS
81622012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8163
8164 * util/grub.d/20_linux_xen.in: Skip xen-syms.
8165
1c715b5a
VS
81662012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
8167
8168 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
8169 (probe): Add ieee1275 to OFW devices.
8170
007ae52d
VS
81712012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8172
8173 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
8174
4557a36d
VS
81752012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
8176
8177 Handle IBM OFW path.
8178
8179 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
8180 available.
8181 (of_path_of_scsi): Handle vdevice.
8182
efbeefe9
VS
81832012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8184
8185 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
8186 Allocate in multiples of 16 to avoid adding a few bytes free region the
8187 windows bugs upon.
8188
15a940bb
VS
81892012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
8190
8191 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
8192 Allocate in multiples of 16 to avoid adding a few bytes free region the
8193 windows bugs upon.
8194 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
8195
6e5efd60
VS
81962012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8197
8198 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
8199 resolutions.
8200 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
8201 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
8202
0d3d137e
IS
82032012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
8204
8205 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
8206
45dbe300
VS
82072012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8208
8209 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
8210 resulted in \\ at the end of the line.
8211
6d8db947
VS
82122012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8213
8214 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
8215 (grub_parser_cmdline_state): Likewise.
8216 (grub_parser_split_cmdline): Likewise.
8217
de89d338
VS
82182012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8219
8220 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
8221 /dev/root and /dev/dm-*.
8222
00d41dee
VS
82232012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8224
8225 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
8226 fix partially stale display.
8227
f95d1f11
VS
82282012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8229
8230 * grub-core/normal/menu_entry.c (backward_char): Use right line for
8231 substraction.
8232
6297e197
VS
82332012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8234
8235 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
8236 Fix MBR remapping workaround.
8237 (grub_util_biosdisk_read) [__linux__]: Likewise.
8238
8a7ecad3
VS
82392012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
8240
8241 * util/grub-install.in: Check for ieee1275 and not ieee1276.
8242
2b34f944
VS
82432012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 * configure.ac: Bump to beta6.
8246
684aef11
CW
82472012-05-31 Christer Weinigel <christer@weinigel.se>
8248
8249 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
8250
05b0bb91
VS
82512012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8252
8253 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
8254 (grub_cmd_linux): Likewise.
8255
bda36bfa
CW
82562012-05-31 Christer Weinigel <christer@weinigel.se>
8257
8258 Fix EHCI low-speed.
8259
8260 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
8261 (GRUB_EHCI_MULT_TWO): Likewise.
8262 (GRUB_EHCI_MULT_THREE): Likewise.
8263 (GRUB_EHCI_CMASK_MASK): New enum value.
8264 (GRUB_EHCI_SMASK_MASK): Likewise.
8265 (GRUB_EHCI_CMASK_OFF): Likewise.
8266 (GRUB_EHCI_SMASK_OFF): Likewise.
8267 (grub_ehci_pci_iter): Enable periodic schedule.
8268 (grub_ehci_parse_notrun): Likewise.
8269 (grub_ehci_restore_hw): Likewise.
8270 (grub_ehci_setup_qh): Set flags for low speed transfers.
8271 (grub_ehci_find_qh): Use periodic list for low speed.
8272 (grub_ehci_setup_transfer): Check periodic queue as well.
8273 (grub_ehci_check_transfer): Likewise.
8274 (grub_ehci_cancel_transfer): Cancel periodic transfer.
8275
e12bcb1c
PFS
82762012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8277
8278 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
8279 parameter is used.
8280
bcc75fb3
PJ
82812012-05-31 Peter Jones <pjones@redhat.com>
8282
8283 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
8284 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
8285 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
8286
f19cb95e
VS
82872012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
8290 uninited variable. Allocate at least setup_sects.
8291
a4e5ca80
VS
82922012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8293
8294 Fix handling of EFI with big memory maps.
8295
8296 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
8297 (real_mode_mem): Likewise.
8298 (real_mode_target): Likewise.
8299 (real_mode_pages): Likewise.
8300 (prot_mode_pages): Likewise.
8301 (linux_params): New var.
8302 (linux_cmdline): Likewise.
8303 (free_pages): Don't set real mode variables.
8304 (allocate_pages): Don't allocate real mode memory.
8305 (grub_e820_add_region): Remove the limit.
8306 (grub_linux_boot): Allocate and copy real mode memory.
8307 (grub_linux_unload): Free linux_cmdline.
8308 (grub_cmd_linux): Use temporary storage for parameters.
8309 (grub_cmd_initrd): Likewise.
8310 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
8311 (linux_kernel_params): Make it 1K big.
8312
ddb73558
VS
83132012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8314
8315 * Makefile.util.def: Remove -Wno-format.
8316 * grub-core/Makefile.core.def: Likewise.
8317
1c4afb60
VS
83182012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 * tests/cmp_unit_test.c: Add missing failure message.
8321 * tests/example_unit_test.c: Likewise.
8322 * tests/printf_unit_test.c: Likewise.
8323
941e3a6d
VS
83242012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
8327 relaxation of protective MBR requirements.
8328
b105df76
VS
83292012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8330
8331 * configure.ac: Add condition for COND_HOST_XNU.
8332 * Makefile.util.def (10_xnu): New script.
8333 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
8334
84e1569e
VS
83352012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8336
8337 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
8338 objconv bug.
8339
130c0f77
VS
83402012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
8341
8342 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
8343 Binary on other platforms stays identical.
8344
6fd0b143
VS
83452012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8346
8347 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
8348 Apple.
8349
0af1751d
VS
83502012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8351
8352 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
8353
176d5f7d
VS
83542012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8355
8356 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
8357 rather than defining size_t ourselves to avoid conflict.
8358
7de5e20a
VS
83592012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8360
8361 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
8362 initialisation to avoid __bzero reference.
8363
f7143efe
VS
83642012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8365
8366 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
8367 version.
8368 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
8369 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
8370 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
8371 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
8372 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
8373
e6ad0555
VS
83742012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8375
8376 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
8377 * grub-core/kern/misc.c: Likewise.
8378 * grub-core/loader/i386/xnu.c: Likewise.
8379 * include/grub/i386/tsc.h: Likewise.
8380 * include/grub/symbol.h: Likewise.
8381
4a5a3c4a
VS
83822012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8383
8384 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
8385 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
8386 on older compiler.
8387
037f6d90
VS
83882012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8389
8390 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
8391 Implement Apple flavour.
8392 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
8393
f7194551
VS
83942012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
8397 (memmove) [__APPLE__]: Likewise.
8398 (memcpy) [__APPLE__]: Likewise.
8399 (memset) [__APPLE__]: Likewise.
8400 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
8401 (memmove) [__APPLE__]: Likewise.
8402 (memcpy) [__APPLE__]: Likewise.
8403 (memset) [__APPLE__]: Likewise.
8404
85a730ca
VS
84052012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
8406
8407 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
8408 dependency discard.
8409
40e80b94
VS
84102012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8411
8412 * grub-core/normal/main.c (read_config_file): Provide config_file and
8413 config_directory.
8414 * util/grub.d/41_custom.in: Use config_directoy when available.
8415
9da59c32
VS
84162012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8417
8418 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
8419 (grub_bfs_dir): Likewise.
8420
2787ae53
PJ
84212012-05-27 Peter Jones <pjones@redhat.com>
8422
8423 The old code gives arguments to a printf function which can't work
8424 correctly, and the compiler complains.
8425
8426 * grub-core/tests/example_functional_test.c (example_test): Add
8427 missing text.
8428 * grub-core/tests/lib/test.c (add_failure): Rewrite.
8429 * include/grub/test.h (grub_test_assert_helper): New declaration.
8430 (grub_test_assert): Use grub_test_assert_helper.
8431
526ef13d
VS
84322012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
8435 (exfctest): ... this to avoid overlong filenames.
8436 All users updated.
8437
20dd511c
VS
84382012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 Handle "." and ".." on squashfs.
8441
8442 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
8443 Make inode numbers into stack.
8444 (grub_squash_read_symlink): Use stack.
8445 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
8446 (make_root_node): Fill stack.
8447 (grub_squash_open): Use stack.
8448
1d80c62a
VS
84492012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
8452 freeing.
8453
d336f652
VS
84542012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8455
8456 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
8457 stderr on test calls.
8458
8b43f587
VS
84592012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8460
8461 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
8462
80a3dc3f
VS
84632012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8464
8465 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
8466
47e297d4
VS
84672012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8468
8469 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
8470 "..".
8471
df042ccb
VS
84722012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8473
8474 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
8475 (grub_hfsplus_iterate_dir): Add "." and "..".
8476
fc977f48
VS
84772012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8478
8479 * grub-core/fs/cpio.c (canonicalize): Handle "..".
8480 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
8481
f3250e5f
VS
84822012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8483
8484 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
8485 (find_path): Handle "." and "..".
8486
fd8ed4c5
VS
84872012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
8488
8489 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
8490 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
8491 (grub_affs_iterate_dir): Handle hardlinks.
8492
4ce776d2
MG
84932012-05-26 Matthew Garrett <mjg@redhat.com>
8494
8495 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
8496 (grub_efi_console_fini): Likewise.
8497 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
8498 (grub_video_gop_fill_mode_info): Rename to ...
8499 (grub_video_gop_fill_real_mode_info): ... this.
8500 (grub_video_gop_fill_mode_info): New function.
8501 (grub_video_gop_setup): Setup double framebuffer.
8502 (grub_video_gop_get_info_and_fini): Use original framebuffer.
8503 Free offscreen.
8504 (grub_video_gop_swap_buffers): Copy framebuffer.
8505 (grub_video_gop_fini): Free offscreen buffer.
8506 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
8507 New enum.
8508 (grub_efi_gop_blt_pixel): New struct.
8509
683031ba
VS
85102012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
8511
8512 * gentpl.py: Remove error disabling for objconv.
8513
c2deb798
VS
85142012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
8515
8516 * configure.ac: Remove -Wunitialized as it's not available on older
8517 compilers.
8518
85192012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
8520
8521 Fix extent overflow comparator.
8522
8523 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
8524 (grub_hfsplus_read_block): Set type.
8525 (grub_hfsplus_cmp_extkey): Compare type.
8526
d6b1fd36
VS
85272012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
8528
8529 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
8530
0a9aa0f6
VS
85312012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8532
8533 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
8534 than 0.
8535
8360e159
VS
85362012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8537
8538 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
8539 (dejavu_bold_14.pf2): New target.
8540
501b9e4b
VS
85412012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 * configure.ac: Fix djvu font detection.
8544
7026b0e2
VS
85452012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
8546
8547 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
8548 ext* instead of ext2.
8549
c2a51ade
VS
85502012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
8551
8552 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
8553 name with \0.
8554
8f803a5d
JU
85552012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
8556
8557 * docs/grub-dev.texi: Remove dot from .png.
8558
13c6353f
VS
85592012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8560
8561 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
8562 protective entry in any slot.
8563 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
8564 if protective entry is found in any slot.
8565
8566 Protective entry in non-first slot make no sense but is a widespread
8567 brain damage.
8568
4cf6be1b
VS
85692012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8570
8571 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
8572
937d1c44
VS
85732012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8574
8575 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
8576 with old reiserfs.
8577 (grub_reiserfs_open): Don't free root.
8578
021d90ec
VS
85792012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
8580
8581 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
8582 after freeing for safety.
8583
967b2b64
VS
85842012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8585
8586 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
8587 Reported by: Jordan Uggla.
8588
34274d02
JU
85892012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
8590
967b2b64
VS
8591 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
8592 actual implementation. Specifically, clarify that the grub menu will
8593 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
8594 passed.
34274d02 8595
dcaaae9d
BH
85962012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
8597
8598 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
8599 of r0.
8600
7086ad52
VS
86012012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 Remove unjustified hard dependency of normal.mod on gfxterm.
8604
8605 * include/grub/term.h (grub_term_output): New member fullscreen.
8606 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
8607 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
8608 (grub_gfxterm): Set .fullscreen.
8609 * grub-core/normal/menu.c (menu_init): Use fullscreen.
8610 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
8611
37ed2c9b
VS
86122012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8613
8614 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
8615 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 8616 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 8617
a4469c88
VS
86182012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8619
8620 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
8621
4e461486
VS
86222012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
8623
8624 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
8625 a bad FS.
8626
aa78f5c4
VS
86272012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
8628
8629 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
8630 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
8631
197626b5
VS
86322012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8633
8634 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
8635 (grub_jfs_mount): Fill caseins.
8636 (grub_jfs_find_file): Respect caseins.
8637
8ad3f28c
VS
86382012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8639
8640 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
8641 through UTF-16.
8642
0c6c324e
VS
86432012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8644
8645 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
8646 New argument origpath. All users updated.
8647
c6666ba6
VS
86482012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8649
8650 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
8651 (read_attr): Ensure that we read start of possibly compressed block.
8652
e28e5fe5
VS
86532012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8654
8655 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
8656 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
8657 All users updated.
8658
5fc23ab2
VS
86592012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8660
8661 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
8662 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
8663 (dejavu.pf2): Replace with ...
8664 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
8665 this.
8666
79dbc21c
VS
86672012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8668
8669 * util/grub.d/20_linux_xen.in: Add missing line.
8670
d2fcfb0c
VS
86712012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8672
8673 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
8674 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
8675 (grub_utf16_to_utf8): Likewise.
8676
5560e9d6
VS
86772012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8678
8679 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
8680 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
8681 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8682 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
8683 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8684 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
8685
86862012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
8687
8688 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
8689 a bad FS.
8690
5560e9d6 86912012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
8692
8693 * grub-core/fs/udf.c (read_string): Bail out on size=0.
8694 (grub_udf_read_symlink): Handle read_string failure.
8695
5eae3175
VS
86962012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8697
8698 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
8699 comment.
8700
c1ad82db
VS
87012012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8702
8703 Fix handling of UDF symlinks.
8704
8705 * grub-core/fs/udf.c (read_string): New argument outbuf.
8706 All users updated.
8707 (grub_ufs_read_symlink): Rename to ...
8708 (grub_udf_read_symlink): ... this. All users updated.
8709 Handle symlinks with more than one component.
8710
33eca6e0
VS
87112012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
8714 symlinks. Replace leading colon with a slash.
8715
57f4a70b
VS
87162012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8717
8718 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
8719 filename.
8720
38c8ee20
VS
87212012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8722
8723 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
8724 match in inner node.
8725
2e57f28f
VS
87262012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
8727
8728 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
8729 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
8730 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
8731 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
8732 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
8733 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
8734 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
8735 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
8736 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
8737
fe8c2f11
VS
87382012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
8739
8740 Use grub-probe and not cmp to check that disk is empty.
8741
8742 * util/grub-install.in: Use grub-probe for zero-check.
8743 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
8744 (probe): Handle PRINT_ZERO_CHECK.
8745 (argp_parser): Handle -t zero_check.
8746
87472012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
8748
8749 Flush block cache on adding disk to device map.
8750
8751 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
8752 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
8753 adding.
8754 (read_device_map): Likewise.
8755 (open_device): Flush on opening.
8756
690434e8
VS
87572012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8758
8759 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
8760 (handle_symlink): Fix off-by-one error.
8761 Canonicalize the target.
8762 (grub_cpio_dir): Canonicalize the name.
8763 Fix memory leak.
8764 Set directory.
8765 (grub_cpio_open): Canonicalize the name.
8766
742d2be6
VS
87672012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8768
8769 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
8770 handling.
8771
3244fe96
VS
87722012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8773
8774 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
8775 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
8776
8aeb1837
VS
87772012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8778
8779 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
8780 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 8781 All users updated.
8aeb1837 8782
9133fd05
VS
87832012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8784
8785 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
8786 counterpart.
8787
6d521c5b
VS
87882012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 Fix UFS1 big file support.
8791
8792 * grub-core/fs/ufs.c (INODE): Removed.
8793 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
8794 64-bit.
8795 (INODE_MODE): Simplify.
8796 (grub_ufs_inode): Use uint64_t for size and not int64_t.
8797 (grub_ufs_lookup_symlink): Don't use INODE.
8798
21b82e17
VS
87992012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8800
8801 Fix minixfs with non-power-of-two blocks since it's supported by minix.
8802
8803 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
8804 (grub_minix_data): Replace log_block_size with block_size.
8805 (grub_minix_read_file): Use block_size but avoid 64-bit division.
8806 (grub_minix_mount): Fill block_size.
8807
88082012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
8809
8810 * configure.ac: Bump to beta5.
8811
f417ed04
VS
88122012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8813
8814 Fix wrapped HFS+ handling.
8815
8816 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
8817 blocks_start. All users updated.
8818 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
8819 wrapping offset.
8820 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
8821
607d282b
VS
88222012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8823
8824 Fix long symlinks on reiserfs.
8825
8826 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
8827 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
8828 (grub_reiserfs_iterate_dir): Save size for non-directories.
8829 (grub_reiserfs_open): Don't reread stat block as we already know the
8830 size.
8831 (grub_reiserfs_read): Split into...
8832 (grub_reiserfs_read_real): ... and ...
8833 (grub_reiserfs_read): ...this.
8834
ae16024d
VS
88352012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8836
8837 Fix non-indexed JFS.
8838
8839 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
8840 (grub_jfs_data): New field namecomponentlen.
8841 (grub_jfs_mount): Fill namecomponentlen.
8842 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
8843
eea1e26e
VS
88442012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8845
8846 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
8847 * tests/grub_script_echo1.in: Add tests.
8848
df760f77
VS
88492012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8850
8851 * util/grub-install.in: Ignore empty devicetree directory.
8852
5efb817d
B
88532012-05-08 Bean <bean123ch@gmail.com>
8854
8855 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
8856 All users updated.
8857 (free_rsm): Free header as well.
8858 (free_old_fragments): Fix memory leak.
8859 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
8860 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
8861 (destroy_pq): Likewise.
8862 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
8863
668ea6d2
VS
88642012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
8867 resulting hash as a precaution.
8868
1739b1fe
VS
88692012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8870
8871 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
8872 '_' in variable names.
8873 * grub-core/net/net.c (grub_net_network_level_interface_register):
8874 Likewise.
8875
6ae485aa
VS
88762012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8877
8878 Fix AFFS with non-512B blocks.
8879
8880 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
8881 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
8882 (grub_affs_data): Replace blocksize with log_blocksize.
8883 (grub_affs_read_block): Fix non-512B blocks.
8884 (grub_affs_read_symlink): Likewise.
8885 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
8886 (grub_affs_read): Fix non-512B blocks.
8887 (grub_affs_label): Likewise.
8888 (grub_affs_mtime): Likewise.
8889 (grub_affs_mount): Fix block detection routine.
8890
d20fab84
VS
88912012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 Add filesystem mtime to AFFS.
8894
8895 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
8896 (aftime2ctime): New function.
8897 (grub_affs_dir): Use aftime2ctime.
8898 (grub_affs_label): Fix return value.
8899 (grub_affs_mtime): New function.
8900 (grub_affs_fs): Add mtime.
8901
e87b10f5
VS
89022012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
8903
8904 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
8905 UTF-8.
8906
7dceec9b
VS
89072012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
8908
8909 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
8910 UTF-8.
8911
2f48221f
VS
89122012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
8913
8914 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
8915
dacd85cf
VS
89162012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
8917
8918 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
8919 flags.
8920 (FLAGS_CASE_SENSITIVE): New enum value.
8921 (cache_entry): New struct.
8922 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
8923 cache_size and cache.
8924 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
8925 Add log_blocksize and fshelp_flags.
8926 (grub_sfs_read_extent): Handle non-512 blocks.
8927 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
8928 (grub_sfs_read_file): Handle non-512 blocks.
8929 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
8930 fshelp_flags.
8931 (grub_sfs_read_symlink): Handle non-512 blocks.
8932 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
8933 (grub_sfs_dir): Free cache.
8934 (grub_sfs_close): Likewise.
8935
24e9a854
VS
89362012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
8937
8938 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
8939 filesystems.
8940
62ace64d
VS
89412012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
8942
8943 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
8944
83b2e89c
VS
89452012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
8948
75ccaea3
VS
89492012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
8952 (grub_sfs_read_extent): Likewise.
8953 (grub_sfs_read_block): Likewise.
8954 (grub_sfs_mount): Likewise.
8955 (grub_sfs_iterate_dir): Likewise.
8956 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
8957 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
8958
1b8463f2
VS
89592012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
8960
8961 Fix errors on compressed NTFS with 512B clusters.
8962
8963 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
8964 types.
8965 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
8966 not 0.
8967 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
8968 Relax check for inline extents.
8969 (ntfscomp): Return correct -1 on error and not 0.
8970
4f8e368f
VS
89712012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
8972
8973 * util/grub-install.in: Fix handling of prefix containing spaces.
8974
6f5d5ee8
VS
89752012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
8976
8977 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
8978 (grub_squash_read_data): Fix offset byte-swapping.
8979
ce41ab7a
VS
89802012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
8983 per common usage and preffered in several parts of code.
8984 (grub_memcmp): Likewise.
8985 (grub_strncmp): Likewise.
8986 * include/grub/misc.h (grub_strcasecmp): Likewise.
8987 (grub_strncasecmp): Likewise.
8988 * Makefile.util.def (cmp_test): New test.
8989 (grub_script_strcmp): Likewise.
8990 * tests/cmp_unit_test.c: New file.
8991 * tests/grub_script_strcmp.in: Likewise.
8992 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
8993
49717bf4
VS
89942012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 * include/grub/pci.h: Move enums into no-asm part.
8997
0a308f64
VS
89982012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
8999
9000 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
9001
1796965f
ST
90022012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
9003
9004 * util/getroot.c (find_hurd_root_device): Try to make error message
9005 and comments to translators clearer.
9006
4e9b2819
VS
90072012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9008
9009 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
9010
076aeb50
VS
90112012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9012
9013 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
9014 btrfs.
9015
19424d94
VS
90162012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9017
9018 * docs/grub.cfg: Update.
9019
ebb73076
VS
90202012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9021
9022 * docs/grub.texi (PXE): Remove not present variables.
9023
9a1b669c
VS
90242012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
9025
9026 * grub-core/net/net.c (defserver_set_env): New function.
9027 (defserver_get_env): Likewise.
9028 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
9029
d38bf7d3
VS
90302012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9031
9032 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
9033 entries.
9034
90352012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
9036
9037 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
9038 * grub-core/kern/emu/hostdisk.c: Likewise.
9039
e5e4ca48
ST
90402012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9041
9042 Handle hurd userspace partitions.
9043
9044 * util/getroot.c (find_hurd_root_device): New function.
9045 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
9046
56bb5dd5
VS
90472012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
9050 names.
9051 Reported by: Bastian Blank.
9052
9e8bc27a
VS
90532012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
9056 crossing page boundary.
9057
aa01499d
VS
90582012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 Fix B-tree search in BFS, especially in presence of non-ASCII
9061 characters.
9062
9063 * grub-core/fs/bfs.c (bfs_strcmp): New function.
9064 (find_in_b_tree): Use standard bsearch + btree algorithm.
9065
57006035
VS
90662012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
9069 and so on.
9070
9d34bb85
MG
90712012-05-03 Matthew Garrett <mjg@redhat.com>
90722012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 Suspend broadcom cards in order to stop their DMA.
9075
9076 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
9077 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
9078 (pci): Don't build on x86 EFI.
9079 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
9080 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
9081 New function.
9082 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
9083 stop_broadcom if running on EFI.
9084 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
9085 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
9086 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
9087 (grub_pci_find_capability): New proto.
9088
01aab997
VS
90892012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9090
9091 * docs/grub.texi: Remove dot from the extension as it apparently
9092 doesn't work with some makeinfo versions.
9093
fbd8dca6
VS
90942012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9095
9096 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
9097 with GRUB expectance.
9098
dab797f4
VS
90992012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9100
9101 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
9102
1516bfb4
VS
91032012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9104
9105 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
9106 zero after directory block since last entry may be not 0-terminated if
9107 it ends on block boundary. Use continue instead of if spanning whole
9108 loop.
9109
a3a0eace
VS
91102012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9111
9112 Support 4K sectors UDF inline files.
9113
9114 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
9115 (grub_udf_extended_file_entry): Likewise.
9116 (grub_fshelp_node): Name the anonymous union. Put block at the end.
9117 All users updated.
9118 (get_fshelp_size): New function.
9119 (grub_udf_read_icb): Read whole block.
9120 (grub_udf_iterate_dir): Likewise.
9121 (grub_udf_dir): Likewise.
9122 (grub_udf_open): Likewise.
9123
c82f16c1
VS
91242012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9125
9126 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
9127
59fd2aac
VS
91282012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9129
9130 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
9131 inline symlinks in addition to workaround.
9132
3b4afb4d
VS
91332012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
9136
f45c794a
VS
91372012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9138
9139 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
9140
f25cecbd
VS
91412012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
9144
bb9a34e8
VS
91452012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9146
9147 Fix reiserfs big seek times.
9148
9149 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
9150 exact. All users updated.
9151 (grub_reiserfs_read): Use nearest btree search for seeking.
9152 Fix return value on error.
9153
dc478aea
VS
91542012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9155
9156 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
9157 entries.
9158 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
9159 * docs/grub.texi: Update menuentry description.
9160
8db10f47
VS
91612012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9162
9163 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
9164 crash when embedding onto filesystem.
9165
bcb288ed
VS
91662012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9167
9168 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
9169 name.
9170
a626fdd7
VS
91712012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9172
9173 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
9174
b2f68477
VS
91752012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
9178 commit.
9179
ba15b2af
B
91802012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
91812012-05-01 Bean <bean123ch@gmail.com>
9182
9183 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
9184
a188012e
VS
91852012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
9188 Special behaviour for len = 0 to read whole file isn't used anywhere and
9189 can cause buffer ovewrflows in several places.
9190
f0a53ed2
VS
91912012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9192
9193 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
9194
5ed554f0
VS
91952012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9196
9197 Handle RAIDZ on non-512B sectors.
9198
9199 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
9200 max_children_ashift.
9201 (fill_vdev_info_real): Fill max_children_ashift.
9202 (read_device): Use max_children_ashift.
9203
ddc58357
VS
92042012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9205
9206 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
9207
e3282399
VS
92082012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9209
9210 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
9211 disk names.
9212 * docs/grub.texi: Update device.map parts.
9213
ee618bd4
VS
92142012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 Don't scan into non-diskfilter devices having diskfilter names.
9217
9218 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
9219 (scan_disk): New argument accept_diskfilter. Fix recursion depth
9220 handling.
9221 (scan_disk_hook): New function.
9222
bdf88864
B
92232012-04-29 Bean <bean123ch@gmail.com>
9224
9225 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
9226 allocation.
9227
32745f51
MK
92282012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
9229
9230 * configure.ac: Detect starfield theme font path
9231 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
9232
bc95c8c0
VS
92332012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9234
9235 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
9236 geometry on serial consoles.
9237
147fbcab
VS
92382012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9239
9240 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
9241 because of network consoles.
9242
0f42c889
VS
92432012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9244
9245 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
9246 handling.
9247
4a3594c9
VS
92482012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9249
9250 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
9251 falls on Q syndrom.
9252
5cb53879
VS
92532012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9254
9255 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
9256 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
9257
b282dfe5
VS
92582012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9259
9260 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
9261 Allocate at lest 8192 for temporary buffer as required for lzo.
9262
daa59f47
VS
92632012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9264
9265 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
9266 to cluster_bits, since it's already added in.
9267 (grub_fat_read_data): Likewise.
9268
986748ce
VS
92692012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9270
9271 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
9272 as long as cluster size is multiple of 512 bytes.
9273
a20f6ad0
VS
92742012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
9275
9276 * util/grub-mkrescue.in: Fix locale directory.
9277
385f9abb
VS
92782012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * grub-core/kern/emu/hostdisk.c (map): Make static.
9281
1c557d30
B
92822012-04-23 Bean <bean123ch@gmail.com>
9283
9284 * util/grub-fstest.c (fstest): Add missing break.
9285
524b5d3a
ST
92862012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
9287
9288 Fix hurd build.
9289
9290 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
9291 not define nr variable.
fe4824e9 9292 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
9293 find_root_devices_from_poolname, find_root_devices_from_libzfs,
9294 grub_find_device): Do not define.
524b5d3a 9295
9a06490c
VS
92962012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9297
9298 Fix kfreebsd compile and behaviour.
9299
9300 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
9301 format-security.
9302 * util/getroot.c: Fix wait.h include.
9303 (grub_guess_root_devices): Error if grub_find_device fails.
9304 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
9305 (grub_util_get_dev_abstraction): Likewise.
9306 (grub_util_pull_device): Likewise.
9307 (grub_util_get_grub_dev): Likewise.
9308 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
9309
48143d96
VS
93102012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9311
9312 Fix and unify wholedisk detection.
9313
9314 * util/getroot.c (convert_system_partition_to_system_disk): New argument
9315 is_part. All users updated.
9316 (device_is_wholedisk): Removed.
9317 (grub_util_biosdisk_get_grub_dev): Use is_part.
9318
ebbd24f3
VS
93192012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9320
9321 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
9322 mode.
9323
56f7aa1e
VS
93242012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9325
9326 * configure.ac: Bump to beta4.
9327
9c815e01
VS
93282012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
9331 --fs-uuid --set UUID syntax.
9332
59e2651a
VS
93332012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9334
9335 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
9336 disunification.
9337
54e03cfc
VS
93382012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9339
9340 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
9341
81092a75
MK
93422012-04-18 Mads Kiilerich <mads@kiilerich.com>
9343
9344 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
9345
f8315e14
MG
93462012-04-18 Mike Gilbert <floppym@gentoo.org>
9347
9348 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
9349
1501ac21
B
93502012-04-18 Bean <bean123ch@gmail.com>
9351
9352 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
9353 place.
9354
cb7f944e
VS
93552012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
9358 users updated.
9359 (grub_util_biosdisk_read): Handle Linux partitions not exactly
9360 corresponding to GRUB partitions.
9361 (grub_util_biosdisk_write): Likewise.
9362
b72d44a1
VS
93632012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9364
9365 Scan mdraid before LVM.
9366
9367 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
9368 (grub_diskfilter_register_front): ... this.
9369 (grub_diskfilter_register_back): New function.
9370 All users of grub_diskfilter_register updated.
9371
33d918b8
VS
93722012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9373
9374 * util/grub-install.in: Fix an automatic target detection bug.
9375
c6ca973d
VS
93762012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9377
9378 * util/grub-install.in: New option --efi-directory.
9379
b41be562
VS
93802012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
9381
9382 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
9383 boot services if we have no other choice.
9384
93852012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 * util/grub-mknetdir.in: Rename --override-directory to --directory and
9388 document it.
9389 * tests/util/grub-shell.in: Update to --directory.
9390
e0595a73
VS
93912012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
9394
4ed80652
VS
93952012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9396
9397 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
9398 (grub_minix_read_file): Likewise.
9399 (grub_minix_read_inode): Likewise.
9400 (grub_minix_find_file): Likewise.
9401 (grub_minix_dir): Likewise.
9402
56008077
VS
94032012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9404
9405 * util/grub-setup.c (setup): Fix partition handling and blocklist
9406 check.
9407
ee520775
VS
94082012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
9409
9410 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
9411 redundant buggy overlap check.
9412
16fc9293
VS
94132012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
9416 and grub-mknetdir.
9417
9bab65c4
VS
94182012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
9421 kh.loadflags on pre-2.00 kernels.
9422
3c491b47
VS
94232012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 Terminate UNDI and PXE before launching the payload to avoid problems
9426 with DMA.
9427
9428 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
9429 (grub_loader_flags): ... this. All users updated.
9430 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
9431 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
9432 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
9433 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
9434 function.
9435 (grub_pxe_restore): Likewise.
9436 (fini_hnd): New var.
9437 (GRUB_MOD_INIT): Register shutdown hook.
9438 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
9439 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
9440 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
9441 (grub_loader_set): Rename second argument to flags.
9442
851ffada
VS
94432012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
9446 written bytes.
9447 (grub_get_num_of_utf8_bytes): New function.
9448 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
9449 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
9450 executing it.
9451 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
9452 (grub_ucs4_to_utf8): Change return type.
9453
491c57a8
VS
94542012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9455
9456 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
9457 warning.
851ffada
VS
9458 * grub-core/fs/bfs.c (hop_level): Likewise.
9459 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 9460
756773df
VS
94612012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9462
9463 * grub-core/lib/adler32.c: Recode due to license unclearness.
9464
fd556a96
VS
94652012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9466
9467 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
9468 (test_header): Likewise.
9469
9f9d3f69
VS
94702012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9471
9472 Fix --help formatting.
9473
9474 * util/grub-mkconfig_lib.in (print_option_help): New function.
9475 (grub_fmt): Likewise.
9476 * util/grub-install.in: Use print_option_help and grub_fmt.
9477 * util/grub-kbdcomp.in: Likewise.
9478 * util/grub-mkconfig.in: Likewise.
9479 * util/grub-mknetdir.in: Likewise.
9480 * util/grub-mkrescue.in: Likewise.
9481 * util/grub-mkstandalone.in: Likewise.
9482 * util/grub-reboot.in: Likewise.
9483 * util/grub-set-default.in: Likewise.
9484 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9485
561ec77e
VS
94862012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
9487
9488 * linguas.sh: Remove autogenerated *.po.
9489
7ec2b021
VS
94902012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9491
9492 * po/README: Move language fetcing to ...
9493 * linguas.sh: ... here.
9494 * po/README: Point to linguas.sh.
9495
a88f3270
VS
94962012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9497
9498 * po/README: Exclude ko.po due to disclaimer problems.
9499
d61357ce
VS
95002012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9501
9502 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
9503 len = 0.
9504 (grub_gettext_translate_real): Handle 0th string.
9505 (grub_gettext_translate): Ensure that "" isn't translated.
9506
505e41dc
VS
95072012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9508
9509 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
9510 TRANSLATORS comment.
9511 (grub_diskfilter_print_partmap): Propagate changing of error into
9512 warning.
9513
e44092db
VS
95142012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9515
9516 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
9517 to uint64_t to prevent overflow.
9518 (grub_diskfilter_lv): Increase start_extent and extent_count
9519 to uint64_t to prevent overflow.
9520
9b83956a
VS
95212012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9522
9523 * configure.ac: Increase version.
9524
da0d5b3f
VS
95252012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9526
9527 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
9528
9529 * po/Rules-translit: New file.
9530 * po/arabic.sed: Likewise.
9531 * po/cyrillic.sed: Likewise.
9532 * po/greek.sed: Likewise.
9533 * po/hebrew.sed: Likewise.
9534 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
9535 * po/Makefile.in.in: Add extra_dist4.
9536
ac66b453
VS
95372012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 Handle big-endian minixfs (fixes minixfs tests on bigendian).
9540
9541 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
9542 modify names. Introduce MODE_BIGENDIAN.
9543 * grub-core/fs/minix_be.c: New file.
9544 * grub-core/fs/minix2_be.c: Likewise
9545 * grub-core/fs/minix3_be.c: Likewise.
9546 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
9547 minix3_be.
9548 * grub-core/Makefile.core.def (minix_be): New module.
9549 (minix2_be): Likewise.
9550 (minix3_be): Likewise.
9551
95522012-04-01 Felix <email@hamburg.de>
9553
9554 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
9555 (devs): Add MBP 2011.
9556
0a2d5a82
VS
95572012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9558
9559 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
9560
d1625889
VS
95612012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9562
9563 * grub-core/normal/cmdline.c (print_completion): New field
9564 prompt_len.
9565 (grub_cmdline_get): Handle width properly.
9566
6d36a236
VS
95672012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9568
9569 * grub-core/commands/lsacpi.c (options): Add missing terminator.
9570
9576977e
VS
95712012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9572
9573 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 9574 after 29th of February.
9576977e 9575
d73ff15d
VS
95762012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9577
9578 Fix exfat endianness handling.
9579
9580 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
9581 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
9582 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
9583 Byte-swap utf16 when necessary.
9584 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
9585
bbb39a45
AB
95862012-03-31 Anton Blanchard <anton@samba.org>
95872012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9588
9589 Fix btrfs endianness handling.
9590
9591 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
9592 (lower_bound): Make root uint64_t. Use root in le.
9593 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
9594 (find_path): Fix template key init.
9595 (grub_btrfs_dir): Fix mtime byteswap.
9596 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
9597
354e0af7
VS
95982012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9599
9600 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
9601 recursion_depth. Break infinite resursions. All users updated.
9602
4e75f21c
VS
96032012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9604
9605 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
9606 after free.
9607 Reported by: Peter Jones.
9608
25581802
AB
96092012-03-31 Anton Blanchard <anton@samba.org>
9610
9611 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
9612 8 bit values.
9613
08fbf92e
VS
96142012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9615
9616 * util/grub-install.in: Fix nvram call for PreP.
9617
5d1182a6
VS
96182012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9619
9620 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
9621 the error when some elements are missing into a warning.
9622
3f8cdd90
VS
96232012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
9624
9625 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
9626
51006716
CW
96272012-03-28 Colin Watson <cjwatson@ubuntu.com>
9628
9629 * docs/grub.texi (Invoking grub-probe): New section.
9630 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
9631
e1bd676b
VS
96322012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
9633
9634 Fix tab and wide character handling in editor and menu.
9635
9636 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
9637 agglomerate control characters with combining marks.
9638 (bidi_line_wrap): Allow break on tab.
9639 (grub_unicode_get_comb_start): New function.
9640 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
9641 and tab correctly.
9642 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
9643 with a space.
9644 * grub-core/normal/term.c (print_ucs4_terminal): New argument
9645 fixed_tab_size. All users updated.
9646 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
9647 (grub_term_getcharwidth): Handle \t.
9648 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
9649 and copy.
9650
22e6a774
VS
96512012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 Handle big-endian mdraid.
9654
9655 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
9656 * grub-core/Makefile.core.def (mdraid09_be): New module.
9657 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
9658 rather than grub_le_to_cpu* and grub_cpu_to_le*.
9659 * grub-core/disk/mdraid_linux_be.c: New file.
9660
3c0eae66
VS
96612012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
9664
b6cf74c9
VS
96652012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
9668 missing quotes which caused confusion among translators.
9669
83c93b9c
VS
96702012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9671
9672 * util/grub-mkconfig_lib.in: Fix typo.
9673
ac6fd218
VS
96742012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9675
9676 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
9677 spaces.
9678 * tests/grub_script_leading_whitespace.in: New file.
9679 * Makefile.util.def (grub_script_leading_whitespace): New test.
9680
ba287dd8
VS
96812012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9682
9683 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
9684 to work.
9685
d2d58d0a
VS
96862012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
9689 starts with control character.
9690
0382d9bb
VS
96912012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9692
9693 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
9694 overflow.
9695 (grub_gdb_outbuf): Likewise.
9696
d83ff9f9
VS
96972012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
9698
9699 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
9700 zero terminator. Fixes a crash.
9701
2282da4a
VS
97022012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
9703
9704 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
9705 beyond 4 GiB.
9706 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
9707 images independently of preffered adderss field.
9708
0ae4f0bd
VS
97092012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
9712 * grub-core/commands/regexp.c: Likewise.
9713 * grub-core/loader/i386/linux.c: Likewise.
9714 * grub-core/partmap/msdos.c: Likewise.
9715 * grub-core/script/execute.c: Likewise.
9716 * grub-core/term/gfxterm.c: Likewise.
9717
546fbe9b
VS
97182012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
9719
9720 Add variable parsing in $"..." and fix several mismatches with bash.
9721
9722 * Makefile.util.def (grub_script_gettext): New test.
9723 * grub-core/script/execute.c (parse_string): New function.
9724 (gettext_append): Likewise.
9725 (grub_script_arglist_to_argv): Use gettext_append.
9726 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
9727 * tests/grub_script_gettext.in: New file.
9728
9fdb2d7b
VS
97292012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
9730
9731 Fix handling of leading spaces in scripts.
9732
9733 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
9734 spaces.
9735 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
9736 other than skipping \r. All users updated.
9737 * tests/grub_script_echo1.in: Add space-related tests.
9738 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
9739
1a1ac4f6
VS
97402012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
9741
9742 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
9743
b63d89b6
VS
97442012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9745
9746 * configure.ac: Bump up the version to beta2.
9747
17f38c0f
VS
97482012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9749
9750 Fix gettext reload bugs (e.g. inability to disable gettext
9751 once enabled).
9752
9753 * grub-core/gettext/gettext.c: Encapsulate all static variables in
9754 main_context and secondary_context. All functions updated.
9755 (grub_gettext_translate): Rename to ...
9756 (grub_gettext_translate_real): ... this. Return NULL on failed
9757 translate.
9758 (grub_gettext_translate): Handle secondary context.
9759 (grub_gettext_delete_list): Close file and zero-out the context.
9760 (grub_mofile_open): Don't call grub_gettext_delete_list.
9761 Don't close file.
9762 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
9763 if locale="" to avoid pointless error message.
9764 (grub_gettext_env_write_lang): Update lang even if load fails.
9765 Handle secondary context.
9766 (grub_gettext_reread_prefix): New function.
9767 (read_main): Likewise.
9768 (read_secondary): Likewise.
9769 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
9770 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
9771 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
9772 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
9773
8e56f870
VS
97742012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9775
9776 * configure.ac: Decrease warning level to avoid spurious warnings and
9777 to be able to compile with GCC 4.2.
9778 * Makefile.util.def: Remove -Wno-error=logical-op.
9779
82f6d455
WB
97802012-03-10 William Bittner <william.bittner@gmail.com>
9781
9782 * util/import_unicode.py: Add missing brackets around string for
9783 python 3 support.
9784
1ecd61a4
VS
97852012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9786
9787 Fix efi chainloader on network root.
9788
9789 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
9790 network devices.
9791 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
9792 New function.
9793
14361ee8
VS
97942012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9795
9796 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
9797 unused show_text member.
9798 * docs/grub.texi: Document "text" property.
9799
922aabf3
VS
98002012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9801
9802 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
9803 in dprintf.
9804
ec316771
VS
98052012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9806
9807 Fix IMSM handling on Fedora.
9808
9809 * util/getroot.c (grub_util_is_imsm): New function.
9810 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
9811
0f021838
VS
98122012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9813
9814 * Makefile.am: Strip gold section.
9815 * conf/Makefile.common: Likewise.
9816 * gentpl.py: Likewise.
9817 * grub-core/Makefile.core.def: Likewise.
9818 * grub-core/genmod.sh.in: Likewise.
9819
1039c8eb
VS
98202012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9821
9822 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
9823 * util/grub.d/20_linux_xen.in: Likewise.
9824 Based on Debian patch.
9825
6dd412cd
VS
98262012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9827
9828 * util/grub.d/10_linux.in: Fix syntax error resulting in
9829 Richard Laager's patch.
9830 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
9831
3fd8bae5
VS
98322012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
9835 dependencies.
9836
7eea1671
RL
98372012-03-10 Richard Laager <rlaager@wiktel.com>
9838
9839 * util/grub.d/10_linux.in: Fix ZFS root passing.
9840
e8e0566b
VS
98412012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9842
9843 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
9844 * grub-core/commands/xnu_uuid.c: Likewise.
9845 * grub-core/loader/efi/appleloader.c: Likewise.
9846 * grub-core/script/execute.c: Likewise.
9847 * grub-core/script/main.c: Likewise.
9848 * util/grub-mkfont.c: Likewise.
9849
1acc5b1f
VS
98502012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9851
9852 * util/grub-mkfont.c (options): Use more appropriate "select" that
9853 "set" for face index.
9854
35d70620
VS
98552012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9856
9857 * util/grub-editenv.c (options): Gettextize command summaries.
9858
c9eb96b5
VS
98592012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9860
9861 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
9862 "out of memory" error messagge.
9863
1f493136
VS
98642012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
9867 of diskfilter for diskfilter on diskfilter support.
9868
6d790129
VS
98692012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
9872
005f46c9
VS
98732012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9874
9875 * util/grub-install.in: Check for themes/starfield/theme.txt and not
9876 themes/starfield.
9877
c8f778a0
VS
98782012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9879
9880 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
9881
de1e64eb
VS
98822012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9883
9884 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
9885
c6d54211
VS
98862012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
9887
9888 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
9889 of error message.
9890
dd390777
VS
98912012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
9892
9893 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
9894
5fd1c522
VS
98952012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
9896
9897 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
9898 message.
c6d54211 9899 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 9900
fae01f6c
VS
99012012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
9904 Gettextize.
9905 * util/grub-mount.c (options): Likewise.
9906
292fdaff
VS
99072012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
9910 gettextize.
9911 * grub-core/commands/search_wrap.c (options): Likewise.
9912
ecdbae77
VS
99132012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
9914
9915 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
9916
52bfedfa
VS
99172012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
9918
9919 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
9920 size calculation.
9921 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
9922 none is known.
9923
55b20e58
VS
99242012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
9925
9926 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
9927 "temporary" since it's used in identifier and is limited in space.
9928
fda9d101
VS
99292012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 * po/POTFILES.in: Regenerate. Include *.h since they contain
9932 translatable strings as well.
9933
6a0295e2
VS
99342012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
9937 byte-swap on big-endian.
9938 Reported by: Lennart Sorensen
9939
807fb77c
VS
99402012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
9941
9942 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
9943 (allocate_pages): Improve dprintf.
9944 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
9945 code32_start. Fill code32_start and kernel_alignment in params.
9946 (grub_cmd_initrd): Use prot_init_space.
9947
61ac50ba
VS
99482012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
9951
abdd26dd
VS
99522012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9953
9954 * util/grub-install.in: Add missing dot at the end of sentence.
9955
6e69da9c
VS
99562012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
9959 * grub-core/commands/videotest.c: Likewise.
9960 * grub-core/loader/i386/linux.c: Likewise.
9961
4a929343
VS
99622012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9963
9964 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
9965 sentence.
9966 Reported by: Milo Casagrande.
9967
bb51c6c6
VS
99682012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9969
9970 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
9971 * grub-core/commands/gptsync.c: Likewise.
9972 * grub-core/commands/hashsum.c: Likewise.
9973 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9974 * grub-core/commands/legacycfg.c: Likewise.
9975 * grub-core/io/gzio.c: Likewise.
9976 * grub-core/net/net.c: Likewise.
9977 * grub-core/term/gfxterm.c: Likewise.
9978 * grub-core/term/terminfo.c: Likewise.
9979 * grub-core/tests/test_blockarg.c: Likewise.
9980 * grub-core/video/video.c: Likewise.
9981 * util/grub-install.in: Likewise.
9982 * util/grub-mkfont.c: Likewise.
9983
b2b149cb
VS
99842012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9985
9986 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
9987
c7c080ad
VS
99882012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 9991 Reported by: David Prévot.
c7c080ad 9992
f2e243c0
VS
99932012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
9996 description.
9997
09963c76
VS
99982012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 * util/grub-script-check.c (main): Fix a syntax error message which was
10001 unclear.
10002
a50514a8
VS
100032012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
10006
4650daec
VS
100072012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
10010 messages.
10011
100122012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
10013
10014 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
10015 without argument.
10016 * util/grub-mount.c (options): Likewise.
10017
bbc5a342
VS
100182012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10019
10020 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
10021
ef292a87
VS
100222012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10023
10024 * grub-core/net/http.c: Add TRANSLATORS comments.
10025 * grub-core/normal/cmdline.c: Likewise.
10026 * grub-core/normal/misc.c: Likewise.
10027 * grub-core/partmap/msdos.c: Likewise.
10028 * grub-core/parttool/msdospart.c: Likewise.
10029 * grub-core/script/execute.c: Likewise.
10030 * grub-core/script/main.c: Likewise.
10031 * grub-core/term/terminfo.c: Likewise.
10032 * grub-core/video/bitmap.c: Likewise.
10033 * util/grub-install.in: Likewise.
10034 * util/grub-mkimage.c: Likewise.
10035 * util/grub-mklayout.c: Likewise.
10036 * util/grub-setup.c: Likewise.
10037
0fc19bd0
VS
100382012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10039
10040 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
10041 with similar messages in grub-fstest.
10042
d95862ef
VS
100432012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10044
10045 * util/grub-install.in: Unify "option requires an argument" message
10046 with similar messages in other files.
10047 * util/grub-mkconfig.in: Likewise.
10048
b7308f90
VS
100492012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10050
10051 * util/grub-set-default.in: Replace printf with gettext_printf (the
10052 string in in question is already translated from grub-reboot)
10053
559dc587
VS
100542012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10055
10056 * configure.ac: Bump up the version to beta1.
10057
1a11761f
VS
100582012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10059
10060 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
10061 case when min_align = 0.
10062
24539abd
VS
100632012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10064
10065 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
10066 and fix a case when line_start overflows.
10067
32bd735b
VS
100682012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10069
10070 * util/grub-reboot.in (usage): Mention id posibility.
10071 * util/grub-set-default.in (usage): Likewise.
10072
1a2fd1e6
VS
100732012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10074
10075 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
10076 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
10077 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
10078 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
10079 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10080 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10081 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10082
90eeab76
VS
100832012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10084
10085 * grub-core/commands/menuentry.c (options): Remove
10086 GRUB_ARG_OPTION_REPEATABLE.
10087 Reported by: Andreas Vogel
10088
5ad1be82
AV
100892012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
10090
10091 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
10092
cb055286
HE
100932012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
10094
10095 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
10096 error.
10097
93b1cd79
VS
100982012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10099
10100 Use sort -V by the idea of Georgi Georgiev.
10101
10102 * util/grub-mkconfig_lib.in (version_sort): New function.
10103 (version_test_numeric): Use version_sort.
10104
0cdc126c
VS
101052012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10106
10107 Use submenus in grub-mkconfig.
10108
10109 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
10110 * util/grub-mkconfig_lib.in (grub_quote): New function.
10111 (gettext_printf): Use gettext and not gettext_quoted to fix several
10112 messages.
10113 * util/grub.d/10_hurd.in: Use submenus.
10114 * util/grub.d/10_kfreebsd.in: Likewise.
10115 * util/grub.d/10_linux.in: Likewise.
10116 * util/grub.d/10_netbsd.in: Likewise.
10117 * util/grub.d/20_linux_xen.in: Likewise.
10118 * util/grub.d/30_os-prober.in: Likewise.
10119 * util/grub.d/10_illumos.in: Add missing quoting.
10120 * util/grub.d/10_windows.in: Likewise.
10121
d9bef9bc
VS
101222012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10123
10124 Fix menu title instability bug.
10125
10126 * grub-core/commands/menuentry.c (options): New option --id.
10127 (grub_normal_add_menu_entry): New argument id. All users updated.
10128 (grub_cmd_menuentry): Handle --id.
10129 (grub_menu_init): Accept unknown arguments.
10130 * grub-core/normal/main.c (features): Add feature_menuentry_id and
10131 feature_menuentry_options.
10132 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
10133 saved_entry.
10134 (get_entry_number): Match with id as well.
10135 * include/grub/menu.h (grub_menu_entry): New member id.
10136 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
10137 * util/grub.d/00_header.in: Define menuentry_id_option.
10138 * util/grub.d/10_hurd.in: Define id.
10139 * util/grub.d/10_illumos.in: Likewise.
10140 * util/grub.d/10_kfreebsd.in: Likewise.
10141 * util/grub.d/10_linux.in: Likewise.
10142 * util/grub.d/10_netbsd.in: Likewise.
10143 * util/grub.d/10_windows.in: Likewise.
10144 * util/grub.d/20_linux_xen.in: Likewise.
10145 * util/grub.d/30_os-prober.in: Likewise.
10146
101472012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
10148
10149 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
10150 "scope" with "body".
10151
7c8d0ce7
VS
101522012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10153
10154 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
10155 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
10156 prot_size and prot_file_size.
10157
49de079b
VS
101582012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10159
10160 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
10161 All users updated. If easily=1 require raid-5/-6 to be full.
10162 (is_node_readable): Likewise.
10163 (scan_devices): Scan incomplete but readable LVs at the end.
10164 (grub_diskfilter_memberlist): Pull missing devices.
10165 (insert_array): Skip scanning until device is complete or scan is
10166 done otherwise.
10167 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
10168 check.
10169 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
10170 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
10171
aff05d45
MG
101722012-03-03 Matthew Garrett <mjg@redhat.com>
101732012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10174
10175 Avoid EFI boot services when loading Linux.
10176
10177 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
10178 avoid_efi_bootservices. All users updated.
10179 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
10180 argument avoid_efi_bootservices. All users updated.
10181 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
10182 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
10183 align, min_align, relocatable, prefered_address. All users updated.
10184 Allocate avoiding boot services if kernel is relocatable.
10185 (grub_cmd_linux): Check if kernel is relocatable.
10186 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
10187 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
10188 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
10189 avoid_efi_boot_services.
10190 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
10191 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
10192 (linux_kernel_params): Likewise.
10193
3935dde2
MG
101942012-03-03 Matthew Garrett <mjg@redhat.com>
101952012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10196
10197 Use EDID on EFI.
10198
10199 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
10200 datasize_out.
10201 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
10202 modes. Set gop_handle.
10203 (grub_video_gop_get_edid): New function.
10204 (grub_gop_get_preferred_mode): Likewise.
10205 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
10206 (grub_video_efi_gop_adapter): Set .get_edid.
10207 * include/grub/efi/edid.h: New file.
10208 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
10209
32107ec0
VS
102102012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10211
10212 * util/grub-install.in: Load efivars unconditionally.
10213
e70a2c50
VS
102142012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 * po/Rules-piglatin: Change suffix from .po-update-en to
10217 .po-update-en-piglatin.
10218
8f9cace1
VS
102192012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 Add a pig farm.
10222
10223 * po/piglatin.sed: New file.
10224 * po/en@piglatin.header: Likewise.
10225 * po/Rules-piglatin: Likewise.
10226 * po/README: Add en@piglatin to autogenerated languages.
10227
8f95d002
VS
102282012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10229
10230 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
10231 "Command for ...".
10232 * grub-core/commands/hdparm.c (options): Use "Display" rather than
10233 "Check" since we don't check anything.
10234 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
10235 is 64-bit one.
10236 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
10237 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
10238 (grub_md_sha512_real): Likewise.
10239
805a8dcc
VS
102402012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
10241
10242 * grub-core/commands/gptsync.c: Fix typographic quoting.
10243 * grub-core/commands/ieee1275/suspend.c: Likewise.
10244 * grub-core/commands/parttool.c: Likewise.
10245 * grub-core/commands/search_wrap.c: Likewise.
10246 * grub-core/commands/videoinfo.c: Likewise.
10247 * grub-core/gfxmenu/gui_label.c: Likewise.
10248 * grub-core/hello/hello.c: Likewise.
10249 * grub-core/kern/emu/main.c: Likewise.
10250 * grub-core/net/net.c: Likewise.
10251 * grub-core/normal/menu.c: Likewise.
10252 * grub-core/normal/menu_text.c: Likewise.
10253 * grub-core/normal/misc.c: Likewise.
10254 * util/grub-editenv.c: Likewise.
10255 * util/grub-install.in: Likewise.
10256 * util/grub-kbdcomp.in: Likewise.
10257 * util/grub-mkconfig.in: Likewise.
10258 * util/grub-mknetdir.in: Likewise.
10259 * util/grub-mkrescue.in: Likewise.
10260 * util/grub-mkstandalone.in: Likewise.
10261 * util/grub-reboot.in: Likewise.
10262 * util/grub-set-default.in: Likewise.
10263 * util/grub-setup.c: Likewise.
10264 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10265
40211ab8
VS
102662012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10267
10268 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
10269 * grub-core/commands/keystatus.c: Likewise.
10270 * grub-core/commands/loadenv.c: Likewise.
10271 * grub-core/commands/probe.c: Likewise.
10272 * grub-core/commands/regexp.c: Likewise.
10273 * grub-core/commands/true.c: Likewise.
10274 * grub-core/commands/videoinfo.c: Likewise.
10275 * grub-core/disk/cryptodisk.c: Likewise.
10276 * grub-core/disk/ldm.c: Likewise.
10277 * grub-core/disk/loopback.c: Likewise.
10278 * grub-core/disk/luks.c: Likewise.
10279 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10280 * grub-core/kern/disk.c: Likewise.
10281 * grub-core/kern/emu/hostdisk.c: Likewise.
10282
0c7d99c7
VS
102832012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10284
10285 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
10286 * util/grub-install.in: Add missing quote in the comment.
10287
e7d2559b
VS
102882012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
10291 * grub-core/commands/lsmmap.c: Likewise.
10292 * grub-core/commands/minicmd.c: Likewise.
10293 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
10294 * grub-core/commands/regexp.c: Likewise.
10295 * grub-core/gdb/gdb.c: Likewise.
10296 * grub-core/term/gfxterm.c: Likewise.
10297 * util/grub-mkconfig.in: Likewise.
10298 * util/grub-mkfont.c: Likewise.
10299 * util/grub-mklayout.c: Likewise.
10300 * util/grub-mknetdir.in: Likewise.
10301 * util/grub-mkrescue.in: Likewise.
10302 * util/grub.d/30_os-prober.in: Likewise.
10303
49ce9e50
VS
103042012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10305
10306 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
10307 with "Direct color" and "Packed" with "Packed pixel".
10308 (grub_cmd_videoinfo): Simplify legend.
10309
e4b791fa
VS
103102012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10311
10312 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
10313 absolutely unclear error message.
10314
fd1265cb
VS
103152012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 * util/grub-mkstandalone.in: Remove confusing leftover print.
10318
8822a8a0
VS
103192012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10320
10321 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
10322 comments.
10323 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
10324 (GRUB_MOD_INIT): Likewise.
10325 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
10326 VGA mode.
10327 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
10328 comments.
10329 * util/grub-install.in (usage): Likewise.
10330 Spell ID in whole letters.
10331 Add missing ending dot.
10332 Quote variables.
10333 * util/grub-reboot.in: Fix capitalisation.
10334 * util/grub-set-default.in: Likewise.
10335
937fd0cc
VS
103362012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10337
10338 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
10339 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
10340 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
10341 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
10342 Disable -Werror for -Wdeprecated-declarations.
10343 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
10344 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
10345 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
10346 (grub_util_get_grub_dev): Make luks handling dependent on
10347 HAVE_DEVICE_MAPPER and not __linux__.
10348 (get_win32_path): Fix format security.
10349 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
10350 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
10351 Don't try grub_find_zpool_from_dir.
10352 (grub_make_system_path_relative_to_its_root) [!__linux__]:
10353 #ifdef-out paresdir.
10354
1bab1ae3
VS
103552012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10356
10357 * util/grub-pe2elf.c (usage): Add missing noreturn.
10358 (write_section_data): Rename name to shname to avoid shadowing.
10359 (write_symbol_table): Rename name to symname to avoid shadowing.
10360 Fix write_reloc_section call.
10361
ef023e42
VS
103622012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10363
10364 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
10365 to ensure that it's after the last byte of .text.
10366
48afcb75
VS
103672012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10368
10369 * util/ieee1275/ofpath.c (my_isdigit): New function.
10370 (trailing_digits): Use my_isdigit.
10371 (strip_trailing_digits): Likewise.
10372
88d51eff
VS
103732012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
10376 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
10377
17edc2ba
VS
103782012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10379
10380 * grub-core/kern/i386/pc/startup.S: Define __start.
10381
ad5518d7
VS
103822012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10383
10384 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
10385 strip already transforms he format.
10386
9e95e1bf
VS
103872012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
10388
10389 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
10390
9cc3ee5c
VS
103912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 * util/grub-install.in: Add missing gettext init.
10394 * util/grub-kbdcomp.in: Likewise.
10395 * util/grub-mkconfig.in: Likewise.
10396 * util/grub-mknetdir.in: Likewise.
10397 * util/grub-mkrescue.in: Likewise.
10398 * util/grub-mkstandalone.in: Likewise.
10399 * util/grub-reboot.in: Likewise.
10400 * util/grub-set-default.in: Likewise.
10401 * util/grub.d/00_header.in: Likewise.
10402 * util/grub.d/10_hurd.in: Likewise.
10403 * util/grub.d/10_windows.in: Likewise.
10404 * util/grub.d/30_os-prober.in: Likewise.
10405 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10406
49e08a06
VS
104072012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10408
10409 * po/Rules-swiss: Fix header comment.
10410
3809cb41
AV
104112012-02-29 Andreas Vogel <anvoit>
10412
10413 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
10414 resulted in leak of arguments.
10415
fa6ec573
VS
104162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10417
10418 * grub-core/boot/i386/pc/startup_raw.S: Use separate
10419 reed_solomon_size const definition instead of computing it since
10420 Apple assembler doesn't support the later.
10421
22899b9c
VS
104222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10423
10424 * gentpl.py (kernel): Rewrite Apple part.
10425
a132afc3
VS
104262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10427
10428 * include/grub/kernel.h (FOR_MODULES): Check module magic.
10429
9d742bd4
VS
104302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10431
10432 * util/grub-mkimagexx.c (locate_sections): Support non-standard
10433 ELF section gap.
10434 (load_image): Likewise.
10435
f04a9a21
VS
104362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10437
10438 * configure.ac: Fix a typo in previous commit.
10439
46cf439c
VS
104402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10441
10442 Don't add -Wl,-N on Apple platform.
10443
10444 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
10445 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
10446
c4c48c54
VS
104472012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10448
10449 * grub-core/Makefile.core.def (lzma_decompress): Use
10450 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
10451
31a12124
VS
104522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10453
10454 * grub-core/genmod.sh.in: Rewrite the Apple part.
10455
4f3aa1af
VS
104562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10457
10458 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
10459 comparison.
10460
7bd8b0c7
VS
104612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 * acinclude.m4 (grub_CHECK_PIC): New test.
10464 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
10465
97304d7c
VS
104662012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10467
10468 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
10469 to avoid the warning.
10470
fb883812
VS
104712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10472
10473 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
10474 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
10475 after. All users updated.
10476
a121c964
VS
104772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 Use the common size routine in hostfs so we can read disks as well.
10480
10481 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
10482 (grub_util_get_fd_size): ... this. Return size in bytes.
10483 All users updated.
10484 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
10485 grub_util_get_fd_size.
10486
c66d6410
VS
104872012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
10490 Add blocksize retrieval.
10491
dfc8aeb0
VS
104922012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * configure.ac: Restore CFLAGS after efiemu check.
10495
403e25a5
VS
104962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
10499 Apple bug.
10500
382775d1
VS
105012012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10502
10503 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
10504
6fd4e6e4
VS
105052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10506
10507 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
10508 (grub_cmd_halt): Likewise.
10509
bea359d6
VS
105102012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
10513 for local arithmetics.
10514 Break %sp init into 2 instructions.
10515 Add 0 byte at the end.
10516
32eb6ee1
VS
105172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * grub-core/disk/diskfilter.c (read_segment): Initialise err
10520 before loops.
10521
e8377389
VS
105222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10523
10524 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
10525 for context.
10526
8cb17de7
VS
105272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10528
10529 * grub-core/disk/ldm.c (make_vg): Init part.name.
10530 (grub_ldm_detect): Silence spurious warning.
10531 (grub_util_is_ldm): Likewise.
10532
595717e6
VS
105332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10534
10535 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
10536 sane value to avoid a spurious warning.
10537
c4b7e588
VS
105382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10539
10540 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
10541 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
10542
59824957
VS
105432012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10544
10545 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
10546 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
10547
70115b99
VS
105482012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10549
10550 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
10551 hardcoding the relevant info.
10552
56733740
VS
105532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10554
10555 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
10556 missing const qualifiers.
10557 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
10558
43481481
VS
105592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10560
10561 * util/getroot.c [__APPLE__]: Add missing includes.
10562 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
10563
3cb38f01
VS
105642012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10565
10566 * util/grub-mkimage.c (generate_image): Silence spurious warning.
10567
d9dbf11e
VS
105682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10569
10570 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
10571 avoid conflicts.
10572
0c42a45d
VS
105732012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10574
10575 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
10576
46c34eb0
VS
105772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10578
10579 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
10580 and grub_file_close call.
10581
99ce1597
VS
105822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10583
10584 Add LZSS Mach-O support (needed for new xnu kernelcache).
10585
10586 * grub-core/Makefile.core.def (xnu): Add file lzss.c
10587 * grub-core/loader/lzss.c: New file.
10588 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
10589 on Mach-O open failure.
10590 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
10591 Don't free cmdsXX in uncompressedXX is set.
10592 (grub_macho_file): Init new fields.
10593 New argument is_64bit. All users updated.
10594 Handle compressed. Error out if no suitable architecture is found.
10595 Don't close file.
10596 (grub_macho_open): New argument is_64bit. All users updated.
10597 * grub-core/loader/macho32.c: Add defines for new fields.
10598 * grub-core/loader/macho64.c: Likewise.
10599 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
10600 (grub_macho_parse): Handle compressed.
10601 Defer actual processing if compressed.
10602 (grub_macho_cmds_iterate): Decompress if compressed. New argument
10603 "filename". All users updated.
10604 (grub_macho_size): New argument "filename". All users updated.
10605 (grub_macho_get_entry_point): Likewise.
10606 (grub_macho_load): Handle compressed.
10607 * include/grub/macho.h (grub_macho_lzss_header): New struct.
10608 (GRUB_MACHO_LZSS_OFFSET): New define.
10609 (grub_decompress_lzss): New proto.
10610 * include/grub/machoload.h (grub_macho_file): New fields to handle
10611 compressed.
10612 (grub_macho_contains_macho64): Remove proto.
10613 (grub_macho_contains_macho32): Likewise.
10614 * util/grub.d/30_os-prober.in: Use kernel cache if available.
10615
ebd17d6f
VS
106162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
10619
2702b4e4
VS
106202012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
10621
10622 Fix make dist.
10623
10624 * Makefile.am (starfield_theme_files): New var.
10625 (starfield_DATA): Use starfield_theme_files.
10626 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
10627 Add bootcheck-related files.
10628 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
10629 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
10630 and font_char_metrics.txt.
10631 * grub-core/Makefile.core.def (kernel): Update extra_dist.
10632 (setjmp): Add lib/ia64/longjmp.S.
10633 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
10634 * po/POTFILES.in: Regenerate.
10635 * po/Rules-swiss: use DISTFILES.common.extra2 and not
10636 DISTFILES.common.extra1.
10637 * util/devicemap.c: Removed.
10638 * grub-core/lib/i386/relocator_backward.S: Likewise.
10639 * util/import_gcry.py: Remove unused files. Add extra_dist for
10640 ChangeLog.
10641
cf1adfdf
VS
106422012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
10643
10644 * grub-core/gettext/gettext.c (grub_mofile_open): Call
10645 grub_gettext_delete_list before changing grub_gettext_max to avoid
10646 running out of array bounds.
10647
106482012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
10649
10650 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
10651 grub_vga_text_init/grub_vga_text_fini.
10652
cf1adfdf 106532012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
10654
10655 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
10656
541d92e9
VS
106572012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10658
10659 * configure.ac: Bump to 2.00~beta0.
10660
7931dddf
VS
106612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10662
10663 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
10664 missing initialisation.
10665
f1b16fa3
VS
106662012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10667
10668 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
10669
83ddae23
VS
106702012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 Support v2 xnu boot arguments.
10673
10674 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
10675 New argument fsbfreq_out.
10676 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
10677 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
10678 be used.
10679 * grub-core/loader/machoXX.c (grub_macho_load): New argument
10680 darwin_version.
10681 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
10682 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
10683 (grub_xnu_boot_params): Rename to ...
10684 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
10685 (grub_xnu_boot_params_v2): New struct.
10686
dc693fe6
VS
106872012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10688
10689 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
10690 zeroing of CRC field before computing CRC.
10691
5a6e39c2
VS
106922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
10695 Change order of allocations to decrease fragmentation.
10696
6c21f5d7
VS
106972012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10698
10699 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
10700
cfe456dc
CW
107012012-02-27 Colin Watson <cjwatson@ubuntu.com>
10702
10703 Use write-combining MTRR to speed up video with buggy BIOSes.
10704
10705 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
10706 (cpuid): New define.
10707 (rdmsr): Likewise.
10708 (wrmsr): Likewise.
10709 (mtrr_base): Likewise.
10710 (mtrr_mask): Likewise.
10711 (grub_vbe_enable_mtrr_entry): New function.
10712 (grub_vbe_enable_mtrr): Likewise.
10713 (grub_vbe_disable_mtrr): Likewise.
10714 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
10715 control off to BIOS.
10716 (grub_video_vbe_init): Fill mtrr.
10717 (grub_video_vbe_fini): Disable mtrr.
10718 (grub_video_vbe_get_info_and_fini): Likewise.
10719 (grub_video_vbe_setup): Enable mtrr.
10720
e3c78337
CW
107212012-02-27 Colin Watson <cjwatson@ubuntu.com>
10722
10723 * include/grub/partition.h (grub_partition_map): Change prototype of
10724 embed to take a maximum value for nsectors.
10725 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
10726 * include/grub/fs.h (grub_fs): Likewise.
10727 * grub-core/partmap/msdos.c (embed_signatures): New array.
10728 (pc_partition_map_embed): Check for and avoid sectors matching any
10729 of the signatures in embed_signatures, up to max_nsectors.
10730 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
10731 returned sector map to max_nsectors.
10732 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
10733 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
10734 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
10735 * util/grub-setup.c (setup): Allow for the embedding area being
10736 split into multiple blocklists. Tell dest_partmap->embed the
10737 maximum number of sectors we care about.
10738
107392012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10740
10741 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
10742 Specify blocklist_install and reserver_first_sector for all fs.
10743 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
10744 blocklists.
10745
984b973f
VS
107462012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10747
10748 * util/grub-install.in: Clarify strings.
10749 Fix source dir check.
10750
f122e0d6
RL
107512012-02-27 Richard Laager <rlaager@wiktel.com>
10752
10753 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
10754 "zfs" and "fuse.zfs" as synonyms.
10755
071114bb
VS
107562012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10757
10758 * configure.ac: Put platform and target_cpu substitutions back since
10759 they are used for directories.
10760
817e6abc
RL
107612012-02-27 Richard Laager <rlaager@wiktel.com>
107622012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10763
10764 * util/grub.d/10_linux.in: Add ZFS-related arguments.
10765 * util/grub.d/20_linux_xen.in: Likewise.
10766
897b7419
RL
107672012-02-27 Richard Laager <rlaager@wiktel.com>
10768
10769 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
10770 with full paths.
10771
a414bd15
RL
107722012-02-27 Richard Laager <rlaager@wiktel.com>
10773
10774 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
10775 unescape.
10776
30ac48c4
VS
107772012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10778
10779 Don't use insecure popen in getroot.
10780
10781 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
10782 (exec_pipe): ... here.
10783 (find_root_devices_from_poolname): Use exec_pipe.
10784
53f13848
VS
107852012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10786
10787 Remove platform and target_cpu replacement.
10788
10789 * configure.ac: Remove platform and target_cpu substitutions.
10790 * tests/util/grub-shell.in: Use modinfo.
10791 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
10792 explicitly.
10793
90cb2803
VS
107942012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 Autodetect platform in grub-install but allow override.
10797
10798 * util/grub-install.in: Autodetect platform. Support --target and
10799 --directory. Read platform from modinfo.sh.
10800
b9136427
VS
108012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10802
10803 Support btrfs multi-volume probe.
10804
10805 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
10806 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
10807 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
10808 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
10809 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
10810 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
10811 grub_find_root_devices_from_btrfs if on btrfs.
10812
c36e5cd1
VS
108132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10814
10815 Remove any awareness of *.c util files about target.
10816
10817 * Makefile.util.def (grub-setup): Split to ...
10818 (grub-bios-setup): ... and this.
10819 (grub-sparc64-setup): ... and this.
10820 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
10821 * docs/man/grub-setup.h2m: Split into ...
10822 * docs/man/grub-sparc64-setup.h2m: ... this.
10823 * docs/man/grub-bios-setup.h2m: ... and this.
10824 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
10825 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
10826 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
10827 (grub_target_addr_t): Remove.
10828 (grub_target_size_t): Remove.
10829 (grub_target_ssize_t): Remove.
10830 * util/grub-install.in: Use new grub-*-setup.
10831 * util/grub-mkimagexx.c (Elf_Word): New define.
10832 (Elf_Half): Likewise.
10833 (Elf_Section): Likewise.
10834 (ELF_ST_TYPE): Likewise.
10835 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
10836 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
10837
584b2f8a
VS
108382012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10839
10840 Replace grub_target_addr with more appropriate types.
10841
10842 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
10843 grub_target_addr with grub_addr.
10844 * grub-core/commands/iorw.c (grub_cmd_read): Replace
10845 grub_target_addr with grub_port.
10846 (grub_cmd_write): Likewise.
10847 * grub-core/commands/memrw.c (grub_cmd_read): Replace
10848 grub_target_addr with grub_addr.
10849 (grub_cmd_write): Likewise.
10850 * grub-core/video/efi_uga.c (find_line_len): Likewise.
10851
5a0dc6fb
VS
108522012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10853
10854 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
10855 const qualifier for vendor_guid.
10856
786aff6e
VS
108572012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10858
10859 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
10860 const qualifier.
10861 (efiemu_memequal): Likewise.
10862 (find_variable): Likewise.
10863
49017b17
VS
108642012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10865
10866 Fix missing console prototype on qemu-mips.
10867
10868 * include/grub/mips/qemu_mips/console.h: New file.
10869
c5988629
MG
108702012-02-27 Matthew Garrett <mjg@redhat.com>
108712012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
10874 * include/grub/efi/efi.h: Likewise.
10875 * include/grub/efi/api.h: Add guid for EFI-specified variables.
10876 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
10877 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
10878 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
10879 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
10880 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
10881
e33f8d69
MG
108822012-02-27 Matthew Garrett <mjg@redhat.com>
10883
10884 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
10885
fb312cd9
VS
108862012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10887
10888 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
10889 error.
10890
7134247c
VS
108912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10892
10893 * configure.ac: Remove inappropriate use of program_transform_name
10894 on grubdir and bootdir but allow explicit specification of those
10895 variables.
10896
6a313124
VS
108972012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10898
10899 * util/grub-mknetdir.in (grub_prefix): Removed.
10900 (subdir): Use @bootdirname@ and @grubdirname@.
10901
2311c5ca
VS
109022012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10903
10904 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
10905
7d5d60f7
VS
109062012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10907
10908 * po/POTFILES.in: Regenerated.
10909
8151bc82
VS
109102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10911
10912 Remove improper use of program_transform_name on pkglibrootdir.
10913
10914 * configure.ac (pkglibrootdir): Removed.
10915 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
10916 * util/grub-mkimage.c: Likewise.
10917
b4a6a533
VS
109182012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10919
10920 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
10921 warning.
10922
668f304f
VS
109232012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10924
10925 * util/grub-install.in: Use file identifier if no UUID is available
10926 or user explicitly prompted for it.
10927
665f2341
NP
109282012-02-27 Navdeep Parhar <nparhar@gmail.com>
10929
10930 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
10931 (freebsd_get_zfs): New function.
10932 (grub_freebsd_boot): Pass zfs UUID.
10933 (grub_cmd_freebsd): Set zfs UUID.
10934
8151bc82 109352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
10936
10937 * conf/Makefile.common (platformdir): Base on pkglibdir and not
10938 pkglibrootdir.
10939
e4c498a1
MG
109402012-02-27 Mike Gilbert <floppym@gentoo.org>
10941
10942 Add configure flag to control libzfs integration.
10943
10944 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
10945
1e9a9a3f
VS
109462012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
10947
10948 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
10949 device.
10950 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
10951 small devices.
10952
036985b8
VS
109532012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
10954
10955 Remove grub_{modname}_init and grub_{modname}_fini. They should never
10956 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
10957 be used on non-modules.
10958
10959 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
10960 Rename to grub_boot_init.
10961 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
10962 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
10963 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
10964 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
10965 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
10966 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
10967 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
10968 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
10969 includes.
10970 (grub_machine_init): Remove empty inits.
10971 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
10972 includes.
10973 (grub_machine_init): Remove empty inits.
10974 * grub-core/term/arc/console.c: Remove explicit proto.
10975 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
10976 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
10977 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
10978 grub_at_keyboard_fini.
10979 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
10980 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
10981 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
10982 grub_gfxterm_fini.
10983 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
10984 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
10985 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
10986 grub_vgatext_fini.
10987 * grub-core/term/ieee1275/console.c: Remove explicit proto.
10988 * grub-core/term/serial.c (GRUB_MOD_INIT)
10989 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
10990 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
10991 grub_serial_fini.
10992 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
10993 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
10994 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
10995 grub_terminfo_fini.
10996 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
10997 (GRUB_MOD_FINI): Likewise.
10998 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
10999 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
11000 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11001 grub_video_radeon_fuloong2e_fini.
11002 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
11003 [LOONGSON]: Rename to grub_video_sis315pro_init.
11004 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11005 grub_video_sis315pro_fini.
11006 * grub-core/video/sm712.c (GRUB_MOD_INIT)
11007 [LOONGSON]: Rename to grub_video_sm712_init.
11008 (GRUB_MOD_FINI) [LOONGSON]: Rename to
11009 grub_video_sm712_fini.
11010 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
11011 (grub_at_keyboard_fini): Likewise.
11012 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
11013 Don't declare grub_{modname}_init.
11014 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
11015 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
11016 New proto.
11017 (grub_keylayouts_fini) [!EMU]: Likewise.
11018 * include/grub/serial.h (grub_serial_init) [!EMU]:
11019 New proto.
11020 (grub_serial_fini) [!EMU]: Likewise.
11021 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
11022 New proto.
11023 (grub_terminfo_fini) [!EMU]: Likewise.
11024 * include/grub/video.h (grub_font_init) [!EMU]:
11025 New proto.
11026 (grub_font_fini) [!EMU]: Likewise.
11027 (grub_gfxterm_init) [!EMU]: Likewise.
11028 (grub_gfxterm_fini) [!EMU]: Likewise.
11029 (grub_video_sm712_init) [!EMU]: Likewise.
11030 (grub_video_sm712_fini) [!EMU]: Likewise.
11031 (grub_video_sis315pro_init) [!EMU]: Likewise.
11032 (grub_video_sis315pro_fini) [!EMU]: Likewise.
11033 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
11034 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
11035
d5534665
VS
110362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11037
11038 Make nand a prefix for nand devices.
11039
11040 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
11041
10133b5f
VS
110422012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11043
11044 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
11045 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
11046
8e307a62
VS
110472012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11048
11049 * include/grub/env.h (grub_env_find): Remove prototype.
11050 * grub-core/kern/env.c (grub_env_find): Make static.
11051 (grub_env_set): Remove useless set.
11052
a4c65f34
VS
110532012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11054
11055 * grub-core/kern/i386/realmode.S: Remove useless align.
11056
d87893d5
VS
110572012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11058
11059 * include/grub/dl.h (grub_dl_load_file): Don't export.
11060
50159add
VS
110612012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11062
11063 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
11064 grub_dprintf.
11065
b2582b84
VS
110662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11067
11068 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
11069 grub_errors.
11070 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
11071 not reloading whole superblock but only the part which is really needed.
11072 Remove useless grub_errors.
11073 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
11074 grub_errors.
11075
e2a83395
VS
110762012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11077
11078 Don't export grub_get_rtc.
11079
11080 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
11081 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
11082
e7d2a906
VS
110832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11084
11085 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
11086
6cf1363b
VS
110872012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11088
11089 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 11090 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 11091
eece3349
VS
110922012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11093
11094 Remove prio_list.
11095
11096 * include/grub/list.h (grub_prio_list): Removed.
11097 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
11098 GRUB_COMMAND_PRIO_MASK.
11099 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
11100 GRUB_COMMAND_FLAG_ACTIVE.
11101 (grub_prio_list_insert): Removed.
11102 (grub_prio_list_remove): Likewise.
11103 (GRUB_AS_PRIO_LIST): Likewise.
11104 (GRUB_AS_PRIO_LIST_P): Likewise.
11105 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
11106 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
11107 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
11108 * grub-core/kern/command.c (grub_register_command_prio): Inline
11109 the prio_list code.
11110 (grub_unregister_command): Likewise.
11111
94f064b4
VS
111122012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11113
11114 Fix interrupt mixup from previous commit.
11115
11116 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
11117 (grub_realidt): New var.
11118 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
11119 Load idt.
11120 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
11121 New declaration.
11122 (grub_relocator16_boot): Set grub_relocator16_idt.
11123 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
11124 (LOCAL(realidt)): ... this.
11125 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
11126 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
11127 (grub_realidt): New variable.
11128
27317084
VS
111292012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11130
11131 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
11132 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
11133 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
11134 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
11135 Gettextize.
11136 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
11137 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
11138 * po/POTFILES.in: Regenerate.
11139
47b40053
VS
111402012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11141
11142 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
11143 errors.
11144
2b343101
VS
111452012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11146
11147 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
11148 \0.
11149 (add_length): Likewise.
11150
ff27c3dd
LK
111512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
111522012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
11153
11154 GDB serial and backtrace support.
11155
11156 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
11157 (prot_to_real): Likewise.
11158 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
11159 * grub-core/Makefile.core.def (backtrace): New module.
11160 (gdb): Likewise.
11161 * grub-core/gdb/cstub.c: New file.
11162 * grub-core/gdb/gdb.c: Likewise.
11163 * grub-core/gdb/i386/idt.c: Likewise.
11164 * grub-core/gdb/i386/machdep.S: Likewise.
11165 * grub-core/gdb/i386/signal.c: Likewise.
11166 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 11167 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
11168 * include/grub/backtrace.h: Likewise.
11169 * include/grub/gdb.h: Likewise.
11170 * include/grub/i386/gdb.h: Likewise.
11171
111722012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
11173
11174 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
11175 New function.
11176 (add_length): Likewise.
11177 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
11178 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
11179 proto.
11180 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
11181 __argp_get_display_len.
11182
ff27c3dd 111832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
11184
11185 $"..." support in scripts.
11186
11187 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
11188 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
11189 * grub-core/script/yylex.l: Likewise.
11190 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
11191 value.
11192
ff27c3dd 111932012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
11194
11195 * gentpl.py: Remove obsolete pkglib_DATA handling.
11196
ff27c3dd 111972012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
11198
11199 Don't transform PACKAGE_TARNAME following a discussion on autoconf
11200 mailing list.
11201
11202 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
11203 * util/grub-kbdcomp.in: Likewise.
11204 * util/grub-mkconfig.in: Likewise.
11205 * util/grub-mkconfig_lib.in: Likewise.
11206 * util/grub-mknetdir.in: Likewise.
11207 * util/grub-mkrescue.in: Likewise.
11208 * util/grub-mkstandalone.in: Likewise.
11209 * util/grub-reboot.in: Likewise.
11210 * util/grub-set-default.in: Likewise.
11211 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11212
ff27c3dd 112132012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
11214
11215 Remove GRUB_PREFIX.
11216
11217 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
11218 * util/grub.d/00_header.in: Compute prefix in the only place it's still
11219 used for backward compatibility.
11220
ff27c3dd 112212012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
11222
11223 Add new all_video module.
11224
11225 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
11226 * grub-core/Makefile.core.def (all_video): New module.
11227 * grub-core/genmoddep.awk: Generate dependency of all_video from
11228 video.lst.
11229 * grub-core/lib/fake_module.c: New file.
11230 * grub-core/normal/main.c (features): Add feature_all_video_module.
11231 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
11232 don't do explicit search again.
47454da5 11233 insmod all_video in load_video if available.
22c7ce85 11234
ff27c3dd 112352012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
11236
11237 Another round of string clarification and adding TRANSLATORS comments.
11238
ff27c3dd 112392012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
11240
11241 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
11242
ff27c3dd 112432012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
11244
11245 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
11246 to grub_ssize_t.
11247 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
11248 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
11249
ff27c3dd 112502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
11251
11252 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
11253 trailing newline implicitly. All users updated.
11254
ff27c3dd 112552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
11256
11257 Implement serial on IEEE1275 and EFI.
11258
11259 * docs/grub.texi (Platform-specific limitations): Fix the columen video
11260 on emu. Mention arc and emu as the only platforms without serial
11261 support.
11262 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
11263 ieee1275 platforms.
11264 * grub-core/term/efi/serial.c: New file.
11265 * grub-core/term/ieee1275/serial.c: Likewise.
11266 * grub-core/term/serial.c (grub_serial_find): Disable direct port
11267 specification if no ns8250 driver is available.
11268 (grub_cmd_serial): Likewise.
11269 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
11270 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
11271 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
11272 (grub_efi_parity_type_t): New type.
11273 (grub_efi_stop_bits_t): Likewise.
11274 (grub_efi_serial_io_interface): New struct.
11275 * include/grub/serial.h (grub_serial_port): Make 'broken' field
11276 available for all interfaces.
11277 Add EFI and IEEE1275 fields.
11278 (grub_ofserial_init): New proto.
11279 (grub_efiserial_init): Likeiwse.
11280 * util/grub.d/00_header.in: Don't check for the presence of serial
11281 module.
11282
ff27c3dd 112832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
11284
11285 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
11286 name as if it was an alias.
11287
114076ef
VS
112882012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11289
11290 * grub-core/commands/lsacpi.c (options): Fix typo.
11291
6a656b0e
VS
112922012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 Convert grub-emu to argp.
11295
11296 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
11297 emu.
11298 * util/argp_common.c: Rename to ...
11299 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
11300 Add missing includes.
11301 * grub-core/kern/emu/main.c: Convert to argp.
11302 * po/POTFILES.in: Regenerate.
11303 * util/grub-install.in (usage): Make first letter lowcase in messages
11304 for uniformity.
11305 * util/grub-setup.c (options): Likewise.
11306
1e3f8ae8
VS
113072012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11308
11309 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
11310 Put back accidently commented-out code.
11311
ed167a80
VS
113122012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11313
11314 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
11315 loop check using Brent algorithm.
11316 (grub_hfsplus_btree_search): Likewise.
11317
6753c0ec
VS
113182012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11319
11320 * util/grub-install.in: Fix usage of wrong device for PreP install.
11321
4e27343f
VS
113222012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11323
11324 * conf/Makefile.common (CFLAGS_GNULIB): Add
11325 -Wno-unsafe-loop-optimizations.
11326 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
11327 on tools.
11328 * grub-core/commands/legacycfg.c: Add pragma to skip
11329 -Wunsafe-loop-optimizations.
11330 (check_password_md5_real): Fix loop counter type.
11331 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
11332 reading.
11333 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
11334 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
11335 loop condition.
11336 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
11337 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
11338 * grub-core/net/net.c (grub_net_route_address): Add safety loop
11339 condition.
11340 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
11341 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
11342 avoid possible infinite loops.
11343 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
11344 and -Wunsafe-loop-optimizations.
11345 * grub-core/script/yylex.l: Likewise.
11346 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
11347 (print_glyphs): Avoid infinite loops.
11348 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
11349
697f18b0
GS
113502012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
11351
11352 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
11353 to avoid infinite loop.
11354 (disp_acpi_rsdt_table): Likewise.
11355
274416e8
VS
113562012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11357
11358 * grub-core/font/font.c (grub_font_load): Add support for default
11359 path for fonts ($prefix/fonts).
11360 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
11361 for checking if string is a path.
11362 * grub-core/normal/main.c (features): Add feature_default_font_path.
11363 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
11364 * util/grub.d/00_header.in: Use default directory if possible.
11365 * util/grub-install.in: Install unicode.pf2.
11366
b3e08622
VS
113672012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11368
11369 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
11370 * po/Rules-swiss: New file.
11371 * po/swiss.sed: Likewise.
11372
fe42ce09
VS
113732012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
11374
11375 * grub-core/fs/btrfs.c (find_device): Fix typos.
11376 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
11377 * util/grub-mkrelpath.c (argp_parser): Likewise.
11378 Reported by: Yuri Chornoivan.
11379
72f1d065
DO
113802012-02-23 Dalet Omega <daletomega@gmail.com>
11381
11382 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
11383 for usual informative messages.
11384
c5884973
DO
113852012-02-23 Dalet Omega <daletomega@gmail.com>
11386
11387 Starfield theme.
11388
11389 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
11390 * conf/Makefile.common: Define starfielddir.
11391 * configure.ac: Configure starfield.
11392 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
11393 * themes/starfield/README: Likewise.
11394 * themes/starfield/blob_w.png: Likewise.
11395 * themes/starfield/boot_menu_c.png: Likewise.
11396 * themes/starfield/boot_menu_e.png: Likewise.
11397 * themes/starfield/boot_menu_n.png: Likewise.
11398 * themes/starfield/boot_menu_ne.png: Likewise.
11399 * themes/starfield/boot_menu_nw.png: Likewise.
11400 * themes/starfield/boot_menu_s.png: Likewise.
11401 * themes/starfield/boot_menu_se.png: Likewise.
11402 * themes/starfield/boot_menu_sw.png: Likewise.
11403 * themes/starfield/boot_menu_w.png: Likewise.
11404 * themes/starfield/slider_c.png: Likewise.
11405 * themes/starfield/slider_n.png: Likewise.
11406 * themes/starfield/slider_s.png: Likewise.
11407 * themes/starfield/src/blob_nw.xcf: Likewise.
11408 * themes/starfield/src/bootmenu/: Likewise.
11409 * themes/starfield/src/bootmenu/center.xcf: Likewise.
11410 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
11411 * themes/starfield/src/bootmenu/side.xcf: Likewise.
11412 * themes/starfield/src/slider_c.xcf: Likewise.
11413 * themes/starfield/src/slider_n.xcf: Likewise.
11414 * themes/starfield/src/slider_s.xcf: Likewise.
11415 * themes/starfield/src/terminalbox/: Likewise.
11416 * themes/starfield/src/terminalbox/center.xcf: Likewise.
11417 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
11418 * themes/starfield/src/terminalbox/side.xcf: Likewise.
11419 * themes/starfield/starfield.png: Likewise.
11420 * themes/starfield/terminal_box_c.png: Likewise.
11421 * themes/starfield/terminal_box_e.png: Likewise.
11422 * themes/starfield/terminal_box_n.png: Likewise.
11423 * themes/starfield/terminal_box_ne.png: Likewise.
11424 * themes/starfield/terminal_box_nw.png: Likewise.
11425 * themes/starfield/terminal_box_s.png: Likewise.
11426 * themes/starfield/terminal_box_se.png: Likewise.
11427 * themes/starfield/terminal_box_sw.png: Likewise.
11428 * themes/starfield/terminal_box_w.png: Likewise.
11429 * themes/starfield/theme.txt: Likewise.
11430
17d73325
VS
114312012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
11432
11433 * util/grub.d/00_header.in: Add missing export theme.
11434
dbebaf92
VS
114352012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11436
11437 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
11438 already included.
11439 Reported by: Eren D.
11440
3d68bffb
VS
114412012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11442
11443 * conf/Makefile.common (grubdatadir): Removed.
11444 (Makefile.am): Move eveything grubdata to pkgdata.
11445
4b59234d
VS
114462012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11447
11448 * grub-core/commands/acpihalt.c (get_sleep_type):
11449 Remove unused variable.
11450
463dcadc
VS
114512012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11452
11453 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
11454 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
11455 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
11456 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
11457 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
11458 i18n with gettext no-op.
11459 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
11460 GRUB_ACPI_OPCODE_STRING_CONST.
11461 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
11462 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
11463
e5b90c82
VS
114642012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11465
11466 * po/POTFILES.in: Regenerate.
11467
2a704ca9
VS
114682012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11469
11470 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
11471 -Wno-error=missing-noreturn.
11472
84f9d341
VS
114732012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11474
11475 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
11476 condition to avoid possibly infinite loops.
11477 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
11478 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
11479
d46683f9
VS
114802012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
11483 condition to avoid possibly infinite loops.
11484
c44866b2
VS
114852012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
11488 on show_error.
11489
96790539
VS
114902012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11491
11492 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
11493
1ba7e295
VS
114942012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11495
11496 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
11497
21ffe8f1
VS
114982012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 * util/bin2h.c (usage): Add missing attribute noreturn.
11501
0ccb6b3c
VS
115022012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11503
11504 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
11505 if the size isn't divisible by 512.
11506
b00d7fb6
VS
115072012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11508
11509 Make list_push and list_remove functions rather than inline functions
11510 to decrease size and avoid aliasing violations.
11511
11512 * include/grub/list.h (grub_list_push): Move to ...
11513 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
11514 * include/grub/list.h (grub_list_remove): Move to ...
11515 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
11516
9d369087
VS
115172012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
11518
11519 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
11520 and -Wunused-result.
11521
af0250d9
VS
115222012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
11523
11524 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
11525 Reported by: Seth Goldberg
11526
aad32b14
VS
115272012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
11528
11529 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
11530
ac96441c
ST
115312012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
11532
11533 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
11534 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
11535 command line.
11536 * docs/grub.texi (Simple configuration): Document
11537 GRUB_CMDLINE_GNUMACH.
11538
115392012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
11540
11541 * conf/Makefile.common (platform_SCRIPTS): New variable.
11542 (platform_PROGRAMS): Likewise.
11543 * gentpl.py: Mark *,module and *.image for install.
11544 * grub-core/gdb_grub.in: Add a notice of expected environment.
11545 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
11546 (gmodule.pl): Likewise.
11547
ac96441c 115482012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
11549
11550 Replace grub_checkkey with grub_getkey_noblock.
11551
11552 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
11553 (grub_getkey_noblock): ... this. All users updated.
11554
ac96441c 115552012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
11556
11557 * grub-core/kern/emu/console.c: Move to ...
11558 * grub-core/term/emu/console.c: ...here.
11559 (grub_ncurses_getkey): Fix return value if no key is detected.
11560
e51b5666
VS
115612012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11562
11563 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
11564 (grub_unit_test_fini): Likewise.
11565 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
11566
115672012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11568
11569 * include/grub/test.h (GRUB_UNIT_TEST)
11570
d9a62292
VS
115712012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11572
11573 * grub-core/script/execute.c (grub_script_break): Clarify logic.
11574 Better error handling.
11575 (grub_script_return): Likewise.
11576 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
11577
77c9182f
VS
115782012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11579
11580 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
11581 rimplicit redifinition.
11582
edb13cf9
VS
115832012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11584
11585 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
11586 GRUB.
11587
a9e9dc7c
VS
115882012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11589
11590 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
11591 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
11592 prompt here.
11593
b4ba8e02
VS
115942012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11595
11596 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
11597 as GRUB_ERR_BUG. Don't malloc if no device is available.
11598
dded5540
VS
115992012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11600
11601 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
11602 Mark calling with invalid term as GRUB_ERR_BUG.
11603
0cf69874
VS
116042012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11605
11606 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
11607 packets rather than raising an error.
11608
59bfe502
VS
116092012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11610
11611 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
11612 in if.
11613
db5fc596
VS
116142012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
11617 diagnostic to dprintf.
11618 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11619
e4b7f404
VS
116202012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11621
11622 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
11623 device name.
11624
e7b02f9e
VS
116252012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11626
11627 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
11628 (grub_ntfs_iterate_dir): Likewise.
11629
0331e102
VS
116302012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11631
11632 Efiemu stylistic fixes and gettext.
11633
11634 * grub-core/efiemu/i386/loadcore32.c
11635 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
11636 * grub-core/efiemu/i386/loadcore64.c
11637 (grub_arch_efiemu_relocate_symbols64): Likewise.
11638 * grub-core/efiemu/i386/pc/cfgtables.c
11639 (grub_machine_efiemu_init_tables): Likewise.
11640 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
11641 (grub_efiemu_loadcore_initXX): Add a filename argument.
11642 All users updated.
11643 Improved error message.
11644 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
11645 Add a filename argument.
11646 All users updated.
11647 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
11648 Reclassify double relocation as GRUB_ERR_BUG.
11649
306fc074
VS
116502012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11651
11652 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
11653 handling.
11654
794d8ef2
VS
116552012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
11656
11657 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
11658 on partition.
11659
116602012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
11661
11662 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
11663
794d8ef2 116642012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
11665
11666 Improve string. Gettextize.
11667
78dde88e
VS
116682012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11669
11670 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
11671 utils.
11672 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
11673
4786a90f
VS
116742012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11675
11676 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
11677 [GRUB_UTIL]: New function.
11678 (insert_array) [GRUB_UTIL]: Store partmaps.
11679 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
11680 partmaps.
11681 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
11682 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
11683 (probe_abstraction): Print diskfilter and not raid.
11684 Reported by: Lennart Sorensen
11685
0b6225bd
VS
116862012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11687
11688 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
11689 * util/grub-mkimagexx.c (MASK3): New define.
11690 (add_value_to_slot_20b): Use MASK3.
11691 (add_value_to_slot_21): Likewise.
11692 (relocate_addresses): Fix format specification.
11693 (load_image): Explicitly init symtab_section.
11694
b055f8f6
VS
116952012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11696
11697 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
11698 (grub_util_biosdisk_get_grub_dev): Fix format specification.
11699
b77c2fb7
VS
117002012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11701
11702 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
11703 on powerpc.
11704 Reported by: Lennart Sorensen
11705
e3ec28ab
VS
117062012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 * gentpl.py: Add missing license header.
11709 * docs/grub.texi: Update copyright year.
11710
c8d9ead6
GS
117112012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
11712
11713 Source grub-mkconfig_lib from the build directory at build time.
11714 Suggested by: Vladimir Serbinenko.
11715
11716 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
11717 * util/grub-install.in: Define pkgdatadir if not already set, and source
11718 grub-mkconfig_lib from there.
11719 * util/grub-kbdcomp.in: Likewise.
11720 * util/grub-mkconfig.in: Likewise.
11721 * util/grub-mknetdir.in: Likewise.
11722 * util/grub-mkrescue.in: Likewise.
11723 * util/grub-mkstandalone.in: Likewise.
11724 * util/grub-reboot.in: Likewise.
11725 * util/grub-set-default.in: Likewise.
11726 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11727
ebcecdf1
VS
117282012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11729
11730 Increase warning level.
11731
11732 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
11733 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
11734 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
11735 (TARGET_CFLAGS): Likewise.
11736 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
11737 * grub-core/Makefile.core.def (decompressor_xz): Add
11738 -Wno-unreachable-code.
11739 (normal): Add -Wno-redundant-decls.
11740 (xzio): Add -Wno-unreachable-code.
11741 (lzopio): Add -Wno-redundant-decls -Wno-error.
11742 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
11743 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
11744 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
11745 * grub-core/kern/dl.c: Add exception to -Wcast-align.
11746 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
11747 * grub-core/kern/i386/coreboot/init.c: Add exception to
11748 -Wsuggest-attribute=noreturn.
11749 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
11750 * grub-core/kern/ia64/dl_helper.c: Likewise.
11751 * grub-core/kern/mips/dl.c: Likewise.
11752 * grub-core/kern/sparc64/dl.c: Likewise.
11753 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
11754 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
11755 (memcmp): Likewise.
11756 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
11757 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
11758 * grub-core/loader/mips/linux.c: Likewise.
11759 * grub-core/loader/multiboot_elfxx.c: Likewise.
11760 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
11761 * grub-core/video/sm712.c: Add exception to -Wcast-align.
11762 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
11763 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
11764 fixme.
11765 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
11766 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
11767 Fix prototype.
11768
37bb97fe
VS
117692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11770
11771 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
11772 address.
11773
29a3550b
VS
117742012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11775
11776 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
11777 Avoid improper use of strings.
11778 (grub_cmd_legacy_initrdnounzip): Likewise.
11779
dfdffd0d
VS
117802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11781
11782 * include/grub/emu/misc.h (grub_util_warn): Add missing format
11783 attribute.
11784 (grub_util_info): Likewise.
11785 (grub_util_error): Likewise.
11786
102fae4a
VS
117872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11788
11789 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
11790 * util/grub-fstest.c (fstest): Likewise.
11791
7e94d044
VS
117922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11793
11794 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
11795 (grub_md_sha512_real): Likewise.
11796 (grub_util_get_geli_uuid): Likewise.
11797 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
11798 (grub_util_biosdisk_open): Fix format specification.
11799 Respect format security.
11800 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
11801 (xrealloc): Likewise.
11802 (xasprintf): Likewise.
11803
5ebd9769
VS
118042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11805
11806 * util/import_gcry.py: Include grub/crypto.h in init.c.
11807
495fc8c1
VS
118082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11809
11810 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
11811 (generate_image): Make prefix a const char *.
11812 Fix format specifications. Respect format security.
11813 Avoid void * arithmetics.
11814 Avoid shadowing.
11815 (argp_parser): Remove unused variable. Respect format security.
11816 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
11817 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
11818 (count_funcs): Remove unused variable.
11819 (relocate_addresses): Fix format specification.
11820 Disable x86-64 with elf32. Remove unused variables.
11821 (add_fixup_entry): Avoid shadowing.
11822 (make_reloc_section): Fix format specification.
11823 Use assert.
11824 (locate_sections): Fix format specifications.
11825 (load_image): Avoid shadowing.
11826
043c2ea3
VS
118272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11828
11829 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
11830 Fix format specifications. Respect format security.
11831 Don't translate already translated grub_errmsg.
11832 (argp_parser): Remove unused variable
11833
3ec65a81
VS
118342012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11835
11836 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
11837
a4d9fe4a
VS
118382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11839
11840 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
11841 (main): Likewise. Use xmalloc. Respect format security.
11842
15b81d49
VS
118432012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11844
11845 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
11846 a const char *.
11847 (argp_parser): Remove unused variable.
11848
31731fc0
VS
118492012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11850
11851 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
11852 (add_pixel): Make static.
11853 (add_font): Likewise.
11854 (write_string_section): Make name and str a const char *.
11855 (write_be16_section): Make name a const char *.
11856 (print_glyphs): Make static.
11857 (write_font_ascii_bitmap): Likewise.
11858 (write_font_width_spec): Likewise.
11859 (write_font_pf2): Likewise.
11860 (argp_parser): Remove unused variable.
11861 Respect format security.
11862 (main): Avoid shadowing. Respect format security.
11863
0809527b
VS
118642012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11865
11866 * util/grub-editenv.c (argp_parser): Make static.
11867 (create_envblk_file): Use xmalloc.
11868 (open_envblk_file): Likewise.
11869 Resepect format security.
11870 (set_variables): Respect format security.
11871
45b0c8b7
VS
118722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11873
11874 * util/getroot.c (grub_find_device): Respect format security.
11875 (get_mdadm_uuid): Remove unused variable.
11876 (grub_util_pull_device): Dont call gettext on already translated
11877 grub_errmsg.
11878 (find_system_device): Remove unused variable.
11879 (grub_util_get_grub_dev): Likewise.
11880 (grub_make_system_path_relative_to_its_root): Respect format security.
11881
1b024b4e
VS
118822012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11883
11884 * util/grub-fstest.c (execute_command): Make first argument
11885 a const char *.
11886 (read_file): Avoid shadowing.
11887 Reuse underlying error message if device open fails.
11888 (cmd_cmp): Respect format security.
11889 (root): Make const char *.
11890 (fstest): Remove args argument and use global copy.
11891 Respect format security.
11892 (argp_parser): Make static.
11893 (main): Make default_root const char *.
11894
5d1d4e28
VS
118952012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11896
11897 * util/grub-mount.c (root): Make const char *.
11898 (execute_command): Make first argument a const char *.
11899 (fuse_init): Respect format security.
11900 (argp_parser): Make static. Remove unused variable.
11901 (main): Make default_root a const char *.
11902 Respect format security.
11903
36eb7379
VS
119042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11905
11906 * util/grub-probe.c (probe): Don't call gettext on already translated
11907 grub_errmsg.
11908 Remove unused variables.
11909 (argp_parser): Remove unused variable.
11910
76fb2ea9
VS
119112012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11912
11913 * util/grub-script-check.c (argp_parser): Remove unused variable.
11914 (main): Rename read to curread to avoid shadowing.
11915
56c98584
VS
119162012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11917
11918 * util/misc.c (grub_util_write_image_at): Fix format specification.
11919 (grub_util_write_image): Likewise.
11920 (grub_script_execute_argument_to_string): Removed (unused).
11921 (grub_script_execute_menuentry): Likewise.
11922 (grub_putchar): Likewise.
11923
164ebb48
VS
119242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11925
11926 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
11927 (FUNCTION) [GRUB_UTIL]: Likewise.
11928 (VARIABLE) [GRUB_UTIL]: Likewise.
11929
44318d61
VS
119302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11931
11932 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
11933 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
11934
31a26002
VS
119352012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
11938 buffer.
11939
119402012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11941
11942 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
11943 (LzmaEnc_SaveState): Removed (unused).
11944 (LzmaEnc_RestoreState): Likewise.
11945 (LzmaEnc_InitPriceTables): Made static.
11946 (LzmaEnc_Construct): Likewise.
11947 (LzmaEnc_FreeLits): Likewise.
11948 (LzmaEnc_Destruct): Likewise.
11949 (LzmaEnc_Init): Likewise.
11950 (LzmaEnc_InitPrices): Likewise.
11951 (LzmaEnc_Finish): Likewise.
11952 (LzmaEnc_PrepareForLzma2): Removed (unused).
11953 (LzmaEnc_MemPrepare): Likewise.
11954 (LzmaEnc_GetNumAvailableBytes): Likewise.
11955 (LzmaEnc_GetCurBuf): Likewise.
11956 (LzmaEnc_CodeOneMemBlock): Likewise.
11957
6fa67967
VS
119582012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11959
11960 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
11961 (grub_util_ldm_embed): Likewise.
11962
9a7428e6
VS
119632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11964
11965 * util/grub-editenv.c (print_var): Rename name to varname to
11966 avoid shadowing.
11967 (main): Rename index to curindex to avoid shadowing.
31a26002 11968 Make filename a const char *.
9a7428e6 11969
4f96abd1
VS
119702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11971
11972 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
11973 to arg_getline to avoid shadowing.
11974
44d10dad
VS
119752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11976
11977 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
11978 disk_ to avoid shadowing.
11979
340ba63e
VS
119802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11981
11982 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
11983 curindex to avoid shadowing.
11984 Make static.
11985 (MatchFinder_GetNumAvailableBytes): Make static.
11986
22965bce
VS
119872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11988
11989 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
11990 avoid shadowing.
11991
7b5784d4
VS
119922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11993
11994 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
11995 argument from encrypt to do_encrypt to avoid shadowing.
11996
6f48ca01
VS
119972012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
11998
11999 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
12000 incorrect nesting of #if's.
12001
a4ea2dff
VS
120022012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12003
12004 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
12005 checks which are always false on some platforms.
12006 (grub_cmd_lsacpi): Likewise.
12007 * grub-core/kern/misc.c (grub_strtoul): Likewise.
12008 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
12009 Likewise.
12010
def9fc1b
VS
120112012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
12014 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
12015
a67b2a04
VS
120162012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12017
12018 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
12019 re_dfa_t to avoid breaking alignment invariants.
12020 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
12021 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
12022
44c6828d
VS
120232012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12024
12025 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
12026 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
12027
bebe0dd0
VS
120282012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12029
12030 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
12031 Fix declaration.
12032
a9cdb3cf
VS
120332012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12034
12035 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
12036 conserve alignment invariants.
12037 (grub_ehci_ehcc_read16): Likewise.
12038 (grub_ehci_oper_read32): Likewise.
12039 (grub_ehci_oper_write32): Likewise.
12040 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12041 Conserve alignment invariants.
12042
ccc3b1b8
VS
120432012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
12046 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
12047 declarations.
12048
987fbd95
VS
120492012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12050
12051 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
12052 Remove unused variable.
12053
0df363f3
VS
120542012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12055
12056 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
12057 Remove set in if.
12058
b2c0c4a6
VS
120592012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12060
12061 * include/grub/net.h: Remove double declarations.
12062
690c531f
VS
120632012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 Remove "payload" command in ia64 Linux loader since I couldn't
12066 find any evidence of it being used for anything.
12067 Replace "relocate" command with an environment variable
12068
12069 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
12070 fields.
12071 (ia64_boot_payload): Removed.
12072 (last_payload): Likewise.
12073 (RELOCATE_OFF): Likewise.
12074 (RELOCATE_ON): Likewise.
12075 (RELOCATE_FORCE): Likewise.
12076 (relocate): Likewise.
12077 (free_pages): Don't free payloads.
12078 (grub_load_elf64): Use common error messages.
12079 Use "linux_relocate" variable.
12080 Increase the space after boot_params.
12081 (grub_cmd_payload): Removed.
12082 (grub_cmd_relocate): Likewise.
12083 (grub_cmd_fpswa): Improve messages.
12084 (cmd_payload): Removed.
12085 (cmd_relocate): Likewise.
12086 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
12087 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
12088
01783768
VS
120892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 Convert UHCI to DMA framework.
12092
12093 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
12094 (grub_uhci_pci_iter): Fill new members
12095 (grub_alloc_td): Use P2V and V2P functions.
12096 (grub_free_queue): Likewise.
12097 (grub_alloc_qh): Likewise.
12098 (grub_uhci_setup_transfer): Likewise.
12099 (grub_uhci_check_transfer): Likewise.
12100
43206939
VS
121012012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12102
12103 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
12104 Remove assignment in if while on it.
12105
571e140e
VS
121062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12107
12108 * util/grub-mkstandalone.in: Fix modules directory.
12109
a9d96eeb
VS
121102012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12111
12112 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
12113 on i386-pc target.
12114 (argp_parser): Accept "auto" as compression specification.
12115
e4e37e8d
VS
121162012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12117
12118 Fix `help' with unloaded modules.
12119
12120 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
12121 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
12122 (grub_dyncmd_dispatcher): Small stylistic fix.
12123 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
12124 explicit help is requested.
12125
e1ea3ade
VS
121262012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12127
12128 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
12129 Explicitly init restart while on it.
12130
27556881
VS
121312012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12132
12133 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
12134 uninited variable.
12135
d65f6b36
VS
121362012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12137
12138 * util/grub-mknetdir.in: Use . rather than source for POSIX
12139 compatibility.
12140
0a1e473c
VS
121412012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12142
12143 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
12144
ce6647c8
VS
121452012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12146
12147 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
12148 variable.
12149
66747894
VS
121502012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12151
12152 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
12153 without quotes.
12154
71645f6e
VS
121552012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12156
12157 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
12158
0e1c1f61
VS
121592012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12160
12161 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
12162 iteration of partitions.
12163
9c4b5c13
VS
121642012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
12165
12166 Improve gettext support. Stylistic fixes and error handling fixes while
12167 on it.
12168
215c90cb
VS
121692012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12170
12171 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
12172 part. Instead setup the correct stack in RM.
12173 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
12174 for stack.
12175 * include/grub/i386/relocator_private.h: New file.
12176
b5c1f9bf
VS
121772012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12178
12179 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
12180 argument.
12181 * util/grub-fstest.c (options): Add missing DEVICE part.
12182
b525fd83
VS
121832012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12184
12185 Clarify and unify messages.
12186
12187 * grub-core/commands/hashsum.c (options): Unify messages.
12188 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
12189 literal-only message as translatable.
12190 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
12191 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
12192 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
12193 commands.
12194 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
12195 key, not the key used to unlock. Clarify what it's used for.
12196 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
12197 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
12198 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
12199 * util/grub-editenv.c (options): Unify "verbose" message.
12200 * util/grub-fstest.c (read_file): Unify error message.
12201 (fstest): Add quotes around commands.
12202 (options): Unify "verbose" message.
12203 * util/grub-install.in: Add quotes around variable name.
12204 * util/grub-kbdcomp.in: Unify error message.
12205 * util/grub-mkfont.c (main): Likewise.
12206 * util/grub-mkrescue.in: Likewise.
12207 * util/grub-mklayout.c (options): Unify "verbose" message.
12208 * util/grub-mkstandalone.in: Unify help and verbose messages.
12209 * util/grub-mount.c (options): Unify "verbose" message.
12210 * util/grub-probe.c (options): Likewise.
12211 * util/grub-script-check.c (options): Likewise.
12212 * util/grub-setup.c (setup): Unify no-terminator message.
12213 (options): Use DEVICE and not DEV.
12214 Unify "verbose" message.
12215 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
12216
0ae70393
VS
122172012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12218
12219 Improve and unify messages.
12220
12221 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
12222 name. All users updated.
12223 Print filename in error.
12224 (read_device_map): Print filename in error.
12225 * util/getroot.c (grub_guess_root_devices): Print filename in error.
12226 (grub_util_get_os_disk): Likewise.
12227 (grub_util_biosdisk_get_grub_dev): Likewise.
12228 (grub_util_check_block_device): Likewise.
12229 (grub_util_check_char_device): Likewise.
12230 (grub_make_system_path_relative_to_its_root): Likewise.
12231 * util/grub-editenv.c (create_envblk_file): Likewise.
12232 (open_envblk_file): Likewise.
12233 (write_envblk): Likewise.
12234 * util/grub-fstest.c (cmd_cp): Likewise.
12235 (cmd_cat): Likewise.
12236 (cmd_cmp): Likewise.
12237 * util/grub-menulst2cfg.c (main): Likewise.
12238 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
12239 (write_font_width_spec): Likewise.
12240 (write_font_pf2): Likewise.
12241 * util/grub-mkimage.c (generate_image): New argument outname.
12242 All users updated.
12243 Remove unreacheable message.
12244 (options): Unify messages.
12245 (help_filter): Likewise.
12246 * util/grub-mklayout.c (usage): Removed (unused).
12247 (main): Print filename in error.
12248 * util/grub-mkrescue.in: Fix wrong quoting.
12249 * util/grub-setup.c (setup): Print filename in error.
12250 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
12251 (check_sas): Likewise.
12252 * util/misc.c (grub_util_get_fp_size): Removed.
12253 (grub_util_get_image_size): Print filename in error.
12254 (grub_util_read_at): Removed.
12255 (grub_util_read_image): Print filename in error.
12256 (grub_util_load_image): Likewise.
12257 (grub_util_write_image_at): New argument filename. All users updated.
12258 Print filename in error.
12259 (grub_util_write_image): New argument filename. All users updated.
12260 Print filename in error.
12261 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
12262 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
12263
0a96117d
VS
122642012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12265
12266 * grub-core/Makefile.core.def (pxechain): New module.
12267 * grub-core/loader/i386/pc/pxechainloader.c: New file.
12268 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
12269 function.
12270 (grub_pc_net_config_real): Use grub_pxe_get_cached.
12271 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
12272
aca002f7
VS
122732012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12274
12275 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
12276 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
12277 * include/grub/err.h (grub_error_saved): New struct.
12278 (grub_errmsg): Make array size explicit.
12279 * include/grub/misc.h (grub_error_save): New function.
12280 (grub_error_load): Likewise.
12281 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
12282 (grub_error_push): Update `errno' member name.
12283 (grub_error_pop): Likewise
12284 * grub-core/net/tftp.c (tftp_data): New member save_err.
12285 (tftp_receive): Save error.
12286 (tftp_open): Restore error.
12287
a51dab13
VS
122882012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
12289
12290 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
12291 to real mode down to execute A20-related code in protected mode as
12292 intended.
12293
eb6e6649
GS
122942012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
12295
12296 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
12297 NULL when the argument `level' has an unexpected value.
12298
92cd0f6e
VS
122992012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12300
12301 Move platform-dependent files from $prefix to $prefix/$platform.
12302
12303 * config.h.in (GRUB_TARGET_CPU): New definition.
12304 (GRUB_PLATFORM): Likewise.
12305 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
12306 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
12307 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
12308 * grub-core/kern/dl.c (grub_dl_load): Likewise.
12309 * grub-core/normal/autofs.c (read_fs_list): Likewise.
12310 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
12311 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
12312 * grub-core/normal/term.c (read_terminal_list): Likewise.
12313 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
12314 $prefix/locale.
12315 (grub_gettext_init_ext): Likewise.
12316 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
12317 grub_platform.
12318 * util/grub-install.in: Update directories.
12319 * util/grub-mknetdir.in: Likewise.
12320 * util/grub-mkrescue.in: Likewise.
12321
db606889
VS
123222012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12323
12324 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
12325 grub_error framework. All users updated.
12326
c39992a4
VS
123272012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12328
12329 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
12330 lists (by always binsearching), improve caching (cache strings
12331 used for binsearch, not only results), improve
12332 maintainability (by using more structured binary search) and correct
12333 error handling.
12334
1e5ec32f
VS
123352012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12336
12337 * grub-core/script/execute.c (grub_script_return): Fix warning.
12338
ac576cde
VS
123392012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
12340
12341 * grub-core/script/execute.c (grub_script_return): Fix potential
12342 NULL-dereference.
12343 Reported by: Jim Meyering.
12344
498453f6
VS
123452012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12346
12347 * po/POTFILES.in: Regenerate.
12348 * util/grub-install.in: Gettextize the strings missed in first pass.
12349
8be63f2e
VS
123502012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12351
12352 * Makefile.util.def (grub-mkdevicemap): Removed.
12353 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
12354 * include/grub/util/deviceiter.h: Removed.
12355 * util/deviceiter.c: Likewise.
12356 * util/getroot.c (grub_util_get_os_disk): New function.
12357 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
12358 replacement for EFI.
12359 * util/grub-mkdevicemap.c: Removed.
12360 * util/grub-probe.c (probe): Handle PRINT_DISK.
12361 (argp_parser): Handle -t disk.
12362
8e1e4e39
VS
123632012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12364
12365 * util/grub-mkfont.c: Migrate to argp.
12366 * util/grub-mklayout.c: Likewise.
12367 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12368 * util/grub-mkrelpath.c: Likewise.
12369 * util/grub-probe.c: Likewise.
12370 * util/grub-script-check.c: Likewise.
12371
4459819a
VS
123722012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12373
12374 * util/grub-reboot.in: Add missing datarootdir.
12375 Add missing newline.
12376 * util/grub-set-default.in: Add missing datarootdir.
12377 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
12378 * util/grub-mkrescue.in: Likewise.
12379
f65741c7
VS
123802012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12381
12382 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
12383
c1a33466
VS
123842012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12385
12386 * util/grub-kbdcomp.in: Add decent help and gettextize.
12387 * docs/man/grub-kbdcomp.h2m: New file.
12388
c76899a0
VS
123892012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12390
12391 Migrate grub-mkimage.c to argp.
12392
12393 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
12394 (grub-setup): Likewise.
12395 * util/grub-setup.c (print_version): Move to ...
12396 * util/argp_common.c (print_version): ... here.
12397 * util/grub-setup.c (argp_program_version_hook): Move to ...
12398 * util/argp_common.c (argp_program_version_hook): ... here.
12399 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
12400 safety.
12401 * util/grub-mkimage.c (main): Migrate to argp.
12402
57db0757
VS
124032012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12404
12405 * util/grub-mkrescue.in: Use same message as
12406 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
12407 for better translations.
12408
18534ad9
VS
124092012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12410
12411 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
12412 options with generic grub-mkrescue.in with the goal of future
12413 merge.
12414
c84ba308
VS
124152012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 * grub-core/kern/mm.c: Add missing include of i18n.h
12418 * grub-core/lib/relocator.c: Likewise.
12419
347998c2
VS
124202012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12421
12422 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
12423 error.
12424 (allocate_pages): Check return value.
12425 Replace fatal with error.
12426 (grub_linux_boot): Replace printf with dprintf.
12427 Check find_mmap_size return value.
12428 Replace fatal with error.
12429 Don't call grub_machine_fini.
12430 (grub_load_elf64): Replace printf with dprintf.
12431 (grub_cmd_linux): Likewise.
12432 (grub_cmd_initrd): Likewise.
12433 (grub_cmd_payload): Likewise.
12434
c779226e
VS
124352012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12436
12437 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
12438 message.
12439 * grub-core/video/radeon_fuloong2e.c
12440 (grub_video_radeon_fuloong2e_setup): Likewise.
12441 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
12442 * grub-core/video/video.c (grub_video_set_mode): Don't override
12443 standard out of memory message.
12444
dc87d45a
GS
124452012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12446
12447 NetBSD disk wedge support.
12448
12449 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
12450 [__NetBSD__]: Handle NetBSD disk wedges.
12451 * util/getroot.c (convert_system_partition_to_system_disk)
12452 [__NetBSD__]: Likewise.
12453
055f856f
MW
124542012-02-03 Mark Wooding <mdw@distorted.org.uk>
12455
12456 * util/grub-mkconfig.in: Use umask rather than chmod to create
12457 grub.cfg.new to avoid insecure grub.cfg.
12458
4a9f8346
VS
124592012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12460
12461 * grub-core/commands/ls.c: Gettextize.
12462 * grub-core/commands/setpci.c: Likewise.
12463 * grub-core/commands/videotest.c: Likewise.
12464 * grub-core/disk/geli.c: Likewise.
12465 * grub-core/kern/mm.c: Likewise.
12466 * grub-core/lib/relocator.c: Likewise.
12467 * grub-core/loader/efi/appleloader.c: Likewise.
12468 * grub-core/loader/i386/xnu.c: Likewise.
12469 * grub-core/loader/ia64/efi/linux.c: Likewise.
12470 * grub-core/loader/xnu.c: Likewise.
12471 * grub-core/net/dns.c: Likewise.
12472 * grub-core/net/net.c: Likewise.
12473 * grub-core/script/lexer.c: Likewise.
12474 * grub-core/script/parser.y: Likewise.
12475 * grub-core/script/yylex.l: Likewise.
12476 * util/getroot.c: Likewise.
12477 * util/grub-setup.c: Likewise.
12478
a646a366
VS
124792012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12480
12481 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
12482 number.
12483
54e2be26
VS
124842012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12485
12486 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
12487
f7c71e68
VS
124882012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12489
12490 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
12491 macro.
12492 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
12493 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
12494
a32d5c71
VS
124952012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12496
12497 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
12498 * util/grub-install.in: Gettextize.
12499 * util/grub-mkconfig.in: Likewise.
12500 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
12501 if not available.
12502 (grub_warn): Gettextize.
12503 * util/grub-mknetdir.in: Gettextize.
12504 * util/grub-mkrescue.in: Likewise.
12505 * util/grub-mkstandalone.in: Likewise.
12506 * util/grub-reboot.in: Likewise.
12507 * util/grub-set-default.in: Likewise.
12508 * util/grub.d/00_header.in: Likewise.
12509 * util/grub.d/10_hurd.in: Likewise.
12510 * util/grub.d/10_kfreebsd.in: Likewise.
12511 * util/grub.d/10_linux.in: Likewise.
12512 * util/grub.d/10_netbsd.in: Likewise.
12513 * util/grub.d/10_windows.in: Likewise.
12514 * util/grub.d/20_linux_xen.in: Likewise.
12515 * util/grub.d/30_os-prober.in: Likewise.
12516 * po/POTFILES-shell.in: Regenerate.
12517
69edd81a
RL
125182012-02-03 Richard Laager <rlaager@wiktel.com>
12519
12520 * util/grub-mkimage.c (main): Fix format-security warning.
12521 * util/grub-mkrelpath.c (main): Likewise.
12522 * util/grub-probe.c (main): Likewise.
12523
65f08dbf
RL
125242012-02-03 Richard Laager <rlaager@wiktel.com>
12525
12526 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
12527 failure.
12528 Put back lost PRINT_DRIVE.
12529
e9084abe
RL
125302012-02-03 Richard Laager <rlaager@wiktel.com>
12531
12532 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
12533 (grub_guess_root_devices): Replace strlen with sizeof.
12534 Avoid crash.
12535 (find_root_devices_from_poolname): Remove unused variable.
12536 Handle raidzN.
12537
cf5f7ee7
VS
125382012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12539
12540 Support install on multi-device filesystems.
12541
12542 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
12543 (grub_guess_root_devices): ...this. Return char **. All users updated.
12544 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
12545 Removed.
12546 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
12547 (find_root_devices_from_poolname): ... here.
12548 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
12549 Support zfs-fuse.
12550 (grub_guess_root_device): Rename to ...
12551 (grub_guess_root_devices): ... this. Return char **. All users updated.
12552 * util/grub-install.in: Handle multi-device filesystems.
12553 * util/grub-probe.c (probe). Make device_names a char **. Add delim
12554 argument. All users updated.
12555 Handle multi-device filesystems.
12556 Use 'delim' as separator.
12557 Remove device check to allow filesystems on file.
12558 (main): Support -0 argument. Handle multi-device.
12559 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
12560 Fix a cross-device check while on it.
12561 (arguments): Remove root_dev.
12562 (argp_parser): Remove -r.
12563 (main): Remove root_dev.
12564
2f53a9ed
VS
125652012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12566
12567 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
12568
17e1d934
VS
125692012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12570
12571 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
12572 symbol.
12573 Reported by: NODA, Kai <nodakai>.
12574
d3e3fab5
VS
125752012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12576
12577 Fix ehci on amd64.
12578
12579 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
12580 pointers.
12581 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
12582 (grub_ehci_setup_qh): Likewise.
12583 (grub_ehci_find_qh): Likewise.
12584 (grub_ehci_transaction): Likewise.
12585 (grub_ehci_setup_transfer): Likewise.
12586 (grub_ehci_check_transfer): Likewise.
12587 (grub_ehci_portstatus): Likewise.
12588 (grub_ehci_detect_dev): Likewise.
12589 (grub_ehci_transfer_controller_data): New field td_last_phys.
12590 (grub_ehci_setup_transfer): Fill td_last_phys.
12591 (grub_ehci_check_transfer): Use td_last_phys.
12592
3008675b
SG
125932012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
12594
12595 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
12596 if no submenu is present.
12597
fc9b5652
AN
125982012-02-01 Aleš Nesrsta <starous@volny.cz>
12599
12600 CBI support.
12601
12602 * include/grub/usb.h (grub_usbms_protocol_t): New values
12603 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
12604 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
12605 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
12606 (grub_usbms_dev): Add subclass, protocol and intrpt.
12607 Remove in_maxsz and out_maxsz.
12608 (grub_usbms_reset): Rename to ...
12609 (grub_usbms_bo_reset): .. this.
12610 (grub_usbms_cbi_cmd): New function.
12611 (grub_usbms_cbi_reset): Likewise.
12612 (grub_usbms_reset): Likewise.
12613 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
12614 (grub_usbms_transfer): Rename to ...
12615 (grub_usbms_transfer_bo): ... this.
12616 (grub_usbms_transfer_cbi): Likewise.
12617 (grub_usbms_transfer): Likewise.
12618
a2b81d53
AN
126192012-02-01 Aleš Nesrsta <starous@volny.cz>
126202012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
12621
12622 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
12623 the support for the CS5536 modification thereos and few bugfixes.
12624
12625 * grub-core/Makefile.core.def (ehci): New module.
12626 * grub-core/bus/usb/ehci.c: New file.
12627 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
12628 port and hubaddr. All users updated.
12629 Save port and hubaddr into dev structure.
12630 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
12631 define.
12632 * include/grub/pci.h (grub_dma_phys2virt): New function.
12633 (grub_dma_virt2phys): Likewise.
12634 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
12635
b1d51f02
VS
126362012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12637
12638 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
12639 check as some mkfs implementations omit it.
12640
fc694106
VS
126412012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12642
12643 * docs/grub.texi (Unicode): Mention identifier and space limitations.
12644
6c0920e3
VS
126452012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12646
12647 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
12648 Add new member volname2.
12649 (grub_jfs_label): Use volname2 if available.
12650
d1a46f9a
VS
126512012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12652
12653 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
12654 over last_mounted as seen in image generated by mkfs.nilfs2.
12655 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
12656
dec8ed14
VS
126572012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12658
12659 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
12660 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
12661 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
12662
7397c69b
VS
126632012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12664
12665 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
12666 over the sector.
12667
b3fe42ad
VS
126682012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
12671 subvolume name (by removing a bogus and useless check).
12672
10476bb0
VS
126732012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
12676 sizeof while on it.
12677
9c08ad87
VS
126782012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
12679
12680 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
12681 (grub_scsi_read_capacity10): ... this.
12682 (grub_scsi_read_capacity16): New function.
12683 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
12684 0xffffffff.
12685 Fix off-by-one error.
12686 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
12687 64-bit unsigned.
12688 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
12689 (grub_scsi_read_capacity10): ... this.
12690 (grub_scsi_read_capacity_data): Rename to ...
12691 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
12692 (grub_scsi_read_capacity16): New struct.
12693 (grub_scsi_read_capacity16_data): Likewise.
12694 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
12695 grub_scsi_cmd_read_capacity10.
12696 New command grub_scsi_cmd_read_capacity16.
12697
bc8d0f45
VS
126982012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
12699
12700 SCSI >2TiB support.
12701
12702 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
12703 (grub_scsi_write16): Likewise.
12704 (grub_scsi_read): Use read16 when necessary.
12705 (grub_scsi_write): Likewise.
12706 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
12707 (grub_scsi_write16): Likewise.
12708 (grub_scsi_cmd_t): Add READ16 and WRITE16.
12709
cc774926
VS
127102012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
12711
12712 SCSI write support (for usbms mainly).
12713
12714 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
12715 a const pointer.
12716 (grub_scsi_write): Implement.
12717 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
12718
67639fd7
VS
127192012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
12720
12721 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
12722 variable.
12723
9079d3ed
VS
127242012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12725
12726 * grub-core/lib/posix_wrap/string.h (memchr): New function.
12727
c6a6f204
VS
127282012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12729
12730 * po/POTFILES.in: Regenerate.
12731
ecbf8cd1
VS
127322012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12733
12734 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
12735 with grub_printf to avoid unnecessary fatal failure.
12736
0b3b3b38
VS
127372012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12738
12739 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
12740 (INT_MAX): Likewise.
12741 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
12742 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
12743 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
12744 (strcpy): Likewise.
12745 (strstr): Likewise.
12746 (strchr): Likewise.
12747 (strncpy): Likewise.
12748 (strcat): Likewise.
12749 (strncat): Likewise.
12750 (strcoll): Likewise.
12751 * include/grub/types.h (GRUB_SHRT_MAX): New define.
12752 (GRUB_INT_MAX): Likewise.
12753
db7337a3
VS
127542012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12755
12756 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
12757 unexpected error.
12758 (optimize_utf8): Likewise.
12759 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
12760
f37c87e1
VS
127612012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12762
12763 * grub-core/boot/i386/pc/lnxboot.S: Use
12764 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
12765 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
12766 location.
12767 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
12768 definition.
12769 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
12770
63fe43f3
VS
127712012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12772
12773 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
12774 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
12775 now to avoid double free.
12776 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
12777 hostdisk.
12778 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
12779 * util/grub-probe.c (escape_of_path): Always return a new copy.
12780 (print_full_name): Escape path.
12781 (probe): Don't call grub_util_devname_to_ofpath on NULL.
12782 Fix hints on abstractions.
12783
ebe2c961
VS
127842012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12785
12786 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
12787 Don't add "root" line if no compatibility hont is available.
12788 Suggested by: Seth Goldberg.
12789
2b5336a2
VS
127902012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12791
12792 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
12793 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
12794 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
12795 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
12796
74310bd8
VS
127972012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12798
12799 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
12800
c30582ba
VS
128012012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12802
12803 * util/grub-pe2elf.c (ehdr): Make static.
12804 (shdr): Likewise.
12805 (num_sections): Likewise.
12806 (offset): Likewise.
12807
5f47782c
VS
128082012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 Eliminate ofpath limits and possible overflows.
12811
12812 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
12813 (OF_PATH_MAX): Removed.
12814 (MAX_DISK_CAT): New const.
12815 (find_obppath): Use allocated rather than preallocated buffer.
12816 Return result. Argument of_path removed. All users updated.
12817 Add missing fdstat.
12818 (xrealpath): New function.
12819 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
12820 Allocate rather than use preallocated buffer. All users updated.
12821 (__of_path_common): Use allocated rather than preallocatecd buffer.
12822 Return result. Argument of_path removed. All users updated.
12823 (vendor_is_ATA): Read only needed part form the file.
12824 (check_sas): Allocate depending on contents rather than fixed.
12825 (main) [STANDALONE]: Handle NULL result.
12826
f990cbf9
VS
128272012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12828
12829 * grub-core/normal/completion.c (iterate_dev): Close the disk.
12830
9c6e84b8
VS
128312012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12832
12833 Cryptodisk write support.
12834
12835 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
12836 (grub_cryptodisk_decrypt): Moved logic to ...
12837 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
12838 (grub_cryptodisk_write): Implement.
12839 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
12840 (grub_util_fd_write): ... this. Make global.
12841 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
12842
87cf9744
VS
128432012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 * include/grub/list.h (grub_list_remove): Don't crash if element is
12846 removed twice.
12847
ca8c0baf
VS
128482012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12849
12850 Rename ofconsole to console.
12851
12852 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
12853 as sysnonym to console.
12854 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
12855 * grub-core/term/ieee1275/console.c: ... this. All users updated.
12856 Rename grub_ofconsole_ to grub_console_. All users updated
12857 (grub_console_term_output): Rename "ofconsole" to "console".
12858 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
12859 as "console".
12860
64c8b8f6
VS
128612012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12862
12863 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
12864 handling.
12865 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
12866 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
12867 GRUB_DISK_DEVICE_FILE_ID.
12868
f6c434d5
VS
128692012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12870
12871 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
12872 and improve performance.
12873
5858b42d
VS
128742012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12875
12876 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
12877 missing ieee1275/ prefix on whole disk.
12878
4ed3c26b
VS
128792012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12880
12881 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
12882 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
12883
df71143e
VS
128842012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12885
12886 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
12887
076e7c0f
VS
128882012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
12889
12890 Merge common RAID and LVM logic to an abstract diskfilter.
12891 Add LDM support using the same framework.
12892
12893 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
12894 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
12895 (libgrubmods): Remove grub-core/disk/raid.c and
12896 grub-core/partmap/gpt.c.
12897 * grub-core/Makefile.core.def (ldm): New module.
12898 (raid): Renamed to diskfilter. All users updated.
12899 * grub-core/disk/raid.c: Moved to ...
12900 * grub-core/disk/diskfilter.c: ... here.
12901 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
12902 (lv_num): New var.
12903 (find_array): Renamed to ...
12904 (find_lv): ... this. Support multi-LV. Skip nameless LVs
12905 (grub_is_array_readable): Renamed to ...
12906 (grub_is_lv_readable): ... this. Support multinode hierarchy.
12907 (insert_array): New argument id.
12908 (is_node_readable): New function.
12909 (scan_device): Rename to ...
12910 (scan_disk): .. this. Restrict to one disk.
12911 (scan_devices): New function.
12912 (grub_diskfilter_iterate): Support multi-LV.
12913 Skip invisible and nameless LVs.
12914 (grub_diskfilter_memberlist): Support multi-LV.
12915 (grub_diskfilter_read_node): New function.
12916 (grub_raid_read): Most of logic moved to ...
12917 (read_segment): ... here
12918 (read_lv): New function.
12919 (grub_diskfilter_get_vg_by_uuid): New function.
12920 (grub_diskfilter_make_raid): Likewise.
12921 * grub-core/disk/ldm.c: New file.
12922 * grub-core/disk/lvm.c (vg_list): Removed.
12923 (lv_count): Likewise.
12924 (scan_depth): Likewise.
12925 (is_lv_readable): Likewise.
12926 (grub_lvm_getvalue): Advance pointer past the number.
12927 (find_lv): Removed.
12928 (do_lvm_scan): Refactored into ...
12929 (grub_lvm_detect): ... this. Support raid.
12930 (grub_lvm_iterate): Removed.
12931 (grub_lvm_memberlist): Likewise.
12932 (grub_lvm_open): Likewise.
12933 (grub_lvm_close): Likewise.
12934 (read_lv): Likewise.
12935 (read_node): Likewise.
12936 (is_node_readable): Likewise.
12937 (is_lv_readable): Likewise.
12938 (grub_lvm_read): Likewise.
12939 (grub_lvm_write): Likewise.
12940 (grub_lvm_dev): Use diskfilter
12941 (GRUB_MOD_INIT): Likewise.
12942 (GRUB_MOD_FINI): Likewise.
12943 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
12944 new interface.
12945 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
12946 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
12947 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
12948 grub_diskfilter_read_node.
12949 Fix a bug with xor.
12950 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
12951 grub_diskfilter_read_node.
12952 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
12953 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
12954 (grub_disk_dev_iterate): Move from here...
12955 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
12956 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
12957 Make global.
12958 (grub_hostdisk_find_partition_start): Likewise.
12959 (grub_hostdisk_os_dev_to_grub_drive): New function.
12960 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
12961 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
12962 * util/getroot.c (make_device_name): ... here.
12963 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
12964 Move to ...
12965 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
12966 * grub-core/kern/emu/hostdisk.c
12967 (convert_system_partition_to_system_disk): Move to ...
12968 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
12969 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
12970 * util/getroot.c (device_is_wholedisk): ... here.
12971 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
12972 * util/getroot.c (find_system_device): ... here.
12973 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
12974 Move to ...
12975 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
12976 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
12977 Move to ...
12978 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
12979 Handle LDM.
12980 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
12981 Move to ...
12982 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
12983 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
12984 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
12985 DISKFILTER.
12986 * include/grub/raid.h: Renamed to ...
12987 * include/grub/diskfilter.h: ... this.
12988 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
12989 (GRUB_RAID_LAYOUT_*): Make into array.
12990 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
12991 (grub_diskfilter_vg): New struct.
12992 (grub_diskfilter_pv_id): Likewise.
12993 (grub_raid_member): Removed.
12994 (grub_raid_array): Likewise.
12995 (grub_diskfilter_pv): New struct.
12996 (grub_diskfilter_lv): Likewise.
12997 (grub_diskfilter_segment): Likewise.
12998 (grub_diskfilter_node): Likewise.
12999 (grub_diskfilter_get_vg_by_uuid): New proto.
13000 (grub_raid_register): Inline.
13001 (grub_diskfilter_unregister): Likewise.
13002 (grub_diskfilter_make_raid): New proto.
13003 (grub_diskfilter_vg_register): Likewise.
13004 (grub_diskfilter_read_node): Likewise.
13005 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
13006 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
13007 (grub_util_is_ldm): Likewise.
13008 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
13009 (grub_hostdisk_find_partition_start): Likewise.
13010 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
13011 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
13012 New definition.
13013 (grub_gpt_partition_map_iterate): New proto.
13014 * include/grub/lvm.h (grub_lvm_vg): Removed.
13015 (grub_lvm_pv): Likewise.
13016 (grub_lvm_lv): Likewise.
13017 (grub_lvm_segment): Likewise.
13018 (grub_lvm_node): Likewise.
13019 * util/getroot.c [...]
13020 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
13021 (probe_abstraction): Likewise.
13022 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
13023 (main): Remove dead logic.
13024
8a7f9b9c
VS
130252012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
13026
13027 Simplify root device discover and don't fail when trying to open
13028 incorrect devices.
13029
13030 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
13031 function.
13032 (get_diskname_from_path): Likewise.
13033 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
13034 of iterating.
13035
30545b85
VS
130362012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13037
13038 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
13039
28ea58cf
VS
130402012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
13043 pastthe end.
13044
692dabca
VS
130452012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 * util/grub-install.in: Add missing \.
13048 Reported by: gentoofan
13049
f6e4ea70
VS
130502012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13051
13052 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
13053 (direct_read): Use correct compressed size.
13054 (grub_squash_read_data): Likewise.
13055
130562012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
13057
13058 * docs/grub.texi (Platform limitations): New section.
13059 (Platform-specific operations): Likewise.
13060 * docs/grub-dev.texi (Porting): Likewise.
13061
76261110
VS
130622012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13063
13064 IEEE1275 disk write support.
13065
13066 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
13067 const void *.
13068 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
13069 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
13070 and seek loginc to ...
13071 (grub_ofdisk_prepare): ... here.
13072 (grub_ofdisk_write): Implement.
13073
fc36d603
VS
130742012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13075
13076 ARC disk write support.
13077
13078 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
13079 (reopen): New argument writable. All users updated.
13080 Handle required access mode.
13081 (grub_arcdisk_write): Implement.
13082 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
13083 (grub_arc_firmware_vector): Make buffer to write a const buffer.
13084
e06c2e7a
VS
130852012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13086
13087 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
13088 (read_sblock): Don't attempt to read superblocks outside the disk size.
13089
ff447958
VS
130902012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13091
13092 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
13093 first superblock to find the second one when possible.
13094
9e88df39
VS
130952012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
13096
13097 * util/grub-install.in: Fix an ARC bug.
13098 Print a warning if no platform-specific setup is available.
13099
bb26e4ff
VS
131002012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13101
13102 Use static allocation rather than scratch pointer in reed_solomon.
13103 It decreases its size significantly and avoids a variable in .text.
13104
13105 * grub-core/lib/reed_solomon.c (scratch): Removed.
13106 (chosenstat): New const or static array.
13107 (sigma): Likewise.
13108 (errpot): Likewise.
13109 (errpos): Likewise.
13110 (sy): Likewise.
13111 (mstat): Likewise.
13112 (errvals): Likewise.
13113 (eqstat): Likewise.
13114 (pol_evaluate): Replace x with log_x argument. All users updated.
13115 (syndroms): Removed.
13116 (gauss_solve): Use statically allocated arrays.
13117 (rs_recover): Likewise.
13118 Calculate syndroms directly.
13119 (decode_block): Use statically allocated arrays.
13120 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
13121 (main) [TEST]: Allow -DTEST -DSTANDALONE.
13122
2e13ede5
VS
131232012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13124
13125 Eliminate fixed limit on reed solomon decoder length.
13126
13127 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
13128 rather than hardcoding the address.
13129 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
13130 no_reed_solomon_length.
13131 Move gate_a20 to no-reed-solomon part.
13132 Don't force a particular size of no reed-solomon part.
13133 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
13134 Removed.
13135 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
13136 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
13137
f8a9ab12
VS
131382012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13139
13140 * grub-core/commands/wildcard.c (match_files): Handle filenames
13141 without explicit device.
13142 (wildcard_expand): Don't add explicit device if not already present.
13143 * tests/grub_script_echo1.in: Add a new expansion test.
13144
87edb894
VS
131452012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13146
13147 Replace single-linked with double-linked lists. It results in more
13148 compact and more efficient code.
13149
13150 * grub-core/kern/list.c (grub_list_push): Moved from here ...
13151 * include/grub/list.h (grub_list_push): ... to here. Set prev.
13152 (grub_list_remove): Moved from here ...
13153 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
13154 (grub_prio_list_insert): Set prev.
13155 * include/grub/list.h (grub_list): Add prev. All users updated.
13156
48b391e9
VS
131572012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13158
13159 Handle newer autotools. Add some missing quotes while on it.
13160
13161 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
13162 (pkglib_DATA): Move grub-mkconfig_lib from here ...
13163 (pkgdata_DATA): ... here.
13164 * Makefile.util.def (update-grub_lib): Removed.
13165 * conf/Makefile.common (pkglib_DATA): Removed.
13166 (pkglib_SCRIPTS): Likewise.
13167 (pkgdata_DATA): New variable.
13168 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
13169 needed.
13170 Add missing quotes.
13171 Remove unused variable while on it.
13172 * tests/util/grub-shell.in: Likewise.
13173 * util/grub-install.in: Likewise.
13174 * util/grub-mkconfig.in: Likewise.
13175 * util/grub-mknetdir.in: Likewise.
13176 * util/grub-mkrescue.in: Likewise.
13177 * util/grub-mkstandalone.in: Likewise.
13178 * util/grub.d/00_header.in: Likewise.
13179 * util/grub.d/10_hurd.in: Likewise.
13180 * util/grub.d/10_illumos.in: Likewise.
13181 * util/grub.d/10_kfreebsd.in: Likewise.
13182 * util/grub.d/10_linux.in: Likewise.
13183 * util/grub.d/10_netbsd.in: Likewise.
13184 * util/grub.d/10_windows.in: Likewise.
13185 * util/grub.d/20_linux_xen.in: Likewise.
13186 * util/grub.d/30_os-prober.in: Likewise.
13187 * util/update-grub_lib.in: Removed.
13188
131892012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
13190
13191 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
13192 a workaround for intel problem.
13193
66832792
PRP
131942012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
131952012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
131962012-01-23 pfsmorigo
13197
13198 * util/grub-install.in: Support dd'in into PreP partition.
13199 * util/grub-probe.c (probe): Support discovering partition type.
13200 (main): Support -t msdos_parttype.
13201
7816a17e
VS
132022012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13203
13204 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
13205 infinite recursion using counter.
13206 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
13207 init to skip it if the magic check fails.
13208 (dec_stream_header): Init s->crc32.
13209
8f9d3a8c
ZB
132102012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
132112012-01-22 Zachary Bedell <pendorbound@gmail.com>
132122012-01-22 Richard Laager <rlaager@wiktel.com>
13213
13214 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
13215 All users updated.
13216 (find_bestub): Determine correct size.
13217 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
13218 (scan_disk): Align the size down.
13219 Call check pool before find_bestub to have ashift.
13220
b055dd32
VS
132212012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13222
13223 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
13224 dprintf in no-malloc zone.
13225
d779e9bd
ML
132262012-01-22 Mario Limonciello <mario_limonciello@dell.com>
13227
13228 * configure.ac: Add back in test for limits.h.
13229
b508af69
VS
132302012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13231
13232 Support 4K-sector NTFS.
13233
13234 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
13235 (grub_ntfs_data): Remove blocksize.
13236 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
13237 Remove data argument. All users updated.
13238
dad9c8b5
VS
132392012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13240
13241 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
13242 being in .text to avoid dprel references.
13243 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
13244 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
13245 (grub_arch_highmemsize): Likewise.
13246 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
13247 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
13248 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
13249
d43a777e
VS
132502012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13251
13252 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
13253
13254 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
13255 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
13256
34e4208f
VS
132572012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
13260 GRUB_UTIL.
13261 (grub_set_datetime_cmos): Likewise.
13262
3ec0fc1c
VS
132632012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13264
13265 Make XZ compression parameters dependent on target and not host CPU.
13266
13267 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
13268 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
13269
22489834
VS
132702012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
13273 set but not used variable.
13274
8502fbca
VS
132752012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13276
13277 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
13278 created when no uuid support is compiled into mkfs.reiser.
13279
76df2068
VS
132802012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13281
13282 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
13283 (utf8_to_macroman): Do the opposite.
13284 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
13285
64e3f8f6
VS
132862012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13287
13288 * configure.ac: Refise build qemu_mips w/o unifont.
13289
9c271078
VS
132902012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13291
13292 Eliminate grub_min/grub_max prone to overflow usage.
13293
13294 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
13295 (poll_nonroot_hub): Likewise.
13296 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
13297 (grub_affs_label): Likewise.
13298 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
13299 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
13300 (grub_hfs_label): Likewise.
13301 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
13302 * grub-core/fs/zfs/zfs.c (MIN): Remove.
13303 (zap_leaf_array_equal): Use grub_size. Remove MIN.
13304 (zap_leaf_array_get): Likewise.
13305 (dnode_get_path): Likewise.
13306 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
13307 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
13308 * grub-core/script/execute.c (grub_script_break): Likewise.
13309 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
13310 grub_max.
13311 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
13312 * include/grub/misc.h (grub_min): Removed.
13313 (grub_max): Likewise.
13314
80662dbc
VS
133152012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13316
13317 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
13318 direct.inode = 0.
13319
e6da1467
VS
133202012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13321
13322 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
13323
b1ac4cb1
VS
133242012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13325
13326 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
13327
b4bf7c3b
VS
133282012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13329
13330 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
13331 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
13332
8ee1101a
VS
133332012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13334
13335 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
13336 rather than a hack for grub_strncasemap.
13337
133382012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13339
13340 Support multiple initrds
13341 Note: part of this was accidently committed in r3739.
13342
13343 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
13344 initrd.
13345 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
13346 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
13347 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
13348 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13349 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13350
4d1e2bc9
VS
133512012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13352
13353 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
13354 disks with unknown size.
13355 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
13356
75b49ebe
VS
133572012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13358
13359 Remove defines pertaining to arbitrary limits not affecting GRUB
13360 anymore.
13361
13362 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
13363 (EXT2_MAX_SYMLINKCNT): Likewise.
13364 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
13365 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
13366 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
13367 (GRUB_PXE_MAX_BLKSIZE): Likewise.
13368 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
13369 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
13370 (DN_MAX_OBJECT_SHIFT): Likewise.
13371 (DN_MAX_OFFSET_SHIFT): Likewise.
13372 (DN_MAX_OBJECT): Likewise.
13373 (DNODES_PER_LEVEL_SHIFT): Likewise.
13374 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
13375 (SPA_MAXBLOCKSIZE): Likewise.
13376 (SPA_BLOCKSIZES): Likewise.
13377 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
13378 (MZAP_MAX_BLKSZ): Likewise.
13379
74a1dce7
VS
133802012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13381
13382 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
13383 handle NULL appropriately.
13384 Remove MIN.
13385
30c7d3ce
VS
133862012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13387
13388 Fix efiemu.
13389
13390 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
13391 cpu/types.h.
13392 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
13393 * configure.ac: Fix efiemu check.
13394
3c76ea0c
VS
133952012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13396
13397 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
13398 grub_probe.
13399 Reported by: adamwill
13400
7e532280
SG
134012012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
13402
13403 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
13404
30492374
VS
134052012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13406
13407 Fix handling of wide characters in gfxterm.
13408
13409 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
13410 (clear_char): Likewise.
13411 (paint_char): Skip code == NULL chars.
13412 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
13413
e70cb72f
VS
134142012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13415
13416 * grub-core/normal/charset.c: Move comment to right place.
13417
5c827cf9
VS
134182012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13419
13420 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
13421 (GRUB_AFFS_FLAG_FFS): Put back where it was.
13422 (grub_affs_mount): Revert the correct version checking.
13423
53603892
VS
134242012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13425
13426 * docs/grub.texi (Unicode): Mention several other unsupported features.
13427
ff094b9b
VS
134282011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13429
13430 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
13431 case statements as compile-time one.
13432 (direct_read): Prevent spurious warnings.
13433 (grub_squash_read_data): Likewise.
13434
c029da8a
VS
134352011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13436
13437 Various squash4 fixes and LZO and XZ support.
13438
13439 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
13440 Add xzembed source files.
13441 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
13442 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
13443 (grub_squash_inode): New subtype long_dir.
13444 (SQUASH_TYPE_LONG_DIR): New inode type.
13445 (COMPRESSION): New enum.
13446 (XZBUFSIZ): New const.
13447 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
13448 (read_chunk): Use data->decompress.
13449 (zlib_decompress): New function.
13450 (lzo_decompress): Likewise.
13451 (xz_decompress): Likewise.
13452 (squash_mount): Set new data fields.
13453 (grub_squash_iterate_dir): Handle long dir.
13454 (squash_unmount): Free xzdec and xzbuf.
13455 (grub_squash_open): Check ino type.
13456 (direct_read): Stylistic fixes. Use data->decompress.
13457 (grub_squash_read_data): Likewise.
13458 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
13459 (get_byte): Likewise.
13460 (grub_zlib_disk_read): Removed.
13461 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
13462 (GRUB_POSIX_BOOL_DEFINED): New define.
13463 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
13464 * grub-core/lib/xzembed/xz.h: Addmissing includes.
13465 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
13466 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
13467
7a45a539
VS
134682011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13469
13470 Don't override more informative errors.
13471
13472 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
13473 * grub-core/font/font.c (open_section): Likewise.
13474 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
13475 filename. Don't override errors.
13476 (grub_cmd_openbsd_ramdisk): Don't override errors.
13477 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
13478 (grub_cmd_initrd): Likewise.
13479 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13480 (grub_cmd_initrd): Likewise.
13481 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
13482 (grub_cmd_linux): Likewise.
13483 (grub_cmd_initrd): Likewise.
13484 (grub_cmd_payload): Likewise.
13485 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
13486 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
13487 (grub_cmd_module): Likewise.
13488 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13489 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
13490 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
13491 (grub_cmd_xnu_mkext): Likewise.
13492 (grub_cmd_xnu_ramdisk): Likewise.
13493 (grub_xnu_check_os_bundle_required): Likewise.
13494 (grub_xnu_load_kext_from_dir): Likewise.
13495 (grub_cmd_xnu_kextdir): Likewise.
13496 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
13497
b2d004db
VS
134982011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13499
13500 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
13501 as 1024 in block size field. Found on one of my test images.
13502 Small optimisation while on it.
13503
ec000eac
VS
135042011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13505
13506 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
13507 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
13508 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
13509 performance fixes while on it.
13510 (grub_sfs_close): Fix memory leak while on it.
13511 (grub_sfs_label): Convert Latin1 to UTF-8.
13512
f50e1165
VS
135132011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
13516 space to avoid overflows.
13517 (grub_hfs_label): Convert from macroman to UTF-8.
13518
2ae254de
VS
135192011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13520
13521 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
13522
0108f491
VS
135232011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13524
13525 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
13526
f45f5f89
VS
135272011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13528
13529 * unicode: Import Unicode 6.0 data.
13530
4d8c4765
VS
135312011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13532
63fa8ef9
VS
13533 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
13534 outside of range.
13535
135362011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13537
13538 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
13539
13540 * include/grub/charset.h (grub_getend): New function.
13541 * grub-core/script/function.c (grub_script_function_find): Use
13542 grub_getend.
13543 * grub-core/normal/completion.c (add_completion): Likewise.
13544
f3cb4a4e
VS
135452011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13546
13547 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
13548 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
13549 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
13550 (GRUB_UNICODE_TAG_END): Likewise.
13551 (GRUB_UNICODE_LAST_VALID): Likewise.
13552
5da8dbc5
VS
135532011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13554
13555 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
13556 len and make it smaller. All users updated.
13557 * util/import_unicode.py: Put length and not end character.
13558 Check length.
13559
8569f13d
VS
135602011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13561
13562 Make better Unicode-compliant and unify some UTF-8 code pathes.
13563
13564 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
13565 valid character.
13566 (grub_is_valid_utf8): Use grub_utf8_process.
13567 Check resulting code range.
13568 (grub_utf8_to_ucs4): Use grub_utf8_process.
13569 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
13570 valid character.
13571
cc4fddf5
VS
135722011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13573
13574 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
13575
bbc47747
VS
135762011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13577
13578 * docs/grub.texi (Filesystems): Mention AFS.
13579
f63d6bf4
VS
135802011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13581
13582 * docs/grub.texi (Filesystems): Clarify restrictions.
13583 (Regexp): Mention non-Unicode regexp behaviour.
13584 (Other): Mention non-Unicode matching behaviour.
13585
74bbf0db
VS
135862011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13587
f63d6bf4 13588 Make HFS implementation use MacRoman.
74bbf0db
VS
13589
13590 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
13591 (macroman): New const array.
13592 (macroman_to_utf8): New function.
13593 (utf8_to_macroman): Likewise.
13594 (grub_hfs_find_dir): Use utf8_to_macroman.
13595 (grub_hfs_dir): Use macroman_to_utf8.
13596 Set case_insensitive.
13597
4ea0316e
VS
135982011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13599
13600 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
13601
d3c13cbd
VS
136022011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13603
13604 Integrate hints into autogeneration scripts.
13605
13606 * docs/grub.texi (Filesystems): Add a hostdisk example.
13607 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
13608 (grub-probe): Add ofpath.
13609 * gentpl.py: Remove group nosparc64.
13610 * grub-core/commands/search.c (cache_entry): New struct.
13611 (cache): New var.
13612 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
13613 * grub-core/commands/search_wrap.c (options): Add platform-specific
13614 hint options.
13615 (grub_cmd_search): Handle platform-specific hints.
13616 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
13617 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
13618 (grub_util_biosdisk_data): Likewise.
13619 (grub_util_biosdisk_open): Set device_map.
13620 (read_device_map): Handle "" as indication of no map.
13621 Set device_map.
13622 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
13623 (grub_util_biosdisk_get_compatibility_hint): New function.
13624 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
13625 * include/grub/emu/hostdisk.h
13626 (grub_util_biosdisk_get_compatibility_hint): New proto.
13627 * util/grub-install.in: Don't call grub-mkdevicemap.
13628 Add platform-specific hint to load.cfg.
13629 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
13630 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
13631 hints. Set root preliminary to compatibility hint, not to OS name.
13632 * util/grub-probe.c (PRINT_*): Add hints.
13633 (print): Make static.
13634 (escape_of_path): New function.
13635 (guess_bios_drive): Likewise.
13636 (guess_efi_drive): Likewise.
13637 (guess_baremetal_drive): Likewise.
13638 (print_full_name): Likewise.
13639 (probe): Handle hints.
13640 (main): Likewise.
13641 * util/ieee1275/devicemap.c: Removed.
13642 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
13643 updated.
13644 (grub_util_devname_to_ofpath): Return NULL on failure.
13645
13646 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
13647 resource leak.
13648 * util/getroot.c (grub_util_pull_device): Fix memory leak.
13649
13650 * po/POTFILES.in: Regenerated.
13651
13652 Allow purely long options
13653
13654 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
13655 (SHORT_ARG_USAGE): Likewise.
13656 (grub_arg_show_help): Compare opt with help_options.
13657 (parse_option): Receive opt as argument. If makes big simplificatons.
13658 All users updated
13659
00ce2df3
VS
136602011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13661
13662 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
13663 Restructure to avoid warning.
13664
e77e325f
VS
136652011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13666
13667 * util/grub-install.in: Account for possible escaped comma in device
13668 name.
13669
165099ea
VS
136702011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13671
13672 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
13673 channel.
13674
ce4a999d
VS
136752011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13676
13677 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
13678 allocation and zero-setting.
13679 (grub_ieee1275_get_devname): Check that alias is complete.
13680
379586ad
VS
136812011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13682
13683 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
13684 unaligned segments.
13685
9197b0ad
VS
136862011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
13687
13688 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
13689 prefix.
13690 (grub_ofdisk_open): Check and discard ieee1275 prefix.
13691 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13692 Add ieee1275 prefix.
13693
edddb7f9
VS
136942011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13695
13696 * docs/grub.texi (Filesystems): Update.
13697
a1a8b1b9
VS
136982011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13699
13700 Support odc, newc and bigendian cpio formats.
13701
13702 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
13703 * grub-core/Makefile.core.def (newc): New module.
13704 (odc): Likewise.
13705 (cpio_be): Likewise.
13706 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
13707 (MAGIC): Likewise.
13708 (MAGIC2): Likewise.
13709 (head) [MODE_ODC]: Adapt for the format.
13710 (head) [MODE_NEWC]: Likewise.
13711 (head) [!MODE_*]: Write fields of interest as arrays.
13712 (MAGIC_USTAR): Removed.
13713 (read_number) [MODE_NEWC]: Change to hex.
13714 (read_number) [!MODE_*]: Parse binary arrays.
13715 (grub_cpio_find_file): Factor out the code for better structure and
13716 always use read_number.
13717 (grub_cpio_mount): Use MAGIC and MAGIC2.
13718 (grub_cpio_dir): Exit on first hook non-0 return.
13719 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
13720 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
13721 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
13722 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
13723 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
13724 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
13725 * grub-core/fs/newc.c: New file.
13726 * grub-core/fs/odc.c: Likewise.
13727 * grub-core/fs/cpio_be.c: Likewise.
13728
58eba9ee
VS
137292011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13730
13731 Fix handling of tar numbers occupying the whole field.
13732
13733 * grub-core/fs/cpio.c (read_number): New function.
13734 (grub_cpio_find_file): Use read_number instead of strtoull.
13735
a54a0e12
VS
137362011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13737
13738 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
13739 occupying the whole field size.
13740
a6120aca
LA
137412011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
13742
13743 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
13744
a93964ce
VS
137452011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13746
13747 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
13748
3ea1ca46
SG
137492011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
13750
13751 * grub-core/Makefile.core.def (lzma_decompress): Add missing
13752 TARGET_IMG_LDFLAGS.
13753
b87f7ef2
VS
137542011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13755
13756 * util/getroot.c (ESCAPED_PATH_MAX): New define.
13757 (mountinfo_entry): Increase the field size to take escaping into
13758 account.
13759 (find_root_device_from_libzfs): Add one byte to size of strings for
13760 security.
13761
62092395
VS
137622011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13763
13764 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
13765 an assert.
13766 * util/grub-setup.c (setup): Likewise.
13767
1f0b1a77
VS
137682011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13769
13770 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
13771 _LzmaDecodeA.
13772
8eba9997
VS
137732011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13774
13775 * docs/grub.texi (Internationalisation): New section.
13776
dd0c91e9
VS
137772011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13778
13779 * docs/grub.texi (Loopback booting): New section.
13780
137812011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
13782
13783 * util/grub-mkstandalone.in: Fix minor typo errors.
13784
198e150a
VS
137852011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
13786
13787 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
13788
13789 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
13790 net/icmp.c and net/icmp6.c.
13791 (http): New module.
13792 (priority_queue): Likewise.
13793 * grub-core/io/bufio.c: Rewritten.
13794 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
13795 TYPE_WITH_CONFIGFILE_OPTION.
13796 (legacy_commands): Add bootp and dhcp.
13797 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
13798 (grub_legacy_parse): Likewise.
13799 * grub-core/lib/priority_queue.c: New file.
13800 * grub-core/net/arp.c: Add missing license header.
13801 (arp_find_entry): Removed.
13802 (arp_find_entry): Likewise.
13803 (grub_net_arp_resolve): Rename to ...
13804 (grub_net_arp_send_request): ...this.
13805 (grub_net_arp_receive): New card argument.
13806 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
13807 Set router and DNS server.
13808 (grub_net_configure_by_dhcp_ack): Handle routing information.
13809 (grub_cmd_bootp): Set checksum.
13810 (grub_bootp_init): Remove net_dhcp.
13811 * grub-core/net/dns.c: New file.
13812 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
13813 completion.
13814 (get_card_packet): Handle allocation.
13815 (grub_efinet_findcards): Set mtu.
13816 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
13817 (get_card_packet): Handle allocation.
13818 (emucard): Set mtu.
13819 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
13820 (GRUB_MOD_INIT): Set mtu.
13821 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
13822 mtu.
13823 (get_card_packet): Handle allocation.
13824 (grub_ofnet_findcards): Set mtu.
13825 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
13826 assert.
13827 (grub_net_recv_ethernet_packet): Handle IPv6.
13828 * grub-core/net/http.c: New file.
13829 * grub-core/net/icmp.c: Likewise.
13830 * grub-core/net/icmp6.c: Likewise.
13831 * grub-core/net/ip.c (ip6addr): New type.
13832 (ip6hdr): Likewise.
13833 (reassemble): Likewise.
13834 (cmp): New function.
13835 (reassembles): New variable.
13836 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
13837 (id): New variable.
13838 (send_fragmented): New function.
13839 (grub_net_send_ip_packet): Rename to ...
13840 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
13841 Handle non-UDP.
13842 (grub_net_recv_ip_packets): Rename to ...
13843 (handle_dgram): ... this. Check checksum. Handle non-UDP.
13844 (free_rsm): New function.
13845 (free_old_fragments): Likewise.
13846 (grub_net_recv_ip4_packets): New function.
13847 (grub_net_send_ip6_packet): Likewise.
13848 (grub_net_send_ip_packet): Likewise.
13849 (grub_net_recv_ip6_packets): Likewise.
13850 (grub_net_recv_ip_packets): Likewise.
13851 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
13852 (LINK_LAYER_CACHE_SIZE): New const.
13853 (link_layer_find_entry): New function.
13854 (grub_net_link_layer_add_address): Likewise.
13855 (grub_net_link_layer_resolve_check): Likewise.
13856 (grub_net_link_layer_resolve): Likewise.
13857 (grub_net_ipv6_get_slaac): Likewise.
13858 (grub_net_ipv6_get_link_local): Likewise.
13859 (grub_cmd_ipv6_autoconf): Likewise.
13860 (parse_ip): Handle one number representation.
13861 (parse_ip6): New functoion.
13862 (match_net): Handle IPv6.
13863 (grub_net_resolve_address): Handle IPv6 and DNS.
13864 (grub_net_resolve_net_address): Handle IPv6.
13865 (route_cmp): New function.
13866 (grub_net_route_address): Find best route.
13867 (grub_net_addr_to_str): Handle IPv6.
13868 (grub_net_addr_cmp): New function.
13869 (grub_net_add_addr): Register local route.
13870 (print_net_address): Handle net address.
13871 (grub_net_poll_cards): Retransmit TCP.
13872 (grub_net_poll_cards_idle_real): Likewise.
13873 (have_ahead): New function.
13874 (grub_net_seek_real): Use underlying seek.
13875 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
13876 * grub-core/net/tcp.c: New file.
13877 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
13878 (cmp): New function.
13879 (ack): Likewise.
13880 (tftp_receive): Handle unordered input.
13881 (destroy_pq): New function.
13882 (tftp_close): Close pq.
13883 * grub-core/net/udp.c: Put missing license header.
13884 (grub_net_udp_socket): New function.
13885 (udp_socket_register): Likewise.
13886 (grub_net_udp_close): Likewise.
13887 (grub_net_recv_udp_packet): Check checksum.
13888 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
13889 * include/grub/misc.h (grub_memchr): New function.
13890 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
13891 (grub_net_card_driver): Return buf in recv.
13892 (grub_net_slaac_mac_list): New struct.
13893 (grub_network_level_protocol_id): Add ipv6.
13894 (grub_net_network_level_addr): Likewise.
13895 (grub_net_network_level_net_addr): Likewise.
13896 (grub_net_app_protocol): Add seek.
13897 (grub_net_socket): Removed.
13898 (grub_net_sockets): Likewise.
13899 (grub_net_socket_register): Likewise.
13900 (grub_net_socket_unregister): Likewise.
13901 (FOR_NET_SOCKETS): Likewise.
13902 (grub_net_add_addr): Add const.
13903 (GRUB_NET_BOOTP_*): New enum.
13904 (grub_net_addr_cmp): New proto.
13905 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
13906 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
13907 (grub_net_hwaddr_to_str): NEw proto.
13908 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
13909 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
13910 (grub_dns_init): New proto.
13911 (grub_dns_fini): Likewise.
13912 (grub_net_tcp_retransmit): Likewise.
13913 (grub_net_link_layer_add_address): Likewise.
13914 (grub_net_link_layer_resolve_check): Likewise.
13915 (grub_net_link_layer_resolve): Likewise.
13916 (grub_net_dns_lookup): Likewise.
13917 (grub_net_add_dns_server): Likewise.
13918 (grub_net_remove_dns_server): Likewise.
13919 (GRUB_NET_TRIES): New const.
13920 (GRUB_NET_INTERVAL): Likewise.
13921 * include/grub/net/arp.h: Mostly rewritten.
13922 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
13923 * include/grub/net/ip.h: Mostly rewritten.
13924 * include/grub/net/netbuff.h: Indent.
13925 * include/grub/net/tcp.h: New file.
13926 * include/grub/net/udp.h: Mostly rewritten.
13927 * include/grub/priority_queue.h: New file.
13928 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
13929 (grub_swap_bytes64_compile_time): Likewise.
13930 (grub_cpu_to_be16_compile_time): Likewise.
13931 (grub_cpu_to_be32_compile_time): Likewise.
13932 (grub_cpu_to_be64_compile_time): Likewise.
13933 (grub_be_to_cpu64_compile_time): Likewise.
13934
215c1800
VS
139352011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
13936
13937 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
13938 UINT_TO_PTR with cast.
13939
c17e546c
VS
139402011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
13941
13942 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
13943 don't use them.
13944
ff6b18b6
VS
139452011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
13946
13947 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
13948 already there.
13949
70ffcc93
VS
139502011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
13951
13952 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
13953 confusing ipxe.
13954
e5f4d260
VS
139552011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
13956
13957 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
13958 Add missing const attribute.
13959 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
13960 Likewise.
13961 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
13962 Likewise.
13963
8e54b4b7
VS
139642011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
13965
13966 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
13967 misaligned access.
13968 (serpent_setkey): Likewise.
13969 (serpent_encrypt_internal): Likewise.
13970 (serpent_decrypt_internal): Likewise.
13971 (serpent_encrypt): Don't put an alignment-increasing cast.
13972 (serpent_decrypt): Likewise.
13973 (serpent_test): Likewise.
13974
813c0a2b
VS
139752011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
13976
13977 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
13978
f2b60fbd
VS
139792011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
13980
13981 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
13982
13983 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
13984 grub_addr_t casts.
13985 (PTR_TO_UINT64): Likewise.
13986 (PTR_TO_UINT32): Likewise.
13987
5ef5c511
VS
139882011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
13989
13990 * util/grub-mkimage.c (generate_image): Decrease the higher limit
13991 because of stack.
13992 * util/grub-setup.c (setup): Don't add redundancy past the higher load
13993 limit.
13994
c476e6df
VS
139952011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
13996
13997 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
13998 text_width > available width a bit more gracefully.
13999
384ad7cc
VS
140002011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
14003 current address calculation.
14004
96f8caf8
VS
140052011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14006
14007 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
14008 stack.
14009 (encode_block): Likewise.
14010
276b7a8b
VS
140112011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14012
14013 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
14014 certainety.
14015
e3fd394a
VS
140162011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14017
14018 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
14019 non-RS part to avoid RS messing with GDT.
14020 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14021 Increase to suit in realmode routines.
14022
140232011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
14024
14025 * grub-core/kern/i386/realmode.S: Increase alignment.
14026 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
14027
ee9c2e7a
VS
140282011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14029
14030 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
14031 be deterministic.
14032 (syndroms): Compute 0 syndrom.
14033 (rs_recover): Use 0 syndrom.
14034
7a7f7cc9
VS
140352011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14036
14037 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
14038
a14b16d1
VS
140392011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14040
14041 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
14042 brackets.
14043
9f59e9fc
VS
140442011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14045
ca1b552c
VS
14046 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
14047 account.
14048 (get_top_pad): Likewise.
14049 (get_right_pad): Likewise.
14050 (get_bottom_pad): Likewise.
14051
140522011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14053
14054 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 14055
e739d698
VS
140562011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14057
14058 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
14059 attribute as the structure isn't guaranteed to be properly aligned.
14060 (grub_efi_pci_device_path): Likewise.
14061 (grub_efi_pccard_device_path): Likewise.
14062 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
14063 specify the size of `memory_type'.
14064 (grub_efi_vendor_device_path): Likewise.
14065 (grub_efi_controller_device_path): Likewise.
14066 (grub_efi_acpi_device_path): Likewise.
14067 (grub_efi_expanded_acpi_device_path): Likewise.
14068 (grub_efi_atapi_device_path): Likewise.
14069 (grub_efi_scsi_device_path): Likewise.
14070 (grub_efi_fibre_channel_device_path): Likewise.
14071 (grub_efi_1394_device_path): Likewise.
14072 (grub_efi_usb_device_path): Likewise.
14073 (grub_efi_usb_class_device_path): Likewise.
14074 (grub_efi_i2o_device_path): Likewise.
14075 (grub_efi_mac_address_device_path): Likewise.
14076 (grub_efi_ipv4_device_path): Likewise.
14077 (grub_efi_ipv6_device_path): Likewise.
14078 (grub_efi_infiniband_device_path): Likewise.
14079 (grub_efi_uart_device_path): Likewise.
14080 (grub_efi_vendor_messaging_device_path): Likewise.
14081 (grub_efi_hard_drive_device_path): Likewise.
14082 (grub_efi_cdrom_device_path): Likewise.
14083 (grub_efi_vendor_media_device_path): Likewise.
14084 (grub_efi_file_path_device_path): Likewise.
14085 (grub_efi_protocol_device_path): Likewise.
14086 (grub_efi_piwg_device_path): Likewise.
14087 (grub_efi_bios_device_path): Likewise.
14088
cb8f88ea
VS
140892011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14090
14091 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
14092 (grub_ucs4_to_utf8_alloc): Likewise.
14093 (grub_ucs4_to_utf8): Likewise.
14094 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
14095 (grub_ucs4_to_utf8_alloc): Likewise.
14096
309e5352
VS
140972011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
14098
14099 AFFS never uses unicode.
14100
14101 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
14102 (grub_latin1_to_utf8): New inline function.
14103 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
14104
e7987e1b
VS
141052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14106
14107 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
14108 overflow.
14109
efc2616e
VS
141102011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14111
14112 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
14113 (grub_squash_dirent_header): Likewise.
14114 (read_chunk): Don't double swap.
14115 (grub_squash_iterate_dir): Fix swap sizes.
14116
3c349f5a
VS
141172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14118
14119 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
14120
b453412d
VS
141212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14122
14123 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
14124 (grub_hfs_iterate_dir): Likewise.
14125
12e9d4d1
VS
141262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14127
14128 Fix video on platforms where unaligned access is forbidden.
14129 Make several optimisations while on it.
14130
14131 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
14132 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14133 (grub_video_fbblit_replace_32bit_1bit): Likewise.
14134 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14135 Disable.
14136 (grub_video_fbblit_replace_16bit_1bit):
14137 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14138 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14139 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
14140 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
14141 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14142 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
14143 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
14144 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
14145 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
14146 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
14147 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
14148 (grub_video_fbblit_replace_index_RGB888): Likewise.
14149 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
14150 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
14151 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
14152 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
14153 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
14154 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14155 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
14156 Disable.
14157 (grub_video_fbblit_blend_XXX565_1bit):
14158 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
14159 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
14160 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
14161 void *.
14162 * grub-core/video/fb/video_fb.c (common_blitter)
14163 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
14164 (grub_video_fb_create_render_target_from_pointer)
14165 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
14166 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
14167 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
14168 definition.
14169 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
14170
ace96609
VS
141712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14172
14173 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
14174 HH22 and HM10 relocations.
14175
fd261d73
VS
141762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14177
14178 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
14179
e59b7857
VS
141802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14181
14182 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
14183 allocation succeeded.
14184
9b4baaa4
VS
141852011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14186
14187 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
14188 argument a u8 pointer. All users updated.
14189 Handle unaligned buffers.
14190
dc713193
VS
141912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14192
14193 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
14194 add_part to workaround compiler bug.
14195
30dd48c2
VS
141962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14197
14198 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
14199
0c6087a8
VS
142002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14201
14202 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
14203 Reserve alignment invariants.
14204 (grub_multiboot_load): Likewise.
14205 (retrieve_video_parameters): Likewise.
14206 (grub_multiboot_make_mbi): Likewise.
14207
c2e77777
VS
142082011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14209
14210 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
14211 incorrect pointer.
14212
b70b6d11
VS
142132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14214
14215 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
14216 (grub_pata_pio_write): Likewise.
14217
02a2bf83
VS
142182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14219
14220 Add noreturn attributes and remove unreachable code.
14221
14222 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
14223 code.
14224 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
14225 code. Mark as noreturn.
14226 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
14227 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
14228 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
14229 unreachable code.
14230 * grub-core/kern/main.c (grub_main): Mark as noreturn.
14231 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
14232 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
14233 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
14234 * include/grub/kernel.h (grub_main): Mark as noreturn.
14235 * include/grub/reader.h (grub_rescue_run): Likewise.
14236
2019d09e
VS
142372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14238
14239 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
14240 redundant declaration.
14241
d1c501ee
VS
142422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14243
14244 * include/grub/net.h (grub_net_network_level_interfaces): Remove
14245 redundant declaration.
14246 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
14247
61664420
VS
142482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
14251 to ensure alignment.
14252 (grub_hdparm_print_identify): Make argument uint16 * to ensure
14253 alignment. Ensure tmp alignment.
14254 (grub_cmd_hdparm): Ensure buf alignment.
14255 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
14256 to ensure alignment.
14257 (grub_ata_dumpinfo): Ensure text alignment.
14258 (grub_atapi_identify): Preserve alignment invariant.
14259 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
14260
0d51ee20
VS
142612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14262
14263 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
14264 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
14265 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
14266 * include/grub/misc.h (grub_reboot)
14267 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
14268 (grub_halt) [__mips__]: Likewise.
14269
753ef8c1
VS
142702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
14273 Remove redundant declaration.
14274 (grub_mmap_get_post64): Likewise.
14275 (grub_mmap_get_upper): Likewise.
14276 (grub_mmap_get_lower): Likewise.
14277
85c85365
VS
142782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14279
14280 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
14281 uint32_t * to ensure alignment.
14282 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
14283
a23f2cc4
VS
142842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14285
93018f64
VS
14286 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
14287 uint16_t * to ensure alignment.
14288 (sun_pc_partition_map_iterate): Make `block' a union to ensure
14289 alignment.
14290
142912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14292
14293 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
14294 to ensure alignment.
14295 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
14296
58acccd6
VS
142972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14298
14299 * grub-core/fs/ntfs.c (u16at): Make into inline function.
14300 Handle unaligned pointers.
14301 (u32at): Likewise.
14302 (u64at): Likewise.
14303 (fixup): Use byte access instead of v16at.
14304 (find_attr): Fix imporper usage of v32at.
14305 (read_data): Likewise.
14306 (list_file): Handle byte-swapping and unaligned strings.
14307 (grub_ntfs_label): Likewise.
14308
9b05cad7
VS
143092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14310
14311 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
14312 as it's not necessarily aligned.
14313
b3950b84
VS
143142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14315
14316 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
14317 redundant declaration.
14318 (grub_serial_init): Likewise.
14319 (grub_terminfo_init): Likewise.
14320
fcd232b7
VS
143212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14322
14323 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
14324 function.
14325 (ZAP_HASH_IDX): Likewise.
14326 (ZAP_LEAF_HASH_SHIFT): Likewise.
14327 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
14328 (LEAF_HASH): Likewise.
14329 (ZAP_LEAF_NUMCHUNKS): Likewise.
14330 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
14331 alignment invariants. Return pointer. All users updated.
14332 (ZAP_LEAF_ENTRY): Make into inline function.
14333 (NBBY): Removed.
14334 (xor): LIkewise.
14335 (xor_out): Use grub_crypto_xor.
14336 (dnode_get_path): Use grub_get_unaligned.
14337 (nvlist_find_value): Likewise.
14338 (grub_zfs_nvlist_lookup_uint64): Likewise.
14339 (grub_zfs_nvlist_lookup_string): Likewise.
14340 (get_nvlist_size): Likewise.
14341 (grub_zfs_open): Likewise.
14342 (fill_fs_info): Likewise.
14343 (grub_zfs_dir): Likewise.
14344 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
14345 alignment invariants.
14346 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
14347 necessarily aligned.
14348
f138623a
VS
143492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14350
14351 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
14352
564840dc
VS
143532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14354
14355 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
14356 arithmetic to conserve alignment invariants.
14357
9b40df20
VS
143582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14359
14360 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
14361 redundant declaration.
14362 (grub_efiemu_mm_obtain_request): Likewise.
14363 (grub_efiemu_prepare): Likewise.
14364
d1c930f9
VS
143652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14366
14367 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
14368 to match types.
14369
4c5f3056
VS
143702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14371
14372 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
14373 case of aunaligned recptr.
14374 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
14375 alignment.
14376 (grub_hfsplus_btree_search): Handle unaligned index.
14377
728cba91
VS
143782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14379
14380 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
14381 to get freetag and skip.
14382
eb561f31
VS
143832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14384
14385 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
14386 array.
14387 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
14388 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
14389
20993fbb
VS
143902011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14391
14392 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
14393 name for checksum and fix allocation algorithm.
14394
1f313b94
VS
143952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14396
14397 * include/grub/types.h (grub_properly_aligned_t): New type.
14398 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
14399 (grub_get_unaligned16): Add explicit casts.
14400 (grub_get_unaligned32): Likewise.
14401 (grub_get_unaligned64): Likewise.
14402 (grub_set_unaligned16): New function.
14403 (grub_set_unaligned32): Likewise.
14404
47ae27ec
VS
144052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14406
14407 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
14408
78c2cd1c
VS
144092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14410
14411 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
14412 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
14413 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
14414
53072f9b
VS
144152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14416
14417 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
14418 conditionals.
14419
055dc239
VS
144202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14421
14422 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
14423 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
14424
496bd074
VS
144252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14426
14427 Unify and improve RAID and crypto xor.
14428
14429 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
14430 changed to grub_crypto_xor
14431 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
14432 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
14433 Use bigger types when possible.
14434
ef6e4335
VS
144352011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14436
14437 * grub-core/disk/raid.c (scan_devices): Fix condition.
14438
5d048bf2
VS
144392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14440
14441 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
14442 Make name a const ptr.
14443
ee533335
VS
144442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14445
14446 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
14447 first argument a const pointer.
14448 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
14449 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
14450 proto.
14451 (grub_children_iterate): Likewise.
14452 (grub_machine_mmap_iterate): Remove redundant declaration.
14453
cc8f3668
VS
144542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14455
14456 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
14457 (grub_cmd_acpi) [!x86]: Disable EBDA.
14458
c5fc563a
VS
144592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14460
14461 Enable UTF8 in gnulib regexp.
14462
14463 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
14464 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
14465 (isupper): Use grub_isupper.
14466 (isascii): New inline function.
14467 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
14468 * grub-core/lib/posix_wrap/wctype.h: Likewise.
14469 * grub-core/normal/charset.c (grub_utf8_process): New function.
14470 (grub_utf8_to_utf16): Use grub_utf8_process.
14471 (grub_encode_utf8_character): New function.
14472 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
14473 * include/grub/charset.h (grub_utf8_process): New declaration.
14474 (grub_encode_utf8_character): Likewise.
14475 * include/grub/misc.h (grub_islower): New inline function.
14476 (grub_isupper): Likewise.
14477 (grub_strchrsub): Moved down to fix the definitions.
14478
0af2346f
VS
144792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14480
14481 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
14482 specification.
14483
74dbd244
VS
144842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14485
14486 * include/grub/loader.h (grub_loader_register_preboot_hook):
14487 Use struct preboot * and not void * for handle. All users updated.
14488 (grub_loader_unregister_preboot_hook): Likewise.
14489
1bc8f60d
VS
144902011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
14491
14492 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
14493 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
14494 UTF-16-BE. All users updated.
14495 (grub_hfsplus_cmp_catkey): Fix unicode handling.
14496 (grub_hfsplus_iterate_dir): Likewise.
14497 (grub_hfsplus_label): Likewise.
14498
48d6e456
VS
144992011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
14500
14501 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
14502
bf3a3857
VS
145032011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
14504
14505 Add missing const qualifiers.
14506
14507 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
14508 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
14509 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
14510 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
14511 (grub_lvm_check_flag): Likewise.
14512 * grub-core/efiemu/i386/coredetect.c
14513 (grub_efiemu_get_default_core_name): Likewise
14514 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
14515 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
14516 * grub-core/fs/ntfs.c (fixup): Likewise.
14517 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
14518 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
14519 (fzap_lookup): Likewise.
14520 (zap_lookup): Likewise.
14521 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
14522 * grub-core/lib/legacy_parse.c (check_option): Likewise.
14523 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
14524 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
14525 (grub_freebsd_add_meta_module): Likewise.
14526 (grub_cmd_freebsd_module): Likewise.
14527 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
14528 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
14529 (grub_xnu_writetree_get_size): Likewise.
14530 (grub_xnu_writetree_toheap_real): Likewise.
14531 (grub_xnu_find_key): Likewise.
14532 (grub_xnu_create_key): Likewise.
14533 (grub_xnu_create_value): Likewise.
14534 (grub_xnu_register_memory): Likewise.
14535 (grub_xnu_check_os_bundle_required): Likewise.
14536 (grub_xnu_scan_dir_for_kexts): Likewise.
14537 (grub_xnu_load_kext_from_dir): Likewise.
14538 * grub-core/normal/color.c (color_list): Likewise.
14539 * grub-core/normal/completion.c (current_word): Likewise.
14540 * grub-core/normal/menu_entry.c (insert_string): Likewise.
14541 * grub-core/term/serial.c (grub_serial_find): Likewise.
14542 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
14543 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
14544 Likewise.
14545 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
14546 (grub_freebsd_add_meta_module): Likewise.
14547 * include/grub/lib/arg.h (grub_arg_option): Likewise.
14548 * include/grub/net.h (grub_net_card_driver): Likewise.
14549 (grub_net_card): Likewise.
14550 (grub_net_app_protocol): Likewise.
14551 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
14552 * include/grub/serial.h (grub_serial_find): Likewise.
14553 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
14554 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
14555 (grub_xnu_create_value): Likewise.
14556 (grub_xnu_find_key): Likewise.
14557 (grub_xnu_scan_dir_for_kexts): Likewise.
14558 (grub_xnu_load_kext_from_dir): Likewise.
14559
14560 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
14561 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
14562 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
14563 Moved from here ...
14564 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
14565
112b4837
CW
145662011-11-28 Colin Watson <cjwatson@ubuntu.com>
14567
14568 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
14569
49e891ac
VS
145702011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
14571
14572 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
14573 (read_device): Fix size calculation.
14574
fd258e5c
RM
145752011-11-25 Robert Millan <rmh@gnu.org>
14576
14577 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
14578 (find_root_device_from_libzfs): Add zpool output parser to be used
14579 as fallback when libzfs isn't available.
14580
78845dc2
SG
145812011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
14582
14583 * po/Makefile.in.in: Add missing escape-continuation.
14584
adac5211
VS
145852011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
14586
14587 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
14588
10b64f1c
VS
145892011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14590
14591 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
14592
bb416954
VS
145932011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14594
14595 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
14596
bdfe9eeb
VS
145972011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14598
14599 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
14600
581ffa8a
VS
146012011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14602
14603 * grub-core/lib/adler32.c: Add missing license specification.
14604 * grub-core/lib/crc64.c: Likewise.
14605 * grub-core/loader/i386/pc/plan9.c: Likewise.
14606 * grub-core/partmap/plan.c: Likewise.
14607
2536cf64
LK
146082011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
14609
14610 Add facility to debug GRUB with gdb under qemu.
14611
14612 * grub-core/gdb_grub.in: New file.
14613 * grub-core/gmodule.pl.in: Likewise.
14614 * grub-core/Makefile.core.def (gmodule.pl): New script.
14615 (gdb_grub): Likewise.
14616
bc108a4a
VS
146172011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14618
14619 * util/grub-mount.c (argp_parser): Accept relative pathes.
14620 * util/grub-fstest.c (argp_parser): Likewise.
14621
111c1778
VS
146222011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14623
14624 Plan9 support.
14625
14626 * Makefile.util.def (libgrubmods): Add
14627 grub-core/partmap/plan.c.
14628 * docs/grub.texi: Notice Plan9 support.
14629 * grub-core/Makefile.core.def (plan9): New module.
14630 (part_plan): Likewise.
14631 * grub-core/loader/i386/pc/plan9.c: New file.
14632 * grub-core/partmap/plan.c: Likewise.
14633 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
14634 define.
14635 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
14636 * include/grub/mm.h (grub_extend_alloc): New inline function.
14637
c30be3b6
VS
146382011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14639
14640 Make Reed-Solomon faster by using power of generator representation of
14641 GF(256)*.
14642
14643 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
14644 (gf_double_t): Likewise.
14645 (gf_invert): Removed.
14646 (gf_powx): New array.
14647 (gf_powx_inv): Likewise.
14648 (scratch): Move higher.
14649 (gf_reduce): Removed.
14650 (gf_mul): Use powx.
14651 (gf_invert): Likewise.
14652 (init_inverts): Replaced with ...
14653 (init_powx): ...this. All users updated.
14654 (pol_evaluate): Replace multiplications with additions.
14655 (rs_encode): Likewise.
14656 (gauss_eliminate): Call gf_invert.
14657 (grub_reed_solomon_add_redundancy): Call init_powx.
14658 (grub_reed_solomon_recover): Call init_powx unconditionally.
14659
fa5aeffc
VS
146602011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14661
14662 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
14663
a346b81c
VS
146642011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14665
14666 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
14667 disk->partiton for safety.
14668
d89ee414
VS
146692011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14670
14671 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14672 Fix a memory leak.
14673 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
14674
91ee7b6d
VS
146752011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14676
14677 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
14678
91e5a33d
VS
146792011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14680
14681 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
14682
9edd7be2
VS
146832011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14684
14685 Fix spaces handling in proc/self/mountinfo.
14686
14687 * util/getroot.c (unescape): New function.
14688 (grub_find_root_device_from_mountinfo): Use unescape.
14689
ba102053
VS
146902011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14691
14692 Support ZFS embedding.
14693
14694 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
14695 (grub_zfs_fs): Register grub_zfs_embed.
14696
aa94b870
VS
146972011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14698
14699 Fix MIPS compilation.
14700
14701 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
14702 * include/grub/offsets.h: Rename decompressor fields from
14703 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
14704 * util/grub-mkimage.c (image_targets): Use new names.
14705
5fbdac14
VS
147062011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14707
14708 Defer multiboot device parsing until we're in compressed part.
14709
14710 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
14711 bsd_part. setdevice has fallen into disuse.
14712 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
14713 (bsd_part): Likewise.
14714 (boot_dev): New variable.
14715 (multiboot_trampoline): Don't parse multiboot device.
14716 Pass multiboot device in %edx.
14717 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
14718 grub_boot_device.
14719 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
14720 Likewise.
14721 * grub-core/kern/i386/pc/startup.S: Save edx.
14722 (grub_boot_drive): Removed.
14723 (grub_install_dos_part): Likewise.
14724 (grub_install_bsd_part): Likewise.
14725 (grub_boot_device): New variable.
14726 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
14727 (grub_install_bsd_part): Likewise.
14728 (grub_boot_drive): Likewise.
14729 (grub_boot_device): New variable.
14730 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
14731 Removed.
14732 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
14733 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
14734 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
14735 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
14736 * util/grub-install.in: Remove redundant condition.
14737
691cbb58
VS
147382011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14739
14740 Fix bug introduced by previous commit.
14741
14742 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
14743
60240b8b
VS
147442011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14745
14746 Use decompressors framework on i386-pc. It increases core size
14747 by 46 bytes but improves compatibility and maintainability.
14748
14749 * grub-core/Makefile.core.def (lzma_decompress): New image.
14750 (kernel): Add i386_pc_ldflags.
14751 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
14752 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
14753 to real_to_prot, prot_to_real and device info.
14754 * include/grub/offsets.h: Renamed decompressor offsets.
14755 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
14756 (image_target_desc): Remove raw_size and rename decompressor fields.
14757 (compress_kernel): Handle lzma.
14758 (generate_image): Handle decompressors on i386-pc.
14759
e9d3421c
VS
147602011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14761
14762 * configure.ac: Add -fno-asynchronous-unwind-tables.
14763
2b23074a
VS
147642011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14765
14766 Move assembly code to C by using intwrap. It increases core size
14767 by 88 bytes but improves compatibility and maintainability.
14768
14769 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
14770 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
14771 ... here. Translated to C.
14772 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
14773 * grub-core/term/i386/pc/console.c (grub_console_getkey):
14774 ... here. Translated to C.
14775 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
14776 * grub-core/term/i386/pc/console.c (grub_console_getxy):
14777 ... here. Translated to C.
14778 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
14779 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
14780 ... here. Translated to C.
14781 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
14782 * grub-core/term/i386/pc/console.c (grub_console_cls):
14783 ... here. Translated to C.
14784 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
14785 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
14786 ... here. Translated to C.
14787 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
14788 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
14789 Translated to C.
14790 * grub-core/term/i386/pc/console.c (int10_9): New function.
14791 (grub_console_putchar): Likewise.
14792 * include/grub/i386/pc/console.h: Removed the not anymore shared
14793 functions.
14794
678f4b67
VS
147952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14796
14797 Move grub_chainloader_real_boot out of the kernel.
14798
14799 * grub-core/Makefile.am: Remove machine/loader.h.
14800 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
14801 Removed.
14802 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
14803 variable.
14804 (grub_relocator16_keep_a20_enabled): Likewise.
14805 (grub_relocator16_boot): Fill new variables.
14806 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
14807 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
14808 relocator.
14809 (grub_chainloader_unload): Likewise.
14810 (grub_chainloader_cmd): Likewise.
14811 * include/grub/i386/pc/loader.h: Removed.
14812 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
14813 and esi. All initialisers updated.
14814
4626edf6
VS
148152011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
148162011-11-12 Colin Watson <cjwatson@ubuntu.com>
14817
14818 * Makefile.util.def (grub-mount): New util.
14819 * .bzrignore: Add grub-mount.
14820 * configure.ac: Check for fuse and enable grub-mount if available.
14821 * docs/man/grub-mount.h2m: New file.
14822 * util/grub-mount.c: Likewise.
14823
10f0117b
VS
148242011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14825
14826 * grub-core/commands/efi/fixvideo.c: Gettextize.
14827 * grub-core/commands/hashsum.c: Likewise.
14828 * grub-core/commands/i386/cmostest.c: Likewise.
14829 * grub-core/commands/i386/pc/drivemap.c: Likewise.
14830 * grub-core/commands/i386/pc/lsapm.c: Likewise.
14831 * grub-core/commands/i386/pc/sendkey.c: Likewise.
14832 * grub-core/commands/lsmmap.c: Likewise.
14833 * grub-core/commands/menuentry.c: Likewise.
14834 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
14835 * grub-core/commands/setpci.c: Likewise.
14836 * grub-core/loader/i386/bsd.c: Likewise.
14837 * grub-core/loader/i386/linux.c: Likewise.
14838 * util/getroot.c: Likewise.
14839 * util/grub-editenv.c: Likewise.
14840 * util/grub-fstest.c: Likewise.
14841 * util/grub-mkfont.c: Likewise.
14842 * util/grub-mkimage.c: Likewise.
14843 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14844 * util/grub-pe2elf.c: Likewise.
14845 * util/grub-probe.c: Likewise.
14846 * util/grub-setup.c: Likewise.
14847 * util/ieee1275/ofpath.c: Likewise.
14848 * util/misc.c: Likewise.
14849 * util/raid.c: Likewise.
14850
566f779b
RM
148512011-11-11 Robert Millan <rmh@gnu.org>
14852
14853 * util/getroot.c (grub_util_get_geom_abstraction): Remove
14854 __attribute__((unused)) from `os_dev', which *is* being used.
14855
b50787de
VS
148562011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14857
14858 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
14859 forgotten define.
14860 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
14861 GRUB_IA64_DL_GOT_ALIGN.
14862 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
14863 GRUB_IA64_DL_TRAMP_ALIGN.
14864
119d11c8
VS
148652011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14866
14867 Replace grub_fatal with normal errors in i386 linux loader.
14868
14869 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
14870 (allocate_pages): Check find_efi_mmap_size return value.
14871 (grub_e820_add_region): Return error.
14872 (grub_linux_boot): Check mmap return value.
14873
6e0632e2
VS
148742011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14875
14876 * grub-core/commands/acpihalt.c: Gettextized.
14877 * grub-core/commands/cacheinfo.c: Likewise.
14878 * grub-core/commands/cmp.c: Likewise.
14879 * grub-core/commands/efi/loadbios.c: Likewise.
14880 * grub-core/commands/gptsync.c: Likewise.
14881 * grub-core/commands/ieee1275/suspend.c: Likewise.
14882 * grub-core/commands/legacycfg.c: Likewise.
14883 * grub-core/commands/memrw.c: Likewise.
14884 * grub-core/commands/minicmd.c: Likewise.
14885 * grub-core/commands/parttool.c: Likewise.
14886 * grub-core/commands/time.c: Likewise.
14887 * grub-core/commands/videoinfo.c: Likewise.
14888 * grub-core/disk/geli.c: Likewise.
14889 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
14890 * grub-core/disk/luks.c: Likewise.
14891 * grub-core/disk/lvm.c: Likewise.
14892 * grub-core/font/font_cmd.c: Likewise.
14893 * grub-core/fs/zfs/zfscrypt.c: Likewise.
14894 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14895 * grub-core/gfxmenu/view.c: Likewise.
14896 * grub-core/kern/emu/hostdisk.c: Likewise.
14897 * grub-core/kern/emu/main.c: Likewise.
14898 * grub-core/kern/emu/misc.c: Likewise.
14899 * grub-core/kern/emu/mm.c: Likewise.
14900 * grub-core/kern/mips/arc/init.c: Likewise.
14901 * grub-core/kern/mips/loongson/init.c: Likewise.
14902 * grub-core/kern/partition.c: Likewise.
14903 * grub-core/lib/i386/halt.c: Likewise.
14904 * grub-core/lib/mips/arc/reboot.c: Likewise.
14905 * grub-core/lib/mips/loongson/reboot.c: Likewise.
14906 * grub-core/loader/i386/pc/chainloader.c: Likewise.
14907 * grub-core/loader/i386/xnu.c: Likewise.
14908 * grub-core/loader/multiboot.c: Likewise.
14909 * grub-core/net/bootp.c: Likewise.
14910 * grub-core/net/net.c: Likewise.
14911 * grub-core/normal/term.c: Likewise.
14912 * grub-core/partmap/bsdlabel.c: Likewise.
14913 * grub-core/parttool/msdospart.c: Likewise.
14914 * grub-core/term/gfxterm.c: Likewise.
14915 * grub-core/term/terminfo.c: Likewise.
14916 * grub-core/video/i386/pc/vbe.c: Likewise.
14917 * util/grub-menulst2cfg.c: Likewise.
14918 * util/grub-mkdevicemap.c: Likewise.
14919 * util/grub-mklayout.c: Likewise.
14920 * util/grub-mkrelpath.c: Likewise.
14921 * util/grub-script-check.c: Likewise.
14922 * util/ieee1275/grub-ofpathname.c: Likewise.
14923 * util/resolve.c: Likewise.
14924
073aa7a9
VS
149252011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14926
14927 Support %1$d syntax.
14928
14929 * tests/printf_unit_test.c: New file.
14930 * Makefile.util.def (printf_test): New test.
14931 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
14932
c76b5417
VS
149332011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14934
14935 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
14936 fix.
14937
df067ad1
VS
149382011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14939
14940 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
14941 dprintf.
14942 * grub-core/font/font.c (grub_font_load): Likewise.
14943
5b289bc5
VS
149442011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14945
14946 * util/grub-macho2img.c: Add comment concerning gettext.
14947 * grub-core/lib/legacy_parse.c: Likewise.
14948
c1860f87
VS
149492011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14950
14951 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
14952 (grub_xvasprintf): Likewise.
14953
d35d0d37
VS
149542011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14955
14956 Add const keyword to grub_env_get and gettextize week days.
14957
14958 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
14959 (grub_read_hook_datetime): Return const char *.
14960 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
14961 updated.
14962 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
14963 Mark for gettext.
14964 (grub_get_weekday_name): Return const char *. Call gettext.
14965 * grub-core/script/argv.c (grub_script_argv_append): Receive const
14966 char * and len as the argument. All users updated.
14967 (grub_script_argv_split_append): Receive const char *.
14968 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
14969 * include/grub/env.h (grub_env_get): Likewise.
14970 (grub_env_read_hook_t): Return const char *.
14971 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
14972 (grub_script_argv_split_append): Likewise.
14973
9aed8a71
VS
149742011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14975
14976 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
14977
067fdf00
VS
149782011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14979
14980 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
14981 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
14982
a8bd9d39
VS
149832011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14984
14985 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
14986 Fix prototype.
14987
f7ce5baf
VS
149882011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14989
14990 Fix mips compilation.
14991
14992 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
14993 normal decoder.
14994 (hashes): Use in embed decoder as well (for sizes).
14995 (dec_stream_header): Fix embed decompressor logic.
14996 (dec_stream_footer): Likewise.
14997
9bb182f3
VS
149982011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
14999
15000 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
15001 an error and not a fatal on unrecognised relocation types.
15002
63a9e6f6
VS
150032011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15004
15005 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15006 Issue error rather than printf on unknown arguments.
15007
4c458569
VS
150082011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15009
15010 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
15011 Make buf a const.
15012
e2d22baf
VS
150132011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15014
15015 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
15016 Fix module name.
15017
53dc8590
VS
150182011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15019
15020 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
15021 leftover debug printf.
15022
6c189294
VS
150232011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15024
15025 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
15026
f7688369
VS
150272011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15028
15029 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
15030 A stylistic fix.
15031
11a775a3
VS
150322011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
15033
15034 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
15035
33f784e8
SL
150362011-11-10 Shea Levy <slevy@tieronedesign.com>
15037
15038 Allow all modules to perform serial IO
15039
15040 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
15041 * include/grub/serial.h (grub_serial_port_configure): New inline
15042 function.
15043 (grub_serial_port_fetch): Likewise.
15044 (grub_serial_port_put): Likewise.
15045 (grub_serial_port_fini): Likewise.
15046 (grub_serial_find): New proto.
15047
f6276525
VS
150482011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15049
15050 Put symlink at the end of the node and fix a potential
15051 memory corruption.
15052
15053 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
15054 Make symlink into an array.
15055 (set_rockridge): Set have_symlink and alloc_dirents.
15056 (grub_iso9660_read_symlink): Use new layout.
15057 (grub_iso9660_iterate_dir): Fix memory corruption.
15058 Use new layout.
15059 (grub_iso9660_dir): Set have_symlink.
15060 (grub_iso9660_open): Likewise.
15061
c3591189
VS
150622011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15063
15064 Remove local keyword.
15065
15066 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
15067 (version_test_gt): Likewise.
15068 (version_find_latest): Likewise.
15069 (gettext_printf): Likewise.
15070 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
15071
cb544caa
VS
150722011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15073
15074 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
15075
45bd824d
VS
150762011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15077
15078 Fix ZFS memory and resource leaks.
15079
15080 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
15081 All users updated.
15082 Free type on exit.
15083 (fill_vdev_info): New parameter inserted. All users updated.
15084 (check_pool_label): Likewise.
15085 (scan_disk): Likewise.
15086 (scan_devices): Close non-inserted disks.
15087 (fzap_iterate): Free l.
15088 (unmount_device): Free children descripto memory.
15089
ad9a2f44
VS
150902011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15091
15092 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
15093 argument (access out of bounds).
15094
6b68db81
VS
150952011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15096
15097 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
15098 >= 6 drives.
15099
28840fda
VS
151002011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
15101
15102 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
15103 Fix declaration.
15104
8a5a3a5b
VS
151052011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15106
15107 Fix several memory leaks.
15108
15109 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
15110 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
15111 (grub_cpio_dir): Likewise.
15112 * grub-core/fs/fat.c (grub_fat_label): Likewise.
15113 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
15114 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
15115 (grub_romfs_label): Likewise.
15116 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
15117 (squash_unmount): New function.
15118 (grub_squash_dir): Fix memory leak.
15119 (grub_squash_open): Likewise.
15120 (grub_squash_read): Likewise.
15121 (grub_squash_mtime): Likewise.
15122 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
15123 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
15124 * util/grub-fstest.c (fstest): Likewise.
15125
57b01250
VS
151262011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15127
15128 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
15129 avoid accessing beyond the array.
15130
19e81ba7
VS
151312011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15132
15133 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
15134
52b656c0
VS
151352011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15136
15137 Several AFFS fixes.
15138
15139 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
15140 (GRUB_AFFS_FLAG_FFS): Removed.
15141 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
15142 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
15143 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
15144 (grub_fshelp_node): Make block 32-bit.
15145 Add block_cache and last_block_cache.
15146 (grub_affs_read_block): Fill and use block cache.
15147 (grub_affs_read_file): Removed.
15148 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
15149 boot block.
15150 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
15151 safety.
15152 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
15153 space.
15154 (grub_affs_close): Free block cache.
15155 (grub_affs_read): Use grub_fshelp_read_file directly.
15156
438a746a
VS
151572011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15158
15159 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
15160 with no error set.
15161
49a45021
VS
151622011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
15165 used variable.
15166 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15167 Likewise.
15168
3ae17eb8
VS
151692011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15170
15171 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
15172
15173 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
15174 byteswap when needed.
15175
27610c38
VS
151762011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15177
15178 Fix FreeBSD compilation.
15179
15180 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
15181 to avoid circular dependency.
15182 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
15183 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
15184 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
15185
4a19b601
VS
151862011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15187
15188 Fix ZFS crypto error types.
15189
15190 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
15191 (grub_gcm_decrypt): Likewise.
15192 (grub_zfs_load_key_real): Fix error code type. Handle possible error
15193 from PBKDF2.
15194
958ee221
VS
151952011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15196
15197 Illumos support.
15198
15199 * Makefile.util.def (10_illumos): New script.
15200 * configure.ac: Set COND_HOST_ILLUMOS.
15201 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
15202 Support Illumos calls.
15203 (find_partition_start) [__sun__]: Likewise.
15204 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
15205 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
15206 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
15207 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
15208 device.
15209 * util/grub-probe.c (probe) [__sun__]: Do character check.
15210 * util/grub.d/10_illumos.in: New file.
15211
cac14fb6
VS
152122011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15213
15214 Support escaped commas in hostdisk.
15215
15216 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
15217 (find_grub_drive): Use unescape_cmp.
15218 (make_device_name): Escape commas.
15219
78e08dc3
VS
152202011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15221
15222 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
15223
9f421dd1
VS
152242011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15225
15226 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
15227 variable.
15228
ed64e9e2
VS
152292011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
15230
15231 Support trampoline jumps on powerpc.
15232
15233 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
15234 __ia64__ path.
15235 (grub_dl_load_segments): Set mod->sz.
15236 (grub_dl_flush_cache): Flush whole space occupied by module, not just
15237 segments.
15238 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
15239 (jump): Likewise.
15240 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
15241 function.
15242 (trampoline): New struct.
15243 (trampoline_template): New const.
15244 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
15245 * include/grub/dl.h (grub_dl): Add sz element.
15246 [__powerpc__]: Follow __ia64__.
15247 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
15248 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
15249 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
15250 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
15251
3084ede4
VS
152522011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15253
15254 ZFS crypto support.
15255
15256 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
15257 * grub-core/Makefile.core.def (zfscrypt): New module.
15258 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
15259 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
15260 it. All users updated.
15261 (grub_zfs_decrypt): New var.
15262 (grub_zfs_load_key): Likewise.
15263 (zio_checksum_functions): Add SHA256+MAC.
15264 (zio_checksum_verify): Handle incomplete comparison due to MAC.
15265 (zio_read): Handle encrypted blocks.
15266 (zap_verify): Remove incorrect check.
15267 (fzap_iterate): Handle non-standard fzap.
15268 (zap_iterate): Likewise.
15269 (zap_iterate_u64): New function.
15270 (dnode_get_fullpath): Load keys.
15271 * grub-core/fs/zfs/zfscrypt.c: New file.
15272 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
15273 (grub_crypto_ecb_encrypt): Make input const.
15274 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
15275 (grub_crypto_ecb_encrypt): Make input const.
15276 (GRUB_CIPHER_AES): New macro.
15277 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
15278 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
15279 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
15280 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
15281 prefix. All users updated.
15282 (grub_zfs_add_key): New proto.
15283 (grub_zfs_decrypt): Likewise.
15284 (grub_zfs_load_key): Likewise.
15285 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
15286 * util/grub-fstest.c (options): Add -K option.
15287 (argp_parser): Likewise.
15288
b632b404
VS
152892011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15290
15291 Support zle compression on ZFS.
15292
15293 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
15294 (decomp_table): Add zle.
15295 * include/grub/zfs/zio.h (zio_compress): Add zle.
15296
c7ba4f69
VS
152972011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15298
15299 Support BtrFS embedding.
15300
15301 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
15302 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
15303 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
15304 * util/grub-setup.c (setup): Use fs embedding if available.
15305 Add additional sanity check.
15306
455377d9
VS
153072011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
15308
15309 * util/grub-install.in: Fix condition for config_opt.
15310
c2fd16ca
VS
153112011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 Support third redundancy strip on raidz3.
15314
15315 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
15316 Return error on singularity. All users updated.
15317 (read_device): Don't stop on 3rd failure on raidz3.
15318
8622923b
VS
153192011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15320
15321 Support case-insensitive ZFS subvolumes.
15322
15323 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
15324 All users updated.
15325 (zap_hash): Likewise.
15326 (name_cmp): New function.
15327 (zap_leaf_array_equal): New parameter case_insensitive.
15328 All users updated.
15329 (zap_leaf_lookup): Likewise.
15330 (fzap_lookup): Likewise.
15331 (zap_lookup): Likewise.
15332 (dnode_get_path): New parameter case_insensitive. Retrieve case
15333 sensitiviness of a volume. All users updated.
15334 (dnode_get_fullpath): New parameter case_insensitive.
15335 All users updated.
15336 (grub_zfs_dir): Set info.case_insensitiveness.
15337
95f2e860
VS
153382011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15339
15340 Support second redundancy strip on raidz(2,3).
15341
15342 * grub-core/fs/zfs/zfs.c (powx): New array.
15343 (powx_inv): Likewise.
15344 (poly): New const.
15345 (xor_out): New function.
15346 (gf_mul): Likewise.
15347 (recovery): Likewise.
15348 (read_device): Use second redundancy strip.
15349
11ee4389
VS
153502011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15351
15352 Use a power of generator representation of GF(256) multiplication group
15353 to save space time and complexity.
15354
15355 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
15356 (raid6_table2): Likewise.
15357 (powx): New array.
15358 (powx_inv): Likewise.
15359 (poly): New const.
15360 (grub_raid_block_mul): Replace with ...
15361 (grub_raid_block_mulx): ...this.
15362 (grub_raid6_init_table): Rewritten.
15363 (grub_raid6_recover): Use power of generator representation.
15364
09e2763f
VS
153652011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15366
15367 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
15368 for the right device.
15369
8bec9a28
VS
153702011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15371
15372 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
15373 expected by grub-mkimage and it's more clear since there is no implicit
15374 padding.
15375
dbd3a32e
VS
153762011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
15377
15378 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
15379 disk.
15380 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
15381
182c872a
PMH
153822011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
15383
15384 * util/grub-mkrescue.in: Fix handling xorriso option.
15385
1e51cabd
VS
153862011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15387
15388 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
15389 NULL.
15390
9cc3581d 153912011-11-03 crocket <crockabiscuit@gmail.com>
15392
15393 * util/grub.d/10_linux.in: Add Slackware initrd naming.
15394
158dc1ea
VS
153952011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15396
15397 XZ CRC64 and SHA256 support.
15398
15399 * Makefile.util.def (libgrubmods): Add crc64.c.
15400 * grub-core/Makefile.core.def (crc64): New module.
15401 * grub-core/lib/crc64.c: New file.
15402 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
15403 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
15404 Fix the type.
15405 (MAX_HASH_SIZE): New define.
15406 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
15407 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
15408 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
15409 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
15410 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
15411 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
15412 Handle non-crc32 hashes.
15413 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
15414 (dec_stream_header): Handle non-crc32 hashes.
15415 (dec_stream_footer): Likewise.
15416 (dec_block_header): Likewise.
15417 (dec_main): Likewise.
15418 (xz_dec_init): Likewise.
15419 (xz_dec_reset): Likewise.
15420 (xz_dec_end): Likewise.
15421 * util/import_gcry.py: Add CRC64 line.
15422
9d9b3d2f
VS
154232011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15424
15425 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
15426 as well.
15427
7d0ac931
VS
154282011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15429
15430 Make reiserfs label retrieval similar to other *_label functions.
15431
15432 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
15433 (REISERFS_MAX_LABEL_LENGTH): Removed.
15434 (REISERFS_LABEL_OFFSET): Likewise.
15435 (grub_reiserfs_label): Rewritten.
15436
154372011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15438
15439 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
15440 field.
15441
cf5ba824
VS
154422011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
15443
15444 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
15445
17744004
VS
154462011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
15447
15448 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
15449 drive failure on both raidz and raidz2.
15450
aca5aefc
VS
154512011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
15452
15453 Fix RAIDZ(2) for >= 5 devices.
15454
15455 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
15456 asize argument. All users updated.
15457
ce8ca56e
VS
154582011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15459
15460 Fix RAIDZ(2).
15461
15462 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
15463 (fill_vdev_info_real): Set ashift.
15464 (read_device): Rewrite RAIDZ part based on reverse engineering.
15465
7c01e783
VS
154662011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15467
15468 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
15469 don't report potentially unavialiable fields in debug output.
15470 (find_path): Fix double-free and memory leak.
15471
ce109e84
VS
154722011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15473
15474 Read label on UFS1.
15475
15476 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
15477 (grub_ufs_fs): Always set .label.
15478
87661123
VS
154792011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15480
15481 Use shifts in UFS.
15482
15483 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
15484 (grub_ufs_data): New field log2_blksz.
15485 (grub_ufs_read_file): Use shifts.
15486 (grub_ufs_mount): Check block size and logarithm it.
15487
46bc1dc2
VS
154882011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
15489
15490 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
15491 long symlinks.
15492
19ee2987
VS
154932011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15494
15495 Handle symlinks and long names on tar and cpio.
15496
15497 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
15498 (ATTR_FILE): Likewise.
15499 (ATTR_DIR): Likewise.
15500 (ATTR_LNK): Likewise.
15501 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
15502 (grub_cpio_find_file): Fill mode, handle linkname field as well as
15503 L and K entries.
15504 (grub_cpio_mount): Zero-fill data.
15505 (handle_symlink): New function.
46bc1dc2
VS
15506 (grub_cpio_dir): Handle symlinks.
15507 (grub_cpio_open): Likewise.
15508 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 15509
c83a08d8
VS
155102011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15511
15512 Fix iso9660 filename limitations and fix memory leaks.
15513
15514 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
15515 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
15516
45cdd3ea
VS
155172011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15518
15519 Fix JFS file name length limitations.
15520
15521 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
15522 (grub_jfs_diropen): Fix maximum filename length.
15523 (grub_jfs_getent): Fix filename length.
15524 (grub_jfs_lookup_symlink): Fix size checks.
15525
94ef05c2
VS
155262011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15527
15528 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
15529 string.
15530
785ab8c7
VS
155312011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15532
eb0b6b45
VS
15533 Leverage BFS implementation to read AFS.
15534
15535 * Makefile.util.def (libgrubmods): Add afs.c.
15536 * grub-core/Makefile.core.def (afs): New module
15537 * grub-core/fs/afs.c: New file.
15538 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
15539
155402011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15541
15542 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 15543
c4a1628f
VS
155442011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15545
15546 * grub-core/fs/bfs.c: Run indent.
15547
5825b379
VS
155482011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15549
15550 BFS implementation based on the specification.
15551
15552 * grub-core/fs/bfs.c: New file.
15553 * Makefile.util.def (libgrubmods): Add bfs.c.
15554 * grub-core/Makefile.core.def (bfs): New module.
15555
42b2a706
VS
155562011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
15557
15558 * util/grub-fstest.c (cmd_cp): Clarify error message.
15559 (cmd_cmp): Likewise.
15560
61b99bfc
YB
155612011-10-30 Yves Blusseau <blusseau@zetam.org>
15562
15563 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
15564 and befs_be.
15565
faba3d16
VS
155662011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
15567
15568 Remove afs and befs because of copyright problem.
15569
15570 * grub-core/fs/afs.c: Removed.
15571 * grub-core/fs/afs_be.c: Removed.
15572 * grub-core/fs/befs.c: Removed.
15573 * grub-core/fs/befs_be.c: Removed.
15574 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
15575 * grub-core/Makefile.core.def (afs): Removed.
15576 (afs_be): Likewise.
15577 (befs): Likewise.
15578 (befs_be): Likewise.
15579
c39224b0
VS
155802011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15581
15582 Prefer rockridge over Joliet.
15583
15584 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
15585 to ...
15586 (set_rockridge): ... here.
15587 (grub_iso9660_mount): Check rockridge on the primary label when
15588 discovering. Ignore Joliet if Rockridge is present.
15589
e551115a
VS
155902011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15591
15592 Use shifts in nilfs2.
15593
15594 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
15595 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
15596 (grub_nilfs2_palloc_entries_per_group): Replace with ...
15597 (grub_nilfs2_log_palloc_entries_per_group): ... this.
15598 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
15599 (grub_nilfs2_entries_per_block): Replaced with ...
15600 (grub_nilfs2_log_entries_per_block_log): ... this.
15601 (grub_nilfs2_blocks_per_group): Replaced with ...
15602 (grub_nilfs2_blocks_per_group_log): ... this.
15603 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
15604 (grub_nilfs2_blocks_per_desc_block_log): ... this.
15605 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
15606 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
15607 (grub_nilfs2_palloc_entry_offset): Replaced ...
15608 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
15609 (grub_nilfs2_dat_translate): Use shifts.
15610 (grub_nilfs2_read_inode): Likewise.
15611 (GRUB_MOD_INIT): Ensure that logs are correct.
15612
564dd58c
VS
156132011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15614
15615 Use shifts in minix filesystem.
15616
15617 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
15618 (GRUB_MINIX_ZONE2SECT): Likewise.
15619 (grub_minix_data): Replace block_size with log_block_size.
15620 (grub_minix_read_file): Use shifts.
15621 (grub_minix_mount): Check block size and take a logarithm.
15622
ed9ba06d
VS
156232011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15624
15625 Use shifts in squash4.
15626
15627 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
15628 (squash_mount): Check block size and take logarithm.
15629 (direct_read): Use shifts.
15630
ad03fe76
VS
156312011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15632
15633 Correct befs block counting logic.
15634
15635 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
15636 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
15637 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
15638 (grub_afs_read_inode): Use block_shift.
15639 (RANGE_SHIFT): New definition.
15640 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
15641 unexpected conditions, use shifts and appropriate types.
15642 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
15643
6563f63d
VS
156442011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
15645
15646 * grub-core/disk/raid.c (scan_devices): Check partition.
15647 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
15648
5b1ae25f
VS
156492011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
15650
15651 Support BFS (befs) UUID.
15652
15653 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
15654 (grub_afs_small_data_element_header): New struct.
15655 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
15656 (grub_afs_read_attribute) [MODE_BFS]: New function.
15657 (grub_afs_iterate_dir): Allocate for complete inode.
15658 (grub_afs_mount): Likewise.
15659 (grub_afs_uuid) [MODE_BFS]: New function.
15660 (grub_afs_fs) [MODE_BFS]: Add .uuid.
15661
f8d82408
VS
156622011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
15663
15664 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
15665 (zfs_unmount): Fix memory leak.
15666
5773fb64
VS
156672011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15668
15669 Support NTFS reparse points.
15670
15671 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
15672 (symlink_descriptor): New struct.
15673 (grub_ntfs_read_symlink): New function.
15674 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
15675 (grub_ntfs_open): Likewise.
15676
91c3fdde
VS
156772011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15678
15679 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
15680
3be82e10
VS
156812011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15682
15683 fstest xnu_uuid subcommand.
15684
15685 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
15686 grub-core/commands/xnu_uuid.c.
15687 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
15688 (fstest): Handle xnu_uuid.
15689 (options): Document xnu_uuid.
15690 (argp_parser): Parse xnu_uuid.
15691
8e32442e
VS
156922011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15693
15694 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
15695 -l argument. Add newline at the end if printing.
15696 (GRUB_MOD_INIT): Document -l.
15697
52a05075
VS
156982011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15699
15700 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
15701
1869edb5
VS
157022011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15703
15704 ZFS multi-device and version 33 support.
15705
15706 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
15707 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
15708 (grub_zfs_data): Add multidev-ice-related fields.
15709 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
15710 (dva_get_offset): Make dva const.
15711 (zfs_fetch_nvlist): New function.
15712 (fill_vdev_info_real): Likewise.
15713 (fill_vdev_info): Likewise.
15714 (check_pool_label): Likewise.
15715 (scan_disk): Likewise.
15716 (scan_devices): Likewise.
15717 (read_device): Likewise.
15718 (read_dva): Likewise.
15719 (zio_read_gang): Use read_dva.
15720 (zio_read_data): Likewise.
15721 (zap_leaf_lookup): Add missing endian conversion.
15722 (zap_verify): Add missing endian conversion. All users updated.
15723 (fzap_lookup): Likewise.
15724 (fzap_iterate): Likewise.
15725 (dnode_get_path): Handle SA bonus.
15726 (nvlist_find_value): Make input const. All users updated.
15727 (unmount_device): New function.
15728 (zfs_unmount): Use unmount_device.
15729 (zfs_mount): Use scan_disk.
15730 (zfs_mtime): New function.
15731 (grub_zfs_open): Handle system attributes.
15732 (fill_fs_info): Likewise.
15733 (grub_zfs_dir): Likewise.
15734 (grub_zfs_fs): Add mtime.
15735 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
15736 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
15737 (SA_MTIME_OFFSET): Likewise.
15738 (SA_SYMLINK_OFFSET): Likewise.
15739 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
15740 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
15741 (fstest): Support zfsinfo.
15742 (argp_parser): Likewise.
15743
186b4028
VS
157442011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15745
15746 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
15747 error.
15748
157492011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
15750
15751 ZFS fixes.
15752
15753 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
15754 sharing the same block. Iterate over correct number of indices.
15755 (dnode_get_path): Handle symlinks correctly.
15756
c0584900
VS
157572011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15758
15759 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
15760
67e2bd71
VS
157612011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15762
15763 Read label on HFS+.
15764
15765 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
15766 (grub_hfsplus_btree_search): Fix types.
15767 (grub_hfsplus_label): Implement.
15768
e9cc6b7b
VS
157692011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15770
15771 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
15772
19832ddb
VS
157732011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15774
15775 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
15776
66b40850
VS
157772011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15778
15779 Fix symlink handling on iso9660.
15780
15781 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
15782 All users updated.
15783 (grub_iso9660_susp_iterate): Accept zero-size iterate.
15784 (grub_iso9660_read_symlink): Moved most of code ...
15785 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
15786
db821363
VS
157872011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15788
15789 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
15790 Use union to avoid breaking strict-aliasing rules.
15791
e1211949
VS
157922011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15793
15794 Support multi-extent iso files.
15795
15796 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
15797 Add node.
15798 (grub_fshelp_node): Revamp. All users updated.
15799 (FLAG_*): New enum.
15800 (read_node): New function.
15801 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
15802 All users updated.
15803 (grub_iso9660_mount): Don't attempt to read sua when there is none.
15804 (get_node_size): New function.
15805 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
15806 entries.
15807 Fix memory leak on . and ..
15808 (grub_iso9660_read): Use read_node.
15809 (grub_iso9660_close): Free node.
15810
d4888031
VS
158112011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15812
15813 Fix tar 4G limit and handle paths containing dot.
15814
15815 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
15816 (canonicalize): New function.
15817 (grub_cpio_find_file): Use canonicalize. Store offs in
15818 grub_disk_addr_t.
15819 (grub_cpio_dir): Use grub_disk_addr_t.
15820 (grub_cpio_open): Likewise.
15821
9f12e664
VS
158222011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15823
15824 Fix handling of uncompressed blocks on squashfs and break 4G limit.
15825
15826 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
15827 unused flags.
15828 (grub_squash_inode): Add long_file and block_size.
15829 (grub_squash_cache_inode): New struct.
15830 (grub_squash_dirent): Make types into enum.
15831 (SQUASH_TYPE_LONG_REGULAR): New type.
15832 (grub_squash_frag_desc): Add field size.
15833 (SQUASH_BLOCK_FLAGS): New enum.
15834 (grub_squash_data): Use grub_squash_cache_inode.
15835 (grub_fshelp_node): Make ino_chunk 64-bit.
15836 (read_chunk): Minor argument change. All users updated.
15837 (squash_mount): Use correct le_to_cpu.
15838 (grub_squash_open): Handle LONG_REGULAR.
15839 (direct_read): New function.
15840 (grub_squash_read_data): Handle blocks correctly.
15841
9f326fba
VS
158422011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15843
15844 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
15845
f4d9b64b
VS
158462011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15847
15848 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
15849
5bbd28b8
VS
158502011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
15851
15852 Fix 2G limit on ZFS.
15853
15854 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
15855 types.
15856 (uberblock_verify): Likewise.
15857 (dmu_read): Likewise.
15858 (grub_zfs_read): Likewise. Remove invalid cast.
15859
68c72069
VS
158602011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
15861
15862 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
15863 (grub_jfs_blkno): Fix incorrect shift.
15864 (grub_jfs_read_file): Use more appropriate types.
15865
6e536dc8
VS
158662011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
15867
15868 Support triple indirect on minix2 and minix3.
15869
15870 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
15871 Declare triple_indir_zone.
15872 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
15873 indirect.
15874
e0864e7a
VS
158752011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
15876
15877 Minix FS fixes.
15878
15879 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
15880 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
15881 Rename ctime to mtime. All users updated.
15882 (grub_minix_get_file_block): Fix types and double indirect computations.
15883
89481cab
VS
158842011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15885
15886 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
15887 if no label is found.
15888 (grub_fat_iterate_dir): Fix file size type.
15889 (grub_fat_iterate_dir): Likewise.
15890
f646e143
VS
158912011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15892
15893 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
15894 save some space.
15895 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
15896 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15897
534d769e
VS
158982011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15899
15900 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
15901
e084ba18
VS
159022011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15903
15904 * util/import_gcry.py: Accept space between # and include.
15905
3471ecdf
VS
159062011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15907
15908 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
15909
124df5f6
VS
159102011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15911
15912 Fine grainely disable warnings on lexer. Remove Wno-error on it.
15913
15914 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
15915 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
15916 yylex_strncpy.
15917 * grub-core/script/yylex.l: Add fine-grained #pragma.
15918
4defb8d5
VS
159192011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15920
15921 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
15922 New inline function.
15923 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
15924 Likewise.
15925 (memset) [GRUB_UTIL]: Likewise.
15926 (memcmp) [GRUB_UTIL]: Likewise.
15927
4e94ae65
VS
159282011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15929
15930 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
15931 inline function rather than a define.
15932
18c575e5
VS
159332011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15934
15935 * util/grub-setup.c: Add missing include.
15936
f8bc22a8
VS
159372011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15938
15939 * util/ieee1275/grub-ofpathname.c: Add missing include.
15940
3ce69fc9
VS
159412011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15942
15943 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
15944 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
15945 Likewise.
15946
d1e293bb
VS
159472011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15948
15949 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
15950 grub_memcmp usage.
15951
7a5c54a4
VS
159522011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15953
15954 * util/grub-install.in: Add datarootdir as per automake manual
15955 suggestion.
15956 * util/grub-mknetdir.in: Likewise.
15957
159582011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
15959
15960 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
15961 suggestion.
15962 * util/grub.d/10_kfreebsd.in: Likewise.
15963 * util/grub.d/10_linux.in: Likewise.
15964 * util/grub.d/10_netbsd.in: Likewise.
15965 * util/grub.d/10_windows.in: Likewise.
15966 * util/grub.d/20_linux_xen.in: Likewise.
15967
766f7d08
VS
159682011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
15969
15970 Remove redundant grub_kernel_image_size.
15971
15972 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
15973 _edata and _start.
15974 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
15975 the small code. It moves it only by few bytes but simplifies the code.
15976 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
15977 _start.
15978 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
15979 (grub_kernel_image_size): Removed.
15980 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
15981 (grub_kernel_image_size): Removed.
15982 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
15983 compiled with Apple toolchain.
15984 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
15985 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
15986 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
15987 (grub_total_module_size): Likewise.
15988 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
15989 Removed.
15990 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
15991 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
15992 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
15993 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
15994 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
15995 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
15996 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
15997 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
15998 Removed.
15999 (grub_total_module_size): Removed.
16000 * util/grub-mkimage.c (image_target_desc): Remove image_size.
16001 (image_targets): Likewise.
16002 Set .compressed_size to no field on sparc.
16003 (generate_image): Remove kernel_image_size handling.
16004
fcf1d672
SJ
160052011-10-19 Szymon Janc <szymon@janc.net.pl>
16006
16007 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
16008 NULL pointer dereference.
16009
de9c615e
VS
160102011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16011
16012 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
16013 done with a dedicated section.
16014
16015 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
16016 Ensure the correct position of boot_path.
16017 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
16018 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
16019 other fields.
16020 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
16021 * include/grub/boot.h: Removed. All references removed.
16022 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
16023 Removed.
16024 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
16025
e55599dc
VS
160262011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16027
16028 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
16029 name.
16030
36dd20ad
VS
160312011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16032
16033 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
16034
f8f72eb8
VS
160352011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16036
16037 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
16038 Don't add the bogus brackets.
16039
a374751b
VS
160402011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16041
16042 ExFAT support.
16043
16044 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
16045 * grub-core/Makefile.core.def (exfat): New module.
16046 * grub-core/fs/exfat.c: New file.
16047 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
16048 (GRUB_FAT_ATTR_*): Make into an enum.
16049 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
16050 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
16051 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
16052 (GRUB_FAT_MAXFILE): Removed.
16053 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
16054 (grub_current_fat_bpb_t): New type.
16055 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
16056 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
16057 (grub_fat_dir_node_t): New type.
16058 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
16059 (fat_log2) [MODE_EXFAT]: Removed.
16060 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
16061 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
16062 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
16063 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
16064 (grub_fat_label) [MODE_EXFAT]: New function.
16065 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
16066 reserved_first_sector to 0.
16067
544c2487
VS
160682011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
16069
16070 Move grub_reboot out of the kernel.
16071
16072 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
16073 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
16074 * grub-core/lib/efi/reboot.c: ... here.
16075 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
16076 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16077 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
16078 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
16079 * grub-core/lib/i386/reboot_trampoline.S: ... here.
16080 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
16081 * grub-core/lib/ieee1275/reboot.c: ... here.
16082 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
16083 * grub-core/lib/mips/arc/reboot.c: ... here.
16084 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
16085 * grub-core/lib/mips/loongson/reboot.c: ...here.
16086 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
16087 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
16088 * include/grub/emu/misc.h (grub_reboot): New function declaration.
16089 * include/grub/i386/reboot.h: New file.
16090 * include/grub/mips/loongson/ec.h: Fix includes.
16091 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
16092 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
16093 * grub-core/lib/i386/reboot.c: New file.
16094
a97501d2
VS
160952011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
16096
16097 Make grub_prefix into module to fix the arbitrary limit and save
16098 some space.
16099
16100 * grub-core/kern/emu/main.c (grub_prefix): Removed.
16101 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
16102 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
16103 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
16104 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
16105 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
16106 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
16107 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
16108 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
16109 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
16110 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
16111 * include/grub/ia64/efi/kernel.h: Removed.
16112 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
16113 (grub_prefix): Removed.
16114 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
16115 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
16116 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
16117 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
16118 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
16119 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
16120 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
16121 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
16122 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
16123 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
16124 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16125 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16126 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16127 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16128 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
16129 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
16130 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
16131 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16132 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
16133 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
16134 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
16135 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
16136 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
16137 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
16138 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
16139 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
16140 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
16141 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
16142 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
16143 from module.
16144 * util/grub-mkimage.c (image_target_desc): Removed prefix and
16145 prefix_end.
16146 (image_targets): Likewise.
16147 (generate_image): Put prefix as a module.
16148
39705fad
VS
161492011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16150
16151 Replace grub_module_iterate with FOR_MODULES.
16152
16153 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
16154 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
16155 (grub_efi_modules_addr): ...this.
16156 * grub-core/kern/efi/init.c (grub_modbase): New variable.
16157 (grub_efi_init): Set grub_modbase.
16158 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
16159 (grub_modbase): New variable.
16160 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
16161 (grub_modbase): New variable.
16162 (grub_machine_init): Set grub_modbase.
16163 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
16164 (grub_modbase): New variable.
16165 (grub_machine_init): Set grub_modbase.
16166 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
16167 (grub_modbase): New variable.
16168 (grub_machine_init): Set grub_modbase.
16169 * grub-core/kern/main.c (grub_module_iterate): Remove.
16170 (grub_modules_get_end): Use grub_modbase.
16171 (grub_load_modules): Use FOR_MODULES.
16172 (grub_load_config): Likewise.
16173 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
16174 (grub_modbase): New variable.
16175 (grub_machine_init): Set grub_modbase.
16176 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
16177 (grub_modbase): New variable.
16178 (grub_machine_init): Set grub_modbase.
16179 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
16180 Removed.
16181 (grub_modbase): New variable.
16182 (grub_machine_init): Set grub_modbase.
16183 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
16184 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
16185 (grub_module_iterate): Likewise.
16186 (grub_modbase): New variable declaration.
16187 (FOR_MODULES): New macro.
16188
2afb7f6c
VS
161892011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16190
16191 * configure.ac: Check for __ctzdi2 and __ctzsi2.
16192 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
16193
366e34fa
VS
161942011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16195
16196 Fix few obvious type discrepancies.
16197
16198 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
16199 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
16200 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
16201 variable.
16202 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
16203 and connected types.
16204 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
16205 offset.
16206 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
16207 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
16208 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
16209 and connected types.
16210
177b960e
VS
162112011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16212
16213 Fix python 3.x incompatibilities.
16214
16215 * gentpl.py: Put brackets around print strings.
16216 * util/import_gcry.py: Open explicitly as utf-8.
16217 Use in instead of has_key.
16218
3b619ae1
VS
162192011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16220
16221 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
16222 (GRUB_XFS_INO_AGBITS): Make into inline function.
16223 (GRUB_XFS_INO_INOINAG): Likewise.
16224 (GRUB_XFS_INO_AG): Likewise.
16225 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
16226 (GRUB_XFS_EXTENT_OFFSET): Likewise.
16227 (GRUB_XFS_EXTENT_BLOCK): Likewise.
16228 (GRUB_XFS_EXTENT_SIZE): Likewise.
16229 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
16230 (GRUB_XFS_NEXT_DIRENT): Likewise.
16231 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
16232 (grub_xfs_read_file): Fix offset type.
16233
8bcebcb8
RM
162342011-10-15 Robert Millan <rmh@gnu.org>
16235
16236 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
16237
0017e5ef
RM
162382011-10-15 Robert Millan <rmh@gnu.org>
16239
16240 Fix build problem on FreeBSD and GNU/kFreeBSD.
16241
16242 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
16243
d8919552
VS
162442011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16245
16246 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
16247
16248 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
16249 types.
16250 (grub_hfsplus_btree_recoffset): Likewise.
16251 (grub_hfsplus_btree_recptr): Likewise.
16252 (grub_hfsplus_find_block): Likewise.
16253 (grub_hfsplus_btree_search): Likewise.
16254 (grub_hfsplus_read_block): Likewise.
16255 (grub_hfsplus_read_file): Likewise.
16256 (grub_hfsplus_mount): Likewise.
16257 (grub_hfsplus_btree_iterate_node): Likewise.
16258 (grub_hfsplus_btree_search): Likewise.
16259 (grub_hfsplus_iterate_dir): Likewise.
16260 (grub_hfsplus_read): A small code simplification.
16261
c81296b6
VS
162622011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16263
16264 * grub-core/kern/emu/hostdisk.c
16265 (convert_system_partition_to_system_disk): Don't assume that children
16266 of mapper nodes are mapper nodes.
16267
0eb8ffb1
VS
162682011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16269
16270 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
16271 * include/grub/misc.h (grub_isxdigit): New function.
16272 * grub-core/video/colors.c (my_isxdigit): Removed. All users
16273 switched to grub_isxdigit.
16274 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
16275 number starting with a letter.
16276
a98f4a08
RM
162772011-10-09 Robert Millan <rmh@gnu.org>
16278
16279 LVM support for FreeBSD and GNU/kFreeBSD.
16280
16281 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
16282 GNU/kFreeBSD.
16283 (LVM_DEV_MAPPER_STRING): Move from here ...
16284 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
16285 * util/getroot.c: Include `<grub/util/lvm.h>'.
16286 (grub_util_get_dev_abstraction): Enable
16287 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
16288 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
16289 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
16290 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
16291 support it.
16292 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
16293 GNU/kFreeBSD.
16294 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
16295 when LVM abstraction is required for ${GRUB_DEVICE}.
16296
050e8e90
SJ
162972011-10-06 Szymon Janc <szymon@janc.net.pl>
16298
16299 Add support for LZO compression in GRUB:
16300 - import of minilzo library,
16301 - LZO decompression for btrfs,
16302 - lzop files decompression.
16303
16304 * grub-core/io/lzopio.c: New file.
16305 * grub-core/lib/adler32.c: Likewise.
16306 * grub-core/lib/minilzo/lzoconf.h: Likewise.
16307 * grub-core/lib/minilzo/lzodefs.h: Likewise.
16308 * grub-core/lib/minilzo/minilzo.c: Likewise.
16309 * grub-core/lib/minilzo/minilzo.h: Likewise.
16310 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
16311 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
16312 grub-core/lib/minilzo/minilzo.c to common.
16313 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
16314 cflags in cppflags.
16315 * grub-core/Makefile.core.def (btrfs): Likewise.
16316 * grub-core/Makefile.core.def (lzopio): New module.
16317 (adler32): Likewise.
16318 * grub-core/fs/btrfs.c: Include minilzo.h.
16319 (GRUB_BTRFS_COMPRESSION_LZO): New define.
16320 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
16321 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
16322 (grub_btrfs_lzo_decompress): New function.
16323 (grub_btrfs_extent_read): Add support for LZO compression type.
16324 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
16325 (GRUB_USHRT_MAX): Likewise.
16326 (GRUB_UINT_MAX): Likewise.
16327 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
16328 (UINT_MAX): Likewise.
16329 (CHAR_BIT): Likewise.
16330 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
16331 grub-core/lib/posix_wrap/limits.h
16332 (UCHAR_MAX): Likewise.
16333 * include/grub/file.h (grub_file_filter_id): New compression filter
16334 GRUB_FILE_FILTER_LZOPIO.
16335 * include/grub/file.h (grub_file_filter_id): Set
16336 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
16337 * include/grub/types.h (grub_get_unaligned16): New function.
16338 (grub_get_unaligned32): Likewise.
16339 (grub_get_unaligned64): Likewise.
16340 * util/import_gcry.py (cryptolist): Add adler32.
16341
0eb8ffb1
VS
163422011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
16343
16344 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
16345 in perspective decreases the complexity of build system and fixes
16346 compilation right now.
16347
ce79cc99 163482011-10-01 Ales Nesrsta <starous@volny.cz>
16349
16350 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
16351 (fixed problem related to using UHCI with coreboot).
16352
8667a314
BC
163532011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
16354
16355 * gentpl.py: Use Autogen macros so that the output template file
16356 (Makefile.tpl) size is reduced.
16357
fc5efcc0
MK
163582011-09-29 Mads Kiilerich <mads@kiilerich.com>
16359
16360 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
16361 extra_dist.
16362
d1ab689d
ML
163632011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16364
16365 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
16366 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
16367
c05de032
ML
163682011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16369
16370 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
16371 _fullpath.
16372
cca7ccd8
ML
163732011-09-29 Mario Limonciello <mario_limonciello@dell.com>
16374
16375 Remove extra declaration of sleep for mingw32.
16376
16377 * util/misc.c (sleep) [__MINGW32__]: Removed.
16378 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
16379
e0b0dc83
GS
163802011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
16381
16382 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
16383 type and packname.
16384 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
16385 Resurrected.
16386 (NETBSD_BTINFO_BOOTWEDGE): New definition.
16387 (grub_netbsd_btinfo_bootwedge): New struct.
16388 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
16389 New function.
16390 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
16391
91a1a164
TH
163922011-09-28 Thomas Haller <thomas.haller@fen-net.de>
16393
16394 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
16395 loader.
16396
2ded951e
AB
163972011-09-28 Andreas Born <futur.andy@googlemail.com>
16398
16399 Fix incorrect identifiers in bash-completion.
16400
16401 * util/bash-completion.d/grub-completion.bash.in
16402 (_grub_mkpasswd-pbkdf2): Rename to ...
16403 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
16404 (_grub_script-check): Rename to ...
16405 (_grub_script_check): ... this. All users updated.
16406
69915030
VS
164072011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
16408
16409 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
16410 Return 0 if disk isn't biosdisk.
16411
20fd15f9
GS
164122011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
16413
16414 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
16415 on NetBSD.
16416 * Makefile.util.def (grub-fstest): Likewise.
16417
1a7d7db9
GS
164182011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
16419
16420 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
16421 Get sector size from disk label.
16422
2221ab6c
CW
164232011-09-05 Colin Watson <cjwatson@ubuntu.com>
16424
16425 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
16426 */README* as well as README*.
16427 Reported by: Axel Beckert.
16428
ca51c4a0
VS
164292011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16430
16431 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
16432 case of less than 256 MiB of RAM.
16433
ab80f326
VS
164342011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16435
16436 * grub-core/commands/wildcard.c (make_regex): Handle @.
16437
4155e697
VS
164382011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16439
16440 * util/grub-install.in: Move cryptodisk logic to appropriate place.
16441
ab178c08
SJ
164422011-08-21 Szymon Janc <szymon@janc.net.pl>
16443
16444 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
16445 AC_LANG_CONFTEST macros.
16446
7dc3c686
SJ
164472011-08-20 Szymon Janc <szymon@janc.net.pl>
16448
16449 Add grub-fstest option to uncompress data for commands.
16450
16451 * util/grub-fstest.c (uncompress): New var.
16452 (options): New option -u.
16453
fe8d4a7b
SJ
164542011-08-20 Szymon Janc <szymon@janc.net.pl>
16455
16456 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
16457 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
16458
a5219af1
SJ
164592011-08-20 Szymon Janc <szymon@janc.net.pl>
16460
16461 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
16462 file type was not recognized correctly (not gzip or corrupted).
16463
f87abff5
VS
164642011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16465
16466 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
16467 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
16468
d94497ea
VS
164692011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16470
16471 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
16472 loongson.
16473 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16474 video_radeon_fuloong2e.
16475 * grub-core/video/radeon_fuloong2e.c: New file.
16476 * include/grub/video.h (grub_video_id_t): Add new ID
16477 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
16478
0d1fd011
VS
164792011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16480
16481 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
16482 define.
16483 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
16484 that PRID matches the detected subplatform and reset the subplatform
16485 if it doesn't.
16486
84beb0ee
VS
164872011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16488
16489 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
16490
1227c133
VS
164912011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16492
16493 Fix PCI iterating on functions >= 4.
16494
16495 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
16496 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
16497 Removed.
16498 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
16499 (grub_pci_read): Fix bitmask.
16500 (grub_pci_read_word): Likewise.
16501 (grub_pci_read_byte): Likewise.
16502 (grub_pci_write): Likewise.
16503 (grub_pci_write_word): Likewise.
16504 (grub_pci_write_byte): Likewise.
16505
9594c689
VS
165062011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16507
16508 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
16509 can still be specified in TARGET_CFLAGS)
16510
14a2562c
VS
165112011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
16512
16513 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
16514
16515 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
16516 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
16517 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
16518 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
16519 (FULOONG): Rename to ...
16520 (FULOONG2F): ... this. All users updated.
16521 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
16522 (machtype_fuloong2f_str): ... this.
16523 (machtype_fuloong2e_str): New string.
16524 Check for machtype_fuloong2e_str.
16525 * grub-core/loader/mips/linux.c (loongson_machtypes)
16526 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
16527 * grub-core/term/serial.c (loongson_defserial)
16528 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
16529 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
16530 loongson_defserial.
16531 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
16532 Rename to ...
16533 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
16534 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
16535 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
16536 to IMAGE_FULOONG2F_FLASH. All users updated.
16537 (image_targets): Rename images.
16538 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
16539
b526cbb6
SJ
165402011-08-19 Szymon Janc <szymon@janc.net.pl>
16541
16542 Make enable of disk cache statistics code configurable.
16543
16544 * configure.ac: --enable-cache-stats added.
16545 * config.h.in (DISK_CACHE_STATS): New define.
16546 * grub-core/Makefile.core.def (cacheinfo): New command.
16547 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
16548 * grub-core/commands/cacheinfo.c: New file.
16549 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
16550 moved to cacheinfo.c.
16551 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
16552 debug code.
16553 * include/grub/disk.h: Likewise.
16554
fb739ccd
SJ
165552011-08-19 Szymon Janc <szymon@janc.net.pl>
16556
16557 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
16558 * grub-core/Makefile.am: Likewise.
16559
2bba8cfd
VS
165602011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16561
16562 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
16563 non-zero pull.
16564
43526629
VS
165652011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16566
16567 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
16568 All users updated.
16569 (grub_jfs_lookup_symlink): Use correct starting inode.
16570
5c144cc8
VS
165712011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16572
16573 * util/grub-setup.c (main): Add missing gcry initialisation.
16574
b1257f65
VS
165752011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
16576
16577 Don't accept text modes on EFI when booting Linux.
16578
16579 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
16580 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
16581
828bc390
ML
165822011-08-15 Mario Limonciello <mario_limonciello@dell.com>
165832011-08-15 Colin Watson <cjwatson@ubuntu.com>
16584
16585 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
16586 use of "/path/.." as in grub-install for EFI as well as handling
16587 symlinks correctly.
16588 Fixes Debian bug #637768.
16589
5f60ccac
CW
165902011-08-15 Colin Watson <cjwatson@ubuntu.com>
16591
16592 * util/grub-probe.c: Remove duplicate #include.
16593
6dc212f9
RM
165942011-08-10 Robert Millan <rmh@gnu.org>
16595
16596 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
16597
16598 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
16599 function.
16600 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
16601 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
16602
66816d85
RM
166032011-08-03 Robert Millan <rmh@gnu.org>
16604
16605 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
16606 la_array as packed.
16607 Reported by: Zachary Bedell
16608
20168fca
CW
166092011-07-26 Colin Watson <cjwatson@ubuntu.com>
16610
16611 * configure.ac: The Loongson port requires grub-mkfont due to its
16612 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
16613 be built.
16614
303b6246
CW
166152011-07-26 Colin Watson <cjwatson@ubuntu.com>
16616
16617 * util/grub-install.in: Don't source grub-mkconfig_lib until after
16618 processing arguments (otherwise help2man fails when GRUB has not yet
16619 been installed).
16620
6795300e
VS
166212011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16622
41aa28ea
VS
16623 New script grub-mkstandalone.
16624
16625 * Makefile.util.def (grub-mkstandalone): New script.
16626 * docs/man/grub-mkstandalone.h2m: New file.
16627 * util/grub-mkstandalone.in: Likewise.
16628
166292011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16630
16631 Support ATA disks with 4K sectors.
6795300e
VS
16632
16633 * include/grub/ata.h (grub_ata): New member log_sector_size.
16634 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
16635 (grub_ata_identify): Read sector size.
16636 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
16637
92227597
VS
166382011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16639
16640 * util/grub-install.in: Don't use uhci outside of x86.
16641
c77069f5
VS
166422011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16643
16644 * util/grub-mkrescue.in: Add missing quotes.
16645
166462011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
16647
16648 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
16649 dereference.
16650
583168a2
VS
166512011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16652
16653 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
16654
6be1c01f
VS
166552011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16656
16657 * include/grub/video.h: add missing EXPORT_FUND on
16658 grub_video_edid_checksum and grub_video_edid_preferred_mode.
16659
a1167439
VS
166602011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16661
16662 * include/grub/mips/kernel.h: Fix define conflict.
16663
bf66054f
VS
166642011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
16665
16666 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
16667 all four ways.
16668
8fc4fa45
CW
166692011-07-21 Colin Watson <cjwatson@ubuntu.com>
16670
16671 Preferred resolution detection for VBE.
16672
16673 * grub-core/video/video.c (grub_video_edid_checksum): New function.
16674 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
16675 the Flat Panel extension, in line with the X.org VESA driver.
16676 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
16677 New function.
16678 (grub_vbe_bios_get_ddc_capabilities): Likewise.
16679 (grub_vbe_bios_read_edid): Likewise.
16680 (grub_vbe_get_preferred_mode): Likewise.
16681 (grub_video_vbe_setup): When the mode is "auto", try to get the
16682 preferred mode from VBE, and use the largest mode that is no larger
16683 than the preferred mode (some BIOSes expose a preferred mode that is
16684 not in their mode list!). If this fails, fall back to 640x480 as a
16685 safe conservative choice.
16686 (grub_video_vbe_get_edid): New function.
16687 (grub_video_vbe_adapter): Add get_edid.
16688 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
16689 (struct grub_video_adapter): Add get_edid.
16690 (grub_video_edid_checksum): Add prototype.
16691 (grub_video_edid_preferred_mode): Likewise.
16692 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
16693 structure.
16694
16695 * grub-core/commands/videoinfo.c (print_edid): New function.
16696 (grub_cmd_videoinfo): Print EDID if available.
16697
16698 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
16699 is more appropriate on a wider range of platforms than 640x480.
16700 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
16701 documentation.
16702
ca5572a9
VS
167032011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
16704
16705 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
16706
e4bcf625
VS
167072011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
16708
16709 * po/POTFILES.in: Regenerate.
16710
c4edd548
VS
167112011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
16712
16713 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
16714 incorrect memory usage.
16715
16a2bab0
VS
167162011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
16717
16718 * util/grub-install.in: Source grub-mkconfig_lib.
16719
2e418de6
VS
167202011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
16721
16722 Remove getroot.c from core on emu platform.
16723
16724 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
16725 kern/emu/raid.c.
16726 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
16727 useless.
16728 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
16729 * util/getroot.c (get_win32_path): ... here.
16730 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
16731 * util/getroot.c (fini_libzfs): ... here.
16732 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
16733 * util/getroot.c (grub_get_libzfs_handle): ... here.
16734 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
16735 Moved from here...
16736 * util/getroot.c (grub_find_zpool_from_dir): ... here.
16737 * grub-core/kern/emu/misc.c
16738 (grub_make_system_path_relative_to_its_root): Moved from here...
16739 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
16740 * grub-core/kern/emu/getroot.c: Moved from here ...
16741 * util/getroot.c: ... here. All users updated.
16742 * grub-core/kern/emu/raid.c: Moved from here ...
16743 * util/raid.c: ... here. All users updated.
16744
def9832a
VS
167452011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 * po/POTFILES.in: Regenerate.
16748
cd8fe79a
VS
167492011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
16750
16751 Fix compilation on GNU/Linux.
16752
16753 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
16754 Disable geli.
16755 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
16756 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
16757 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
16758
a251b719
VS
167592011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
167602011-07-07 Michael Gorven <michael@gorven.za.net>
167612011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
16762
16763 LUKS and GELI support.
16764
16765 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
16766 grub-core/disk/luks.c, grub-core/disk/geli.c,
16767 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
16768 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
16769 grub-core/lib/arg.c.
16770 (libgrubmods.a): Remove gcrypts cflags and cppflags.
16771 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
16772 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
16773 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
16774 (grub-bin2h): Add libgcry.a.
16775 (grub-mkimage): Likewise.
16776 (grub-mkrelpath): Likewise.
16777 (grub-script-check): Likewise.
16778 (grub-editenv): Likewise.
16779 (grub-mkpasswd-pbkdf2): Likewise.
16780 (grub-pe2elf): Likewise.
16781 (grub-fstest): Likewise.
16782 (grub-mkfont): Likewise.
16783 (grub-mkdevicemap): Likewise.
16784 (grub-probe): Likewise.
16785 (grub-ofpath): Likewise.
16786 (grub-mklayout): Likewise.
16787 (example_unit_test): Likewise.
16788 (grub-menulst2cfg): Likewise.
16789 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
16790 * grub-core/Makefile.core.def (cryptodisk): New module.
16791 (luks): Likewise.
16792 (geli): Likewise.
16793 * grub-core/disk/AFSplitter.c: New file.
16794 * grub-core/disk/cryptodisk.c: Likewise.
16795 * grub-core/disk/geli.c: Likewise.
16796 * grub-core/disk/luks.c: Likewise.
16797 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
16798 grub_util_is_lvm.
16799 (grub_util_get_dm_abstraction): New function.
16800 (grub_util_follow_gpart_up): Likewise.
16801 (grub_util_get_geom_abstraction): Likewise.
16802 (grub_util_get_dev_abstraction): Use new functions.
16803 (grub_util_pull_device): Pull GELI and LUKS.
16804 (grub_util_get_grub_dev): Handle LUKS and GELI.
16805 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
16806 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
16807 (follow_geom_up): Removed.
16808 (grub_util_fd_seek): New function.
16809 (open_device): Use grub_util_fd_seek.
16810 (nread): Rename to ..
16811 (grub_util_fd_read): ... this. All users updated.
16812 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
16813 (grub_crypto_cbc_decrypt): Likewise.
16814 (grub_crypto_hmac_write): Likewise.
16815 (grub_crypto_hmac_buffer): Likewise.
16816 (grub_password_get): Extend to util.
16817 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
16818 New member modname.
16819 (gcry_md_spec) [GRUB_UTIL]: Likewise.
16820 * include/grub/cryptodisk.h: New file.
16821 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
16822 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
16823 LUKS and GELI.
16824 (grub_util_follow_gpart_up): New proto.
16825 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
16826 (grub_util_fd_read): Likewise.
16827 (grub_cryptodisk_cheat_mount): Likewise.
16828 (grub_util_cryptodisk_print_uuid): Likewise.
16829 (grub_util_get_fd_sectors): Likewise.
16830 * util/grub-fstest.c (mount_crypt): New var.
16831 (fstest): Mount crypto if requested.
16832 (options): New option -C.
16833 (argp_parser): Parse -C.
16834 (main): Init and fini gcry.
16835 * util/grub-install.in: Support cryptodisk install.
16836 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
16837 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
16838 cryptodisk.
16839 (prepare_grub_to_access_device): Likewise.
16840 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
16841 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
16842 (probe_cryptodisk_uuid): New function.
16843 (probe_abstraction): Likewise.
16844 (probe): Use new functions.
16845 * util/import_gcry.py: Create Makefile.utilgcry.def.
16846 Add modname member.
16847
9bfdcbbc
VS
168482011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
16849
16850 Lazy device scanning.
16851
16852 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
16853 (grub-setup): Remove util/raid.c.
16854 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
16855 * grub-core/disk/lvm.c (scan_depth): New variable.
16856 (grub_lvm_iterate): Rescan if necessary.
16857 (find_lv): New function based on grub_lvm_open.
16858 (grub_lvm_open): Use find_lv. Rescan on error.
16859 (is_node_readable): New function.
16860 (is_lv_readable): Likewise.
16861 (grub_lvm_scan_device): Skip already found disks.
16862 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
16863 Stop if searched device is found and readable.
16864 * grub-core/disk/raid.c (inscnt): New variable.
16865 (scan_depth): Likewise.
16866 (scan_devices): New function based on grub_raid_register. Abort if
16867 looked for device is found.
16868 (grub_raid_iterate): Rescan if needed.
16869 (find_array): NEw function based on -grub_raid_open.
16870 (grub_raid_open): Use find_array and rescan.
16871 (insert_array): Set became_readable_at.
16872 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
16873 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
16874 New function.
16875 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
16876 (grub_util_pull_device): New function.
16877 (grub_util_get_grub_dev): Call grub_util_pull_device.
16878 * util/raid.c: Moved to ..
16879 * grub-core/kern/emu/raid.c: ... here.
16880 (grub_util_raid_getmembers): New parameter "bootable".
16881 All users updated. Support 1.x.
16882 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
16883 All users updated.
16884 * include/grub/disk.h (grub_disk_pull_t): New enum.
16885 (grub_disk_dev): Change iterate prototype.
16886 All users updated.
16887 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
16888 New proto.
16889 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
16890 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
16891 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
16892 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
16893 All users updated.
16894 * include/grub/util/raid.h: Removed.
16895
1c358e59
VS
168962011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
16897
16898 * po/POTFILES.in: Regenerate.
16899
abee94ed
VS
169002011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
16901
16902 Unify sparc init with other ieee1275.
16903
16904 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
16905 instead of kern/sparc64/ieee1275/init.c.
16906 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
16907 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
16908 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
16909 grub/machine/kernel.h.
16910 (grub_ieee1275_original_stack) [__sparc__]: New variable.
16911 (grub_claim_heap) [__sparc__]: Use sparc version.
16912 (grub_machine_init): Moved args parsing to
16913 (grub_parse_cmdline): ...this.
16914 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
16915 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
16916 New definition.
16917 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
16918
16919 Move BOOTP to separate file.
16920
16921 * grub-core/Makefile.core.def (net): Add net/bootp.c.
16922 * grub-core/net/net.c: Move all BOOTP functions to
16923 * grub-core/net/bootp.c: ... here.
16924
16925 Use frame interface on PXE.
16926
16927 * grub-core/Makefile.core.def (pxecmd): Removed.
16928 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
16929 * grub-core/commands/i386/pc/pxecmd.c: Removed.
16930 * grub-core/i386/pc/pxe.c: Moved from here ...
16931 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
16932 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
16933 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
16934
16935 EFI network support.
16936
16937 * grub-core/Makefile.core.def (efinet): New module.
16938 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
16939 here...
16940 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
16941 All users updated.
16942 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
16943 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
16944 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
16945 * grub-core/net/drivers/efi/efinet.c: New file.
16946 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
16947 (grub_efi_net_config): New extern var.
16948
16949 Various cleanups and bugfixes.
16950
16951 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
16952 error.
16953 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
16954 disk declared as partition.
16955 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
16956 leak on failure.
16957 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
16958 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
16959 (grub_debug_zalloc): Likewise.
16960 (grub_debug_realloc): Likewise.
16961 (grub_debug_memalign): Likewise.
16962 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
16963 Check that target is IPv4.
16964 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
16965 local-mac-address as fallback.
16966 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
16967 memory leak.
16968 * grub-core/net/ip.c (ipchksum): Rename to ...
16969 (grub_net_ip_chksum): ... this. All users updated.
16970 (grub_net_recv_ip_packets): Special handling for DHCP.
16971 * util/grub-mkimage.c (generate_image): Zero-out aout header.
16972
16973 Unify prefix handling
16974
16975 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
16976 (grub_machine_get_bootlocation): ... this.
16977 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
16978 (grub_machine_get_bootlocation): ... this.
16979 (grub_prefix): New variable.
16980 (prefix): Removed.
16981 (root_dev): New variable.
16982 (dir): Likewise.
16983 (main): Use new variables.
16984 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
16985 Revamped into ...
16986 (grub_machine_get_bootlocation): ... this.
16987 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
16988 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
16989 (grub_machine_get_bootlocation): ... this.
16990 (grub_machine_set_prefix): Removed.
16991 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
16992 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
16993 Revamped into ...
16994 (grub_machine_get_bootlocation): ... this.
16995 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
16996 (grub_set_prefix_and_root): ... this. All users updated.
16997 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
16998 Revamped into ...
16999 (grub_machine_get_bootlocation): ... this.
17000 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
17001 (grub_machine_get_bootlocation): New proto.
17002 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
17003
17004 Less intrusive and more reliable seek on network implementation.
17005
17006 * grub-core/kern/file.c (grub_file_net_seek): Removed.
17007 (grub_file_seek): Don't call grub_file_net_seek.
17008 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
17009 (grub_net_fs_read_real): .. this.
17010 (grub_net_seek_real): Use net->offset.
17011 (grub_net_fs_read): Seek if necessary.
17012
17013 Unify IEEE1275 netwotk config with the other platforms.
17014
17015 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
17016 New variable.
17017 (grub_machine_get_bootlocation): Support network.
17018 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
17019 Support type and device parsing.
17020 (grub_ieee1275_get_device_type): New function.
17021 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
17022 into ...
17023 (grub_ieee1275_net_config_real): ... this.
17024 (grub_ofnet_probecards): Removed.
17025 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
17026 * include/grub/ieee1275/ofnet.h: Removed.
17027 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
17028 extern var.
17029 (grub_ieee1275_get_device_type): New function.
17030
17031 Unify network device closing across platforms and make more robust.
17032
17033 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
17034 grub_grubnet_fini.
17035 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
17036 already.
17037 * grub-core/net/net.c (grub_net_network_level_interface_register):
17038 Update num_ifaces.
17039 (grub_net_card_unregister): Close all interfaces.
17040 (receive_packets): Don't poll if no iterfaces are registered.
17041 Open if necessary.
17042 (grub_net_fini_hw): New function.
17043 (grub_net_restore_hw): Likewise.
17044 (fini_hnd): New variable.
17045 (GRUB_MOD_INIT): Register preboot hook.
17046 (GRUB_MOD_FINI): Run and unregister preboot hook.
17047
17048 Poll network cards when idle.
17049
17050 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
17051 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
17052 * grub-core/net/net.c (receive_packets): Save last poll time.
17053 (grub_net_poll_cards_idle_real): New function.
17054 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
17055 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
17056 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
17057
17058 Rename ofnet interfaces.
17059
17060 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
17061 (grub_ofnet_findcards): Use ofnet_%s names.
17062
17063 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
17064
17065 Cleanup socket opening.
17066
17067 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
17068 (grub_net_fs_close): Likewise.
17069 (grub_net_fs_read_real): Use eof member.
17070 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
17071 (+grub_net_udp_close): New inline function.
17072
17073 * include/grub/net/tftp.h: Moved to the top of ...
17074 * grub-core/net/tftp.c: ... here.
17075 * include/grub/net/ip.h: Moved mostly to the top of ...
17076 * grub-core/net/ip.c: ... here.
17077 * include/grub/net/ethernet.h: Moved mostly to the top of ...
17078 * grub-core/net/ethernet.c: ... here.
17079
17080 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
17081
17082 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
17083 FS name.
17084
17085 * include/grub/net/ip.h (ipv4_ini): Removed.
17086 (ipv4_fini): Likewise.
17087
17088 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
17089 (grub_net_send_ip_packets): Likewise.
17090
cf1337aa
VS
170912011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17092
17093 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
17094 grub_read_cmos prototype.
17095
93c06ff9
VS
170962011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17097
17098 VGA text support in qemu-mips
17099
17100 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
17101 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
17102 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
17103 text.
17104 * grub-core/kern/i386/qemu/init.c: Renamed to ...
17105 * grub-core/kern/vga_init.c: ... this.
17106 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
17107 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
17108 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
17109 Adjust.
17110 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
17111 GRUB_MACHINE_PCI_IO_BASE.
17112
748ccabe
VS
171132011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17114
17115 MIPS qemu flash support.
17116
17117 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
17118 magic.
17119 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
17120 (grub_machine_init): Probe memory if its size isn't known.
17121 * util/grub-mkimage.c (image_targets): Add flash targets.
17122 (generate_image): Handle flash targets.
17123
d7345994
VS
171242011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17125
17126 MIPS qemu at_keyboard support.
17127
17128 * gentpl.py (videoinkernel): Add qemu-mips.
17129 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
17130 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
17131 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
17132 modules.
17133 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
17134 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
17135 * grub-core/term/serial.c (grub_serial_register)
17136 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
17137
a07a81b3
VS
171382011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
17139
17140 CMOS support on sparc.
17141
17142 * gentpl.py (cmos): Add powerpc and sparc.
17143 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
17144 powerpc and sparc.
17145 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
17146 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
17147 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
17148 grub_set_datetime_cmos.
17149 * grub-core/lib/ieee1275/cmos.c: New file.
17150 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
17151 (find_rtc): Set no_ieee1275_rtc on error.
17152 (grub_get_datetime): Call grub_get_datetime_cmos on error.
17153 (grub_set_datetime): Call grub_set_datetime_cmos on error.
17154 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
17155 fail. Move value to argument. All users updated
17156 (grub_cmos_write): Likewise.
17157 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
17158 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
17159 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
17160 grub_get_datetime_cmos and grub_set_datetime_cmos.
17161
77546584
GS
171622011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
17163
17164 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
17165 sourcing grub-mkconfig_lib.
17166 * util/update-grub_lib.in: Likewise.
17167 * util/grub.d/00_header.in: Likewise.
17168 * util/grub.d/10_hurd.in: Likewise.
17169 * util/grub.d/10_kfreebsd.in: Likewise.
17170 * util/grub.d/10_linux.in: Likewise.
17171 * util/grub.d/10_netbsd.in: Likewise.
17172 * util/grub.d/10_windows.in: Likewise.
17173 * util/grub.d/20_linux_xen.in: Likewise.
17174 * util/grub.d/30_os-prober.in: Likewise.
17175
54894791
CW
171762011-06-28 Colin Watson <cjwatson@ubuntu.com>
17177
17178 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
17179 default_bg_color rather than black.
17180 (grub_gfxterm_fullscreen): Likewise.
17181 (grub_gfxterm_background_color_cmd): Save new background color in
17182 default_bg_color.
17183
8d5d8444
VS
171842011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17185
17186 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
17187
5afeb5bd
VS
171882011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17189
17190 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
17191 mismerge.
17192
ba7df45e
VS
171932011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17194
17195 Chainloading on coreboot support.
17196
17197 * grub-core/Makefile.core.def (chain): Add coreboot.
17198 * grub-core/loader/i386/coreboot/chainloader.c: New file.
17199
d0b526b2
VS
172002011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17201
17202 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
17203 if it happens.
17204
5ff1d945
VS
172052011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17206
17207 Implement time command.
17208
17209 * grub-core/Makefile.core.def (time): New module.
17210 * grub-core/commands/time.c: New file.
17211 * grub-core/script/parser.y: Remove "time" keyword.
17212 * grub-core/script/yylex.l: Likewise.
17213
5ebaad7e
VS
172142011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17215
17216 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
17217
bdea3798
VS
172182011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17219
17220 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
17221 when handling leftovers.
17222
b28c5655
VS
172232011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17224
17225 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
17226 so that help2man doesn't fail.
17227
b6f945dc
VS
172282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17229
17230 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
17231 type in pointers on sparc64.
17232 (get_card_packet): Likewise.
17233
f9b75e8a
CW
172342011-06-27 Colin Watson <cjwatson@ubuntu.com>
17235
17236 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
17237 with `*'.
17238 (grub_cmd_videoinfo): Fetch current video mode.
17239
1e3d9b86
VS
172402011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17241
17242 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
17243 because of underlying system restrictions.
17244
efff4b1c
VS
172452011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17246
17247 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
17248 necessary.
17249
9fc9ce37
VS
172502011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17251
17252 Coreboot video support.
17253
17254 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
17255 (vbe): Likewise.
17256 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
17257 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
17258 here ...
17259 * grub-core/kern/i386/int.S: ... here.
17260 * grub-core/video/i386/pc/vbe.c: Updated includes.
17261 * grub-core/video/i386/pc/vga.c: Likewise.
17262 * include/grub/i386/coreboot/memory.h
17263 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
17264 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
17265 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
17266 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
17267 Disable interrupts.
17268 * include/grub/i386/pc/vga.h: Removed. All users updated.
17269
41bec7fe
VS
172702011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17271
17272 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
17273 definitions for dprintf.
17274 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
17275
ca80309d
VS
172762011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17277
17278 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
17279 prototype.
17280 (get_card_packet): Likewise.
17281
9e322ce8
YB
172822011-06-26 Yves Blusseau <blusseau@zetam.org>
17283
17284 Display the path of the file when file is not found
17285
17286 * grub-core/fs/fat.c: Display the filename when file is not found.
17287 * grub-core/fs/fshelp.c: Likewise.
17288 * grub-core/fs/hfs.c: Likewise.
17289 * grub-core/fs/jfs.c: Likewise.
17290 * grub-core/fs/minix.c: Likewise.
17291 * grub-core/fs/ufs.c: Likewise.
17292 * grub-core/fs/btrfs.c: Likewise.
17293 * grub-core/commands/i386/pc/play.c: Likewise.
17294
cbf597af
SJ
172952011-06-26 Szymon Janc <szymon@janc.net.pl>
17296
17297 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
17298 pointer checks before calling grub_free().
17299 * grub-core/commands/wildcard.c (match_devices): Likewise.
17300 * grub-core/commands/wildcard.c (match_files): Likewise.
17301 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
17302 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
17303 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
17304 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
17305 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
17306 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
17307 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
17308 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
17309 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
17310
6295b32f
P
173112011-06-25 Patrick <p55@mailinator.com>
17312
17313 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
17314
77c0840b
VS
173152011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
17316
17317 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
17318 (grub_pxe_send): Likewise.
17319 (GRUB_MOD_INIT): Fix types.
17320
40ea05de
SJ
173212011-06-24 Szymon Janc <szymon@janc.net.pl>
17322
17323 * grub-core/io/xzio.c: Fix code style issues
17324
90162423
MRA
173252011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
173262011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
17327
17328 Network infrastructure.
17329 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
17330
17331 * include/grub/net/arp.h: New file.
90162423
MRA
17332 * include/grub/net/device.h: Likewise.
17333 * include/grub/net/ethernet.h: Likewise.
17334 * include/grub/net/ip.h: Likewise.
17335 * include/grub/net/netbuff.h: Likewise.
17336 * include/grub/net/tftp.h: Likewise.
17337 * include/grub/net/udp.h: Likewise.
17338 * include/grub/ieee1275/ofnet.h: Likewise.
17339 * include/grub/emu/export.h: Likewise.
17340 * include/grub/net.h: Likewise.
17341 * grub-core/net/arp.c: Likewise.
17342 * grub-core/net/ethernet.c: Likewise.
17343 * grub-core/net/ip.c: Likewise.
17344 * grub-core/net/udp.c: Likewise.
17345 * grub-core/net/tftp.c: Likewise.
17346 * grub-core/net/netbuff.c: Likewise.
17347 * grub-core/net/net.c: Likewise.
17348 * grub-core/net/drivers/emu/emunet.c: Likewise.
17349 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
17350 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
17351 export.h.
17352 * grub-core/Makefile.core.def (net): New module.
17353 (tftp): Likewise.
17354 (ofnet): Likewise.
17355 (emunet): Likewise.
17356 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
17357 network protocols.
17358 * grub-core/kern/device.c (grub_net_open) : New variable.
17359 (grub_device_open): Handle network device.
17360 (grub_device_close): Likewise.
17361 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
17362 (grub_grubnet_fini): Likewise.
17363 (grub_file_seek): Seek in network device.
17364 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
17365 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
17366 network root.
17367 (grub_machine_fini): Call grub_grubnet_fini.
17368 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
17369 network.
17370 (grub_ieee1275_get_aliasdevname): New function.
17371 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17372 Add unofficial Solaris network info.
17373 (grub_multiboot_make_mbi): Likewise.
17374 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
17375 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
17376 * include/grub/device.h (grub_fs): Removed.
17377 * include/grub/err.h (grub_err_t): Add network-related values.
17378 * include/grub/i386/pc/pxe.h: Removed bootp parts.
17379 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
17380 (grub_ieee1275_get_aliasdevname): New proto.
17381 * include/grub/net.h: Rewritten.
423a1849 17382
031f22a0
VS
173832011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17384
17385 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
17386 names.
17387
4388ca72
VS
173882011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17389
17390 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
17391 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
17392 it truncates the output.
17393 Reported by: Ximin Luo.
17394
98e2f506
VS
173952011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17396
17397 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
17398
2a5e94d8
VS
173992011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17400
17401 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
17402 partmap before abstraction.
17403
535c1910
AK
174042011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
17405
17406 * util/grub-mkconfig_lib.in: Add missing quotes.
17407
bc09e1a2
VS
174082011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17409
17410 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
17411 old method if mountinfo would return /dev/root and /dev/root doesn't
17412 exist.
17413
290766fb
VS
174142011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17415
17416 ZFS zlib support
17417
17418 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
17419 (decomp_table): Add zlib entries.
17420 (zio_read): USe 8 bits for compression function rather than 3.
17421 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
17422
174232011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
17424
17425 * grub-core/disk/ahci.c: Add missing license statements.
17426 * grub-core/fs/romfs.c: Likewise.
17427 * grub-core/lib/ia64/setjmp.S: Likewise.
17428 * grub-core/loader/i386/pc/freedos.c: Likewise.
17429 * grub-core/loader/ia64/efi/linux.c: Likewise.
17430 * grub-core/video/colors.c: Likewise.
17431 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
17432
5ab3f48a
VS
174332011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17434
17435 AHCI support.
17436
17437 * grub-core/Makefile.core.def (ata_pthru): Removed.
17438 (ahci): New module.
17439 (pata): Likewise.
17440 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
17441 on unload.
17442 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
17443 readwrite.
17444 (grub_hdparm_do_check_powermode_cmd): Likewise.
17445 (grub_hdparm_do_smart_cmd): Likewise.
17446 (grub_hdparm_set_val_cmd): Likewise.
17447 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
17448 * grub-core/disk/ahci.c: New file.
17449 * grub-core/disk/ata.c: Factor out the low-level part into ...
17450 * grub-core/disk/pata.c: ... here.
17451 * grub-core/disk/ata_pthru.c: Contents moved to ...
17452 * grub-core/disk/pata.c: ... here.
17453 * grub-core/disk/scsi.c (grub_scsi_names): New array.
17454 (grub_scsi_iterate): Use grub_scsi_names.
17455 (grub_scsi_open): Likewise.
17456 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
17457 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
17458 (grub_ata_regs_t): New struct.
17459 (grub_disk_ata_pass_through_parms): Likewise.
17460 (grub_ata_device): Renamed to ...
17461 (grub_ata): ... this.
17462 (grub_ata_dev): New struct.
17463 Removed all low-level inline functions.
17464 * include/grub/scsi.h: Add PATA and AHCI subsystems.
17465 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
17466 iterate hooks and open. All users updated.
17467 * util/grub-install.in: Handle AHCI disk module.
17468
c31dc5f5
SJ
174692011-06-23 Szymon Janc <szymon@janc.net.pl>
17470
17471 Add support for DRI and RSTn markers in JPEG files.
17472
17473 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
17474 (JPEG_MARKER_RST0): Likewise.
17475 (JPEG_MARKER_RST1): Likewise.
17476 (JPEG_MARKER_RST2): Likewise.
17477 (JPEG_MARKER_RST3): Likewise.
17478 (JPEG_MARKER_RST4): Likewise.
17479 (JPEG_MARKER_RST5): Likewise.
17480 (JPEG_MARKER_RST6): Likewise.
17481 (JPEG_MARKER_RST7): Likewise.
17482 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
17483 (grub_jpeg_decode_dri): New function.
17484 (grub_jpeg_decode_sos): Move image data related part into
17485 grub_jpeg_decode_data function.
17486 (grub_jpeg_decode_data): New function.
17487 (grub_jpeg_reset): New function.
17488 (grub_jpeg_decode_jpeg): Handle new markers.
17489
fe12fd5b
VS
174902011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17491
17492 * util/ieee1275/ofpath.c (check_sas): Close fd.
17493 (main): Free of_path.
17494 Reported by: David Volgyes <dvolgyes>.
17495
03147f46
VS
174962011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17497
17498 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
17499 Reported by: David Volgyes <dvolgyes>.
17500
cad3237f
VS
175012011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17502
17503 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
17504 file after stat.
17505 Reported by: David Volgyes <dvolgyes>.
17506
13548d26
VS
175072011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17508
17509 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
17510
17511 Reported by: David Volgyes <dvolgyes>.
17512
e061a1b5
VS
175132011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17514
17515 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
17516 Prevent memory leak.
17517
1abe47dc
VS
175182011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17519
17520 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
17521 (main): Close file.
e061a1b5 17522 Reported by: David Volgyes <dvolgyes>.
1abe47dc 17523
fbc62666
VS
175242011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17525
17526 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
17527 to continue if allocation is failed.
17528
17529 Reported by: David Volgyes <dvolgyes>.
17530
e98c83e9
DV
175312011-06-23 David Volgyes <dvolgyes>
17532
17533 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
17534 dereference.
17535
a199a8cd
VS
175362011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17537
17538 Fix spurious warning.
17539
17540 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
17541 (acorn_partition_map_find): Use .bin member.
17542
e2d1dba0
VS
175432011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17544
17545 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
17546 /dev/root as a valid device.
17547
8a5d6919
JM
175482011-06-23 Jim Meyering <meyering@redhat.com>
17549
e2d1dba0
VS
17550 Avoid NULL deref in grub_device_open.
17551
8a5d6919
JM
17552 * grub-core/kern/device.c (grub_device_open): Don't dereference
17553 a NULL pointer upon failed grub_env_get.
17554
f7db6f4a
VS
175552011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
17556
17557 Support non-512B sectors and agglomerate reads.
17558
17559 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
17560 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
17561 (disk_io_guid): Removed.
17562 (make_devices): Locate solely by BlockIO.
17563 (grub_efidisk_open): Fill log_sector_size and total_sectors.
17564 (grub_efidisk_read): Use read_blocks.
17565 (grub_efidisk_write): Use write_blocks.
17566 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
17567 log_sector_size.
17568 (get_safe_sectors): Handle non-512B sectors.
17569 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
17570 sectors.
17571 (grub_biosdisk_write): Handle non-512B sectors.
17572 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
17573 (grub_scsi_read): Remove special non-512B block handling (now handled
17574 one level up).
17575 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
17576 and do sanity checks.
17577 (grub_disk_adjust_range): Handle non-512B sectors.
17578 (transform_sector): New function.
17579 (grub_disk_read_small): Likewise.
17580 (grub_disk_read): Rewritten.
17581 (grub_disk_write): Handle non-512B sectors.
17582 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
17583 log_sector_size.
17584 (open_device): Use log_sector_size.
17585 (grub_util_biosdisk_read): Likewise.
17586 (grub_util_biosdisk_write): Likewise.
17587 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
17588 non-512B sectors.
17589 (pc_partition_map_embed): Likewise.
17590 * include/grub/disk.h (grub_disk): New field log_sector_size.
17591 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
17592 (GRUB_DISK_CACHE_BITS): Increased to 6.
17593 * util/grub-fstest.c (fstest): New command testload.
17594 (argp_parser): Likewise.
17595
881ac815
RM
175962011-06-16 Robert Millan <rmh@gnu.org>
17597
17598 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
17599 `ata' driver on kernel of FreeBSD 9.
17600
17601 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
17602 (get_ataraid_disk_name): New functions.
17603 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
17604 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
17605 get_ataraid_disk_name() and get_ada_disk_name().
17606
1e9aef7d
CW
176072011-06-13 Colin Watson <cjwatson@ubuntu.com>
17608
17609 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
17610 input format.
17611
351c7c8a
CW
176122011-05-29 Colin Watson <cjwatson@ubuntu.com>
17613
17614 * docs/grub.texi (Obtaining and Building GRUB): Substitute
17615 `ftp.gnu.org' for `alpha.gnu.org'.
17616
6b4e6430
CW
176172011-05-27 Colin Watson <cjwatson@ubuntu.com>
17618
17619 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
17620 partitions under /dev/disk/by-id/.
17621
c64db050
CW
176222011-05-27 Colin Watson <cjwatson@ubuntu.com>
17623
17624 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
17625 after ten consecutive open failures. Scanning all the way up to
17626 10000 is excessive and can cause serious performance problems in
17627 some configurations.
17628 Fixes Ubuntu bug #787461.
17629
245f4aba
VS
176302011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
17631
17632 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
17633 opening new one.
17634
f767c929
VS
176352011-05-21 Colin Watson <cjwatson@ubuntu.com>
176362011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
17637
17638 Don't stat devices unless we have to.
17639
17640 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
17641 dir == /dev/mapper.
17642 (grub_guess_root_device): Use already known os_dev if possible.
17643 * grub-core/kern/emu/hostdisk.c
17644 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
17645 if device is known to be a dm one.
17646
f35fa3a6
CW
176472011-05-20 Colin Watson <cjwatson@ubuntu.com>
17648
17649 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
17650 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
17651 Reported by: Pawel Tecza.
17652
9a79fcf2
VS
176532011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
17654
17655 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
17656 (lsefisystab): Likewise.
17657 (lssal): Likewise.
17658 (lsefimmap): Likewise.
17659 (hdparm): Enable on qemu-mips.
17660 (setjmp): Add ia64 nodist.
17661 (serial): Simplify tags.
17662
63e3eea9
CW
176632011-05-18 Colin Watson <cjwatson@ubuntu.com>
17664
17665 * Makefile.util.def (grub-ofpathname): Install manual page.
17666
09728256
CW
176672011-05-18 Colin Watson <cjwatson@ubuntu.com>
17668
17669 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
17670
8b63a142
CW
176712011-05-18 Colin Watson <cjwatson@ubuntu.com>
17672
17673 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
17674
e775d8ed
VS
176752011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17676
17677 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
17678 into dprintf.
17679
bf947d36
VS
176802011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17681
17682 Use full 64-bit division.
17683
17684 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
17685 (grub_divmod64): ... this.
17686 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
17687 version.
17688
b84f26c5
CW
176892011-05-18 Colin Watson <cjwatson@ubuntu.com>
17690
17691 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
17692 `source'.
17693
5626056f
CW
176942011-05-18 Colin Watson <cjwatson@ubuntu.com>
17695
17696 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
17697 to avoid accidents when debugging with 'sh -x'.
17698 * grub-core/gensyminfo.sh.in: Likewise.
17699 * tests/example_scripted_test.in: Likewise.
17700 * tests/grub_cmd_regexp.in: Likewise.
17701 * tests/grub_script_blanklines.in: Likewise.
17702 * tests/grub_script_dollar.in: Likewise.
17703 * tests/grub_script_expansion.in: Likewise.
17704 * tests/grub_script_final_semicolon.in: Likewise.
17705 * tests/partmap_test.in: Likewise.
17706 * tests/util/grub-shell-tester.in: Likewise.
17707 * tests/util/grub-shell.in: Likewise.
17708
e2965f4a
CW
177092011-05-18 Colin Watson <cjwatson@ubuntu.com>
17710
17711 Move gfxmenu color handling to video, so that gfxterm can use it
17712 too.
17713
17714 * grub-core/gfxmenu/named_colors.c: Move to ...
17715 * grub-core/video/colors.c: ... here. Rename
17716 grub_gui_get_named_color to grub_video_get_named_color.
17717 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
17718 * grub-core/video/colors.c (my_isxdigit): ... here.
17719 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
17720 Move to ...
17721 * grub-core/video/colors.c (parse_hex_color_component): ... here.
17722 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
17723 to ...
17724 * grub-core/video/colors.c (grub_video_parse_color): ... here.
17725
17726 * include/grub/gui.h (grub_gui_color_t): Move to ...
17727 * include/grub/video.h (grub_video_rgba_color_t): ... here.
17728 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
17729 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
17730 * include/grub/gui.h (grub_gui_map_color): Move to ...
17731 * include/grub/video.h (grub_video_map_rgba_color): ... here.
17732 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
17733 to ...
17734 * include/grub/video.h (grub_video_get_named_color): ... here.
17735 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
17736 * include/grub/video.h (grub_video_parse_color): ... here.
17737
17738 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
17739 video/colors.c.
17740 (gfxmenu): Remove gfxmenu/named_colors.c.
17741 (video) [videomodules]: Add video/colors.c.
17742
17743 Add a background_color command.
17744
17745 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
17746 function.
17747 (GRUB_MOD_INIT): Register background_color command.
17748 (GRUB_MOD_FINI): Unregister background_color command.
17749 (redraw_screen_rect): Allow blend/replace of text layer to be
17750 controlled independently from whether there is a background bitmap.
17751 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
17752 changing bitmap.
17753
1e4b4390
VS
177542011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17755
26618ff0
VS
17756 Patch BPB in ntldr and chainloader --bpb.
17757
1e4b4390
VS
17758 * grub-core/fs/fat.c: Include grub/fat.h.
17759 (grub_fat_bpb): Moved to ...
17760 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
17761 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
17762 grub/ntfs.h.
17763 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
17764 Moved from here...
17765 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
17766 here.
17767 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
17768 New function.
17769 (grub_chainloader_cmd): Patch BPB if --bpb is given.
17770 (GRUB_MOD_INIT): Show --bpb.
17771 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
17772 * grub-core/normal/main.c (features): New variable.
17773 (GRUB_MOD_INIT): Set feature_* variables.
17774 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
17775 proto.
17776 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
17777
cf02731e
VS
177782011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17779
17780 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
17781 for cleanness.
17782
e3a1073f
VS
177832011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17784
17785 FreeDOS direct loading support.
17786
17787 * docs/grub.texi (Supported OS): Add FreeDOS.
17788 * grub-core/Makefile.core.def (freedos): New module.
17789 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
17790 variable.
17791 (grub_relocator16_boot): Handle %ebx.
17792 * grub-core/lib/i386/relocator16.S: Likewise.
17793 * grub-core/loader/i386/pc/freedos.c: New file.
17794
05caa461
VS
177952011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17796
17797 Long Linux command line support.
17798
17799 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
17800 (maximal_cmdline_size): New variable.
17801 (allocate_pages): Use maximal_cmdline_size.
17802 (grub_cmd_linux): Set and use maximal_cmdline_size.
17803 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
17804 (allocate_pages): Use maximal_cmdline_size.
17805 (grub_cmd_linux): Set and use maximal_cmdline_size.
17806 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
17807 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
17808 and cmdline_size.
17809
a2491e23
VS
178102011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
178112011-05-18 Colin Watson <cjwatson@ubuntu.com>
17812
17813 Improve devmapper support
17814
17815 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
17816 (grub_util_is_lvm): New function.
17817 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
17818 than lvm if not dmraid.
17819 Handle mapped md nodes.
17820 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
17821 (grub_util_device_is_mapped): ... this. Make always available. All users
17822 updated.
17823 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
17824 (convert_system_partition_to_system_disk): Handle lvm, mpath and
17825 dmraid nodes.
17826 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
17827
6ad6223e
VS
178282011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17829
17830 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
17831
17832 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
17833 * grub-core/modinfo.sh.in: New file.
17834 * grub-core/Makefile.core.def (modinfo.sh): New script.
17835 * util/grub-mknetdir.in: Use modinfo.sh.
17836 * util/grub-mkrescue.in: Likewise.
17837
543a8f6e
VS
178382011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17839
17840 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
17841 Fix potential usage of Elf32 instead of Elf64 when compiling on
17842 32-bit architecture. Add endianness macros while on it.
17843
4959e111
VS
178442011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17845
17846 Use mipsel- rather than mips- in directories involving mipsel ports to
17847 allow both endiannesses coexist.
17848
17849 * configure.ac: proparate target_cpu=mipsel rather than resetting to
17850 mips. All conditions adjusted.
17851 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
17852 variable.
17853 * util/grub-install.in: Adjust conditions to take renaming into account.
17854 * util/grub-mkimage.c (image_targets): Likewise. New target
17855 mips-qemu_mips-elf for bigendian mips.
17856
35341bbc
VS
178572011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17858
17859 Avoid unnecessary copying on MIPS.
17860
17861 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
17862 early if src == dest.
17863 * util/grub-mkimage.c (generate_image): Arange for src == dest if
17864 compression is none.
17865
b772baed
VS
178662011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17867
17868 Reduce memory footprint on SGI by putting modules before the kernel
17869 as opposed to after.
17870
17871 * grub-core/Makefile.core.def (kernel): Increase linking address.
17872 (none_decompress): Likewise.
17873 (xz_decompress): Likewise.
17874 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
17875 address.
17876 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
17877 layout change.
17878 (grub_arch_modules_addr): New function.
17879 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
17880 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
17881 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
17882 here.
17883 * grub-core/kern/mips/startup.S (total_size): Rename to ...
17884 (grub_total_modules_size): ... this. Make global.
17885 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
17886 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
17887 New definition.
17888 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
17889 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
17890 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
17891 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
17892 * util/grub-mkimage.c (image_target_desc): New flag
17893 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
17894 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
17895 (generate_image): Handle images with modules before kernel.
17896
566a1917
VS
178972011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17898
17899 Prevent potential loss of memory map by overwrite on qemu-mips.
17900
17901 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
17902 Save ram size in $s4.
17903 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
17904 All users changed to grub_arch_memsize.
17905 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
17906 Loongson.
17907 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
17908 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
17909 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
17910 external variable.
17911
5d420cd9
CW
179122011-05-17 Colin Watson <cjwatson@ubuntu.com>
17913
17914 * .bzrignore: Remove grub-dumpbios.
17915
d064b830
CW
179162011-05-17 Colin Watson <cjwatson@ubuntu.com>
17917
17918 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
17919 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
17920 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
17921 existing options which append).
17922 * docs/grub.texi (Simple configuration): Document new options.
17923 Reported by: Ian Jackson. Fixes Debian bug #617538.
17924
3ca2b466
CW
179252011-05-17 Colin Watson <cjwatson@ubuntu.com>
17926
17927 * util/grub-fstest.c (cmd_cat): New function.
17928 (fstest): Handle CMD_CAT.
17929 (options): Add cat.
17930 (argp_parser): Handle cat.
17931
24c9143a
CW
179322011-05-17 Colin Watson <cjwatson@ubuntu.com>
17933
17934 * Makefile.util.def (grub-bin2h): Don't install.
17935 * docs/man/grub-bin2h.h2m: Remove.
17936
90f7ac19
VS
179372011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17938
17939 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
17940 place.
17941
8d4a5178
VS
179422011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17943
17944 Reenable qemu-mips port.
17945
17946 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
17947 Fix small arc bug while on it.
17948 * gentpl.py: Handle qemu_mips.
17949 * grub-core/Makefile.am: Likewise.
17950 * grub-core/Makefile.core.def: Likewise.
17951 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
17952 inappropriate includes.
17953 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
17954 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
17955 * grub-core/kern/main.c (grub_modules_get_end)
17956 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
17957 * grub-core/kern/mips/qemu-mips: Moved to ..
17958 * grub-core/kern/mips/qemu_mips: ... this.
17959 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
17960 (grub_machine_init): Call terminfo_init and serial_init.
17961 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
17962 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
17963 New variable.
17964 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
17965 parameter passing.
17966 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
17967 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
17968 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
17969 * include/grub/mips/qemu_mips/cmos.h: New file.
17970 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
17971 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
17972 Removed.
17973 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
17974 Use correct mips-style address.
17975 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
17976 (GRUB_TICKS_PER_SECOND): Removed.
17977 (grub_get_rtc): Likewise.
17978 (grub_cpu_idle): Likewise.
17979 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
17980 New definition.
17981 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
17982 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
17983 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
17984 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
17985 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17986 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17987 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
17988 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
17989
400b9371
VS
179902011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17991
17992 SGI ARCS port.
17993
17994 * Makefile.util.def (libgrubmods.a): Add dvh.c.
17995 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
17996 platforms.
17997 * configure.ac: New target mips-arc.
17998 * gentpl.py: Likewise.
17999 * grub-core/Makefile.am: Likewise.
18000 * grub-core/Makefile.core.def: Likewise.
18001 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
18002 (none_decompress): Likewise.
18003 (lsdev): New module.
18004 (datetime): Use lib/arc/datetime.c on ARC.
18005 (part_dvh): New module.
18006 * grub-core/commands/arc/lsdev.c: New file.
18007 * grub-core/disk/arc/arcdisk.c: Likewise.
18008 * grub-core/kern/mips/arc/init.c: Likewise.
18009 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
18010 aligned addresses.
18011 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
18012 support.
18013 (grub_arch_dl_relocate_symbols): Likewise.
18014 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
18015 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
18016 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
18017 platforms.
18018 * grub-core/lib/arc/datetime.c: New file.
18019 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
18020 pci.h on non-loongson.
18021 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
18022 (grub_linux_boot): Set unused registers to 0.
18023 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
18024 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
18025 * grub-core/mmap/mips/uppermem.c: ...here.
18026 * grub-core/partmap/dvh.c: New file.
18027 * grub-core/term/arc/console.c: Likewise.
18028 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
18029 (grub_terminfo_set_current): Add terminal "arc".
18030 (grub_terminfo_readkey): Support ARC sequences.
18031 * include/grub/arc/arc.h: New file.
18032 * include/grub/arc/console.h: Likewise.
18033 * include/grub/disk.h (grub_disk_dev_id): Add
18034 GRUB_DISK_DEVICE_ARCDISK_ID.
18035 * include/grub/mips/arc/kernel.h: New file.
18036 * include/grub/mips/arc/memory.h: Likewise.
18037 * include/grub/mips/arc/time.h: Likewise.
18038 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
18039 * include/grub/mips/kernel.h (grub_halt): ... here.
18040 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
18041 here...
18042 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
18043 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
18044 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
18045 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
18046 proto.
18047 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
18048 from here ...
18049 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
18050 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
18051 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
18052 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
18053 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
18054 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
18055 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
18056 (grub_phys_addr_t): Moved from here ...
18057 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
18058 (grub_vtop): Moved from here ...
18059 * include/grub/mips/memory.h (grub_vtop): ... here.
18060 (grub_map_memory): Moved from here ...
18061 * include/grub/mips/memory.h (grub_map_memory): ... here.
18062 (grub_unmap_memory): Moved from here ...
18063 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
18064 (grub_machine_mmap_iterate): Moved from here ...
18065 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
18066 (grub_mmap_get_lower): Moved from here ...
18067 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
18068 (grub_mmap_get_upper): Moved from here ...
18069 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
18070 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18071 here ...
18072 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18073 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
18074 here ...
18075 * include/grub/mips/time.h (grub_get_rtc): ... here.
18076 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
18077 here ...
18078 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
18079 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
18080 here ...
18081 * include/grub/mips/time.h (grub_cpu_idle): ... here.
18082 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
18083 definition.
18084 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
18085 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
18086 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
18087 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
18088 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
18089 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
18090 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
18091 (GRUB_MACHINE_LINK_ADDR): Likewise.
18092 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
18093 to 6.
18094 * util/grub-install.in: Run dvhtool on ARC.
18095 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 18096 (generate_image): Handle ECOFF output for mips-arc.
400b9371 18097
c8ecc840
VS
180982011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18099
18100 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
18101 blocks.
18102
153a4b55
VS
181032011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18104
18105 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
18106 after enabling port.
18107
ff44d107
VS
181082011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18109
18110 Skip incorrect USB devices.
18111
18112 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
18113 configcnt == 0.
18114 * include/grub/usb.h (grub_usb_err_t): New enum value
18115 GRUB_USB_ERR_BADDEVICE.
18116
638dbe4f
VS
181172011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
18118
18119 Fuloong video init support.
18120
18121 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
18122 well.
18123 (grub_vga_read_arx): New function.
18124 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
18125 definition.
18126 (framebuffer): New members io, mmioptr and mmiobase.
18127 (read_sis_cmd): New function.
18128 (write_sis_cmd): Likewise.
18129 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
18130 rather than 640x400.
18131 * grub-core/video/sis315_init.c: New file.
18132
c3fc520c
VS
181332011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18134
18135 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
18136 non-loongson.
18137 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
18138 to grub_dl_register_symbol.
18139
67b1e5c9
VS
181402011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18141
18142 Fix compilation errors.
18143
18144 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
18145 potentially unused.
18146 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
18147 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
18148 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
18149 to loongson machines.
18150
b756f75f
VS
181512011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18152
18153 Several FS mtime support.
18154
18155 * grub-core/fs/affs.c (grub_affs_time): New struct.
18156 (grub_affs_file): New field mtime.
18157 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
18158 type. Removed 'size'. New field 'di'. All users updated.
18159 (grub_affs_mount): Simplify checsum checking.
18160 (grub_affs_iterate_dir): New helper grub_affs_create_node.
18161 (grub_affs_dir): Handle mtime.
18162 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
18163 (grub_cpio_dir): Likewise.
18164 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
18165 (grub_hfs_filerec): New field mtime.
18166 (grub_hfs_dir): Handle mtime.
18167 (grub_hfs_mtime): New function.
18168 (grub_hfs_fs): Register grub_hfs_mtime.
18169 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
18170 (grub_iso9660_dir): New field mtime.
18171 (grub_fshelp_node): New field dirent.
18172 (iso9660_to_unixtime): New function.
18173 (iso9660_to_unixtime2): Likewise.
18174 (grub_iso9660_read_symlink): Use node->dirent.
18175 (grub_iso9660_iterate_dir): Likewise.
18176 (grub_iso9660_dir): Set mtime.
18177 (grub_iso9660_mtime): New function.
18178 (grub_iso9660_fs): Register grub_iso9660_mtime.
18179 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
18180 (grub_jfs_inode): New fields atime, ctime and mtime.
18181 (grub_jfs_dir): Set mtime.
18182 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
18183 * grub-core/fs/ntfs.c (list_file): Set mtime.
18184 (grub_ntfs_dir): Likewise.
18185 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
18186 (grub_reiserfs_iterate_dir): Set mtime.
18187 (grub_reiserfs_dir): Likewise.
18188 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
18189 (grub_fshelp_node): Likewise.
18190 (grub_sfs_iterate_dir): Set mtime.
18191 (grub_sfs_dir): Likewise.
18192 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
18193 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
18194 (grub_xfs_inode): New fields atime, mtime, ctime.
18195 (grub_xfs_dir): Set mtime.
18196 * include/grub/datetime.h (grub_datetime2unixtime): New function.
18197 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
18198 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
18199
18200 Support UDF symlinks.
18201
18202 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
18203 (grub_ufs_read_symlink): New function. All users updated.
18204
18205 Check amiga partmap checksum.
18206
18207 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
18208 (grub_amiga_partition): Likewise.
18209 (amiga_partition_map_checksum): New function.
18210 (amiga_partition_map_iterate): Check checksum.
18211
5470225d
VS
182122011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18213
18214 ROMFS support.
18215
18216 * Makefile.util.def (libgrubmods.a): Add romfs.
18217 * grub-core/Makefile.core.def (romfs): New module.
18218 * grub-core/fs/romfs.c: New file.
18219
d4680a35
VS
182202011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18221
18222 Squashfs v4 support.
18223
18224 * Makefile.util.def (libgrubmods.a): Add squash4.
18225 * grub-core/Makefile.core.def (squash4): New module.
18226 * grub-core/fs/squash4.c: New file.
18227 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
18228 disk_input_start, disk_input.
18229 (get_byte): Handle disk_input.
18230 (grub_zlib_disk_read): New function.
18231 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
18232
bcb18e74
FZ
182332011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
182342011-05-15 Feiran Zheng <famcool@gmail.com>
18235
18236 * Makefile.util.def (libgrubmods.a): Add minix3.
18237 * grub-core/Makefile.core.def (minix3): New module.
18238 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
18239 (GRUB_MINIX_BSIZE): Removed.
18240 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
18241 (grub_minix_ino_t): New type.
18242 (grub_minix_le_to_cpu_ino): New macro.
18243 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
18244 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
18245 (grub_minix_data): New field block_size.
18246 (grub_minix_read_file): Handle 64-bit correctly.
18247 * grub-core/fs/minix3.c: New file.
18248
32297d5f
TG
182492011-05-15 Tristan Gingold <gingold@free.fr>
182502011-05-15 Robert Millan <rmh.grub@aybabtu.com>
182512011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18252
18253 IA64 support.
18254
18255 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
18256 * configure.ac: Add ia64-efi target.
18257 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
18258 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
18259 * gentpl.py: Add ia64_efi platform.
18260 Rename x86_efi to efi and Add ia64-efi. All users updated.
18261 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
18262 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
18263 Remove kern/generic/rtc_get_time_ms.c on EFI.
18264 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
18265 kern/ia64/dl_helper.c on ia64-efi.
18266 Add kern/emu/cache.c on emu.
18267 (linux): Use on loader/ia64/efi/linux.c on ia64.
18268 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
18269 whether symbol is a function.
18270 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
18271 (grub_symbol): New field 'isfunc'.
18272 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
18273 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
18274 (grub_dl_load_segments): Place all sections into the same region.
18275 [__ia64__]: Create trampolines and got.
18276 [GRUB_MACHINE_EMU]: Call mprotect.
18277 (grub_dl_resolve_symbols): Resolve symbol type as well.
18278 [__ia64__]: Create function descriptors.
18279 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
18280 (grub_rtc_get_time_ms): ... this. Expressions simplified.
18281 (grub_get_rtc): New function.
18282 * grub-core/kern/emu/cache.c [__ia64__]: New file.
18283 * grub-core/kern/emu/cache.S: Renamed to ...
18284 * grub-core/kern/emu/cache_s.S: ... this.
18285 [__ia64__]: Add a nop.
18286 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
18287 [__ia64__]: New function.
18288 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
18289 * grub-core/kern/ia64/dl.c: New file.
18290 * grub-core/kern/ia64/dl_helper.c: Likewise.
18291 * grub-core/kern/ia64/efi/init.c: New file.
18292 * grub-core/kern/ia64/efi/startup.S: Likewise.
18293 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
18294 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
18295 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
18296 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
18297 * grub-core/loader/ia64/efi/linux.c: New file.
18298 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
18299 (GRUB_MOD_DEP): Likewise.
18300 (grub_dl) [__ia64__]: New fields got and tramp.
18301 (grub_dl): New field 'base'.
18302 (grub_dl_register_symbol): New argument isfunc. All users updated.
18303 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
18304 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
18305 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
18306 (grub_ia64_dl_get_tramp_got_size): New proto.
18307 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
18308 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
18309 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
18310 * include/grub/efi/api.h: Skip call wrappers on ia64.
18311 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
18312 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
18313 * include/grub/elf.h (ELF_ST_INFO): New definition.
18314 * include/grub/ia64/efi/kernel.h: New file.
18315 * include/grub/ia64/efi/memory.h: Likewise.
18316 * include/grub/ia64/efi/time.h: Likewise.
18317 * include/grub/ia64/kernel.h: Likewise.
18318 * include/grub/ia64/setjmp.h: Likewise (from glibc).
18319 * include/grub/ia64/time.h: New file.
18320 * include/grub/ia64/types.h: Likewise.
18321 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
18322 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
18323 New protos.
18324 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
18325 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
18326 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
18327 * util/grub-mkimage.c (image_target_desc): New field pe_target.
18328 All users updated.
18329 (EFI64_HEADER_SIZE): New definition. All users updated.
18330 (image_targets): Add ia64-efi.
18331 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
18332 jumpers_addr. All users updated.
18333 Create function descriptors.
18334 (count_funcs): New function.
18335 (unaligned_uint32): New struct.
18336 (MASK20): New definition.
18337 (MASK19): Likewise.
18338 (MASKF21): Likewise.
18339 (add_value_to_slot_20b): New function.
18340 (add_value_to_slot_21_real): Likewise.
18341 (add_value_to_slot_21): Likewise.
18342 (ia64_kernel_trampoline): New struct.
18343 (nopm): New variable.
18344 (jump): Likewise.
18345 (make_trampoline): New function.
18346 (relocate_addresses): Handle ia64.
18347 (make_reloc_section): Likewise.
18348 (load_image): Likewise.
18349
983b414d
VS
183502011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18351
18352 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
18353 warning. Move variables before code while on it.
18354
5d063cdc
VS
183552011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
18356
18357 Fuloong support.
18358
18359 * configure.ac: Rename yeeloong platform to loongson. All users updated.
18360 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
18361 * grub-core/boot/mips/loongson/fuloong.S: New file.
18362 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
18363 Explicitly init CS5536.
18364 [FULOONG]: Don't use serial until CS5536 is available.
18365 Set GPIO based on dumps.
18366 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
18367 [FULOONG]: Handle GPIO and memory controller differences.
18368 Parse machine type in $a2.
18369 * grub-core/boot/mips/startup_raw.S: Determine and save the
18370 architecture.
18371 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
18372 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
18373 init on architecture type.
18374 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18375 SIS315E. Don't init at_keyboard on fuloong.
18376 (grub_halt): Support Fuloong.
18377 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
18378 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
18379 (loongson_machtypes): New array.
18380 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
18381 type.
18382 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
18383 config. All users updated. Handle CS5536 serial.
18384 * grub-core/term/serial.c (grub_serial_register): Conditionalise
18385 default port on machine type. Register serial as inactive.
18386 * grub-core/video/sis315pro.c: New file.
18387 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
18388 definition.
18389 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
18390 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
18391 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
18392 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
18393 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
18394 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
18395 to ...
18396 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
18397 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
18398 definition.
18399 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
18400 (grub_arch_machine): New extern var.
18401 * include/grub/mips/loongson/serial.h
18402 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
18403 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
18404 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
18405 (GRUB_MACHINE_SERIAL_PORT0): ... this.
18406 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
18407 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
18408 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
18409 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
18410 * include/grub/term.h (grub_term_register_input_inactive): New inline
18411 function.
18412 (grub_term_register_output_inactive): Likewise.
18413 * include/grub/video.h (grub_video_driver_id): New value
18414 GRUB_VIDEO_DRIVER_SIS315PRO.
18415 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
18416 New field "names". All users updated.
18417 New field value IMAGE_FULOONG_FLASH.
18418 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
18419
6ada82d1
JU
184202011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
18421
18422 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
18423 and add some clarification.
18424
90c571a4
VS
184252011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18426
18427 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
18428 platforms if kernel is compressed.
18429
de04eecf
VS
184302011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18431
18432 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
18433 unused modules since currently referrence counter isn't reliable and
18434 there isn't much memory to recover there anyway.
18435
57688121
VS
184362011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18437
18438 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
18439 rather than resetting it to allow modules to reference themselves
18440 in init.
18441
3d2c7e35
VS
184422011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18443
18444 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
18445 counter on dependencies since grub_dl_unref already handles this.
18446
b25db218
VS
184472011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18448
18449 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
18450 on error if not already done.
18451
25a45338
VS
184522011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18453
18454 Fix few potential memory misusage.
18455
18456 * grub-core/font/font.c (load_font_index): Don't free char_index to
18457 avoid double free.
b25db218
VS
18458 (grub_font_load): Zero-fill font at alloc for safety.
18459 Close file on error.
18460 (free_font): Free bmp_idx.
25a45338 18461
0cac83df
VS
184622011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18463
18464 * docs/grub.texi (Installation): Fix several outdated claims.
18465
2217a143
VS
184662011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18467
18468 Handle module_license on windows.
18469
18470 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
18471 sections shifted.
18472 (insert_string): Make argument const char * instead of char *.
18473 (write_section_data): Handle long section names.
18474 Handle module_license.
18475
d4de6b01
VS
184762011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18477
18478 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
18479 handle class-free menuentries.
18480 (grub_normal_add_menu_entry): Add a check to be sure.
18481
4c2a3b43
VS
184822011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
18483
18484 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
18485 PgUp and PgDown.
18486
85c6210f
VS
184872011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18488
18489 * configure.ac: Bump version to 1.99.
18490
36084912
VS
184912011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18492
18493 Give ATA device a bit more time on first try in order to allow disks
18494 to spin up.
18495
18496 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
18497 if dev->present is 1. Reset dev->present on failure.
18498 (grub_ata_device_initialize): Set dev->present to 1.
18499 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
18500 (grub_ata_device): New member 'present'.
18501
bda0e219
VS
185022011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18503
18504 * util/grub-mkimage.c (generate_image): Update hash.
18505
19e1c41b
VS
185062011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18507
18508 Flush caches on DMA memory.
18509
18510 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
18511 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
18512 (grub_dma_free): Likewise.
18513 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
18514
91bbcc0c
VS
185152011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18516
18517 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
18518 to avoid asm treating ld and sd as macros.
18519
60ddfad3
VS
185202011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18521
18522 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
18523 decompressor.
18524
a298aa04
VS
185252011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18526
18527 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
18528 grub_decompress_core since later would fail if grub_decompress_core
18529 is too far.
18530
9b44feca
VS
185312011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
18532
18533 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
18534 R_MIPS_JALR since it's used by newer compiler.
18535
56dbe7b4
VS
185362011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
18537
18538 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
18539
52856af2
VS
185402011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18541
18542 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
18543 file_path to 0 for surety.
18544 (grub_chainloader_boot): Set exit_data to NULL.
18545 Unset the loader once done.
18546 (grub_cmd_chainloader): Fix confusing error message if file is empty.
18547
9c9bfc6d
VS
185482011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18549
18550 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
18551 unknown key into a dprintf.
18552
dd94a3df
VS
185532011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18554
18555 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
18556 on first non-existant partition.
18557
fa68d99c
VS
185582011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18559
18560 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
18561 openning fails.
18562 Reported by: Mark Korenberg.
18563
157effb7
VS
185642011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18565
18566 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
18567 overflow.
18568
ea75312f
VS
185692011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18570
18571 * util/grub-mkimage.c (main): Explicitely flush and sync the output
18572 before closing to ensure that it will be readable by grub-setup.
18573
072b5d31
VS
185742011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18575
18576 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
18577 (devpath_1): Use MAKE_PIWG_PATH.
18578 (devpath_2): Likewise.
18579 (devpath_3): Likewise.
18580 (devpath_4): Likewise.
18581 (devpath_5): Likewise.
18582 (devpath_6): Likewise.
18583
18584 The appleldr.mod was checked that to be binary identical to previous
18585 version.
18586
7fae0051
Z
185872011-05-05 Zach <mikezackles>
18588
18589 Support 2010 Macbooks.
18590
18591 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
18592 (devs): Add devpath_6.
18593
7c515bee
VS
185942011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18595
18596 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
18597 /dev/random. /dev/urandom is good enough for our purposes (salting).
18598
ed660bd8
VS
185992011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18600
18601 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
18602
ee5614b7
VS
186032011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18604
18605 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
18606 hexadecimal.
18607
664889a6
VS
186082011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
18609
18610 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
18611 and not 0 on failure.
18612
bd405bbc
CW
186132011-05-03 Colin Watson <cjwatson@ubuntu.com>
18614
18615 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
18616 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
18617 disk; otherwise grub_fs_probe will not fall back to the next
18618 filesystem.
18619 (grub_pxefs_open): Likewise, for consistency.
18620 Reported and tested by: Ezekiel Grave.
18621
4ebff753
CW
186222011-05-03 Colin Watson <cjwatson@ubuntu.com>
18623
18624 * tests/partmap_test.in: Don't hardcode path to parted.
18625 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
18626
8f942553
CW
186272011-05-01 Colin Watson <cjwatson@ubuntu.com>
18628
18629 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
18630 of `ls' to find out which devices are available.
18631
3c62402d
VS
186322011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18633
18634 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
18635 than source address for efi mmap buffer.
18636
723f63f2
VS
186372011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18638
18639 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
18640 wrong action on non-detecting the magic.
18641
68797f92
VS
186422011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18643
18644 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
18645 already supplied by another part of the module (fixes compilation on
18646 FreeBSD).
18647
6be8715d
VS
186482011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18649
18650 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
18651 match the one used by mdadm.
18652
e91dba5b
CW
186532011-04-21 Colin Watson <cjwatson@ubuntu.com>
18654
18655 * po/README: Add instructions for creating po/LINGUAS.
18656
c85140b3
CW
186572011-04-21 Colin Watson <cjwatson@ubuntu.com>
18658
18659 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
18660 #551428.
18661
18662 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
18663 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
18664 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
18665 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
18666 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
18667 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
18668 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
18669 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
18670 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
18671 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
18672 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
18673 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
18674 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
18675 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
18676 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
18677 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
18678 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
18679 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
18680 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
18681 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
18682 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
18683 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
18684
92051871
CW
186852011-04-21 Colin Watson <cjwatson@ubuntu.com>
18686
18687 * grub-core/kern/emu/getroot.c
18688 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
18689 test that was incorrectly reintroduced in r3214.
18690 Reported by: Ian Dall. Fixes Savannah bug #33133.
18691
b13f79a4
CW
186922011-04-21 Colin Watson <cjwatson@ubuntu.com>
18693
18694 Fix stack pointer handling in 16-bit relocator.
18695
18696 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
18697 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
18698 Fixes Ubuntu bug #683904.
18699
9b710a88
VS
187002011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
18701
18702 * configure.ac: Bump version to 1.99~rc2.
18703
d97e7b59
VS
187042011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
18705
18706 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
18707 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
18708 * grub-core/lib/x86_64/setjmp.S: Likewise.
18709 * grub-core/lib/mips/setjmp.S: Likewise.
18710 * grub-core/lib/powerpc/setjmp.S: Likewise.
18711 * grub-core/lib/sparc64/setjmp.S: Likewise.
18712
0624551c
VS
187132011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
18714
18715 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
18716 * grub-core/lib/efi/datetime.c: Likewise.
18717
e8f28d4c
VS
187182011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
18719
18720 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
18721 New function.
18722 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
18723 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
18724 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
18725
bba79a15
VS
187262011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
18727
18728 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
18729 bitmap.
18730 (grub_gfxterm_term_init): Likewise.
18731
abc474ef
VS
187322011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
18733
18734 Take into account the decorations the computing menu entry width.
18735
18736 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
18737 (grub_gfxmenu_create_box): Register get_border_width.
18738 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
18739 if available.
18740 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
18741 get_border_width.
18742
e74b3947
EP
187432011-04-18 Endres Puschner <code@e7p.de>
18744
18745 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
18746 Don't skip first class.
18747
34faa595
VS
187482011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
18749
18750 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
18751 chunks.
18752 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
18753
93a777e3
VS
187542011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
18755
18756 Complete 64-bit division support.
18757
18758 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
18759 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
18760 * include/grub/misc.h (grub_divmod64): Rename to ...
18761 (grub_divmod64_full): ... this.
18762 (grub_divmod64): New inline function.
18763
a5102d94
VS
187642011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
18765
18766 * util/grub-mkimage.c (generate_image): Add forgotten comma.
18767
f3fb7b36
VS
187682011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
18769
18770 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
18771 performing the necessary test.
18772
9ac718b0
VS
187732011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
18774
18775 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
18776 (kfreebsd.elf): Likewise.
18777 (pc-chainloader.elf): Likewise.
18778 (ntldr.elf): Likewise.
18779
50d2cc5a
VS
187802011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
18781
18782 Identify RAID by its UUID rather than (guessed) name.
18783
18784 * grub-core/disk/raid.c (ascii2hex): New function.
18785 (grub_raid_open): Accept mduuid/%s specification.
18786 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
18787 (get_mdadm_uuid): ... this.
18788 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
18789
e03f7bea
VS
187902011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
18791
18792 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
18793 to negative size.
18794
e74c3112
CW
187952011-04-13 Colin Watson <cjwatson@ubuntu.com>
18796
18797 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
18798 btrfs subvolume.
18799 * util/grub.d/20_linux_xen.in: Likewise.
18800
78fa584f
CW
188012011-04-13 Colin Watson <cjwatson@ubuntu.com>
18802
18803 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
18804 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
18805
18806 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
18807 Build a list of relevant visible mounts using the mnt_id and
18808 parent_mnt_id fields, and then scan that list at the end.
18809
9d5f8162
CW
188102011-04-12 Colin Watson <cjwatson@ubuntu.com>
18811
18812 * docs/grub.texi (normal): New section.
18813 (normal_exit): New section.
18814 (Embedded configuration): Add reference to normal.
18815 (GRUB only offers a rescue shell): Likewise.
18816 * docs/grub-dev.texi (Error Handling): Fix typo.
18817
09a9d66f
CW
188182011-04-12 Colin Watson <cjwatson@ubuntu.com>
18819
18820 * NEWS: Drop obsolete entry about probe-only btrfs support.
18821
0c676933
CW
188222011-04-12 Colin Watson <cjwatson@ubuntu.com>
18823
18824 * util/import_gcry.py: Fix typo.
18825
ec9f5e0d
VS
188262011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
18827
18828 * NEWS: Add btrfs support.
18829
fe6b2cba
VS
188302011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
188312011-04-11 Colin Watson <cjwatson@ubuntu.com>
18832
18833 BtrFS support. Written by me (Vladimir) with important bugfixes and
18834 even more important testing by Colin.
18835
18836 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
18837 * grub-core/Makefile.core.def (btrfs): Add crc.c.
18838 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
18839 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
18840 mem_input_off and mem_input. All users updated to accept in-RAM input.
18841 (gzio_seek): New function.
18842 (test_zlib_header): Likewise.
18843 (grub_gzio_read): Likewise.
18844 (grub_zlib_decompress): Likewise.
18845 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
18846 Accept partial and non-virtual mounts.
18847 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
18848 avoid receiving /dev/dm-X as device.
18849 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
18850 Handle bind and partial mounts.
18851 * grub-core/lib/crc.c: New file.
18852 * include/grub/deflate.h: Likewise.
18853 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
18854 proto.
18855 * include/grub/lib/crc.h: New file.
18856
e745cf0c
VS
188572011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
18858
18859 Implement automatic module license checking according to new GNU
18860 guidelines.
18861
18862 * grub-core/kern/dl.c (grub_dl_check_license): New function.
18863 (grub_dl_load_core): Use grub_dl_check_license.
18864 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
18865 (GRUB_MOD_LICENSE): Likewise.
18866 (GRUB_MOD_DUAL_LICENSE): Likewise.
18867 All modules updated.
18868
2a9bc016
CW
188692011-04-11 Colin Watson <cjwatson@ubuntu.com>
18870
18871 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
18872 reserved_first_sector to 1. btrfs reserves plenty of space for boot
18873 loaders.
18874 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
18875
8a3bc88e
VS
188762011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
18877
18878 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
18879
af869a4a
VS
188802011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
18881
18882 * util/grub-fstest.c (read_file): Report GRUB error if file opening
18883 failed.
18884
9ee8d94f
VS
188852011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
18886
18887 * grub-core/kern/file.c (grub_file_open): Don't take into account the
18888 parenthesis in the middle of the filename.
18889
b01abe3e
VS
188902011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
18891
18892 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
18893 rather than trying to put initrd way too high.
18894 Reported by: Ryan Lortie <desrt@desrt.ca>
18895
335bda1e
VS
188962011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
18897
18898 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
18899 improperly removed string.
18900
5ca1a64d
VS
189012011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
18902
18903 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
18904 is_disk.
18905 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
18906 (open_device) Likewise.
18907 (grub_util_biosdisk_close): Likewise.
d8ce9995 18908 Reported by: Mark Korenberg.
5ca1a64d 18909
cbac5b1e
AK
189102011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
18911
18912 * util/grub-mkconfig_lib.in: Add missing quotes.
18913
088cdb65
CW
189142011-04-10 Colin Watson <cjwatson@ubuntu.com>
18915
18916 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
18917 is NULL.
18918
8b8a81fa
VS
189192011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
18920
18921 Dynamically count the number of lines for the lower banner.
18922
18923 * grub-core/normal/menu_entry.c (per_term_screen): New member
18924 num_entries.
18925 (print_down): Use num_entries.
18926 (update_screen): Likewise.
18927 (grub_menu_entry_run): Set num_entries.
18928 * grub-core/normal/menu_text.c (menu_viewer_data): New member
18929 num_entries.
18930 (grub_print_message_indented): Move real part to ...
18931 (grub_print_message_indented_real): ... here. Additional argument
18932 dry_run.
18933 (draw_border): Additional argument num_entries.
18934 (print_message): Additional argument dry_run.
18935 (print_entries): Receive menu viewer data.
18936 (grub_menu_init_page): New argment num_entries.
18937 (menu_text_set_chosen_entry): Use num_entries.
18938 (grub_menu_try_text): Likewise.
18939 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
18940 All users updated.
18941 (grub_ucs4_count_lines): New function.
18942 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
18943 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
18944 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
18945 (grub_term_border_height): Likewise.
18946 (grub_term_num_entries): Likewise.
18947
277f955b
VS
189482011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
18949
18950 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
18951 Remove now unused string.
18952
536ce85a
CW
189532011-04-09 Colin Watson <cjwatson@ubuntu.com>
18954
18955 * docs/grub-dev.texi (Finding your way around): Update for 1.99
18956 build system.
18957 (Getting started): GRUB is developed in Bazaar now, not Subversion.
18958
18959 (Comment): Fix typo.
18960 (Getting started): General copy-editing.
18961 (Typical Development Experience): Likewise.
18962 (Error Handling): Likewise.
18963 (Video API): Likewise.
18964
2cf09e32
CW
189652011-04-09 Colin Watson <cjwatson@ubuntu.com>
18966
18967 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
18968 throughout.
18969
1ec652f4
VS
189702011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
18971
18972 * util/grub-mkimage.c (main): Handle special naming of yeeloong
18973 directory.
18974
2c583728
CW
189752011-04-08 Colin Watson <cjwatson@ubuntu.com>
18976
18977 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
18978 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
18979 "development".
18980
d7a565e9
VS
189812011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
18982
18983 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
18984 grub_strcpy since the lines aren't necessarily 0-terminated.
18985
7c2e4909
VS
189862011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
18987
18988 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
18989 root on legacy.
18990
34c09785
VS
189912011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
18992
18993 * grub-core/commands/probe.c (options): Argument to set isn't optional.
18994 (GRUB_MOD_INIT): DEVICE isn't optional.
18995
6a6f8058
VS
189962011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
18997
18998 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
18999 word on new line if it's too long anyway. Fixes a hang.
19000
2e335e90
VS
190012011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19002
19003 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
19004 const.
19005 * util/grub-setup.c (main): Reuse md device name if available.
19006 * util/raid.c (grub_util_raid_getmembers): Receive device name and
19007 not GRUB name as argument.
19008 Based on patch by: Florian Wagner <fwagner>.
19009
10a7a867
VS
190102011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19011
19012 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
19013 Place mbi on low memory for better compatibility.
19014
7a3d6cd9
VS
190152011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19016
19017 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
19018
18dd6b47
VS
190192011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
190202011-04-08 Colin Watson <cjwatson@ubuntu.com>
19021
19022 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 19023 * conf/Makefile.common: Likewise.
18dd6b47 19024
3c0e3f14
VS
190252011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19026
f7148863
VS
19027 * grub-core/normal/menu.c: Add missing include.
19028
190292011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19030
19031 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 19032
6d1fa41f
MZ
190332011-04-08 Martin Zuther <mzuther@mzuther.de>
19034
19035 * util/grub-mkconfig.in: Ignore emacsen backup.
19036
478182a8
VS
190372011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19038
19039 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
19040 on open.
19041 (grub_util_biosdisk_close): Likewise.
19042
72a89a54
VS
190432011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
19044
19045 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
19046 const attribute and use grub_isdigit.
19047
b5ebecfa
A
190482011-04-06 Andrey <dev_null@ukr.net>
19049
19050 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
19051 gcc warning.
19052
7755f66e
VS
190532011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19054
19055 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
19056 useful grub_dprintf's.
19057
461121ff
VS
190582011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19059
19060 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
19061
2a961775
VS
190622011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19063
19064 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
19065
adf594cc
VS
190662011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19067
19068 Output errors if theme loading failed.
19069
19070 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
19071 grub_gfxterm_fullscreen on error paths to ...
19072 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
19073 theme loading error.
19074
665900a3
VS
190752011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19076
19077 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
19078 space for older compilers.
19079 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
19080
a562b479
VS
190812011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19082
19083 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
19084 and report them as not RAID members since they are useless for GRUB.
19085 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19086
850e9373
VS
190872011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19088
19089 Increase LVM implementation robustness in order not to crash on
19090 configurations like pvmove. Previously code assumed that in some places
19091 only lvs or only pvs are used whereas it seems that they are used
19092 interchangeably.
19093
19094 * grub-core/disk/lvm.c (read_node): New function.
19095 (read_lv): Use read_node.
19096 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
19097 Match volumes only at the end when all lvs are found. Take both
19098 pvs (first) and lvs (second) into account.
19099 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
19100 mirror_* into node_*. All users updated.
19101 (grub_lvm_stripe): Merge this ...
19102 (grub_lvm_mirror): ... and this ...
19103 (grub_lvm_node): ... into this. All users updated.
19104
6f332153
VS
191052011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19106
19107 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
19108 of function to allow further scanning for LVMs.
19109
829ea451
VS
191102011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19111
19112 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
19113 on failed seek as it breaks open fd reusage.
19114
09ceb9a5
VS
191152011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19116
19117 * util/grub-install.in: Add a recommendation to use --recheck before
19118 reporting bugs.
19119
67e11623
VS
191202011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19121
19122 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
19123 are obtained.
19124
caee5efd
VS
191252011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
19126
19127 GRUB developper manual based on existing Internals section and
19128 contributions by the various authors with active copyright assignment.
19129
19130 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
19131 * docs/font_char_metrics.png: New file.
19132 * docs/font_char_metrics.txt: Likewise.
19133 * docs/grub-dev.texi: Likewise.
19134 * docs/grub.texi (Internals): Move from here ...
19135 * docs/grub-dev.texi: ... here.
19136
2cccc747
CW
191372011-04-01 Colin Watson <cjwatson@ubuntu.com>
19138
19139 Store the loopback device as data on loopback grub_disk structures,
19140 rather than the file it points to. This fixes use of freed memory
19141 if an existing loopback device is replaced.
19142
19143 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
19144 disk->data, not dev->file.
19145 (grub_loopback_read): Adjust file assignment to match.
19146 Fixes Ubuntu bug #742967.
19147
186ae367
CW
191482011-04-01 Colin Watson <cjwatson@ubuntu.com>
19149
19150 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
19151 when replacing an existing device.
19152
cfed2ad0
VS
191532011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
19154
19155 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
19156 memory corruptions.
19157
19158 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
19159 unsigned.
19160 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
19161 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
19162 (grub_jfs_read_inode): Likewise.
19163 (grub_jfs_opendir): Likewise. Remove now useless casts.
19164 (grub_jfs_getent): Likewise.
19165 Make ino a grub_uint32_t rather than int.
19166 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
19167 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
19168 division and module with bit operations.
19169 (grub_jfs_find_file): Make ino a grub_uint32_t.
19170 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
19171
05d2ed32
CW
191722011-04-01 Colin Watson <cjwatson@ubuntu.com>
19173
19174 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
19175 warning. (This was in fact always initialised before use, but GCC
19176 wasn't smart enough to prove that.)
19177 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
19178
91dc6073
VS
191792011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
19180
19181 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
19182 stack alignment.
19183 (efi_wrap_1): Likewise.
19184 (efi_wrap_2): Likewise.
19185 (efi_wrap_3): Likewise.
19186 (efi_wrap_4): Likewise.
19187 (efi_wrap_5): Likewise.
19188 (efi_wrap_6): Likewise.
19189 (efi_wrap_10): Likewise.
19190 Based on information by: Red Hat/Peter Jones.
19191
a8afc1d1
CW
191922011-03-31 Colin Watson <cjwatson@ubuntu.com>
19193
19194 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
19195 set-but-not-used variable.
19196
a826cc7d
CW
191972011-03-31 Colin Watson <cjwatson@ubuntu.com>
19198
19199 * docs/grub.texi (Simple configuration): Be more explicit about
19200 GRUB_DEFAULT, and add an example.
19201 Reported by: Leslie Rhorer.
19202
875b67ba
CW
192032011-03-30 Colin Watson <cjwatson@ubuntu.com>
19204
19205 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
19206 shell".
19207
fd7cd914
AS
192082011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19209
19210 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
19211 * util/grub.d/20_linux_xen.in: Likewise.
19212
090b1b6a
VS
192132011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19214
19215 * util/grub.d/10_linux.in: Try alternative config filenames where
19216 we parse config file.
19217 * util/grub.d/20_linux_xen.in: Likewise.
19218
baad885c
AS
192192011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
19220
19221 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
19222 * util/grub.d/20_linux_xen.in: Likewise.
19223
241e41f5
VS
192242011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19225
19226 * grub-core/disk/raid.c (insert_array): Add few potentially
19227 useful grub_util_info.
19228 (grub_raid_register): Likewise.
19229
56445fb2
VS
192302011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19231
19232 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
19233 Preserve partition number in mdadm code path.
19234
c871b1c6
VS
192352011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19236
19237 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
19238 few potentially useful grub_util_info.
19239
5e631b4f
CW
192402011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19241
19242 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
19243
2d5d0333
CW
192442011-03-30 Colin Watson <cjwatson@ubuntu.com>
19245
19246 * docs/grub.texi (default): Use @example rather than nested
19247 itemized lists to avoid breaking gendocs.
19248
3d7ed04e
CW
192492011-03-30 Colin Watson <cjwatson@ubuntu.com>
19250
19251 * docs/grub.texi (Future): Update.
19252
abf04200 192532011-03-30 Colin Watson <cjwatson@ubuntu.com>
19254
19255 * docs/grub.texi (Environment): New chapter.
19256 (Changes from GRUB Legacy): Link to "Environment block" section for
19257 details of limitations.
19258 (Simple configuration): Likewise. Link to documentation of gfxmode
19259 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
19260 respectively.
19261 (Shell-like scripting): Note that normal variables are stored in the
19262 environment.
19263 (gettext): Link to documentation of lang and locale_dir.
19264 (list_env): New section.
19265 (load_env): New section.
19266 (save_env): New section.
19267
19268 (Reporting bugs): Fix typo.
19269
e1ad0edd
VS
192702011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19271
19272 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
19273 the example.
19274
5d803174
VS
192752011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
19276
19277 * grub-core/term/at_keyboard.c (set_scancodes)
19278 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
19279
2a2da1d0
CW
192802011-03-30 Colin Watson <cjwatson@ubuntu.com>
19281
19282 * docs/grub.texi (Menu-specific commands): Remove some semantics
19283 that were true in GRUB Legacy but not in GRUB 2.
19284 (submenu): New section.
19285 (false): New section.
19286 (read): New section.
19287 (true): New section.
19288
a7527639
CW
192892011-03-30 Colin Watson <cjwatson@ubuntu.com>
19290
19291 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
19292
192932011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
19294
19295 * docs/grub.texi (Simple configuration): Explain some of the
19296 current limitations of grub-mkconfig.
8a748df2 19297 Reported by: Leslie Rhorer.
e30af029 19298
fc858482
VS
192992011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19300
19301 Old macs search for boot.efi rather than for bootia32.efi.
19302
19303 * util/grub-install.in: Copy bootia32.efi to boot.efi.
19304 * util/grub-mkrescue.in: Likewise.
19305 Suggested by: Peter Jones.
19306
e1eb511d
VS
193072011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19308
19309 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
19310
70e75364
VS
193112011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19312
19313 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
19314 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
19315 (grub_lvm_mirror): New struct.
19316 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
19317 (grub_lvm_iterate): Iterate only visible volumes.
19318 (grub_lvm_read): Factor out to ..
19319 (read_lv): ... this. Support mirrors.
19320 (grub_lvm_read): New wrapper function.
19321 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
19322 stripped or mirrored.
19323
fc18f6a3
VS
193242011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19325
19326 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
19327
5c650f4c
CW
193282011-03-29 Colin Watson <cjwatson@ubuntu.com>
19329
19330 * docs/grub.texi (loopback): New section.
19331
61d7156b
CW
193322011-03-29 Colin Watson <cjwatson@ubuntu.com>
19333
19334 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
19335 removed -p option.
19336
994b8264
CW
193372011-03-29 Colin Watson <cjwatson@ubuntu.com>
19338
19339 * docs/grub.texi (BIOS installation): New section, partly based on
19340 previous text in other sections.
19341 (Installing GRUB using grub-install): Replace BIOS discussion with a
19342 cross-reference.
19343 (Images): Likewise.
19344
9e4d19e0
VS
193452011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19346
19347 * grub-core/kern/emu/hostdisk.c (find_partition_start)
19348 [HAVE_DIOCGDINFO]: Add safety checks.
19349
a307c0b2
VS
193502011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19351
19352 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
19353 per default compiled in kernel and prior to 8.0 isn't shipped at all.
19354
b4db4f39
CW
193552011-03-29 Colin Watson <cjwatson@ubuntu.com>
19356
19357 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
19358 real_sb->size is zero (e.g. RAID-0), get the disk size from
19359 real_sb->data_size instead.
19360 Fixes Ubuntu bug #743136.
19361
35e5f84c
VS
193622011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19363
19364 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
19365 printf clauses for printing size and start.
19366
d2e29d81
VS
193672011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19368
19369 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
19370 Reported and tested by: Timothy Nikkel.
19371
ed5587af
VS
193722011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19373
19374 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
19375 (dirty_region_add_real): ... this.
19376 (dirty_region_add): Don't discard margin refresh when performing
19377 scheduled repaint.
19378
a1dc717c
VS
193792011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19380
19381 * grub-core/lib/relocator.c (allocate_regstart)
19382 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
19383 terminals are capabple of malloc-free operation.
19384 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
19385 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
19386
9f3677d3
VS
193872011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
19388
19389 * util/grub-setup.c: Copy the partition table zone if floppy support
19390 is disabled, even if no partition table is found.
19391
19392 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
19393 during POST if an invalid partition table is contained in the PBR
19394 of the active partition when GRUB is installed to a partition.
19395
24148725
CW
193962011-03-28 Colin Watson <cjwatson@debian.org>
19397
19398 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
19399 comment.
19400
f329eda7
CW
194012011-03-28 Colin Watson <cjwatson@debian.org>
19402
19403 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
19404 to be specific about what kind of RAID device we're scanning for.
19405
c482ad98
SG
194062011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
19407
19408 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
19409 return freed string.
19410
5ee04984
VS
194112011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19412
19413 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
19414
f4727da9
VS
194152011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19416
19417 Use libgeom on FreeBSD to detect partitions.
19418
19419 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
19420 (grub-mkrelpath): Likewise.
19421 (grub-script-check): Likewise.
19422 (grub-editenv): Likewise.
19423 (grub-mkpasswd-pbkdf2): Likewise.
19424 (grub-fstest): Likewise.
19425 (grub-mkfont): Likewise.
19426 (grub-mkdevicemap): Likewise.
19427 (grub-probe): Likewise.
19428 (grub-setup): Likewise.
19429 (grub-ofpathname): Likewise.
19430 (grub-mklayout): Likewise.
19431 (example_unit_test): Likewise.
19432 (grub-menulst2cfg): Likewise.
19433 * grub-core/Makefile.core.def (grub-emu): Likewise.
19434 (grub-emu-lite): Likewise.
19435 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
19436 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
19437 define HAVE_DIOCGDINFO.
19438 (follow_geom_up) [FreeBSD]: New function.
19439 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
19440 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
19441 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
19442 unconditionally of HAVE_DIOCGDINFO.
19443
82fe6c75
VS
194442011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
19445
19446 Fix FreeBSD compilation problem.
19447
19448 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
19449 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
19450
4c6c9431
CW
194512011-03-24 Colin Watson <cjwatson@ubuntu.com>
19452
19453 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
19454 Switch back to page zero before loading a kernel, since some kernel
19455 drivers expect that.
19456 Thanks to: Felix Kuehling.
19457
c7064d94
VS
194582011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19459
19460 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
19461 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
19462 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
19463
3f71cded
VS
194642011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19465
19466 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
19467 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
19468
ef6de21a
VS
194692011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19470
19471 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
19472 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
19473 malloc is disabled.
19474
8bc66a2c
VS
194752011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
19476
19477 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
19478 for modules headers when counting the needed allocation size.
19479
5657722c
VS
194802011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19481
19482 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
19483 if no ASCII character is found to prevent crash.
19484
41a85f55
AK
194852011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
19486
19487 * grub-core/video/bitmap.c (match_extension): Ignore case.
19488
59e1e5f1
VS
194892011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19490
19491 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
19492
bd4d051a
VS
194932011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19494
19495 * grub-core/script/parser.y: Declare "time" as valid argument.
19496
bae7fcc1
PJ
194972011-03-23 Peter Jones <pjones@redhat.com>
19498
19499 Fix incorrect assert failure reporting.
19500
19501 * grub-core/tests/example_functional_test.c (example_test): Add
19502 a failure comment.
19503 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
19504 (failure_start): ...this. Check that malloc succeeded.
19505 Don't call xvasprintf. Return failure struct.
19506 (failure_append_vtext): New function.
19507 (failure_append_text): Likewise.
19508 (add_failure): Likewise.
19509 (grub_test_assert_helper): Likewise.
19510 * include/grub/test.h (grub_test_assert_helper): New declaration.
19511 (grub_test_assert): Macro rewritten.
19512
537dc9be
VS
195132011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19514
19515 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
19516
fa3e01bf
VS
195172011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19518
19519 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
19520
b1d28404
VS
195212011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19522
19523 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
19524 into GRUB-style one.
19525
2e3e2e09
VS
195262011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19527
19528 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
19529 error and not grub_errno.
19530 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
19531
ed57e557
VS
195322011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19533
19534 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
19535 GRUB_USB_SPEED_NONE in case of failure and not the error code.
19536
d1611f01
VS
195372011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19538
19539 * grub-core/efiemu/i386/pc/cfgtables.c
19540 (grub_machine_efiemu_init_tables): Make declaration a prototype.
19541 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
19542 (grub_xnu_unlock): Likewise.
19543 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
19544
7d4e39d6
VS
195452011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19546
19547 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
19548 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
19549 * grub-core/commands/hashsum.c (aliases): Likewise.
19550 * grub-core/commands/setpci.c (pci_registers): Likewise.
19551 * grub-core/disk/usbms.c (attach_hook): Likewise.
19552 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
19553 (zio_checksum_table): Likewise.
19554 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
19555 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
19556 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
19557 * grub-core/lib/relocator.c (leftovers): Likewise.
19558 (extra_blocks): Likewise.
19559 * grub-core/loader/i386/bsd.c (relocator): Likewise.
19560 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
19561 (modules_last): Likewise.
19562 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
19563 (devices): Likewise.
19564 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
19565 (modules_last): Likewise.
19566 * grub-core/normal/auth.c (users): Likewise.
19567 * grub-core/normal/context.c (initial_menu): Likewise.
19568 (current_menu): Likewise.
19569 * grub-core/normal/crypto.c (crypto_specs): Likewise.
19570 * grub-core/term/serial.c (grub_serial_ports): Likewise.
19571 (grub_serial_terminfo_input_template): Likewise.
19572 (grub_serial_terminfo_output_template): Likewise.
19573 (grub_serial_terminfo_input): Likewise.
19574 (grub_serial_terminfo_output): Likewise.
19575 (registered): Likewise.
19576 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
19577
40fc4659
VS
195782011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19579
19580 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
19581 grub_video_mode_type_t.
19582 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
19583 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
19584 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
19585
2da48d28
VS
195862011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
19587
19588 * util/grub-install.in: Correct the x86-64 name as x86_64.
19589
9b43bf39
CW
195902011-03-11 Colin Watson <cjwatson@ubuntu.com>
19591
19592 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
19593 initial chunk read from the kernel always includes GRUB's multiboot
19594 header, which is now outside the first sector.
19595
be1a7ce0
CW
195962011-03-09 Colin Watson <cjwatson@ubuntu.com>
19597
19598 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
19599 cached mmap_size, so that this works correctly when called multiple
19600 times.
19601 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
19602
83a3c48d
CW
196032011-03-09 Colin Watson <cjwatson@ubuntu.com>
19604
19605 * docs/grub.texi (Simple configuration): Tidy up formatting.
19606
57d75699
SJ
196072011-03-07 Szymon Janc <szymon@janc.net.pl>
19608
19609 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
19610 Set-but-not-used variable removed.
19611
028501a0
VS
196122011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
19613
19614 Workaround yet another IEEE1275 bug.
19615
19616 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
19617 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
19618 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
19619 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
19620 is set.
19621 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
19622 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
19623
d998657d
VS
196242011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
19625
19626 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
19627 error.
19628
fee7cdd4
CW
196292011-02-11 Colin Watson <cjwatson@ubuntu.com>
19630
19631 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
19632 empty, since in that case we can only generate either nothing or a
19633 syntactically invalid configuration file.
19634 Reported by: Michal Suchanek. Fixes Debian bug #612898.
19635
97286eb5
CW
196362011-02-09 Colin Watson <cjwatson@ubuntu.com>
19637
19638 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
19639 (Making a GRUB bootable CD-ROM): Likewise.
19640 (Invoking grub-mkrescue): New section.
19641 Reported by: Yann Dirson. Fixes Debian bug #612585.
19642
22b28eb3
CW
196432011-02-09 Colin Watson <cjwatson@ubuntu.com>
19644
19645 * util/grub-install.in: Remove unnecessary brackets from tr
19646 arguments.
19647 * util/grub.d/10_hurd.in: Likewise.
19648 * util/grub.d/10_kfreebsd.in: Likewise.
19649 * util/grub.d/10_linux.in: Likewise.
19650 * util/grub.d/20_linux_xen.in: Likewise.
19651 Reported by: Jamie Heilman. Fixes Debian bug #612564.
19652
7e735e43
CW
196532011-02-08 Colin Watson <cjwatson@ubuntu.com>
19654
19655 * include/grub/file.h (not_easly_seekable): Rename to ...
19656 (not_easily_seekable): ... this. Update all users.
19657
800f1881
CW
196582011-01-28 Colin Watson <cjwatson@ubuntu.com>
19659
19660 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
19661 grub-mkrescue.
19662
3281d3d6
VS
196632011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
19664
19665 * util/grub-mkimage.c (generate_image): Refuse to create the images
19666 bigger than the actual flash (512K) in Loongson machines. 512K is also
19667 the biggest chip supported by them.
19668
3533413c
VS
196692011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19670
19671 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
19672
73ae4f4f
VS
196732011-01-22 Anthony DeRobertis <anthony@derobert.net>
19674
19675 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
19676 super_offset field.
19677
37f4f608
VS
196782011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19679
19680 * util/grub-install.in: Ignore install device on platforms
19681 where it doesn't make sense. Always use UUIDs except on pc, efi and
19682 sparc64.
19683 Reported by: Daniel Kahn Gillmor.
19684
03a4ccb5
VS
196852011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19686
19687 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
19688
ffc8f4d8
VS
196892011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19690
19691 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
19692 (iterate_real): Don't rely on partition being non-NULL.
19693
80f23be7
VS
196942011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19695
19696 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
19697 supported platforms. Put a compile time assert for this rather than
19698 generate a warning with 32-bit shift.
19699
5d4f4dd5
VS
197002011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19701
19702 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
19703 logical expression more readable.
19704
e489601a
VS
197052011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19706
19707 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
19708 even if some elements have a name.
19709 Reported by: Alexander GQ Gerasiov.
19710
96e0a6ea
CW
197112011-01-22 Colin Watson <cjwatson@ubuntu.com>
19712
19713 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
19714 path unreadable if `grub-probe -t abstraction' fails, for example if
19715 memberlist fails on an LVM volume group.
19716 Reported by: Darius Jahandarie.
19717
81431e2b
CW
197182011-01-22 Colin Watson <cjwatson@ubuntu.com>
19719
19720 * docs/grub.texi (Simple configuration): Document
19721 GRUB_PRELOAD_MODULES.
19722
5e79d66a
CW
197232011-01-17 Colin Watson <cjwatson@ubuntu.com>
19724
19725 * .bzrignore: Remove nonexistent grub-pbkdf2.
19726
646ada34
VS
197272011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
19728
19729 * configure.ac: Bump version to 1.99~rc1.
19730
04360337
VS
197312011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19732
19733 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
19734 for safety.
19735
46c9db88
VS
197362011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
19737
19738 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
19739 module.
19740
197412011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
19742
19743 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
19744
4fbf1852
VS
197452011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19746
19747 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
19748 diskdevid.
19749
f1632d4d
VS
197502011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19751
19752 Fix compilation on cygwin.
19753
19754 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
19755 -R .drectve on cygwin.
19756 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
19757 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
19758 (COND_CYGWIN): New condition.
19759 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
19760 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
19761 not @TARGET_OBJ2ELF@.
19762 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
19763 type to determine whether aux is to be used.
19764
0b5e127b
VS
197652011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19766
19767 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
19768 realpath'ed device string.
19769 Handle floppy (somewhat).
19770 Issue error in unknown case rather than garbage.
19771 Reported by: Axel Beckert.
19772
173b71e9
VS
197732011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19774
19775 * util/grub.d/00_header.in (load_video): Handle the case when no video
19776 drivers available.
19777 Thanks to: Axel Beckert.
19778
f8f479db
VS
197792011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19780
19781 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
19782 variable. Fixes problem on big endian platforms.
19783
8fc0a245
VS
197842011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19785
19786 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
19787 It doesn't work well there.
19788
b8494fbe
VS
197892011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19790
19791 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
19792 warning.
19793 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
19794 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
19795 counter.
19796
b44a558c
VS
197972011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19798
19799 Use alias->path rather than buggy "canon".
19800
19801 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
19802 (ofdisk_hash_add): New argument curcan. All users updated.
19803
51fa856c
CW
198042011-01-11 Colin Watson <cjwatson@ubuntu.com>
19805
19806 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
19807
9da068a5
VS
198082011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
19809
19810 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
19811 loadmask before doing any calculations. Use correct type for offset.
19812 (grub_linux_load64): Likewise.
19813
86205c94
CW
198142011-01-11 Colin Watson <cjwatson@ubuntu.com>
19815
19816 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
19817 with NULL.
19818 (console_grub_equivalences_unshift): Likewise.
19819 Reported by: Daniel Dehennin.
19820
4531a206
VS
198212011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
19822
19823 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
19824 (set_env_limn_ro): Likewise.
19825 (GRUB_MOD_INIT): Likewise.
19826 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
19827 ARRAY_SIZE while on it.
19828 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
19829 * grub-core/normal/context.c (grub_env_export): Move from here ...
19830 * grub-core/kern/env.c (grub_env_export): ... here.
19831 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
19832 prefix.
19833 * grub-core/kern/main.c (grub_main): Export root and prefix.
19834 * include/grub/env.h (grub_env_export): Export.
19835 Reported by: Seth Goldberg.
19836
45146057
VS
198372011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
19838
19839 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
19840 Take into account space used by ELF sections and multiboot palette.
19841 Reported by: Grégoire Sutre.
19842
f093110b
VS
198432011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
19844
19845 * BUGS: New file.
19846
3395fe52
VS
198472011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19848
19849 Pass more appropriate video id to Linux.
19850
19851 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
19852 grub_video_get_driver_id and variable gfxpayloadforcelfb to
19853 fill have_vga.
19854 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
19855 shift params->lfb_size.
19856 * include/grub/i386/linux.h: Make an enume out of have_vga values.
19857
c2fa6cbb
VS
198582011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19859
19860 * util/grub-menulst2cfg.c: Add missing include of misc.h.
19861
b3ff6ff0
VS
198622011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19863
19864 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
19865 separator and pass bootpath/devid even if only one of them is available.
19866 Reported by: Seth Goldberg.
19867
ae67942e
VS
198682011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19869
19870 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
19871 implementations bug on them.
19872
19873 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
19874 memory.
19875 (filter_memory_map): Likewise.
19876
d570097a
VS
198772011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19878
19879 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
19880 Reported by: nebuchadnezzar.
19881
a508e776
VS
198822011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19883
19884 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
19885 Reported by: nebuchadnezzar.
19886
dcb883b1
VS
198872011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19888
19889 Submenu default support.
19890
19891 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
19892 auto_boot. All users updated.
19893 Declared static.
19894 Handle chosen and default with submenus.
19895 (grub_menu_execute_with_fallback): Declared static.
19896 Don't notify failure if autobooted. Upper level does it.
19897 (menuentry_eq): New function.
19898 (get_entry_number): Use menuentry_eq.
19899 (show_menu): New parameter "autobooted". All users updated.
19900 (grub_show_menu): Likewise.
19901 * include/grub/normal.h (grub_show_menu): Likewise.
19902 * include/grub/menu.h (grub_menu_execute_entry): Removed.
19903 (grub_menu_execute_with_fallback): Likewise.
19904
6fef99b4
VS
199052011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19906
19907 * util/grub-mklayout.c (usage): Update help text.
19908
47a77af5
VS
199092011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19910
19911 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
19912
ce6bb3ee
VS
199132011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19914
19915 * util/grub-menulst2cfg.c (main): Trim the line.
19916
db87be2a
VS
199172011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19918
19919 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
19920 (grub_machine_init): Don't check amount of low memory as reportedly
19921 INT 12h can be broken and if low memory is too low we wouldn't have
19922 gotten into grub_machine_init anyway.
19923
c49849cc
VS
199242011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19925
19926 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
19927 (grub_machine_mmap_iterate): Take low memory into account
19928
b1969b30
VS
199292011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19930
19931 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
19932 badfs.
19933 Reported by: TiCPU.
19934
cf0eaf13
VS
199352011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19936
19937 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
19938 members errors.
19939
1f060f39
GS
199402011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
19941
19942 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
19943 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
19944
a21e5672
GS
199452011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
19946
19947 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
19948 openbsd and netbsd types being in part_bsd module.
19949
c88172fa
VS
199502011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
19951
19952 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
19953 (_FILE_OFFSET_BITS): Likewise.
19954 Reported by: Seth Goldberg.
19955
53798c4b
GS
199562011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19957
19958 * configure.ac: Check for libdevmapper header.
19959
e7121b69
VS
199602011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
19961
19962 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
19963 avoid aliasing.
19964 (fzap_lookup): Likewise.
19965 (dnode_get): Likewise.
19966 (make_mdn): Likewise.
19967 (zfs_mount): Likewise.
19968 (fzap_iterate): Use temporary pointer to avoid aliasing.
19969 (grub_zfs_read): Likewise.
19970 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
19971 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
19972 pointers to avoid aliasing.
19973 (grub_cmd_xnu_kernel64): Likewise.
19974 (grub_xnu_load_driver): Likewise.
19975
fc836af9
VS
199762011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
19977
19978 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
19979 aliasing warning.
19980 (grub_cmd_terminal_output): Likewise.
19981 Reported and tested by: Grégoire Sutre.
19982
f9f37648
VS
199832011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
19984
19985 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
19986 warning.
19987 Reported and tested by: Grégoire Sutre.
19988
ec1dfd63
VS
199892011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
19990
19991 * configure.ac: Do CPU substitution even if it's specified explicitly.
19992 Reported and tested by: Alain Greppin.
19993
9462775a
VS
199942011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
19995
19996 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
19997 Reported and tested by: Alain Greppin.
19998
0fd48e35
VS
199992011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20000
20001 Satisfy some bison versions need for inttypes.h.
20002
20003 * grub-core/lib/posix_wrap/inttypes.h: New file.
20004 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
20005 (int16_t): Likewise.
20006 (int32_t): Likewise.
20007 (int64_t): Likewise.
20008 Reported and tested by: Alain Greppin.
20009
43f1bc83
VS
200102011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20011
20012 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
20013 Silence spurious warning.
20014 Reported and tested by: Alain Greppin.
20015
64d1f041
SJ
200162011-01-07 Szymon Janc <szymon@janc.net.pl>
20017
20018 * docs/grub.texi (Support automatic decompression): Update with xz
20019 decompression support.
20020
25953e10
SJ
200212011-01-07 Szymon Janc <szymon@janc.net.pl>
20022
20023 Improve loaders' kernel command line handling.
20024
20025 * grub-core/lib/cmdline.c: New file.
20026 * include/grub/lib/cmdline.h: Likewise.
20027 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
20028 grub_create_loader_cmdline to create kernel command line.
20029 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20030 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
20031 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
20032 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
20033 (linux): Add lib/cmdline.c on common.
20034
e72d259f
VS
200352011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20036
20037 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
20038 inopos might be unaligned.
20039
c0cf26da
VS
200402011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20041
20042 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
20043 endian transformations.
20044 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20045 Based on report by: Doug Nazar.
20046
0ca09e6c
DN
200472011-01-07 Doug Nazar <nazard.michi@gmail.com>
20048
20049 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
20050 array->members[i].start_sector.
20051 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
20052
014b6806
VS
200532011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20054
20055 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
20056 Reported and tested by: Grégoire Sutre.
20057
415502c2
CW
200582011-01-06 Colin Watson <cjwatson@ubuntu.com>
20059
20060 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
20061 avoid causing test failures by clearing the screen.
20062
71b6a2b7
CW
200632011-01-06 Colin Watson <cjwatson@ubuntu.com>
20064
20065 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20066 Fix prefix check to handle the case where dir ends with a slash
20067 (most significantly, "/" itself).
20068 Reported by: Michael Vogt.
20069
b3f8d28a
VS
200702011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20071
20072 Run terminfo_cls on initing terminfo output to clear the screen and
20073 move the cursor to (0,0).
20074
20075 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
20076 Call grub_terminfo_output_init.
20077 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
20078 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
20079 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
20080
4c3e4f37
VS
200812011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20082
20083 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
20084 only when needed.
20085
488f71f1
VS
200862011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20087
20088 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
20089 CTRL.
20090
18a38098
VS
200912011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
20092
20093 The E820 type 5 is BADRAM, not EXEC_CODE.
20094
20095 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20096 (GRUB_E820_BADRAM): New define.
20097 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
20098 into reserved. Propagate BADRAM.
20099 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
20100 (GRUB_E820_BADRAM): New define.
20101
9eae2084
VS
201022011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20103
20104 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
20105 Ignore the memory post-4G.
20106 (grub_relocator_firmware_alloc_region): Additional debug statement.
20107
ebc71d28
VS
201082011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20109
20110 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
20111 names.
20112 Reported by: David Pravec.
20113
446fa400
VS
201142011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20115
20116 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
20117 BIOSes.
20118
a0159f37
VS
201192011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20120
20121 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
20122 Prevent overflow.
20123 (grub_reed_solomon_recover): Likewise.
20124
e5146ca1
VS
201252011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20126
20127 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
20128
201292011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
20130
20131 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
20132 variable.
20133
5b1bdf12
CW
201342011-01-04 Colin Watson <cjwatson@ubuntu.com>
20135
20136 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
20137 descriptions of extract_legacy_entries_source and
20138 extract_legacy_entries_configfile.
20139 Reported by: Seung Soo, Ha.
20140
99d925aa
CW
201412011-01-03 Colin Watson <cjwatson@ubuntu.com>
20142
20143 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
20144 on devices that do not implement function 0.
20145
4af0504b
DV
201462011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
20147
20148 * grub-core/fs/hfsplus.c: Make parent unsigned.
20149 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
20150 overflows.
20151 (grub_hfsplus_cmp_extkey): Likewise
20152
469ee10a
VS
201532011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20154
20155 * util/grub-install.in: Correctly use bootloader_id and not
20156 GRUB_DISTRIBUTOR on efibootmgr line.
20157
323a8e9c
VS
201582011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
20159
20160 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
20161
1b394975
IC
201622010-12-31 Ian Campbell <ijc@hellion.org.uk>
20163
20164 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
20165 Xen and reorder menu item wording to make it clearer that this entry
20166 will launch Xen. Print separate messages when loading Xen and
20167 Linux.
20168
275bff5f
VS
201692010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20170
20171 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
20172 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
20173 loop in case of incorrect amiga partmap.
20174
307806cb
VS
201752010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20176
20177 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
20178 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
20179 Reported by:EHeM.
20180
b12b923e
VS
201812010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
20182
20183 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
20184 spurious warning.
20185 Reported by: crocket
20186
14b48a19
VS
201872010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20188
20189 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
20190 Preload EFIemu.
20191 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
20192
693db2df
VS
201932010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20194
20195 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
20196 is loaded
20197 (grub_cmd_xnu_kextdir): Likewise.
20198 (grub_cmd_xnu_splash): Likewise.
20199
c7638645
VS
202002010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20201
20202 Avoid using Reed-Solomon with 0 redundancy.
20203
20204 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
20205 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
20206 or 0 redundancy.
20207 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
20208 (grub_reed_solomon_recover): Likewise.
20209
25dd4780
VS
202102010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20211
20212 Don't use disk subsystem in freebsd_boot.
20213
20214 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
20215 (freebsd_biosdev): Likewise.
20216 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
20217 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
20218
0b2db943
VS
202192010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
20220
20221 Handling of files of unknown size is currently limited. They can't be
20222 used e.g. for initrd or modules. Moreover gzip handling of not
20223 easily seekable files is buggy. Disable unknown file size for now. May
20224 be inefficient but works.
20225
20226 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
20227 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
20228
5c408d0f
MP
202292010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
20230
20231 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
20232 floppy probe.
20233
190a011a
JD
202342010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
20235
20236 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
20237
022d01b8
SL
202382010-12-25 Shea Levy <shlevy>
20239
20240 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
20241
c4855fdc
VS
202422010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
20245 Windows Server 2008.
20246 Reported by: Devin Giddings.
20247
0354b867
VS
202482010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20249
20250 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
20251 writing an error message because of async power management.
20252 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
20253 (grub_reboot): Likewise.
20254
ab66c69f
JU
202552010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
20256
20257 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
20258 keep unit tests from failing when they shouldn't.
20259
1426ef35
CW
202602010-12-21 Colin Watson <cjwatson@ubuntu.com>
20261
20262 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
20263 previous patch increased the size of the RS code by 20 bytes (at
20264 least with gcc-4.4), so increase this by 20 bytes to match.
20265 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20266
20641b6b
CW
202672010-12-21 Colin Watson <cjwatson@ubuntu.com>
20268
20269 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
20270 scratch area. Make sure to initialise chosen in standalone mode as
20271 well as non-standalone.
20272 Reported by: Robert Hooker and Andy Whitcroft.
20273 Tested by: Andy Whitcroft.
20274
d060ad60
CW
202752010-12-21 Colin Watson <cjwatson@ubuntu.com>
20276
20277 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
20278 constructing a new unescaped string and passing it to grub_xputs in
20279 one go, rather than passing characters to grub_printf one at a time.
20280
b889cfad
CW
202812010-12-21 Colin Watson <cjwatson@ubuntu.com>
20282
20283 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
20284 initialising utf16.
20285
4e01b6c8
CW
202862010-12-21 Colin Watson <cjwatson@ubuntu.com>
20287
20288 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
20289 comment. Add an extra layer of quotation, requiring the output of
20290 this function to be used in a printf format string.
20291 (gettext_printf): New function.
20292 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
20293 Extract translatable strings from here-documents and use a temporary
20294 variable instead, so that xgettext can find them.
20295 * util/grub.d/10_kfreebsd.in: Likewise.
20296 * util/grub.d/10_linux.in: Likewise.
20297 * util/grub.d/20_linux_xen.in: Likewise.
20298
20299 * po/grub.d.sed: New file.
20300 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
20301 arguments. Set c-format flags on all strings extracted from
20302 util/grub.d/ (xgettext refuses to include these itself for strings
20303 it extracted from a shell file, but these really are c-format).
20304
5318fe98
VS
203052010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20306
20307 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
20308 Avoid next pointing to nowhere.
20309
6c85b743
VS
203102010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20311
20312 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
20313 rather than assuming than rootblock is exactly in the middle.
20314 (grub_affs_label): Likewise.
20315
a2a08a35
VS
203162010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20317
20318 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
20319 reserved_first_sector to 0.
20320 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
20321 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
20322 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
20323
7059d1ec
VS
203242010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20325
20326 Fix handling of UTF-16 UDF labels.
20327
20328 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
20329 (read_string): .. here.
20330 (grub_udf_label): Use read_string.
20331
30aff4cb
BC
203322010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
20333
20334 * grub-core/normal/menu_entry.c (run): Execute commands from menu
20335 editor under argument scope.
20336 Reported by: Jordan Uggla
20337
5cf86f4b
VS
203382010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20339
20340 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
20341
32570200
CW
203422010-12-18 Colin Watson <cjwatson@ubuntu.com>
20343
20344 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
20345 line, and other keys scroll an entire page (previous handling was
20346 for \r and \n to scroll a page and other keys to scroll two lines).
20347
e1dffcf2
VS
203482010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20349
20350 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20351 Set ptrdest to correct get_physical_target_address rather than
20352 incorrect get_virtual_current_address.
20353
b04298cf 203542010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
20355
20356 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
20357 correct cat to grub_uint8_t * rather than grub_uint32_t *.
20358
5367ecd3
CW
203592010-12-10 Colin Watson <cjwatson@ubuntu.com>
20360
20361 * .bzrignore: Ignore grub-core/rs_decoder.S.
20362
1fb430f8
CW
203632010-12-10 Colin Watson <cjwatson@ubuntu.com>
20364
20365 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
20366 .mo/.mo.gz opening sequence to ...
20367 (grub_mofile_open_lang): ... here.
20368 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
20369 * util/grub.d/00_header.in (grub_lang): Include country part of
20370 locale.
20371 Reported by: Mario Limonciello.
20372
a94a6671
RM
203732010-12-09 Robert Millan <rmh@gnu.org>
20374
20375 * NEWS: Document addition of ZFS support.
20376
24b7938b
CW
203772010-12-04 Colin Watson <cjwatson@ubuntu.com>
20378
20379 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
20380 rather than `/ 2', as the latter requires -Wa,--divide which would
20381 require bumping our minimum binutils version.
20382
bddc3ef6
BC
203832010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
20384
20385 * util/grub-script-check.c (main): Print script line number on
20386 error.
20387
bf78d5b2
RM
203882010-12-01 Robert Millan <rmh@gnu.org>
20389
20390 * grub-core/fs/zfs/zfs.c: New file.
20391 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
20392 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
20393 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
20394 * grub-core/fs/zfs/zfsinfo.c: Likewise.
20395
20396 * include/grub/zfs/dmu.h: Likewise.
20397 * include/grub/zfs/dmu_objset.h: Likewise.
20398 * include/grub/zfs/dnode.h: Likewise.
20399 * include/grub/zfs/dsl_dataset.h: Likewise.
20400 * include/grub/zfs/dsl_dir.h: Likewise.
20401 * include/grub/zfs/sa_impl.h: Likewise.
20402 * include/grub/zfs/spa.h: Likewise.
20403 * include/grub/zfs/uberblock_impl.h: Likewise.
20404 * include/grub/zfs/vdev_impl.h: Likewise.
20405 * include/grub/zfs/zap_impl.h: Likewise.
20406 * include/grub/zfs/zap_leaf.h: Likewise.
20407 * include/grub/zfs/zfs.h: Likewise.
20408 * include/grub/zfs/zfs_acl.h: Likewise.
20409 * include/grub/zfs/zfs_znode.h: Likewise.
20410 * include/grub/zfs/zil.h: Likewise.
20411 * include/grub/zfs/zio.h: Likewise.
20412 * include/grub/zfs/zio_checksum.h: Likewise.
20413
20414 * Makefile.util.def: Build ZFS into libgrubmods.
20415 * grub-core/Makefile.core.def: Build zfs.mod.
20416
3f0f3831
SJ
204172010-11-30 Szymon Janc <szymon@janc.net.pl>
20418
20419 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
20420 variable.
20421 * grub-core/commands/wildcard.c (match_files): Likewise.
20422
3a4253b2
RM
204232010-11-30 Robert Millan <rmh@gnu.org>
20424
20425 * grub-core/loader/i386/bsd.c
20426 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
20427 whether kernel is loaded using grub_loader_is_loaded(), rather
20428 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
20429 certain error conditions.
20430
8c317b27
RM
204312010-11-30 Robert Millan <rmh@gnu.org>
20432
c5c9cd3e
RM
20433 * grub-core/commands/echo.c: Include `<grub/term.h>'.
20434 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 20435
49d3ab46
VS
204362010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
20437
20438 Avoid using tricks for initialising endian variables.
20439
20440 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
20441 Make const.
20442 (GRUB_MOD_INIT): Don't byte-swap.
20443 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
20444 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
20445 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
20446 (grub_swap_bytes32_compile_time): Likewise.
20447 (grub_cpu_to_le32_compile_time): Likewise.
20448 (grub_cpu_to_le16_compile_time): Likewise.
20449
f420a804
VS
204502010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
20451
20452 * util/grub-setup.c (setup): Stop recommending --force. People who
20453 understand the dangers of blocklists are able to find this option
20454 anyway and the ones who don't shouldn't use it anyway.
20455
4e7db17b
RM
204562010-11-26 Robert Millan <rmh@gnu.org>
20457
20458 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
20459 Update all users.
20460
9be57a0d
CW
204612010-11-26 Colin Watson <cjwatson@ubuntu.com>
20462
20463 Fix LVM-on-RAID probing.
20464
20465 * util/grub-probe.c (probe): Remember which disk was detected as
20466 RAID (perhaps an LVM physical volume). Use that disk's raidname
20467 rather than that of the top-level disk.
20468
2c7859b3 204692010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 20470
d7647bb6
BC
20471 Fix cmdline argument quotes for setparams command of menuentry
20472 definitions.
7e623b0d
BC
20473
20474 * grub-core/commands/menuentry.c (setparams_prefix): Use single
20475 quotes for arguments.
f866fe80 20476 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 20477 grub_strchrsub function instead.
f866fe80 20478
7955bea0 20479 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 20480
74f72a64
CW
204812010-11-24 Colin Watson <cjwatson@ubuntu.com>
20482
20483 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
20484 effort by skipping "." and ".." entries up-front.
20485 Suggested by: Michael Lazarev.
20486
5a407278
CW
204872010-11-24 Colin Watson <cjwatson@ubuntu.com>
20488
20489 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
20490 ldflags to ldadd, to fix link line ordering.
20491 (none_decompress): Likewise.
20492
3030d8ec
CW
204932010-11-24 Colin Watson <cjwatson@ubuntu.com>
20494
20495 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
20496 platforms.
20497 (grub-emu-lite): Remove kern/emu/cache.S.
20498
b7fbac12
CW
204992010-11-23 Colin Watson <cjwatson@ubuntu.com>
20500
20501 * util/deviceiter.c (compare_devices): If the by-id link for a
20502 device couldn't be resolved, fall back to sorting by the by-id link
20503 rather than segfaulting.
20504 Reported and tested by: Daniel Mierswa.
20505
5225f328
CW
205062010-11-23 Colin Watson <cjwatson@ubuntu.com>
20507
20508 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
20509 ldflags, to fix link line ordering.
20510
038b3ce8
CW
205112010-11-23 Colin Watson <cjwatson@ubuntu.com>
20512
20513 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
20514 linkers are picky about this.
20515
bf16e98e
CW
205162010-11-23 Colin Watson <cjwatson@ubuntu.com>
20517
20518 * grub-core/Makefile.am (command.lst): Adjust sed expression
20519 ordering so that extended and priority commands aren't treated as
20520 ordinary commands.
20521
7242bab6
CW
205222010-11-23 Colin Watson <cjwatson@ubuntu.com>
20523
20524 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
20525 Remove byte-swapping function calls, which are not valid in
20526 structure initialisers.
20527 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
20528 non-const.
20529 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
20530 grub_gpt_partition_type_bios_boot.
20531
14e8b279
CW
205322010-11-22 Colin Watson <cjwatson@ubuntu.com>
20533
20534 Fix test program build on GNU/kFreeBSD.
20535
20536 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
20537 $(LIBNVPAIR)' library dependencies.
20538
e6f63338 205392010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
20540
20541 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
20542
cf8ffc38
CW
205432010-11-22 Colin Watson <cjwatson@ubuntu.com>
20544
20545 * util/grub-install.in: Remove excessive quoting that broke
20546 installations to RAID devices.
20547
7f8b0fd7
VS
205482010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20549
20550 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
20551 bootloader version instead of 0.
20552
dfd240b1
VS
205532010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20554
20555 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
20556 warning.
20557
7b61e609
VS
205582010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
20559
20560 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
20561 retrieve the metadat sector if size isn't known.
20562 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20563
9dfe92d0
RM
205642010-11-18 Robert Millan <rmh@gnu.org>
20565
20566 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
20567 with grub_memcmp().
20568
41cc919e
VS
205692010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
20570
20571 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
20572 arrow.
20573 Reported by: Jordan Uggla.
20574
1afcc914
VS
205752010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20576
20577 Make better UTF compliant.
20578
20579 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
20580 sequences as incorrect.
20581 (grub_is_valid_utf8): Likewise.
20582 (grub_utf8_to_ucs4): Likewise.
20583 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
20584 (grub_ucs4_to_utf8_alloc): Likewise.
20585 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
20586
f1808884
VS
205872010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20588
20589 Make legacy_source behave like source.
20590
20591 * grub-core/commands/legacycfg.c (legacy_file): Don't call
20592 grub_show_menu.
20593 (grub_cmd_legacy_source): Call grub_show_menu if needed.
20594
24ec575b
CW
205952010-11-16 Colin Watson <cjwatson@debian.org>
20596
20597 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
20598 (-Wunused implies -Wunused-parameter, but not vice versa).
20599
72b7c7aa
CW
206002010-11-16 Colin Watson <cjwatson@ubuntu.com>
20601
20602 * configure.ac: Make error messages less confusing by testing for
20603 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
20604 accepted, but produces a diagnostic if something else is wrong).
20605
e98937aa
VS
206062010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
20607
20608 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
20609 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
20610 (now unused).
20611 (grub_keyboard_controller_init)
20612 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
20613 read the initial state since controller isn't inited yet.
20614
f6bbabc3
VS
206152010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
20616
20617 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
20618 allocate_regbeg may need to create new chunk header.
20619
22e7dbb2
VS
206202010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20621
20622 Fix quoting in legacy parser.
20623
20624 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
20625 single quotes.
20626 (grub_legacy_parse): Likewise.
20627 Reported by: Jordan Uggla.
20628 Tested by: Jordan Uggla.
20629
03f80960
VS
206302010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20631
20632 Don't add -lgcc on i386 and x86_64.
20633
20634 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
20635 * conf/Makefile.common (LDADD_KERNEL): Likewise.
20636 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
20637
779dc15b
VS
206382010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20639
20640 * configure.ac: Add -Wno-trampolines when supported.
20641
d20a3b37
MV
206422010-11-14 Modestas Vainius <modax@debian.org>
20643
20644 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
20645 fakeraid.
20646
e5360933
GC
206472010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20648
20649 Add generic logical block size support for UDF.
20650
20651 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
20652 (GRUB_UDF_BLKSZ): Removed.
20653 (struct grub_udf_data): New field "lbshift" to hold the logical block
20654 size of the file system in log2 format. All users updated.
20655 (sblocklist): Change type to unsigned.
20656 (grub_udf_mount): Change type of "sblklist" to unsigned.
20657 Move AVDP search before VRS recognition, because the latter requires
20658 knowledge of the logical block size, which is detected during the
20659 former.
20660 Detect and validate logical block size during AVDP search, adding
20661 support for block sizes 512, 1024 and 4096.
20662 Make VRS recognition independent of block size.
20663
cb0229c5
GC
206642010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20665
20666 Properly handle deleted files on UDF.
20667
20668 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
20669 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
20670 set.
20671
406858a8
GC
206722010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
20673
20674 Support reading files larger than 2 GiB.
20675
20676 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
20677 "offset" to grub_off_t.
20678 (grub_udf_read_file): Likewise for parameter "pos".
20679
130da6a7
VS
206802010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20681
20682 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
20683 unavailable.
20684 (Simple configuration): Refer to Changes from GRUB Legacy about
20685 save_env availability.
20686
65e93f6b
VS
206872010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20688
20689 * util/grub-install.in: Ignore empty partition table detection
20690 instead of trying to include part_ module.
20691
1fd08bf1
VS
206922010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20693
20694 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
20695 LVM on RAID support.
20696
de1a024f
VS
206972010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
20698
20699 Properly define WORDS_BIGENDIAN in wrapped environments.
20700
20701 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
20702 definition.
20703 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
20704
20705 Reported by: Manoel Rebelo Abranches.
20706 Tested by: Manoel Rebelo Abranches.
20707
bc5dd0b9
VS
207082010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
20709
20710 * util/grub-mkconfig.in: Fix quoting.
20711
58c184be
VS
207122010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
20713
20714 Support big ext2 files.
20715
20716 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
20717 (grub_ext2_read_block): Support triple indirect blocks.
20718 (grub_ext2_read_file): Use 64-bit types and read size_high.
20719 (grub_ext2_open): Read size_high.
20720 Reported by: Ximin Luo.
20721 Tested by: Manoel Rebelo Abranches.
20722
5f0c02b3
VS
207232010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
20724
20725 * util/grub-install.in: Handle filenames containing spaces.
20726 Reported by: Jordan Uggla.
20727 Tested by: Jordan Uggla.
20728
4417aae6
VS
207292010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
20730
20731 * util/grub-mkconfig.in (grub_script_check): New variable.
20732 Use grub_script_check instead of grub-script-check.
20733 Reported by: Barry Jackson.
20734
7625a68e
VS
207352010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
20736
20737 * docs/grub.texi (menu): Correct the order.
20738 Reported by: D. Hugh Redelmeier.
20739
10001ac5
VS
207402010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
20741
20742 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
20743 jump.
20744
9c4cf53b
MRA
207452010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
20746
10001ac5
VS
20747 * include/grub/elfload.h (grub_elf32_size): New parameter.
20748 All users updated.
9c4cf53b
MRA
20749 Return maximum segments alignment.
20750 (grub_elf64_size): Likewise.
20751 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
20752 Return maximum segments alignment.
20753 (grub_elf64_size): Likewise.
20754 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
20755 (grub_linux_claimmap_iterate): New function. Uses the
20756 "available" property in the "memory" node for memory allocation
20757 for kernel in the PowerPC loader.
9c4cf53b
MRA
20758 (grub_linux_load32): Correctly find linux entry point offset.
20759 (grub_linux_load64): Likewise.
20760
d2bf06bf
RM
207612010-11-07 Robert Millan <rmh@gnu.org>
20762
20763 On mips-yeeloong, build with -march=loongson2f when this flag is
20764 available (GCC >= 4.4).
20765 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
20766 `-march=mips3'.
20767 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
20768 or otherwise add -march=mips3.
20769
898c99a2
BC
207702010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
20771
87220a68
BC
20772 Suppress shell expansion on echo '*' and echo "*" like cases.
20773 Reported by: Jordan Uggla.
898c99a2
BC
20774
20775 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
20776 string arguments before shell expansion.
20777 * tests/grub_cmd_echo.in: New testcases.
20778
4f9b406a
RM
207792010-11-07 Robert Millan <rmh@gnu.org>
20780
20781 * conf/mips-qemu-mips.rmk: Remove stale file from previous
20782 transition.
20783
80c6d25e
VS
207842010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
20785
20786 * grub-core/kern/emu/hostdisk.c
20787 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
20788
4a1a0153
VS
207892010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
20790
20791 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
20792 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
20793 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
20794
34706ddc
VS
207952010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
20796
20797 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
20798
6972dea9
VS
207992010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
20800
20801 * util/grub-install.in: Replace useless recomendation to pass
20802 --modules with a recomendation to report a bug.
20803
9c693bd6
VS
208042010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
20805
20806 Properly register serial terminfo.
20807 Reported by: Jordan Uggla
20808
20809 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
20810 const.
20811 (grub_serial_terminfo_output_template): Likewise.
20812 (grub_cmd_serial): Register "serial" with terminfo.
20813 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
20814 grub_serial_terminfo_output.
20815
6c9e4c0c
RM
208162010-11-05 Robert Millan <rmh@gnu.org>
20817
20818 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
20819 needed).
20820
b9b3839f
RM
208212010-11-05 Robert Millan <rmh@gnu.org>
20822
20823 On Yeeloong, pass machine type information to Linux.
20824
20825 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
20826 (LOONGSON_MACHTYPE): New macro, set to
20827 "machtype=lemote-yeeloong-2f-8.9inches".
20828 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
20829 additional argument to Linux.
20830
1a3aaff4
RM
208312010-11-04 Robert Millan <rmh@gnu.org>
20832
20833 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
20834 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
20835 (its SATA disks are detected as slaveless IDE master drives on
20836 kFreeBSD).
20837 Reported by Carsten Aulbert.
20838
a75f4f62
CW
208392010-11-02 Colin Watson <cjwatson@ubuntu.com>
20840
20841 * util/bin2h.c (main): Fix spelling error in generated output.
20842
33b4b0c6
GS
208432010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
20844
20845 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
20846
2b36fbf4
VS
208472010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20848
20849 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
20850 vga= option is supplied.
20851
74aaf558
VS
208522010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20853
20854 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
20855 * util/grub.d/10_kfreebsd.in: Likewise.
20856 * util/grub.d/10_linux.in: Likewise.
20857 * util/grub.d/20_linux_xen.in: Likewise.
20858
6428dec3
VS
208592010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20860
20861 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
20862 argument as an argument to no-argument option.
20863
f8729d98
VS
208642010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20865
20866 * util/grub.d/10_linux.in: Add missing load_video with explicit
20867 GRUB_GFXPAYLOAD_LINUX.
20868
89d68fa6
VS
208692010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20870
20871 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
20872
3a1197cd
VS
208732010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20874
20875 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
20876 elements with invlid index.
20877 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20878 * grub-core/disk/raid.c (insert_array): Automatically reallocate
20879 members.
20880 * include/grub/raid.h (grub_raid_member): New struct.
20881 (grub_raid_array): Transform devices and start_sector into usage of
20882 grub_raid_member. All users updated
20883 (allocated_devs): New member.
20884
71574288
VS
208852010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
20886
20887 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
20888 is modified
20889
8d40ec65
BC
208902010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
20891
20892 NetBSD build fix for getline function conflict from gnulib.
20893
20894 * Makefile.util.def (libgrubkern.a): New library for grub kernel
20895 components that depend on gnulib headers.
20896 (libgrubmods.a): Renamed from earlier libgrub.a.
20897 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
20898
95b9257e
VS
208992010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
20900
20901 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
20902 install rather than creating a broken install.
20903
26c53dc6
VS
209042010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
20905
20906 * util/grub-setup.c (argp): Remove misleading example of installing to
20907 a partition.
20908
4171b3c5
VS
209092010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
20910
20911 * util/grub-setup.c (setup): Clarify the error message.
20912
18568d18
VS
209132010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
20914
20915 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
20916
4f6a2e21
VS
209172010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
20918
20919 * grub-core/kern/emu/misc.c
20920 (grub_make_system_path_relative_to_its_root)
20921 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
20922
209232010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
20924
20925 * grub-core/kern/emu/misc.c
20926 (grub_make_system_path_relative_to_its_root): Revert r2882.
20927
e138c458
VS
209282010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
20929
20930 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
20931 useless field head. All users updated.
20932 (free_subchunk): Correct handling of IN_REGION subchunk.
20933
0cbcdf0e
CW
209342010-10-22 Colin Watson <cjwatson@ubuntu.com>
20935
20936 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
20937 (Supported kernels): Likewise.
20938
b65ea155
GS
209392010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
20940
20941 Make mktemp invocations portable.
20942
20943 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
20944 exit if mktemp fails.
20945 * tests/grub_script_blockarg.in: Likewise.
20946 * tests/partmap_test.in: Likewise.
20947 * tests/util/grub-shell-tester.in: Likewise.
20948 * tests/util/grub-shell.in: Likewise.
20949 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20950 * Makefile.am: Likewise, and chain shell commands with `&&'
20951 instead of ';'.
20952 * util/grub-mkrescue.in: Use the same explicit template as above, and
20953 exit if mktemp fails.
20954
05f43cdd
BC
209552010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
20956
20957 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
20958 Linux kernel, reported by Dennis Schridde.
20959
800e6a9b
SJ
209602010-10-17 Szymon Janc <szymon@janc.net.pl>
20961
20962 * grub-core/normal/auth.c (grub_auth_check_authentication):
20963 Set-but-not-used variable removed.
20964
d82df574
VS
209652010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
20966
20967 * docs/grub.texi (GNU/Linux): Document APM unavailability with
20968 32-bit linux protocol.
20969
7bced458
VS
209702010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
20971
20972 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
20973 cursor shape for sanity.
20974
5b027690
VS
209752010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
20976
20977 * docs/grub.texi (Installation): Document buggy BIOS install.
20978
ba5f65cf
VS
209792010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
20980
20981 * docs/grub.texi (Installation): Indent.
20982
fdf2ec9c
VS
209832010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
20984
20985 * util/grub-setup.c (setup): New parameter allow_floppy.
20986 (arguments): New member allow_floppy.
20987 (argp_parser): Handle --allow-floppy.
20988 (main): Pass allow_floppy.
20989 * util/grub-install.in: New option --allow-floppy passed though to
20990 grub-setup.
20991
861dfd4c
VS
209922010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
20993
20994 * util/grub-install.in: Handle partitionless disks.
20995
f77a8c24
VS
209962010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
20997
20998 * util/grub-setup.c (setup): Don't clean blocklists before readability
20999 verfification.
21000
27d9ee32
VS
210012010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21002
21003 * docs/grub.texi (Installation): Document embedding zone. Remove
21004 obsolete grub-install example.
21005
6bdda8f8
SJ
210062010-10-16 Szymon Janc <szymon@janc.net.pl>
21007
21008 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
21009 Set-but-not-used variable ifdef'ed.
21010 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
21011 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
21012 variable removed.
21013 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
21014 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
21015 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
21016 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
21017 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
21018 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
21019 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
21020 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
21021 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
21022 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
21023 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
21024 Likewise.
21025
e19b016b
VS
210262010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21027
21028 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
21029 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
21030 enum value.
21031
6c8d3002
VS
210322010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21033
21034 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
21035 synonym to _S5_. Needed for some DSDTs.
21036
c32b51c9
VS
210372010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21038
21039 Userspace ACPI parser debugging.
21040
21041 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
21042 headers and add relevant defines. Don't include standard headers.
21043 (main) [GRUB_DSDT_TEST]: New function.
21044 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
21045 Don't declare functions.
21046
fbfbeb39
VS
210472010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21048
21049 Remove dead grub_efi_mm_fini.
21050
21051 * grub-core/kern/efi/mm.c (allocated_page): Removed.
21052 (ALLOCATED_PAGES_SIZE): Likewise.
21053 (MAX_ALLOCATED_PAGES): Likewise.
21054 (allocated_pages): Likewise.
21055 (grub_efi_allocate_pages): Don't record allocated pages.
21056 (grub_efi_free_pages): Likewise.
21057 (grub_efi_mm_init): Likewise.
21058 (grub_efi_mm_fini): Removed.
21059
65f7ed7c
VS
210602010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21061
21062 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
21063 (grub_efi_mm_init): Take into account the memory map size increase.
21064
24977b44
VS
210652010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
21066
21067 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
21068 (serial_hw_put): Wait based on real time rather than port reads. Don't
21069 roken ports.
21070 * include/grub/serial.h (grub_serial_port): New field broken.
21071
1eb01cd2
RM
210722010-10-16 Robert Millan <rmh@gnu.org>
21073
21074 * grub-core/kern/emu/misc.c
21075 (grub_make_system_path_relative_to_its_root): Fix premature return
21076 when processing non-root ZFS filesystems.
5f8b440b 21077 Reported by Sergio Talens-Oliag.
1eb01cd2 21078
2d5fed60
RM
210792010-10-15 Robert Millan <rmh@gnu.org>
21080
21081 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
21082 guarantee compressed ones are processed first.
21083
d0f4c1ea
VS
210842010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21085
21086 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
21087 grub_efiemu_autocore.
21088
d87c681f
VS
210892010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21090
21091 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
21092 rather than 0x1b.
21093 (grub_console_getkey): Use correct jae opcode rather than ja.
21094
219b3564
RM
210952010-10-12 Robert Millan <rmh@gnu.org>
21096
21097 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
21098 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
21099 variable. All references updated.
21100
21101 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
21102
20c6bb7e
VS
211032010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
21104
21105 Correctly distinguish mdraid flavours.
21106
21107 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
21108 (insert_array): New argument raid.
21109 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
21110 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
21111 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
21112
74baff84
VS
211132010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
21114
21115 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
21116 handling of special keys.
21117
3ef068df 211182010-10-02 Aleš Nesrsta <starous@volny.cz>
21119
c7980ad9
VS
21120 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
21121 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 21122
a9455194 211232010-10-02 Aleš Nesrsta <starous@volny.cz>
21124
c7980ad9
VS
21125 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
21126 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
21127 users updated.
a9455194 21128 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 21129 Use right endpoint when querying descriptor.
a9455194 21130
441cfe65
VS
211312010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21132
21133 Clear out 0x80 color bit on EFI.
21134 Tested by: decoder
21135 Reported by: decoder and meta tech.
21136
21137 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
21138 (grub_console_setcolorstate): Clear out 0x80 bit.
21139 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
21140 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
21141 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
21142
bf26bcc4
VS
211432010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
21144
21145 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
21146 Set to "auto".
21147
6e3c515d
VS
211482010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21149
21150 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
21151 mo_file after freeing.
21152
e6d983ba
VS
211532010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21154
21155 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
21156
74ccb5b5
VS
211572010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21158
21159 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
21160 flags.
21161
17821956
VS
211622010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21163
21164 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
21165 usage.
21166
ee74fa48
VS
211672010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
21168
21169 Put terminfo into core on ieee1275 and yeeloong (needed for console).
21170
21171 * gentpl.py: New groups terminfoinkernel and terminfomodule.
21172 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
21173 and terminfo.h when needed.
21174 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
21175 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
21176 (terminfo): Enable only on terminfokernel.
21177 (extcmd): Likewise.
21178 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
21179 * include/grub/lib/arg.h: Likewise.
21180 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
21181 incorrect usage of ->.
21182
aa438e68
VS
211832010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21184
21185 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
21186 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
21187
57994012
VS
211882010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21189
21190 Fix coreboot compilation.
21191
21192 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
21193 Take VBE info into account even if only text is supported.
21194 (fill_vbe_info): Take into account the case when only VGA text
21195 is supported.
21196 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
21197 on coreboot, multiboot and qemu.
21198
2a406611
VS
211992010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21200
21201 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
21202 debug messages.
21203 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
21204
d33613fc
VS
212052010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21206
21207 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
21208 parameters.
21209
44a1b432
VS
212102010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21211
21212 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
21213 if they were BSD-style.
21214
edde54e6
VS
212152010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21216
21217 * grub-core/boot/i386/pc/lnxboot.S: Replace
21218 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
21219 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
21220
b65830fa
VS
212212010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
21222
21223 Write embedding zone using Reed-Solomon.
21224
21225 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
21226 * grub-core/Makefile.am (rs_decoder.S): New target.
21227 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
21228 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
21229 (multiboot): Move to RS part.
21230 (post_reed_solomon): New label.
21231 (grub_boot_drive): Move to non-RS part since it's modified in memory
21232 on boot.
21233 Include rs_decoder.S.
21234 * grub-core/lib/reed_solomon.c: New file.
21235 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
21236 New definition.
21237 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
21238 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
21239 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
21240 * include/grub/partition.h (grub_partition_map): Change prototype of
21241 embed to allow returning additional sectors.
21242 * include/grub/reed_solomon.h: New file.
21243 * util/grub-setup.c (setup): Handle Reed-Solomon.
21244
0b4b227f
CW
212452010-09-28 Colin Watson <cjwatson@ubuntu.com>
21246
21247 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
21248 i386 and x86-64 definedness tests.
21249
f772623b
YB
212502010-09-27 Yves Blusseau <blusseau@zetam.org>
21251
21252 Fix generation of kernel_syms.lst
21253
21254 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
21255 ASM_PREFIX
21256
8e57a6ca
RM
212572010-09-26 Robert Millan <rmh@gnu.org>
21258
21259 Support degraded ZFS arrays in "grub-probe -t device" resolution.
21260
21261 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
21262 the pool is an array of devices, iterate through it and return the
21263 first device that passes a stat() test (instead of blindly returning
21264 the first one).
21265
f9130836
RM
212662010-09-26 Robert Millan <rmh@gnu.org>
21267
21268 Build fixes for GNU/kFreeBSD.
21269
21270 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
21271 to programs that require ZFS conversion.
21272 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
21273 kernels that don't have FLOPPY_MAJOR.
21274
96510faf
BC
212752010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
21276
21277 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
21278
449333eb
BC
212792010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
21280
21281 Fix grub-emu build.
21282
21283 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
21284 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
21285 mdraid09 and mdraid1x.
21286
e1fd1939
CW
212872010-09-24 Colin Watson <cjwatson@ubuntu.com>
21288
21289 Re-enable grub-extras.
21290
21291 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
21292 avoid confusing Automake. Run autogen only twice, once for the top
21293 level and once for grub-core. Add Makefile.util.def and
21294 Makefile.core.def from extra modules to the appropriate autogen
21295 invocations. If Makefile.common exists in an extra module, include
21296 it in both Makefile.util.am and grub-core/Makefile.core.am;
21297 similarly, include any Makefile.util.common file in Makefile.util.am
21298 and any Makefile.core.common file in grub-core/Makefile.core.am.
21299 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
21300 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
21301 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
21302 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
21303
21304 * gentpl.py (gvar_add): Turn GVARS into a set.
21305 (global_variable_initializers): Sort global variables on output.
21306 (vars_init): New function.
21307 (first_time): Likewise.
21308 (library): Ensure that non-global variable initialisations are
21309 emitted before the first time we emit code for a library block.
21310 Append to variables rather than setting them. Only emit
21311 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
21312 each conditional path.
21313 (program): installdir() emits an Autogen macro, so must be passed to
21314 var_add rather than gvar_add.
21315 (data): Likewise.
21316 (script): Likewise.
21317 (rules): New function, centralising handling for different target
21318 types. Set up Guile association lists for first_time and vars_init,
21319 and send most output to a diversion so that variable initialisations
21320 can be emitted first.
21321 (module_rules): Use new rules function.
21322 (kernel_rules): Likewise.
21323 (image_rules): Likewise.
21324 (library_rules): Likewise.
21325 (program_rules): Likewise.
21326 (script_rules): Likewise.
21327 (data_rules): Likewise.
21328
21329 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
21330
21331 * .bzrignore: Add contrib and grub-core/contrib. Remove
21332 grub-core/Makefile.gcry.am.
21333
1d12cf29
YB
213342010-09-24 Yves Blusseau <blusseau@zetam.org>
21335
21336 * grub-core/lib/LzFind.c: Add missing include.
21337 * grub-core/lib/LzmaEnc.c: Likewise.
21338 * grub-core/script/lexer.c: Likewise.
21339 * grub-core/script/yylex.l: Likewise.
21340 * util/grub-macho2img.c: Likewise.
21341 * util/grub-menulst2cfg.c: Likewise.
21342 * util/grub-mklayout.c: Likewise.
21343 * util/grub-mkpasswd-pbkdf2.c
21344 * util/grub-mkrelpath.c: Likewise.
21345 * util/resolve.c: Likewise.
21346
dd363028
BC
213472010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
21348
21349 * Makefile.util.def (example_unit_test): Add
21350 grub-core/gnulib/libgnu.a.
21351
f5a109e2
GS
213522010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
21353
21354 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
21355
6d0fa83c
VS
213562010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
21357
21358 Support xz compression on yeeloong.
21359
21360 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
21361 * configure.ac: Check for LZMA.
21362 * grub-core/Makefile.core.def (xz_decompress): New target.
21363 (none_decompress): Likewise.
21364 * grub-core/boot/decompressor/minilib.c: New file.
21365 * grub-core/boot/decompressor/none.c: Likewise.
21366 * grub-core/boot/decompressor/xz.c: Likewise.
21367 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
21368 * grub-core/kern/mips/cache_flush.S: Likewise.
21369 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
21370 * grub-core/kern/mips/startup.S: Move first stage to ...
21371 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
21372 nomacro.
21373 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
21374 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
21375 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
21376 Allocate statically.
21377 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
21378 Allocate statically or use scratch. Don't check CRC32.
21379 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
21380 Allocate statically. Don't check CRC32.
21381 * include/grub/decompressor.h: New file.
21382 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
21383 Removed.
21384 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
21385 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
21386 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
21387 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
21388 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
21389 * util/grub-mkimage.c (grub_compression_t): New type.
21390 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
21391 (image_target_desc): New field default_compression.
21392 (image_targets): Adjust yeeloong targets.
21393 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
21394 (compress_kernel): New parameter comp.
21395 (generate_image): Likewise. Handle new compression case.
21396 (options): New option --compression
21397 (help): Likewise.
21398 (main): Handle new option.
21399
1b655af6
GS
214002010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
21401
21402 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
21403
8f03f0b5
CW
214042010-09-22 Colin Watson <cjwatson@ubuntu.com>
21405
21406 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
21407 typo in __i386__ conditional.
21408
7835dfd3
VS
214092010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
21410
21411 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
21412 include.
21413
e255597e
VS
214142010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
21415
6d0fa83c 21416 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
21417
21418 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
21419 new tags as supported.
21420 (acpiv2_size): New function.
21421 (grub_multiboot_get_mbi_size): Take new tags into account.
21422 (grub_multiboot_make_mbi): Add new tags.
21423 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 21424
6cc14051 214252010-09-21 Aleš Nesrsta <starous@volny.cz>
21426
21427 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
21428 Added missing configuration of USB device.
21429
df7769d8
CW
214302010-09-21 Colin Watson <cjwatson@ubuntu.com>
21431
21432 * grub-core/normal/menu_entry.c (run): Make sure we always return
21433 a value.
21434
b031012d
CW
214352010-09-21 Colin Watson <cjwatson@ubuntu.com>
21436
21437 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
21438 NumberOfPages is UINT64 according to the UEFI specification, not
21439 UINTN. Fix printf format.
21440
174de8f3
CW
214412010-09-21 Colin Watson <cjwatson@ubuntu.com>
21442
21443 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
21444 `err' to grub_usb_err_t.
21445 Reported and tested by: KESHAV P.R.
21446
d7dbe923
CW
214472010-09-21 Colin Watson <cjwatson@ubuntu.com>
21448
21449 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
21450 tpart non-const, so that we can assign to it. (Since this is a
21451 typedef, the constness refers to the pointer rather than what it
21452 points to.)
21453
8d5e2af3
CW
214542010-09-21 Colin Watson <cjwatson@ubuntu.com>
21455
21456 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
21457 $(top_srcdir)/grub-core/gnulib as well as
21458 $(top_builddir)/grub-core/gnulib.
21459 Reported by: KESHAV P.R.
21460
5c527783
CW
214612010-09-21 Colin Watson <cjwatson@ubuntu.com>
21462
21463 * util/grub-install.in: Fix the bootloader ID option to be
21464 consistently --bootloader-id, not --bootloader_id.
21465 Reported by: KESHAV P.R.
21466
d309a16e
CW
214672010-09-21 Colin Watson <cjwatson@ubuntu.com>
21468
21469 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
21470 check hash checksum." consistently translatable.
21471
b830cd16
YB
214722010-09-21 Yves Blusseau <blusseau@zetam.org>
21473
21474 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
21475 $(top_builddir).
21476
c4fe27a8
CW
214772010-09-21 Colin Watson <cjwatson@ubuntu.com>
21478
21479 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
21480 (GRUB_MOD_INIT): Register sha1sum command.
21481 (GRUB_MOD_FINI): Unregister sha1sum command.
21482
a4c1d277
YB
214832010-09-21 Yves Blusseau <blusseau@zetam.org>
21484
21485 Keep boot and grub directory names in sync with utils scripts
21486
21487 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
21488 * config.h.in: Add previous macros.
21489 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
21490 * util/grub-install.in: Use $bootdir and $grubdir variables.
21491
4eff79d2
CW
214922010-09-21 Colin Watson <cjwatson@ubuntu.com>
21493
21494 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
21495 convert partition names to disk names if the new `convert' parameter
21496 is set.
21497 (grub_util_biosdisk_get_grub_dev): If opening the disk device
21498 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
21499 disk in its own right. This can happen with Xen disk images.
21500
934d7e44
YB
215012010-09-21 Yves Blusseau <blusseau@zetam.org>
21502
21503 * util/grub-editenv.c: Update strings to avoid warnings when generating
21504 grub.pot file.
21505 * util/grub-setup.c: Likewise.
934d7e44 21506
df3367cc
VS
215072010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
21508
21509 * configure.ac: Change version to 1.99~beta0.
21510
77a94e98
VS
215112010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
21512
21513 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21514 Add BADRAM.
21515 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
21516 Likewise.
21517 * include/multiboot.h: Resynced with specification.
21518 * include/multiboot2.h: Likewise.
21519
269004c1
CW
215202010-09-21 Colin Watson <cjwatson@ubuntu.com>
21521
21522 Fix po directory handling.
21523
21524 * configure.ac: Create po/Makefile.in rather than po/Makefile.
21525 * grub-core/gnulib/Makefile.am: Import gettext module.
21526 * m4/gnulib-cache.m4: Likewise.
21527 * m4/gnulib-comp.m4: Likewise.
21528 * m4/gettext.m4: New file, from gnulib.
21529 * m4/glibc2.m4: Likewise.
21530 * m4/iconv.m4: Likewise.
21531 * m4/intdiv0.m4: Likewise.
21532 * m4/intl.m4: Likewise.
21533 * m4/intldir.m4: Likewise.
21534 * m4/intlmacosx.m4: Likewise.
21535 * m4/intmax.m4: Likewise.
21536 * m4/inttypes-pri.m4: Likewise.
21537 * m4/lcmessage.m4: Likewise.
21538 * m4/lib-ld.m4: Likewise.
21539 * m4/lib-link.m4: Likewise.
21540 * m4/lib-prefix.m4: Likewise.
21541 * m4/lock.m4: Likewise.
21542 * m4/nls.m4: Likewise.
21543 * m4/po.m4: Likewise.
21544 * m4/printf-posix.m4: Likewise.
21545 * m4/progtest.m4: Likewise.
21546 * m4/threadlib.m4: Likewise.
21547 * m4/uintmax_t.m4: Likewise.
21548 * m4/visibility.m4: Likewise.
21549 * po/Makefile.am: Remove.
21550 * po/Makefile.in.in: New file, from gettext.
21551 ($(DOMAIN).pot-update): Support POTFILES-shell.
21552 * po/Makevars: New file.
21553 * po/POTFILES-shell: Rename to ...
21554 * po/POTFILES-shell.in: ... this. Update.
21555 * po/POTFILES: Rename to ...
21556 * po/POTFILES.in: ... this. Update.
21557 * po/Rules-quot: New file, from gettext.
21558 * po/boldquot.sed: Likewise.
21559 * po/en@boldquot.header: Likewise.
21560 * po/en@quot.header: Likewise.
21561 * po/insert-header.sin: Likewise.
21562 * po/quot.sed: Likewise.
21563 * po/remove-potcdate.sin: Likewise.
21564
3e0fa5d0
VS
215652010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21566
21567 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
21568
ade9bd66
VS
215692010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21570
21571 * util/grub.d/20_linux_xen.in: Use submenus.
21572
fc55cc4c
VS
215732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21574
21575 Support submenus.
21576
21577 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
21578 parameter submenu. All users updated.
21579 * grub-core/normal/main.c (free_menu): Rename to ...
21580 (grub_normal_free_menu): ... this. Made global.
21581 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
21582 if requested.
21583 * grub-core/normal/menu_entry.c (screen): New field submenu.
21584 (make_screen): Set submenu.
21585 (run): Open new context if requested.
21586 * include/grub/menu.h (grub_menu_entry): New field submenu.
21587 * include/grub/normal.h (grub_normal_free_menu): New proto.
21588
600cedf7
VS
215892010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21590
21591 Menu entries extractor.
21592
21593 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
21594 variants.
21595 (GRUB_MOD_INIT): Register new variants.
21596 (GRUB_MOD_FINI): Unregister new variants.
21597 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
21598 into grub_cmd_legacy_source.
21599 (grub_cmd_legacy_source): Implement extractor variants.
21600 (GRUB_MOD_INIT): Register new variants.
21601 (GRUB_MOD_FINI): Unregister new variants.
21602 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
21603 as an extractor.
21604 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
21605 search as an extractor.
21606 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
21607 test as an extractor.
21608 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
21609 as an extractor.
21610 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
21611 (grub_env_new_context): New function.
21612 (grub_env_context_open): Likewise.
21613 (grub_env_extractor_open): Likewise.
21614 (grub_env_extractor_close): Likewise.
21615 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
21616 grub_extractor_level.
21617 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
21618 * include/grub/env.h (grub_env_extractor_open): New proto.
21619 (grub_env_extractor_close): Likewise.
21620 * include/grub/normal.h (grub_extractor_level): New external variable.
21621
7bda3a87
VS
216222010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21623
21624 Make cutmem accept a region specification.
21625 Suggested by: Samuel Thibault
21626
21627 * grub-core/mmap/mmap.c (parsemem): New function.
21628 (grub_cmd_cutmem): Handle new arguments.
21629
2ea57f88
VS
216302010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21631
21632 New command cutmem.
21633
21634 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
21635 (GRUB_MOD_INIT): Register new command.
21636 (GRUB_MOD_FINI): Unregister new command.
21637
74342e31
VS
216382010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21639
21640 Support some annoying BSD and Minix subpartitions.
21641
21642 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
21643 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
21644 Properly handle concatenation.
21645 * grub-core/kern/device.c (grub_device_iterate): Likewise.
21646 * grub-core/normal/completion.c (iterate_partition): Likewise.
21647 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
21648 contain partition. All users updated.
21649 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
21650 struct.
21651 (grub_openbsdlabel_partition_map): Likewise.
21652 (bsdlabel_partition_map_iterate): Rename to ..
21653 (iterate_real): ... this. New arguments sector, freebsd and pmap.
21654 (bsdlabel_partition_map_iterate): New function.
21655 (netopenbsdlabel_partition_map_iterate): Likewise.
21656 (netbsdlabel_partition_map_iterate): Likewise.
21657 (openbsdlabel_partition_map_iterate): Likewise.
21658 (GRUB_MOD_INIT): Register new partmaps.
21659 (GRUB_MOD_FINI): Unregister new partmaps.
21660 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
21661 (grub_partition_msdos_iterate): ... this. All users updated.
21662 Don't support embedding other than in a minix partition.
21663 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
21664 proto.
21665 * include/grub/partition.h (grub_partition): New field msdostype.
21666 * util/grub-install.in: Handle openbsd and netbsd types being in
21667 part_bsd module.
21668
1e8d555b
VS
216692010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21670
21671 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
21672
21673 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
21674 * grub-core/Makefile.core.def (mdraid): Renamed to ...
21675 (mdraid09): ... this.
21676 (mdraid1x): New module.
21677 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
21678 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
21679
899d8af4
VS
216802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21681
21682 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
21683 vsprintf.
21684
40901acd
CW
216852010-09-20 Colin Watson <cjwatson@ubuntu.com>
21686
21687 * grub-core/commands/efi/lsefimmap.c: Correct header.
21688 * NEWS: Update.
21689
dfe3b247
CW
216902010-09-20 Colin Watson <cjwatson@ubuntu.com>
21691
21692 * util/grub-editenv.c (argp_parser): Don't pass translated strings
21693 as printf format strings; the translations might contain '%' which
21694 could cause a crash.
21695 (main): Likewise.
21696 * util/grub-fstest.c (argp_parser): Likewise.
21697 * util/grub-setup.c (argp_parser): Likewise.
21698 (main): Likewise.
21699
3286a4b4
VS
217002010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21701
21702 Use argp in grub-fstest.
21703
21704 * util/grub-fstest.c: Don't include getopt.h.
21705 Include argp.h.
21706 (root): New variable.
21707 (args_count): Likewise.
21708 (nparm): Likewise.
21709 (num_disks): Likewise.
21710 (images): Likewise.
21711 (cmd): Likewise.
21712 (debug_str): Likewise.
21713 (args): Likewise.
21714 (options): Transformed to argp.
21715 (usage): Removed.
21716 (main): Split argument parsing into ...
21717 (argp_parser): ... this. Changed to argp format.
21718 (argp): New variable.
21719 (main): Use argp_parse.
21720
3dccbe4b
TG
217212010-09-20 Tristan Gingold <gingold@free.fr>
217222010-09-20 Robert Millan <rmh.grub@aybabtu.com>
217232010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21724
21725 * grub-core/commands/efi/lsefimmap.c: New file.
21726 * grub-core/Makefile.core.def (lsefimmap): New module.
21727 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
21728
38c259a7
VS
217292010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21730
21731 Pause the execution (10s max) if any errors are displayed so the user
21732 has a chance to see them.
21733
21734 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
21735 (grub_print_error): Increment grub_err_printed_errors.
21736 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
21737 execution if any errors were displayed.
21738 (show_menu): Remove old code for pause.
21739 * grub-core/normal/menu_entry.c (run): Likewise.
21740 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
21741 users updated.
21742 (grub_normal_get_char_counter): Likewise.
21743 * include/grub/err.h (grub_err_printed_errors): New external variable.
21744 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
21745
f218b09c
VS
217462010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21747
21748 Support multiboot VBE info.
21749
21750 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
21751 Take VBE info into account.
21752 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
21753 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
21754 Call fill_vbe_info when appropriate.
21755 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
21756 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
21757 as supported.
21758 (grub_multiboot_get_mbi_size): Take new tags into account.
21759 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
21760 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
21761 Call fill_vbe_tag when appropriate.
21762 (grub_multiboot_make_mbi): Properly align tags.
21763 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
21764 function.
21765 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
21766 proto.
21767 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
21768
a9cc5438
VS
217692010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21770
21771 Suport manual terminal geometry specification.
21772
21773 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
21774 Save state in grub_ofconsole_terminfo_output.
21775 (grub_ofconsole_term): Use grub_terminfo_getwh.
21776 (grub_ofconsole_getwh): Removed.
21777 * grub-core/term/serial.c (grub_serial_getwh): Removed.
21778 (grub_serial_term): Use grub_terminfo_getwh.
21779 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
21780 (options): New struct.
21781 (OPTION_*): New enum.
21782 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
21783 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
21784 width and height.
21785 (grub_terminfo_getwh): New proto.
21786 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
21787
1a8fed20
VS
217882010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21789
21790 Handle legacy "terminal" command.
21791
21792 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
21793 and FLAG_TERMINAL.
21794 (legacy_commands): Add terminal and title.
21795 (grub_legacy_parse): Handle terminal. Simplify title handling.
21796
41e9c57d
VS
217972010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21798
21799 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
21800 parameters overflow.
21801
61c874c5
CW
218022010-09-20 Colin Watson <cjwatson@ubuntu.com>
21803
21804 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
21805 widthspec.h.
21806
21807 * docs/grub.texi (Shell-like scripting): Document `!'.
21808 (Network): Simplify using new i386-pc-pxe format. Mention
21809 grub-mknetdir.
21810
21811 * NEWS: Update.
21812
943682b4
CW
218132010-09-20 Colin Watson <cjwatson@ubuntu.com>
21814
21815 * Makefile.am (SUBDIRS): Restore "."; it's important to force
21816 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
21817 when needed.
21818
6d3d698d
CW
218192010-09-20 Colin Watson <cjwatson@ubuntu.com>
21820
21821 * grub-core/commands/efi/lsefisystab.c: Correct header.
21822 * grub-core/commands/efi/lssal.c: Likewise.
21823 * grub-core/commands/testload.c: Likewise.
21824
c982589f
CW
218252010-09-20 Colin Watson <cjwatson@ubuntu.com>
21826
21827 * util/grub-mkrescue.in: Add explicit root argument to --set to
21828 prevent the UUID being interpreted as an argument to --set (matches
21829 previous change to prepare_grub_to_access_device).
21830
a63c31b6
CW
218312010-09-20 Colin Watson <cjwatson@ubuntu.com>
21832
21833 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
21834 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
21835 the verbosity of later #ifs.
21836 (find_partition_start): Define this function on FreeBSD too.
21837 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
21838 function.
21839 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
21840 on FreeBSD.
21841
6439b8ee
YB
218422010-09-20 Yves Blusseau <blusseau@zetam.org>
21843
21844 * util/grub-editenv.c: Use argp instead of getopt.
21845
c5930ec8
YB
218462010-09-20 Yves Blusseau <blusseau@zetam.org>
21847
21848 * util/grub-setup.c: Use argp instead of getopt.
21849
15c69261
YB
218502010-09-20 Yves Blusseau <blusseau@zetam.org>
21851
21852 Use gnulib-tool to create gnulib source files.
21853
21854 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
21855 grub-core/gnulib directories
21856 * .bzignore: Add **/.deps and autogenerated gnulib files
21857 * configure.ac: Assign auxiliary directory to build-aux, add invocation
21858 of gnulib macros, add grub-core/gnulib/Makefile
21859 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
21860 include m4 directory to aclocal.
21861 * Makefile.util.def: Remove direct compilation of gnulib source files
21862 and use the new grub-core/gnulib/libgnu.a.
21863 * build-aux/config.rpath: move config.rpath from top directory to
21864 build-aux
21865 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
21866 in gnulib headers
21867 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
21868 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
21869 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
21870 header.
21871 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
21872 string.
21873
e511c9f5
YB
218742010-09-20 Yves Blusseau <blusseau@zetam.org>
21875
21876 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
21877 grub-core/genmod.sh and grub-core/gensyminfo.sh
21878
c2dede05
BC
218792010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
21880
21881 Add a test for echo command options.
21882
21883 * tests/grub_cmd_echo.in: New test.
21884 * Makefile.util.def: Rules for new test.
21885
c55f5018
SJ
218862010-09-20 Szymon Janc <szymon@janc.net.pl>
21887
21888 Remove crc.mod and move crc command to hashsum.mod.
21889 Remove lib/crc.c - users updated to use gcrypt implementation.
21890
21891 * grub-core/commands/crc.c: Removed.
21892 * grub-core/Makefile.core.def (crc): Module removed.
21893 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
21894 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
21895 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
21896 * grub-core/lib/crc.c: Removed.
21897 * include/grub/lib/crc.h: Removed.
21898 * Makefile.util.def (crc): Remove lib/crc.c
21899 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
21900 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
21901 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
21902 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
21903 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
21904 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
21905
e0337366
VS
219062010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
21907
21908 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
21909
742f9232
VS
219102010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
21911
21912 Split config.h for util and core.
21913
21914 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
21915 (ADDR32): Likewise.
21916 (DATA32): Likewise.
21917 (BSS_START_SYMBOL): Likewise.
21918 (END_SYMBOL): Likewise.
21919 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
21920 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
21921 * config.h.in: New file.
21922 * configure.ac: Use config-util.h as config define file.
21923 Rename MACHINE into GRUB_MACHINE. All users updated.
21924 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
21925 updated.
21926 (NESTED_FUNC_ATTR): Likewise.
21927 Substitue new variables.
21928 (COND_HAVE_ASM_USCORE): New conditional.
21929 * grub-core/Makefile.am (ASM_PREFIX): New variable.
21930 (kernel_syms.lst): Use ASM_PREFIX.
21931 * grub-core/kern/emu/console.c: Include config-util.h.
21932 * grub-core/kern/emu/misc.c: Likewise.
21933 * grub-core/kern/emu/mm.c: Likewise.
21934 * include/grub/emu/misc.h: Likewise.
21935 * include/grub/libgcc.h: Likewise.
21936
39feb0e8
VS
219372010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
21938
21939 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
21940 constants usage.
21941 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
21942 Fix GRUB_TERM_KEY_* constants usage.
21943 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
21944
9af6dac3
VS
219452010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
21946
21947 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
21948 print pointer.
21949 * grub-core/bus/usb/uhci.c: Remove empty define.
21950 (grub_uhci_check_transfer): Add missing cast.
21951 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
21952 print pointer.
21953 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
21954 PRIuGRUB_SIZE.
21955 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
21956
d6d94820
VS
219572010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
21958
21959 * grub-core/Makefile.core.def (legacycfg): Add
21960 lib/i386/pc/vesa_modes_table.c on emu.
21961
3572f2b6
BC
219622010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
21963
21964 Reduce number of temporary files generated by build system.
21965
21966 * grub-core/gencmdlist.sh: Removed.
21967 * grub-core/genfslist.sh: Removed.
21968 * grub-core/genhandlerlist.sh: Removed.
21969 * grub-core/genmodsrc.sh: Removed.
21970 * grub-core/genpartmaplist.sh: Removed.
21971 * grub-core/genparttoollist.sh: Removed.
21972 * grub-core/gentermiinallist.sh: Removed.
21973 * grub-core/genvideolist.sh: Removed.
21974
21975 * grub-core/genmod.sh.in: New file.
21976 * grub-core/gensyminfo.sh.in: New file.
21977
21978 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
21979 * conf/Makefile.extra-dist: Update with new files.
21980 * gentpl.py: Remove rules related to unnecessary temporary files.
21981 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
21982 and und-* files.
21983 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
21984 genmod.sh scripts.
21985 * grub-core/bus/usb/uhci.c: Remove empty #define.
21986 * grub-core/genmoddep.awk: Updated with new syminfo format.
21987 * util/bash-completion.d/Makefile.am: Add config.log to
21988 CLEANFILES.
21989
c836b030
YB
219902010-09-19 Yves Blusseau <blusseau@zetam.org>
21991
21992 * Makefile.util.def: Add forgotten $(LIBINTL) library.
21993
2f4e8053
BC
219942010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
21995
21996 * util/grub-mkconfig.in: Check the config script for syntax errors
21997 before saving.
21998
75831c34
CW
219992010-09-19 Colin Watson <cjwatson@ubuntu.com>
220002010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22001
22002 * Makefile.util.def (grub-install): Use util/grub-install.in on all
22003 platforms.
22004 * util/grub-install.in: Add EFI and IEEE1275 support.
22005 * util/i386/efi/grub-install.in: Removed.
22006 * util/ieee1275/grub-install.in: Likewise.
22007
eaf41b25
VS
220082010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
22009
22010 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
22011 (grub_cmd_cmosclean): Likewise.
22012 (GRUB_MOD_INIT): Register command cmosclean.
22013 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
22014 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
22015
1a9130dd
CPE
220162010-09-18 Carles Pina i Estany <carles@pina.cat>
220172010-09-18 Aleš Nesrsta <starous@volny.cz>
220182010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22019
22020 Add keyboard layouts support.
22021
22022 * Makefile.util.def (grub-mklayout): New file.
22023 (grub-kbdcomp): New script.
22024 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
22025 Add keyboard_layouts.h.
22026 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
22027 commands/boot.c on yeeloong.
22028 (keylayouts): New module.
22029 * grub-core/bus/usb/ohci.c
22030 * grub-core/bus/usb/uhci.c
22031 * grub-core/bus/usb/usbhub.c (rescan): New variable.
22032 (grub_usb_add_hub): Poll interrupt pipe for device handling.
22033 (attach_root_port): Likewise.
22034 (poll_nonroot_hub): Likewise.
22035 (grub_usb_poll_devices): Likewise.
22036 (detach_device): Close transfer.
22037 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
22038 function.
22039 (grub_usb_bulk_setup_readwrite): Likewise.
22040 (grub_usb_bulk_finish_readwrite): Likewise.
22041 * grub-core/commands/keylayouts.c: New file.
22042 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
22043 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
22044 aliases.
22045 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
22046 support scancode 2.
22047 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
22048 * include/grub/keyboard_layouts.h: New file.
22049 * util/grub-mklayout.c: New file.
22050 * util/grub-kbdcomp.in: Likewise.
22051
a1d84a5e
VS
220522010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22053
22054 Unify memory types.
22055
22056 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
22057 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
22058 types.
22059 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
22060 (grub_upper_mem): Likewise.
22061 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
22062 * include/grub/memory.h (grub_memory_type_t): New enum.
22063 All users updated.
22064
9696382e
VS
220652010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22066
22067 * grub-core/Makefile.core.def (lsapm): New module.
22068 * grub-core/commands/i386/pc/lsapm.c: New file.
22069 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
22070 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
22071 Likewise.
22072 * include/grub/i386/pc/apm.h: New file.
22073 * include/multiboot.h (multiboot_apm_info): New struct.
22074
220752010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
22076
22077 GRUB-legacy configuration file support.
22078
22079 * Makefile.util.def (grub-menulst2cfg): New util.
22080 * docs/man/grub-menulst2cfg.h2m: New file.
22081 * grub-core/Makefile.core.def (legacycfg): New module.
22082 * grub-core/commands/legacycfg.c: New file.
22083 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
22084 (grub_normal_add_menu_entry): ... this.
22085 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
22086 (grub_normal_set_password): ...this.
22087 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
22088 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
22089 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
22090 * grub-core/lib/legacy_parse.c: New file.
22091 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
22092 * include/grub/i386/pc/vesa_modes_table.h: New file.
22093 * include/grub/legacy_parse.h: Likewise.
22094 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
22095 * util/grub-menulst2cfg.c: New file.
22096
bf8d1338
CW
220972010-09-17 Colin Watson <cjwatson@ubuntu.com>
22098
22099 * grub-core/kern/emu/hostdisk.c
22100 (convert_system_partition_to_system_disk): Initialise node.
22101
9c0bad2e
CW
221022010-09-17 Colin Watson <cjwatson@ubuntu.com>
22103
22104 * grub-core/kern/emu/hostdisk.c
22105 (convert_system_partition_to_system_disk): Fix devmapper memory pool
22106 leak.
22107 Reported and based on patch by: Modestas Vainius.
22108
a939d135
CW
221092010-09-17 Colin Watson <cjwatson@ubuntu.com>
22110
22111 Fix DM-RAID probing with recent versions of device-mapper udev
22112 rules.
22113
22114 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
22115 canonicalise device paths under /dev/mapper/.
22116 (convert_system_partition_to_system_disk): Compare the
22117 uncanonicalised path to /dev/mapper/ rather than the canonicalised
22118 path, since device nodes under /dev/mapper/ are often symlinks.
22119
0f7ee3c9
YB
221202010-09-17 Yves Blusseau <blusseau@zetam.org>
22121
22122 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
22123
10854d0d
YB
221242010-09-16 Yves Blusseau <blusseau@zetam.org>
22125
22126 * configure.ac: Avoid some annoying error messages if freetype-config
22127 program is not found.
22128
108538d8
CW
221292010-09-16 Colin Watson <cjwatson@ubuntu.com>
22130
22131 Support RAID on virtio devices, and others.
22132
22133 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
22134 Rename to ...
22135 [__MINGW32__] (grub_find_device): ... this.
22136 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
22137 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
22138 reasonable default if dir is NULL.
22139 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
22140 ...
22141 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
22142 (grub_guess_root_device): Update callers.
22143 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
22144
22145 * util/raid.c (grub_util_getdiskname): Remove.
22146 (grub_util_raid_getmembers): Use grub_find_device rather than
22147 grub_util_getdiskname.
22148
e5bfc130
CW
221492010-09-16 Colin Watson <cjwatson@ubuntu.com>
22150
22151 * docs/grub.texi (serial): Remove obsolete comment about GRUB
22152 needing to be compiled with serial support.
22153 (ls): Indicate that multiple files are accepted.
22154 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
22155 indicate that multiple files are accepted.
22156
be458ae2
CW
221572010-09-16 Colin Watson <cjwatson@ubuntu.com>
22158
22159 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
22160 libgrub_a_init.c, and util/bash-completion.d/grub.
22161
cb731b5e
VS
221622010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22163
22164 * util/grub-setup.c (setup): Fix incorrect container semantics.
22165
35139e8a
VS
221662010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22167
22168 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
22169 misusage.
22170 Reported by: J. Nick Terry
22171
e50fca4a
VS
221722010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22173
22174 Move embedding routines to partmap sources files.
22175
22176 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
22177 [GRUB_UTIL]: New variable.
22178 (gpt_partition_map_iterate): Set part.parent.
22179 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
22180 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
22181 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
22182 New function.
22183 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
22184 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
22185 (grub_partition_map) [GRUB_UTIL]: New field embed.
22186 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
22187 (setup): Use ->embed.
22188
f00478b7
VS
221892010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22190
22191 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
22192 function.
22193 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
22194 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
22195
2b94e3ff
YB
221962010-09-15 Yves Blusseau <blusseau@zetam.org>
22197
22198 Add function to get completions from usage.
22199
22200 * util/bash-completion.d/grub-completion.bash.in: Add function to get
22201 completions from usage. Use LC_ALL=C to get options properly.
22202
2e04a006
VS
222032010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22204
22205 * grub-core/gnulib/basename-lgpl.c: Imported.
22206 * grub-core/gnulib/basename.c: Likewise.
22207 * grub-core/gnulib/dirname-lgpl.c: Likewise.
22208 * grub-core/gnulib/dirname.c: Likewise.
22209 * grub-core/gnulib/dirname.h: Likewise.
22210 * grub-core/gnulib/stripslash.c: Likewise.
22211
5dcdf93a
VS
222122010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22213
22214 * grub-core/gnulib/error.c: Resynced.
22215 * grub-core/gnulib/getopt.c: Likewise.
22216 * grub-core/gnulib/getopt_int.h: Likewise.
22217 * grub-core/gnulib/regex.h: Likewise.
22218 * grub-core/gnulib/regex_internal.c: Likewise.
22219 * grub-core/gnulib/regex_internal.h: Likewise.
22220
014f47b7
SJ
222212010-09-15 Szymon Janc <szymon@janc.net.pl>
22222
22223 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
22224 CRC calculations and validity checks.
22225 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
22226 calculations.
22227
dd521a4a
SJ
222282010-09-15 Szymon Janc <szymon@janc.net.pl>
22229
22230 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
22231
79c4eeb9
VS
222322010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22233
22234 Fix incorrect echo options handling.
22235 Reported by: Yves Blusseau.
22236
22237 * include/grub/command.h (grub_command_flags_t): New flags
22238 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
22239 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
22240 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
22241
ed80f7d5
VS
222422010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22243
22244 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
22245 users updated.
22246 (GRUB_COMMAND_FLAG_MENU): Likewise.
22247 (GRUB_COMMAND_FLAG_BOTH): Likewise.
22248 (GRUB_COMMAND_FLAG_TITLE): Removed.
22249 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
22250 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
22251 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
22252 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
22253 (grub_command_flags_t): New enum. All users updated.
22254
5fe7620a
SG
222552010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
22256
22257 Fix solaris compilation.
22258
22259 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
22260 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
22261 (grub-emu-list): Likewise.
22262
545b752f
VS
222632010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22264
22265 Remove deprecated root command.
22266
22267 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
22268 updated.
22269
6c1a338c
VS
222702010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22271
22272 * util/i386/pc/grub-setup.c: Merge this ...
22273 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
22274 * util/grub-setup.c: ... into this.
22275 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
22276 New struct.
22277
222782010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22279
22280 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
22281 possible.
22282
d2ea4551
VS
222832010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22284
22285 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
22286 allocate p.
22287
3c3b5040
VS
222882010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22289
22290 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
22291 explicit root argument to set to prevent UUID to be interpreted as
22292 argument to set.
22293
b71c3fae
VS
222942010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22295
22296 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
22297
275433e6
VS
222982010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22299
22300 Don't export grub_gate_a20.
22301
22302 * grub-core/kern/i386/pc/init.c: Remove leftovers.
22303 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
22304 to ...
22305 (grub_gate_a20): ... this. All users updated.
22306 * include/grub/i386/pc/init.h: Removed. All users updated.
22307
a5dbb1f1
VS
223082010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22309
22310 Create euro.pf2 which supports most European languages.
22311
22312 * Makefile.am (grubdata_DATA): Add euro.pf2.
22313 (euro.pf2): New target.
22314 (CLEANFILES): Add euro.pf2.
22315
62a747cb
VS
223162010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
22317
22318 * configure.ac: Disable emu-usb by default to prevent inadvertent
22319 device takeover.
22320
608e43b1
VS
223212010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22322
22323 Disable usbserial on grub-emu since our libusb code isn't good enough
22324 yet.
22325
22326 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
22327 (usbserial_pl2303): Likewise.
22328 (usbserial_ftdi): Likewise.
22329
94564f81
VS
223302010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22331
22332 * include/grub/disk.h (grub_disk): Remove has_partitions.
22333 All users updated.
22334 * disk/loopback.c (grub_loopback): Remove has_partitions.
22335 All users updated.
22336 (options): Remove partitions. All users updated.
22337 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
22338 * util/i386/pc/grub-setup.c (setup): copy partition table only when
22339 actual partition table is found.
22340
3352800b
VS
223412010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22342
22343 Remove readability checks (too many false negatives).
22344
22345 * util/grub-install.in: Remove readability checks.
22346 * util/grub-mkconfig.in: Likewise.
22347 * util/grub.d/10_hurd.in: Likewise.
22348 * util/grub.d/10_kfreebsd.in: Likewise.
22349 * util/grub.d/10_linux.in: Likewise.
22350 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
22351 way.
22352
2419f17a
VS
223532010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22354
22355 Enable acpi shutdown on all ACPI platforms.
22356
22357 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
22358 on coreboo, multiboot and EFI.
22359 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
22360 (grub_acpi_halt): Likewise.
22361 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
22362 (grub_cmd_halt): Don't call grub_acpi_halt directly.
22363 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
22364 * grub-core/lib/i386/halt.c (grub_halt)
22365 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
22366
0575c7c3
VS
223672010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22368
22369 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
22370 context.
22371
54ac3cd1
VS
223722010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22373
22374 * grub-core/video/efi_gop.c: Fix over-80-chars line.
22375 * grub-core/video/efi_uga.c: Likewise.
22376
b2a30ac5
VS
223772010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22378
22379 Filter devaliases and never open same device twice.
22380
22381 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
22382 (last_ihandle): Likewise.
22383 (ofdisk_hash_ent): New member shortest.
22384 (ofdisk_hash_add): Add canonical path too.
22385 (scan): New function.
22386 (grub_ofdisk_iterate): Iterate over hashed entries.
22387 (compute_dev_path): Don't add :0.
22388 (grub_ofdisk_open): Don't really open the disk.
22389 (grub_ofdisk_close): Avoid closing unrelated disk.
22390 (grub_ofdisk_read): Implement reopen logic.
22391 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
22392 New function.
22393 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
22394 New proto.
22395
fb53b340
VS
223962010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22397
22398 Fix sparc64.
22399
22400 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
22401 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
22402 right address. Add sparc64_ieee1275_ldflags.
22403 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
22404 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
22405 to grub_host_to_target_addr
22406 (load_image): Likewise.
22407
f452b040
VS
224082010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22409
22410 * grub-core/normal/completion.c (complete_file): Handle device
22411 containing slash.
22412 Fix based on patch by Doug Nazar.
22413
9b5b2541
VS
224142010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22415
22416 grub-mknetdir script.
22417
22418 * Makefile.util.def (grub-mknetdir): New module.
22419 * tests/util/grub-shell.in: Support boot=net
22420 * util/grub-mknetdir.in: New file.
22421
9d2be652
VS
224222010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22423
22424 videoinfo on non-vbe.
22425
22426 * grub-core/Makefile.core.def (vbeinfo): Removed.
22427 (vbetest): Removed.
22428 (videoinfo): New module.
22429 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
22430 * grub-core/commands/i386/pc/vbetest.c: Removed.
22431 * grub-core/commands/videoinfo.c: New file.
22432 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
22433 specification.
22434 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
22435 as vbetest.
22436 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
22437 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
22438 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
22439 mode_number. New parameter mode. All users updated.
22440 (grub_video_gop_iterate): New function.
22441 (grub_video_efi_gop): New member iterate.
22442 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
22443 (grub_vbe_set_video_mode): Remove setting useless fields.
22444 (vbe2videoinfo): New function.
22445 (grub_video_vbe_iterate): Likewise.
22446 (grub_video_vbe_setup): Use vbe2videoinfo.
22447 (grub_video_vbe_print_adapter_specific_info): New function.
22448 (grub_video_vbe_adapter): New fields iterate and
22449 print_adapter_specific_info.
22450 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
22451 All users updated.
22452 (grub_video_mode_info): New field mode_number.
22453 (grub_video_adapter): New fields iterate and
22454 print_adapter_specific_info.
22455
179503f5
TG
224562010-09-13 Tristan Gingold <gingold@free.fr>
224572010-09-13 Robert Millan <rmh.grub@aybabtu.com>
224582010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22459
22460 * grub-core/commands/efi/lsefisystab.c: New file.
22461 * grub-core/commands/efi/lssal.c: Likewise.
22462 * grub-core/Makefile.core.def (lsacpi): New module.
22463 (lsefisystab): Likewise.
22464 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
22465 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
22466 (grub_efi_sal_system_table): New struct.
22467 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
22468 (grub_efi_sal_system_table_memory_descriptor): Likewise.
22469 (grub_efi_sal_system_table_platform_features): Likewise.
22470 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
22471 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
22472 (grub_efi_sal_system_table_ap_wakeup): Likewise.
22473 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
22474
cf9827de
VS
224752010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22476
22477 Support explicit user claim that a device is BIOS-visible.
22478
22479 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
22480 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
22481 * grub-core/kern/emu/hostdisk.c
22482 (convert_system_partition_to_system_disk): Support mdX.
22483 (find_system_device): New parameter add. All users updated.
22484 (grub_util_biosdisk_is_present): New function.
22485 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
22486 proto.
22487
53f0eb1f
VS
224882010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
22489
22490 Search hints support.
22491
22492 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
22493 All users updated.
22494
b23ffd70
YB
224952010-09-13 Yves Blusseau <blusseau@zetam.org>
22496
22497 Bash completion script for util commands
22498
22499 * Makefile.am: Add util/bash-completion.d directory
22500 * configure.ac: Likewise.
22501 * util/bash-completion.d/Makefile.am: New file.
22502 * util/bash-completion.d/grub-completion.bash.in: Likewise.
22503
d547dc28
VS
225042010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22505
22506 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
22507 (print_backlog): set backlog_ucs4 and backlog_glyphs.
22508 Reported by: Yves Blusseau.
22509
2fc8ccb9
VS
225102010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22511
22512 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
22513 partition size and offset.
22514
d8a84076
VS
225152010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22516
22517 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
22518
84fb3b3d
VS
225192010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22520
22521 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
22522
768ec2e2
VS
225232010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22524
22525 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
22526 (grub_xvasprintf): Likewise.
22527
4870900f
VS
225282010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22529
22530 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
22531
faca6bec
VS
225322010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
22533
22534 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
22535 args ending with NULL.
22536
225372010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
22538
22539 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
22540 pointer.
22541
3c70f225
SJ
225422010-09-11 Szymon Janc <szymon@janc.net.pl>
22543
22544 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
22545
4df7996d
VS
225462010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22547
22548 Shutdown using ACPI.
22549
22550 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
22551 * grub-core/commands/acpihalt.c: New file.
22552 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
22553 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
22554 (grub_acpi_halt): New proto.
22555 (GRUB_ACPI_SLP_EN): New const.
22556 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
22557 (GRUB_ACPI_OPCODE_*): New enum.
22558 (GRUB_ACPI_EXTOPCODE_*): Likewise.
22559
126b4c32
TG
225602010-09-11 Tristan Gingold <gingold@free.fr>
225612010-09-11 Robert Millan <rmh.grub@aybabtu.com>
225622010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22563
22564 * commands/lsacpi.c: New file.
22565 * grub-core/Makefile.core.def (lsacpi): New module.
22566 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
22567 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
22568 (grub_acpi_madt_entry_header): New struct.
22569 (grub_acpi_madt): Likewise.
22570 (grub_acpi_madt_entry_interrupt_override): Likewise.
22571 (grub_acpi_madt_entry_sapic): Likewise.
22572 (grub_acpi_madt_entry_lsapic): Likewise.
22573 (grub_acpi_madt_entry_platform_int_source): Likewise.
22574 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
22575 (PRIuGRUB_UINT32_T): Likewise.
22576 (PRIxGRUB_UINT64_T): Likewise.
22577
1aa4fe88
VS
225782010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22579
22580 Implement loading palette on ieee1275_fb.
22581
22582 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
22583 (have_setcolors): Likewise.
22584 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
22585 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
22586 (grub_video_ieee1275_set_palette): Implement.
22587
25761e13
VS
225882010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
225892010-09-11 Colin Watson <cjwatson@ubuntu.com>
22590
22591 * util/grub-install.in (grub_partition): New variable.
22592 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
22593 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
22594 Fixes a bug reported by Yves Blusseau.
22595
050abaea
VS
225962010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
22597
22598 Fix emu on mipsel.
22599
22600 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
22601 =grub_cpu_flush_cache on all mips and not only yeeloong.
22602 * configure.ac (COND_mips): New conditional.
22603 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
22604 platforms.
22605 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
22606 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
22607 [GRUB_LINKER_HAVE_INIT]: New function.
22608 (grub_emu_post_init): Likewise.
22609 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
22610 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
22611 * include/grub/cache.h (_mips): Include mips/cache.h.
22612 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
22613 LVM and RAID prototypes.
22614 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
22615 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
22616 function.
22617
5ed7d816
CW
226182010-09-10 Colin Watson <cjwatson@ubuntu.com>
22619
22620 * util/grub-install.in: Don't try to verify core.img until after
22621 running grub-mkimage to create it.
22622
90367e04
RM
226232010-09-10 Robert Millan <rmh@gnu.org>
22624
22625 * util/grub.d/10_hurd.in: Add misc readability checks.
22626 * util/grub.d/10_kfreebsd.in: Likewise.
22627 * util/grub.d/10_linux.in: Likewise.
22628
c452fa66
CW
226292010-09-10 Colin Watson <cjwatson@ubuntu.com>
22630
22631 * util/grub-install.in: ${imgext} won't be defined here until the
22632 install branch is merged. For the meantime, only verify core.img on
22633 i386-pc and sparc64-ieee1275 platforms.
22634
c38fe9f4
RM
226352010-09-10 Robert Millan <rmh@gnu.org>
22636
22637 Solaris support in grub_find_zpool_from_dir(). Thanks
22638 Seth Goldberg for referring to getextmntent() facility.
22639
22640 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
22641 `sys/mkdev.h'.
22642 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
22643 `<sys/mnttab.h>'.
22644 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
22645 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
22646 method for finding zpool name.
22647
905f7773
CW
226482010-09-10 Colin Watson <cjwatson@ubuntu.com>
22649
22650 grub-fstest needs the host and hostfs modules while other utilities
22651 actively require those modules to be absent, so grub-fstest needs
22652 its own initialisation and finalisation code.
22653
22654 * Makefile.am (grub_fstest.pp): New target.
22655 (grub_fstest_init.lst): Likewise.
22656 (grub_fstest_init.c): Likewise.
22657 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
22658
fb90b546
RM
226592010-09-10 Robert Millan <rmh@gnu.org>
22660
22661 * configure.ac: Check for `struct statfs.f_fstypename' and
22662 `struct statfs.f_mntfromname'.
22663
22664 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
22665 kFreeBSD-specific code.
22666
66d4bea5
RM
226672010-09-10 Robert Millan <rmh@gnu.org>
22668
22669 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
22670 on ZFS. Now non-main filesystems are supported as / too.
22671
b6a690ee
CW
226722010-09-09 Colin Watson <cjwatson@ubuntu.com>
22673
22674 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
22675 and grub-core/disk/host.c to ...
22676 (grub-fstest): ... here. Having the host disk implementation
22677 present confuses grub-probe and other utility programs.
22678
22679 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
22680 when writing to a file, not when writing to stdout.
22681
8901b00c 226822010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
22683
22684 * tests/partmap_test.in: New test for partitions.
22685 * Makefile.util.def: Rules for new test.
22686
7bf45fdd
RM
226872010-09-09 Robert Millan <rmh@gnu.org>
22688
22689 * util/grub-probe.c (probe): Fix a pair of unhandled error
22690 conditions.
22691
4dfbc574
RM
226922010-09-09 Robert Millan <rmh@gnu.org>
22693
22694 Basic Btrfs support (detection and UUID).
22695
22696 * grub-core/fs/btrfs.c: New file.
22697 * Makefile.util.def (library): Register btrfs.c.
22698 * grub-core/Makefile.core.def: Likewise.
22699
6b8e78ae
RM
227002010-09-08 Robert Millan <rmh@gnu.org>
22701
22702 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
22703 with (optional) parameters to specify device and relative path.
22704 * util/grub-install.in: Use is_path_readable_by_grub() to
22705 verify readability of a few critical files.
22706 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
22707 verify readability of grub.cfg.new.
22708
27f21a8b
VS
227092010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
22710
22711 Split minix.mod into minix.mod and minix2.mod.
22712
22713 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
22714 * grub-core/Makefile.core.def (minix2): New module.
22715 * grub-core/fs/minix.c: Use definitions instead of runtime version
22716 checking.
22717 * grub-core/fs/minix2.c: New file.
22718
c0e53ea5
YB
227192010-09-08 Yves Blusseau <blusseau@zetam.org>
22720
22721 Add new --boot-directory option to replace --root-directory
22722
22723 * util/grub-install.in: Add new --boot-directory option
22724 * util/grub-reboot.in: Likewise.
22725 * util/grub-set-default.in: Likewise.
22726
b9fe6ea2
YB
227272010-09-08 Yves Blusseau <blusseau@zetam.org>
22728
22729 * util/grub-mkconfig.in: Use new variable.
22730
d87aedff
YB
227312010-09-08 Yves Blusseau <blusseau@zetam.org>
22732
22733 * configure.ac: Define some useful variables.
22734
e55e8495
VS
227352010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
22736
22737 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
22738 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
22739 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
22740 Use terminfo and don't use cursor-on/cursor-off unless it's known
22741 to work.
22742 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
22743 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
22744
6fa6d675
CW
227452010-09-08 Colin Watson <cjwatson@ubuntu.com>
22746
22747 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
22748 starts with "(,", fill the drive containing the loaded image in
22749 between those two characters, but expect that a full partition
22750 specification including partition map names will follow.
22751
92f2aef0
RM
227522010-09-08 Robert Millan <rmh@gnu.org>
22753
22754 * configure.ac: Remove `--enable-grub-fstest' option.
22755 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
22756
22757 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
22758 `grub-fstest' instead of `grub-probe' for readability verification.
22759 * util/grub-probe.c (probe): Remove readability verification kludge.
22760
99fd620d
RM
227612010-09-08 Robert Millan <rmh@gnu.org>
22762
22763 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
22764 initializing `GRUB_FS'.
22765
058e30ac 227662010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
22767
22768 Not command (!) support to GRUB script.
22769
22770 * tests/grub_script_not.in: New test.
22771 * Makefile.util.def: Rules for new test.
22772
22773 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22774 ! command as a special case.
22775 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
22776
b61d05ed 227772010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
22778
058e30ac 22779 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
22780 grub_free.
b61d05ed 22781
4d69c786 227822010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
22783
22784 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
22785
aa3119c4 227862010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
22787
22788 * docs/grub.texi (Shell-like scripting): Documentation for break,
22789 continue, shift and return commands.
22790
db0f7e3d
VS
227912010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
22792
22793 Rename CD-ROM to cd on BIOS.
22794
22795 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
22796 "cd".
22797 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
22798
88b87c93
VS
227992010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22800
22801 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
22802 * util/grub-probe.c (main): Likewise.
22803 * util/i386/pc/grub-setup.c (main): Likewise.
22804 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
22805 Reported and debugged by: alexxy
22806
294f324d
VS
228072010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22808
22809 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
22810 diagnostic info.
22811
d7ee3441
JS
228122010-09-05 Jo Shields <directhex@apebox.org>
22813
22814 * util/grub.d/30_os-prober.in: Add missing classes.
22815
d7e06c1f
VS
228162010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22817
22818 * docs/grub.texi (Theme file format): Document new position format.
22819
fc157e53
VS
228202010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22821
22822 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
22823 a table. Use @code instead of @verbatim.
22824
506e9a1c
CB
228252010-09-05 Colin D Bennett <colin@gibibit.com>
22826
22827 Gfxmenu documentation.
22828
22829 * docs/grub.texi (Theme file format): New chapter.
22830
f0aff67c
SJ
228312010-09-05 Szymon Janc <szymon@janc.net.pl>
22832
22833 * grub-core/Makefile.core.def (xzio): New module.
22834 * grub-core/io/xzio.c: New file.
22835 * grub-core/lib/xzembed/xz.h: New file (from xembed).
22836 * grub-core/lib/xzembed/xz_config.h: Likewise.
22837 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
22838 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
22839 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
22840 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
22841 * grub-core/lib/xzembed/xz_private.h: Likewise.
22842 * grub-core/lib/xzembed/xz_stream.h: Likewise.
22843 * include/grub/file.h (grub_file_filter_id): New compression filter
22844 GRUB_FILE_FILTER_XZIO.
22845
82a85062
VS
228462010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22847
22848 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
22849 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
22850 size.
22851
3579415d
VS
228522010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22853
22854 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
22855 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
22856
5124ae6d
VS
228572010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22858
22859 Uncompressed checksum support.
22860
22861 * grub-core/commands/hashsum.c (options): Add option --uncompress.
22862 (check_list): New parameter uncompress.
22863 (grub_cmd_hashsum): Handle --uncompress.
22864
9aadb3d1
VS
228652010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22866
22867 Reintroduce testload.
22868
22869 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
22870 from here ...
22871 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
22872 (GRUB_MOD_INIT): New function.
22873 (GRUB_MOD_FINI): Likewise.
22874 * grub-core/Makefile.core.def (testload): New module.
22875
a17792c3
SJ
228762010-09-05 Szymon Janc <szymon@janc.net.pl>
22877
22878 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
22879 (uint8_t): New type.
22880 (uint16_t): Likewise.
22881 (uint32_t): Likewise.
22882 (uint64_t): Likewise.
22883
b81e40a3
SJ
228842010-09-05 Szymon Janc <szymon@janc.net.pl>
22885
22886 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
22887
fc2ef117
VS
228882010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
22889
22890 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
22891 Made static.
22892 (grub_gzfile_open): Removed. All users updated.
22893 (GRUB_MOD_INIT): New function.
22894 (GRUB_MOD_FINI): Likewise.
22895 * grub-core/kern/file.c (grub_file_filters_all): New variable.
22896 (grub_file_filters_enabled): Likewise.
22897 (grub_file_open): Handle filters.
22898 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
22899 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
22900 * include/grub/file.h (grub_file_filter_id_t): New type.
22901 (grub_file_filter_t): Likewise.
22902 (grub_file_filters_all): New extern variable.
22903 (grub_file_filters_enabled): Likewise.
22904 (grub_file_filter_register): New inline function.
22905 (grub_file_filter_unregister): Likewise.
22906 (grub_file_filter_disable): Likewise.
22907 (grub_file_filter_disable_compression): Likewise.
22908 * include/grub/gzio.h: Removed.
22909
35ee15e0
BC
229102010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
22911
22912 Filename expansion support for wildcards in GRUB script.
22913
22914 * tests/grub_script_expansion.in: New test.
22915 * Makefile.util.def: Rule for new test.
22916
22917 * grub-core/commands/wildcard.c: New file, implements filename
22918 expansion support for GRUB script.
22919 * grub-core/Makefile.core.def: Rule update for regexp.mod.
22920 * grub-core/script/argv.c: Cosmetic changes.
22921 * grub-core/script/execute.c (grub_script_arglist_to_argv):
22922 Refactored to perform wildcard expansion on arguments.
22923 * include/grub/script_sh.h (grub_script_wildcard_translator): New
22924 struct.
22925
22926 * tests/util/grub-shell.in: Fix quoting for read input.
22927
5f0c4aca
BC
229282010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
22929
22930 Support for updating environment variables with matched substrings
22931 of regexp.
22932
22933 * tests/grub_cmd_regexp.in: New test.
22934 * Makefile.util.def: Rule for new test.
22935
22936 * grub-core/commands/regexp.c: New option -s to update environment
22937 variables with regexp matches.
22938
3759a35f
SJ
229392010-09-04 Szymon Janc <szymon@janc.net.pl>
22940
22941 * include/grub/file.h (grub_file): New member not_easly_seekable.
22942 (grub_file_seekable): New inline function.
22943 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
22944 easily seekable.
22945 (grub_gzio_open): Set not_easly_seekable.
22946 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
22947 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
22948
ed8c6dec
BC
229492010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
22950
22951 Support for options to appear multiple times on cmdline.
22952
22953 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
22954 * grub-core/commands/extcmd.c: Support for repeatable option.
22955 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
22956 repeatable option support.
22957
22958 Refactor menuentry into a regular command.
22959
22960 * grub-core/commands/menuentry.c: New file, menuentry command
22961 implementation.
22962 * grub-core/Makefile.core.def: Rule update for normal.mod.
22963 * grub-core/normal/main.c: Moved menuentry creation to
22964 grub-core/commands/menuentry.c.
22965 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
22966 (grub_menu_execute_entry_real): Removed.
22967 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
22968 function.
22969 (grub_script_execute_menuentry): Removed.
22970 * grub-core/script/parser.y (menuentry): Removed.
22971 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
22972 * grub-core/script/yylex.l (menuentry): Removed.
22973 * include/grub/menu.h (grub_menu_init): New prototype.
22974 (grub_menu_fini): New prototype.
22975 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
22976 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
22977 (grub_script_execute_sourcecode): New prototype.
22978
dacd0cf0
BC
229792010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
22980
22981 "return" command for GRUB script functions.
22982
22983 * tests/grub_script_return.in: New test.
22984 * Makefile.util.def: Rules for new test.
22985
22986 * grub-core/script/execute.c (grub_script_return): New function.
22987 * grub-core/script/main.c: Register/unregister return commaond.
22988 * include/grub/script_sh.h (grub_script_return): New prototype.
22989
52e72f9d
BC
229902010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
22991
22992 "setparams" command to update positional parameters.
22993
22994 * tests/grub_script_setparams.in: New test.
22995 * Makefile.util.def: Rules for new test.
22996
22997 * grub-core/script/argv.c (grub_script_argv_make): New function.
22998 * grub-core/script/execute.c (replace_scope): New function.
22999 (grub_script_setparams): New function.
23000 * grub-core/script/lexer.c: Remove unused variables.
23001 * grub-core/script/main.c: Register/unregister setparams command.
23002 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
23003 (grub_script_setparams): New prototype.
23004
25b60c91
BC
230052010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23006
23007 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
23008 grub_free order.
23009
37e7bf68
BC
230102010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23011
23012 Support for passing block of commands as an argument to extcmds.
23013
23014 * Makefile.util.def: Rules for new test.
23015 * tests/grub_script_blockarg.in: New test.
23016 * grub-core/tests/test_blockarg.c: New file, block argument
23017 command used in the test.
23018
23019 * include/grub/extcmd.h (grub_extcmd_context): New struct.
23020 (grub_register_extcmd_prio): New function prototype.
23021 (grub_extcmd_dispatcher): New function prototype.
23022 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
23023 type.
23024 * include/grub/script_sh.h (struct grub_script): New members
23025 `children', `next_siblings' and `refcnt' for block arguments and
23026 reference counting.
23027 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
23028 (grub_script_arg): New member `script' for block argument.
23029 (grub_script_argv): New member `script' for block argument.
23030 (grub_parser_param): New member `scripts' for block argument.
23031 (grub_script_mem_free): New extern function prototype.
23032 (grub_script_ref): New function prototype.
23033 (grub_script_unref): New function prototype.
23034
23035 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
23036 extcmd form to support block arguments.
23037 * grub-core/script/argv.c: Block arguments support.
23038 * grub-core/script/execute.c: Likewise.
23039 * grub-core/script/lexer.c: Likewise.
23040 * grub-core/script/main.c: Likewise.
23041 * grub-core/script/script.c: Likewise.
23042 * grub-core/script/parser.y: Likewise. New `block' and `block0'
23043 non-terminals.
23044
23045 * grub-core/commands/acpi.c: Update extcmd implementations with
23046 grub_extcmd_context_t.
23047 * grub-core/commands/cat.c: Likewise.
23048 * grub-core/commands/echo.c: Likewise.
23049 * grub-core/commands/extcmd.c: Likewise.
23050 * grub-core/commands/hashsum.c: Likewise.
23051 * grub-core/commands/hdparm.c: Likewise.
23052 * grub-core/commands/help.c: Likewise.
23053 * grub-core/commands/hexdump.c: Likewise.
23054 * grub-core/commands/i386/cpuid.c: Likewise.
23055 * grub-core/commands/i386/pc/drivemap.c: Likewise.
23056 * grub-core/commands/i386/pc/halt.c: Likewise.
23057 * grub-core/commands/i386/pc/sendkey.c: Likewise.
23058 * grub-core/commands/iorw.c: Likewise.
23059 * grub-core/commands/keystatus.c: Likewise.
23060 * grub-core/commands/loadenv.c: Likewise.
23061 * grub-core/commands/ls.c: Likewise.
23062 * grub-core/commands/lspci.c: Likewise.
23063 * grub-core/commands/memrw.c: Likewise.
23064 * grub-core/commands/probe.c: Likewise.
23065 * grub-core/commands/search_wrap.c: Likewise.
23066 * grub-core/commands/setpci.c: Likewise.
23067 * grub-core/commands/sleep.c: Likewise.
23068 * grub-core/disk/loopback.c: Likewise.
23069 * grub-core/hello/hello.c: Likewise.
23070 * grub-core/loader/i386/bsd.c: Likewise.
23071 * grub-core/loader/xnu.c: Likewise.
23072 * grub-core/term/gfxterm.c: Likewise.
23073 * grub-core/term/serial.c: Likewise.
23074 * grub-core/tests/lib/functional_test.c: Likewise.
23075
888d1500
BC
230762010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
23077
23078 Multi-line quoted strings support.
23079
23080 * grub-core/script/lexer.c (append_newline): Removed.
23081 (grub_script_lexer_yywrap): Refactored.
23082 (grub_script_lexer_init): Refactored.
23083 * grub-core/script/yylex.l (yywrap): New function.
23084 (grub_lexer_resplit): New function.
23085 (grub_lexer_unput): New function.
23086 * include/grub/script_sh.h (grub_lexer_param): New members, unput
23087 and resplit.
23088 * tests/grub_script_echo1.in: Added few more testcases.
23089
dda060dd
VS
230902010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23091
23092 * grub-core/kern/misc.c: Don't add abort alias in utils.
23093 Reported by: echoline.
23094
6556eba9
BC
230952010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
23096
23097 Add missing files into "make dist" tarball for other platforms.
23098
23099 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
23100 * conf/Makefile.common (dist_noinst_DATA): New variable.
23101 * conf/Makefile.extra-dist: Added missing make dist files.
23102 * grub-core/Makefile.core.def: Likewise.
23103
c8e7bf5f
VS
231042010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23105
23106 Compress grub_prefix.
23107
23108 * grub-core/boot/i386/pc/lnxboot.S: Use
23109 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
23110 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
23111 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
23112 GRUB_MACHINE_PREFIX_END. All users updated.
23113 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
23114 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
23115 + 0x40.
23116 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
23117 * util/grub-mkimage.c (image_target_desc): Change data_end to
23118 prefix_end. All users updated.
23119
a7c00cdb
VS
231202010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
23121
23122 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
23123 value.
23124 (grub_openbsd_boot): Likewise.
23125 (grub_netbsd_boot): Likewise.
23126 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
23127 (grub_xnu_boot): Likewise.
23128
9f915872
VS
231292010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23130
23131 * configure.ac: Clean LIBS variable after tests.
23132
efa1bee7
CW
231332010-09-02 Colin Watson <cjwatson@ubuntu.com>
23134
23135 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
23136
61d720e5
VS
231372010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23138
23139 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
23140 echo if libdevmapper will be used.
23141
ef8e0ec8
IT
231422010-09-02 Ian Turner <Ian.Turner@deshaw.com>
23143
23144 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
23145 constant for the same file.
23146
03e261d8
VS
231472010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23148
23149 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
23150
c2a4eba6
CW
231512010-09-02 Colin Watson <cjwatson@ubuntu.com>
23152
23153 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
23154 grub-core/*.pp.
23155
9056cbf3
CW
231562010-09-02 Colin Watson <cjwatson@ubuntu.com>
23157
23158 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
23159 required by the boot protocol.
23160
23161 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
23162 ebp and edi members.
23163 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
23164 state.ebp and state.edi.
23165 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
23166 %ebp and %edi according to grub_relocator32_ebp and
23167 grub_relocator32_edi respectively.
23168 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
23169 and state.edi.
23170
529cc99a
VS
231712010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23172
23173 Add i386-pc-pxe image target.
23174
23175 * util/grub-mkimage.c (image_target_desc): New enum value
23176 IMAGE_I386_PC_PXE.
23177 (image_targets): New target i386-pc-pxe.
23178 (generate_image): Handle i386-pc-pxe image.
23179
9a093920
VS
231802010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23181
23182 Fix grub_pxe_scan.
23183
23184 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
23185 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
23186 All users updated.
23187 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
23188 (grub_pxe_pxenv): Correct type.
23189
f9cefc4e
CW
231902010-09-01 Colin Watson <cjwatson@ubuntu.com>
23191
23192 * NEWS: Document most of the important changes since 1.98.
23193
4066f57f
CW
231942010-09-01 Colin Watson <cjwatson@ubuntu.com>
23195
23196 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
23197 generated manual page) a little.
23198
da2891f9
CW
231992010-09-01 Colin Watson <cjwatson@ubuntu.com>
23200
23201 * docs/grub.texi: Add myself as an author.
23202
ad717fae
VS
232032010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23204
23205 * Makefile.util.def (libgrub.a): Add missing sunpc.
23206 Reported by: Seth Goldberg.
23207
eefe8abd
VS
232082010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23209
23210 Interrupt wrapping and code simplifications.
23211
9494ef9a
VS
23212 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
23213 x86_noieee1275 which are functionaly equivalent in this case.
23214 (grub-install): Make source on each platform explicit. Enable on
23215 all noemu.
23216 * gentpl.py (x86_efi_pc): Removed group.
23217 (x86_noefi): Likewise.
23218 (i386_noefi): Likewise.
23219 (x86_noieee1275): Likewise.
23220 (i386_noieee1275): Likewise.
23221 (i386_noefi_noieee1275): Likewise.
23222 (i386_pc_qemu_coreboot): Likewise.
23223 (i386_coreboot_multiboot): Likewise.
23224 (i386_pc_coreboot_multiboot_qemu): Likewise.
23225 (x86_noefi_mips): Likewise.
23226 (noieee1275): Likewise.
23227 (ieee1275_mips): Likewise.
23228 (noemu_noieee1275): Likewise.
23229 (cmos): New group.
23230 (usb): Likewise.
23231 (videoinkernel): Likewise.
23232 (videomodules): Likewise.
eefe8abd 23233 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
23234 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
23235 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
23236 include/grub/loader.h, include/grub/msdos_partition.h,
23237 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
23238 include/grub/machine/console.h, include/grub/machine/vga.h,
23239 include/grub/machine/vbe.h, include/grub/machine/init.h,
23240 include/grub/machine/kernel.h, include/grub/cpu/time.h,
23241 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 23242 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
23243 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
23244 * grub-core/Makefile.core.def (kernel): Explicit the source for
23245 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
23246 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
23247 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
23248 Use videoinkernel tag.
23249 (usb): Enable on all usb.
23250 (usbserial_common): Likewise.
23251 (usbserial_pl2303): Likewise.
23252 (usbserial_ftdi): Likewise.
23253 (uhci): Enable on all x86.
23254 (ohci): Enable on all pci.
23255 (cmostest): Enable on all CMOS.
23256 (acpi): Include commands/acpi.c on all platforms.
23257 (halt): Add relevant lib/*/halt.c.
23258 (hdparm): Enable on all pci.
23259 (lspci): Likewise.
23260 (usbtest): Enable on all usb.
23261 (ata): Enable on all pci.
23262 (ata_pthru): Likewise.
23263 (usbms): Enable on all usb.
23264 (usb_keyboard): Likewise.
23265 (font): Use tag videomodules.
23266 (bufio): Likewise.
23267 (datetime): Use tag cmos. Enable on all noemu.
23268 (mmap): Use tags common and x86.
23269 (gfxterm): Use tag videomodules.
23270 (bitmap): Likewise.
23271 (bitmap_scale): Likewise.
23272 (video_fb): Likewise.
23273 (video): Likewise.
23274 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
23275 adjust padding accordingly. All users updated.
23276 (grub_ohci_transaction): Fix bad format specification.
23277 (GRUB_MOD_INIT): Add asserts for struct size.
23278 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
23279 (grub_alloc_td): Likewise.
23280 (grub_free_queue): Likewise.
23281 (grub_uhci_transfer): Likewise.
23282 (grub_uhci_transaction): Fix bad format specification.
23283 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
23284 (grub_usb_bulk_readwrite): Likewise.
23285 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
23286 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
23287 Made static.
23288 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
23289 Made static.
23290 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
23291 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
23292 Transformed into C.
23293 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
23294 Moved from here ...
23295 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
23296 ... here. Transformed into C. Made static.
23297 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
23298 Moved from here ...
23299 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
23300 ... here. Transformed into C. Made static.
23301 * grub-core/kern/i386/pc/startup.S
23302 (grub_biosdisk_check_int13_extensions): Moved from here ...
23303 * grub-core/disk/i386/pc/biosdisk.c
23304 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
23305 Made static.
23306 * grub-core/kern/i386/pc/startup.S
23307 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
23308 * grub-core/disk/i386/pc/biosdisk.c
23309 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
23310 Transformed into C. Made static.
23311 * grub-core/kern/i386/pc/startup.S
23312 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
23313 * grub-core/disk/i386/pc/biosdisk.c
23314 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
23315 Transformed into C. Made static.
23316 * grub-core/kern/i386/pc/startup.S
23317 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
23318 * grub-core/disk/i386/pc/biosdisk.c
23319 (grub_biosdisk_get_diskinfo_standard): ... here.
23320 Transformed into C. Made static.
23321 * grub-core/kern/i386/pc/startup.S
23322 (grub_biosdisk_get_num_floppies): Moved from here ...
23323 * grub-core/disk/i386/pc/biosdisk.c
23324 (grub_biosdisk_get_num_floppies): ... here.
23325 Transformed into C. Made static.
23326 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
23327 New function.
23328 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
23329 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
23330 Transformed into C. Made static.
23331 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
23332 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
23333 Transformed into C. Made static.
23334 * grub-core/kern/i386/ieee1275/init.c: Removed.
23335 * grub-core/kern/i386/misc.S: Likewise.
23336 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
23337 Splitted from here ...
23338 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
23339 Transformed into C. Made static. All users updated.
23340 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
23341 Transformed into C. Made static. All users updated.
23342 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
23343 Moved from here...
23344 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
23345 Transformed into C. Made static. All users updated.
23346 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
23347 Moved from here...
23348 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
23349 Transformed into C. Made static. All users updated.
23350 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
23351 Removed (replaced by C version).
23352 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
23353 Moved from here...
23354 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
23355 Transformed into C. Made static.
23356 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
23357 Moved from here...
23358 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
23359 ... here. Transformed into C.
23360 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
23361 Moved from here...
23362 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
23363 ... here. Transformed into C.
23364 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
23365 Moved from here...
23366 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
23367 ... here. Transformed into C. Made static.
23368 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
23369 Moved from here...
23370 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
23371 ... here. Transformed into C.
21ed554b
VS
23372 * grub-core/kern/i386/pc/startup.S
23373 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
23374 * grub-core/video/i386/pc/vbe.c
23375 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
23376 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
23377 Moved from here...
23378 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
23379 ... here. Transformed into C.
23380 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
23381 Moved from here...
23382 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
23383 ... here. Transformed into C.
23384 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
23385 Moved from here...
23386 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
23387 ... here. Transformed into C.
23388 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
23389 Moved from here...
23390 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
23391 ... here. Transformed into C.
23392 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
23393 Moved from here...
23394 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
23395 ... here. Transformed into C. Made static.
23396 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
23397 Moved from here...
23398 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
23399 ... here. Transformed into C. Made static.
23400 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
23401 Moved from here...
23402 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
23403 ... here. Transformed into C. Made static.
23404 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
23405 pxe_rm_entry as third argument.
23406 (grub_bios_interrupt): New function.
23407 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
23408 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
23409 of calling grub_stop.
23410 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
23411 * grub-core/lib/efi/halt.c (grub_halt): ...here.
23412 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
23413 * grub-core/lib/emu/halt.c (grub_halt): ... here.
23414 * grub-core/lib/i386/halt.c: Moved from here ...
23415 * grub-core/lib/i386/halt.c: ... here.
23416 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
23417 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
23418 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
23419 grub_stop_floppy.
23420 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
23421 * include/grub/i386/coreboot/init.h: Removed.
23422 * include/grub/i386/multiboot/init.h: Likewise.
23423 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
23424 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
23425 * include/grub/i386/pc/int.h: New file.
23426 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
23427 (grub_pxe_scan): Removed.
23428 (grub_pxe_call): Update prototype.
23429 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
23430 prototypes.
23431 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
23432 * include/grub/i386/qemu/init.h: Removed.
23433 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
23434 noreturn.
23435 (grub_halt): Likewise.
23436 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
23437 (grub_reboot): Likewise.
23438 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
23439 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
23440 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
23441
215dd471
RM
234422010-08-30 Robert Millan <rmh@gnu.org>
23443
23444 * NEWS: Document addition of ZFS support in `grub-install' and
23445 `grub-mkconfig'.
23446
ebd65b82
BC
234472010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
23448
23449 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
23450 dprintf output.
23451
11721d19
VS
234522010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23453
23454 Remove leftover embedding of font objects.
23455
23456 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
23457 * util/grub-install.in (font): Removed.
23458 * util/grub-mkimage.c (generate_image): Remove font support. All users
23459 updated.
23460
37837d4e
VS
234612010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23462
23463 Remove leftover embedding of font objects.
23464
23465 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
23466 * util/grub-install.in (font): Removed.
23467 * util/grub-mkimage.c (generate_image): Remove font support. All users
23468 updated.
23469
b4c1aae0
VS
234702010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23471
23472 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 23473 Reported by: Ian Turner
b4c1aae0 23474
8920a08d
VS
234752010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23476
23477 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
23478 timeout to avoid indefinite boot stalling.
23479
f21db033
VS
234802010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23481
23482 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
23483 (grub_env_write_color_highlight): Likewise.
23484
9a9de209
VS
234852010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23486
23487 * grub-core/normal/term.c (print_more): Return to normal and not
23488 to standard state after printing "---MORE---".
23489
3dca01d7
VS
234902010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23491
23492 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
23493 Mask out the bit 0x80 since it has other meaning that specifiing color.
23494
0b986c40
VS
234952010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23496
23497 New relocator. Allows for more kernel support and more straightforward
23498 loader writing.
23499
23500 * Makefile.am (BOOTTARGET): New variable.
23501 (QEMU32): Likewise.
23502 (linux.init.x86_64): New target.
23503 (linux.init.i386): Likewise.
23504 (multiboot.elf): Likewise.
23505 (kfreebsd.elf): Likewise.
23506 (kfreebsd.aout): Likewise.
23507 (pc-chainloader.elf): Likewise.
23508 (pc-chainloader.bin): Likewise.
23509 (ntldr.elf): Likewise.
23510 (ntldr.bin): Likewise.
23511 (multiboot2.elf): Likewise.
23512 (kfreebsd.init.x86_64): Likewise.
23513 (kfreebsd.init.i386): Likewise.
23514 (knetbsd.init.i386): Likewise.
23515 (kopenbsd.init.i386): Likewise.
23516 (knetbsd.init.x86_64): Likewise.
23517 (kopenbsd.init.x86_64): Likewise.
23518 (linux-initramfs.i386): Likewise.
23519 (linux-initramfs.x86_64): Likewise.
23520 (kfreebsd-mfsroot.i386.img): Likewise.
23521 (knetbsd.image.i386): Likewise.
23522 (kopenbsd.image.i386): Likewise.
23523 (kopenbsd.image.x86_64): Likewise.
23524 (knetbsd.miniroot-image.i386.img): Likewise.
23525 (kfreebsd-mfsroot.x86_64.img): Likewise.
23526 (knetbsd.image.x86_64): Likewise.
23527 (knetbsd.miniroot-image.x86_64.img): Likewise.
23528 (kfreebsd-mfsroot.i386.gz): Likewise.
23529 (bootcheck-kfreebsd-i386): Likewise.
23530 (kfreebsd-mfsroot.x86_64.gz): Likewise.
23531 (bootcheck-kfreebsd-x86_64): Likewise.
23532 (knetbsd.miniroot-image.i386.gz): Likewise.
23533 (bootcheck-knetbsd-i386): Likewise.
23534 (bootcheck-kopenbsd-i386): Likewise.
23535 (bootcheck-kopenbsd-x86_64): Likewise.
23536 (knetbsd.miniroot-image.x86_64.gz): Likewise.
23537 (bootcheck-knetbsd-x86_64): Likewise.
23538 (bootcheck-linux-i386): Likewise.
23539 (bootcheck-linux-x86_64): Likewise.
23540 (bootcheck-linux16-i386): Likewise.
23541 (bootcheck-linux16-x86_64): Likewise.
23542 (bootcheck-multiboot): Likewise.
23543 (bootcheck-multiboot2): Likewise.
23544 (bootcheck-kfreebsd-aout): Likewise.
23545 (bootcheck-pc-chainloader): Likewise.
23546 (bootcheck-ntldr): Likewise.
23547 (CLEANFILES): Add new targets.
23548 (BOOTCHECKS): New variable.
23549 (.PHONY): Add bootchecks.
23550 (SUCCESSFUL_BOOT_STRING): New variable.
23551 (BOOTCHECK_TIMEOUT): Likewise.
23552 (bootcheck): New target
23553 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
23554 * configure.ac: Correct efiemu excuse.
23555 * docs/grub.texi (Supported kernels): New chapter.
23556 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
23557 include/grub/mm_private.h. Simplify inclusion of
23558 include/grub/boot.h, include/grub/loader.h
23559 and include/grub/msdos_partition.h
23560 (KERNEL_HEADER_FILES) [i386_coreboot]:
23561 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
23562 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
23563 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
23564 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
23565 include/grub/machine/loader.h.
23566 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
23567 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
23568 extra_dist.
23569 (pci.mod): Enable on i386-multiboot.
23570 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
23571 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
23572 i386-qemu.
23573 (relocator.mod): Rewritten.
23574 (aout.mod): Enable on all x86.
23575 (bsd.mod): Likewise.
23576 (ntldr.mod): New module.
23577 (linux.mod): Use loader/i386/linux.c on all x86.
23578 (xnu.mod): Enable on all x86.
23579 (vga_text.mod): disable on EFI and QEMU.
23580 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
23581 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
23582 * grub-core/efiemu/loadcore.c: Likewise.
23583 * grub-core/efiemu/main.c: Likewise.
23584 (grub_efiemu_exit_boot_services): Removed.
23585 (grub_efiemu_finish_boot_services): Likewise.
23586 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
23587 function.
23588 * grub-core/efiemu/i386/nocfgtables.c: New file.
23589 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
23590 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
23591 (grub_efi_finish_boot_services): Moved from here ...
23592 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
23593 Fille finish memory map and related data.
23594 (finish_mmap_buf): New variable.
23595 (grub_efi_uintn_t finish_mmap_size): Likewise.
23596 (grub_efi_uintn_t finish_key): Likewise.
23597 (grub_efi_uintn_t finish_desc_size): Likewise.
23598 (grub_efi_uint32_t finish_desc_version): Likewise.
23599 (grub_efi_is_finished): Likewise.
23600 (grub_efi_get_memory_map): Use saved memory map if EFI is already
23601 finished.
23602 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
23603 (grub_elf64_phdr_iterate): Likewise.
23604 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
23605 (grub_os_area_size): Likewise.
23606 (grub_machine_init): Don't reserve os area.
23607 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
23608 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
23609 * grub-core/kern/i386/loader.S: Removed.
23610 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
23611 (grub_os_area_size): Likewise.
23612 (grub_machine_init): Don't reserve os area.
23613 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
23614 Don't call grub_dl_unload_all.
23615 Don't include loader.S.
23616 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
23617 Declare the memory after _end as available.
23618 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 23619 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 23620 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
23621 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
23622 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
23623 * include/grub/mm_private.h (grub_mm_header): ... here.
23624 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
23625 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
23626 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
23627 (grub_mm_region): ..here. Removed addr. Added pre_size.
23628 All users updated.
23629 * grub-core/kern/mm.c (base): Renamed to ...
23630 (grub_mm_base): ... this. Made global.
23631 (grub_real_malloc): Alloc from end of region.
23632 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
23633 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
23634 * grub-core/kern/powerpc/cache_flush.S: ... here.
23635 * grub-core/lib/efi/relocator.c: New file.
23636 * grub-core/lib/i386/relocator.c: Rewritten.
23637 * grub-core/lib/i386/relocator16.S: New file.
23638 * grub-core/lib/i386/relocator32.S: Likewise.
23639 * grub-core/lib/i386/relocator64.S: Likewise.
23640 * grub-core/lib/i386/relocator_asm.S: Rewritten.
23641 * grub-core/lib/i386/relocator_common.S: New file.
23642 * grub-core/lib/ieee1275/relocator.c: Likewise.
23643 * grub-core/lib/mips/relocator.c: Rewritten.
23644 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
23645 stylistic adjustments.
23646 * grub-core/lib/powerpc/relocator.c: New file.
23647 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
23648 * grub-core/lib/relocator.c: Rewritten.
23649 * grub-core/lib/x86_64/relocator_asm.S: New file.
23650 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
23651 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
23652 (bsd_tag): New struct.
23653 (tags): New variable.
23654 (tags_last): Likewise.
23655 (netbsd_module): New struct.
23656 (netbsd_mods): New variable.
23657 (netbsd_mods_last): Likewise.
23658 (openbsd_opts): New parameter "serial".
23659 (OPENBSD_SERIAL_ARG): New definition.
23660 (netbsd_opts): New parameter "serial".
23661 (NETBSD_SERIAL_ARG): New definition.
23662 (grub_freebsd_add_meta): Reorganised into ...
23663 (grub_bsd_add_meta): ...this. All users updated.
23664 (grub_freebsd_add_mmap): Reorganised into ...
23665 (generate_e820_mmap): ...this...
23666 (grub_bsd_add_mmap): ...and this. All users updated.
23667 (grub_freebsd_list_modules): Use tags.
23668 (grub_netbsd_add_meta_module): New function.
23669 (grub_netbsd_list_modules): Likewise.
23670 (grub_freebsd_boot): Use relocator and finish EFI.
23671 (grub_openbsd_boot): Likewise.
23672 (grub_netbsd_setup_video): New function.
23673 (grub_netbsd_add_modules): Likewise.
23674 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
23675 and finish EFI.
23676 (grub_bsd_unload): Unload tags.
23677 (grub_bsd_load_aout): Use relocator.
23678 (grub_bsd_elf32_size_hook): New function.
23679 (grub_bsd_elf32_hook): Use relocator.
23680 (grub_bsd_elf64_size_hook): New function.
23681 (grub_bsd_elf64_hook): Use relocator.
23682 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
23683 (grub_bsd_load): Zero-out openbsd_ramdisk.
23684 (grub_bsd_load): Use relocator.
23685 (grub_cmd_openbsd): Support serial.
23686 (grub_cmd_netbsd): Support modules.
23687 (grub_cmd_freebsd_module): Use relocator.
23688 (grub_netbsd_module_load): New function.
23689 (grub_cmd_netbsd_module): Likewise.
23690 (grub_cmd_openbsd_ramdisk): Likewise.
23691 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
23692 kopenbsd_ramdisk.
23693 (GRUB_MOD_FINI): Unregister new commands.
23694 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
23695 (grub_freebsd_load_elfmodule_obj): Use relocator.
23696 (grub_freebsd_load_elfmodule): Likewise.
23697 (grub_freebsd_load_elf_meta): Likewise.
23698 (grub_netbsd_load_elf_meta): New function.
23699 (grub_openbsd_find_ramdisk): Likewise.
23700 * grub-core/loader/i386/bsd_helper.S: Removed.
23701 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
23702 * grub-core/loader/i386/bsd_trampoline.S: Removed.
23703 * grub-core/loader/i386/efi/linux.c: Likewise.
23704 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
23705 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
23706 (DEFAULT_VIDEO_MODE): Likewise.
23707 (real_mode_target): New variable.
23708 (prot_mode_target): Likewise.
23709 (initrd_mem_target): Likewise.
23710 (relocator): Likewise.
23711 (efi_mmap_buf): Likewise.
23712 (efi_mmap_size): Likewise.
23713 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
23714 (free_pages): Use relocator.
23715 (allocate_pages): Account for efi_mmap and use relocator. Return error.
23716 (grub_linux_setup_video): Return error.
23717 (grub_linux_trampoline_start): Removed.
23718 (grub_linux_trampoline_end): Likewise.
23719 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
23720 andd video parameters depending on firmware.
23721 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
23722 [GRUB_MACHINE_EFI]: Pass EFI parameters.
23723 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
23724 (grub_cmd_initrd): Use relocator.
23725 * grub-core/loader/i386/linux_trampoline.S: Removed.
23726 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
23727 (elf_sec_entsize): Likewise.
23728 (elf_sec_shstrndx): Likewise.
23729 (elf_sections): Likewise.
23730 (grub_multiboot_load): Use relocator.
23731 (grub_multiboot_get_mbi_size): Account for sections.
23732 (grub_multiboot_make_mbi): Use relocator and support sections.
23733 (grub_multiboot_add_elfsyms): New function.
23734 (grub_multiboot_free_mbi): Free sections.
23735 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
23736 (grub_linux_real_target): Likewise.
23737 (grub_linux_real_chunk): Likewise.
23738 (grub_linux16_prot_size): Likewise.
23739 (grub_linux16_boot): Use relocator.
23740 (grub_linux_unload): Unload relocator.
23741 (grub_cmd_linux): Use relocator.
23742 (grub_cmd_initrd): Likewise.
23743 * grub-core/loader/i386/pc/ntldr.c: New file.
23744 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
23745 Don't try to guess CPU frequency.
23746 (grub_xnu_set_video): Stretch bitmap.
23747 (grub_xnu_boot): Use relocator.
23748 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
23749 (grub_linux_unload): Free relocator.
23750 (grub_linux_load32): Use relocator.
23751 (grub_linux_load64): Likewise.
23752 (grub_cmd_initrd): Likewise.
23753 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
23754 (grub_multiboot_unload): Unload relocator.
23755 (grub_cmd_multiboot): Use relocator.
23756 (grub_cmd_module): Likewise.
23757 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
23758 Use relocator and support sections.
23759 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
23760 (elf_sec_entsize): Likewise.
23761 (elf_sec_shstrndx): Likewise.
23762 (elf_sections): Likewise.
23763 (grub_multiboot_load): Use relocator.
23764 (grub_multiboot_get_mbi_size): Account for sections.
23765 (grub_multiboot_make_mbi): Use relocator and support sections.
23766 (grub_multiboot_add_elfsyms): New function.
23767 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
23768 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
23769 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
23770 Prototype changed. All users updated.
23771 (grub_xnu_align_heap): Simplified.
23772 (grub_xnu_writetree_toheap): Likewise.
23773 (grub_xnu_unload): Unload relocator.
23774 (grub_cmd_xnu_kernel): Use relocator.
23775 (grub_cmd_xnu_kernel64): Likewise.
23776 (grub_xnu_register_memory): Simplified.
23777 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
23778 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
23779 EFI is finished.
23780 (grub_console_checkkey): Likewise.
23781 (grub_console_getkey): Likewise.
23782 (grub_console_getwh): Likewise.
23783 (grub_console_getxy): Likewise.
23784 (grub_console_gotoxy): Likewise.
23785 (grub_console_cls): Likewise.
23786 (grub_console_setcolorstate): Likewise.
23787 (grub_console_setcursor): Likewise.
23788 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
23789 * grub-core/tests/boot/kbsd.init-i386.S: New file.
23790 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
23791 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
23792 * grub-core/tests/boot/kernel-8086.S: Likewise.
23793 * grub-core/tests/boot/kernel-i386.S: Likewise.
23794 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
23795 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
23796 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
23797 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
23798 * grub-core/tests/boot/knetbsd.cfg: Likewise.
23799 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
23800 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
23801 * grub-core/tests/boot/linux.cfg: Likewise.
23802 * grub-core/tests/boot/linux.init-i386.S: Likewise.
23803 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
23804 * grub-core/tests/boot/linux16.cfg: Likewise.
23805 * grub-core/tests/boot/multiboot.cfg: Likewise.
23806 * grub-core/tests/boot/multiboot2.cfg: Likewise.
23807 * grub-core/tests/boot/ntldr.cfg: Likewise.
23808 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
23809 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
23810 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
23811 New definition.
23812 * include/grub/dl.h (grub_dl_unload_all): Removed.
23813 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
23814 (grub_efi_finish_boot_services): Change prototype.
23815 (grub_efi_is_finished): New variable.
23816 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
23817 Changed prototype.
23818 (grub_efiemu_finish_boot_services): Removed.
23819 (grub_machine_efiemu_init_tables): New prototype.
23820 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
23821 (grub_elf64_phdr_iterate): Likewise.
23822 * include/grub/i386/bsd.h: Include relocator.h.
23823 (freebsd_tag_header): New struct.
23824 (grub_openbsd_bios_mmap): Removed.
23825 (grub_unix_real_boot): Removed.
23826 (grub_freebsd_load_elfmodule32): Changed prototype.
23827 (grub_freebsd_load_elfmodule_obj64): Likewise.
23828 (grub_freebsd_load_elf_meta32): Likewise.
23829 (grub_freebsd_load_elf_meta64): Likewise.
23830 (grub_freebsd_add_meta): Removed.
23831 (grub_netbsd_load_elf_meta32): New prototype.
23832 (grub_netbsd_load_elf_meta64): Likewise.
23833 (grub_bsd_add_meta): Likewise.
23834 (grub_openbsd_ramdisk_descriptor): New struct.
23835 (grub_openbsd_find_ramdisk32): New prototype.
23836 (grub_openbsd_find_ramdisk64): Likewise.
23837 * include/grub/i386/coreboot/loader.h: Removed.
23838 * include/grub/i386/efi/loader.h: Likewise.
23839 * include/grub/i386/ieee1275/loader.h: Likewise.
23840 * include/grub/i386/linux.h (linux_kernel_header): Change void *
23841 to grub_uint32_t.
23842 * include/grub/i386/loader.h: Removed.
23843 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
23844 value.
23845 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
23846 (grub_phys_addr_t): New type.
23847 (grub_vtop): New inline function.
23848 (grub_map_memory): Likewise.
23849 (grub_unmap_memory): Likewise.
23850 * include/grub/i386/multiboot/loader.h: Removed.
23851 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
23852 (NETBSD_BTINFO_CONSOLE): New definition.
23853 (NETBSD_BTINFO_SYMTAB): Likewise.
23854 (NETBSD_BTINFO_MODULES): Likewise.
23855 (NETBSD_BTINFO_FRAMEBUF): Likewise.
23856 (grub_netbsd_bootinfo): New struct.
23857 (grub_netbsd_btinfo_common): Use explicit bitsize.
23858 (grub_netbsd_btinfo_mmap_entry): Removed.
23859 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
23860 (grub_netbsd_btinfo_bootdisk): New struct.
23861 (grub_netbsd_btinfo_symtab): Likewise.
23862 (grub_netbsd_btinfo_serial): Likewise.
23863 (grub_netbsd_btinfo_modules): Likewise.
23864 (grub_netbsd_btinfo_framebuf): Likewise.
23865 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
23866 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
23867 Likewise.
23868 (grub_openbsd_bootargs): Use explicit bitsize.
23869 (grub_openbsd_bootarg_console): New struct.
23870 (GRUB_OPENBSD_COM_MAJOR): New definition.
23871 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
23872 * include/grub/i386/pc/efiemu.h: Removed.
23873 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
23874 * include/grub/i386/qemu/loader.h: Removed.
23875 * include/grub/i386/relocator.h: Rewritten.
23876 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
23877 * include/grub/mips/memory.h: New file.
23878 * include/grub/mips/multiboot.h: Rewritten.
23879 * include/grub/mips/relocator.h: Rewritten.
23880 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
23881 (grub_vtop): New function.
23882 (grub_map_memory): Likewise.
23883 (grub_unmap_memory): Likewise.
23884 * include/grub/misc.h (ALIGN_DOWN): New definition.
23885 * include/grub/mm.h (grub_mm_check_real): New proto.
23886 (GRUB_MM_CHECK): New definition.
23887 * include/grub/mm_private.h: New file.
23888 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
23889 (grub_multiboot_get_mbi_size): Removed.
23890 (grub_multiboot_make_mbi): Change prottype.
23891 (grub_multiboot_set_accepts_video): New proto.
23892 (grub_multiboot_add_elfsyms): Likewise.
23893 (grub_multiboot_payload_eip): New variable.
23894 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
23895 New prototype.
23896 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
23897 New definition.
23898 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
23899 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
23900 * include/grub/powerpc/ieee1275/loader.h: Removed.
23901 * include/grub/powerpc/memory.h: New file.
23902 * include/grub/powerpc/relocator.h: Likewise.
23903 * include/grub/relocator.h: Likewise.
23904 * include/grub/relocator_private.h: Likewise.
23905 * include/grub/sparc64/ieee1275/loader.h: Removed.
23906 * include/grub/x86_64/memory.h: New file.
23907 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
23908 (grub_xnu_heap_malloc): Likewise.
23909 (grub_xnu_heap_real_start): Removed.
23910 (grub_xnu_heap_start): Likewise.
23911 (grub_xnu_relocator): New variable.
23912 (grub_xnu_heap_target_start): Likewise.
23913 * tests/util/grub-shell.in: Support non-pc.
23914 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 23915
5303b85d
VS
239162010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23917
23918 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
23919 on malloc error.
23920 (grub_bidi_logical_to_visual): Check that malloc succeded.
23921 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
23922 puts.
23923 (grub_xputs_normal): Likewise.
23924
d768d159
VS
239252010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23926
23927 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
23928 extra_dist.
23929
239302010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23931
23932 * grub-core/efiemu/runtime/efiemu.sh: Removed.
23933
5bf84df4
VS
239342010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23935
23936 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
23937
3626810e
VS
239382010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23939
23940 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
23941 dprintf.
23942
a7363f53
BC
239432010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
23944
23945 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
23946
902f75f6
VS
239472010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23948
23949 * grub-core/normal/term.c (print_more): Fix a memory leak.
23950 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
23951 (grub_xputs_normal): Likewise.
23952
3c707967
VS
239532010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23954
23955 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
23956 the begining of the string
23957
2053cc07
VS
239582010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23959
23960 * grub-core/script/script.c (grub_script_parse): Free parsed on
23961 failure.
23962
46422ebf
VS
239632010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23964
23965 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
23966 on failure.
23967
9e0fa3f6
VS
239682010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23969
23970 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
23971 return.
23972
3393cf16
VS
239732010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23974
23975 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
23976 (scroll_up): Fix a memory leak.
23977
b17540cb
VS
239782010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23979
23980 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
23981 errors.
23982
67140446
VS
239832010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
23984
23985 Handle USB pendrives exposed as floppies.
23986
23987 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
23988 floppy.
23989 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
23990 Check for partitions on all devices.
23991
e35e46fc
VS
239922010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23993
23994 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
23995 (readkey): Likewise.
23996
d24c6190
BC
239972010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
23998
23999 Multiple variable names support to "export" command.
24000
24001 * normal/context.c (grub_cmd_export): "export" command supports
24002 multiple variable names.
24003
04ddcc6a
ST
240042010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
24005
24006 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
24007 --target=drive output to Mach device name.
24008
0c8b61d8
BC
240092010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24010
24011 New Automake based build system for GRUB.
24012
24013 * ABOUT-NLS: New file.
24014 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
24015 in Makefile.util.def file.
24016 * Makefile.util.def: New file. Autogen build definitions file for
24017 GRUB host utils.
24018 * conf/Makefile.common: New file. Common variables for GRUB host
24019 utils and target modules.
24020 * conf/Makefile.extra-dist: New file. Extra files for make dist.
24021 * docs/Makefile.am: New file. Automake file for docs.
24022 * gentpl.py: New file. Python script to generate Autogen
24023 template.
24024 * grub-core/Makefile.am: New file. GRUB target modules' rules
24025 that doesn't fit in Makefile.core.def file.
24026 * grub-core/Makefile.core.def: New file. Autogen build
24027 definitions file for GRUB target modules.
24028 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
24029 specific setjmp.S file.
24030 * po/Makefile.am: New file.
24031
24032 * .bzrignore: New ignores.
24033 * INSTALL: New requirements, without Ruby.
24034 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
24035 * autogen.sh: Updated to invoke autogen as necessary.
24036 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
24037 and defines for Automake conditionals.
24038 * geninit.sh: Refactoring.
24039
24040 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
24041 necessary.
24042 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
24043 New prototype.
24044
24045 * include/grub/test.h: Fix functional test modules' naming.
24046 * grub-core/tests/example_functional_test.c: Fix test module name.
24047
24048 * util/misc.c: Hosted versions' of grub functions for libgrub.a
24049 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
24050 * util/grub-editenv.c: Likewise.
24051 * util/grub-fstest.c: Likewise.
24052 * util/grub-mkdevicemap.c: Likewise.
24053 * util/grub-mkfont.c: Likewise.
24054 * util/grub-mkimage.c: Likewise.
24055 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24056 * util/grub-probe.c: Likewise.
24057 * util/grub-script-check.c: Likewise.
24058 * util/i386/pc/grub-setup.c: Likewise.
24059 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24060
24061 * tests/util/grub-shell.in: Fix override directory path.
24062 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
24063 * util/import_gcry.py: Create Makefile.gcry.def file instead.
24064
24065 * util/lvm.c: Update #includes.
24066 * util/raid.c: Likewise.
24067 * util/resolve.c: Likewise.
24068 * grub-core/bus/emu/pci.c: Likewise.
24069 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
24070 * grub-core/lib/posix_wrap/string.h: Likewise.
24071 * grub-core/kern/emu/main.c: Likewise.
24072
24073 * grub-core/gensymlist.sh: New file. Script for generating kernel
24074 symbols file.
24075 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
24076
24077 * grub-core/gentrigtables.c: Fix unused variable warnings.
24078
24079 * Makefile.in: Removed.
24080 * conf/any-emu.rmk: Removed.
24081 * conf/common.rmk: Removed.
24082 * conf/i386-coreboot.rmk: Removed.
24083 * conf/i386-efi.rmk: Removed.
24084 * conf/i386-ieee1275.rmk: Removed.
24085 * conf/i386-multiboot.rmk: Removed.
24086 * conf/i386-pc.rmk: Removed.
24087 * conf/i386-qemu.rmk: Removed.
24088 * conf/i386.rmk: Removed.
24089 * conf/mips-yeeloong.rmk: Removed.
24090 * conf/mips.rmk: Removed.
24091 * conf/powerpc-ieee1275.rmk: Removed.
24092 * conf/sparc64-ieee1275.rmk: Removed.
24093 * conf/tests.rmk: Removed.
24094 * conf/x86-efi.rmk: Removed.
24095 * conf/x86_64-efi.rmk: Removed.
24096 * gendistlist.sh: Removed.
24097 * geninitheader.sh: Removed.
24098 * genkernsyms.sh.in: Removed.
24099 * genmk.rb: Removed.
24100 * gensymlist.sh.in: Removed.
24101 * mkinstalldirs: Removed.
24102 * boot: Moved ...
24103 * grub-core/boot: ... to here.
24104 * bus: Moved ...
24105 * grub-core/bus: ... to here.
24106 * commands: Moved ...
24107 * grub-core/commands: ... to here.
24108 * disk: Moved ...
24109 * grub-core/disk: ... to here.
24110 * efiemu: Moved ...
24111 * grub-core/efiemu: ... to here.
24112 * font: Moved ...
24113 * grub-core/font: ... to here.
24114 * fs: Moved ...
24115 * grub-core/fs: ... to here.
24116 * gencmdlist.sh: Moved ...
24117 * grub-core/gencmdlist.sh: ... to here.
24118 * genemuinit.sh: Moved ...
24119 * grub-core/genemuinit.sh: ... to here.
24120 * genemuinitheader.sh: Moved ...
24121 * grub-core/genemuinitheader.sh: ... to here.
24122 * genfslist.sh: Moved ...
24123 * grub-core/genfslist.sh: ... to here.
24124 * genhandlerlist.sh: Moved ...
24125 * grub-core/genhandlerlist.sh: ... to here.
24126 * genmoddep.awk: Moved ...
24127 * grub-core/genmoddep.awk: ... to here.
24128 * genmodsrc.sh: Moved ...
24129 * grub-core/genmodsrc.sh: ... to here.
24130 * genpartmaplist.sh: Moved ...
24131 * grub-core/genpartmaplist.sh: ... to here.
24132 * genparttoollist.sh: Moved ...
24133 * grub-core/genparttoollist.sh: ... to here.
24134 * genterminallist.sh: Moved ...
24135 * grub-core/genterminallist.sh: ... to here.
24136 * gentrigtables.c: Moved ...
24137 * grub-core/gentrigtables.c: ... to here.
24138 * genvideolist.sh: Moved ...
24139 * grub-core/genvideolist.sh: ... to here.
24140 * gettext: Moved ...
24141 * grub-core/gettext: ... to here.
24142 * gfxmenu: Moved ...
24143 * grub-core/gfxmenu: ... to here.
24144 * gnulib: Moved ...
24145 * grub-core/gnulib: ... to here.
24146 * hello: Moved ...
24147 * grub-core/hello: ... to here.
24148 * hook: Moved ...
24149 * grub-core/hook: ... to here.
24150 * io: Moved ...
24151 * grub-core/io: ... to here.
24152 * kern: Moved ...
24153 * grub-core/kern: ... to here.
24154 * lib: Moved ...
24155 * grub-core/lib: ... to here.
24156 * loader: Moved ...
24157 * grub-core/loader: ... to here.
24158 * mmap: Moved ...
24159 * grub-core/mmap: ... to here.
24160 * normal: Moved ...
24161 * grub-core/normal: ... to here.
24162 * partmap: Moved ...
24163 * grub-core/partmap: ... to here.
24164 * parttool: Moved ...
24165 * grub-core/parttool: ... to here.
24166 * script: Moved ...
24167 * grub-core/script: ... to here.
24168 * term: Moved ...
24169 * grub-core/term: ... to here
24170 * tests/example_functional_test.c: Moved ...
24171 * grub-core/tests/example_functional_test.c: ... to here.
24172 * tests/lib/functional_test.c: Moved ...
24173 * grub-core/tests/lib/functional_test.c: ... to here.
24174 * tests/lib/test.c: Moved ...
24175 * grub-core/tests/lib/test.c: ... to here.
24176 * video: Moved ...
24177 * grub-core/video: ... to here.
24178
645586e6
BC
241792010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
24180
24181 Replace --enable-grub-emu-modules with grub-emu-lite.
24182
24183 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
24184 cache.S.
24185
24186 * include/grub/emu/misc.h (grub_emu_init): New prototype.
24187 * kern/emu/full.c: New file. For grub-emu specific initialization.
24188 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
24189 * kern/emu/main.c: Call initialization function grub_emu_init.
24190
24191 * Makefile.in: Include grub-emu-lite in install.
24192 * commands/parttool.c: Use grub_no_autoload to differentiate
24193 between grub-emu and grub-emu-lite.
24194 * include/grub/misc.h: New variable grub_no_autoload.
24195
24196 * conf/any-emu.rmk: New rules for grub-emu-lite.
24197 * configure.ac: Remove --enable-grub-emu-modules.
24198 * genmk.rb: Cleanup unnecessary rules.
24199 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
24200
24201 * normal/main.c: Don't load list files on grub-emu-lite.
24202 * util/misc.c (grub_arch_sync_caches): Removed.
24203
f86a4030
CW
242042010-08-23 Colin Watson <cjwatson@ubuntu.com>
24205
24206 * kern/mips/startup.S (grub_prefix): Update comment to refer to
24207 grub-mkimage rather than grub-mkelfimage.
24208 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
24209
06776944
VS
242102010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
24211
24212 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
24213 a key after CapsLock or NumLock. It's just a qemu bug.
24214
df262419
VS
242152010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
24216
24217 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
24218 needed by libusb wrapper.
24219
b40ea81b
ST
242202010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
24221
24222 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
24223
dee50575
VS
242242010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
24225
24226 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
24227 --nounzip is passed.
24228
fb1d7b79
VS
242292010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
24230
24231 USB hotunplugging and USB serial support.
24232
24233 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
24234 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
24235 (grub_uhci_transfer): Respect timeout and set *actual.
24236 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
24237 non-standard length.
24238 (grub_usb_device_attach): Autoload modules.
24239 (GRUB_MOD_INIT): Set grub_term_poll_usb.
24240 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
24241 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
24242 users updated.
24243 (grub_usb_add_hub): Fill nports and children.
24244 (attach_root_port): Receive hub instead of controller.
24245 All users updated. Fill hub->devices.
24246 (grub_usb_root_hub): Allocate hub->devices.
24247 (detach_device): New function.
24248 (poll_nonroot_hub): Fill children and detach devices.
24249 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
24250 actual arguments. All users updated.
24251 (grub_usb_bulk_read_extended): New function.
24252 * bus/usb/serial/common.c: New file.
24253 * bus/usb/serial/ftdi.c: Likewise.
24254 * bus/usb/serial/pl2303.c: Likewise.
24255 * commands/terminal.c (handle_command): Support wildcard.
24256 * commands/usbtest.c: Output "Unknown" instead of empty string.
24257 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
24258 (usbserial_common_mod_SOURCES): New variable.
24259 (usbserial_common_mod_CFLAGS): Likewise.
24260 (usbserial_common_mod_LDFLAGS): Likewise.
24261 (pkglib_MODULES): Add usbserial_pl2303.mod.
24262 (usbserial_pl2303_mod_SOURCES): New variable.
24263 (usbserial_pl2303_mod_CFLAGS): Likewise.
24264 (usbserial_pl2303_mod_LDFLAGS): Likewise.
24265 (pkglib_MODULES): Add usbserial_ftdi.mod.
24266 (usbserial_ftdi_mod_SOURCES): New variable.
24267 (usbserial_ftdi_mod_CFLAGS): Likewise.
24268 (usbserial_ftdi_mod_LDFLAGS): Likewise.
24269 (pkglib_MODULES): Add serial.mod.
24270 (serial_mod_SOURCES): New variable.
24271 (serial_mod_CFLAGS): Likewise.
24272 (serial_mod_LDFLAGS): Likewise.
24273 * conf/i386-pc.rmk: Likewise.
24274 * conf/mips-yeeloong.rmk: Likewise.
24275 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
24276 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
24277 * disk/usbms.c (first_available_slot): New variable.
24278 (grub_usbms_attach): Don't reuse free slots due to potential cache
24279 problems.
24280 * include/grub/serial.h: Moved to ..
24281 * include/grub/ns8250.h: ...this.
24282 * include/grub/serial.h: New file.
24283 * include/grub/term.h (grub_term_poll_usb): New variable.
24284 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
24285 readkey. All users updated.
24286 (grub_terminfo_output_state): Pass term to put.
24287 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
24288 (grub_usb_controller_dev): Add timeout and actual arguments to
24289 transfer. All users updated.
24290 (grub_usb_interface): New field detach_data.
24291 (grub_usb_device): New fields children and nports.
24292 (grub_usb_ep_type_t): New type.
24293 (grub_usb_get_ep_type): New function.
24294 (grub_usb_bulk_read_extended): Likewise.
24295 * include/grub/usbdesc.h (grub_usb_desc): New type.
24296 * include/grub/usbserial.h: New file.
24297 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
24298 * kern/term.c (grub_term_poll_usb): New variable.
24299 (grub_getkey): Call grub_term_poll_usb if set.
24300 (grub_checkkey): Likewise.
24301 (grub_getkeystatus): Likewise.
24302 * term/serial.c: Moved controller-specific parts to ...
24303 * term/ns8250.c: ... here.
24304 * term/serial.c: Mostly rewritten.
24305 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
24306 according to spec.
24307
21a313de
RM
243082010-08-20 Robert Millan <rmh@gnu.org>
24309
24310 Make kFreeBSD code more generic to support ext2fs as root, ufs as
24311 a separate module and maybe other interesting combinations.
24312
24313 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
24314 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
24315 (kfreebsd_entry): Add generic filesystem module load routine.
24316 Map GRUB `ext2' to kFreeBSD `ext2fs'.
24317
63c734a6
CW
243182010-08-20 Colin Watson <cjwatson@ubuntu.com>
24319
24320 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
24321 "numcenter" (I misunderstood the purpose of this entry).
24322 * docs/grub.texi (sendkey): Likewise.
24323
c4d16542
CW
243242010-08-20 Colin Watson <cjwatson@ubuntu.com>
24325
24326 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
24327 status flag options; simply omitting the option is equivalent and
24328 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
24329 (keysym_table): Rename "num5numlock" to "numlock".
24330 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
24331 can uniformly say that only the last of multiple `sendkey'
24332 invocations has any effect.
24333 * docs/grub.texi (sendkey): New section.
24334
93541d66
CW
243352010-08-19 Colin Watson <cjwatson@ubuntu.com>
24336
24337 * commands/i386/pc/sendkey.c (options): Fix three typos.
24338
b4ece5e1
VS
243392010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
24340
24341 Implement sendkey support.
24342
24343 * commands/i386/pc/sendkey.c: New file.
24344 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
24345 (sendkey_mod_SOURCES): New variable.
24346 (sendkey_mod_CFLAGS): Likewise.
24347 (sendkey_mod_LDFLAGS): Likewise.
24348
51f1f5af
CW
243492010-08-18 Colin Watson <cjwatson@ubuntu.com>
24350
24351 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
24352 fix warnings from Autoconf.
24353
9da94e05
CW
243542010-08-18 Colin Watson <cjwatson@ubuntu.com>
24355
24356 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
24357 to avoid false positives with some assemblers that output things
24358 like "someprefix_func" as part of their output.
24359
729a0f2e
RM
243602010-08-15 Robert Millan <rmh@gnu.org>
24361
24362 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
24363 errors.
24364 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
24365 grub_get_libzfs_handle() errors.
24366
f3710e08
RM
243672010-08-14 Robert Millan <rmh@gnu.org>
24368
24369 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
24370 filesystem is not ZFS.
24371
7a3c13de
BC
243722010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24373
24374 Fix for misspelled color names defaulting to black/black (bug
24375 reported by Doug Nazar)
24376
24377 * include/grub/normal.h (grub_parse_color_name_pair): Add return
24378 status to prototype.
24379 * normal/color.c (grub_parse_color_name_pair): Return failure
24380 status.
24381 (grub_env_write_color_normal): Ignore bad color names.
24382 (grub_env_write_color_highlight): Likewise.
24383 * normal/main.c (GRUB_MOD_INIT): Set default color names.
24384
ab8ba50d
BC
243852010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24386
24387 "shift" command support to GRUB script.
24388
24389 * include/grub/script_sh.h (grub_script_shift): New prototype.
24390 * script/execute.c (grub_script_shift): New function.
24391 * script/main.c (grub_script_init): Register shift command.
24392 (grub_script_fini): Unregister shift command.
24393 * util/grub-script-check.c (grub_script_cmd_shift): New function.
24394
24395 * tests/grub_script_shift.in: New testcase.
24396 * conf/tests.rmk: Rules for new testcase.
24397
4d61999e
BC
243982010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24399
24400 "continue" command support to GRUB script.
24401
24402 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
24403 (grub_script_break): Continue support.
24404 * script/main.c (grub_script_init): Register continue command.
24405 (grub_script_fini): Unregister continue command.
24406
24407 * tests/grub_script_continue.in: New testcase.
24408 * conf/tests.rmk: Rules for new testcase.
24409
4df51e00
BC
244102010-08-12 BVK Chaitanya <bvk@dbook>
24411
24412 "break" command support to GRUB script.
24413
24414 * conf/common.rmk: Rule updates to grub-script-check.
24415 * include/grub/misc.h (grub_min): New function.
24416 * include/grub/script_sh.h (grub_script_init): New prototype.
24417 (grub_script_fini): New prototype.
24418 (grub_script_break): New prototype.
24419 * script/main.c (grub_script_init): New function.
24420 (grub_script_fini): New function.
24421 * script/execute.c (grub_script_break): New function.
24422 * normal/main.c: Calls to grub_script_{init,fini}.
24423 * util/grub-script-check.c (grub_script_break): New function.
24424
24425 * tests/grub_script_break.in: New testcase.
24426 * conf/tests.rmk: Rules for new test case.
24427
f12c8420
BC
244282010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24429
24430 Function parameters support to GRUB script.
24431
24432 * script/yylex.l (VARIABLE): Regular expression update.
24433 * script/function.c (grub_script_function_call): Moved ...
24434 * script/execute.c (grub_script_function_call): ... to here.
24435 (grub_script_execute_arglist_to_argv): Removed.
24436 (grub_script_arglist_to_argv): New function.
24437 * script/argv.c: New file.
24438 (grub_script_argv_free): New function.
24439 (grub_script_argv_next): Likewise.
24440 (grub_script_argv_append): Likewise.
24441 (grub_script_argv_split_append): Likewise.
24442 * include/grub/script_sh.h (grub_script_argv): New struct.
24443 (grub_script_argv_free): New function.
24444 (grub_script_argv_next): Likewise.
24445 (grub_script_argv_append): Likewise.
24446 (grub_script_argv_split_append): Likewise.
24447
24448 * conf/common.rmk (normal.mod): New source script/argv.c.
24449
24450 * tests/grub_script_echo1.in: More tests.
24451 * tests/grub_script_vars1.in: Likewise.
24452 * tests/grub_script_functions.in: New test case.
24453 * conf/tests.rmk: Rules for new testcase.
24454
8022b748
BC
244552010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
24456
24457 Remove grub_script_cmdblock struct.
24458
24459 * include/grub/script_sh.h: Remove grub_script_cmdblock.
24460 * script/parser.y: Likewise.
24461 * script/execute.c: Rename cmdblock suffix to cmdlist.
24462 * script/script.c: Likewise.
24463 * util/grub-script-check.c: Likewise.
24464
79a6ba61
YB
244652010-08-11 Yves Blusseau <blusseau@zetam.org>
24466
24467 * .bzrignore: add grub-macho2img
24468
d04b9414
VS
244692010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
24470
24471 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
24472
f947ab49
VS
244732010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
24474
24475 Remove the dump of sm712 initialisation sequence.
24476
24477 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
24478 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
24479 (GRUB_VGA_IO_MISC_WRITE): Likewise.
24480 (GRUB_VGA_CR_*): Added many registers.
24481 (GRUB_VGA_SR_*): Likewise.
24482 (GRUB_VGA_GR_*): Likewise.
24483 (grub_vga_write_arx): New function.
24484 (grub_video_hw_config): New struct.
24485 (grub_vga_set_geometry): New function.
24486 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
24487 GRUB_PCI_CLASS_SUBCLASS_VGA.
24488 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
24489 * video/sm712.c (grub_sm712_write_reg): New function
24490 (grub_sm712_read_reg): Likewise.
24491 (grub_sm712_sr_write): Likewise.
24492 (grub_sm712_gr_write): Likewise.
24493 (grub_sm712_cr_write): Likewise.
24494 (grub_sm712_write_arx): Likewise.
24495 (grub_sm712_cr_shadow_write): Likewise.
24496 (grub_sm712_write_dda_lookup): Likewise.
24497 (grub_video_sm712_setup): Initialise the video rather then
24498 blindly replay the dump.
24499 (main) [TEST]: Add a routine to be able to compile as standalone for
24500 tests.
24501 * video/sm712_init.c (sm712_init): Removed.
24502 (sm712_sr_seq1): New array.
24503 (sm712_sr_seq2): Likewise.
24504
f0206638
VS
245052010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
24506
24507 * include/grub/vga.h: Add missing grub/pci.h include.
24508
2764da3b
YB
245092010-08-10 Yves Blusseau <blusseau@zetam.org>
24510
24511 * util/grub-macho2img.c (main): fix typo
24512
cf0c775e
VS
245132010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
24514
24515 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
24516 (grub_vga_gr_read): Likewise.
24517 (grub_vga_cr_write): Likewise.
24518 (grub_vga_cr_read): Likewise.
24519 (grub_vga_sr_write): Likewise.
24520 (grub_vga_sr_read): Likewise.
24521 (grub_vga_palette_read): Likewise.
24522 (grub_vga_palette_write): Likewise.
24523 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
24524 (grub_sm712_sr_read): New function.
24525 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
24526 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
24527
07f360e9
RM
245282010-08-09 Robert Millan <rmh@gnu.org>
24529
24530 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
24531 out unused variables on non-ZFS build.
24532
346c2072
RM
245332010-08-08 Robert Millan <rmh@gnu.org>
24534
24535 Fix path generation for sub-filesystems in ZFS.
24536
24537 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
24538 missing slash.
24539
71175420
RM
245402010-08-08 Robert Millan <rmh@gnu.org>
24541
24542 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
24543
0d8286f3
RM
245442010-08-08 Robert Millan <rmh@gnu.org>
24545
24546 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
24547 exist, issue a proper error message (rely on `ls' for translated
24548 strings).
24549
55dd2924
RM
245502010-08-08 Robert Millan <rmh@gnu.org>
24551
24552 Fix grub-probe invocation.
24553
24554 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
24555
d3dd9e80
RM
245562010-08-04 Robert Millan <rmh@gnu.org>
24557
24558 * configure.ac: Remove checks for getfsstat() and getmntany().
24559 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
24560 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
24561 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
24562 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
24563 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
24564 function.
24565 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
24566 via find_mount_point_from_dir() and getfsstat() / getmntany().
24567
0de22aa9
RM
245682010-08-04 Robert Millan <rmh@gnu.org>
24569
24570 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
24571 (grub_find_zpool_from_mount_point): Merge into ...
24572 (grub_find_zpool_from_dir): ... this.
24573 * kern/emu/misc.c: Likewise.
24574
24575 * kern/emu/misc.c
24576 (grub_make_system_path_relative_to_its_root): Replace
24577 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
24578 with grub_find_zpool_from_dir().
24579 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
24580
62858144
RM
245812010-08-04 Robert Millan <rmh@gnu.org>
24582
24583 Support OpenSolaris in ZFS device resolution.
24584
24585 * configure.ac: Check for getmntany().
24586 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
24587 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
24588 support.
24589
9dd6fd50
RM
245902010-08-03 Robert Millan <rmh@gnu.org>
24591
24592 Fix grub-emu build.
24593
24594 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
24595 * include/grub/emu/misc.h: ... here.
24596
24597 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
24598 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
24599
24600 * util/misc.c: Remove `<grub/util/libzfs.h>'.
24601 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
24602 (grub_get_libzfs_handle): Move to ...
24603 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
24604 (grub_get_libzfs_handle): ... here.
24605
c9f7ff97
BC
246062010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
24607
24608 * script/execute.c (grub_script_execute_cmdline): Check for NULL
24609 as command name case.
24610
a870a783
CW
246112010-08-02 Colin Watson <cjwatson@ubuntu.com>
24612
24613 * disk/raid.c (insert_array): Select unique numbers for named arrays
24614 as well, for use as keys in the disk cache.
24615
c7db243b
RM
246162010-08-01 Robert Millan <rmh@gnu.org>
24617
24618 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
24619 kFreeBSD device name, except on ZFS where the filesystem label is
24620 used.
24621 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
24622 `/boot/zfs/zpool.cache'.
24623 Set mountfrom kernel variable using ${kfreebsd_device}.
24624
f7abdefb
RM
246252010-08-01 Robert Millan <rmh@gnu.org>
24626
24627 Make it even harder to use uninitialized `libzfs_handle' (and
24628 make the interface a bit simpler).
24629
24630 * include/grub/util/misc.h (grub_util_init_libzfs)
24631 (libzfs_handle): Remove.
24632 (grub_get_libzfs_handle): New prototype.
24633
24634 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
24635 attribute.
24636 (grub_util_init_libzfs): Remove.
24637 (grub_get_libzfs_handle): New function.
24638
24639 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
24640 grub_get_libzfs_handle() to obtain a libzfs handle instead of
24641 accessing `libzfs_handle' directly.
24642
c882acc0
RM
246432010-08-01 Robert Millan <rmh@gnu.org>
24644
24645 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
24646 (grub_find_zpool_from_mount_point): New function prototypes.
24647
24648 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
24649 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
24650
24651 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
24652 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
24653 `static' attribute.
24654
24655 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
24656 finding zpool from mount point into ...
24657 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
24658
24659 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
24660 requested path is part of a ZFS pool, use
24661 grub_find_zpool_from_mount_point() to detect its filesystem name,
24662 and generate a path with `/fsname@path' syntax.
24663
8bfe31d8
CW
246642010-08-01 Colin Watson <cjwatson@ubuntu.com>
24665
24666 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
24667 (void) rather than () so that this is a proper prototype.
24668
553df63d
VS
246692010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24670
24671 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
24672
8687cf07
VS
246732010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24674
24675 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
24676 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
24677
ea9be8ea
CW
246782010-08-01 Colin Watson <cjwatson@ubuntu.com>
24679
24680 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
24681
6eea041a
CW
246822010-08-01 Colin Watson <cjwatson@ubuntu.com>
24683
24684 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
24685
2cfb45df
CW
246862010-08-01 Colin Watson <cjwatson@ubuntu.com>
24687
24688 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
24689 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
24690 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
24691 disable gfxpayload.
24692 (Shell-like scripting): Add real content.
24693 (Serial terminal): Suggest `terminal_input serial; terminal_output
24694 serial' rather than putting the two commands on separate lines,
24695 since console input will be inoperative after the first command.
24696 (menuentry): Document --class, --users, and --hotkey options.
24697 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
24698 Vladimir Serbinenko).
24699
7decd202
VS
247002010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
247012010-08-01 Colin Watson <cjwatson@ubuntu.com>
24702
24703 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
24704
c882acc0
RM
247052010-08-01 Robert Millan <rmh@gnu.org>
24706
24707 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
24708 (grub_find_zpool_from_mount_point): New function prototypes.
24709
24710 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
24711 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
24712
24713 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
24714 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
24715 `static' attribute.
24716
24717 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
24718 finding zpool from mount point into ...
24719 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
24720
24721 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
24722 requested path is part of a ZFS pool, use
24723 grub_find_zpool_from_mount_point() to detect its filesystem name,
24724 and generate a path with `/fsname@path' syntax.
24725
deb0caa3
RM
247262010-08-01 Robert Millan <rmh@gnu.org>
24727
24728 Prevent accidental use of uninitialized libzfs_handle.
24729
24730 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
24731 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
24732 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
24733
ce04ef47
CW
247342010-08-01 Colin Watson <cjwatson@ubuntu.com>
24735
24736 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
24737 util/grub.d/10_linux.in). Fixes Debian bug #591093.
24738
ebf53056
RM
247392010-08-01 Robert Millan <rmh@gnu.org>
24740
24741 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 24742
3710bb6b
RM
247432010-07-31 Robert Millan <rmh@gnu.org>
24744
24745 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
24746
8072efeb
RM
247472010-07-31 Robert Millan <rmh@gnu.org>
24748
24749 * kern/emu/misc.c: Add missing license header.
24750
3169f4c7
RM
247512010-07-31 Robert Millan <rmh@gnu.org>
24752
24753 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
24754
24755 * include/grub/util/libnvpair.h: Include `<config.h>'.
24756 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
24757 declaring libnvpair prototypes ourselves.
24758 * include/grub/util/libzfs.h: Include `<config.h>'.
24759 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
24760 declaring libzfs prototypes ourselves.
24761
24762 (libzfs_handle): Moved to ...
24763 * include/grub/util/misc.h (libzfs_handle): ... here.
24764 Include `<grub/util/libzfs.h>'.
24765
c9a00aee
RM
247662010-07-30 Robert Millan <rmh@gnu.org>
24767
24768 * include/grub/emu/misc.h: Add missing license header.
24769
a184f9c8
RM
247702010-07-30 Robert Millan <rmh@gnu.org>
24771
24772 Enable `grub-probe -t device' resolution on ZFS.
24773
24774 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
24775 * include/grub/util/libnvpair.h: New file.
24776 * include/grub/util/libzfs.h: New file.
24777
24778 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
24779 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
24780 `<grub/util/libnvpair.h>'.
24781 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
24782
24783 (find_mount_point_from_dir): New static function.
24784 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
24785 function.
24786 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
24787 find_root_device_from_libzfs() before ressorting to find_root_device().
24788
24789 * include/grub/util/misc.h (grub_util_init_libzfs): New function
24790 prototype.
24791 * util/misc.c: Include `<grub/util/libzfs.h>'.
24792 (grub_util_init_libzfs): New function.
24793 [HAVE_LIBZFS] (libzfs_handle): New global variable.
24794 [HAVE_LIBZFS] (fini_libzfs): New static function.
24795 (grub_util_init_libzfs): New function.
24796 * util/grub-probe.c (main): Call grub_util_init_libzfs().
24797
f7790cdd
RM
247982010-07-30 Robert Millan <rmh@gnu.org>
24799
24800 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
24801 (xmalloc, xrealloc, xstrdup, xasprintf): Add
24802 `warn_unused_result' attribute.
24803 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
24804 (grub_xasprintf, grub_xvasprintf): Likewise.
24805 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
24806
0806b63c
RM
248072010-07-29 Robert Millan <rmh@gnu.org>
24808
24809 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
24810 (probe): Handle `PRINT_FS_LABEL'.
24811 (main): Handle `-t fs_label'.
24812
9f841f5c
RM
248132010-07-29 Robert Millan <rmh@gnu.org>
24814
24815 * configure.ac: Remove grub-mkisofs checks.
24816
46371121
VS
248172010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
24818
24819 * util/ieee1275/grub-install.in: Don't use empty grub_device.
24820 Reported by: Lennart Sorensen.
24821
248222010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24823
24824 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
24825 prior to terminal_input/terminal_output separation. It's been over 1.5
24826 years and those versions weren't widely deployed.
24827
a9600892
CW
248282010-07-22 Colin Watson <cjwatson@ubuntu.com>
24829
24830 * disk/raid.c (insert_array): Don't count named arrays when looking
24831 for unused array numbers.
697e053c 24832 Reported and tested by: Michael Guntsche.
a9600892 24833
c03507df
CW
248342010-07-20 Colin Watson <cjwatson@ubuntu.com>
24835
24836 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
24837 implementation of this so that grub-emu links again, with a note
24838 that this should support hotplugging in the future.
24839
b26f1c11
CW
248402010-07-20 Colin Watson <cjwatson@ubuntu.com>
24841
24842 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
24843
efc9d7f1
CW
248442010-07-20 Colin Watson <cjwatson@ubuntu.com>
24845
24846 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
24847 handle on failure.
24848 (grub_loopback_close): Remove empty function.
24849 (grub_loopback_dev): Remove close method.
24850
dd8ff5c9
CW
248512010-07-20 Colin Watson <cjwatson@ubuntu.com>
24852
24853 Disable EFI cursor when the EFI console becomes inactive.
24854
24855 * term/efi/console.c (grub_efi_console_init): New function.
24856 (grub_efi_console_fini): New function.
24857 (grub_console_term_output): Register init and fini methods.
24858
5e3bec67
VS
248592010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24860
24861 * tests/util/grub-shell-tester.in: Remove bashism and declare as
24862 sh script.
24863
afaec079
VS
248642010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24865
24866 * disk/loopback.c (grub_loopback): Replace filename with file.
24867 (delete_loopback): Handle new semantics.
24868 (grub_cmd_loopback): Likewise.
24869 (grub_loopback_iterate): Likewise.
24870 (grub_loopback_close): Likewise.
24871
a6a11f3c
VS
248722010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24873
24874 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
24875 with -p "".
24876 Reported by: Tito Keitel.
24877
64a638b0
VS
248782010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24879
24880 * docs/grub.texi (Naming convention): Document new naming convention.
24881
ab8ba957
VS
248822010-07-20 Vadim Solomin <vadic052@gmail.com>
248832010-07-20 Colin Watson <cjwatson@ubuntu.com>
24884
24885 Generate device.map in something closer to the old ordering.
24886
24887 * util/deviceiter.c (struct device): New declaration.
24888 (compare_file_names): Rename to ...
24889 (compare_devices): ... this. Sort by kernel name in preference to
24890 the stable by-id name, but keep the latter as a fallback comparison.
24891 Update header comment.
24892 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
24893 of `struct device' rather than of plain file names.
24894
a29d6a4b
TF
248952010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
24896
24897 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
24898 on i386.
24899
39d824e8
VS
249002010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24901
24902 * commands/acpi.c (setup_common_tables): Use sizeof instead of
24903 hardcoding size.
24904 (setv1table): Likewise.
24905
f058276b
FZ
249062010-07-20 Colin Watson <cjwatson@ubuntu.com>
24907
24908 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
24909 removing the homehost if present.
24910 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
24911 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
24912 removing the homehost if present.
24913 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
24914 if possible.
24915 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
24916
24917 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
24918 parameter. Set its pointer target to 0.
24919 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
24920 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
24921 `data_offset' value from the superblock for 1.x metadata.
24922 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
24923 data on the device.
24924 (insert_array): Record the start sector of data on the device.
24925 (grub_raid_register): Pass start_sector parameters to
24926 grub_raid_list->detect and insert_array.
24927 * include/grub/raid.h (struct grub_raid_array): Add start_sector
24928 member.
24929 (struct grub_raid): Add start_sector parameter to `detect'.
24930
24931 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
24932 __attribute__ ((packed)), leaving a comment.
24933 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
24934 (grub_mdraid_detect_09): ... here and ...
24935 (grub_mdraid_detect_1x): ... here.
24936
249372010-07-20 Peter Henn <peter.henn@web.de>
24938
24939 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
24940 chunk size and disk size, which are already given as sector counts
24941 as distinct from the 0.90 units. Fetch the correct device number
24942 from the role table instead of using the table index.
24943
249442010-07-20 Felix Zielcke <fzielcke@z-51.de>
24945
24946 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
24947 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
24948 (WriteMostly1): New macro.
24949 Set array->name to NULL for metadata format 0.90. Add support for
24950 metadata 1.x. Fix some comments.
24951 * disk/raid.c (): Add support for name based RAID arrays. Fix a
24952 few comments.
24953 * util/getroot.c (grub_util_get_grub_dev): Add support for
24954 /dev/md/name style devices.
24955
4b761da9
CW
249562010-07-20 Colin Watson <cjwatson@ubuntu.com>
24957
24958 * .bzrignore: Ignore 20_linux_xen.
24959
5771289a
CW
249602010-07-17 Colin Watson <cjwatson@ubuntu.com>
24961
24962 * util/import_unicode.py: Remove unnecessary imports.
24963
5dab68df
AN
249642010-07-17 Aleš Nesrsta <starous@volny.cz>
24965
24966 Hotplugging and USB hub support.
24967
24968 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
24969 (grub_ohci): Likewise.
24970 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
24971 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
24972 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
24973 (GRUB_OHCI_CTRL_EDS): Likewise.
24974 (GRUB_OHCI_BULK_EDS): Likewise.
24975 (GRUB_OHCI_TDS): Likewise.
24976 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
24977 (grub_ohci_ed_phys2virt): New function.
24978 (grub_ohci_virt_to_phys): Likewise.
24979 (grub_ohci_td_phys2virt): Likewise.
24980 (grub_ohci_td_virt2phys): Likewise.
24981 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
24982 attachment.
24983 (grub_ohci_find_ed): New function.
24984 (grub_ohci_alloc_td): Likewise.
24985 (grub_ohci_free_td): Likewise.
24986 (grub_ohci_free_tds): Likewise.
24987 (grub_ohci_transfer): Use previously allocated memory.
24988 (grub_ohci_portstatus): Reset status changed bit.
24989 (grub_ohci_detect_dev): Supply status changed.
24990 (grub_ohci_fini_hw): Free memory.
24991 (grub_ohci_restore_hw): Reallocate memory.
24992 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
24993 Reset status change.
24994 (grub_uhci_detect_dev): Supply status_change.
24995 * bus/usb/usb.c (attach_hooks): New var.
24996 (grub_usb_device_attach): New function.
24997 (grub_usb_register_attach_hook_class): Likewise.
24998 (grub_usb_unregister_attach_hook_class): Likewise.
24999 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
25000 (grub_usb_add_hub): Reset connection changed bit.
25001 (attach_root_port): New function.
25002 (grub_usb_root_hub): Likewise.
25003 (poll_nonroot_hub): Likewise.
25004 (grub_usb_poll_devices): Likewise.
25005 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
25006 * disk/usbms.c (grub_usbms_open): Use device hooks.
25007 (grub_usbms_iterate) :Poll devices.
25008 (grub_usbms_finddevs): Split into ...
25009 (grub_usbms_attach): ... this ...
25010 (grub_usbms_attach): ... and this.
25011 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
25012 in detect_dev.
25013 (grub_usb_interface): New fields attached and detach_hook.
25014 (grub_usb_attach_hook_class): New type.
25015 (grub_usb_attach_desc): New struct.
25016 (grub_usb_register_attach_hook_class): New function.
25017 (grub_usb_unregister_attach_hook_class): Likewise.
25018 (grub_usb_poll_devices): Likewise.
25019 (grub_usb_device_attach): Likewise.
25020 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
25021 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
25022
3222efaf
VS
250232010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25024
25025 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
25026 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
25027 delta determination style. Works with most NetBSD partitions too.
25028
139b714a
VS
250292010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25030
25031 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
25032 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
25033
986aad56
VS
250342010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
25035
25036 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
25037
99be513c
AB
250382010-07-14 Anton Blanchard <anton@samba.org>
25039
25040 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
25041 ET_DYN files.
25042
18075f62
GS
250432010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25044
25045 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
25046
8d9a5b15
GS
250472010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
25048
25049 * kern/partition.c (grub_partition_check_containment): New function to
25050 check that a partition is physically contained in a parent. Since
25051 offsets are relative (and non-negative), this reduces to checking that
25052 the partition ends before its parent.
25053 (grub_partition_map_probe): Discard out-of-range sub-partitions.
25054 (grub_partition_iterate): Likewise.
25055 * include/grub/partition.h (grub_partition_map): Slightly more detailed
25056 comments.
25057 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
25058 partitions that start before their parent, and add debug printfs.
25059
19563c25
CW
250602010-07-13 Colin Watson <cjwatson@ubuntu.com>
25061
25062 * Makefile.in (.SUFFIX): Spell correctly, as ...
25063 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
25064 bare module name without `.mod', e.g. `test') tried to invoke a
25065 Modula-2 compiler.
25066
1a1f1e67
CW
250672010-07-13 Colin Watson <cjwatson@ubuntu.com>
25068
25069 * README: Point to the Info manual.
25070
811b0dca
JS
250712010-07-13 Jiro SEKIBA <jir@unicus.jp>
25072
25073 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
25074 2nd superblock position from partition size.
25075
e4f4eafc
CW
250762010-07-10 Colin Watson <cjwatson@ubuntu.com>
25077
25078 * Makefile.in (MAINTAINER_CLEANFILES): Remove
25079 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
25080 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
25081 outputs.
25082
4274c30f
VS
250832010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25084
25085 Restructure SCSI .id handling.
25086 Reported and tested by: Aleš Nesrsta.
25087
25088 * disk/ata.c (grub_atapi_close): Removed. All users updated.
25089 (grub_atapi_dev): Changed .name to "ata". New field .id.
25090 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
25091 (grub_usbms_dev): New field .id.
25092 * disk/scsi.c (grub_scsi_iterate): Generate name.
25093 (grub_scsi_open): Parse name.
25094 * include/grub/scsi.h (grub_make_scsi_id): New function.
25095 (grub_scsi_dev): Change iterate and open to number instead of naming
25096 busses. All users updated.
25097 (grub_scsi): Remove name. Add .bus.
25098
5bc24388
VS
250992010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25100
25101 * commands/help.c (grub_cmd_help): Fix a typo.
25102
249975ba
VS
251032010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25104
25105 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
25106 Reported and tested by: Colin Watson.
25107
3eaac1a1
VS
251082010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
25109
25110 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
25111 in this context.
25112
becce1b1
VS
251132010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
25114
25115 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
25116
f7bf0918
CW
251172010-07-07 Colin Watson <cjwatson@ubuntu.com>
25118
25119 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
25120 indentation.
25121
0b0f9620
CW
251222010-07-06 Colin Watson <cjwatson@ubuntu.com>
25123
25124 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
25125 and disk/raid6_recover.c.
25126 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25127 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
25128
1e545469
CW
251292010-07-06 Colin Watson <cjwatson@ubuntu.com>
25130
25131 * term/gfxterm.c (repaint_schedulded): Rename to ...
25132 (repaint_scheduled): ... this. Update all callers.
25133 (repaint_was_schedulded): Rename to ...
25134 (repaint_was_scheduled): ... this. Update all callers.
25135
5357687a
CW
251362010-07-06 Colin Watson <cjwatson@ubuntu.com>
25137
25138 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
25139 which we expect to be handled by upper layers.
25140
29d7e783
BC
251412010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
25142
25143 * bus/usb/usbhub.c: #include time.h header.
25144
37582066
CW
251452010-07-06 Colin Watson <cjwatson@ubuntu.com>
25146
25147 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
25148 entry_name also for entries without stat blocks (e.g. ".."); fixes
25149 corruption of the first entry in a directory.
25150
c8c06953
CW
251512010-07-06 Colin Watson <cjwatson@ubuntu.com>
25152
25153 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
25154 after setting gfxterm as the active terminal. GRUB_BACKGROUND
25155 doesn't work otherwise.
25156
e75056f1
CW
251572010-07-05 Colin Watson <cjwatson@ubuntu.com>
25158
25159 * docs/grub.texi (Features): Update list of supported file systems.
25160 (GNU/Linux): Update for GRUB 2.
25161 (Serial terminal): Remove mention of --disable-serial, which was a
25162 GRUB Legacy configure option. Update instructions to use
25163 `terminal_input' and `terminal_output' rather than `terminal'.
25164 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
25165 configuration' and `Installing GRUB using grub-install'.
25166 (Menu entry editor): Update for GRUB 2.
25167 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
25168 Document new -a, -u, and -v options.
25169 (initrd): New section.
25170 (initrd16): New section.
25171 (linux): New section.
25172 (linux16): New section.
25173 (search): The `var' argument to `--set' is optional.
25174 (GRUB only offers a rescue shell): Go into a little more detail on
25175 drive ordering.
25176
5cf69151
CW
251772010-07-05 Colin Watson <cjwatson@ubuntu.com>
25178
25179 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
25180
e3f90044
CW
251812010-07-05 Colin Watson <cjwatson@ubuntu.com>
25182
25183 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
25184 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
25185
38d8f4f3
CW
251862010-07-05 Colin Watson <cjwatson@ubuntu.com>
25187
25188 * util/i386/pc/grub-setup.c (setup): Rename prefix to
25189 install_prefix, in line with install_dos_part and install_bsd_part.
25190 Add new prefix variable, which is copied to install_prefix after
25191 comparing core.img in memory with the one read from disk in the
25192 no-embedding case, and use that rather than overwriting
25193 install_prefix immediately when installing to a partition.
25194 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
25195 Bicakci.
25196
57ebd41e
GS
251972010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25198
25199 * configure.ac: Avoid == in test command, it's not portable.
25200 * util/grub.d/30_os-prober.in: Likewise.
25201
cb7f64b2
CW
252022010-07-04 Colin Watson <cjwatson@ubuntu.com>
25203
25204 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
25205
6b654bb0
GS
252062010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
25207
25208 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
25209 multiple (top-level) partmaps.
25210
72a2026d
VS
252112010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25212
25213 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 25214 Reported by: Tino Keitel.
72a2026d 25215
df3eb88f
VS
252162010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25217
25218 Bidi and diacritics support.
25219
25220 * Makefile.in (widthspec.bin): New target.
25221 (widthspec.h): Likewise.
25222 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
25223 * autogen.sh: Generate unidata.c.
25224 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
25225 * commands/ls.c (grub_ls_list_devices): Likewise.
25226 (grub_ls_list_files): Likewise.
25227 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
25228 (grub_mini_cmd_lsmod): Likewise.
25229 * commands/read.c: Likewise.
25230 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
25231 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
25232 * lib/arg.c (grub_arg_show_help): Likewise.
25233 * lib/crypto.c (grub_password_get): Likewise.
25234 * normal/auth.c (grub_username_get): Likewise.
25235 * normal/misc.c (grub_normal_print_device_info): Likewise.
25236 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
25237 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
25238 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
25239 (normal/charset.c_DEPENDENCIES): New variable.
25240 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
25241 (pkglib_MODULES): Remove charset.mod.
25242 (charset_mod_SOURCES): Removed.
25243 (charset_mod_CFLAGS): Likewise.
25244 (charset_mod_LDFLAGS): Likewise.
25245 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
25246 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
25247 and term/tparm.c.
25248 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25249 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25250 (kernel_img_HEADERS): Add terminfo.h.
25251 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
25252 Fill ->font. Reverse ascii bitmaps.
25253 (grub_font_get_xheight): New function.
25254 * font/font.c (grub_font_get_string_width): Moved from here ...
25255 * gfxmenu/font.c (grub_font_get_string_width): ... here.
25256 * font/font.c (grub_font_draw_string): Moved from here ...
25257 * gfxmenu/font.c (grub_font_draw_string): ... here.
25258 * font/font.c (grub_font_dup_glyph): New function.
25259 (grub_font_blit_glyph): Likewise.
25260 (grub_font_blit_glyph_mirror): Likewise.
25261 (blit_comb): Likewise.
25262 (grub_font_construct_dry_run): Likewise.
25263 (grub_font_get_constructed_device_width): Likewise.
25264 (grub_font_construct_glyph): Likewise.
25265 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
25266 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
25267 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
25268 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
25269 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
25270 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
25271 (grub_font_get_xheight): New proto.
25272 (grub_font_get_constructed_device_width): Likewise.
25273 (grub_font_construct_glyph): Likewise.
25274 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
25275 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
25276 * include/grub/font.h (grub_font_draw_string): Moved from here ...
25277 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
25278 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
25279 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
25280 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
25281 (grub_console_getcharwidth): Likewise.
25282 * include/grub/misc.h (grub_xputs): New proto.
25283 (grub_puts): Inlined.
25284 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
25285 (grub_normal_get_line_counter): Removed.
25286 (grub_install_newline_hook): Likewise.
25287 (grub_normal_get_char_counter): New proto.
25288 (grub_normal_reset_more): Likewise.
25289 (grub_xputs_normal): Likewise.
25290 * include/grub/powerpc/ieee1275/console.h: Removed.
25291 * include/grub/sparc64/ieee1275/console.h: Likewise.
25292 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
25293 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
25294 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
25295 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
25296 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
25297 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
25298 (grub_term_input): Pass reference to self. All users updated.
25299 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
25300 Pass reference to self. New fields normal_color, highlight_color and
25301 data. All users updated.
25302 (grub_putchar): Removed.
25303 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
25304 (grub_unicode_estimate_width): New function.
25305 (grub_term_getcharwidth): Add defaults.
25306 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
25307 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
25308 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
25309 (grub_cls): Remove EXPORT_FUNC.
25310 (grub_setcolorstate): Inline.
25311 (grub_newline_hook): Removed.
25312 * include/grub/terminfo.h: Rewritten. All users updated.
25313 * include/grub/unicode.h: New file.
25314 * include/grub/video.h (grub_video_signed_rect): New type.
25315 * kern/emu/console.c (grub_console_highlight_color): Removed.
25316 (grub_console_normal_color): Likewise.
25317 (grub_console_standard_color): Made static.
25318 (grub_ncurses_putchar): Remove mapping.
25319 (grub_ncurses_getcharwidth): Removed.
25320 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
25321 (grub_ncurses_setcolor): Removed.
25322 (grub_ncurses_getcolor): Likewise.
25323 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
25324 (grub_console_putchar): ... this.
25325 (grub_console_putchar): Handle argument difference.
25326 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
25327 console_init_early and console_init_lately.
25328 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
25329 * kern/misc.c (grub_puts): Removed.
25330 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
25331 (grub_vsnprintf_real): Remove str = NULL support.
25332 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
25333 * normal/charset.c (grub_utf8_to_ucs4): ... here.
25334 * kern/term.c (grub_putcode): Renamed to ...
25335 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
25336 (grub_putchar): Removed.
25337 (grub_xputs_dumb): New function.
25338 (grub_xputs): New variable.
25339 * lib/charset.c: Move from here ...
25340 * normal/charset.c: ... to here.
25341 (grub_ucs4_to_utf8): New function.
25342 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
25343 (join_types): New variable.
25344 (unpack_join): New function.
25345 (bidi_types): New variable.
25346 (unpack_bidi): New function.
25347 (get_bidi_type): Likewise.
25348 (get_join_type): Likewise.
25349 (is_mirrored): Likewise.
25350 (grub_unicode_get_comb_type): Likewise.
25351 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
25352 (is_type_after): Likewise.
25353 (grub_unicode_aglomerate_comb): Likewise.
25354 (bidi_line_wrap): Likewise.
25355 (grub_bidi_line_logical_to_visual): Likewise.
25356 (grub_bidi_logical_to_visual): Likewise.
25357 (grub_unicode_mirror_code): Likewise.
25358 (grub_unicode_shape_code): Likewise.
25359 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
25360 Don't use grub_putchar.
25361 * normal/main.c (grub_normal_init_page): Use grub_putcode.
25362 (grub_normal_reader_init): Likewise.
25363 (grub_xputs_saved): New variable.
25364 (GRUB_MOD_INIT): Set grub_xputs.
25365 (GRUB_MOD_FINI): Restore grub_xputs.
25366 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
25367 (menu_init): Avoid printing gfxmenu error.
25368 (show_menu): Use grub_normal_get_char_counter.
25369 * normal/menu_entry.c (update_screen): Fix out-of-array.
25370 (complete): Avoid NULL dereferencing.
25371 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
25372 * normal/menu_text.c (print_spaces): Removed.
25373 (grub_print_ucs4): Likewise.
25374 (grub_print_message_indented): Use grub_print_ucs4.
25375 (print_message): Use grub_putcode.
25376 (print_entry): Hanlde diacritics.
25377 * normal/term.c (term_state): New type.
25378 (grub_more_lines): Removed.
25379 (term_states): New variable.
25380 (grub_normal_line_counter): Renamed to ..
25381 (grub_normal_char_counter): ...this. All users updated.
25382 (grub_normal_get_line_counter): Renamed to ...
25383 (grub_normal_get_char_counter): ... this.
25384 (grub_normal_reset_more): New function.
25385 (process_newline): Removed.
25386 (print_more): New function.
25387 (grub_install_newline_hook): Removed.
25388 (map_code): New function.
25389 (grub_puts_terminal): Use grub_print_ucs4.
25390 (putglyph): New function.
25391 (putcode_real): Likewise.
25392 (grub_putcode): Use putcode_real.
25393 (get_maxwidth): New function.
25394 (get_startwidth): Likewise.
25395 (print_ucs4_terminal): Likewise.
25396 (find_term_state): Likewise.
25397 (put_glyphs_terminal): Likewise.
25398 (print_backlog): Likewise.
25399 (print_ucs4_real): Likewise.
25400 (grub_print_ucs4): Likewise.
25401 (grub_xputs_normal): Likewise.
25402 * term/efi/console.c (grub_console_putchar): Output diacritics.
25403 (grub_console_getcharwidth): Removed.
25404 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
25405 * term/gfxterm.c (clear_char): Free chars.
25406 (scroll_up): Avoid leaking memory.
25407 (grub_gfxterm_putchar): Support diacritics.
25408 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
25409 * term/i386/pc/console.c (grub_console_term_output): Declare as
25410 GRUB_TERM_CODE_TYPE_VGA.
25411 * term/i386/pc/vga.c (grub_vga_term): Declare as
25412 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
25413 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
25414 GRUB_TERM_CODE_TYPE_VGA.
25415 * term/i386/vga_common.c (map_char): Removed.
25416 (grub_console_putchar): Likewise.
25417 (grub_console_getcharwidth): Likewise.
25418 * term/ieee1275/ofconsole.c: Simplify using terminfo.
25419 (colors): Reordered to match terminfo.
25420 (grub_ofconsole_normal_color): Removed.
25421 (grub_ofconsole_writeesc): Likewise.
25422 (grub_ofconsole_highlight_color): Likewise.
25423 (grub_ofconsole_getcharwidth): Likewise.
25424 (grub_ofconsole_setcolorstate): Likewise.
25425 (grub_ofconsole_setcolor): Likewise.
25426 (grub_ofconsole_getcolor): Likewise.
25427 (grub_ofconsole_readkey): Renamed to ...
25428 (readkey): ... this. Remove escape sequence handling. Return -1 on no
25429 key.
25430 (grub_ofconsole_checkkey): Removed.
25431 (grub_ofconsole_getkey): Likewise.
25432 (grub_ofconsole_getxy): Likewise.
25433 (grub_ofconsole_gotoxy): Likewise.
25434 (grub_ofconsole_cls): Likewise.
25435 (grub_ofconsole_refresh): Likewise.
25436 (grub_ofconsole_terminfo_input): New struct.
25437 (grub_ofconsole_terminfo_output): Likewise.
25438 (grub_ofconsole_term_input): Use terminfo.
25439 (grub_ofconsole_term_output): Likewise.
25440 (grub_console_init): Split into ...
25441 (grub_console_init_early): ...this and ...
25442 (grub_console_init_lately): ...this. Use terminfo.
25443 (grub_ofconsole_putchar): Renamed to ...
25444 (put): ... this. Remove mapping.
25445 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
25446 * term/serial.c: Simplify using terminfo.
25447 (xpos): Removed.
25448 (ypos): Likewise.
25449 (keep_track): Likewise.
25450 (registered): Likewise.
25451 (input_buf): Likewise.
25452 (npending): Likewise.
25453 (serial_translate_key_sequence): Likewise.
25454 (fill_input_buf): Likewise.
25455 (grub_serial_checkkey): Likewise.
25456 (grub_serial_getkey): Likewise.
25457 (grub_serial_getxy): Likewise.
25458 (grub_serial_gotoxy): Likewise.
25459 (grub_serial_putchar): Likewise.
25460 (grub_serial_cls): Likewise.
25461 (grub_serial_setcolorstate): Likewise.
25462 (grub_serial_setcursor): Likewise.
25463 (serial_hw_init): Use serial_hw_fetch.
25464 (grub_serial_terminfo_input): New variable.
25465 (grub_serial_terminfo_output): Likewise.
25466 (grub_serial_term_input): Use terminfo.
25467 (grub_serial_term_output): Likewise.
25468 * term/terminfo.c (putstr): Use put.
25469 (grub_terminfo_all_free): New function
25470 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
25471 (grub_terminfo_output_register): New function.
25472 (grub_terminfo_output_unregister): Likewise.
25473 (grub_terminfo_getxy): Likewise.
25474 (grub_terminfo_readkey): Likewise.
25475 (grub_terminfo_checkkey): Likewise.
25476 (grub_terminfo_getkey): Likewise.
25477 (grub_terminfo_input_init): Likewise.
25478 (print_terminfo): Likewise.
25479 (grub_cmd_terminfo): Handle encoding.
25480 (grub_terminfo_gotoxy): Track position.
25481 (grub_terminfo_cls): Likewise.
25482 (grub_terminfo_putchar): Likewise.
25483 (grub_terminfo_setcolorstate): Handle colors
25484 (grub_terminfo_cursor_on): This ...
25485 (grub_terminfo_cursor_off): ... and this merged into ...
25486 (grub_terminfo_setcursor): ... this.
25487 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
25488 * unicode/ArabicShaping.txt: New file (imported from Unicode).
25489 * unicode/BidiMirroring.txt: Likewise.
25490 * unicode/UnicodeData.txt: Likewise.
25491 * unicode/COPYING: Likewise.
25492 * util/grub-editenv.c (grub_putchar): Removed.
25493 (grub_xputs_real): New function.
25494 (grub_xputs): New variable.
25495 * util/grub-fstest.c (grub_putchar): Removed.
25496 (grub_xputs_real): New function.
25497 (grub_xputs): New variable.
25498 * util/grub-mkdevicemap.c (grub_putchar): Removed.
25499 (grub_xputs_real): New function.
25500 (grub_xputs): New variable.
25501 * util/grub-probe.c (grub_putchar): Removed.
25502 (grub_xputs_real): New function.
25503 (grub_xputs): New variable.
25504 * util/grub-script-check.c (grub_putchar): Removed.
25505 (grub_xputs_real): New function.
25506 (grub_xputs): New variable.
25507 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
25508 (grub_xputs_real): New function.
25509 (grub_xputs): New variable.
25510 * util/import_unicode.py: New file.
25511 * util/grub-mkfont.c (ft_errmsgs): New array.
25512 (grub_glyph_info): Make bitmap a pointer.
25513 (file_formats): New type WIDTH_SPEC.
25514 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
25515 (options): Add width-spec.
25516 (help): Likewise.
25517 (add_char): Renamed to ...
25518 (add_glyph): ... this.
25519 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
25520 (glyph_replace): New type.
25521 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
25522 (add_char): New function.
25523 (add_subst): Likewise.
25524 (process_cursive): Likewise.
25525 (add_font): Handle GSUB.
25526 (write_font_width_spec): New function.
25527 (main): Sort glyphs.
25528 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
25529 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
25530 * kern/term.c (grub_cls): Moved from here...
25531 * normal/term.c (grub_cls): ... here.
25532
50f0bcda
CW
255332010-07-02 Colin Watson <cjwatson@ubuntu.com>
25534
25535 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
25536 suitable for using within the format argument of printf when
25537 converting grub_size_t.
25538 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
25539 "x" to convert grub_size_t arguments.
25540
40372103
VS
255412010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25542
25543 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
25544 too long captions.
25545 (list_get_minimal_size): Take selection box into account.
25546
942a10c7
VS
255472010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25548
25549 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
25550 NULL font.
25551
2bdb2892
CW
255522010-07-02 Colin Watson <cjwatson@ubuntu.com>
25553
25554 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
25555 devices when iterating over /dev/disk/by-id; they will be handled
25556 later if appropriate, which they aren't always (e.g. LVM).
25557
e03ed6c1
CW
255582010-07-02 Colin Watson <cjwatson@ubuntu.com>
25559
25560 * include/grub/misc.h (grub_reboot): Declare as noreturn.
25561 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
25562 fails.
25563 (grub_halt): Likewise.
25564 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
25565 reset-all fails.
25566 (grub_halt): Don't return, even if all of shut-down, power-off, and
25567 poweroff fail.
25568
47695765
CW
255692010-07-02 Colin Watson <cjwatson@ubuntu.com>
25570
25571 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
25572 arguments, not three.
25573
507736c8
CW
255742010-07-02 Colin Watson <cjwatson@ubuntu.com>
25575
25576 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
25577 * util/grub.d/10_linux.in: Use it to check for LVM, so that
25578 LVM-on-RAID is handled correctly.
25579
e3c8cd37
CW
255802010-07-02 Colin Watson <cjwatson@ubuntu.com>
25581
25582 * docs/grub.texi (Changes from GRUB Legacy): New section.
25583 (Future): Fix typo.
25584
8d4a2fec
CW
255852010-07-02 Colin Watson <cjwatson@ubuntu.com>
25586
25587 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
25588 grub.d/README accidentally ends up executable for one reason or
25589 another. Ignore it.
25590
1c4827be
VS
255912010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25592
25593 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
25594 (gpt_partition_map_iterate): Support non-512B sectors.
25595
d9a0c941
VS
255962010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25597
25598 * kern/efi/init.c (grub_efi_init): Disable watchdog.
25599 Tested by: Seth Goldberg.
25600
48f27e87
VS
256012010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25602
25603 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
25604 Properly align mbi.
25605 Reported by: Seth Goldberg.
25606
b0c4f956
VS
256072010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25608
25609 * util/grub-mkrescue.in: Avoid module duplication.
25610
105a2e8c
SF
256112010-07-01 Sean Finney <seanius@seanius.net>
25612
25613 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
25614
5944958c
SF
256152010-07-01 Sean Finney <seanius@seanius.net>
25616
25617 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
25618
256192010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25620
25621 * disk/lvm.c (grub_lvm_checkvalue): New function.
25622 (grub_lvm_check_flag): Likewise.
25623
b79889ba
RM
256242010-07-01 Robert Millan <rmh@gnu.org>
25625
25626 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
25627 Support 'p' as partition separator on kernel of FreeBSD (used
25628 with GPT labels).
25629 (grub_util_biosdisk_get_grub_dev): Likewise.
25630
ec1d04f1
VS
256312010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
25632
25633 Yeeloong firmware port.
25634
25635 * boot/mips/yeeloong/fwstart.S: New file.
25636 * bus/cs5536.c (gpiodump): New const.
25637 (set_io_space): New function.
25638 (set_iod): Likewise.
25639 (set_p2d): Likewise.
25640 (grub_cs5536_init_geode): Likewise.
25641 * commands/mips/yeeloong/lsspd.c: New file.
25642 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
25643 (serial_mod_SOURCES): New variable.
25644 (serial_mod_CFLAGS): Likewise.
25645 (serial_mod_LDFLAGS): Likewise.
25646 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
25647 term/terminfo.c and term/tparm.c.
25648 (pkglib_IMAGES): Add fwstart.img.
25649 (fwstart_img_SOURCES): New variable.
25650 (fwstart_img_CFLAGS): Likewise.
25651 (fwstart_img_ASFLAGS): Likewise.
25652 (fwstart_img_LDFLAGS): Likewise.
25653 (fwstart_img_FORMAT): Likewise.
25654 (pkglib_MODULES): Add lsspd.mod.
25655 (lsspd_mod_SOURCES): New variable.
25656 (lsspd_mod_CFLAGS): Likewise.
25657 (lsspd_mod_LDFLAGS): Likewise.
25658 (pkglib_MODULES): Add halt.mod.
25659 (halt_mod_SOURCES): New variable.
25660 (halt_mod_CFLAGS): Likewise.
25661 (halt_mod_LDFLAGS): Likewise.
25662 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
25663 (serial_mod_SOURCES): Removed.
25664 (serial_mod_CFLAGS): Likewise.
25665 (serial_mod_LDFLAGS): Likewise.
25666 * disk/ata.c (check_device): New function.
25667 (grub_ata_device_initialize): Use check_device.
25668 (grub_ata_iterate): Recheck devices.
25669 (grub_ata_open): Likewise.
25670 (grub_atapi_iterate): Likewise.
25671 (grub_atapi_open): Likewise.
25672 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
25673 (GRUB_ATA_CH1_PORT1): Likewise.
25674 (GRUB_ATA_CH0_PORT2): Likewise.
25675 (GRUB_ATA_CH1_PORT2): Likewise.
25676 * include/grub/mips/loongson.h: New file.
25677 * include/grub/mips/yeeloong/ec.h: Likewise.
25678 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
25679 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
25680 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
25681 * include/grub/misc.h (grub_halt): Declare as noreturn.
25682 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
25683 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
25684 (UART_ENABLE_FIFO_TRIGGER1): New definition.
25685 (UART_ENABLE_DTRRTS): Likewise.
25686 (UART_ENABLE_MODEM): Removed.
25687 (UART_ENABLE_OUT2): New const.
25688 * include/grub/term.h (grub_term_register_input_active): New function.
25689 (grub_term_register_output_active): Likewise.
25690 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
25691 argument.
25692 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
25693 (init_pci): New function.
25694 (grub_machine_init): Execute platform init when firmware. Init serial.
25695 (grub_halt): Implement.
25696 (grub_exit): Likewise.
25697 (grub_reboot): Likewise.
25698 * term/serial.c (serial_hw_init): Update macros.
25699 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
25700 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
25701 (image_targets): New target mipsel-yeeloong-flash.
25702 (generate_image): Support IMAGE_YEELOONG_FLASH.
25703 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
25704 (grub_video_sm712_setup): Init card.
25705 (grub_video_sm712_set_palette): Removed.
25706 * video/sm712_init.c: New file.
25707
ff4a70d2
CW
257082010-06-30 Colin Watson <cjwatson@ubuntu.com>
25709
25710 * Makefile.in (install-local): Temporarily prepend $(builddir) to
25711 PATH when running help2man and then run it on the unadorned
25712 executable names, rather than passing $(builddir)/* paths to
25713 help2man. This avoids the build directory ending up in generated
25714 manual pages.
25715
1246efeb
CW
257162010-06-29 Colin Watson <cjwatson@ubuntu.com>
25717
25718 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
25719 to avoid accidents when debugging with 'sh -x'.
25720 * util/grub-mkrescue.in: Likewise.
25721 * util/grub.d/00_header.in: Likewise.
25722 * util/grub.d/10_hurd.in: Likewise.
25723 * util/grub.d/10_kfreebsd.in: Likewise.
25724 * util/grub.d/10_linux.in: Likewise.
25725 * util/grub.d/10_netbsd.in: Likewise.
25726 * util/grub.d/10_windows.in: Likewise.
25727 * util/grub.d/20_linux_xen.in: Likewise.
25728 * util/grub.d/30_os-prober.in: Likewise.
25729 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
25730
1ba9b889
CW
257312010-06-29 Colin Watson <cjwatson@ubuntu.com>
25732
25733 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
25734 last character in the buffer.
25735 Reported by: Vladimir Serbinenko.
25736
dccaf99d
RM
257372010-06-29 Robert Millan <rmh@gnu.org>
25738
25739 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
25740 (Command-line and menu entry commands): Document `badram' command.
25741
d500ed12
RM
257422010-06-28 Robert Millan <rmh@gnu.org>
25743
25744 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
25745 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
25746 command using ${GRUB_BADRAM} as parameter.
25747
20bc84a6
CW
257482010-06-28 Colin Watson <cjwatson@ubuntu.com>
25749
25750 * docs/grub.texi (Device map): New section.
25751 (Themes): New section (stub).
25752 * Makefile.in (docs/grub.info): The info documentation now builds
25753 without errors. Make sure it stays that way.
25754
4045dee1
VS
257552010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
25756
25757 Use normal parser for menu entries.
25758 Reported by: Thomas Frauendorfer
25759
25760 * include/grub/parser.h (grub_parser_execute): Don't export.
25761 * normal/menu.c (grub_menu_execute_entry_real): New function.
25762 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
25763
bca58c7b
CW
257642010-06-28 Colin Watson <cjwatson@ubuntu.com>
25765
25766 * docs/grub.texi (Embedded configuration): New section (replacing
25767 old "Preset Menu" stub).
25768 (Images): New section.
25769 (configfile): Note that any menu entries defined in `file' are shown
25770 immediately.
25771
dec53e63
JT
257722010-06-28 Josh Triplett <josh@joshtriplett.org>
25773
25774 * mmap/i386/pc/mmap_helper.S: Set CF on return.
25775
c06e40f7
CW
257762010-06-28 Colin Watson <cjwatson@ubuntu.com>
25777
25778 * util/grub-install.in: Add --debug-image= option.
25779
cb88052b
CW
257802010-06-28 Colin Watson <cjwatson@ubuntu.com>
25781
25782 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
25783 possible on Linux.
25784
25785 * util/deviceiter.c (check_device): Rename to ...
25786 (check_device_readable_unique): ... this. Update all callers.
25787 Maintain and check a list of which devices (by canonicalized name)
25788 have already been seen.
25789 (clear_seen_devices): New function.
25790 (compare_file_names) [__linux__]: New function.
25791 (grub_util_iterate_devices): Clear the list of seen devices on exit
25792 and (just in case) on entry.
25793 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
25794 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
25795 seen-devices list, superseded by general code in check_device.
25796
bbe34652
CW
257972010-06-28 Colin Watson <cjwatson@ubuntu.com>
25798
25799 * commands/cat.c (options): New variable.
25800 (grub_cmd_cat): Parse options. If the --dos option is given, print
25801 DOS-style "\r\n" line endings as simple newlines (Debian bug
25802 #586358).
25803 (GRUB_MOD_INIT): Use extcmd.
25804 (GRUB_MOD_FINI): Likewise.
25805 * docs/grub.texi (cat): Document --dos.
25806
412e09f3
VS
258072010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
25808
25809 XEN with Linux grub-mkconfig support.
25810
25811 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
25812 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
25813 GRUB_CMDLINE_XEN_DEFAULT.
25814 * util/grub.d/20_linux_xen.in: New file.
25815
53f3ef38 258162010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
25817
25818 Initialise VGA video on qemu ourselves.
25819
25820 * boot/i386/qemu/boot.S: Don't call 0xc000.
25821 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
25822 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
25823 (kernel_img_HEADERS): Add pci.h.
25824 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
25825 * configure.ac: Force unifont on qemu and yeeloong.
25826 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
25827 (grub_vga_palette_write): Use correct register.
25828 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
25829 Call grub_qemu_init_cirrus.
25830 * kern/i386/qemu/init.c: New file.
25831 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
25832
25833 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
25834
c75be4fb
PR
258352010-06-26 Pavel Roskin <proski@gnu.org>
25836
25837 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
25838 13.
25839
d8034603
CW
258402010-06-26 Colin Watson <cjwatson@ubuntu.com>
25841
25842 * docs/grub.texi (Simple configuration): Explain that
25843 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
25844 set to `true' to disable their respective recovery entries, not
25845 merely set.
25846
3fa06487
CW
258472010-06-26 Colin Watson <cjwatson@ubuntu.com>
25848
25849 Make the `source' command slightly faster.
25850
25851 * normal/main.c (grub_normal_execute): Don't re-read list files when
25852 nested.
25853
e9b29642
CW
258542010-06-23 Colin Watson <cjwatson@ubuntu.com>
25855
25856 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
25857 field position and mask size to red fields from mode_info, not
25858 green.
25859 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
25860 Remove redundant tag->common.framebuffer_type assignment.
25861 Reported by: Seth Goldberg.
25862
e726542f
CW
258632010-06-23 Colin Watson <cjwatson@ubuntu.com>
25864
25865 Sync up other versions of the Linux loader with Robert Millan's
25866 change of 2010-01-09, "Make loader output a bit more user-friendly".
25867
25868 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
25869 grub_dprintf().
25870 (grub_cmd_linux): Likewise.
25871 (grub_cmd_initrd): Likewise.
25872 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
25873 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
25874
d6e98a17
CW
258752010-06-21 Colin Watson <cjwatson@ubuntu.com>
25876
25877 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
25878 larger than MEMORY_MAP_SIZE.
25879
14d3f08e
BC
258802010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
25881
25882 Fix parallel build.
25883
25884 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
25885 dependency.
25886 * script/parser.y: #include grub_script.tab.h header.
25887
4f9613a3
VS
258882010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
25889
25890 Support >3GiB and <16MiB RAM in i386-qemu.
25891
25892 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
25893 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
25894 (grub_lower_mem): Removed.
25895 (grub_upper_mem): Likewise.
25896 (mem_size): Made static.
25897 (above_4g): New variable.
25898 (grub_machine_mmap_init): Detect small mem_size and above_4g.
25899 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
25900 support.
25901
05e51879
VS
259022010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
25903
25904 Cirrus 5446 and Bochs video cards support.
25905
25906 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
25907 video_bochs.mod
25908 (video_cirrus_mod_SOURCES): New variable.
25909 (video_cirrus_mod_CFLAGS): Likewise.
25910 (video_cirrus_mod_LDFLAGS): Likewise.
25911 (video_bochs_mod_SOURCES): Likewise.
25912 (video_bochs_mod_CFLAGS): Likewise.
25913 (video_bochs_mod_LDFLAGS): Likewise.
25914 * include/grub/vga.h: New file.
25915 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
25916 (grub_video_fb_set_page_t): New type.
25917 (grub_video_fb_setup): New prototype.
25918 (grub_video_fb_swap_buffers): Likewise.
25919 (grub_video_fb_get_info_and_fini): Likewise.
25920 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
25921 (CRTC_DATA_PORT): Likewise.
25922 (CRTC_CURSOR): Likewise.
25923 (CRTC_CURSOR_ADDR_HIGH): Likewise.
25924 (CRTC_CURSOR_ADDR_LOW): Likewise.
25925 (CRTC_CURSOR_DISABLE): Likewise.
25926 (update_cursor): Use grub_vga_cr_write.
25927 (grub_vga_text_setcursor): Likewise.
25928 * video/bochs.c: New file.
25929 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
25930 (palette): Likewise.
25931 (palette_size): Likewise.
25932 (framebuffer): New variable.
25933 (grub_video_fb_init): Use 'framebuffer'.
25934 (grub_video_fb_fini): Likewise.
25935 (grub_video_fb_get_info): Likewise.
25936 (grub_video_fb_get_palette): Likewise.
25937 (grub_video_fb_set_palette): Likewise.
25938 (grub_video_fb_set_viewport): Likewise.
25939 (grub_video_fb_get_viewport): Likewise.
25940 (grub_video_fb_map_color): Likewise.
25941 (grub_video_fb_map_rgb): Likewise.
25942 (grub_video_fb_map_rgba): Likewise.
25943 (grub_video_fb_unmap_color): Likewise.
25944 (grub_video_fb_unmap_color_int): Likewise.
25945 (grub_video_fb_fill_rect): Likewise.
25946 (grub_video_fb_blit_bitmap): Likewise.
25947 (grub_video_fb_blit_render_target): Likewise.
25948 (grub_video_fb_scroll): Likewise.
25949 (grub_video_fb_create_render_target): Likewise.
25950 (grub_video_fb_doublebuf_blit_init): Likewise.
25951 (grub_video_fb_set_active_render_target): Handle doublebuffering.
25952 (doublebuf_pageflipping_update_screen): New function.
25953 (doublebuf_pageflipping_init): Likewise.
25954 (grub_video_fb_setup): Likewise.
25955 (grub_video_fb_swap_buffers): Likewise.
25956 (grub_video_fb_get_info_and_fini): Likewise.
25957 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
25958 All users updated.
25959 (doublebuf_pageflipping_commit): Restructured into ...
25960 (doublebuf_pageflipping_set_page): ... this.
25961 (doublebuf_pageflipping_update_screen): Removed.
25962 (doublebuf_pageflipping_init): Likewise.
25963 (double_buffering_init): Likewise.
25964 (grub_video_vbe_setup): Use grub_video_fb_setup.
25965 (grub_video_vbe_swap_buffers): Removed.
25966 (grub_video_vbe_set_active_render_target): Likewise.
25967 (grub_video_vbe_get_active_render_target): Likewise.
25968 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
25969 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
25970 grub_video_fb_set_active_render_target and
25971 grub_video_fb_get_active_render_target.
25972 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
25973 (SEQUENCER_DATA_PORT): Likewise.
25974 (MAP_MASK_REGISTER): Likewise.
25975 (CRTC_ADDR_PORT): Likewise.
25976 (CRTC_DATA_PORT): Likewise.
25977 (START_ADDR_HIGH_REGISTER): Likewise.
25978 (START_ADDR_LOW_REGISTER): Likewise.
25979 (GRAPHICS_ADDR_PORT): Likewise.
25980 (GRAPHICS_DATA_PORT): Likewise.
25981 (READ_MAP_REGISTER): Likewise.
25982 (INPUT_STATUS1_REGISTER): Likewise.
25983 (INPUT_STATUS1_VERTR_BIT): Likewise.
25984 (get_map_mask): Use grub_vga_sr_read.
25985 (set_map_mask): Use grub_vga_sr_write.
25986 (set_read_map): Use grub_vga_gr_write.
25987 (set_start_address): Use grub_vga_cr_write.
25988 * video/sm712.c (framebuffer): Remove leftover fields.
25989
4321c64a
CW
259902010-06-20 Colin Watson <cjwatson@ubuntu.com>
25991
25992 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
25993 setting GRUB_VIDEO_BACKEND. Make it available as a user override
25994 instead. Replace the gfxterm backend check with a check that
25995 ${GRUB_PREFIX}/video.lst is non-empty.
25996 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
25997 again.
25998 (load_video): New generated function. Call it before loading
25999 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
26000 * util/grub.d/10_linux.in (linux_entry): Call load_video.
26001 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
26002 * docs/grub.texi (Simple configuration): Document
26003 GRUB_VIDEO_BACKEND.
26004
260052010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
26006
26007 Use video functions in linux and xnu loaders.
26008
26009 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
26010 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
26011 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
26012 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
26013 loader/i386/pc/linux.c.
26014 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
26015 (find_line_len): Removed.
26016 (find_framebuf): Likewise.
26017 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
26018 * loader/i386/efi/xnu.c: Removed.
26019 * loader/i386/pc/xnu.c: Moved from here...
26020 * loader/i386/xnu.c: ...here.
26021
26022 Enable priorities in video drivers.
26023
26024 * include/grub/video.h (grub_video_adapter_prio_t): New type.
26025 (grub_video_adapter): New field prio.
26026 (grub_video_register): Respect prio when inserting.
26027 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
26028 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
26029 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
26030 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
26031 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
26032 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
26033 * video/sm712.c (grub_video_sm712_adapter): Likewise.
26034
26035 Fix SDL driver ID.
26036
26037 * include/grub/video.h (grub_video_driver_id_t): New value
26038 GRUB_VIDEO_DRIVER_SDL.
26039 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
26040
7d24e434
CW
260412010-06-17 Colin Watson <cjwatson@ubuntu.com>
26042
26043 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
26044 argument to printf.
26045 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26046
c88a83f6
CW
260472010-06-17 Colin Watson <cjwatson@ubuntu.com>
26048
26049 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
26050 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26051
094dfb69
CW
260522010-06-17 Colin Watson <cjwatson@ubuntu.com>
26053
26054 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
26055 directly, and recommend grub-install instead.
26056 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
26057
2164da6b
CW
260582010-06-17 Colin Watson <cjwatson@ubuntu.com>
26059
26060 Fix i386-pc prefix handling with nested partitions (Debian bug
26061 #585068). Note that the case where the core image is booted using
26062 multiboot and relocated from its original location still requires
26063 more work.
26064
26065 * kern/i386/pc/init.c (make_install_device): If the prefix starts
26066 with "(,", fill the boot drive in between those two characters, but
26067 expect that a full partition specification including partition map
26068 names will follow.
26069 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
26070 specified, write a prefix without the drive name but including a
26071 full partition specification.
26072
044e2e60
CW
260732010-06-16 Colin Watson <cjwatson@ubuntu.com>
26074
26075 * util/grub-mkconfig.in: Ignore non-option arguments, for
26076 compatibility with older versions (before 2010-06-12) which did the
26077 same. In particular, this makes it easier to ship an update-grub
26078 wrapper which is compatible with that used with GRUB Legacy (Debian
26079 bug #586056).
26080
5591324f
GS
260812010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26082
26083 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
26084 for manual page generation.
26085
662e24d5
GS
260862010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26087
26088 * po/POTFILES: Remove leftover commands/handler.c.
26089
8d70754e
CW
260902010-06-14 Colin Watson <cjwatson@ubuntu.com>
26091
26092 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
26093 left this script non-functional.
26094
41160e2e
CW
260952010-06-14 Colin Watson <cjwatson@ubuntu.com>
26096
26097 * docs/man/grub-emu.h2m: New file.
26098
b5309cc1
CW
260992010-06-13 Colin Watson <cjwatson@ubuntu.com>
26100
26101 * docs/grub.texi (Commands): Document reduced command set in rescue
26102 mode.
26103 (cpuid): New section.
26104
fcb2d090
GS
261052010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
26106
26107 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
26108 new partition naming style.
26109 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
26110
96e5c556
BC
261112010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
26112
26113 Add "-o grub.iso" like cmdline options support.
26114
26115 * util/grub-install.in: Improve cmdline option parsing.
26116 * util/grub-mkconfig.in: Likewise.
26117 * util/grub-mkrescue.in: Likewise.
26118 * util/grub-reboot.in: Likewise.
26119 * util/grub-set-default.in: Likewise.
26120 * util/i386/efi/grub-install.in: Likewise.
26121 * util/ieee1275/grub-install.in: Likewise.
26122 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26123
c16be99b
CW
261242010-06-12 Colin Watson <cjwatson@ubuntu.com>
26125
26126 * .bzrignore: Ignore 41_custom.
26127
ce08a9fb
TS
261282010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26129
26130 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
26131
7beac90c
CW
261322010-06-12 Colin Watson <cjwatson@ubuntu.com>
26133
26134 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
26135 prototype declarations.
26136
26137 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
26138 generating fs, partmap, and video lists.
26139 * include/grub/fs.h (grub_fs_register): Omit prototype if
26140 GRUB_LST_GENERATOR is defined.
26141 * include/grub/partition.h (grub_partition_map_register): Likewise.
26142 * include/grub/video.h (grub_video_register): Likewise.
26143
1c8f0f8d
JM
261442010-06-12 Javier Martín <lordhabbit@gmail.com>
26145
26146 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
26147
a6085973
TS
261482010-06-12 Thomas Schmitt <scdbackup@gmx.net>
26149
26150 * util/grub-mkrescue.in: Support --xorriso argument.
26151
25c56d29
VS
261522010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26153
26154 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
26155 Suggested by: Thomas Schmitt.
26156
e03e4b24
VS
261572010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26158
26159 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
26160 Suggested by: Thomas Schmitt.
26161
57711df6
VS
261622010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26163
26164 custom.cfg support.
26165
26166 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
26167 * util/grub.d/41_custom.in: New file.
26168
ee62c427
CW
261692010-06-12 Colin Watson <cjwatson@ubuntu.com>
26170
26171 * util/grub-mkrescue.in (make_image): Remove sh module, which has
26172 been merged back into normal.
26173
283af07a
CW
261742010-06-11 Colin Watson <cjwatson@ubuntu.com>
26175
26176 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
26177 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
26178
56a0d956
CW
261792010-06-11 Colin Watson <cjwatson@ubuntu.com>
26180
26181 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
26182 when generating manual pages.
26183 * docs/man/grub-bin2h.h2m: New file.
26184 * docs/man/grub-editenv.h2m: New file.
26185 * docs/man/grub-fstest.h2m: New file.
26186 * docs/man/grub-install.h2m: New file.
26187 * docs/man/grub-macho2img.h2m: New file.
26188 * docs/man/grub-mkconfig.h2m: New file.
26189 * docs/man/grub-mkdevicemap.h2m: New file.
26190 * docs/man/grub-mkfont.h2m: New file.
26191 * docs/man/grub-mkimage.h2m: New file.
26192 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
26193 * docs/man/grub-mkrelpath.h2m: New file.
26194 * docs/man/grub-mkrescue.h2m: New file.
26195 * docs/man/grub-ofpathname.h2m: New file.
26196 * docs/man/grub-pe2elf.h2m: New file.
26197 * docs/man/grub-probe.h2m: New file.
26198 * docs/man/grub-reboot.h2m: New file.
26199 * docs/man/grub-script-check.h2m: New file.
26200 * docs/man/grub-set-default.h2m: New file.
26201 * docs/man/grub-setup.h2m: New file.
26202
3a37e322
VS
262032010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
26204
26205 Use FOR_* macros instead of *_iterate whenever possible.
26206
26207 * commands/handler.c: Removed.
26208 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
26209 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
26210 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26211 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
26212 (grub_probe_SOURCES): Remove kern/parser.c.
26213 (util/grub-script-check.c_DEPENDENCIES): Removed.
26214 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
26215 and grub_script_check_init.c.
26216 (grub_script_check_init.lst): Removed.
26217 (grub_script_check_init.h): Likewise.
26218 (grub_script_check_init.c): Likewise.
26219 (pkglib_MODULES): Remove handler.mod and sh.mod.
26220 (handler_mod_SOURCES): Removed.
26221 (handler_mod_CFLAGS): Likewise.
26222 (handler_mod_LDFLAGS): Likewise.
26223 (normal_mod_SOURCES): Remove normal/handler.c.
26224 Add script/main.c, script/script.c, script/execute.c,
26225 script/function.c, script/lexer.c, grub_script.tab.c
26226 and grub_script.yy.c.
26227 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26228 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26229 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
26230 (grub_setup_SOURCES): Remove kern/parser.c.
26231 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26232 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
26233 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
26234 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26235 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26236 (grub_setup_SOURCES): Remove kern/parser.c.
26237 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
26238 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
26239 * include/grub/command.h (grub_command_iterate): Removed.
26240 (FOR_COMMANDS): New macro.
26241 * include/grub/dl.h (grub_dl): New member next.
26242 (grub_dl_iterate): Removed.
26243 (grub_dl_head): New variable declaration.
26244 (FOR_DL_MODULES): New macro.
26245 * include/grub/fs.h: Include list.h.
26246 (grub_fs): Make next first element.
26247 (grub_fs_list): New variable declaration.
26248 (grub_fs_register): Make inline.
26249 (grub_fs_unregister): Likewise.
26250 (grub_fs_iterate): Removed.
26251 (FOR_FILESYSTEMS): New macro.
26252 * include/grub/handler.h: Removed.
26253 * include/grub/list.h (grub_list_hook_t): Removed.
26254 (grub_list_test_t): Likewise.
26255 (grub_list_pop): Likewise.
26256 (grub_list_iterate): Likewise.
26257 (grub_list_insert): Likewise.
26258 (FOR_LIST_ELEMENTS): New macro.
26259 * include/grub/parser.h (grub_parser_class): Removed.
26260 (grub_parser_register): Likewise.
26261 (grub_parser_unregister): Likewise.
26262 (grub_parser_get_current): Likewise.
26263 (grub_parser_set_current): Likewise.
26264 (grub_register_rescue_parser): Likewise.
26265 (grub_rescue_parse_line): New function.
26266 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
26267 * include/grub/script_sh.h (grub_script_function_list): New variable
26268 declaration.
26269 (FOR_SCRIPT_FUNCTIONS): New macro.
26270 (grub_script_function_iterate): Removed.
26271 (grub_normal_parse_line): New prototype.
26272 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
26273 (FOR_DISABLED_TERM_INPUTS): Likewise.
26274 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
26275 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
26276 * include/grub/video.h (grub_video_adapter): Move 'next' to first
26277 element.
26278 (grub_video_register): Inline.
26279 (grub_video_unregister): Likewise.
26280 (grub_video_adapter_list): New variable declaration.
26281 (grub_video_iterate): Removed.
26282 (FOR_VIDEO_ADAPTERS): New macro.
26283 * kern/dl.c (grub_dl_list): Removed. All users updated.
26284 (grub_dl_iterate): Removed.
26285 * kern/fs.c (grub_fs_list): Make global.
26286 (grub_fs_register): Removed.
26287 (grub_fs_unregister): Likewise.
26288 (grub_fs_iterate): Likewise.
26289 * kern/handler.c: Removed.
26290 * kern/list.c (grub_list_pop): Removed.
26291 (grub_list_iterate): Likewise.
26292 (grub_list_insert): Likewise.
26293 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
26294 (grub_prio_list_insert): Don't use grub_list_insert.
26295 * kern/main.c (grub_register_rescue_parser): Don't call
26296 grub_register_rescue_parser.
26297 * kern/parser.c (grub_parser_class): Removed.
26298 (grub_parser_execute): Use grub_rescue_parse_line.
26299 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
26300 (grub_rescue_parser): Removed.
26301 (grub_register_rescue_parser): Likewise.
26302 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
26303 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
26304 (grub_auth_check_authentication): Likewise.
26305 * normal/completion.c (iterate_command): Removed.
26306 (grub_normal_do_completion): Use FOR_COMMANDS.
26307 * normal/handler.c: Removed.
26308 * normal/main.c (read_config_file): Remove parser changing.
26309 (grub_normal_execute): Don't call read_handler_list.
26310 (grub_normal_read_line_real): Statically allocate prompt.
26311 (grub_cmdline_run): Use grub_normal_parse_line.
26312 (GRUB_MOD_FINI): Don't call free_handler_list.
26313 * normal/menu_entry.c (run): Likewise.
26314 * script/function.c (grub_script_function_list): Make global.
26315 (grub_script_function_iterate): Removed.
26316 * script/main.c (grub_normal_parse_line): Make global.
26317 (grub_sh_parser): Removed.
26318 (GRUB_MOD_INIT): Likewise.
26319 (GRUB_MOD_FINI): Likewise.
26320 * tests/lib/functional_test.c (grub_functional_test): Use
26321 FOR_LIST_ELEMENTS.
26322 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
26323 (grub_test_run): Use FOR_LIST_ELEMENTS.
26324 * tests/lib/unit_test.c (main): Likewise.
26325 * util/deviceiter.c (grub_util_iterate_devices): Don't use
26326 grub_list_pop.
26327 * util/grub-fstest.c (grub_term_input_class): Removed.
26328 (grub_term_output_class): Likewise.
26329 * util/grub-probe.c: Likewise.
26330 * util/i386/pc/grub-setup.c: Likewise.
26331 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26332 * util/grub-script-check.c (main): Don't call grub_init_all and
26333 grub_fini_all.
26334 * video/video.c (grub_video_adapter_list): Make global.
26335 (grub_video_register): Removed.
26336 (grub_video_unregister): Likewise.
26337 (grub_video_iterate): Likewise.
26338
6289c3a7
VS
263392010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
26340
26341 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
26342 reported by Henrique Ferreiro.
26343
91460247
RM
263442010-06-09 Robert Millan <rmh@gnu.org>
26345
26346 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
26347 ones, when both are available.
26348
0ea7c4f9
GS
263492010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26350
26351 Make --version uniform and avoid hard-coded program name.
26352
26353 * util/grub-mkimage.c (main): Use `program_name' instead of
26354 hard-coded string.
26355 * util/i386/pc/grub-setup.c (main): Likewise.
26356 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
26357 * util/grub-install.in: Save the basename of $0 in $self, and use the
26358 latter in informational messages. Use the same format for --version
26359 as the binary programs.
26360 * util/grub-mkconfig.in: Likewise.
26361 * util/grub-mkrescue.in: Likewise.
26362 * util/grub-reboot.in: Likewise.
26363 * util/grub-set-default.in: Likewise.
26364 * util/i386/efi/grub-install.in: Likewise.
26365 * util/ieee1275/grub-install.in: Likewise.
26366 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
26367
e8a6f3b6
GS
263682010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26369
26370 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
26371 embedding area. Use <= instead of == when checking for non-emptiness.
26372
f4d095d7
GS
263732010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
26374
26375 * configure.ac: Add `.' to the directories searched for unifont.
26376
50e532ca
CW
263772010-06-08 Colin Watson <cjwatson@ubuntu.com>
26378
26379 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
26380 grub_script.yy.h.
26381
d39f3dec
CW
263822010-06-08 Colin Watson <cjwatson@ubuntu.com>
26383
26384 * docs/grub.texi (History): Expand to cover GRUB 2.
26385 (Serial terminal): Refer to `terminal_input' and `terminal_output'
26386 commands, not `terminal'.
26387 (serial): Likewise.
26388 (terminal_input): New section.
26389 (terminal_output): New section.
26390 (uppermem): New section (stub).
26391 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
26392
6ef0ddb4
CW
263932010-06-08 Colin Watson <cjwatson@ubuntu.com>
26394
26395 * docs/grub.texi (Security): Menu entries are unrestricted by
26396 default, not restricted to superusers as I had previously thought.
26397 Reword to account for this.
26398
e0f4c438
CW
263992010-06-07 Colin Watson <cjwatson@ubuntu.com>
26400
26401 * kern/emu/misc.c (device_mapper_null_log): New function.
26402 (grub_device_mapper_supported): New function.
26403 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
26404 prototype.
26405 * kern/emu/hostdisk.c (find_partition_start): Check whether
26406 device-mapper is supported before trying to use it.
26407 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
26408
da908200
CW
264092010-06-07 Colin Watson <cjwatson@ubuntu.com>
26410
26411 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
26412 (File name syntax): Likewise.
26413 (help): --all is no longer supported in GRUB 2. Be more precise
26414 about pattern matching.
26415
fb55c3ac
CW
264162010-06-07 Colin Watson <cjwatson@ubuntu.com>
26417
26418 * normal/completion.c (grub_normal_do_completion): When completing
26419 arguments to "set" and the current word contains an equals sign,
26420 skip to after the equals sign before starting completion.
26421
258c2573
CW
264222010-06-07 Colin Watson <cjwatson@ubuntu.com>
26423
26424 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
26425
ee75515e
CW
264262010-06-07 Colin Watson <cjwatson@ubuntu.com>
26427
26428 * docs/grub.texi (Network): New section.
26429 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
26430 `(nd)' as in GRUB Legacy.
26431 (pxe_unload): New section.
26432
a6a700aa
CW
264332010-06-07 Colin Watson <cjwatson@ubuntu.com>
26434
26435 * docs/grub.texi (Troubleshooting): `echo' is not usually available
26436 in the rescue shell, so recommend using `set' instead. Thanks,
26437 Jordan Uggla.
26438
4003dd38
CW
264392010-06-07 Colin Watson <cjwatson@ubuntu.com>
26440
26441 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
26442 (password): New section.
26443 (password_pbkdf2): New section.
26444 (search): New section.
26445 (Security): New section.
26446 (Troubleshooting): New section, currently very incomplete.
26447 (Invoking grub-mkpasswd-pbkdf2): New section.
26448 (Internals): New section, currently very incomplete.
26449
e1cbcc40
CW
264502010-06-07 Colin Watson <cjwatson@ubuntu.com>
26451
26452 * util/grub.d/00_header.in: Add some more quoting (of
26453 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
26454 work again.
26455 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
26456
db8fa1ad
CW
264572010-06-07 Colin Watson <cjwatson@ubuntu.com>
26458
26459 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
26460 to `count', fixing variable shadowing that broke the -c option.
26461
264622010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
26463
26464 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
26465 in case they contain spaces.
26466
f28a9212
CW
264672010-06-04 Colin Watson <cjwatson@ubuntu.com>
26468
26469 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
26470 "part_" to partmap module names, in line with grub-install.
26471 Reported by: Jindřich Makovička (Debian bug #584426).
26472
9cdfe32f
CW
264732010-06-04 Colin Watson <cjwatson@ubuntu.com>
26474
26475 * util/grub-mkimage.c: Make target-related error messages slightly
26476 more helpful; -O talks about "format". Explicitly point to the use
26477 of -O if no target is specified.
26478 Reported by: Didier Raboud (Debian bug #584415).
26479
795b593a
CW
264802010-06-03 Colin Watson <cjwatson@ubuntu.com>
26481
26482 * INSTALL: Document several build requirements for optional features
26483 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
26484
9d9b5833
GS
264852010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
26486
26487 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
26488 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
26489 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
26490
0819fec8
CW
264912010-06-02 Colin Watson <cjwatson@ubuntu.com>
26492
26493 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
26494 Thanks to Jordan Uggla for spotting this.
26495
49396b4f
VS
264962010-06-02 Aleš Nesrsta <starous@volny.cz>
26497
26498 Finally make USB usable.
26499
26500 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
26501 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
26502 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
26503 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
26504 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
26505 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
26506 (GRUB_OHCI_FSMPS): Likewise.
26507 (GRUB_OHCI_PERIODIC_START): Likewise.
26508 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
26509 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
26510 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
26511 (GRUB_OHCI_SET_PORT_RESET): Likewise.
26512 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
26513 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
26514 (grub_ohci_transaction): Likewise.
26515 (grub_ohci_transfer): Improve condition detection algorithms.
26516 Handle toggle property. Program the transactions correctly.
26517 Improve error handling. Various important fixups.
26518 (grub_ohci_portstatus): Put register writes in right order.
26519 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
26520 (grub_uhci_transfer): Don't show "failed" message on success.
26521 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
26522 array.
26523 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
26524 determine its size.
26525 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
26526 before initialization is completed. Use IN direction for empty
26527 transfers. Use last_trans and compute toggle.
26528 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
26529 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
26530 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
26531 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
26532 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
26533 (grub_usb_device): Increase toggle to 256.
26534 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
26535 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
26536 GRUB_USBMS_SUBCLASS_SFF8070.
26537 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
26538 (grub_scsi_inquiry): New member page and alloc_length.
26539 (grub_scsi_request_sense): New structure.
26540 (grub_scsi_request_sense_data): Likewise.
26541 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
26542 control.
26543 * disk/scsi.c (grub_scsi_request_sense): New function.
26544 (grub_scsi_test_unit_ready): Likewise.
26545 (grub_scsi_inquiry): Fill new fields.
26546 (grub_scsi_read_capacity): Likewise.
26547 (grub_scsi_read10): Add request sense at the end.
26548 (grub_scsi_read12): Likewise.
26549 (grub_scsi_write10): Likewise.
26550 (grub_scsi_write12): Likewise.
26551 (grub_scsi_open): Add Test Unit Ready.
26552 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
26553 Support additional subclasses. Con't clear halt yet. Activate the
26554 proper config. Calculate LUNs correctly.
26555 (grub_usbms_transfer): Various important fixups.
26556
265572010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26558
26559 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
26560 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
26561 (grub_ohci_fini_hw): New function.
26562 (grub_ohci_restore_hw): Likewise.
26563 (GRUB_MOD_INIT(ohci)): Register preboot hook.
26564 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
26565 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
26566
265672010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26568
26569 Dedicated DMA allocations.
26570
26571 * bus/pci.c (grub_memalign_dma32): New function
26572 (grub_dma_free): Likewise.
26573 (grub_dma_get_virt): Likewise.
26574 (grub_dma_get_phys): Likewise.
26575 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
26576 (grub_ohci_pci_iter): Use dma32_alloc.
26577 (grub_ohci_transfer): Likewise.
26578 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
26579 (grub_usb_bulk_readwrite): Likewise.
26580 * include/grub/pci.h: Add declarations.
26581
265822010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
26583
26584 CS5536 support.
26585
26586 * bus/cs5536.c: New file.
26587 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
26588 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
26589 (cs5536_mod_SOURCES): New variable.
26590 (cs5536_mod_CFLAGS): Likewise.
26591 (cs5536_mod_LDFLAGS): Likewise.
26592 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
26593 machine/pci.h.
26594 (kernel_img_SOURCES): Add bus/cs5536.c.
26595 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
26596 usb_keyboard.mod.
26597 (usb_mod_SOURCES): New variable.
26598 (usb_mod_CFLAGS): New variable.
26599 (usb_mod_LDFLAGS): New variable.
26600 (usbtest_mod_SOURCES): New variable.
26601 (usbtest_mod_CFLAGS): New variable.
26602 (usbtest_mod_LDFLAGS): New variable.
26603 (ohci_mod_SOURCES): New variable.
26604 (ohci_mod_CFLAGS): New variable.
26605 (ohci_mod_LDFLAGS): New variable.
26606 (usbms_mod_SOURCES): New variable.
26607 (usbms_mod_CFLAGS): New variable.
26608 (usbms_mod_LDFLAGS): New variable.
26609 (usb_keyboard_mod_SOURCES): New variable.
26610 (usb_keyboard_mod_CFLAGS): New variable.
26611 (usb_keyboard_mod_LDFLAGS): New variable.
26612 * include/grub/smbus.h: New file.
26613 * include/grub/cs5536.h: New file.
26614
0b35b2a9
CW
266152010-06-02 Colin Watson <cjwatson@ubuntu.com>
26616
26617 * util/grub.d/00_header.in: Add safety check to make sure that
26618 ${locale_dir} exists before trying to probe it.
26619
ca0afd5b
CW
266202010-06-02 Colin Watson <cjwatson@ubuntu.com>
26621
26622 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
26623 per the GNU Coding Standards; this is now too obscure to be worth
26624 documenting.
26625 (QNX): Likewise.
26626 (chainloader): Remove cross-reference to `SCO UnixWare'.
26627
1c41aa78
CW
266282010-06-02 Colin Watson <cjwatson@ubuntu.com>
26629
26630 * docs/grub.texi (Chain-loading): New section.
26631 (DOS/Windows): New section, borrowed from GRUB Legacy with details
26632 adjusted for GRUB 2.
26633 (SCO UnixWare): Likewise.
26634 (QNX): Likewise.
26635 (chainloader): Add reference to `Block list syntax'.
26636 (drivemap): New section.
26637 (parttool): New section.
26638
bb8ea0f5
CW
266392010-06-02 Colin Watson <cjwatson@ubuntu.com>
26640
26641 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
26642 the grub shell'.
26643 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
26644 (Installing GRUB using grub-install): Remove reference to the grub
26645 shell; mention `grub-mkimage' and `grub-setup' instead.
26646 (Invoking grub-install): Likewise.
26647 (Interface): Add reference to `Menu entry editor'.
26648 (serial): Remove `--device' option.
26649
288dd6ed
CW
266502010-06-02 Colin Watson <cjwatson@ubuntu.com>
26651
26652 * docs/grub.texi (Configuration): New section, documenting
26653 configuration file generation using grub-mkconfig. I've left a slot
26654 for documenting the full shell scripting format but have not yet
26655 started on writing that up.
26656 (Invoking grub-mkconfig): New section.
26657
34c9f0e9
CW
266582010-06-02 Colin Watson <cjwatson@ubuntu.com>
26659
26660 * docs/grub.texi (direntry): Remove grub-terminfo reference.
26661 (GNU GRUB manual): Likewise.
26662 (General commands): Update description of `terminfo' for GRUB 2.
26663
9121567e
CW
266642010-06-02 Colin Watson <cjwatson@ubuntu.com>
26665
26666 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
26667 (GRUB_MOD_INIT): Fix capitalisation.
26668 * docs/grub.texi (Command-line and menu entry commands): Document
26669 gettext and gptsync commands.
26670
ab631611
CW
266712010-06-02 Colin Watson <cjwatson@ubuntu.com>
26672
26673 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
26674 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
26675
bde4a9ac
CW
266762010-06-01 Colin Watson <cjwatson@ubuntu.com>
26677
26678 Add btrfs probing support, currently only in the single-device case.
26679
26680 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
26681 function.
26682 (grub_guess_root_device): Call find_root_device_from_mountinfo
26683 before looking in /dev.
26684
b1d17e10
VS
266852010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26686
26687 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
26688 GRUB_DISK_SIZE_UNKNOWN.
26689 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
26690
dfbfe004
JS
266912010-05-31 Jiro SEKIBA <jir@unicus.jp>
26692
26693 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
26694 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
26695 corrupted or not synced properly.
26696
c2ffc8e9
VS
266972010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26698
26699 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
26700 Reported by: Seth Goldberg.
26701
56293166
VS
267022010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26703
26704 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
26705 addition of dest.
26706 Reported by: Seth Goldberg.
26707
7620e7de
VS
267082010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26709
26710 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
26711 Reported by: Seth Goldberg.
26712
c837af3f
VS
267132010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
26714
26715 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
26716 64-bit address as signed on MIPS.
26717
c7c75cf4
CW
267182010-05-28 Colin Watson <cjwatson@ubuntu.com>
26719
26720 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
26721 to the empty string.
26722
fa4b8490
BC
267232010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
26724
26725 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
26726
26727 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
26728 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
26729 * kern/misc.c (__enable_execute_stack): Disable on
26730 GRUB_MACHINE_EMU.
26731
a33075b9
CW
267322010-05-28 Colin Watson <cjwatson@ubuntu.com>
26733
26734 Make grub-probe work with symbolic links under /dev/mapper as well
26735 as with real block devices. The Linux world seems to be (at best)
26736 in transition here, and GRUB shouldn't get caught in the middle.
26737
26738 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
26739 /dev/mapper.
26740
d8708134
CW
267412010-05-27 Colin Watson <cjwatson@ubuntu.com>
26742
26743 * util/grub-script-check.c (main): Ensure defined behaviour on empty
26744 input files (in which case exit zero).
26745
db2102a0
CW
267462010-05-27 Colin Watson <cjwatson@ubuntu.com>
26747
26748 * kern/emu/misc.c (canonicalize_file_name): realpath can still
26749 return NULL for various reasons even if it has a maximum-length
26750 buffer: for example, there might be a symlink loop, or the path
26751 might exceed PATH_MAX. If this happens, return NULL.
26752
5fdba519
RM
267532010-05-27 Robert Millan <rmh@gnu.org>
26754
26755 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
26756 partmap module to handle cross-partmap setups.
26757 Reported by Orestes Mas. Gràcies!
26758
d1d368e4
CW
267592010-05-27 Colin Watson <cjwatson@ubuntu.com>
26760
26761 * util/grub-mkrescue.in: Initialise override_dir rather than
26762 assuming that it's unset or empty in the environment.
26763
95ac3c73
GS
267642010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
26765
26766 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
26767 variable index into p_index to suppress a warning with -Wshadow.
26768
7d8c0213
BC
267692010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
26770
26771 * INSTALL: Added flex >= 2.5.35 requirement.
26772
db4d5813
VS
267732010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
26774
26775 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
26776
f24f4300
VS
267772010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
26778
26779 cmostest support.
26780
26781 * commands/i386/cmostest.c: New file.
26782 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
26783 (cmostest_mod_SOURCES): New variable.
26784 (cmostest_mod_CFLAGS): Likewise.
26785 (cmostest_mod_LDFLAGS): Likewise.
26786 * conf/i386-pc.rmk: Likewise.
26787 * docs/grub.texi (Vendor power-on keys): New section.
26788 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
26789 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
26790 and GRUB_BUTTON_CMOS_ADDRESS.
26791 * util/grub.d/00_header.in: Handle powering-on by separate button.
26792
ad603f61
VS
267932010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
26794
26795 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
26796 Removed drawing_scrollbar argument. All users updated
26797 Fixes #29792.
26798 Reported by Jo Shields
26799
3ecb080a
VS
268002010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
26801
26802 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
26803 buffer since gfxterm handles double repaint.
26804
5f2316c1
VS
268052010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
26806
26807 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
26808 * term/gfxterm.c (real_scroll): Likewise.
26809
9a25f885
VS
268102010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
26811
26812 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
26813 before calling BIOS.
26814
39fbb79a
VS
268152010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
26816
26817 * include/grub/i18n.h: Always enable grub_gettext.
26818
228cfa97
VS
268192010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
26820
26821 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
26822 partition naming style.
26823
21717c8f
CW
268242010-05-21 Colin Watson <cjwatson@ubuntu.com>
26825
26826 * util/grub-mkconfig.in: Fix handling of -o so that it works when
26827 not the first option.
26828
c0f48e65
CW
268292010-05-20 Colin Watson <cjwatson@ubuntu.com>
26830
26831 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
26832
96779aec
CW
268332010-05-20 Colin Watson <cjwatson@ubuntu.com>
26834
26835 * util/misc.c: Move inclusion of <limits.h> to ...
26836 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
26837
fa9d256e
GS
268382010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
26839
26840 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
26841 Fix merge error in NetBSD code.
26842 (find_partition_start) [__NetBSD__]: Likewise.
26843
123b7a85
BC
268442010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
26845
26846 Fix grub-mkrescue usage unit testing.
26847
26848 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
26849
74276c0d
CF
268502010-05-18 Christian Franke <franke@computer.org>
26851
26852 * util/grub.d/10_windows.in: Use path names instead of
26853 drive letters to prevent warning from Cygwin 1.7.
26854 Add drivemap command to menuentry if needed.
26855
c4f7b523
ST
268562010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
26857
26858 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
26859 gnumach and gnumach.gz.
26860
95b97950
VS
268612010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
26862
26863 * include/grub/i18n.h (gettext): Inline instead of using #define.
26864 (grub_gettext): Likewise.
26865 (_): Likewise.
26866
01b8d2d7
VS
268672010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
26868
26869 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
26870 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
26871 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
26872 (main): Add a slash after pkglibdirroot.
26873
654e1d1e
VS
268742010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
26875
26876 * util/grub-install.in: Add missing "in" keyword.
26877
26966aeb
VS
268782010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
26879
26880 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
26881 Reported by: Seth Goldberg.
26882
75006747
VS
268832010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
26884
26885 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
26886
74cbf5bd
CW
268872010-05-18 Colin Watson <cjwatson@ubuntu.com>
26888
26889 * configure.ac: Check for Linux device-mapper support.
26890
26891 * util/hostdisk.c (device_is_mapped): New function.
26892 (find_partition_start): New function, partly broken out from
26893 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
26894 device-mapper support added.
26895 (linux_find_partition): Use find_partition_start.
26896 (convert_system_partition_to_system_disk): Add `st' argument.
26897 Support Linux /dev/mapper/* devices if device-mapper support is
26898 available; only DM-RAID devices are understood at present.
26899 (find_system_device): Add `st' argument. Pass it to
26900 convert_system_partition_to_system_disk.
26901 (grub_util_biosdisk_get_grub_dev): Pass stat result to
26902 find_system_device and convert_system_partition_to_system_disk. Use
26903 find_partition_start.
26904
26905 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
26906 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
26907 * util/deviceiter.c [__linux__]: Define MINOR.
26908 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
26909 * util/mkdevicemap.c (grub_putchar): New function.
26910 (grub_getkey): New function.
26911 (grub_refresh): New function.
26912 (main): Set debug=all if -v -v is used.
26913
355b51e9
CW
269142010-05-18 Colin Watson <cjwatson@ubuntu.com>
26915
26916 Fix build with non-GNU libcs.
26917
26918 * util/misc.c (canonicalize_file_name): Move to ...
26919 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
26920 grub_make_system_path_relative_to_its_root.
26921
7fb5c25f
CW
269222010-05-18 Colin Watson <cjwatson@ubuntu.com>
26923
26924 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
26925 we handle finding grub-mkimage. Default to finding grub-mkimage in
26926 ${bindir} with program_transform_name applied, and provide a
26927 --grub-mkimage option to override this.
26928
1d3293d6
VS
269292010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
26930
26931 Remove grub-mkisofs.
26932
26933 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
26934 (grub_mkisofs_SOURCES): Removed.
26935 (grub_mkisofs_CFLAGS): Removed.
26936 * util/mkisofs/defaults.h: Removed.
26937 * util/mkisofs/eltorito.c: Likewise.
26938 * util/mkisofs/exclude.h: Likewise.
26939 * util/mkisofs/hash.c: Likewise.
26940 * util/mkisofs/include/: Likewise.
26941 * util/mkisofs/include/fctldefs.h: Likewise.
26942 * util/mkisofs/include/mconfig.h: Likewise.
26943 * util/mkisofs/include/prototyp.h: Likewise.
26944 * util/mkisofs/include/statdefs.h: Likewise.
26945 * util/mkisofs/iso9660.h: Likewise.
26946 * util/mkisofs/joliet.c: Likewise.
26947 * util/mkisofs/match.c: Likewise.
26948 * util/mkisofs/match.h: Likewise.
26949 * util/mkisofs/mkisofs.c: Likewise.
26950 * util/mkisofs/mkisofs.h: Likewise.
26951 * util/mkisofs/msdos_partition.h: Likewise.
26952 * util/mkisofs/multi.c: Likewise.
26953 * util/mkisofs/name.c: Likewise.
26954 * util/mkisofs/rock.c: Likewise.
26955 * util/mkisofs/tree.c: Likewise.
26956 * util/mkisofs/write.c: Likewise.
26957
5dde9afe
VS
269582010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
26959
26960 Unify grub-mkimage accross platforms.
26961
26962 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
26963 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
26964 (grub_mkelfimage_SOURCES): Removed.
26965 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
26966 (util/grub-mkimage.c_DEPENDENCIES): .. this.
26967 (bin_UTILITIES): Add grub-mkimage.
26968 (grub_mkimage_SOURCES): New variable.
26969 (kernel_img_HEADERS): Remove machine/kernel.h.
26970 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
26971 (pkglib_PROGRAMS): Add kernel.img.
26972 (kernel_img_HEADERS): Add machine/kernel.h.
26973 (kernel_img_FORMAT): Removed.
26974 (bin_UTILITIES): Remove grub-mkimage.
26975 (grub_mkimage_SOURCES): Removed.
26976 (grub_mkimage_CFLAGS): Likewise.
26977 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
26978 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
26979 (pkglib_PROGRAMS): Add kernel.img.
26980 (bin_UTILITIES): Remove grub-mkimage.
26981 (grub_mkimage_SOURCES): Removed.
26982 (grub_mkimage_CFLAGS): Likewise.
26983 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
26984 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
26985 (pkglib_PROGRAMS): Add kernel.img.
26986 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
26987 (pkglib_PROGRAMS): Add kernel.img.
26988 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
26989 (grub_mkimage_SOURCES): Removed.
26990 (grub_mkimage_CFLAGS): Likewise.
26991 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
26992 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
26993 (pkglib_PROGRAMS): Add kernel.img.
26994 (bin_UTILITIES): Remove grub-mkimage.
26995 (grub_mkimage_SOURCES): Removed.
26996 (grub_mkimage_CFLAGS): Likewise.
26997 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
26998 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
26999 (grub_mkimage_SOURCES): Removed.
27000 (grub_mkimage_CFLAGS): Likewise.
27001 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
27002 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
27003 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
27004 (grub_pe32_optional_header): ... this.
27005 (grub_pe64_optional_header): ... and this. All users updated.
27006 (GRUB_PE32_PE32_MAGIC): Split into ..
27007 (GRUB_PE32_PE32_MAGIC): .. this.
27008 (GRUB_PE32_PE64_MAGIC): .. and this.
27009 (GRUB_PE32_SIGNATURE_SIZE): New definition.
27010 * include/grub/elf.h (PT_GNU_STACK): New definition.
27011 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
27012 * include/grub/i386/efi/kernel.h: Likewise.
27013 * include/grub/i386/kernel.h: Likewise.
27014 * include/grub/i386/pc/kernel.h: Likewise.
27015 * include/grub/i386/qemu/boot.h: Likewise.
27016 * include/grub/mips/kernel.h: Likewise.
27017 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27018 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27019 * include/grub/powerpc/kernel.h: Likewise.
27020 * include/grub/sparc64/ieee1275/boot.h: Likewise.
27021 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27022 * include/grub/sparc64/kernel.h: Likewise.
27023 * include/grub/x86_64/efi/kernel.h: Likewise.
27024 * include/grub/x86_64/kernel.h: Likewise.
27025 * include/grub/offsets.h: New file.
27026 * include/grub/kernel.h (grub_module_info): Split into ...
27027 (grub_module_info32): ... this.
27028 (grub_module_info64): ... and this.
27029 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
27030 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
27031 (grub_boot_blocklist): Moved from here ...
27032 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
27033 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
27034 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
27035 * include/grub/types.h (grub_target_to_host16): Removed.
27036 (grub_target_to_host32): Likewise.
27037 (grub_target_to_host64): Likewise.
27038 (grub_host_to_target16): Likewise.
27039 (grub_host_to_target32): Likewise.
27040 (grub_host_to_target64): Likewise.
27041 (grub_host_to_target_addr): Likewise.
27042
27043 Support grub-mkrescue for efi, coreboot and qemu.
27044
27045 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
27046 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
27047 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
27048 * util/grub-mkrawimage.c: Moved from here ...
27049 * util/grub-mkimage.c: ... here. All users updated.
27050 (ALIGN_ADDR): Use image_target.
27051 (TARGET_NO_FIELD): New const.
27052 (image_target_desc): New type.
27053 (image_targets): New array.
27054 (grub_target_to_host64): Use image_target.
27055 (grub_target_to_host32): Likewise.
27056 (grub_target_to_host16): Likewise.
27057 (grub_host_to_target64): Likewise.
27058 (grub_host_to_target32): Likewise.
27059 (grub_host_to_target16): Likewise.
27060 (grub_host_to_target_addr): Likewise.
27061 (generate_image): Handle multiimage.
27062 (main): Require -O parameter. All users updated.
27063 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
27064 util/efi/grub-mkimage.c
27065 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
27066 New option --rom-directory.
27067 Use xorriso.
27068 * util/i386/efi/grub-mkimage.c: Removed.
27069 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
27070 (grub_target_to_host32): Likewise.
27071 (grub_target_to_host64): Likewise.
27072 (grub_host_to_target16): Likewise.
27073 (grub_host_to_target32): Likewise.
27074 (grub_host_to_target64): Likewise.
27075 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
27076 (grub_target_to_host32): Likewise.
27077 (grub_target_to_host64): Likewise.
27078 (grub_host_to_target16): Likewise.
27079 (grub_host_to_target32): Likewise.
27080 (grub_host_to_target64): Likewise.
27081
f4fc97d0
BC
270822010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
27083
27084 Source tree is reorganized for emu build.
27085
27086 * include/grub/util/console.h: Move from here...
27087 * include/grub/emu/console.h: ...to here.
27088 * include/grub/util/getroot.h: Move from here...
27089 * include/grub/emu/getroot.h: ...to here.
27090 * include/grub/util/hostdisk.h: Move from here...
27091 * include/grub/emu/hostdisk.h: ...to here.
27092 * util/console.c: Move from here...
27093 * kern/emu/console.c: ...to here.
27094 * util/getroot.c: Move from here...
27095 * kern/emu/getroot.c: ...to here.
27096 * util/grub-emu.c: Move from here...
27097 * kern/emu/main.c: ...to here.
27098 * util/hostdisk.c: Move from here...
27099 * kern/emu/hostdisk.c: ...to here.
27100 * util/hostfs.c: Move from here...
27101 * kern/emu/hostfs.c: ...to here.
27102 * util/mm.c: Move from here...
27103 * kern/emu/mm.c: ...to here.
27104 * util/pci.c: Move from here...
27105 * bus/emu/pci.c: ...to here.
27106 * util/sdl.c: Move from here...
27107 * video/emu/sdl.c: ...to here.
27108 * util/time.c: Move from here...
27109 * kern/emu/time.c: ...to here.
27110 * util/usb.c: Move from here...
27111 * bus/usb/emu/usb.c: ...to here.
27112
27113 * include/grub/emu/misc.h: New header for grub-emu functions.
27114 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
27115
27116 * conf/any-emu.rmk: Rule updates for above renames.
27117 * conf/common.rmk: Likewise.
27118 * conf/i386-pc.rmk: Likewise.
27119 * conf/i386-qemu.rmk: Likewise.
27120 * conf/mips.rmk: Likewise.
27121 * conf/sparc64-ieee1275.rmk: Likewise.
27122 * conf/x86-efi.rmk: Likewise.
27123
27124 * disk/lvm.h: #include updates for above renames.
27125 * util/grub-mkrelpath.c: Likewise.
27126 * util/grub-probe.c: Likewise.
27127 * util/i386/pc/grub-setup.c: Likewise.
27128 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27129 * kern/emu/console.c: Likewise.
27130 * kern/emu/getroot.c: Likewise.
27131 * kern/emu/hostdisk.c: Likewise.
27132 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
27133
27134 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
27135 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
27136 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
27137 * util/misc.c: Remove grub-emu functions.
27138
cced9145
VS
271392010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
27140
27141 Fix gfxmenu crash.
27142 Reported by: Thorsten Grützmacher.
27143
27144 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
27145 timeout hook.
27146 (circprog_set_property): Register and unregister timeout hook.
27147 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
27148 (label_destroy): Free template. and unregister hook.
27149 (label_set_state): New function.
27150 (label_set_property): Handle templates and hooks.
27151 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
27152 timeout hook.
27153 (progress_bar_set_property): Register and unregister timeout hook.
27154 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
27155 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
27156 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
27157 (update_timeout_visit): Removed.
27158 (update_timeouts): New function.
27159 (redraw_timeouts): Likewise.
27160 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
27161 (grub_gfxmenu_clear_timeout): Likewise.
27162 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
27163 (grub_gfxmenu_timeout_notify): Likewise.
27164 (grub_gfxmenu_timeout_notifications): New external variable.
27165 (grub_gfxmenu_timeout_register): New function.
27166 (grub_gfxmenu_timeout_unregister): Likewise.
27167
c6e5caab
VS
271682010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
27169
27170 Transform (broken) vga terminal into (working) vga video driver.
27171
27172 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
27173 video/i386/pc/vga.c.
27174 * include/grub/video.h (grub_video_driver_id):
27175 Add GRUB_VIDEO_DRIVER_VGA.
27176 * term/i386/pc/vga.c: Renamed to ...
27177 * video/i386/pc/vga.c: ...this
27178 (DEBUG_VGA): Removed.
27179 (CHAR_WIDTH): Likewise.
27180 (CHAR_HEIGHT): Likewise.
27181 (TEXT_WIDTH): Likewise.
27182 (TEXT_HEIGHT): Likewise.
27183 (DEFAULT_FG_COLOR): Likewise.
27184 (DEFAULT_BG_COLOR): Likewise.
27185 (colored_char): Likewise.
27186 (xpos): Likewise.
27187 (ypos): Likewise.
27188 (cursor_state): Likewise.
27189 (fg_color): Likewise.
27190 (bg_color): Likewise.
27191 (text_buf): Likewise.
27192 (page): Likewise.
27193 (font): Likewise.
27194 (framebuffer): New variable.
27195 (set_read_map): Disabled.
27196 (setup): New variable.
27197 (is_target): Likewise.
27198 (grub_vga_mod_init): Likewise.
27199 (grub_vga_mod_fini): Likewise.
27200 (check_vga_mem): Likewise.
27201 (write_char): Likewise.
27202 (write_cursor): Likewise.
27203 (scroll_up): Likewise.
27204 (grub_vga_putchar): Likewise.
27205 (grub_vga_getcharwidth): Likewise.
27206 (grub_vga_getwh): Likewise.
27207 (grub_vga_getxy): Likewise.
27208 (grub_vga_gotoxy): Likewise.
27209 (grub_vga_cls): Likewise.
27210 (grub_vga_setcolorstate): Likewise.
27211 (grub_vga_setcursor): Likewise.
27212 (grub_video_vga_init): New function.
27213 (grub_video_vga_setup): Likewise.
27214 (grub_video_vga_fini): Likewise.
27215 (update_target): Likewise.
27216 (grub_video_vga_blit_bitmap): Likewise.
27217 (grub_video_vga_blit_render_target): Likewise.
27218 (grub_video_vga_set_active_render_target): Likewise.
27219 (grub_video_vga_get_active_render_target): Likewise.
27220 (grub_video_vga_swap_buffers): Likewise.
27221 (grub_video_vga_set_palette): Likewise.
27222 (grub_video_vga_get_info_and_fini): Likewise.
27223 (grub_vga_term): Removed.
27224 (grub_video_vga_adapter): New variable.
27225 (GRUB_MOD_INIT): Register a video driver instead of terminal.
27226 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
27227
2bf61a98
VS
272282010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27229
27230 * video/readers/jpeg.c: Indented.
27231
09ddcd11
VS
272322010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27233
27234 Various jpeg cleanups.
27235
27236 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
27237 (grub_jpeg_decode_quan_table): Use sizeof.
27238 (grub_jpeg_decode_du): Use ARRAY_SIZE.
27239
e5507505
PH
272402010-05-05 Peter Hurley <No e-mail available> (tiny change)
27241
27242 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
27243 tables. Ignore non-last ac bit.
27244 (grub_jpeg_decode_quan_table): Likewise.
27245
7e720a9b
VS
272462010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27247
27248 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
27249 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
27250 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
27251 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
27252 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
27253 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
27254
a7fc080b
VS
272552010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27256
27257 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
27258 error.
27259
2bf6012d
VS
272602010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
27261
27262 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
27263
265d68cd
VS
272642010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
27265
27266 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
27267 condition.
27268
272692010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
27270
27271 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
27272 part.
27273
265d68cd 272742010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
27275
27276 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
27277 pointers.
27278
265d68cd 272792010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
27280
27281 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
27282
d1b61374
CF
272832010-05-01 Christian Franke <franke@computer.org>
27284
27285 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
27286 Remove broken Cygwin path conversion.
27287 * util/misc.c: [__CYGWIN__] Add include and define.
27288 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
27289 for Cygwin 1.7.
27290 (make_system_path_relative_to_its_root): Simplify loop, replace early
27291 return by break.
27292 [__CYGWIN__] Add conversion to win32 path.
27293 Include "/" case in trailing slash removal.
27294
3558c6e9
VS
272952010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27296
27297 * kern/main.c (grub_load_config): Fix copy-pasted comment.
27298 Reported by: Seth Goldberg
27299
f5f3ff93
VS
273002010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27301
27302 * commands/help.c (grub_cmd_help): Fix a typo.
27303 Reported by: Seth Goldberg
27304
d8b5cd40
VS
273052010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27306
27307 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
27308 name and add N_.
27309 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
27310 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
27311 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
27312 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
27313 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
27314 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
27315 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
27316 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
27317 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
27318 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27319 * normal/context.c (GRUB_MOD_INIT): Likewise.
27320 * normal/main.c (GRUB_MOD_INIT): Likewise.
27321 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
27322 * term/serial.c (GRUB_MOD_INIT): Likewise.
27323 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
27324
88c14915
VS
273252010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27326
27327 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
27328 extra == 0.
27329
165134bc
VS
273302010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27331
27332 * commands/iorw.c: New file.
27333 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
27334 (iorw_mod_SOURCES): New variable.
27335 (iorw_mod_CFLAGS): Likewise.
27336 (iorw_mod_LDFLAGS): Likewise.
27337
c5ac9b32
VS
273382010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27339
27340 Hotkey support
27341
27342 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
27343 * normal/main.c (hotkey_aliases): New variable.
27344 (grub_normal_add_menu_entry): Parse "--hotkey".
27345 * normal/menu_text.c (run_menu): Handle hotkeys.
27346
ce60689c
VS
273472010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27348
27349 * kern/i386/coreboot/init.c (grub_machine_init): Call
27350 grub_machine_mmap_init on qemu.
27351
0359d006
VS
273522010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27353
27354 * boot/i386/qemu/boot.S: Add a missing .code16.
27355
7819a456
VS
273562010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27357
27358 Use LBIO on coreboot.
27359
27360 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
27361 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
27362 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
27363 New declaration.
27364 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
27365 grub_machine_mmap_init on coreboot.
27366 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
27367 GRUB_LINUXBIOS_MEMBER_LINK.
27368 (grub_machine_mmap_iterate): Fix declaration.
27369 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
27370
7210dca9
VS
273712010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27372
27373 Split coreboot and multiboot ports.
27374
27375 * conf/i386-multiboot.rmk: New file.
27376 * configure.ac: Add multiboot port.
27377 * include/grub/i386/multiboot/boot.h: New file.
27378 * include/grub/i386/multiboot/console.h: Likewise.
27379 * include/grub/i386/multiboot/init.h: Likewise.
27380 * include/grub/i386/multiboot/kernel.h: Likewise.
27381 * include/grub/i386/multiboot/loader.h: Likewise.
27382 * include/grub/i386/multiboot/memory.h: Likewise.
27383 * include/grub/i386/multiboot/serial.h: Likewise.
27384 * include/grub/i386/multiboot/time.h: Likewise.
27385 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
27386 * loader/multiboot.c: Likewise.
27387 * loader/multiboot_mbi2.c: Likewise.
27388 * util/grub-mkrescue.in: Generate multiboot rescue.
27389
6f8aaf68
VS
273902010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27391
3080f7a7
VS
27392 * kern/parser.c (grub_parser_execute): Cope with read-only config.
27393
273942010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
27395
27396 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
27397
27398 * commands/terminal.c (abstract_terminal): New struct.
27399 (handle_command): New function. Based on grub_cmd_terminal_input.
27400 (grub_cmd_terminal_input): Use handle_command.
27401 (grub_cmd_terminal_output): Use handle_command.
27402
a8ebb841
BC
274032010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
27404
27405 Fix comment handling.
27406
27407 * tests/grub_script_comments.in: New testcase.
27408 * conf/tests.rmk: Rules for new testcase.
27409 * script/yylex.l: Updated flex rules.
27410
bb06ba08
ST
274112010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
27412
27413 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
27414 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
27415 if argc is 1.
bb06ba08 27416
cc9d2425
VS
274172010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
27418
27419 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
27420 autogen issues.
27421
460d8402
CF
274222010-04-26 Christian Franke <franke@computer.org>
27423
27424 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
27425 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
27426 (grub_get_prefix): Remove function.
27427 * util/grub-emu.c (main): Replace grub_get_prefix () call by
27428 make_system_path_relative_to_its_root ().
27429 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
27430
553c01f9
CF
274312010-04-24 Christian Franke <franke@computer.org>
27432
27433 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
27434 (kernel_img_LDFLAGS): Remove -static-libgcc.
27435
2aec1692
CF
274362010-04-24 Christian Franke <franke@computer.org>
27437
27438 * configure.ac: Do not CHECK_BSS_START_SYMBOL
27439 and CHECK_END_SYMBOL if grub-emu is built.
27440 Unset TARGET_OBJ2ELF if grub-emu is built
27441 without module support.
27442
f67dc308
JS
274432010-04-24 Jiro SEKIBA <jir@unicus.jp>
27444
27445 Nilfs2 support.
27446
27447 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
27448 (grub_fstest_SOURCES): Likewise.
27449 (pkglib_MODULES): Add nilfs2.mod.
27450 (nilfs2_mod_SOURCES): New variable.
27451 (nilfs2_mod_CFLAGS): Likewise.
27452 (nilfs2_mod_LDFLAGS): Likewise.
27453 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
27454 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
27455 * fs/nilfs2.c: New file.
27456
4ba8d354
VS
274572010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
27458
27459 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
27460 is not supported.
27461
0d2c20c6
GS
274622010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
27463
27464 Add grub-mkconfig support for NetBSD.
27465
27466 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
27467 * util/grub-mkconfig.in: export new NetBSD specific variables.
27468 * po/POTFILES-shell: added 10_netbsd.in.
27469 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
27470
bc4a2d83
BC
274712010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
27472
27473 Fix emu build with grub-emu-pci and grub-emu-modules.
27474
27475 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
27476 functions.
27477 * include/grub/libpciaccess.h: New file.
27478 * conf/any-emu.rmk: Update kernel headers for emu build.
27479
f48c87aa
VS
274802010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27481
27482 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
27483
18959385
VS
274842010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27485
27486 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
27487
0037de3f
VS
274882010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27489
27490 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
27491 Retrieve chosen/bootpath if bootpath isn't hardcoded.
27492 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
27493 util/ieee1275/ofpath.c.
27494 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
27495 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
27496 * include/grub/sparc64/ieee1275/boot.h
27497 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
27498 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
27499 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
27500 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
27501 const char *.
27502 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
27503 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
27504 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
27505 install.
27506
38e55e90
GS
275072010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
27508
27509 * util/grub-mkconfig.in: Corrected two == equality tests.
27510 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
27511 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
27512 expect a number appended to it.
27513 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
27514 expects a number appended to it.
27515
a9e6ff28
VS
275162010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27517
27518 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
27519
0b830b8f
VS
275202010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
27521
27522 * util/hostdisk.c (make_device_name): Change to new partition naming.
27523
0973daeb
VS
275242010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
27525
27526 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
27527
460d8402 275282010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
27529
27530 * Makefile.in: Add missing localedir setting.
27531
0b456309
CW
275322010-04-14 Colin Watson <cjwatson@ubuntu.com>
27533
27534 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
27535 mistake in r2156. Noticed by Anthony Fok.
27536
27537 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
27538 @localedir@.
27539 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27540
08f46d62
BC
275412010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
27542
27543 Fix a spurious, uninitialized variable warning.
27544
27545 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
27546 Initialize variable, shdr.
27547 (grub_freebsd_load_elfmodule): Likewise.
27548 (grub_freebsd_load_elf_meta): Likewise.
27549
8c4a72d4
BC
275502010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
27551
27552 Fix for escaped dollar in double quoted strings.
27553
27554 * script/yylex.l: Updated flex rules.
27555 * conf/tests.rmk: Rule for new testcase.
27556 * tests/grub_script_dollar.in: New testcase.
27557
ce44826e
CPE
275582010-04-13 Carles Pina i Estany <carles@pina.cat>
275592010-04-13 Colin Watson <cjwatson@ubuntu.com>
27560
27561 Enclose all translated strings in grub.cfg in single quotes, and
27562 escape them appropriately (Ubuntu bug #552921).
27563
27564 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
27565 * util/grub.d/10_hurd.in: Use it.
27566 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27567 * util/grub.d/10_linux.in (linux_entry): Likewise.
27568
4b0cd8f8
VS
275692010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27570
27571 Fix cygwin compilation.
27572
27573 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
27574 * include/grub/misc.h (__register_frame_info)
27575 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
27576 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
27577 * kern/misc.c (__register_frame_info)
27578 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
27579 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
27580
01fcf061
VS
275812010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27582
27583 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
27584
5d04b11e
VS
275852010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
27586
27587 Unify libgcc processing.
27588
27589 * Makefile.in (kernel_img_LDFLAGS): New variable.
27590 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
27591 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
27592 overwriting.
27593 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
27594 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
27595 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
27596 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
27597 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
27598 overwriting. Remove -lgcc and -static-libgcc
27599 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
27600 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
27601 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
27602 (kernel_img_LDFLAGS): Append instead of overwriting.
27603 Remove -lgcc and -static-libgcc
27604 * conf/sparc64-ieee1275.rmk: Likewise.
27605 * include/grub/powerpc/libgcc.h: Move to ...
27606 * include/grub/libgcc.h: .. this.
27607 * include/grub/libgcc.h: Don't export most of the function on x86.
27608 (__bswapsi2): New export.
27609 (__bswapdi2): Likewise.
27610 * include/grub/mips/libgcc.h: Removed.
27611 * include/grub/sparc64/libgcc.h: Likewise.
27612
b7f3ac29
VS
276132010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27614
27615 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
27616 disk_info_msg (conflicts with gettexting into languages with cases).
27617
2c7031b1
GS
276182010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
27619
27620 Add grub-probe support for NetBSD.
27621
27622 * util/getroot.c (find_root_device): Convert block device to
27623 character device on NetBSD.
27624 * util/probe.c (probe): Require character device on NetBSD.
27625 * util/hostdisk.c: NetBSD specific headers.
27626 (configure_device_driver): new function to tune device driver
27627 parameters (currently only for NetBSD floppy driver).
27628 (grub_util_biosdisk_open): NetBSD specific code (get disk size
27629 via disklabel ioctl).
27630 (open_device): call configure_device_driver on NetBSD.
27631 (convert_system_partition_to_system_disk): NetBSD specific code.
27632 (device_is_wholedisk): Likewise.
27633 (grub_util_biosdisk_get_grub_dev): Likewise.
27634 (make_device_name): Fixed a typo in bsd_part_str.
27635 * configure.ac: check for opendisk() and getrawpartition() on
27636 NetBSD and set LIBUTIL.
27637 * Makefile.in: add LIBUTIL to LIBS.
27638
f516290c
BC
276392010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
27640
27641 Documentation fix.
27642
27643 * util/grub-script-check.c: Better help message.
27644
d8dcc0df
BC
276452010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
27646
27647 Fix FreeBSD build.
27648
27649 * configure.ac: Flex version check.
27650 * conf/common.rmk: Add -Wno-error to sh.mod.
27651 * script/yylex.l: Remove all #pragma.
27652
6734334a
VS
276532010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27654
27655 * include/grub/util/misc.h (canonicalise_file_name): Add missing
27656 prototype.
27657 Reported by: Seth Goldberg.
27658
daea6abd
VS
276592010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27660
27661 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
27662 Rename "module" to "module2".
27663 Reported by: Seth Goldberg.
27664
f2fd9d2b
VS
276652010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27666
27667 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
27668 EXPORT_FUNC.
27669 Reported by: Seth Goldberg.
27670
be124579
VS
276712010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27672
27673 * lib/posix_wrap/locale.h: Add missing file.
27674 Reported by: Seth Goldberg.
27675
ef5da797
VS
276762010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27677
27678 grub-emu module load support.
27679
27680 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
27681 NO_DYNAMIC_MODULES switched to this.
27682 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
27683 (CFLAGS): Likewise.
27684 * conf/any-emu.rmk: Generate symlist.
27685 (kernel_img_HEADERS): Add util/datetime.h.
27686 (kernel_img_HEADERS) [sdl]: Add sdl.h.
27687 (kernel_img_HEADERS) [libusb]: Add libusb.h.
27688 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
27689 kern/$(target_cpu)/cache.S.
27690 * configure.ac (grub-emu-modules): New option.
27691 * genmk.rb: Handle multiple source lists.
27692 * include/grub/sdl.h: New file.
27693 * include/grub/libusb.h: Likewise.
27694 * util/grub-emu.c (main): Hanle (host) root.
27695 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
27696 GRUB_ERR_UNKNOWN_DEVICE.
27697 * util/misc.c: Move mm functions to ...
27698 * util/mm.c: ... here. All users updated.
27699
47822096
VS
277002010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27701
27702 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
27703 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
27704 missing files.
27705 (maintainer-clean): Remove libgcrypt-grub.
27706
5d7e7445
VS
277072010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27708
27709 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
27710
25f4e252
EC
277112010-04-09 EFI Coder <eficoder@hotmail.com>
27712
27713 * normal/menu_text.c (print_message): Clean up the message and show
27714 the Fn information when on EFI
27715 * term/efi/console.c (grub_console_checkkey): Add F4 support.
27716
027de555
VS
277172010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27718
27719 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
27720 All users updated.
27721 * normal/crypto.c (read_crypto_list): Likewise.
27722 * normal/dyncmd.c (read_command_list): Likewise.
27723 * normal/term.c (read_terminal_list): Likewise.
27724 * normal/main.c (read_lists): Use explicit prefix.
27725 (read_lists_hook): Use read_lists.
27726 (grub_normal_execute): Likewise.
27727
47779711
VS
277282010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27729
27730 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
27731 Reported by: Thomas Schmitt.
27732 Add -no-emul-boot to grub-mkisofs parameters.
27733
1118c32e
VS
277342010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27735
27736 * font/font.c: Indented.
27737
7d652447
BC
277382010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
27739
27740 Elif support to GRUB script (by Deepak Vankadaru).
27741
27742 * tests/grub_script_if.in: New testcase.
27743 * conf/tests.rmk: Rule for new testcase.
27744 * script/parser.y: Grammar rules for elif.
27745
34bb22df
BC
277462010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
27747
27748 While and until loops support to GRUB script.
27749
27750 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
27751 (grub_script_create_cmdwhile): New function prototype.
27752 (grub_script_execute_cmdwhile): New function prototype.
27753 * script/execute.c (grub_script_execute_cmdwhile): New function.
27754 * script/parser.y (command): New commands.
27755 (whilecmd): New grammar rule.
27756 (untilcmd): New grammar rule.
27757 * script/script.c (grub_script_create_cmdwhile): New function.
27758 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
27759 function.
27760
27761 * tests/grub_script_while1.in: New testcase.
27762 * conf/tests.rmk: Rule for new testcase.
27763
e215d8e0
VS
277642010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27765
27766 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
27767 as *.jpg.
27768
d7c43ba1
MV
277692010-04-09 Mario Vazquez <mariovazq@gmail.com>
27770
27771 GRUB_BACKGROUND support.
27772
27773 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
27774 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
27775
d64795c0
VS
277762010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27777
27778 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 27779 Idea by: Mario Vazquez
d64795c0
VS
27780
27781 * util/grub.d/00_header.in: Load pf2 and image modules.
27782
f267f83a
VS
277832010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27784
27785 grub-mkconfig multiple terminal support.
27786
27787 * util/grub-mkconfig.in: Handle multiple terminals correctly.
27788 * util/grub.d/00_header.in: Likewise.
27789
b7841ceb
VS
277902010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
27791
27792 * Makefile.in: Specify files explicitly instead of using $< and $@ since
27793 we use cd $(srcdir).
27794
df60998c
CW
277952010-04-08 Colin Watson <cjwatson@ubuntu.com>
27796
27797 * util/grub.d/10_linux.in: Only use the first word of
27798 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
27799 spaces in GRUB_DISTRIBUTOR.
27800 * util/grub.d/10_kfreebsd.in: Likewise.
27801 * util/grub.d/10_hurd.in: Likewise.
27802
fa09c82e
BC
278032010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
27804
14e18ae3 27805 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
27806
27807 * tests/util/grub-shell.in: Remove -serial stdio option.
27808
daf892b3
BC
278092010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
27810
27811 POSIX header file wrappers.
27812
27813 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
27814 equivalents.
27815 * lib/posix_wrap/ctype.h: Likewise.
27816 * lib/posix_wrap/errno.h: Likewise.
27817 * lib/posix_wrap/langinfo.h: Likewise.
27818 * lib/posix_wrap/limits.h: Likewise.
27819 * lib/posix_wrap/localcharset.h: Likewise.
27820 * lib/posix_wrap/stdint.h: Likewise.
27821 * lib/posix_wrap/stdio.h: Likewise.
27822 * lib/posix_wrap/stdlib.h: Likewise.
27823 * lib/posix_wrap/string.h: Likewise.
27824 * lib/posix_wrap/sys/types.h: Likewise.
27825 * lib/posix_wrap/unistd.h: Likewise.
27826 * lib/posix_wrap/wchar.h: Likewise.
27827 * lib/posix_wrap/wctype.h: Likewise.
27828 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
27829 (grub_script.yy.h): Likewise.
27830 * script/yylex.l: Remove POSIX emulation #defines.
27831 * Makefile.in (POSIX_CFLAGS): New variable.
27832 (GNULIB_UTIL_CFLAGS): Likewise.
27833
27834 Regexp support.
27835
27836 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
27837 (regexp_mod_SOURCES): New variable.
27838 (regexp_mod_CFLAGS): Likewise.
27839 (regexp_mod_LDFLAGS): Likewise.
27840 * commands/regexp.c: New file.
27841 * gnulib/regcomp.c: New file. Imported from gnulib.
27842 * gnulib/regex.c: Likewise.
27843 * gnulib/regex_internal.c: Likewise.
27844 * gnulib/regex_internal.h: Likewise.
27845 * gnulib/regexec.c: Likewise.
27846 * gnulib/regex.h: Likewise.
27847
974ac4f7
VS
278482010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27849
27850 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
27851 unsupported video mode types.
27852
2622c3ff
VS
278532010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27854
27855 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
27856
064cb524
VS
278572010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27858
27859 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
27860 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
27861
a8c3b552
VS
278622010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
27863
27864 Remove unused grub_vga_get_font.
27865
27866 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
27867 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
27868
187bbe3d
GS
278692010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
27870
27871 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
27872 * include/grub/misc.h: Likewise.
27873
b9396631
GS
278742010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
27875
27876 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
27877 for which failure is fatal.
27878
50479feb
GS
278792010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
27880
27881 * util/grub-install.in: Use mkdir -p to create grub directory.
27882 * util/i386/efi/grub-install.in: Likewise.
27883 * util/ieee1275/grub-install.in: Likewise.
27884
b1654fdf
GS
278852010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
27886
27887 * Makefile.in (LEX): new variable.
27888
bd5a6415
GS
278892010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
27890
27891 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
27892 `=' and added double quotes on operands of this equality test.
27893
3db3a82b
VS
278942010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
27895
27896 * Makefile.in (uninstall): Remove a leftover debug echo.
27897 Reported by: Grégoire Sutre
27898
38023412
VS
278992010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
27900
27901 MIPS multiboot2 support.
27902
27903 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
27904 (multiboot2_mod_SOURCES): New variable.
27905 (multiboot2_mod_CFLAGS): Likewise.
27906 (multiboot2_mod_LDFLAGS): Likewise.
27907 (multiboot2_mod_ASFLAGS): Likewise.
27908 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
27909 definition.
27910 (MULTIBOOT_ENTRY_REGISTER): Likewise.
27911 (MULTIBOOT_MBI_REGISTER): Likewise.
27912 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
27913 (MULTIBOOT_ELF32_MACHINE): Likewise.
27914 (MULTIBOOT_ELF64_MACHINE): Likewise.
27915 * include/grub/mips/multiboot.h: New file.
27916 * include/grub/video.h (grub_video_driver_id): New type
27917 GRUB_VIDEO_DRIVER_SM712.
27918 (grub_video_get_info_and_fini): Export.
27919 (grub_video_get_palette): Likewise.
27920 (grub_video_get_driver_id): Likewise.
27921 * include/multiboot2.h: Resynced with spec.
27922 * loader/i386/multiboot.c: Moved from here ...
27923 * loader/multiboot.c: ... here. All users updated.
27924 (grub_multiboot_boot): Use platform-specific macros.
27925 * loader/i386/multiboot_elfxx.c: Moved from here ...
27926 * loader/multiboot_elfxx.c: ... here. All users updated.
27927 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
27928 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
27929 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
27930
47674667
VS
279312010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
27932
27933 Import gnulib argp module.
27934
27935 * gnulib/argp-ba.c: New file.
27936 * gnulib/argp-eexst.c: Likewise.
27937 * gnulib/argp-fmtstream.c: Likewise.
27938 * gnulib/argp-fmtstream.h: Likewise.
27939 * gnulib/argp-fs-xinl.c: Likewise.
27940 * gnulib/argp-help.c: Likewise.
27941 * gnulib/argp-namefrob.h: Likewise.
27942 * gnulib/argp-parse.c: Likewise.
27943 * gnulib/argp-pin.c: Likewise.
27944 * gnulib/argp-pv.c: Likewise.
27945 * gnulib/argp-pvh.c: Likewise.
27946 * gnulib/argp-version-etc.c: Likewise.
27947 * gnulib/argp-version-etc.h: Likewise.
27948 * gnulib/argp-xinl.c: Likewise.
27949 * gnulib/argp.h: Likewise.
27950
495442ed
VS
279512010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
27952
27953 * kern/device.c (grub_device_iterate): Clear errors after failed
27954 opening device.
27955
f9fd65df
VS
279562010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
27957
27958 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
27959 returned by firmware.
27960
af09641e
VS
279612010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
27962
27963 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
27964 compilation on coreboot and qemu
27965
016883a5
VS
279662010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
27967
27968 * include/multiboot2.h: Resync with spec.
27969
f97e1f7d
VS
279702010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
27971
27972 Multiboot2 tag support
27973
27974 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
27975 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
27976 Remove loader/multiboot_loader.c.
27977 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
27978 (grub_multiboot2_real_boot): Likewise.
27979 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
27980 (grub_get_multiboot_mmap_count): New proto.
27981 (grub_fill_multiboot_mmap): Likewise.
27982 (grub_multiboot_set_video_mode): Likewise.
27983 (grub_multiboot_set_console): Likewise.
27984 (grub_multiboot_load): Likewise.
27985 (grub_multiboot_load_elf): Likewise.
27986 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
27987 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
27988 * include/multiboot.h: Resynced with specification.
27989 * include/multiboot2.h: Resynced with specification.
27990 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
27991 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
27992 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
27993 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
27994 users updated.
27995 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
27996 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
27997 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
27998 Removed.
27999 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
28000 Moved from here...
28001 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
28002 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
28003 Moved from here...
28004 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
28005 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
28006 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
28007 All users updated.
28008 * loader/i386/multiboot_mbi2.c: New file.
28009
3506b90b
VS
280102010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28011
28012 Resync with gnulib.
28013
28014 * Makefile.in (GNULIB_CFLAGS): New variable.
28015 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
28016 (grub_script_check_CFLAGS): New variable.
28017 * gnulib/alloca.h: Resync with gnulib.
28018 * gnulib/error.c: Likewise.
28019 * gnulib/error.h: Likewise.
28020 * gnulib/fnmatch.c: Likewise.
28021 * gnulib/fnmatch_loop.c: Likewise.
28022 * gnulib/getdelim.c: Likewise.
28023 * gnulib/getline.c: Likewise.
28024 * gnulib/getopt.c: Likewise.
28025 * gnulib/getopt1.c: Likewise.
28026 * gnulib/getopt_int.h: Likewise.
28027 * gnulib/gettext.h: Likewise.
28028 * gnulib/progname.c: Likewise.
28029 * gnulib/progname.h: Likewise.
28030
394a3120
GS
280312010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
28032
28033 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
28034 which is the case with --disabled-nls.
28035
28036 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
28037 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
28038 * util/misc.c: Likewise.
28039 * util/mkisofs/mkisofs.c: Likewise.
28040 * util/mkisofs/mkisofs.h: Likewise.
28041
969d1c78
VS
280422010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
28043
28044 Simplify Apple CC support.
28045
28046 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
28047 Add 0 byte at the end not to have a symbol with empty target.
28048 * mmap/i386/pc/mmap_helper.S: Likewise.
28049 * genmk.rb: Ignore errors 2030 and 2050.
28050 * kern/i386/pc/startup.S: Use LOCAL when possible.
28051
8d2977bb
BC
280522010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
28053
28054 Testcase and the fix for final semicolon on cmdline.
28055
28056 * tests/grub_script_final_semicolon.in: New testcase.
28057 * conf/tests.rmk: Rules for the new testcase.
28058 * script/parser.y: Grammar fix.
28059
a7bd6915
BC
280602010-03-26 BVK Chaitanya <bvk@localhost>
28061
28062 Blank lines testcase for GRUB script.
28063
28064 * tests/grub_script_blanklines.in: New testcase.
28065 * conf/tests.rmk: Rules for the new testcase.
28066
e4ff6628
VS
280672010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28068
28069 Don't use __FILE__.
28070
28071 * genmk.rb: Add -DGRUB_FILE to all C targets.
28072 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
28073 * include/grub/list.h: Likewise.
28074 * include/grub/misc.h: Likewise.
28075 * include/grub/mm.h: Likewise.
28076 * include/grub/test.h: Likewise.
28077 * kern/mm.c: Likewise.
28078 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28079
6a5cf6b6
VS
280802010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28081
28082 Sunpc partitions support.
28083
28084 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
28085 (grub_fstest_SOURCES): Likewise.
28086 (pkglib_MODULES): Add part_sunpc.mod.
28087 (part_sunpc_mod_SOURCES): New variable.
28088 (part_sunpc_mod_CFLAGS): Likewise.
28089 (part_sunpc_mod_LDFLAGS): Likewise.
28090 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
28091 * partmap/sunpc.c: New file.
28092
746d9045
BC
280932010-03-26 BVK Chaitanya <bvk@localhost>
28094
28095 For loop support to GRUB script.
28096
28097 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
28098 (grub_script_create_cmdfor): New function prototype.
28099 (grub_script_execute_cmdfor): New function prototype.
28100 * script/execute.c (grub_script_execute_cmdfor): New function.
28101 * script/parser.y (command): New for command.
28102 (forcmd): New grammar rule.
28103 * script/script.c (grub_script_create_cmdfor): New function.
28104 * util/grub-script-check.c (grub_script_execute_cmdfor): New
28105 function.
28106 * tests/grub_script_for1.in: New testcase.
28107 * conf/tests.rmk: Rules for new testcase.
28108
18486b18
VS
281092010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
28110
28111 Nested partitions
28112
28113 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
28114 'partition' is NULL, grub_partition_get_start already does that.
28115 * commands/loadenv.c (check_blocklists): Likewise.
28116 (write_blocklists): Likewise.
28117 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
28118 (grub_fstest_SOURCES): Likewise.
28119 (pkglib_MODULES): Add part_bsd.mod.
28120 (part_bsd_mod_SOURCES): New variable.
28121 (part_bsd_mod_CFLAGS): Likewise.
28122 (part_bsd_mod_LDFLAGS): Likewise.
28123 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
28124 (grub_emu_SOURCES): Likewise.
28125 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28126 * include/grub/bsdlabel.h: New file.
28127 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
28128 'get_name'.
28129 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
28130 (grub_partition_map_list): New variable.
28131 (grub_partition_map_register): Inline.
28132 (grub_partition_map_unregister): Likewise.
28133 (FOR_PARTITION_MAPS): New macro.
28134 (grub_partition_map_iterate): Removed.
28135 (grub_partition_get_start): Handle nested partitions.
28136 * include/grub/msdos_partition.h: Remove bsd-related entries.
28137 (grub_pc_partition): Remove.
28138 * kern/disk.c (grub_disk_close): Free partition data.
28139 (grub_disk_adjust_range): Handle nested partitions.
28140 * kern/partition.c (grub_partition_map_probe): New function.
28141 (grub_partition_probe): Parse name to number, handle subpartitions.
28142 (get_partmap): New function.
28143 (grub_partition_iterate): Handle subpartitions.
28144 (grub_partition_get_name): Likewise.
28145 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
28146 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
28147 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
28148 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
28149 Set 'number'.
28150 (acorn_partition_map_probe): Remove.
28151 (acorn_partition_map_get_name): Likewise.
28152 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
28153 Set 'number'.
28154 Set 'index' to 0 since there can be only one partition entry per sector.
28155 (amiga_partition_map_probe): Remove.
28156 (amiga_partition_map_get_name): Likewise.
28157 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
28158 Set 'number'.
28159 Set 'offset' and 'index' to real positions of partitions.
28160 (apple_partition_map_probe): Remove.
28161 (apple_partition_map_get_name): Likewise.
28162 * partmap/bsdlabel.c: New file.
28163 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
28164 Set 'number'.
28165 Allocate 'data' so it can be correctly freed.
28166 Set 'index' to offset inside sector.
28167 (gpt_partition_map_probe): Remove.
28168 (gpt_partition_map_get_name): Likewise.
28169 * partmap/msdos.c (grub_partition_parse): Remove.
28170 (pc_partition_map_iterate): Don't force raw access.
28171 Set 'number'.
28172 Make 'ext_offset' a local variable.
28173 (pc_partition_map_probe): Remove.
28174 (pc_partition_map_get_name): Remove.
28175 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
28176 Set 'number'.
28177 (sun_partition_map_probe): Remove.
28178 (sun_partition_map_get_name): Likewise.
28179 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
28180 (grub_pcpart_type): Likewise.
28181 * util/hostdisk.c (open_device): Handle new numbering scheme.
28182 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
28183 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
28184 * util/grub-probe.c (probe_partmap): Handle nested paritions.
28185 * util/grub-install.in: Insert all subpartition modules.
28186 * util/ieee1275/grub-install.in: Likewise.
28187
a3940f88
AG
281882010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
28189
28190 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
28191 grammar.
28192
21b99926 281932010-03-24 Colin Watson <cjwatson@ubuntu.com>
28194
28195 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
28196
bed1d352
CW
281972010-03-21 Colin Watson <cjwatson@ubuntu.com>
28198
28199 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
28200 match where 'make install' puts them.
28201 * util/i386/efi/grub-install.in: Likewise.
28202
c9f58427
CW
282032010-03-19 Colin Watson <cjwatson@ubuntu.com>
28204
28205 * .bzrignore: Add gentrigtables, grub-script-check,
28206 grub_script_check_init.c, grub_script_check_init.h, and
28207 trigtables.c.
28208
f84afb27
VS
282092010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
28210
28211 * kern/parser.c: Indented.
28212
ed0e3d30
VS
282132010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28214
28215 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
28216
0ea81d98
VS
282172010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
28218
28219 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
28220 alpha_mask_size == 0 case.
28221
0cdc2a09
BC
282222010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
28223
28224 GRUB shell lexer and parser improvements.
28225
28226 * conf/any-emu.rmk: Build rule updates.
28227 * conf/common.rmk: Likewise.
28228 * conf/i386-coreboot.rmk: Likewise.
28229 * conf/i386-efi.rmk: Likewise.
28230 * conf/i386-ieee1275.rmk: Likewise.
28231 * conf/i386-pc.rmk: Likewise.
28232 * conf/powerpc-ieee1275.rmk: Likewise.
28233 * conf/x86_64-efi.rmk: Likewise.
28234
28235 * configure.ac: Configure check for flex.
28236
28237 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
28238 types.
28239 (grub_lexer_param): Struct member updates.
28240 (grub_parser_param): Likewise.
28241 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
28242 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
28243 (grub_script_lexer_init): Prototype update.
28244 (grub_script_lexer_record_start): Likewise.
28245 (grub_script_lexer_record_stop): Likewise.
28246 (grub_script_lexer_yywrap): New function prototype.
28247 (grub_script_lexer_fini): Likewise.
28248 (grub_script_execute_argument_to_string): Removed by...
28249 (grub_script_execute_argument_to_argv): ...better version.
28250
28251 * script/execute.c (ROUND_UPTO): New macro.
28252 (grub_script_execute_cmdline): Out of memory fixes.
28253 (grub_script_execute_menuentry): Likewise.
28254 (grub_script_execute_argument_to_string): Removed. Update all
28255 users by...
28256 (grub_script_execute_argument_to_argv): ...better version.
28257 * script/function.c (grub_script_function_create): Use
28258 grub_script_execute_argument_to_argv instead of
28259 grub_script_execute_argument_to_string.
28260
28261 * script/lexer.c (check_varstate): Removed.
28262 (check_textstate): Removed.
28263 (grub_script_lexer_record_start): Likewise.
28264 (grub_script_lexer_record_stop): Likewise.
28265 (recordchar): Replaced with...
28266 (grub_script_lexer_record): ...new function.
28267 (nextchar): Removed.
28268 (grub_script_lexer_init): Rewritten.
28269 (grub_script_yylex): Rewritten.
28270 (append_newline): New function.
28271 (grub_script_lexer_yywrap): New function.
28272 (grub_script_lexer_fini): New function.
28273 (grub_script_yyerror): Sets error flag.
28274
28275 * script/yylex.l: New file.
28276 (grub_lexer_yyfree): Wrapper for flex yyffre.
28277 (grub_lexer_yyalloc): Likewise.
28278 (grub_lexer_yyrealloc): Likewise.
28279 * script/parser.y: Refactored.
28280
28281 * script/script.c (grub_script_arg_add): Out of memory fixes.
28282 (grub_script_add_arglist): Likewise.
28283 (grub_script_create_cmdline): Likewise.
28284 (grub_script_create_cmdmenu): Likewise.
28285 (grub_script_add_cmd): Likewise.
28286 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
28287 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
28288 unnecessary code.
28289
28290 * tests/grub_script_echo1.in: New testcase.
28291 * tests/grub_script_vars1.in: New testcase.
28292 * tests/grub_script_echo_keywords.in: New testcase.
28293
1d63a066
VS
282942010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28295
28296 Remove some redundancy in build system.
28297
28298 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
28299 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
28300 (TARGET_LDFLAGS): Add -nostdlib.
28301 (TARGET_IMG_LDFLAGS): Likewise.
28302 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
28303 anything since mmap isn't available.
28304 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
28305 Add util/time.c.
28306 (pkglib_MODULES): Remove reboot.mod.
28307 (reboot_mod_SOURCES): Removed.
28308 (reboot_mod_CFLAGS): Likewise.
28309 (reboot_mod_LDFLAGS): Likewise.
28310 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
28311 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
28312 (DEFSYMFILES): Add kernel_syms.lst.
28313 (kernel_img_HEADERS): Add common headers.
28314 (symlist.c): New target.
28315 (kernel_syms.lst): Likewise.
28316 (pkglib_MODULES): Add memdisk.mod.
28317 (memdisk_mod_SOURCES): New variable.
28318 (memdisk_mod_CFLAGS): Likewise.
28319 (memdisk_mod_LDFLAGS): Likewise.
28320 (pkglib_MODULES): Add reboot.mod.
28321 (reboot_mod_SOURCES): New variable.
28322 (reboot_mod_CFLAGS): Likewise.
28323 (reboot_mod_LDFLAGS): Likewise.
28324 (pkglib_MODULES): Add date.mod.
28325 (date_mod_SOURCES): New variable.
28326 (date_mod_CFLAGS): Likewise.
28327 (date_mod_LDFLAGS): Likewise.
28328 (pkglib_MODULES): Add datehook.mod.
28329 (datehook_mod_SOURCES): New variable.
28330 (datehook_mod_CFLAGS): Likewise.
28331 (datehook_mod_LDFLAGS): Likewise.
28332 (pkglib_MODULES): Add lsmmap.mod.
28333 (lsmmap_mod_SOURCES): New variable.
28334 (lsmmap_mod_CFLAGS): Likewise.
28335 (lsmmap_mod_LDFLAGS): Likewise.
28336 (pkglib_MODULES): Add boot.mod.
28337 (boot_mod_SOURCES): New variable.
28338 (boot_mod_CFLAGS): Likewise.
28339 (boot_mod_LDFLAGS): Likewise.
28340 * conf/i386-coreboot.rmk: Removed redundant parts.
28341 * conf/i386-ieee1275.rmk: Likewise.
28342 * conf/i386-pc.rmk: Likewise.
28343 * conf/mips-yeeloong.rmk: Likewise.
28344 * conf/mips.rmk: Likewise.
28345 * conf/powerpc-ieee1275.rmk: Likewise.
28346 * conf/sparc64-ieee1275.rmk: Likewise.
28347 * conf/x86_64-efi.rmk: Likewise.
28348 * conf/i386-coreboot.rmk: Moved qemu parts ..
28349 * conf/i386-qemu.rmk: ... here
28350 * conf/i386-efi.rmk: Moved common parts to...
28351 * conf/x86-efi.rmk: ... here.
28352 * conf/i386.rmk: Added modules common to all x86 variants.
28353 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
28354 * disk/memdisk.c: Remove grub/machine/kernel.h.
28355 * gensymlist.sh.in: Include symbol.h.
28356 * hook/datehook.c: Correct module name.
28357 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
28358 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
28359 * include/grub/i386/efi/serial.h: New file.
28360 * include/grub/x86_64/efi/serial.h: Likewise.
28361 * util/time.c: Likewise.
28362 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
28363
463ac55f
CK
283642010-03-14 Colin King <colin.king@ubuntu.com>
283652010-03-14 Colin Watson <cjwatson@ubuntu.com>
28366
28367 Shrink the pre-partition-table part of boot.img by eight bytes.
28368
28369 * boot/i386/pc/boot.S (ERR): New macro.
28370 (chs_mode): Use ERR.
28371 (geometry_error): Likewise.
28372 (hd_probe_error): Remove. This is only used once, so we wrwite
28373 it inline instead.
28374 (read_error): Instead of printing read_error_string, just set up
28375 %si and fall through to ...
28376 (error_message): ... this new function, also used by ERR.
28377
08e46ede
CW
283782010-03-14 Colin Watson <cjwatson@ubuntu.com>
28379
28380 Speed up consecutive hostdisk operations on the same device.
28381
28382 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
28383 (grub_util_biosdisk_open): Initialise disk->data.
28384 (struct linux_partition_cache): New structure.
28385 (linux_find_partition): Cache partition start positions; these are
28386 expensive to compute on every read and write.
28387 (open_device): Cache open file descriptor in disk->data, so that we
28388 don't have to reopen it and flush the buffer cache for consecutive
28389 operations on the same device.
28390 (grub_util_biosdisk_close): New function.
28391 (grub_util_biosdisk_dev): Set `close' member.
28392
28393 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
28394 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
28395 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28396 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
28397 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
28398
4a6d2d06
VS
283992010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28400
28401 Compile parts of grub-emu as modules.
28402
28403 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
28404 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
28405 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
28406 (all-local): Add $(GRUB_EMU).
28407 (install-local): Install $(GRUB_EMU).
28408 (uninstall): Uninstall $(GRUB_EMU).
28409 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
28410 * kern/dl.c: Likewise.
28411 * commands/sleep.c: Not include machine/time.h.
28412 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
28413 (COMMON_CFLAGS): Likewise.
28414 (sbin_UTILITIES): Remove grub-emu.
28415 (grub_emu_SOURCES): Removed.
28416 (kernel_img_RELOCATABLE): New variable.
28417 (pkglib_PROGRAMS): Add kernel.img.
28418 (kernel_img_SOURCES): New variable
28419 (kernel_img_CFLAGS): Likewise.
28420 (kernel_img_LDFLAGS): Likewise.
28421 (TARGET_NO_STRIP): Likewise.
28422 (TARGET_NO_DYNAMIC_MODULES): Likewise.
28423 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
28424 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
28425 (grub-emu): New target.
28426 (GRUB_EMU): New variable.
28427 * configure.ac: Whitelist -emu as possible x86_64 architecture.
28428 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
28429 * loader/xnu.c: Likewise.
28430 * include/grub/pci.h: Likewise.
28431 * genemuinit.sh: New file.
28432 * genemuinitheader.sh: Likewise.
28433 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
28434 Support TARGET_NO_DYNAMIC_MODULES.
28435 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
28436 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
28437 * disk/loopback.c: Likewise.
28438 * font/font_cmd.c: Likewise.
28439 * partmap/acorn.c: Likewise.
28440 * partmap/amiga.c: Likewise.
28441 * partmap/apple.c: Likewise.
28442 * partmap/gpt.c: Likewise.
28443 * partmap/msdos.c: Likewise.
28444 * partmap/sun.c: Likewise.
28445 * parttool/msdospart.c: Likewise.
28446 * term/gfxterm.c: Likewise.
28447 * video/bitmap.c: Likewise.
28448 * video/readers/jpeg.c: Likewise.
28449 * video/readers/png.c: Likewise.
28450 * video/readers/tga.c: Likewise.
28451 * video/video.c: Likewise.
28452 * util/grub-emu.c (read_command_list): Removed.
28453 (main): Don't call util_init_nls.
28454 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
28455 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
28456
91fdd2ed
VS
284572010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28458
28459 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
28460 date.mod, datehook.mod.
28461 (datetime_mod_SOURCES): New variable.
28462 (datetime_mod_CFLAGS): Likewise.
28463 (datetime_mod_LDFLAGS): Likewise.
28464 (date_mod_SOURCES): Likewise.
28465 (date_mod_CFLAGS): Likewise.
28466 (date_mod_LDFLAGS): Likewise.
28467 (datehook_mod_SOURCES): Likewise.
28468 (datehook_mod_CFLAGS): Likewise.
28469 (datehook_mod_LDFLAGS): Likewise.
28470 * conf/sparc64-ieee1275.rmk: Likewise.
28471 * lib/ieee1275/datetime.c: New file.
28472
873ccae6
VS
284732010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28474
28475 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
28476 (ieee1275_fb_mod_SOURCES): New variable.
28477 (ieee1275_fb_mod_CFLAGS): Likewise.
28478 (ieee1275_fb_mod_LDFLAGS): Likewise.
28479 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
28480 New proto.
28481 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
28482 (HEAP_MAX_ADDR): Likewise.
28483 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
28484 type.
28485 Correct stop condition.
28486 (grub_ieee1275_devices_iterate): New function.
28487 * video/ieee1275.c: New file.
28488
601c97c0
VS
284892010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
28490
28491 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
28492
28493 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
28494 as scratch.
28495 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
28496 SCRATCH_PAD_DISKBOOT as scratch.
28497 (bootit): Pass Openfirmware pointer in %o4.
28498 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
28499 of 0x200000.
28500 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
28501 with util/grub-mkrawimage.c.
28502 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
28503 * include/grub/aout.h (AOUT_MID_SUN): New definition.
28504 (grub_aout_get_type) [GRUB_UTIL]: Removed.
28505 (grub_aout_load) [GRUB_UTIL]: Likewise.
28506 * include/grub/kernel.h (grub_modules_get_end): New proto.
28507 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
28508 (SCRATCH_PAD_BOOT): New definition.
28509 (SCRATCH_PAD_DISKBOOT): Likewise.
28510 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
28511 * include/grub/sparc64/ieee1275/ieee1275.h
28512 (grub_ieee1275_original_stack): New variable
28513 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
28514 New definition
28515 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
28516 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
28517 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
28518 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
28519 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
28520 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
28521 (grub_platform_image_format_t): New type.
28522 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
28523 * kern/main.c (grub_modules_get_end)
28524 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
28525 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
28526 (codestart): Switch stacks.
28527 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
28528 variable.
28529 (grub_heap_init): Use grub_modules_get_end.
28530 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
28531 stack.
28532 * util/grub-mkrawimage.c (generate_image): Support sparc64.
28533 (main): Likewise.
28534 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
28535
d68b491e
TG
285362010-03-14 Thorsten Glaser <tg@mirbsd.org>
28537
28538 * util/grub-mkrescue.in: Base ISO UUID on UTC.
28539
4e02ed50
MK
285402010-03-08 Matt Kraai <kraai@ftbfs.org>
28541
28542 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
28543 bug #559005).
28544
1f15fc1e
VS
285452010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
28546
28547 * genmoddep.awk: Output all missing symbols and not only first.
28548
fce5d8ff
VS
285492010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28550
28551 * NEWS: Put the date of 1.98 release.
28552
d1e8a02f
VS
285532010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28554
28555 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
28556 ft2build.h.
28557
696fd607
VS
285582010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28559
28560 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
28561 completition in the middle of string.
28562
33e2e6f3
VS
285632010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28564
28565 * util/grub-mkrescue.in: Use mktemp with explicit template.
28566
b1f6d291
VS
285672010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28568
28569 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
28570
2ac227c7
VS
285712010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
28572
28573 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
28574 right pointer.
28575
8f9a632b
VS
285762010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
28577
28578 Fix FreeBSD compilation.
28579
28580 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
28581 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
28582
60b03859
VS
285832010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
28584
28585 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
28586
48a5a769
VS
285872010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28588
28589 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
28590
3ab4bd77
VS
285912010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28592
28593 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
28594
d116e0d8
RM
285952010-03-04 Robert Millan <rmh.grub@aybabtu.com>
28596
28597 Support relative image path in theme file.
28598
28599 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
28600 (image_set_property): Handle theme_dir and relative path.
28601
c7ef54aa
VS
286022010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28603
28604 * configure.ac: Alias amd64 to x86_64.
28605
fcee14ed
VS
286062010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28607
28608 * NEWS: mention multiboot on EFI.
28609
d0780363
VS
286102010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28611
28612 * kern/main.c (grub_load_modules): Handle errors from init functions of
28613 embeded modules.
28614
41168ea4
VS
286152010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28616
28617 * normal/autofs.c (autoload_fs_module): Handle errors.
28618
b54d93ac
VS
286192010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28620
28621 Disable linux.mod on qemu-mips since it's not functional and leads
28622 to compilation failure.
28623
28624 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
28625 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
28626 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
28627 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
28628 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
28629 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
28630 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
28631 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
28632 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
28633 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
28634 Reported by: BVK Chaitanya
28635
fc8345da
JU
286362010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
28637
28638 * INSTALL: Add gettext as a dependency and add qemu to a new section
28639 "Prerequisites for make-check".
28640
4760f979
CF
286412010-03-04 Christian Franke <franke@computer.org>
28642
28643 * util/grub-pe2elf.c: Add missing include "progname.h".
28644
f209b5b2
VS
286452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28646
28647 * normal/crypto.c (read_crypto_list): Fix a typo.
28648 Reported by: Seth Goldberg.
28649
b4b7be98
VS
286502010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28651
28652 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 28653 Reported by: Seth Goldberg.
b4b7be98 28654
c0ee0385
VS
286552010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28656
28657 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
28658 ascii.bitmaps.
28659
a8efbf64
VS
286602010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28661
28662 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 28663 Reported by: Seth Goldberg.
a8efbf64 28664
08dcd913
VS
286652010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
28666
28667 * util/i386/efi/grub-install.in: Copy gettext files.
28668
c4d0b332
VS
286692010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28670
28671 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
28672
c6f2fe52
VS
286732010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28674
28675 Wait for user entry basing on presence of output rather than on errors.
28676
28677 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
28678 (grub_install_newline_hook): Likewise.
28679 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
28680 * normal/menu.c (show_menu): Check line_counter to determine presence
28681 of output.
28682 * normal/term.c (grub_normal_line_counter): New variable.
28683 (grub_normal_get_line_counter): New function.
28684 (grub_install_newline_hook): Likewise.
28685
5382b1e4
VS
286862010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28687
28688 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
28689
5519963b
VS
286902010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
28691
28692 * configure.ac: Update version to 1.98.
28693
72b28631
VS
286942010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
28695
28696 * util/grub.d/10_linux.in (linux_entry): Don't default to
28697 gfxpayload=keep if Linux doesn't support video handover.
28698
c140a180
VS
286992010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
28700
28701 Don't compile video modules on yeeloong since video subsystem is part
28702 of kernel.
28703
28704 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
28705 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
28706 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
28707 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
28708 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
28709 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
28710 * include/grub/bitmap_scale.h: Likewise.
28711 * include/grub/bufio.h: Likewise.
28712 * include/grub/font.h: Likewise.
28713 * include/grub/gfxterm.h: Likewise.
28714 * include/grub/video.h: Likewise.
28715 * include/grub/vbe.h: Don't include video_fb.h.
28716 * video/i386/pc/vbe.c: Include video_fb.h.
28717 * commands/i386/pc/vbetest.c: Include video.h.
28718
a0ca21c2
CW
287192010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
28720
28721 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
28722 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
28723 default entry if GRUB_SAVEDEFAULT=true. This allows using
28724 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
28725 saving a new default on every boot.
28726
4a8a763c
VS
287272010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
28728
28729 * normal/crypto.c (read_crypto_list): Fix a memory leak.
28730 * normal/term.c (read_terminal_list): Likewise.
28731 * normal/main.c (grub_normal_init_page): Likewise.
28732 (grub_normal_read_line_real): Likewise.
28733
607ffde2
VS
287342010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
28735
28736 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
28737 memory leak.
28738 Reported by: Seth Goldberg.
28739
2b8fa975
CW
287402010-02-24 Joey Korkames <joey+lists@kidfixit.com>
28741
28742 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
28743 duplicate declaration of `start'.
28744
618307dd
VS
287452010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
28746
28747 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
28748 filename.
28749 Reported by: Georgy Buranov
28750
7dd05b96 287512010-02-20 Carles Pina i Estany <carles@pina.cat>
28752
28753 * util/grub-mkrawimage.c (usage): Change string formatting to
28754 improve gettext.
28755
d1484a42
MRA
287562010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
28757
28758 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
28759 backspace keys.
28760
42b1d186
VS
287612010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
28762
28763 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
28764 Reported by: Michael Suchanek.
28765
287662010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
28767
28768 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
28769 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
28770
d9f31a41
VS
287712010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
28772
28773 Remove any reference to non-free fonts.
28774
28775 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
28776 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
28777 uses non-free components.
28778 * font/font.c (grub_font_get_name): Remove example name.
28779 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
28780 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
28781 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
28782 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
28783
2793c71e
GB
287842010-02-16 Georgy Buranov <gburanov@gmail.com>
28785
28786 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
28787
402e3779
VS
287882010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
28789
28790 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
28791 Double divisor.
28792 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
28793 features.
28794 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
28795
0dd1e0dd
VS
287962010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
28797
28798 * gensymlist.sh.in: Use TARGET_CC instead of CC.
28799
6fa7cfce
ST
288002010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
28801
28802 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
28803 * docs/grub.texi (Command-line and menu entry commands): Document play
28804 command.
28805
37c8483b
ST
288062010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
28807
28808 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
28809 parse arguments as inline tempo and notes. Move code for playing notes
28810 to...
28811 (play): ... new function.
28812
14da0fb7
ST
288132010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
28814
28815 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
28816 grub_uint16_t instead of short.
28817 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
28818 disk from little endian to cpu endianness.
28819
04459e70
ST
288202010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28821
28822 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
28823 GRUB_TICKS_PER_SECOND instead of 120.
28824
a0876943
VS
288252010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28826
28827 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
28828 escape sequence after \e.
28829
e29f95dc
VS
288302010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28831
28832 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
28833 non-ASCII characters.
28834
d27859b2
VS
288352010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28836
28837 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
28838 set root in single quotes to prevent \, from being unescaped.
28839
bc028f2f
VS
288402010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28841
28842 Prevent unknown commands from stopping menuentry execution.
28843
28844 * script/execute.c (grub_script_execute_cmdline): Print error after
28845 unknown command.
28846
095f5f82
VS
288472010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28848
28849 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
28850 Reported by: Pavel Pisa.
28851
8c717950
VS
288522010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28853
28854 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
28855
904935c3
VS
288562010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28857
28858 Merge grub_ieee1275_map_physical into grub_map and rename to
28859 grub_ieee1275_map
28860
28861 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
28862 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
28863 Remove.
28864 * kern/ieee1275/openfw.c (grub_map): Rename to ...
28865 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
28866 necessary.
28867 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
28868
5b59a4e3
VS
288692010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28870
28871 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
28872 opening and not after.
28873
69e137e8
VS
288742010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28875
28876 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
28877 constants.
28878
2c0fcc36
VS
288792010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28880
28881 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
28882 (alloc_phys): Use ALIGN_UP instead of align_addr.
28883
8c6052ce
VS
288842010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28885
28886 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
28887
17cec782
VS
288882010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28889
28890 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
28891
e0128bbd
VS
288922010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28893
28894 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
28895 verbose dprintf.
28896
ca62070b
VS
288972010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28898
28899 Fix over-4GiB seek on sparc64.
28900
28901 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
28902 Replace pos_i and pos_lo with pos. All users updated.
28903 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
28904 New constant.
28905 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
28906 Likewise.
28907 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
28908 and pos_lo.
28909
bdca2607
VS
289102010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28911
28912 * util/grub-mkrawimage.c (main): Call set_program_name.
28913
da278c4d
VS
289142010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28915
28916 Properly align 64-bit targets.
28917
28918 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
28919 (generate_image): Use ALIGN_ADDR.
28920
b274d734
VS
289212010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28922
28923 Properly create cross-endian images.
28924
28925 * include/grub/types.h (grub_host_to_target_addr): New macro
28926 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
28927
82da2062
VS
289282010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
28929
28930 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
28931
7cae4377
VS
289322010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
28933
28934 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
28935
28936 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
28937 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
28938 (grub_linux_boot): Divide by 64K when on VESA.
28939
65a533e7
VS
289402010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
28941
28942 Support GRUB_GFXPAYLOAD_LINUX.
28943
28944 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
28945 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
28946
dd01d397
VS
289472010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
28948
28949 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
28950 to show messages instead of discarding them.
28951 Process errors after executing command and not before. Keep old method
28952 too as precaution.
28953
660960d6
VS
289542010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
28955
28956 * configure.ac: Check for ft2build.h.
28957
62509f04
VS
289582010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
28959
28960 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
28961
473df63d
VS
289622010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
28963
28964 * genkernsyms.sh.in: Use TARGET_CC.
28965
c98d2a13
CW
289662010-02-07 Colin Watson <cjwatson@ubuntu.com>
28967
28968 * NEWS: Update.
28969
6e14234c
VS
289702010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
28971
28972 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
28973 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
28974 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 28975
b255e9cf
YB
289762010-02-07 Yves Blusseau <blusseau@zetam.org>
28977
6e14234c 28978 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 28979
98e6959d
VS
289802010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
28981
28982 Fix warnings in grub-emu when compiling with maximum warning options.
28983
28984 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
28985 (grub_arch_modules_addr): Return 0 and not NULL.
28986 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 28987 (xstrdup): Use newstr instead of dup.
f88d801b
VS
28988 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
28989 of disk to dsk to avoid shadowing.
74e4934e
VS
28990 (find_free_slot): Fix prototype.
28991 * util/getroot.c (grub_util_is_dmraid): Make static.
28992 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
28993 Add missing prototype.
28994 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 28995
74e31b5c
VS
289962010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
28997
28998 * loader/i386/linux.c (grub_linux_setup_video): Handle error
28999 appropriately.
29000
6b2ad14b
VS
290012010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29002
29003 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
29004 code out.
29005
8f891adc
VS
290062010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29007
29008 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
29009 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
29010 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
29011 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
29012 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
29013 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
29014
74b45184
VS
290152010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29016
29017 * include/grub/err.h (grub_err_printf): Don't export.
29018
a4bced77
VS
290192010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29020
29021 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
29022
007d0695
VS
290232010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
29024
29025 * include/grub/i18n.h (grub_gettext_dummy): Removed.
29026 * kern/misc.c (grub_gettext_dummy): Make static.
29027
b6c0d9c2
VS
290282010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29029
29030 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
29031 by non-valid ones.
29032 * kern/term.c (grub_putchar): Likewise.
29033
f51a90d0
VS
290342010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29035
29036 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
29037 buggy hook call and memory leak.
29038
6846cec5
VS
290392010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29040
29041 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
29042
468d69fe
VS
290432010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29044
29045 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
29046
51906b8c
VS
290472010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29048
29049 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
29050 modevar.
29051 Return grub_errno on allocation error.
29052
09706ce5
VS
290532010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29054
29055 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
29056
911df80c
YB
290572010-02-06 Yves Blusseau <blusseau@zetam.org>
29058
29059 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
29060 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
29061
3746a6bc
VS
290622010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29063
29064 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
29065 non-pxe disk.
29066 (grub_pxefs_open): Likewise.
29067
09706ce5
VS
290682010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29069
29070 * util/grub.d/10_hurd.in: Add --class information to menuentries.
29071 * util/grub.d/10_kfreebsd.in: Likewise.
29072 * util/grub.d/10_linux.in: Likewise.
29073
7cc192d9
VS
290742010-02-06 Colin D Bennett <colin@gibibit.com>
29075
29076 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
29077 (gfxmenu_mod_SOURCES): New variable.
29078 (gfxmenu_mod_CFLAGS): Likewise.
29079 (gfxmenu_mod_LDFLAGS): Likewise.
29080 * include/grub/term.h (grub_term_set_current_output): Declare
29081 argument as const.
29082 * docs/gfxmenu-theme-example.txt: New file.
29083 * gfxmenu/gfxmenu.c: Likewise.
29084 * gfxmenu/gui_box.c: Likewise.
29085 * gfxmenu/gui_canvas.c: Likewise.
29086 * gfxmenu/gui_circular_progress.c: Likewise.
29087 * gfxmenu/gui_image.c: Likewise.
29088 * gfxmenu/gui_label.c: Likewise.
29089 * gfxmenu/gui_list.c: Likewise.
29090 * gfxmenu/gui_progress_bar.c: Likewise.
29091 * gfxmenu/gui_string_util.c: Likewise.
29092 * gfxmenu/gui_util.c: Likewise.
29093 * gfxmenu/icon_manager.c: Likewise.
29094 * gfxmenu/model.c: Likewise.
29095 * gfxmenu/named_colors.c: Likewise.
29096 * gfxmenu/theme_loader.c: Likewise.
29097 * gfxmenu/view.c: Likewise.
29098 * gfxmenu/widget-box.c: Likewise.
29099 * include/grub/gfxmenu_model.h: Likewise.
29100 * include/grub/gfxmenu_view.h: Likewise.
29101 * include/grub/gfxwidgets.h: Likewise.
29102 * include/grub/gui.h: Likewise.
29103 * include/grub/gui_string_util.h: Likewise.
29104 * include/grub/icon_manager.h: Likewise.
29105
291062010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29107
29108 Agglomerate scrolling in gfxterm.
29109
29110 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
29111 (grub_virtual_screen_setup): Initialise 'total_screen'.
29112 (write_char): Split to ...
29113 (paint_char): ... this ...
29114 (write_char): ... and this.
29115 (paint_char): Handle delayed scrolling.
29116 (draw_cursor): Likewise.
29117 (scroll_up): Split to ...
29118 (real_scroll): ... this ...
29119 (scroll_up): ... and this.
29120 (real_scroll): Handle multi-line scroll and draw below-the-bottom
29121 characters.
29122 (grub_gfxterm_refresh): Call real_scroll.
29123
291242010-02-06 Colin D Bennett <colin@gibibit.com>
29125
29126 * include/grub/misc.h (grub_iscntrl): New inline function.
29127 (grub_isalnum): Likewise.
29128 (grub_strtol): Likewise.
29129
291302010-02-06 Colin D Bennett <colin@gibibit.com>
29131
29132 * normal/menu_text.c (get_entry_number): Move from here ...
29133 * normal/menu.c (get_entry_number): ... moved here.
29134 * include/grub/menu.h (grub_menu_get_default_entry_index):
29135 New prototype.
29136 * normal/menu.c (grub_menu_get_default_entry_index): New function.
29137 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
29138 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
29139 (grub_menu_viewer_should_return): Likewise.
29140 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
29141 * normal/menu_text.c (run_menu): Enable menu switching.
29142 * normal/menu_viewer.c (should_return): New variable.
29143 (menu_viewer_changed): Likewise.
29144 (grub_menu_viewer_show_menu): Handle menu viewer changes.
29145 (grub_menu_viewer_should_return): New function.
29146 (menuviewer_write_hook): Likewise.
29147 (grub_menu_viewer_init): Likewise.
29148
291492010-02-06 Colin D Bennet <colin@gibibit.com>
291502010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29151
29152 Support for gfxterm in a window.
29153
29154 * include/grub/gfxterm.h: New file.
29155 * include/grub/video.h (struct grub_video_rect): New declaration.
29156 (grub_video_rect_t): Likewise.
29157 * term/gfxterm.c (struct grub_gfxterm_window): New type.
29158 (refcount): New variable.
29159 (render_target): Likewise.
29160 (window): Likewise.
29161 (repaint_callback): Likewise.
29162 (grub_virtual_screen_setup): Use 'render_target'.
29163 (init_window): New function.
29164 (grub_gfxterm_init_window): Likewise.
29165 (grub_gfxterm_init): Check reference counter.
29166 Use init_window.
29167 (destroy_window): New function.
29168 (grub_gfxterm_destroy_window): Likewise.
29169 (grub_gfxterm_fini): Check reference counter.
29170 Use destroy_window.
29171 (redraw_screen_rect): Restore viewport.
29172 Use 'render_target' and 'window'.
29173 Call 'repaint_callback'.
29174 (write_char): Use 'render_target'.
29175 (draw_cursor): Likewise.
29176 (scroll_up): Restore viewport.
29177 Use 'render_target' and 'window'.
29178 Call 'repaint_callback'.
29179 (grub_gfxterm_cls): Likewise.
29180 (grub_gfxterm_refresh): Use 'window'.
29181 (grub_gfxterm_set_repaint_callback): New function.
29182 (grub_gfxterm_background_image_cmd): Use 'window'.
29183 (grub_gfxterm_get_term): New function.
29184 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
29185
291862010-02-06 Colin D Bennett <colin@gibibit.com>
29187
29188 Bitmap scaling support.
29189
29190 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
29191 (bitmap_scale_mod_SOURCES): New variable.
29192 (bitmap_scale_mod_CFLAGS): Likewise.
29193 (bitmap_scale_mod_LDFLAGS): Likewise.
29194 * include/grub/bitmap_scale.h: New file.
29195 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
29196 (background_image_cmd_options): New variable.
29197 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
29198 (cmd): Rename and change type to ...
29199 (background_image_cmd_handle): ... this. All users updated.
29200 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
29201 * video/bitmap_scale.c: New file.
29202
292032010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29204
29205 SDL support.
29206
29207 * Makefile.in (LIBSDL): New variable.
29208 (enable_grub_emu_sdl): Likewise.
29209 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
29210 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
29211 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
29212 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
29213 * util/sdl.c: New file.
29214
292152010-02-06 Colin D Bennett <colin@gibibit.com>
292162010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29217
29218 Double buffering support.
29219
29220 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
29221 * include/grub/video.h: Update comment.
29222 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
29223 New type.
29224 (grub_video_fb_doublebuf_blit_init): New prototype.
29225 * term/gfxterm.c (scroll_up): Support double buffering.
29226 (grub_gfxterm_refresh): Likewise.
29227 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
29228 (grub_video_fb_doublebuf_blit_init): Likewise.
29229 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
29230 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
29231 'displayed_page', 'render_page' and 'update_screen'.
29232 (grub_video_vbe_fini): Free offscreen buffer.
29233 (doublebuf_pageflipping_commit): New function.
29234 (doublebuf_pageflipping_update_screen): Likewise.
29235 (doublebuf_pageflipping_init): Likewise.
29236 (double_buffering_init): Likewise.
29237 (grub_video_vbe_setup): Enable doublebuffering.
29238 (grub_video_vbe_swap_buffers): Implement.
29239 (grub_video_vbe_set_active_render_target): Handle double buffering.
29240 (grub_video_vbe_get_active_render_target): Likewise.
29241 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
29242 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
29243 (grub_video_vbe_enable_double_buffering): Likewise.
29244 (grub_video_vbe_swap_buffers): Use update_screen.
29245 (grub_video_set_mode): Use double buffering.
29246
292472010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29248
29249 * maintainance/gentrigtables.py: Remove.
29250 * lib/trig.c: Likewise.
29251
29252 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
29253
29254 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
29255 `trigtables.c'.
29256 (trigtables.c): New rule.
29257 (gentrigtables): Likewise.
29258 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
29259
292602010-02-06 Robert Millan <rmh.grub@aybabtu.com>
29261
29262 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
29263 integer constants.
29264
292652010-02-06 Colin D Bennet <colin@gibibit.com>
29266
29267 Trigonometry support.
29268
29269 * include/grub/trig.h: New file.
29270 * lib/trig.c: Likewise.
29271 * maintainance/gentrigtables.py: Likewise.
29272 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
29273 (trig_mod_SOURCES): New variable.
29274 (trig_mod_CFLAGS): Likewise.
29275 (trig_mod_LDFLAGS): Likewise.
29276
5562834e
VS
292772010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29278
29279 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
29280 disk devices.
29281
4f8528fc
VS
292822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
29283
29284 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
29285 error.
29286
2b4068e9
VS
292872010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
29288
29289 * util/hostdisk.c (open_device): Don't use partition device when reading
29290 before the partition.
29291 (grub_util_biosdisk_read): Don't read from partition and before the
29292 partition in single operation.
29293 (grub_util_biosdisk_write): Don't write to partition and before the
29294 partition in single operation.
29295
399f6e4d
TL
292962010-02-03 Torsten Landschoff <torsten@debian.org>
29297
29298 * kern/disk.c (grub_disk_read): Fix offset computation when reading
29299 last sectors.
29300
996649b0
VS
293012010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
29302
29303 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
29304 CDROM reads.
29305 (grub_biosdisk_write): Refuse to write to CDROM.
29306
3b205d4d
VS
293072010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
29308
29309 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
29310
61e89d9d
VS
293112010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
29312
29313 * font/font.c (find_glyph): Check that bmp_idx is available before
29314 using it.
29315 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
29316 with (font == NULL).
29317
bf7fcba2
CS
293182010-01-28 Christian Schmitt <chris@ilovelinux.de>
29319
29320 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
29321
f45d2663
BC
293222010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
29323
29324 * include/grub/script_sh.h (sourcecode): Add const qualifier.
29325 * util/grub-script-check.c (getline): Fix empty lines case.
29326
ec1444e6
RM
293272010-01-28 Robert Millan <rmh.grub@aybabtu.com>
29328
29329 * Makefile.in (check): Exit with fail status when one of the tests
29330 fails.
29331 * tests/example_functional_test.c (example_test): Fix reversed assert.
29332 * tests/example_unit_test.c (example_test): Likewise.
29333
2e1cb9bb
CW
293342010-01-28 Colin Watson <cjwatson@ubuntu.com>
29335
29336 * util/grub.d/10_linux.in: This script does not use any of the
29337 contents of gettext.sh, only the external command `gettext', so stop
29338 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
29339 the same prefix as GRUB.)
29340 * util/grub.d/10_kfreebsd.in: Likewise.
29341
63533ab0
VS
293422010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29343
29344 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
29345 of the line.
29346
989e1f93
VS
293472010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29348
29349 * kern/disk.c (grub_disk_read): Fix offset computation when reading
29350 last sectors.
29351
e709ebe2
VS
293522010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
29353
29354 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
29355 having a 4KiB and not 32KiB buffer size.
29356
27dea7ed
RM
293572010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29358
29359 * util/hostfs.c: Include `<errno.h>'.
29360 (grub_hostfs_read): Handle errors from fseeko() and fread().
29361
67667b9c
RM
293622010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29363
29364 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
29365 loop when using read hooks on files whose size isn't sector-aligned.
29366
c294d9d8
RM
293672010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29368
29369 Remove unused parameter.
29370
29371 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
29372 (grub_iso9660_open): Remove initialization of `data->length'.
29373
af75a9f1
RM
293742010-01-27 Robert Millan <rmh.grub@aybabtu.com>
29375
29376 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
29377 memleak conditions.
29378
254e2ce5 293792010-01-27 Carles Pina i Estany <carles@pina.cat>
29380
29381 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
29382 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
29383
b510928c 293842010-01-26 Carles Pina i Estany <carles@pina.cat>
29385
29386 * util/bin2h.c (usage): Fix warning (space after backslash).
29387
aa2f9dd2 293882010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 29389
29390 * font/font.c: Include `grub/fontformat.h.
29391 Remove font file format constants.
29392 (grub_font_load): Use the new macros.
29393 * include/grub/fontformat.h: New file.
29394 * util/grub-mkfont.c: Include `grub/fontformat.c'.
29395 (write_font_pf2): Use the new macros.
29396
94e7e712
RM
293972010-01-26 Robert Millan <rmh.grub@aybabtu.com>
29398
29399 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
29400 does.
29401
3973a59a
RM
294022010-01-26 Robert Millan <rmh.grub@aybabtu.com>
29403
29404 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
29405
29406 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
29407 (_start): Macroify `0x7F'.
29408
29409 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
29410 (make_install_device): Use "(pxe)" as fallback prefix when booting
29411 via PXE.
29412
42e0cba3
GS
294132010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
29414
29415 * configure.ac: Reset LIBS after check for libgcc symbols.
29416
847effd8
CW
294172010-01-25 Colin Watson <cjwatson@ubuntu.com>
29418
29419 * util/hostdisk.c (open_device): Add trailing newline to debug
29420 message.
29421
ea4a7e35
GS
294222010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
29423
29424 * configure.ac: Check for `limits.h'.
29425 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
29426
67951a53
RM
294272010-01-24 Robert Millan <rmh.grub@aybabtu.com>
29428
29429 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
29430 capitalize error strings.
29431
c273d4ce
ST
294322010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29433
29434 * util/grub.d/10_hurd.in: Add a recovery mode.
29435
69be5b74
VS
294362010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
29437
29438 * configure.ac: Check for libgcc symbols with -nostdlib.
29439
fc9e5810
BC
294402010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
29441
29442 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
29443
4b358c0a
VS
294442010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29445
29446 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
29447 stack since heap may be unavailable at that point.
29448 (grub_ofconsole_gotoxy): Likewise.
29449
454fcd1c
VS
294502010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29451
29452 * configure.ac: Check for _restgpr_14_x.
29453 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
29454 and _savegpr_* prototypes.
29455
566863ca
RM
294562010-01-22 Robert Millan <rmh.grub@aybabtu.com>
29457
29458 Use generic grub_reboot() for i386-efi.
29459
29460 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
29461 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
29462 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
29463
bf86e59a
VS
294642010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
29465
29466 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
29467 presence of "prefix" variable as it breaks when normal.mod is
29468 embedded.
29469
d645e0f8
VS
294702010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29471
29472 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
29473 stack since heap is unavailable at that point.
29474
f9ab2e25
VS
294752010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29476
29477 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
29478 (grub_freebsd_bootinfo): Rewritten.
29479 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
29480
01fc7054
VS
294812010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
29482
29483 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
29484
caab4fd6
RM
294852010-01-21 Robert Millan <rmh.grub@aybabtu.com>
29486
29487 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
29488 domain now.
29489
67eb1427
FZ
294902010-01-20 Felix Zielcke <fzielcke@z-51.de>
29491
29492 * util/misc.c (make_system_path_relative_to_its_root): Change the work
29493 around for handling "/" to the correct fix. Fix a memory leak. Use
29494 xstrdup instead of strdup.
29495
a9ed4ff3
VS
294962010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29497
29498 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
29499
295002010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
29501
29502 Optimise glyph lookup by Basic Multilingual Plane lookup array.
29503
29504 * font/font.c (struct grub_font): New member 'bmp_idx'.
29505 (font_init): Initialise 'bmp_idx'.
29506 (load_font_index): Fill 'bmp_idx'.
29507 (find_glyph): Make inline. Use bmp_idx for BMP characters.
29508
48209f4f
VS
295092010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29510
29511 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
29512 unnecessary calls.
29513
9f0a4bb7
VS
295142010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29515
29516 Move context handling out of the kernel.
29517
29518 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
29519 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
29520 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
29521 * conf/i386-efi.rmk: Likewise.
29522 * conf/i386-ieee1275.rmk: Likewise.
29523 * conf/i386-pc.rmk: Likewise.
29524 * conf/powerpc-ieee1275.rmk: Likewise.
29525 * conf/sparc64-ieee1275.rmk: Likewise.
29526 * conf/x86_64-efi.rmk: Likewise.
29527 * include/grub/env.h: Include grub/menu.h.
29528 (grub_env_var_type): Removed.
29529 (grub_env_var): Replaced field 'type' with 'global'.
29530 (grub_env_find): New prototype.
29531 (grub_env_context_open): Remove EXPORT_FUNC.
29532 (grub_env_context_close): Likewise.
29533 (grub_env_export): Likewise.
29534 (grub_env_set_data_slot): Removed.
29535 (grub_env_get_data_slot): Likewise.
29536 (grub_env_unset_data_slot): Likewise.
29537 (grub_env_unset_menu): New prototype.
29538 (grub_env_set_menu): Likewise.
29539 (grub_env_get_menu): Likewise.
29540 * include/grub/env_private.h: New file.
29541 * include/grub/normal.h (grub_context_init): New prototype.
29542 (grub_context_fini): Likewise.
29543 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
29544 * normal/context.c (grub_cmd_export): ... to here.
29545 * kern/env.c: Include env_private.h.
29546 (HASHSZ): Moved to include/grub/env_private.h.
29547 (grub_env_context): Likewise.
29548 (grub_env_sorted_var): Likewise.
29549 (current_context): Renamed from this ...
29550 (grub_current_context): ...to this. 'static' removed. All users updated.
29551 (grub_env_find): Removed 'static'.
29552 (grub_env_context_open): Moved to normal/context.c.
29553 (grub_env_context_close): Likewise.
29554 (grub_env_export): Likewise.
29555 (mangle_data_slot_name): Removed.
29556 (grub_env_set_data_slot): Likewise.
29557 (grub_env_get_data_slot): Likewise.
29558 (grub_env_unset_data_slot): Likewise.
29559 * kern/main.c (grub_set_root_dev): Don't export root.
29560 It will be done later.
29561 (grub_main): Don't export prefix.
29562 It will be done later.
29563 * normal/context.c: New file.
29564 * normal/main.c (free_menu): Use grub_env_unset_menu.
29565 (grub_normal_add_menu_entry): Use grub_env_get_menu.
29566 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
29567 (GRUB_MOD_INIT(normal)): Call grub_context_init.
29568 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
29569
8dd35b8c
VS
295702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29571
29572 setpci support.
29573
29574 * commands/setpci.c: New file.
29575 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
29576 (setpci_mod_SOURCES): New variable.
29577 (setpci_mod_CFLAGS): Likewise.
29578 (setpci_mod_LDFLAGS): Likewise.
29579
449193d5
VS
295802010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29581
29582 Byte-addressable PCI configuration space.
29583
29584 * bus/pci.c (grub_pci_make_address): Use byte address instead of
29585 dword address.
29586 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
29587 GRUB_PCI_REG_CACHELINE.
29588 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
29589 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
29590 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
29591 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
29592 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
29593 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
29594 grub_pci_make_address.
29595 (lock_rom_area): Likewise.
29596 * commands/lspci.c (grub_lspci_iter): Use macroses
29597 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
29598 of grub_pci_make_address.
29599 * disk/ata.c (grub_ata_pciinit): Likewise.
29600 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
29601 (GRUB_PCI_REG_VENDOR): Likewise.
29602 (GRUB_PCI_REG_DEVICE): Likewise.
29603 (GRUB_PCI_REG_COMMAND): Likewise.
29604 (GRUB_PCI_REG_STATUS): Likewise.
29605 (GRUB_PCI_REG_REVISION): Likewise.
29606 (GRUB_PCI_REG_CLASS): Likewise.
29607 (GRUB_PCI_REG_CACHELINE): Likewise.
29608 (GRUB_PCI_REG_LAT_TIMER): Likewise.
29609 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
29610 (GRUB_PCI_REG_BIST): Likewise.
29611 (GRUB_PCI_REG_ADDRESSES): Likewise.
29612 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29613 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29614 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29615 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29616 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29617 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
29618 (GRUB_PCI_REG_CIS_POINTER): Likewise.
29619 (GRUB_PCI_REG_SUBVENDOR): Likewise.
29620 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
29621 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
29622 (GRUB_PCI_REG_CAP_POINTER): Likewise.
29623 (GRUB_PCI_REG_IRQ_LINE): Likewise.
29624 (GRUB_PCI_REG_IRQ_PIN): Likewise.
29625 (GRUB_PCI_REG_MIN_GNT): Likewise.
29626 (GRUB_PCI_REG_MAX_LAT): Likewise.
29627 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
29628 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
29629 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 29630 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
29631 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
29632 space.
29633
96d73208
RM
296342010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29635
29636 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
29637 can be reliably determined to be supported.
29638
d4484482
RM
296392010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29640
29641 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
29642 that VESA is supported.
29643 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
29644 supported.
29645
00308ecf
VS
296462010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29647
29648 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
29649
f66924a4
RM
296502010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29651
29652 * util/misc.c (make_system_path_relative_to_its_root): Work around
29653 special-casing of "/", as previous incarnation of this routine did.
29654
cbca0ada
VS
296552010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29656
29657 Fix any-emu compilation.
29658
29659 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
29660 * grub_bin2h_SOURCES: New variable.
29661
34a66d99
RM
296622010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29663
29664 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
29665
94fabf58
RM
296662010-01-20 Robert Millan <rmh.grub@aybabtu.com>
29667
29668 * util/grub.d/00_header.in: Fix handling of locale_dir.
29669
02cf98ca
VS
296702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29671
29672 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
29673 as possible unifont location (Gentoo).
29674 Reported by: Alexander Brüning
29675
327dbcd7
VS
296762010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29677
29678 Don't try to generate lists for kernel.img.
29679
29680 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
29681 (pkglib_MODULES): Remove kernel.img.
29682 (kernel_img_EXPORTS): Removed.
29683 (kernel_img_RELOCATABLE): New variable.
29684 * conf/x86_64-efi.rmk: Likewise.
29685 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
29686
ca467290
VS
296872010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29688
29689 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
29690 grub_xasprintf or grub_snprintf.
29691 (grub_vsprintf): Likewise.
29692 (grub_snprintf): New proto.
29693 (grub_vsnprintf): Likewise.
29694 (grub_xasprintf): Likewise.
29695 (grub_xvasprintf): Likewise.
29696 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
29697 (grub_sprintf): Removed.
29698 (grub_vsnprintf): New function.
29699 (grub_snprintf): Likewise.
29700 (grub_xvasprintf): Likewise.
29701 (grub_xasprintf): Likewise.
29702 (grub_vsprintf): Renamed to ...
29703 (grub_vsnprintf_real): ...this. New argument max_len.
29704
aca655fd
BC
297052010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
29706
29707 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
29708 fix grub-script-check warning.
29709
7ee92c32
VS
297102010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29711
29712 * include/grub/font.h (grub_font_load): Fix prototype.
29713
f80927ca
VS
297142010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29715
29716 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
29717
119c50ea
VS
297182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29719
29720 * include/grub/x86_64/at_keyboard.h: New file.
29721
47d5f3c1
VS
297222010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29723
29724 * loader/mips/linux.c: Include missing grub/i18n.h.
29725
55ff5266
RM
297262009-12-20 Robert Millan <rmh.grub@aybabtu.com>
29727
29728 * normal/menu.c (notify_execution_failure): Clarify error message.
29729
c893cc87
RM
297302009-12-20 Robert Millan <rmh.grub@aybabtu.com>
29731
29732 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
29733 return value (and revert all return statements). Update users.
29734
917dd370
CW
297352010-01-20 Dan Merillat <debian@dan.merillat.org>
29736
29737 * kern/device.c (grub_device_iterate): Allocate new part_ent
29738 structure based on sizeof (*p) rather than sizeof (p->next), to
29739 account for structure padding.
29740
29741 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
29742 disk is NULL, which might happen for LVM physical volumes with no
29743 LVM signature.
29744
d4a4ee57
RM
297452009-12-20 Robert Millan <rmh.grub@aybabtu.com>
29746
29747 * loader/mips/linux.c (grub_cmd_initrd)
29748 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
29749
297502009-12-20 Robert Millan <rmh.grub@aybabtu.com>
29751
29752 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
29753 (grub_video_video_init, grub_video_bitmap_init)
29754 (grub_font_manager_init, grub_term_gfxterm_init)
29755 (grub_at_keyboard_init): New extern declarations.
29756 (grub_machine_init): Initialize gfxterm and at_keyboard.
29757
29758 * kern/main.c (grub_main): Revert grub_printf delay kludge.
29759
29760 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
29761 `gfxterm.mod' into core image.
29762
29763 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
29764 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29765 (kernel_img_FORMAT): Copy to ...
29766
29767 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
29768 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29769 (kernel_img_FORMAT): ... here, and ...
29770
29771 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
29772 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29773 (kernel_img_FORMAT): ... here.
29774
29775 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
29776 and input (at_keyboard) terminals in kernel.
29777 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
29778
29779 (pkglib_MODULES): Remove `pci.mod'.
29780 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
29781 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
29782 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
29783 (at_keyboard_mod_LDFLAGS): Remove variables.
29784
297852010-01-11 Felix Zielcke <fzielcke@z-51.de>
29786
29787 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
29788
297892009-12-10 Robert Millan <rmh.grub@aybabtu.com>
29790
29791 * include/grub/mips/libgcc.h: Only export symbols for functions
29792 that libgcc provides.
29793
297942009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
29795
29796 MIPS support.
29797
29798 * bus/bonito.c: New file.
29799 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
29800 GRUB_PCI_NUM_DEVICES.
29801 * term/i386/pc/serial.c: Move to ...
29802 * term/serial.c: ... here. All users updated.
29803 * util/i386/pc/grub-mkimage.c: Move to ...
29804 * util/grub-mkrawimage.c: ... here. All users updated.
29805 * term/i386/pc/at_keyboard.c: Move to ...
29806 * term/at_keyboard.c: ... here. All users updated.
29807 * conf/mips-qemu-mips.rmk: New file.
29808 * conf/mips-yeeloong.rmk: Likewise.
29809 * conf/mips.rmk: Likewise.
29810 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
29811 mipsel-qemu-mips.
29812 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
29813 to port addresses.
29814 (grub_ata_pciinit): Support CS5536.
29815 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
29816 * font/font_cmd.c (loadfont_command): Open file before passing it to
29817 grub_font_load.
29818 (pseudo_file_read): New function.
29819 (pseudo_file_close): Likewise.
29820 (pseudo_fs): New structure.
29821 (load_font_module): New function.
29822 (GRUB_MOD_INIT(font_manager)): Load embedded font.
29823 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
29824 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
29825 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
29826 * include/grub/i386/at_keyboard.h: Split into ...
29827 * include/grub/at_keyboard.h: ... this ...
29828 * include/grub/i386/at_keyboard.h: ... and this.
29829 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
29830 New prototype.
29831 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
29832 updated.
29833 (grub_elf64_size): Likewise.
29834 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
29835 filename.
29836 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
29837 * include/grub/i386/coreboot/serial.h: Rewritten.
29838 * include/grub/i386/ieee1275/serial.h: Include
29839 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
29840 * include/grub/i386/pc/serial.h: Moved from here ...
29841 * include/grub/serial.h: ... to here. All users updated.
29842 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
29843 (GRUB_PCI_NUM_BUS): Likewise.
29844 (GRUB_PCI_NUM_DEVICES): Likewise.
29845 (grub_pci_device_map_range): Add missing volatile keyword.
29846 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
29847 * include/grub/mips/at_keyboard.h: New file.
29848 * include/grub/mips/cache.h: Likewise.
29849 * include/grub/mips/io.h: Likewise.
29850 * include/grub/mips/kernel.h: Likewise.
29851 * include/grub/mips/libgcc.h: Likewise.
29852 * include/grub/mips/pci.h: Likewise.
29853 * include/grub/mips/qemu-mips/boot.h: Likewise.
29854 * include/grub/mips/qemu-mips/kernel.h: Likewise.
29855 * include/grub/mips/qemu-mips/loader.h: Likewise.
29856 * include/grub/mips/qemu-mips/memory.h: Likewise.
29857 * include/grub/mips/qemu-mips/serial.h: Likewise.
29858 * include/grub/mips/qemu-mips/time.h: Likewise.
29859 * include/grub/mips/relocator.h: Likewise.
29860 * include/grub/mips/time.h: Likewise.
29861 * include/grub/mips/types.h: Likewise.
29862 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
29863 * include/grub/mips/yeeloong/boot.h: Likewise.
29864 * include/grub/mips/yeeloong/kernel.h: Likewise.
29865 * include/grub/mips/yeeloong/loader.h: Likewise.
29866 * include/grub/mips/yeeloong/memory.h: Likewise.
29867 * include/grub/mips/yeeloong/pci.h: Likewise.
29868 * include/grub/mips/yeeloong/serial.h: Likewise.
29869 * include/grub/mips/yeeloong/time.h: Likewise.
29870 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
29871 * kern/elf.c (grub_elf32_size): New parameter. All users
29872 updated.
29873 (grub_elf64_size): Likewise.
29874 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
29875 Load modules before saying "Welcome to GRUB!".
29876 Call grub_refresh after saying "Welcome to GRUB!".
29877 * kern/mips/cache.S: New file.
29878 * kern/mips/cache_flush.S: Likewise.
29879 * kern/mips/dl.c: Likewise.
29880 * kern/mips/init.c: Likewise.
29881 * kern/mips/qemu-mips/init.c: Likewise.
29882 * kern/mips/startup.S: Likewise.
29883 * kern/mips/yeeloong/init.c: Likewise.
29884 * kern/term.c (grub_putcode): Handle NULL terminal.
29885 (grub_getcharwidth): Likewise.
29886 (grub_getkey): Likewise.
29887 (grub_checkkey): Likewise.
29888 (grub_getkeystatus): Likewise.
29889 (grub_getxy): Likewise.
29890 (grub_getwh): Likewise.
29891 (grub_gotoxy): Likewise.
29892 (grub_cls): Likewise.
29893 (grub_setcolorstate): Likewise.
29894 (grub_setcolor): Likewise.
29895 (grub_getcolor): Likewise.
29896 (grub_refresh): Likewise.
29897 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
29898 (write_jump): Add hatch nop.
29899 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
29900 * lib/mips/setjmp.S: New file.
29901 * loader/mips/linux.c: Likewise.
29902 * term/i386/pc/at_keyboard.c: Move from here ...
29903 * term/at_keyboard.c: ... to here.
29904 * term/i386/pc/serial.c: Moved from here ...
29905 * term/serial.c: ... to here. All users updated.
29906 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
29907 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
29908 (serial_translate_key_sequence): Avoid deadlock.
29909 (grub_serial_getkey): Handle backspace.
29910 (grub_serial_putchar): Fix newline handling.
29911 * util/i386/pc/grub-mkimage.c: Move from here ...
29912 * util/grub-mkrawimage.c: ... to here. All users updated.
29913 (generate_image): New parameters 'font_path' and 'format'.
29914 Support embedding font.
29915 Use grub_host_to_target* instead of grub_cpu_to_le*.
29916 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
29917 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
29918 (options): New option "--font".
29919 (usage): Likewise.
29920 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
29921 (main): Handle "--font".
29922 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
29923 (grub_virtual_screen_setup): Set bg_color_display.
29924 (redraw_screen_rect): Use bg_color_display instead of incorrect
29925 bg_color.
29926 (grub_gfxterm_cls): Likewise.
29927 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
29928 Support embedding config file.
29929 (add_segments): Likewise.
29930 (options): New option "--config".
29931 (main): Handle "--config".
29932 * video/sm712.c: New file.
29933
25c2b5b3
RM
299342010-01-18 Robert Millan <rmh.grub@aybabtu.com>
29935
29936 Fix parallel builds.
29937
29938 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
29939 font.c depend on ascii.h).
29940
299412010-01-12 Carles Pina i Estany <carles@pina.cat>
29942
29943 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
29944
299452010-01-11 Carles Pina i Estany <carles@pina.cat>
29946
29947 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
29948 By default: disabled.
29949 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
29950 parameter.
29951
299522010-01-10 Carles Pina i Estany <carles@pina.cat>
29953
29954 * font/font.c: Update copyright years.
29955 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
29956
299572010-01-10 Carles Pina i Estany <carles@pina.cat>
29958
29959 * font/font.c: Include `ascii.h'.
29960 (ASCII_BITMAP_SIZE): New macro.
29961 (ascii_font_glyph): Define.
29962 (ascii_glyph_lookup): New function.
29963 (grub_font_get_string_width): Change comment. If glyph not found, use
29964 ascii_glyph_lookup.
29965 (grub_font_get_glyph_with_fallback): If glyph not available returns
29966 ascii_glyph_lookup.
29967 * util/grub-mkfont.c (file_formats): New enum.
29968 (options): Add `ascii-bitmaps' new option.
29969 (usage): Add `asii-bitmaps' new option.
29970 (write_font_ascii_bitmap): New function.
29971 (write_font): Rename to ...
29972 (write_font_p2): ... this. Remove print_glyphs call.
29973 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
29974 used. Call print_glyphs.
29975 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
29976
299772010-01-14 Robert Millan <rmh.grub@aybabtu.com>
29978
29979 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
29980 (grub_bin2h_SOURCES): New variable.
29981 * util/bin2h.c: New file.
29982
915fc1b8
VS
299832010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29984
29985 * include/multiboot.h: Resynced with spec.
29986 * include/multiboot2.h: Likewise.
29987 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
29988 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
29989
9444b678
RM
299902010-01-18 Robert Millan <rmh.grub@aybabtu.com>
29991
29992 * include/grub/term.h (grub_term_register_input,
29993 grub_term_register_output): Check return of terminal init()
29994 routines, and abort if errors are raised.
29995
29996 * commands/terminal.c: Update copyright year.
29997
cba98e8d
RM
299982010-01-18 Robert Millan <rmh.grub@aybabtu.com>
29999
30000 * commands/terminal.c (grub_cmd_terminal_input)
30001 (grub_cmd_terminal_output): Check return of terminal init()
30002 routines, and abort if errors are raised.
30003
6f7db5d6
VS
300042010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30005
30006 * include/grub/i386/bsd.h: Fix include pathes.
30007
262bff8d
VS
300082010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
30009
30010 Add missing *BSD copyright headers.
30011
30012 * include/grub/aout.h: Add BSD licence.
30013 * include/grub/i386/bsd.h: Parts under different licences moved to ...
30014 * include/grub/i386/freebsd_linker.h: ... here,
30015 * include/grub/i386/freebsd_reboot.h: ... here,
30016 * include/grub/i386/netbsd_bootinfo.h: ... here,
30017 * include/grub/i386/netbsd_reboot.h: ... here,
30018 * include/grub/i386/openbsd_bootarg.h: ... here,
30019 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
30020 licence to each file.
30021
b2cab848
RM
300222010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30023
30024 * acinclude.m4: Remove `nop' assembly instruction; it's not
30025 implemented by all architectures.
30026
2cb6be4b
RM
300272010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30028
30029 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
30030 ELILO. This is no longer necessary.
30031
a2eaee15
BC
300322010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
30033
30034 Added new tool, grub-scrit-check to verify grub.cfg syntax.
30035
30036 * util/grub-script-check.c: grub-script-check tool.
30037 * conf/common.rmk: Make rules for grub-script-check.
30038
88d17012
RM
300392010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30040
30041 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
30042 spotting it back in 2008. Shame on me for forgetting he did.
30043
30044 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
30045
8040619d
RM
300462010-01-18 Robert Millan <rmh.grub@aybabtu.com>
30047
30048 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
30049 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
30050 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
30051 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
30052 (GRUB_VIDEO_TYPE_EFI): Rename to ...
30053 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
30054
a0c2a0f6
RM
300552010-01-17 Robert Millan <rmh.grub@aybabtu.com>
30056
30057 * include/grub/test.h: Add license header.
30058 * tests/example_functional_test.c: Likewise.
30059 * tests/example_unit_test.c: Likewise.
30060 * tests/lib/functional_test.c: Likewise.
30061 * tests/lib/test.c: Likewise.
30062 * tests/lib/unit_test.c: Likewise.
30063
b0b13907
VS
300642010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
30065
30066 Use flag-based instead of hook-based video mode selection and "auto"
30067 keyword.
30068
30069 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
30070 (grub_video_set_mode): Changed prototype. All users updated.
30071 (grub_video_check_mode_flag): New inline function.
30072 * video/video.c (parse_modespec): New function.
30073 (grub_video_set_mode): Parse flags and keywords.
30074
ea379330 300752010-01-17 Carles Pina i Estany <carles@pina.cat>
30076
30077 * util/misc.c (grub_util_info): Fix the order of the parameters in a
30078 fprintf call.
30079
e15c215e
FZ
300802010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
30081
30082 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
30083
409ae1c9 300842010-01-16 Carles Pina i Estany <carles@pina.cat>
30085
30086 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
30087 string.
30088 * util/grub-emu.c (usage): Likewise.
30089 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
30090 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30091 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30092 * util/i386/pc/grub-setup.c (usage): Likewise.
30093
70a14d3d 300942010-01-16 Carles Pina i Estany <carles@pina.cat>
30095
30096 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
30097 the message.
30098 (grub_util_info): Likewise.
30099 (grub_util_error): Likewise.
30100 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
30101 and/or new lines in `grub_util_warna', `grub_util_info',
30102 `grub_util_error' calls.
30103 * util/getroot.c: Likewise.
30104 * util/grub-editenv.c: Likewise.
30105 * util/grub-emu.c: Likewise.
30106 * util/grub-fstest.c: Likewise.
30107 * util/grub-mkdevicemap.c: Likewise.
30108 * util/grub-mkfont.c: Likewise.
30109 * util/grub-mkpasswd-pbkdf2.c: Likewise.
30110 * util/grub-mkrelpath.c: Likewise.
30111 * util/grub-pe2elf.c: Likewise.
30112 * util/grub-probe.c: Likewise.
30113 * util/hostdisk.c: Likewise.
30114 * util/i386/efi/grub-mkimage.c: Likewise.
30115 * util/i386/pc/grub-mkimage.c: Likewise.
30116 * util/i386/pc/grub-setup.c: Likewise.
30117 * util/ieee1275/ofpath.c: Likewise.
30118 * util/mkisofs/eltorito.c: Likewise.
30119 * util/mkisofs/rock.c: Likewise.
30120 * util/mkisofs/write.c: Likewise.
30121 * util/raid.c: Likewise.
30122 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30123 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30124
a0b766fc
VS
301252010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30126
30127 Enable multiboot on non-pc.
30128
30129 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
30130 multiboot.mod and multiboot2.mod to ...
30131 * conf/i386.rmk (pkglib_MODULES): ... here.
30132 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
30133 Moved to ...
30134 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
30135 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
30136 Moved to ...
30137 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
30138 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
30139 Moved to ...
30140 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
30141 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
30142 Moved to ...
30143 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
30144 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
30145 relocator.mod.
30146 (ata_mod_SOURCES): Removed.
30147 (ata_mod_CFLAGS): Likewise.
30148 (ata_mod_LDFLAGS): Likewise.
30149 (relocator_mod_SOURCES): Removed.
30150 (relocator_mod_CFLAGS): Likewise.
30151 (relocator_mod_ASFLAGS): Likewise.
30152 (relocator_mod_LDFLAGS): Likewise.
30153 Include i386.mk.
30154 * include/grub/x86_64/multiboot.h: New file.
30155 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
30156 Terminate EFI.
30157
884ade56
VS
301582010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30159
30160 Video multiboot support.
30161
30162 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
30163 New prototype.
30164 * include/multiboot.h: Resynced with multiboot specification.
30165 * include/multiboot2.h: Likewise.
30166 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
30167 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
30168 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
30169 (HAS_VGA_TEXT): Likewise.
30170 (accepts_video): New variable.
30171 (grub_multiboot_set_accepts_video): New function.
30172 (grub_multiboot_get_mbi_size): Account for video structures.
30173 (set_video_mode): New function.
30174 (retrieve_video_parameters): Likewise.
30175 (grub_multiboot_make_mbi): Fill video fields.
30176
0d90e8a6
VS
301772010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
30178
30179 Video driver ids.
30180
30181 * include/grub/video.h (grub_video_driver_id): New type.
30182 (grub_video_adapter): New member 'id'. All users updated.
30183 (grub_video_get_driver_id): New proto.
30184 * video/video.c (grub_video_get_driver_id): New function.
30185
5c71db1b 301862010-01-14 Carles Pina i Estany <carles@pina.cat>
30187
30188 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
30189 `var=val'.
30190
cca15b52 301912010-01-14 Carles Pina i Estany <carles@pina.cat>
30192
30193 * normal/cmdline.c (print_completion): Gettextizze.
30194
c586fbb2 301952001-01-14 Carles Pina i Estany <carles@pina.cat>
30196
30197 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
30198
ba2f6848 301992010-01-14 Carles Pina i Estany <carles@pina.cat>
30200
30201 * gettext/gettext.c (grub_gettext_translate): Push and pop
30202 grub_errno.
30203 (grub_gettext_delete_list): Change comment style.
30204 * kern/err.c (grub_error): Gettextizze.
30205 (grub_fatal): Gettextizze.
30206
0a46429a
RM
302072010-01-14 Robert Millan <rmh.grub@aybabtu.com>
30208
30209 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
30210 (grub_linux16_real_boot): ... this.
30211 * kern/i386/loader.S: Likewise.
30212 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
30213 (grub_linux16_boot): New function. Switches to text mode and calls
30214 grub_linux16_real_boot().
30215
30216 * loader/i386/bsd.c: Include `<grub/video.h>'.
30217 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
30218 text mode before calling grub_unix_real_boot().
30219
30220 * loader/i386/multiboot.c: Include `<grub/video.h>'.
30221 (grub_multiboot_boot): Switch to text mode before calling
30222 grub_relocator32_boot().
30223
30224 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
30225 (grub_chainloader_boot): Switch to text mode before calling
30226 grub_chainloader_real_boot().
30227
d6f93a66
RM
302282010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
302292010-01-05 Colin Watson <cjwatson@ubuntu.com>
30230
30231 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
30232 non-empty value.
30233
302342010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
302352010-01-05 Colin Watson <cjwatson@ubuntu.com>
30236
30237 * util/grub.d/00_header.in: Define a "savedefault" function for use
30238 in menu entries.
30239 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
30240
302412010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
302422010-01-05 Colin Watson <cjwatson@ubuntu.com>
30243
30244 * util/grub-mkconfig_lib.in (save_default_entry): Only set
30245 saved_entry if boot_once is unset.
30246 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
30247 previous saved entry (i.e. grub-reboot).
30248
302492009-12-08 Colin Watson <cjwatson@ubuntu.com>
30250
30251 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
30252
302532009-12-08 Colin Watson <cjwatson@ubuntu.com>
30254
30255 * util/grub.d/00_header.in: Use `set var=val' rather than plain
30256 `var=val'.
30257 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
30258
302592009-12-08 Colin Watson <cjwatson@ubuntu.com>
30260
30261 * util/grub-reboot.in: Fix --version output.
30262 * util/grub-set-default.in: Likewise.
30263
302642009-12-08 Colin Watson <cjwatson@ubuntu.com>
30265
30266 * util/grub.d/00_header.in: Silently ignore zero-sized environment
30267 blocks.
30268
302692009-12-08 Colin Watson <cjwatson@ubuntu.com>
30270
30271 * util/grub.d/00_header.in: Quote the value assigned to `default',
30272 in case it contains spaces.
30273
302742009-12-08 Colin Watson <cjwatson@ubuntu.com>
30275
30276 * util/grub.d/30_os-prober.in: Fix merge error that moved a
30277 `save_default_entry' call from the macosx case to the linux case.
30278
302792009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
302802009-10-25 Colin Watson <cjwatson@ubuntu.com>
30281
30282 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
30283 in `chosen' environment variable.
30284 * normal/menu_text.c (get_entry_number): Check if the variable
30285 matches the title of a menu entry.
30286 (run_menu): Pass menu to get_entry_number.
30287
30288 * util/grub-reboot.in: New file.
30289 * util/grub-set-default.in: New file.
30290 * conf/common.rmk (grub-reboot): New utility.
30291 (grub-set-default): New utility.
30292
30293 * util/grub-mkconfig_lib.in (save_default_entry): New function.
30294 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
30295 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
30296 move it to `saved_entry' for the next boot. Load environment on
30297 initialisation.
30298 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
30299 * util/grub.d/10_hurd.in: Likewise.
30300 * util/grub.d/10_linux.in (linux_entry): Likewise.
30301 * util/grub.d/10_windows.in: Likewise.
30302 * util/grub.d/30_os-prober.in: Likewise.
30303
30304 * util/grub-install.in: Create environment block.
30305 * util/i386/efi/grub-install.in: Likewise.
30306 * util/ieee1275/grub-install.in: Likewise.
30307 * util/sparc64/ieee1275/grub-install.in: Likewise.
30308
0934d184
BC
303092010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
30310
30311 Unit testing framework for GRUB.
30312
30313 * Makefile.in: Test framework build rules for 'make check'.
30314 * conf/tests.rmk: Build rules for individual tests and framework.
30315
30316 * include/grub/test.h: Header file for whitebox tests.
30317 * tests/lib/functional_test.c: Framework support for whitebox
30318 functional tests.
30319 * tests/lib/test.c: Common whitebox testing code for unit and
30320 functional tests.
30321 * tests/lib/unit_test.c: Framework support for whitebox unit
30322 tests.
30323
30324 * tests/util/grub-shell-tester.in: Support utility for grub-script
30325 tests.
30326 * tests/util/grub-shell.in: Utility to execute grub-script
30327 commands in a Qemu instance.
30328
30329 * tests/example_functional_test.c: Example whitebox functional
30330 test.
30331 * tests/example_grub_script_test.in: Example grub-script test.
30332 * tests/example_scripted_test.in: Example scripted test.
30333 * tests/example_unit_test.c: Example whitebox unit test.
30334
9c4ffeeb
VS
303352010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
30336
30337 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
30338 Add loader/i386/multiboot_mbi.c.
30339 (multiboot2_mod_SOURCES): Likewise.
30340 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
30341 (multiboot2_mod_SOURCES): Likewise.
30342 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
30343 (grub_multiboot_make_mbi): Likewise.
30344 (grub_multiboot_free_mbi): Likewise.
30345 (grub_multiboot_init_mbi): Likewise.
30346 (grub_multiboot_add_module): Likewise.
30347 (grub_multiboot_set_bootdev): Likewise.
30348 * loader/i386/multiboot.c (mbi): Removed.
30349 (mbi_dest): Likewise.
30350 (alloc_mbi): New variable.
30351 (grub_multiboot_payload_size): Removed. All users updated.
30352 (grub_multiboot_pure_size): New variable.
30353 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
30354 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
30355 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
30356 (grub_fill_multiboot_mmap): Likewise.
30357 (grub_multiboot_get_bootdev): Likewise.
30358 (grub_multiboot): Use multiboot_mbi functions.
30359 * loader/i386/multiboot_mbi.c: New file.
30360
17383dfe
VS
303612010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
30362
30363 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
30364 it would result in module crash.
30365
c1f28820
VS
303662010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
30367
30368 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
30369 (grub_ofconsole_getwh): Split to ...
30370 (grub_ofconsole_getwh): ... this.
30371 (grub_ofconsole_dimensions): ...and this.
30372 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
30373
58655a16
RM
303742010-01-13 Robert Millan <rmh.grub@aybabtu.com>
30375
30376 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
30377
10891398
VS
303782010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
30379
30380 * loader/i386/pc/multiboot2.c: Removed stalled file.
30381
0b8a223c
VS
303822010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
30383
30384 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
30385 Reported by: Grégoire Sutre
30386
92ab12b0
RM
303872010-01-11 Robert Millan <rmh.grub@aybabtu.com>
30388
30389 * util/misc.c (canonicalize_file_name): New function.
30390 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
30391 instead of realpath().
30392
a788afb6
CW
303932010-01-11 Colin Watson <cjwatson@ubuntu.com>
30394
30395 * util/grub-install.in (usage): Clarify meaning of --root-directory,
30396 and make it clearer that it's optional. Based on confusion
30397 witnessed on IRC.
30398
ffa8e3d2
VS
303992010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
30400
30401 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
30402 in premature implicit newline.
30403
e9060a9d
VS
304042010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
30405
30406 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
30407 which resulted in garbled command line at the end of screen.
30408
f0d0c0b7
RM
304092010-01-10 Robert Millan <rmh.grub@aybabtu.com>
30410
30411 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
30412 initialization with similar approach as with other Linux loaders.
30413
0e60bae7
RM
304142010-01-10 Robert Millan <rmh.grub@aybabtu.com>
30415
30416 Fix i386-ieee1275 build.
30417
30418 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
30419 and grub_term_height() for video_{width,height} initialization.
30420
304212010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
30422
30423 Fix grub-emu build.
30424
30425 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
30426
cdb3f378
RM
304272010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
304282010-01-09 Robert Millan <rmh.grub@aybabtu.com>
30429
30430 Support for multiple terminals.
30431
30432 * Makefile.in (pkglib_DATA): terminal.lst.
30433 (terminal.lst): New target.
30434 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
30435 (GRUB_MOD_INIT(handler)): Likewise.
30436 (GRUB_MOD_FINI(handler)): Likewise.
30437 * commands/help.c (grub_cmd_help): Handle multiple terminals.
30438 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
30439 * commands/sleep.c (do_print): Use grub_term_restore_pos.
30440 (grub_cmd_sleep): Use grub_term_save_pos.
30441 * commands/terminal.c: New file.
30442 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
30443 commands/terminal.c and lib/charset.c.
30444 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
30445 (pkglib_MODULES): Add terminal.mod.
30446 (terminal_mod_SOURCES): New variable.
30447 (terminal_mod_CFLAGS): Likewise.
30448 (terminal_mod_LDFLAGS): Likewise.
30449 * genhandlerlist.sh: Don't handle terminals.
30450 * genmk.rb: Generate terminal-*.lst.
30451 * genterminallist.sh: New file.
30452 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
30453 (grub_is_valid_utf8): Likewise.
30454 (grub_utf8_to_ucs4_alloc): Likewise.
30455 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
30456 (grub_menu_register_viewer): Changed argument.
30457 (grub_menu_try_text): New proto.
30458 (grub_gfxmenu_try_hook): New declaration.
30459 * include/grub/normal.h (grub_normal_exit_level): New declaration.
30460 (grub_menu_init_page): Additional argument term.
30461 (grub_normal_init_page): Likewise.
30462 (grub_cmdline_get): Arguments simplified.
30463 (grub_utf8_to_ucs4_alloc): Removed.
30464 (grub_print_ucs4): Additional argument term.
30465 (grub_getstringwidth): Likewise.
30466 (grub_print_message_indented): Likewise.
30467 (grub_menu_text_register_instances): New proto.
30468 (grub_show_menu): Likewise.
30469 (read_terminal_list): Likewise.
30470 (grub_set_more): Likewise.
30471 * include/grub/parser.h: Include handler.h.
30472 * include/grub/reader.h: Rewritten.
30473 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
30474 (GRUB_TERM_WIDTH): Changed to function.
30475 (GRUB_TERM_HEIGHT): Likewise.
30476 (GRUB_TERM_BORDER_WIDTH): Likewise.
30477 (GRUB_TERM_BORDER_HEIGHT): Likewise.
30478 (GRUB_TERM_NUM_ENTRIES): Likewise.
30479 (GRUB_TERM_ENTRY_WIDTH): Likewise.
30480 (GRUB_TERM_CURSOR_X): Likewise.
30481 (grub_term_input_class): Likewise.
30482 (grub_term_output_class): Likewise.
30483 (grub_term_outputs_disabled): New declaration.
30484 (grub_term_inputs_disabled): Likewise.
30485 (grub_term_outputs): Likewise.
30486 (grub_term_inputs): Likewise.
30487 (grub_term_register_input): Rewritten.
30488 (grub_term_register_output): Likewise.
30489 (grub_term_unregister_input): Likewise.
30490 (grub_term_unregister_output): Likewise.
30491 (FOR_ACTIVE_TERM_INPUTS): New macro.
30492 (FOR_DISABLED_TERM_INPUTS): Likewise.
30493 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
30494 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
30495 * include/grub/terminfo.h: Add oterm argument to all protypes.
30496 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
30497 Use grub_rescue_run.
30498 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
30499 All users updated.
30500 * kern/reader.c: Removed. All users updated.
30501 * kern/rescue_reader.c (grub_rescue_init): Removed.
30502 (grub_rescue_reader): Likewise.
30503 (grub_register_rescue_reader): Likewise.
30504 (grub_rescue_run): New function based on kern/reader.c.
30505 * kern/term.c: Adapted for multiterm.
30506 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
30507 (grub_is_valid_utf8): Likewise.
30508 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
30509 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
30510 right terminal.
30511 * loader/i386/linux.c (grub_linux_boot): Likewise.
30512 * normal/auth.c (grub_username_get): New function.
30513 (grub_auth_check_authentication): Use grub_username_get.
30514 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
30515 * normal/color.c: Adapt for multiterm.
30516 * normal/main.c (read_config_file): Don't use grub_reader_loop.
30517 (grub_normal_init_page): Additional argument term.
30518 (read_lists): Call read_terminal_lists.
30519 (grub_enter_normal_mode): Call grub_cmdline_run.
30520 Handle grub_normal_exit_level.
30521 (grub_cmd_normal): Make reentrant.
30522 (grub_cmd_normal_exit): New function.
30523 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
30524 * normal/menu.c: Adapt for multiterm.
30525 * normal/menu_entry.c: Likewise.
30526 * normal/menu_text.c: Likewise.
30527 * normal/menu_viewer.c: Removed. All users updated.
30528 * normal/term.c: New file.
30529 * util/console.c: Change order of includes to workaround a bug in
30530 ncurses headers.
30531 * term/terminfo.c: New argument oterm on all exported functions.
30532 All users updated.
30533 * util/grub-editenv.c (grub_term_input_class): Removed.
30534 (grub_term_output_class): Likewise.
30535
1a064917
RM
305362010-01-09 Robert Millan <rmh.grub@aybabtu.com>
30537
30538 Make loader output a bit more user-friendly.
30539
30540 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
30541 is being loaded. Likewise for the Hurd.
30542
30543 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
30544 that kernel of FreeBSD ${version} is being loaded.
30545
30546 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
30547 grub_dprintf().
30548 (grub_cmd_initrd): Likewise.
30549 * util/grub.d/10_linux.in (linux_entry): Print message indicating
30550 that Linux ${version} is being loaded. Likewise for initrd.
30551
5ce0a83a 305522010-01-09 Carles Pina i Estany <carles@pina.cat>
30553
30554 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
30555
809bbfeb 305562010-01-08 Carles Pina i Estany <carles@pina.cat>
30557
30558 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
30559 (GRUB_MOD_INIT): Gettextizze.
30560 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
30561 (GRUB_MOD_INIT): Gettextizze.
30562 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
30563 (grub_cmd_linux): Capitalise Linux.
30564 (GRUB_MOD_INIT): Gettextizze.
30565 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
30566 (grub_cmd_linux): Capitalise Linux.
30567 (GRUB_MOD_INIT): Gettextizze.
30568 * loader/i386/linux.c: Include `<grub/i18n.h>'.
30569 (grub_cmd_linux): Capitalise Linux.
30570 (GRUB_MOD_INIT): Gettextizze.
30571 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
30572 (GRUB_MOD_INIT): Gettextizze.
30573 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
30574 (grub_cmd_linux): Capitalise Linux.
30575 (GRUB_MOD_INIT): Gettextizze.
30576 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
30577 (grub_cpu_xnu_init): Gettextizze.
30578 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
30579 (GRUB_MOD_INIT): Gettextizze.
30580 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
30581 (GRUB_MOD_INIT): Gettextizze.
30582 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
30583 (grub_linux_load64): Capitalise Linux.
30584 (GRUB_MOD_INIT): Gettextizze.
30585 * loader/xnu.c: Include `<grub/i18n.h>'.
30586 (GRUB_MOD_INIT): Gettextizze.
30587 * po/POTFILES: Add `loader/efi/appleloader.c',
30588 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
30589 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
30590 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
30591 `loader/i386/xnu.c', `loader/multiboot_loader.c',
30592 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
30593 and `loader/xnu.c'.
30594
b394b2ca
RM
305952010-01-08 Robert Millan <rmh.grub@aybabtu.com>
30596
30597 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
30598
305992010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
30600
30601 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
30602 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
30603 * util/mkisofs/mkisofs.c (main): Readjust --version output.
30604
bc8b32b3
RM
306052010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30606
30607 Reset Multiboot 2 support. New loader implements the draft in
30608 /branches/multiboot2 and shares as much code as possible with the
30609 production Multiboot 1 implementation.
30610
30611 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
30612 * loader/multiboot2.c: Likewise.
30613 * loader/i386/multiboot_helper.S: Likewise.
30614 * include/multiboot2.h: Replace with latest version from the draft
30615 in /branches/multiboot2.
30616
30617 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
30618 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
30619 and `loader/multiboot2.c'.
30620 (pkglib_MODULES): Add `multiboot2.mod'.
30621 (multiboot2_mod_SOURCES): New variable.
30622 (multiboot2_mod_LDFLAGS): Likewise.
30623 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
30624
30625 * conf/i386-pc.rmk: Likewise.
30626
30627 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
30628 (multiboot_mod_SOURCES): Remove variable.
30629 (multiboot_mod_LDFLAGS): Likewise.
30630 (multiboot_mod_CFLAGS): Likewise.
30631
30632 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
30633 `<multiboot2.h>' instead of `<multiboot.h>'.
30634 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
30635 (MULTIBOOT_HEADER_MAGIC): New macros.
30636
30637 * loader/multiboot_loader.c (module_version_status): Remove variable.
30638 (find_multi_boot2_header): Remove function.
30639 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
30640 logic. Always check for the Multiboot version we're compiling for.
30641 (grub_cmd_module_loader): Likewise.
30642 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
30643 command instead of `multiboot'.
30644
5d2c52b8
RM
306452010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30646
30647 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
30648 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
30649 all users.
30650
53108d92
RM
306512010-01-07 Robert Millan <rmh.grub@aybabtu.com>
306522010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
30653
30654 Fix breakage introduced with previous commit.
30655
30656 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
30657 commands.
30658 * normal/handler.c (read_handler_list): Revert part of previous commit
30659 affecting this file.
30660 * normal/main.c (read_lists): Move read_handler_list() call back to ...
30661 (grub_normal_execute): ... here.
30662
e2e936b2
RM
306632010-01-07 Robert Millan <rmh.grub@aybabtu.com>
30664
30665 Merge prefix-redefinition-fix branch.
30666
30667 * normal/autofs.c (read_fs_list): Make function capable of being
30668 run multiple times, gracefuly replacing the previous data
30669 structures.
30670 * normal/dyncmd.c (read_command_list): Likewise.
30671 * normal/handler.c (read_handler_list): Likewise.
30672 * normal/main.c (read_lists): New function. Calls all the
30673 list reading functions.
30674 (grub_normal_execute): Use read_lists() instead of calling all
30675 list reading functions explicitly. Register read_lists() as a
30676 variable hook attached to ${prefix}.
30677
607a3701
VS
306782010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
30679
30680 Merge crypto branch.
30681
30682 * Makefile.in (pkglib_DATA): Add crypto.lst.
30683 (crypto.lst): New target.
30684 * commands/hashsum.c: New file.
30685 * commands/password.c (check_password): Use grub_crypto_memcmp.
30686 * commands/password_pbkdf2.c: New file.
30687 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
30688 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
30689 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
30690 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
30691 -I$(srcdir)/lib/libgcrypt_wrap.
30692 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
30693 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
30694 password_pbkdf2.mod.
30695 (crypto_mod_SOURCES): New variable.
30696 (crypto_mod_CFLAGS): Likewise.
30697 (crypto_mod_LDFLAGS): Likewise.
30698 (hashsum_mod_SOURCES): New variable.
30699 (hashsum_mod_CFLAGS): Likewise.
30700 (hashsum_mod_LDFLAGS): Likewise.
30701 (pbkdf2_mod_SOURCES): New variable.
30702 (pbkdf2_mod_CFLAGS): Likewise.
30703 (pbkdf2_mod_LDFLAGS): Likewise.
30704 (password_pbkdf2_mod_SOURCES): New variable.
30705 (password_pbkdf2_mod_CFLAGS): Likewise.
30706 (password_pbkdf2_mod_LDFLAGS): Likewise.
30707 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
30708 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
30709 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
30710 Include conf/gcry.rmk.
30711 * include/grub/auth.h: Rewritten.
30712 * include/grub/crypto.h: New file.
30713 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
30714 * include/grub/normal.h (read_crypto_list): New prototype.
30715 * lib/crypto.c: New file.
30716 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
30717 * lib/pbkdf2.c: Likewise.
30718 * normal/auth.c (grub_auth_strcmp): Removed.
30719 (grub_iswordseparator): Likewise.
30720 (grub_auth_strword): Likewise.
30721 (is_authenticated): Use grub_strword.
30722 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
30723 and grub_strword. Pass entered password to authentication callback.
30724 * normal/crypto.c: New file.
30725 * normal/main.c: Call read_crypto_list.
30726 * util/grub-mkpasswd-pbkdf2.c: New file.
30727 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
30728
42841caa
VS
307292010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
30730
30731 Fix descent and ascent calculation.
30732
30733 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
30734 (options): New option "asce".
30735 (usage): Likewise.
30736 (add_char): Ignore invalid glyphs for descent calculation.
30737 Calculate ascent from actual content.
30738 (print_glyphs): Use 'asce'.
30739 (write_font): Likewise. Allow ascent override.
30740 (main): Handle "asce" option.
30741
e7730de7 307422010-01-06 Carles Pina i Estany <carles@pina.cat>
30743
30744 * kern/err.c: Include `<grub/i18n.h>'.
30745 (grub_print_error): Add full stop. Gettextizze.
30746 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
30747 (grub_bsd_load_elf): Capitalise ELF.
30748 (grub_cmd_freebsd_loadenv): Add `s' in error string.
30749 (grub_cmd_freebsd_module): Likewise.
30750 (grub_cmd_freebsd_module_elf): Likewise.
30751 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
30752
40e3a41f 307532010-01-06 Carles Pina i Estany <carles@pina.cat>
30754
30755 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
30756 * commands/search_file.c (HELP_MESSAGE): New macro.
30757 * commands/search_label.c (HELP_MESSAGE): Likewise.
30758 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
30759 * po/POTFILES: Add `commands/search_file.c',
30760 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
30761 `commands/search.c'.
30762
83507e68
RM
307632010-01-05 Robert Millan <rmh.grub@aybabtu.com>
30764
30765 * config.rpath: Update from Gnulib.
30766
465c787b
YB
307672010-01-05 Yves Blusseau <blusseau@zetam.org>
30768
30769 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
30770
6581dd3a
YB
307712010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
30772
30773 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
30774
3bff18c5
CW
307752010-01-05 Colin Watson <cjwatson@ubuntu.com>
30776
30777 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
30778 arguments to fread so that we get a return value in bytes, rather
30779 than something that will normally be rounded down to 0.
30780 Adjust error handling to avoid producing garbage when size_t is not
30781 the same size as long long.
30782
a1368118
CW
307832010-01-05 Colin Watson <cjwatson@ubuntu.com>
30784
30785 * util/mkisofs/write.c (padblock_write): Check return value of
30786 fread.
30787
7c302978
RM
307882010-01-05 Robert Millan <rmh.grub@aybabtu.com>
30789
30790 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
30791 floppy images now.
30792
30793 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
30794
e33ace06
RM
307952010-01-04 Robert Millan <rmh.grub@aybabtu.com>
30796
30797 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
30798 instead of manual alignment.
30799 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
30800 verbose). Avoid attempts to read past end of the device
30801 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
30802 but GRUB_DISK_CACHE_SIZE may exceed that).
30803
4b856776
RM
308042010-01-04 Robert Millan <rmh.grub@aybabtu.com>
30805
30806 * commands/crc.c (grub_cmd_crc): Abort on read errors.
30807 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
30808 it to upper layer.
30809
52c2d97f
VS
308102010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
30811
30812 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
30813 New constant.
30814 (grub_efi_piwg_device_path): New structure
30815 (grub_efi_piwg_device_path_t): New type.
30816 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
30817 (devpath_1): Transform to a structure. All users updated.
30818 (devpath_2): Likewise.
30819 (devpath_3): Likewise.
30820 (devpath_4): Likewise.
30821 (devpath_5): Likewise.
30822
98ff6a54
VS
308232010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
30824
30825 * loader/efi/appleloader.c: Restored. Update all users.
30826
3a73dcb6
RM
308272010-01-03 Robert Millan <rmh.grub@aybabtu.com>
30828
30829 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
30830
30831 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
30832 (struct boot_blocklist): Move from here ...
30833 * include/grub/i386/pc/boot.h [ASM_FILE]
30834 (struct grub_boot_blocklist): ... to here. Update all users.
30835 (setup): Only initialize `start' member of `first_block'
30836 structure. Add assert() calls to verify the other members.
30837
30838 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
30839 (generate_image): Fix broken blocklist length initialization.
30840 Add assert() call to verify blocklist `segment' field.
30841
ab0eeb0c
RM
308422010-01-03 Robert Millan <rmh.grub@aybabtu.com>
30843
30844 * loader/efi/appleloader.c: Remove. Update all users.
30845
58bc8bd5
RM
308462010-01-03 Robert Millan <rmh.grub@aybabtu.com>
30847
30848 * boot/i386/pc/boot.S: Update copyright year.
30849 * boot/i386/pc/cdboot.S: Likewise.
30850 * boot/i386/pc/diskboot.S: Likewise.
30851 * boot/i386/pc/lnxboot.S: Likewise.
30852 * boot/i386/pc/pxeboot.S: Likewise.
30853 * bus/pci.c: Likewise.
30854 * commands/cmp.c: Likewise.
30855 * commands/help.c: Likewise.
30856 * commands/hexdump.c: Likewise.
30857 * commands/i386/pc/halt.c: Likewise.
30858 * commands/i386/pc/play.c: Likewise.
30859 * commands/i386/pc/vbeinfo.c: Likewise.
30860 * commands/ls.c: Likewise.
30861 * commands/test.c: Likewise.
30862 * disk/dmraid_nvidia.c: Likewise.
30863 * disk/i386/pc/biosdisk.c: Likewise.
30864 * disk/ieee1275/nand.c: Likewise.
30865 * disk/ieee1275/ofdisk.c: Likewise.
30866 * disk/lvm.c: Likewise.
30867 * disk/raid.c: Likewise.
30868 * disk/raid6_recover.c: Likewise.
30869 * disk/scsi.c: Likewise.
30870 * fs/affs.c: Likewise.
30871 * fs/cpio.c: Likewise.
30872 * fs/ext2.c: Likewise.
30873 * fs/hfs.c: Likewise.
30874 * fs/iso9660.c: Likewise.
30875 * fs/ntfs.c: Likewise.
30876 * fs/sfs.c: Likewise.
30877 * fs/udf.c: Likewise.
30878 * fs/ufs.c: Likewise.
30879 * fs/xfs.c: Likewise.
30880 * gencmdlist.sh: Likewise.
30881 * genmk.rb: Likewise.
30882 * include/grub/disk.h: Likewise.
30883 * include/grub/efi/api.h: Likewise.
30884 * include/grub/efi/efi.h: Likewise.
30885 * include/grub/efi/pe32.h: Likewise.
30886 * include/grub/elf.h: Likewise.
30887 * include/grub/fs.h: Likewise.
30888 * include/grub/i386/at_keyboard.h: Likewise.
30889 * include/grub/i386/pc/memory.h: Likewise.
30890 * include/grub/i386/pc/vbe.h: Likewise.
30891 * include/grub/i386/pci.h: Likewise.
30892 * include/grub/i386/tsc.h: Likewise.
30893 * include/grub/ieee1275/ieee1275.h: Likewise.
30894 * include/grub/ntfs.h: Likewise.
30895 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
30896 * include/grub/sparc64/libgcc.h: Likewise.
30897 * include/grub/symbol.h: Likewise.
30898 * include/grub/types.h: Likewise.
30899 * include/multiboot2.h: Likewise.
30900 * io/gzio.c: Likewise.
30901 * kern/device.c: Likewise.
30902 * kern/disk.c: Likewise.
30903 * kern/efi/efi.c: Likewise.
30904 * kern/efi/mm.c: Likewise.
30905 * kern/elf.c: Likewise.
30906 * kern/file.c: Likewise.
30907 * kern/i386/dl.c: Likewise.
30908 * kern/i386/pc/init.c: Likewise.
30909 * kern/i386/pc/startup.S: Likewise.
30910 * kern/ieee1275/ieee1275.c: Likewise.
30911 * kern/ieee1275/init.c: Likewise.
30912 * kern/main.c: Likewise.
30913 * kern/mm.c: Likewise.
30914 * kern/powerpc/dl.c: Likewise.
30915 * kern/sparc64/dl.c: Likewise.
30916 * kern/x86_64/dl.c: Likewise.
30917 * lib/hexdump.c: Likewise.
30918 * loader/efi/appleloader.c: Likewise.
30919 * loader/i386/ieee1275/linux.c: Likewise.
30920 * loader/i386/pc/chainloader.c: Likewise.
30921 * loader/i386/pc/linux.c: Likewise.
30922 * loader/i386/pc/multiboot2.c: Likewise.
30923 * loader/ieee1275/multiboot2.c: Likewise.
30924 * loader/multiboot2.c: Likewise.
30925 * loader/multiboot_loader.c: Likewise.
30926 * loader/powerpc/ieee1275/linux.c: Likewise.
30927 * normal/completion.c: Likewise.
30928 * normal/menu_entry.c: Likewise.
30929 * partmap/apple.c: Likewise.
30930 * util/grub.d/10_hurd.in: Likewise.
30931 * util/hostfs.c: Likewise.
30932 * video/readers/png.c: Likewise.
30933
e2d70b5c
CW
309342010-01-03 Colin Watson <cjwatson@ubuntu.com>
30935
30936 * include/grub/misc.h (GNUC_PREREQ): New macro.
30937 (ATTRIBUTE_ERROR): New macro.
30938 * include/grub/list.h (grub_bad_type_cast_real): Use
30939 ATTRIBUTE_ERROR.
30940
a173283f 309412010-01-03 Carles Pina i Estany <carles@pina.cat>
30942
30943 * normal/menu_text.c (print_message): Change messages.
30944
7fa7ff74 309452010-01-03 Carles Pina i Estany <carles@pina.cat>
30946
30947 * normal/menu_entry.c (store_completion): Gettextizze.
30948
136d24f6 309492010-01-03 Carles Pina i Estany <carles@pina.cat>
30950
30951 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
30952
f936862e 309532010-01-03 Carles Pina i Estany <carles@pina.cat>
30954
30955 * po/POTFILES: Sort correctly.
30956
29c44ad1 309572010-01-03 Carles Pina i Estany <carles@pina.cat>
30958
30959 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
30960 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
30961 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
30962 full stop.
30963 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
30964 summary. Gettextizze the strings.
30965 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
30966 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
30967 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
30968 full stop.
30969 (GRUB_MOD_INIT): Remove command name from summary.
30970 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
30971 summary.
30972 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
30973 * term/i386/pc/serial.c (options): Add full stops.
30974 (GRUB_MOD_INIT): Remove command name from the summary.
30975
77a79592 309762010-01-03 Carles Pina i Estany <carles@pina.cat>
30977
30978 * commands/acpi.c: Gettextizze help strings and/or options. Include
30979 `grub/i18n.h' if needed.
30980 * commands/blocklist.c: Likewise.
30981 * commands/boot.c: Likewise.
30982 * commands/cat.c: Likewise.
30983 * commands/cmp.c: Likewise.
30984 * commands/configfile.c: Likewise.
30985 * commands/crc.c: Likewise.
30986 * commands/date.c: Likewise.
30987 * commands/echo.c: Likewise.
30988 * commands/efi/fixvideo.c: Likewise.
30989 * commands/efi/loadbios.c: Likewise.
30990 * commands/gptsync.c: Likewise.
30991 * commands/halt.c: Likewise.
30992 * commands/handler.c: Likewise.
30993 * commands/hdparm.c: Likewise.
30994 * commands/hexdump.c: Likewise.
30995 * commands/i386/cpuid.c: Likewise.
30996 * commands/i386/pc/drivemap.c: Likewise.
30997 * commands/i386/pc/halt.c: Likewise.
30998 * commands/i386/pc/pxecmd.c: Likewise.
30999 * commands/i386/pc/vbeinfo.c: Likewise.
31000 * commands/i386/pc/vbetest.c: Likewise.
31001 * commands/ieee1275/suspend.c: Likewise.
31002 * commands/keystatus.c: Likewise.
31003 * commands/loadenv.c: Likewise.
31004 * commands/ls.c: Likewise.
31005 * commands/lsmmap.c: Likewise.
31006 * commands/lspci.c: Likewise.
31007 * commands/memrw.c: Likewise.
31008 * commands/minicmd.c: Likewise.
31009 * commands/parttool.c: Likewise.
31010 * commands/password.c: Likewise.
31011 * commands/probe.c: Likewise.
31012 * commands/read.c: Likewise.
31013 * commands/reboot.c: Likewise.
31014 * commands/search.c: Likewise.
31015 * commands/sleep.c: Likewise.
31016 * commands/test.c: Likewise.
31017 * commands/true.c: Likewise.
31018 * commands/usbtest.c: Likewise.
31019 * commands/videotest.c: Likewise.
31020 * commands/xnu_uuid.c: Likewise.
31021 * disk/loopback.c: Likewise.
31022 * hello/hello.c: Likewise.
31023 * loader/i386/bsd.c: Likewise.
31024 * term/i386/pc/serial.c: Likewise.
31025 * po/POTFILES: Add new files.
31026
da8d5c53
CW
310272010-01-02 Colin Watson <cjwatson@ubuntu.com>
31028
31029 * term/i386/pc/at_keyboard.c
31030 (keyboard_controller_wait_untill_ready): Rename to ...
31031 (keyboard_controller_wait_until_ready): ... this. Update all users.
31032
33937904 310332010-01-01 Carles Pina i Estany <carles@pina.cat>
31034
31035 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
31036 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
31037 string using string width.
31038 * normal/menu_text.c (grub_print_message_indented): Use
31039 grub_print_spaces and not print_spaces.
31040 (print_timeout): Likewise.
31041 (print_spaces): Move to...
31042 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
31043
3fd3b8d8
RM
310442010-01-01 Robert Millan <rmh.grub@aybabtu.com>
31045
31046 Import from Gnulib.
31047
31048 * gnulib/getdelim.c: New file.
31049 * gnulib/getline.c: Likewise.
31050
33433555
VS
310512009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
31052
31053 * include/grub/list.h (grub_assert_fail): Removed.
31054 (grub_bad_type_cast_real): New function.
31055 (grub_bad_type_cast): New macro.
31056 (GRUB_AS_LIST): Use grub_bad_type_cast.
31057 (GRUB_AS_LIST_P): Likewise.
e44721e8 31058 (GRUB_AS_NAMED_LIST): Likewise.
33433555 31059 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 31060 (GRUB_AS_PRIO_LIST): Likewise.
33433555 31061 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 31062 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 31063
f5a51306
VS
310642009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
31065
31066 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
31067 Fix syntax error.
31068
90d1e879
RM
310692009-12-29 Robert Millan <rmh.grub@aybabtu.com>
31070
31071 * configure.ac: Check for TARGET_CFLAGS initialization before we
31072 initialize it ourselves (sigh).
31073 Move a few modifications to TARGET_CFLAGS to be unconditional
31074 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
31075 eh_frame)
31076
31077 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
31078 * term/i386/pc/at_keyboard.c
31079 (keyboard_controller_wait_untill_ready): Likewise.
31080 (keyboard_controller_led): Rename `led_status' paramter to avoid
31081 name conflict.
31082
465b5a81 310832009-12-28 Carles Pina i Estany <carles@pina.cat>
31084
31085 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
31086 quotes.
31087
c181849b
VS
310882009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31089
31090 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
31091
9c8739a4
VS
310922009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31093
31094 * normal/menu_text.c (grub_print_message_indented): Prevent
31095 past-the-end-of-array dereference.
31096
3e74249c
VS
310972009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
31098
31099 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
31100 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
31101
64fd18ed 311022009-12-27 Carles Pina i Estany <carles@pina.cat>
31103
31104 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
31105 * normal/main.c (grub_normal_read_line): Remove a space from the
31106 default prompt.
31107
714af9b9 311082009-12-27 Carles Pina i Estany <carles@pina.cat>
31109
31110 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
31111 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31112 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31113 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31114 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31115 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31116 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31117
82f3e412 311182009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 31119
31120 * video/readers/jpeg.c (cmd): Declare.
31121 (grub_cmd_jpegtest): Use `grub_command_t' type.
31122 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31123 Assign to `cmd'.
31124 (GRUB_MOD_FINI): Use `cmd' to unregister.
31125 * video/readers/png.c (cmd): Declare.
31126 (grub_cmd_pngtest): Use `grub_command_t' type.
31127 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31128 Assign to `cmd'.
31129 (GRUB_MOD_FINI): Use `cmd' to unregister.
31130 * video/readers/tga.c (cmd): Declare.
31131 (grub_cmd_tgatest): Use `grub_command_t' type.
31132 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
31133 Assign to `cmd'.
31134 (GRUB_MOD_FINI): Use `cmd' to unregister.
31135
82f3e412 311362009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 31137
31138 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
31139 stops.
31140 * kern/corecmd.c (grub_register_core_commands): Likewise.
31141 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
31142 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31143 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
31144 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31145 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
31146 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
31147 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
31148 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
31149 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31150 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
31151 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31152 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31153 * normal/handler.c (insert_handler): Likewise.
31154 * normal/main.c (GRUB_MOD_INIT): Likewise.
31155 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
31156
fdcdbb66 311572009-12-26 Carles Pina i Estany <carles@pina.cat>
31158
31159 * commands/help.c (grub_cmd_help): Print the command name before the
31160 summary.
31161 (GRUB_MOD_INIT): Remove command name from the summary.
31162 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 31163 string as summary.
fdcdbb66 31164 * lib/arg.c (find_long): Print the command name before the summary.
31165 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
31166 summary.
31167 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
31168 * commands/cat.c (GRUB_MOD_INIT): Likewise.
31169 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
31170 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
31171 * commands/crc.c (GRUB_MOD_INIT): Likewise.
31172 * commands/date.c (GRUB_MOD_INIT): Likewise.
31173 * commands/echo.c (GRUB_MOD_INIT): Likewise.
31174 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
31175 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
31176 * commands/handler.c (GRUB_MOD_INIT): Likewise.
31177 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
31178 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
31179 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
31180 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
31181 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
31182 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
31183 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
31184 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
31185 * commands/ls.c (GRUB_MOD_INIT): Likewise.
31186 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
31187 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
31188 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
31189 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
31190 * commands/password.c (GRUB_MOD_INIT): Likewise.
31191 * commands/probe.c (GRUB_MOD_INIT): Likewise.
31192 * commands/read.c (GRUB_MOD_INIT): Likewise.
31193 * commands/search.c (GRUB_MOD_INIT): Likewise.
31194 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
31195 * commands/test.c (GRUB_MOD_INIT): Likewise.
31196 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
31197 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
31198 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
31199 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
31200 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
31201 * lib/arg.c (GRUB_MOD_INIT): Likewise.
31202 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
31203 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
31204 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
31205 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
31206 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
31207 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
31208 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
31209 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
31210
9c288be2
VS
312112009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31212
31213 Use search command for preliminar UUID search.
31214
31215 * commands/search.c: Split into ...
31216 * commands/search_wrap.c: ...this
31217 * commands/search.c: ...and this.
31218 * commands/search_file.c: New file.
31219 * commands/search_label.c: New file.
31220 * commands/search_uuid.c: New file.
31221 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
31222 Add commands/search_wrap.c, commands/search_file.c,
31223 commands/search_label.c and commands/search_uuid.c.
31224 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
31225 (search_mod_SOURCES): Set to commands/search_wrap.c.
31226 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
31227 search_label.mod.
31228 (search_fs_file_mod_SOURCES): New variable.
31229 (search_fs_file_mod_CFLAGS): Likewise.
31230 (search_fs_file_mod_LDFLAGS): Likewise.
31231 (search_label_mod_SOURCES): Likewise.
31232 (search_label_mod_CFLAGS): Likewise.
31233 (search_label_mod_LDFLAGS): Likewise.
31234 (search_fs_uuid_mod_SOURCES): New variable.
31235 (search_fs_uuid_mod_CFLAGS): Likewise.
31236 (search_fs_uuid_mod_LDFLAGS): Likewise.
31237 (fs_file_mod_SOURCES): Removed.
31238 (fs_file_mod_CFLAGS): Likewise.
31239 (fs_file_mod_LDFLAGS): Likewise.
31240 (fs_uuid_mod_SOURCES): Removed.
31241 (fs_uuid_mod_CFLAGS): Likewise.
31242 (fs_uuid_mod_LDFLAGS): Likewise.
31243 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
31244 Set to util/grub-install.in.
31245 * disk/fs_file.c: Removed.
31246 * disk/fs_uuid.c: Likewise.
31247 * include/grub/search.h: New file.
31248 * util/grub-install.in: Handle sparc64.
31249 Create and use load.cfg.
31250 * util/sparc64/ieee1275/grub-install.in: Removed.
31251
db943399
VS
312522009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31253
31254 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
31255 Ignore return status if CF is cleared.
31256 (grub_biosdisk_get_diskinfo_standard): Likewise.
31257
3fdae612
RM
312582009-12-25 Robert Millan <rmh.grub@aybabtu.com>
31259
31260 * term/i386/pc/at_keyboard.c
31261 (keyboard_controller_wait_untill_ready): New function.
31262 (grub_keyboard_controller_write, grub_keyboard_controller_read)
31263 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
31264 for keyboard polling, rather than duplicate the same loop. This
31265 saves a few bytes in code size.
31266
7ebaa2b4
VS
312672009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
31268
31269 Support for (pxe[:server[:gateway]]) syntax and
31270 use environment variable for PXE.
31271
31272 * commands/i386/pc/pxecmd.c (options): Removed.
31273 (print_ip): Removed.
31274 (grub_cmd_pxe): Removed
31275 (grub_cmd_pxe_unload): New function.
31276 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
31277 (grub_pxe_your_ip): Made static.
31278 (grub_pxe_default_server_ip): Likewise.
31279 (grub_pxe_default_gateway_ip): Likewise.
31280 (grub_pxe_blksize): Likewise.
31281 (parse_ip): New function.
31282 (grub_pxe_open): Support server and gateway specification.
31283 (grub_pxe_close): Free disk->data.
31284 (grub_pxefs_open): Use disk->data.
31285 (grub_pxefs_read): Likewise.
31286 (grub_env_write_readonly): New function.
31287 (set_mac_env): Likewise.
31288 (set_env_limn_ro): Likewise.
31289 (parse_dhcp_vendor): Likewise.
31290 (grub_pxe_detect): Set the environment variables.
31291 (set_ip_env): New function.
31292 (write_ip_env): Likewise.
31293 (grub_env_write_pxe_default_server): Likewise.
31294 (grub_env_write_pxe_default_gateway): Likewise.
31295 (grub_env_write_pxe_blocksize): Likewise.
31296 (GRUB_MOD_INIT(pxe)): Set environment variables.
31297 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
31298 (grub_pxe_mac_addr_t): ... this. All users updated.
31299 (grub_pxe_your_ip): Removed.
31300 (grub_pxe_server_ip): Likewise.
31301 (grub_pxe_gateway_ip): Likewise.
31302 (grub_pxe_blksize): Likewise.
31303
ec5f98ab 313042009-12-25 Carles Pina i Estany <carles@pina.cat>
31305
31306 * commands/help.c: Include `<grub/i18n.h>'.
31307 (grub_cmd_help): Gettextizze.
31308 (GRUB_MOD_INIT): Likewise.
31309 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
31310 (GRUB_MOD_INIT): Gettextizze.
31311 * commands/search.c: Include `<grub/i18n.h>'.
31312 (options): Gettextizze.
31313 (GRUB_MOD_INIT): Gettextizze.
31314 * lib/arg.c: Include `<grub/i18n.h>'.
31315 (help_options): Gettextizze.
31316 (find_long): Likewise.
31317 (grub_arg_show_help): Likewise.
31318 * normal/dyncmd.c: Include `<grub/i18n.h>'.
31319 (read_command_list): Gettextizze.
31320 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 31321 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 31322
22815526
RM
313232009-12-25 Robert Millan <rmh.grub@aybabtu.com>
31324
31325 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
31326 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
31327 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
31328 (led_status): New variable.
31329 (keyboard_controller_led): New function.
31330 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
31331 update led status for caps lock, num lock and scroll lock.
31332
0ad46fd7
FZ
313332009-12-25 Felix Zielcke <fzielcke@z-51.de>
31334
31335 * util/hostdisk.c (open_device): Fix a comment.
31336
d0e158c2
RM
313372009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31338
31339 * util/grub-install.in (host_os): New variable.
31340 * util/i386/efi/grub-install.in (host_os): Likewise.
31341
401c0ad6
RM
313422009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31343
31344 * util/mkisofs/write.c (padblock_write): Abort when given an
31345 excedingly large embed image, instead of silently truncating it.
31346
d14d3370
RM
313472009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31348
31349 * include/multiboot.h: Indentation fixes.
31350
eeed10b4
RM
313512009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31352
31353 * include/multiboot.h (struct multiboot_aout_symbol_table)
31354 (struct multiboot_elf_section_header_table): New structure
31355 declarations (stolen from GRUB Legacy).
31356 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
31357 table information.
31358
31359 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
31360 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
31361 type aliases.
31362
681c70ab
RM
313632009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31364
31365 * include/multiboot.h: Make comments src2texi-friendly.
31366
e4d47d8d
RM
313672009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31368
31369 For consistency with [multiboot]/docs/boot.S.
31370
31371 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
31372 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
31373 (MULTIBOOT_MAGIC2): Rename from this ...
31374 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
31375
a0b70bda
RM
313762009-12-24 Robert Millan <rmh.grub@aybabtu.com>
31377
31378 * include/multiboot.h: Remove `<grub/types.h>'.
31379 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
31380 types. Update all users.
31381
61ba42be 313822009-12-25 Carles Pina i Estany <carles@pina.cat>
31383
31384 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
31385 `couldn't' and `can not' by `cannot'.
31386 * commands/i386/pc/drivemap.c: Likewise.
31387 * disk/ata.c: Likewise.
31388 * disk/ieee1275/nand.c: Likewise.
31389 * fs/affs.c: Likewise.
31390 * fs/fat.c: Likewise.
31391 * fs/hfs.c: Likewise.
31392 * fs/hfsplus.c: Likewise.
31393 * fs/iso9660.c: Likewise.
31394 * fs/jfs.c: Likewise.
31395 * fs/minix.c: Likewise.
31396 * fs/reiserfs.c: Likewise.
31397 * fs/sfs.c: Likewise.
31398 * fs/udf.c: Likewise.
31399 * fs/ufs.c: Likewise.
31400 * fs/xfs.c: Likewise.
31401 * loader/powerpc/ieee1275/linux.c: Likewise.
31402 * loader/sparc64/ieee1275/linux.c: Likewise.
31403 * util/grub-probe.c: Likewise.
31404 * util/misc.c: Likewise.
31405
7fd0baee 314062009-12-24 Carles Pina i Estany <carles@pina.cat>
31407
31408 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
31409 grub_errno calls.
31410 * commands/acpi.c: Likewise.
31411 * commands/blocklist.c: Likewise.
31412 * commands/efi/loadbios.c: Likewise.
31413 * commands/i386/pc/drivemap.c: Likewise.
31414 * commands/loadenv.c: Likewise.
31415 * commands/memrw.c: Likewise.
31416 * commands/password.c: Likewise.
31417 * commands/videotest.c: Likewise.
31418 * disk/ata.c: Likewise.
31419 * disk/ata_pthru.c: Likewise.
31420 * disk/dmraid_nvidia.c: Likewise.
31421 * disk/ieee1275/nand.c: Likewise.
31422 * disk/ieee1275/ofdisk.c: Likewise.
31423 * disk/loopback.c: Likewise.
31424 * disk/lvm.c: Likewise.
31425 * disk/mdraid_linux.c: Likewise.
31426 * disk/raid.c: Likewise.
31427 * disk/raid6_recover.c: Likewise.
31428 * disk/scsi.c: Likewise.
31429 * efiemu/main.c: Likewise.
31430 * efiemu/mm.c: Likewise.
31431 * efiemu/pnvram.c: Likewise.
31432 * efiemu/symbols.c: Likewise.
31433 * font/font.c: Likewise.
31434 * fs/cpio.c: Likewise.
31435 * fs/hfsplus.c: Likewise.
31436 * fs/iso9660.c: Likewise.
31437 * fs/jfs.c: Likewise.
31438 * fs/minix.c: Likewise.
31439 * fs/ntfs.c: Likewise.
31440 * fs/ntfscomp.c: Likewise.
31441 * fs/reiserfs.c: Likewise.
31442 * fs/ufs.c: Likewise.
31443 * fs/xfs.c: Likewise.
31444 * gettext/gettext.c: Likewise.
31445 * include/grub/auth.h: Likewise.
31446 * kern/elf.c: Likewise.
31447 * kern/file.c: Likewise.
31448 * kern/ieee1275/init.c: Likewise.
31449 * kern/ieee1275/mmap.c: Likewise.
31450 * kern/ieee1275/openfw.c: Likewise.
31451 * kern/powerpc/dl.c: Likewise.
31452 * kern/sparc64/dl.c: Likewise.
31453 * lib/arg.c: Likewise.
31454 * loader/i386/bsd.c: Likewise.
31455 * loader/i386/bsdXX.c: Likewise.
31456 * loader/i386/efi/linux.c: Likewise.
31457 * loader/i386/efi/xnu.c: Likewise.
31458 * loader/i386/ieee1275/linux.c: Likewise.
31459 * loader/i386/linux.c: Likewise.
31460 * loader/i386/multiboot.c: Likewise.
31461 * loader/i386/pc/linux.c: Likewise.
31462 * loader/i386/pc/multiboot2.c: Likewise.
31463 * loader/i386/xnu.c: Likewise.
31464 * loader/ieee1275/multiboot2.c: Likewise.
31465 * loader/macho.c: Likewise.
31466 * loader/machoXX.c: Likewise.
31467 * loader/multiboot2.c: Likewise.
31468 * loader/multiboot_loader.c: Likewise.
31469 * loader/powerpc/ieee1275/linux.c: Likewise.
31470 * loader/sparc64/ieee1275/linux.c: Likewise.
31471 * loader/xnu.c: Likewise.
31472 * loader/xnu_resume.c: Likewise.
31473 * mmap/i386/pc/mmap.c: Likewise.
31474 * normal/menu_viewer.c: Likewise.
31475 * partmap/acorn.c: Likewise.
31476 * partmap/amiga.c: Likewise.
31477 * partmap/apple.c: Likewise.
31478 * script/lexer.c: Likewise.
31479 * term/gfxterm.c: Likewise.
31480 * term/i386/pc/serial.c: Likewise.
31481 * term/i386/pc/vga.c: Likewise.
31482 * term/ieee1275/ofconsole.c: Likewise.
31483 * term/terminfo.c: Likewise.
31484 * video/bitmap.c: Likewise.
31485 * video/efi_gop.c: Likewise.
31486 * video/efi_uga.c: Likewise.
31487 * video/fb/video_fb.c: Likewise.
31488 * video/i386/pc/vbe.c: Likewise.
31489 * video/readers/tga.c: Likewise.
31490 * video/video.c: Likewise.
31491
0ad46fd7 314922009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
31493
31494 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
31495 * commands/lspci.c: Likewise.
31496 * commands/probe.c: Likewise.
31497 * commands/xnu_uuid.c: Likewise.
31498 * conf/i386-coreboot.rmk: Likewise.
31499 * conf/i386-efi.rmk: Likewise.
31500 * conf/i386-ieee1275.rmk: Likewise.
31501 * conf/i386-pc.rmk: Likewise.
31502 * conf/powerpc-ieee1275.rmk: Likewise.
31503 * conf/sparc64-ieee1275.rmk: Likewise.
31504 * conf/x86_64-efi.rmk: Likewise.
31505 * fs/i386/pc/pxe.c: Likewise.
31506 * gettext/gettext.c: Likewise.
31507 * include/grub/efi/graphics_output.h: Likewise.
31508 * include/grub/i386/pc/memory.h: Likewise.
31509 * kern/env.c: Likewise.
31510 * kern/i386/qemu/startup.S: Likewise.
31511 * lib/i386/pc/biosnum.c: Likewise.
31512 * lib/i386/relocator.c: Likewise.
31513 * lib/i386/relocator_asm.S: Likewise.
31514 * lib/relocator.c: Likewise.
31515 * loader/i386/bsd.c: Likewise.
31516 * loader/i386/multiboot.c: Likewise.
31517 * loader/i386/pc/chainloader.c: Likewise.
31518 * loader/i386/xnu.c: Likewise.
31519 * loader/xnu.c: Likewise.
31520 * normal/main.c: Likewise.
31521 * normal/menu_text.c: Likewise.
31522 * util/getroot.c: Likewise.
31523 * util/grub-mkconfig_lib.in: Likewise.
31524 * util/grub.d/00_header.in: Likewise.
31525 * util/i386/pc/grub-mkimage.c: Likewise.
31526 * util/mkisofs/eltorito.c: Likewise.
31527 * util/mkisofs/exclude.h: Likewise.
31528 * util/mkisofs/hash.c: Likewise.
31529 * util/mkisofs/iso9660.h: Likewise.
31530 * util/mkisofs/joliet.c: Likewise.
31531 * util/mkisofs/mkisofs.c: Likewise.
31532 * util/mkisofs/mkisofs.h: Likewise.
31533 * util/mkisofs/multi.c: Likewise.
31534 * util/mkisofs/name.c: Likewise.
31535 * util/mkisofs/rock.c: Likewise.
31536 * util/mkisofs/tree.c: Likewise.
31537 * util/mkisofs/write.c: Likewise.
31538 * video/efi_gop.c: Likewise.
31539
009ec743
VS
315402009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
31541
31542 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
31543 size counting.
31544
0ad46fd7 315452009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
31546
31547 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
31548 * genmk.rb (class SCRIPT): Modify the target file instead of source.
31549
d3d30ea0
VS
315502009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31551
31552 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
31553 (GRUB_MOD_INIT(memrw)): Update help line.
31554
a34f5c70
VS
315552009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31556
31557 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
31558 Use grub_extcmd_t. All users updated.
31559 (options): New variable.
31560 (grub_cmd_read): Restructure for readability. Support "-v" option.
31561 (grub_cmd_write): Restructure for readability.
31562
0ad46fd7 315632009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
31564
31565 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
31566
0ad46fd7 315672009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
31568
31569 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
31570 with the actual contents of the correspondending make variable.
31571 * util/grub-mkrescue.in (pkglib_DATA): New variable.
31572 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
31573 specifying `*.lst' and `efiemu??.o'
31574
0ad46fd7 315752009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
31576
31577 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
31578 after function name.
31579 Noticed by Rene Engelhard <rene@debian.org>.
31580
dc77a799
VS
315812009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31582
31583 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
31584 (options): New variable.
31585 (iospace): Likewise.
31586 (grub_lspci_iter): List IO spaces if "-i" was given.
31587 (grub_cmd_lspci): Parse options.
31588 (GRUB_MOD_INIT(lspci)): Use extcmd.
31589 (GRUB_MOD_FINI(lspci)): Likewise.
31590
0ad46fd7 315912009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
31592
31593 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
31594 `function' keyword.
31595 Patch by Tony Mancill <tmancill@debian.org>.
31596
b5d5993b
VS
315972009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
31598
31599 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
31600 (grub_uhci_portstatus): Likewise.
31601 (grub_uhci_portstatus): Add necessary delay.
11d18281 31602 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 31603
941903f2 316042009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 31605
941903f2 31606 * commands/acpi.c (options): Fix capitalizations and/or full stops.
31607 (GRUB_MOD_INIT): Likewise.
31608 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 31609 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
31610 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 31611 * commands/efi/loadbios.c (enable_rom_area): Likewise.
31612 (enable_rom_area): Likewise.
31613 (GRUB_MOD_INIT): Likewise.
31614 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
31615 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
31616 * commands/handler.c (GRUB_MOD_INIT): Likewise.
31617 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
31618 * commands/hexdump.c (options): Likewise.
31619 * commands/i386/cpuid.c (options): Likewise.
31620 (GRUB_MOD_INIT): Likewise.
31621 * commands/i386/pc/drivemap.c (options): Likewise.
31622 (GRUB_MOD_INIT): Likewise.
31623 * commands/i386/pc/halt (options): Likewise.
31624 (GRUB_MOD_INIT): Likewise.
31625 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
31626 * commands/i386/pc/pxecmd.c (options): Likewise.
31627 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
31628 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
31629 * commands/keystatus.c (options): Likewise.
31630 (GRUB_MOD_INIT): Likewise.
31631 * commands/loadenv.c (options): Likewise.
31632 * commands/ls.c (options): Likewise.
31633 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
31634 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
31635 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
31636 * commands/parttool.c (helpmsg): Likewise.
31637 * commands/probe.c (options): Likewise.
31638 * commands/read.c (GRUB_MOD_INIT): Likewise.
31639 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
31640 * commands/search.c (options): Likewise.
31641 * commands/sleep.c (options): Likewise.
31642 * commands/test.c (GRUB_MOD_INIT): Likewise.
31643 * commands/true.c (GRUB_MOD_INIT): Likewise.
31644 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
31645 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
31646 * lib/arg.c (help_options): Likewise.
e9bbb4e7 31647 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
31648 `$(XGETTEXT)'.
98a50553 31649 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 31650
0ad46fd7 316512009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 31652
ef3c2c3a 31653 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
31654 instead of specifying them explicit.
31655
7922f68b
RM
316562009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31657
31658 * NEWS: Add grub-probe support for GNU/Hurd.
31659
537ce47f
RM
316602009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31661
31662 * NEWS: gettext was added after 1.97.
31663
9b214e3a
RM
316642009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31665
31666 * util/mkisofs/msdos_partition.h: New file (based on
31667 include/grub/msdos_partition.h).
31668 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
31669 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
31670 (ld_options, main): Recognize --protective-msdos-label.
31671 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
31672 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
31673 (padblock_write): If `use_protective_msdos_label' is set, patch a
31674 protective DOS-style label in the output image.
31675
31676 * util/grub-mkrescue.in: Use --protective-msdos-label.
31677
e9309813
RM
316782009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31679
31680 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
31681 boot.
31682
0ae56929
RM
316832009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31684
31685 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
31686 variables.
31687 (ld_options, main): Recognize `--embedded-boot'.
31688 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
31689 declarations.
31690 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
31691 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
31692 (padblock_write): Likewise. Rewrite to support embedded boot image.
31693
31694 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
31695 for BIOS-based disk boot instead of only ElTorito.
31696
b15937b1
RM
316972009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31698
31699 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
31700 build (not needed for bootstrap).
31701
52cc3ce0
RM
317022009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31703
31704 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
31705 from i386-pc build (not needed for bootstrap).
31706 Rewrite a pair of strings.
31707
36f5ff04
RM
317082009-12-21 Robert Millan <rmh.grub@aybabtu.com>
31709
31710 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
31711
973c6c85 317122009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
31713
31714 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
31715
05d21547
AB
317162009-12-21 Andreas Born <futur.andy@googlemail.com>
31717
31718 * kern/env.c (grub_env_context_open): Mark exported variable for
31719 reexport.
31720
0175d51f
AB
317212009-12-21 Andreas Born <futur.andy@googlemail.com>
31722
31723 * kern/env.c (grub_env_export): Create nonexistent variables before
31724 exporting.
31725
7f39d92f 317262009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 31727
7f39d92f 31728 * include/grub/auth.h: Include `<grub/i18n.h>'.
31729 (GRUB_GET_PASSWORD): Gettextizze string.
31730 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
31731 menu_text.c.
31732 (grub_utf8_to_ucs4_alloc): Fix indentation.
31733 (grub_print_ucs4): Likewise.
31734 (grub_getstringwidth): Likewise.
31735 (print_message_indented): New declaration.
31736 * normal/auth.c: Include `<grub/i18n.h>'.
31737 (grub_auth_check_authentication): Gettexttize string.
31738 * normal/cmdline.c: Include `<grub/i18n.h>'.
31739 (grub_cmdline_get): Gettextizze.
31740 * normal/color.c: Include `<grub/i18n.h>'.
31741 (grub_parse_color_name_pair): Gettexttize strings.
31742 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
31743 string (use `print_message_indented').
31744 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
31745 `include/grub/normal.h'.
31746 (print_message_indented): Renamed to ...
31747 (grub_print_message_indented): ... this. Remove `static' qualifer (now
31748 used in normal/main.c).
31749 (print_message): Use `grub_print_message_indented' instead of
31750 `print_message_indented'.
31751 (print_timeout): Likewise.
31752 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
31753 (grub_normal_print_device_info): Gettexttize strings.
31754 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
31755
3041d898
VS
317562009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
31757
31758 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
31759 of arguments. Return number of tokens and not arguments. All users
31760 updated.
31761
de15bf8e
VS
317622009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
31763
31764 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
31765 non-MSDOS paritions.
31766
e0a6ca52
VS
317672009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
31768
31769 * include/grub/types.h (UNUSED): Removed since it conflicts with
31770 NetBSD headers. All users changed to direct __attribute__ ((unused)).
31771 Reported by Grégoire Sutre.
31772
b99518d1 317732009-12-19 Carles Pina i Estany <carles@pina.cat>
31774
31775 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
31776 (grub_print_ucs4_alloc): Likewise.
31777 (grub_getstringwidth): Likewise.
31778 * normal/main.c (grub_normal_init_page): Gettextize version string.
31779 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
31780 (getstringwidth): Renamed to ...
31781 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
31782 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
31783 (grub_print_ucs4): Remove `static' qualifer (now used in
31784 normal/main.c).
31785 * po/POTFILES: Add normal/main.c.
31786
bfd5e52b 317872009-12-19 Carles Pina i Estany <carles@pina.cat>
31788
31789 * normal/menu_text.c (STANDARD_MARGIN): New macro.
31790 (print_message_indented): Add `margin_left' and `margin_right'
31791 parameters.
31792 (print_message): Update `print_message_indented' calls. Adds '\n' to the
31793 strings.
31794 (print_timeout): Use `print_message_indented' to print the message.
31795 Deletes `second_stage' parameter.
31796 (run_menu): Update `print_timeout' calls.
31797
5a1ad2b9
VS
317982009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
31799
31800 Fix console palette on OpenFirmware.
31801
31802 * term/ieee1275/ofconsole.c (MAX): Removed.
31803 (colors): Redone based on VGA palette.
31804 (grub_ofconsole_setcolor): Discard brightness bit since only 8
31805 colors are supported.
31806 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
31807
b045f00a
VS
318082009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
31809
31810 Fix potential EfiEmu double prepare.
31811
31812 * efiemu/main.c (prepared): New variable
31813 (grub_efiemu_unload): Set prepare to '0'.
31814 (grub_efiemu_prepare): Return if already prepared. Set prepared.
31815
31816 set_virtual_address_map support.
31817
31818 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
31819 prototype.
31820 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
31821 prototype.
31822 (grub_efiemu_crc32): Likewise.
31823 (grub_efiemu_crc64): Likewise.
31824 (grub_efiemu_set_virtual_address_map): Likewise.
31825 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
31826 New definition.
31827 (grub_autoefi_set_virtual_address_map): Likewise.
31828 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
31829 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
31830 Restructure flow to accomodate it.
31831 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
31832 (grub_efiemu_crc): Recompute CRC32.
31833 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
31834 (efiemu_ptv_relocated): ... this. Made global. All users updated.
31835 * efiemu/symbols.c (relocated_handle): New variable.
31836 (grub_efiemu_free_syms): Free relocated_handle.
31837 (grub_efiemu_alloc_syms): Allocate relocated_handle.
31838 (grub_efiemu_write_sym_markers): New function.
31839 (grub_efiemu_set_virtual_address_map): Likewise.
31840
31841 Newer XNU parameters.
31842
31843 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
31844 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
31845 (grub_xnu_fill_devicetree): New prototype.
31846 (grub_xnu_heap_real_start): New variable.
31847 * loader/xnu.c (get_name_ptr): New function.
31848 (grub_xnu_load_driver): Fill namelen and name.
31849
31850 64-bit xnu support.
31851
31852 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
31853 and 'loader/macho64.c'.
31854 * conf/i386-pc.rmk: Likewise.
31855 * conf/x86_64-efi.rmk: Likewise.
31856 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
31857 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
31858 * include/grub/macho.h (grub_macho_segment64): New structure.
31859 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
31860 (grub_macho_size32): ... to this.
31861 (grub_macho32_get_entry_point): Renamed from ...
31862 (grub_macho_get_entry_point32): ... to this.
31863 (grub_macho_contains_macho64): New prototype.
31864 (grub_macho_size64): Likewise.
31865 (grub_macho_get_entry_point64): Likewise.
31866 (grub_macho32_load): Renamed from ...
31867 (grub_macho_load32): ... to this.
31868 (grub_macho32_filesize): Renamed from ...
31869 (grub_macho_filesize32): ... to this.
31870 (grub_macho32_readfile): Renamed from ...
31871 (grub_macho_readfile32): ... to this.
31872 (grub_macho_filesize64): New prototype.
31873 (grub_macho_readfile64): Likewise.
31874 (grub_macho_parse32): Likewise.
31875 (grub_macho_parse64): Likewise.
31876 * loader/macho.c: Split into ...
31877 * loader/machoXX.c: ... and this. Replace 32 with XX.
31878 * loader/macho32.c: New file.
31879 * loader/macho64.c: Likewise.
31880 * loader/xnu.c (grub_xnu_is_64bit): New variable.
31881 (grub_cmd_xnu_kernel): Make 32-bit only.
31882 (grub_cmd_xnu_kernel64): New function.
31883 (grub_xnu_load_driver): Support Mach-O 64.
31884 (grub_cmd_xnu_mkext): Likewise.
31885 * util/grub.d/30_os-prober.in (osx_entry): New function.
31886 Generate entries for 64-bit boot too.
31887
31888 Eliminate ad-hoc tree format in XNU and EfiEmu.
31889
31890 * efiemu/main.c (grub_efiemu_prepare): Update comment.
31891 * efiemu/pnvram.c: Rewritten to use environment variables.
31892 All users updated.
31893
31894 Inline utf16_to_utf8.
31895
31896 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
31897 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
31898 All users updated.
31899 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
31900
31901 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
31902 * commands/usbtest.c (grub_usb_get_string): ... move here.
31903 (usb_print_str): Fix error handling.
31904 * include/grub/usb.h (grub_usb_get_string): Remove.
31905
31906 UTF-8 to UTF-16 transformation.
31907
31908 * conf/common.rmk (pkglib_MODULES): Add charset.mod
31909 (charset_mod_SOURCES): New variable.
31910 (charset_mod_CFLAGS): Likewise.
31911 (charset_mod_LDFLAGS): Likewise.
31912 * include/grub/utf.h: New file.
31913 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
31914
31915 Support for device properties.
31916
31917 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
31918 (grub_xnu_devprop_device_header): Likewise.
31919 (grub_xnu_devprop_device_descriptor): Likewise.
31920 (grub_xnu_devprop_add_device): New prototype.
31921 (grub_xnu_devprop_remove_device): Likewise.
31922 (grub_xnu_devprop_remove_property): Likewise.
31923 (grub_xnu_devprop_add_property_utf8): Likewise.
31924 (grub_xnu_devprop_add_property_utf16): Likewise.
31925 (grub_cpu_xnu_init): Likewise.
31926 (grub_cpu_xnu_fini): Likewise.
31927 (grub_cpu_xnu_unload): Likewise.
31928 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
31929 (property_descriptor): Likewise.
31930 (devices): New variable.
31931 (grub_xnu_devprop_remove_property): New function.
31932 (grub_xnu_devprop_add_device): Likewise.
31933 (grub_xnu_devprop_remove_device): Likewise.
31934 (grub_xnu_devprop_add_property): Likewise.
31935 (grub_xnu_devprop_add_property_utf8): Likewise.
31936 (grub_xnu_devprop_add_property_utf16): Likewise.
31937 (hextoval): Likewise.
31938 (grub_cpu_xnu_fill_devprop): Likewise.
31939 (grub_cmd_devprop_load): Likewise.
31940 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
31941 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
31942 (cmd_devprop_load): New variable.
31943 (grub_cpu_xnu_init): New function.
31944 (grub_cpu_xnu_fini): Likewise.
31945 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
31946 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
31947 (grub_cmd_xnu_devtree): Likewise.
31948 (hextoval): New function.
31949 (unescape): Likewise.
31950 (grub_xnu_fill_devicetree): Likewise.
31951
31952 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
31953 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
31954
0945f181
VS
319552009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
31956
31957 Workaround for broken ATI VBE.
31958
31959 * video/i386/pc/vbe.c (last_set_mode): New variable.
31960 (grub_vbe_set_video_mode): Set 'last_set_mode'.
31961 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
31962 (grub_video_vbe_setup): Don't check for reserved flag.
31963
0ad46fd7 319642009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
31965
31966 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
31967 the `find' command.
31968
c179ebe4
VS
319692009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
31970
31971 UUID support for HFS.
31972
31973 * fs/hfs.c (grub_hfs_uuid): New function.
31974 (grub_hfs_fs): New value .uuid.
31975 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
31976
0ad46fd7 319772009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
31978
31979 Fix a segfault with parsing unknown long options.
31980
31981 * util/grub-mkrelpath.c (options): Zero terminate it.
31982
c4a3e41a
CPE
319832009-12-13 Carles Pina i Estany <carles@pina.cat>
31984
31985 * include/grub/misc.h (grub_puts): New declaration.
31986 (grub_puts_): Likewise.
a22008a6 31987 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
31988 (grub_puts_): Likewise.
31989
2e8a7602
RM
319902009-12-13 Robert Millan <rmh.grub@aybabtu.com>
31991
31992 * util/grub-probe.c (probe): Improve error message.
31993
b50b77b9
RM
319942009-12-13 Robert Millan <rmh.grub@aybabtu.com>
31995
31996 * loader/i386/multiboot_elfxx.c
31997 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
31998 initialization.
31999
320002009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32001
32002 Relocator framework
32003
32004 * loader/i386/xnu_helper.S: Removed. All users updated.
32005 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
32006 (relocator_mod_SOURCES): New variable.
32007 (relocator_mod_CFLAGS): Likewise.
32008 (relocator_mod_LDFLAGS): Likewise.
32009 (relocator_mod_ASFLAGS): Likewise.
32010 * conf/x86_64.rmk: Likewise.
32011 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
32012 (grub_multiboot_payload_entry_offset): Likewise.
32013 (grub_multiboot_forward_relocator): Likewise.
32014 (grub_multiboot_forward_relocator_end): Likewise.
32015 (grub_multiboot_backward_relocator): Likewise.
32016 (grub_multiboot_backward_relocator_end): Likewise.
32017 (grub_multiboot_payload_eip): New variable.
32018 (grub_multiboot_payload_orig): Likewise.
32019 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
32020 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
32021 * include/grub/i386/memory.h
32022 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
32023 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
32024 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
32025 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
32026 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
32027 * include/grub/i386/relocator.h: New file.
32028 * include/grub/x86_64/relocator.h: Likewise.
32029 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
32030 (XNU_RELOCATOR): New macro.
32031 (grub_xnu_launcher_start): Remove.
32032 (grub_xnu_launcher_end): Likewise.
32033 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
32034 (grub_xnu_heap_real_start): Remove.
32035 (grub_xnu_heap_start): Change to void *. All users updated.
32036 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
32037 * lib/i386/relocator.c: New file.
32038 * lib/i386/relocator_asm.S: Likewise.
32039 * lib/i386/relocator_backward.S: Likewise.
32040 * lib/mips/relocator.c: Likewise.
32041 * lib/mips/relocator_asm.S: Likewise.
32042 * lib/relocator.c: Likewise.
32043 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
32044 (entry): Removed.
32045 (playground): Likewise.
32046 (grub_multiboot_payload_orig): New variable.
32047 (grub_multiboot_payload_dest): Likewise.
32048 (grub_multiboot_payload_size): Likewise.
32049 (grub_multiboot_payload_eip): Likewise.
32050 (grub_multiboot_payload_esp): Likewise.
32051 (grub_multiboot_boot): Use grub_relocator32_boot.
32052 (grub_multiboot_unload): Free relocators.
32053 (grub_multiboot): Setup stack. Use relocators.
32054 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
32055 (grub_multiboot_load_elfXX): Use relocators.
32056 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
32057 (grub_multiboot_payload_size): Likewise.
32058 (grub_multiboot_payload_dest): Likewise.
32059 (grub_multiboot_payload_entry_offset): Likewise.
32060 (grub_multiboot_forward_relocator): Likewise.
32061 (grub_multiboot_backward_relocator): Likewise.
32062 (grub_multiboot_real_boot): Likewise.
32063 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
32064 (grub_xnu_entry_point): Likewise.
32065 (grub_xnu_arg1): Likewise.
32066 (grub_xnu_stack): Likewise.
32067 (grub_xnu_launch): Removed.
32068 (grub_xnu_boot_resume): New function.
32069 (grub_xnu_boot): Use relocators.
32070 * loader/i386/xnu_helper.S: Removed.
32071 * loader/xnu.c (grub_xnu_heap_start): New variable.
32072 (grub_xnu_heap_size): Likewise.
32073 (grub_xnu_heap_malloc): Use relocators.
32074 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
32075
29eb90c6
VS
320762009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
32077
32078 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
32079 anything.
32080
31027430
CPE
320812009-12-13 Carles Pina i Estany <carles@pina.cat>
32082
32083 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
32084 GRUB_ERR_NONE before calling grub_env_set.
32085
dc0c71d9
RM
320862009-12-12 Robert Millan <rmh@aybabtu.com>
32087
32088 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
32089 * genmk.rb (video): New variable.
32090 (CLEANFILES, VIDEOFILES): Add #{video}.
32091 (#{video}): New target rule.
32092 * genvideolist.sh: New file.
32093 * Makefile.in (pkglib_DATA): Add video.lst.
32094 (video.lst): New target rule.
32095 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
32096 `video.lst'.
32097 * util/grub.d/30_os-prober.in: Replace `vbe' with
32098 ${GRUB_VIDEO_BACKEND}.
32099
2a4bfcf0
RM
321002009-12-11 Robert Millan <rmh.grub@aybabtu.com>
32101
32102 * THANKS: Add David Miller.
32103
2a3aa4d5
RM
321042009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
32105
32106 libpciaccess support.
32107
32108 * Makefile.in (LIBPCIACCESS): New variable.
32109 (enable_grub_emu_pci): Likewise.
32110 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
32111 util/pci.c and commands/lspci.c.
32112 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
32113 * configure.ac (grub-emu-pci): New option.
32114 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
32115 (grub_pci_device_unmap_range): Likewise.
32116 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
32117 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
32118 (grub_pci_address_t) [!GRUB_UTIL]: New type.
32119 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
32120 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
32121 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
32122 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
32123 * include/grub/pciutils.h: New file.
32124 * util/pci.c: Likewise.
32125
0ad46fd7 321262009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
32127
32128 * util/misc.c: Don't include <errno.h> twice.
32129
0ad46fd7 321302009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
32131
32132 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
32133 name in an error message.
32134 (grub_biosdisk_rw): Likewise.
32135
2e59983c
VS
321362009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32137
32138 Eliminate NTFS 4Gib barrier.
32139
32140 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
32141 (read_run_data): Likewise.
32142 (grub_ntfs_read_run_list): Likewise.
32143 (grub_ntfs_read_block): Likewise.
32144 (grub_ntfs_iterate_dir): Likewise.
32145 (read_mft): Likewise.
32146 (read_data): Likewise.
32147 Use COM_LOG_LEN.
32148 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
32149 to avoid 64-bit division
32150 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
32151 (grub_ntfs_rlst): Use grub_disk_addr_t.
32152
71ee178a
VS
321532009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32154
32155 Eliminate grub-fstest 4Gib barrier.
32156
32157 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
32158 (read_file): Fix error reporting.
32159
2520d4b8
VS
321602009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32161
32162 Eliminate hexdump 4Gib barrier.
32163
32164 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
32165 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
32166
e1f27065
VS
321672009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
32168
32169 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
32170 Fixes amarsh bug.
32171
1a0f7f45
RM
321722009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
32173
32174 Remove miscellaneous files in distclean target.
32175
32176 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
32177
c631d9fb
CW
321782009-12-09 Colin Watson <cjwatson@ubuntu.com>
32179
32180 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
32181 if they're already set. This resolves the conflict between my
32182 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
32183 fixing the --grub-probe option again.
32184 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
32185 change on 2009-10-06, so that we now once again source
32186 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
32187
7c7b6106
RM
321882009-12-08 Robert Millan <rmh.grub@aybabtu.com>
32189
32190 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
32191 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
32192 `util/devicemap.c'.
32193
e3069ec1
CPE
321942009-12-08 Carles Pina i Estany <carles@pina.cat>
32195
32196 * include/grub/misc.h (grub_printf_): New declaration.
32197 * kern/misc.c (grub_printf_): New definition.
32198 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
32199 instead of `grub_printf' and `_'.
32200 * normal/menu_entry.c (store_completion): Likewise.
32201 (run): Likewise.
32202 (grub_menu_entry_run): Likewise.
32203 * normal/menu_text.c (grub_wait_after_message): Likewise.
32204 (notify_booting): Likewise.
32205 (notify_fallback): Likewise.
32206 (notify_execution_failure): Likewise.
32207
d6ceebf1
CW
322082009-12-07 Colin Watson <cjwatson@ubuntu.com>
32209
32210 * configure.ac: Check for vasprintf.
32211 * util/misc.c (asprintf): Move allocation from here ...
32212 (vasprintf): ... to here. New function.
32213 (xasprintf): New function.
32214 * include/grub/util/misc.h (vasprintf, xasprintf): Add
32215 prototypes.
32216 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
32217 * util/grub-mkfont.c (write_font): Likewise.
32218 * util/grub-probe.c (probe): Likewise.
32219 * util/hostdisk.c (make_device_name): Likewise.
32220
de6daa8b
DM
322212009-12-06 David S. Miller <davem@sunset.davemloft.net>
32222
32223 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
32224 anything even prefixed with 'cdrom' as a cdrom.
32225
0ad46fd7 322262009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
32227
32228 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
32229 mount points.
32230
98d3dc02
CPE
322312009-12-05 Carles Pina i Estany <carles@pina.cat>
32232
32233 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
32234 grub_gettext_msg_list.
32235 (grub_gettext_gettranslation_from_position): Return const char *
32236 and not char *.
a2c1332b 32237 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
32238 returns from the list if existing there.
32239 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
32240 (grub_gettext_delete_list): Delete the list.
32241 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
32242 lang environment variable is changed.
32243 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
32244
b283f108
VS
322452009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
32246
32247 Rename kernel.mod to kernel.img.
32248
32249 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
32250 (kernel_mod_EXPORTS): Rename to ...
32251 (kernel_img_EXPORTS): ... this.
32252 (kernel_mod_SOURCES): Rename to ...
32253 (kernel_img_SOURCES): ... this.
32254 (kernel_mod_HEADERS): Rename to ...
32255 (kernel_img_HEADERS): ... this. All users updated.
32256 (kernel_mod_CFLAGS): Rename to ...
32257 (kernel_img_CFLAGS): ... this.
32258 (kernel_mod_ASFLAGS): Rename to ...
32259 (kernel_img_ASFLAGS): ... this.
32260 (kernel_mod_LDFLAGS): Rename to ...
32261 (kernel_img_LDFLAGS): ... this.
32262 * conf/x86_64-efi.rmk: Likewise.
32263 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
32264 (read_kernel_image): ... this. All users updated.
32265 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
32266
69055f8a
CPE
322672009-12-05 Carles Pina i Estany <carles@pina.cat>
32268
32269 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
32270 (print_spaces): New function.
32271 (grub_print_ucs4): New function.
32272 (getstringwidth): New function.
32273 (print_message_indented): New function.
32274 (print_message): Gettexttize strings using print_message_indented.
32275 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
32276 width.
32277 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 32278 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
32279 Gettextize.
32280 * normal/menu_entry.c (store_completion): Cleanup the gettextized
32281 string.
32282 (run): Likewise.
32283 (grub_menu_entry_run): Likewise.
32284 * PO/POTFILES: Add normal/menu_entry.c.
32285
f616f51c
VS
322862009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
32287
32288 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
32289
57bbe3be
CPE
322902009-12-05 Carles Pina i Estany <carles@pina.cat>
32291
32292 * util/grub-install.in: Install gettext .mo files.
32293 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
32294
013d67a1
CPE
322952009-12-05 Carles Pina i Estany <carles@pina.cat>
32296
32297 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
32298 grub_dprintf.
32299
fb954db0
RM
323002009-12-05 Robert Millan <rmh.grub@aybabtu.com>
32301
32302 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
32303 non-firmware-dependant one in realmode.S takes precedence.
32304
6b8474f8
RM
323052009-12-04 Robert Millan <rmh.grub@aybabtu.com>
32306
32307 * commands/halt.c: Replace misc arch-specific headers with
32308 `<grub/misc.h>'.
32309 * commands/reboot.c: Likewise.
32310 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
32311 `<grub/misc.h>'.
32312 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
32313 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
32314 (kernel_img_SOURCES): ... to here.
32315
32316 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
32317 * include/grub/i386/pc/init.h: Likewise.
32318 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
32319 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
32320
32321 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
32322
32323 * include/grub/i386/halt.h: Remove.
32324 * include/grub/i386/reboot.h: Likewise.
32325
32326 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
32327
4b2e6ca2
DM
323282009-12-03 David S. Miller <davem@sunset.davemloft.net>
32329
32330 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
32331 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
32332 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
32333 "progname.h"
32334 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
32335 * util/sparc64/ieee1275/grub-setup.c: Likewise.
32336 (usage): Add missing comma in printf.
32337
5239348f
RM
323382009-12-02 Robert Millan <rmh.grub@aybabtu.com>
32339
32340 Use the same reboot approach on i386 coreboot and qemu as we do on
32341 BIOS.
32342
32343 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
32344 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
32345 * kern/i386/reboot.c: Remove.
32346 * include/grub/i386/reboot.h (grub_reboot): Export function.
32347 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
32348 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
32349 0xf000:0xfff0 instead of 0xffff:0x0000.
32350 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
32351 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
32352
ef34cbd4
RM
323532009-11-30 Robert Millan <rmh.grub@aybabtu.com>
32354
32355 Fix $srcdir != $objdir build.
32356
32357 * Makefile.in (po/%.po): Rewrite as ...
32358 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
32359
dc9837ea
ST
323602009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
32361
32362 Fix GNU/Hurd grub-install crash.
32363 * util/grub-probe.c (probe): Try to access `path' only when it is not
32364 NULL.
32365
2f857f98
VS
323662009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32367
32368 Correct module naming.
32369
32370 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
32371 (GRUB_MOD_INIT(efi_uga)): ... to this
32372 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
32373 (GRUB_MOD_FINI(efi_uga)): ... to this
32374 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
32375 (GRUB_MOD_INIT(efi_gop)): ... to this
32376 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
32377 (GRUB_MOD_FINI(efi_gop)): ... to this
32378
c5448046
RM
323792009-11-28 Robert Millan <rmh.grub@aybabtu.com>
32380
32381 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
32382 translatable.
32383 (usage): Translate `arg' strings using gettext().
32384 Thanks to Jordi Mallach for the suggestion.
32385
c85184ad
VS
323862009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32387
32388 GOP support. Based on patch from Bean
32389 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
32390
32391 * video/efi_gop.c: New file.
32392 * include/grub/efi/graphics_output.h: Likewise.
32393 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
32394 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
32395 variables.
32396 * conf/x86_64-efi.rmk: Likewise.
32397
8a4c48d8
VS
323982009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
32399
32400 Rename efi_fb to efi_uga.
32401
32402 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
32403 'efi_uga.mod'.
32404 (efi_fb_mod_SOURCES): Rename this ...
32405 (efi_uga_mod_SOURCES): ... to this.
32406 (efi_fb_mod_CFLAGS): Rename this ...
32407 (efi_uga_mod_CFLAGS): ... to this.
32408 (efi_fb_mod_LDFLAGS): Rename this ...
32409 (efi_uga_mod_LDFLAGS): ... to this.
32410 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
32411 'efi_uga.mod'.
32412 (efi_fb_mod_SOURCES): Rename this ...
32413 (efi_uga_mod_SOURCES): ... to this.
32414 (efi_fb_mod_CFLAGS): Rename this ...
32415 (efi_uga_mod_CFLAGS): ... to this.
32416 (efi_fb_mod_LDFLAGS): Rename this ...
32417 (efi_uga_mod_LDFLAGS): ... to this.
32418 * video/efi_fb.c: Move this ...
32419 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
32420
fb6c1a7b
RM
324212009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32422
32423 * po/README: New file. Explain our PO file workflow.
32424
3bc7896c
RM
324252009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32426
32427 * po/ChangeLog: Remove. Move relevant entries back to ...
32428 * ChangeLog: ... here.
32429 * po/ca.po: Remove (now handled by TLP).
32430 * po/id.po: Likewise.
32431 * po/zh_CN.po: Likewise.
32432 * Makefile.in (LINGUAS): Initialize in a way that supports
32433 empty set.
32434
9ed4841d
RM
324352009-11-27 Robert Millan <rmh.grub@aybabtu.com>
32436
32437 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
32438 reliing on po/LINGUAS.
32439 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
32440 (po/%.po): ... this.
32441
0ad46fd7 324422009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
32443
32444 * util/i386/efi/grub-mkimage.c: Include "progname.h".
32445 (main): Use `program_name' instead of nonexistent `progname'.
32446
e30dd392
FZ
324472009-11-26 Felix Zielcke <fzielcke@z-51.de>
32448
32449 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
32450 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
32451
7656de4f
RM
324522009-11-26 Robert Millan <rmh.grub@aybabtu.com>
32453
32454 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
32455 commit.
32456 * conf/i386-efi.rmk: Likewise.
32457 * conf/i386-ieee1275.rmk: Likewise.
32458 * conf/powerpc-ieee1275.rmk: Likewise.
32459 * conf/sparc64-ieee1275.rmk: Likewise.
32460 * conf/x86_64-efi.rmk: Likewise.
32461
db77c4d4
FZ
324622009-11-26 Felix Zielcke <fzielcke@z-51.de>
32463
32464 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
32465
a755bb04
FZ
324662009-11-26 Felix Zielcke <fzielcke@z-51.de>
32467
32468 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
32469
8a4c07fd
RM
324702009-11-26 Robert Millan <rmh.grub@aybabtu.com>
32471
32472 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
32473 (grub_mkdevicemap_SOURCES): New variable.
32474 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
32475 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
32476 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
32477 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
32478 (grub_mkdevicemap_SOURCES): Remove.
32479 * conf/i386-efi.rmk: Likewise.
32480 * conf/i386-ieee1275.rmk: Likewise.
32481 * conf/i386-pc.rmk: Likewise.
32482 * conf/powerpc-ieee1275.rmk: Likewise.
32483 * conf/sparc64-ieee1275.rmk: Likewise.
32484 * conf/x86_64-efi.rmk: Likewise.
32485 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
32486 (usage): Fix strings to use `program_name'.
32487 (main): Initialize gettext.
32488 * util/grub-editenv.c: Likewise.
32489 * util/grub-emu.c: Likewise.
32490 * util/grub-fstest.c: Likewise.
32491 * util/grub-mkdevicemap.c: Likewise.
32492 * util/grub-mkfont.c: Likewise.
32493 * util/grub-mkrelpath.c: Likewise.
32494 * util/grub-pe2elf.c: Likewise.
32495 * util/grub-probe.c: Likewise.
32496 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
32497 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
32498 * util/sparc64/ieee1275/grub-setup.c: Likewise.
32499
32500 * util/misc.c: Include `"progname.h"'.
32501 (progname): Remove variable.
32502 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
32503
6f61ed55
FZ
325042009-11-25 Felix Zielcke <fzielcke@z-51.de>
32505
32506 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
32507 printf and print a newline after the menuentry header line.
32508 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
32509
f022876b
FZ
325102009-11-25 Felix Zielcke <fzielcke@z-51.de>
32511
32512 autoconf >= 2.60 support $(localedir).
32513
32514 * INSTALL: Note that autoconf 2.60 is required.
32515 * configure.ac (AC_PREREQ): Bump to 2.60.
32516 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
32517 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
32518
6717926e
YB
325192009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
32520
32521 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
32522 aclocal is run.
32523
08806a54
RM
325242009-11-25 Robert Millan <rmh.grub@aybabtu.com>
32525
32526 * normal/main.c (grub_normal_read_line): Fix off-by-one
32527 buffer overflow.
32528
13b33fba
RM
325292009-11-25 Robert Millan <rmh.grub@aybabtu.com>
32530
32531 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
32532 "parser.grub" in grub_command_execute() call.
32533
4a8572e9
CPE
325342009-11-24 Carles Pina i Estany <carles@pina.cat>
32535
32536 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
32537 * conf/i386-efi.rmk: Likewise.
32538 * conf/i386-ieee1275.rmk: Likewise.
32539 * conf/i386-pc.rmk: Likewise.
32540 * conf/powerpc-ieee1275.rmk: Likewise.
32541 * conf/sparc64-ieee1275.rmk: Likewise.
32542 * conf/x86_64-efi.rmk: Likewise.
32543 * gettext/gettex.c: Include <grub/i18n.h>.
32544 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
32545 here ...
32546 * include/grub/i18n.h: ... to here
32547 * include/grub/i18n.h: ... to here.
32548 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 32549 (grub_gettext_dummy): Move above user.
4a8572e9 32550
bee48093
FZ
325512009-11-24 Felix Zielcke <fzielcke@z-51.de>
32552
32553 * util/Makefile.in (install-local): Convert a `for' into a normal
32554 shell expansion.
32555
a031e91c
RM
325562009-11-24 Robert Millan <rmh.grub@aybabtu.com>
32557
32558 * autogen.sh: Add automake call.
32559 * config.guess: Remove.
32560 * config.sub: Likewise.
32561 * install-sh: Likewise.
32562
26bec39d
FZ
325632009-11-24 Felix Zielcke <fzielcke@z-51.de>
32564
32565 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
32566
8e2532fd
FZ
325672009-11-24 Felix Zielcke <fzielcke@z-51.de>
32568
32569 * util/Makefile.in (install-local): Convert a make `$(foreach)'
32570 function to a normal shell `for'.
32571
fefa1b7d
FZ
325722009-11-24 Felix Zielcke <fzielcke@z-51.de>
32573
32574 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
32575
4501250b
FZ
325762009-11-24 Felix Zielcke <fzielcke@z-51.de>
32577
32578 * util/grub-mkrelpath.c: New file.
32579 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
32580 (grub_mkrelpath_SOURCES): New variable.
32581 * include/grub/util/misc.h: New function prototype.
32582 * util/misc.c (make_system_path_relative_to_its_root): New function.
32583
32584 * util/grub-mkconfig_lib.in (bindir): New variable.
32585 (grub_mkrelpath): Likewise.
32586 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
32587
32588 * util/probe.c (probe): Make the file path relative to its root.
32589 Change a info message to use the GRUB path. Enable again the
32590 check if we can read the file with GRUB facilities.
32591
32592 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
32593 to its root.
32594
11d9778b
FZ
325952009-11-24 Felix Zielcke <fzielcke@z-51.de>
32596
32597 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
32598 platform.
32599
4465287d
FZ
326002009-11-24 Felix Zielcke <fzielcke@z-51.de>
32601
32602 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
32603 strncmp().
32604
62b47f22
FZ
326052009-11-24 Felix Zielcke <fzielcke@z-51.de>
32606
32607 * util/getroot.c (grub_util_is_dmraid): New function.
32608 (grub_util_get_dev_abstraction): Treat dmraid and multipath
32609 devices as normal ones, not as LVM.
32610
1eafb9b9 326112009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
32612
32613 * conf/common.rmk: Add grub-gettext_lib target and updates
32614 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
32615 LDFLAGS.
32616 * gettext/gettext.c: New file. (Reads mo files).
32617 * include/grub/file.h (grub_file_pread): New prototype.
32618 * include/grub/i18n.h (_): New prototype.
32619 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
32620 prototypes.
32621 * kern/misc.c (grub_gettext_dummy): New function.
32622 * normal/menu_text.c: Include <grub/i18n.h>.
32623 * normal/menu_text.c (print_timeout): Gettexttize string.
32624 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
32625 * po/POTFILES: Add `normal/menu_text.c'.
32626 * po/ca.po: Add new translations.
c3ea6bd4
CPE
32627 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
32628 gettext module and defines locale_dir and lang in grub.cfg.
32629 * NEWS: Add gettext support.
32630
0fdb2568
RM
326312009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32632
32633 * util/hostdisk.c: Include `<grub/i18n.h>'.
32634 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
32635 (make_device_name): Rewrite using asprintf.
32636 (convert_system_partition_to_system_disk): Replace 0 with NULL.
32637 (find_system_device): If a device is not found, generate one just
32638 by reusing the OS path name.
32639 (read_device_map): Make it permissible for device.map not to exist.
32640
f515aa62
RM
326412009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32642
32643 * script/sh/execute.c: Move from here ...
32644 * script/execute.c: ... to here. Update all users.
32645 * script/sh/function.c: Move from here ...
32646 * script/function.c: ... to here. Update all users.
32647 * script/sh/lexer.c: Move from here ...
32648 * script/lexer.c: ... to here. Update all users.
32649 * script/sh/main.c: Move from here ...
32650 * script/main.c: ... to here. Update all users.
32651 * script/sh/parser.y: Move from here ...
32652 * script/parser.y: ... to here. Update all users.
32653 * script/sh/script.c: Move from here ...
32654 * script/script.c: ... to here. Update all users.
32655
f84b481b
RM
326562009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32657
32658 * configure.ac: Detect all `emu' platforms. Define
32659 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
32660 --enable-grub-emu logic. Disable include/grub/machine
32661 symlink on `emu' platforms.
32662
32663 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
32664 * gensymlist.sh.in: Likewise.
32665
32666 * include/grub/i386/coreboot/machine.h: Remove file.
32667 * include/grub/i386/efi/machine.h: Likewise.
32668 * include/grub/i386/ieee1275/machine.h: Likewise.
32669 * include/grub/i386/pc/machine.h: Likewise.
32670 * include/grub/i386/qemu/machine.h: Likewise.
32671 * include/grub/powerpc/ieee1275/machine.h: Likewise.
32672 * include/grub/sparc64/ieee1275/machine.h: Likewise.
32673 * include/grub/x86_64/efi/machine.h: Likewise.
32674
32675 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
32676 * commands/halt.c: Likewise.
32677 * commands/reboot.c: Likewise.
32678 * include/grub/autoefi.h: Likewise.
32679 * include/grub/i386/at_keyboard.h: Likewise.
32680 * include/grub/i386/kernel.h: Likewise.
32681 * include/grub/i386/loader.h: Likewise.
32682 * include/grub/i386/pc/memory.h: Likewise.
32683 * kern/dl.c: Likewise.
32684 * kern/i386/coreboot/init.c: Likewise.
32685 * loader/i386/bsd.c: Likewise.
32686 * loader/i386/linux.c: Likewise.
32687 * loader/multiboot_loader.c: Likewise.
32688 * term/i386/pc/serial.c: Likewise.
32689 * term/usb_keyboard.c: Likewise.
32690
32691 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
32692 `<grub/machine/machine.h>'
32693 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
32694 * util/misc.c: Remove `<grub/machine/machine.h>' and
32695 `<grub/machine/time.h>'.
32696
32697 * Makefile.in (enable_grub_emu): Remove variable.
32698 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
32699
32700 * conf/any-emu.rmk: New file.
32701 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
32702 (grub_emu_init.c): Move from here ...
32703 * conf/any-emu.rmk: ... to here.
32704
32705 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
32706 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
32707 * conf/any-emu.rmk: ... to here.
32708
4efeab03
RM
327092009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32710
32711 * include/grub/parser.h (grub_parser_register): Document need
32712 of `name' parameter.
32713 * normal/main.c (grub_normal_read_line): Simplify prompt string.
32714 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
32715 "sh" to "grub".
32716
ea1dd8bf
RM
327172009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32718
32719 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
32720 `$(XGETTEXT)'.
32721 * include/grub/i18n.h (N_): New macro.
32722 * util/mkisofs/mkisofs.h: Likewise.
32723 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
32724 around N_().
32725 (usage): Use gettext() to translate help strings when printing them.
32726
0c140626
RM
327272009-11-23 Robert Millan <rmh.grub@aybabtu.com>
32728
32729 Based on patch from Bean
32730 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
32731
32732 * video/efi_fb.c: New file.
32733 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
32734 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
32735 variables.
32736 * conf/x86_64-efi.rmk: Likewise.
32737
87d58298
RM
327382009-11-22 Robert Millan <rmh.grub@aybabtu.com>
32739
32740 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
32741 * util/i386/pc/grub-setup.c: Likewise.
32742
994cc3a3
ST
327432009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
32744
32745 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
32746 <hurd/fs.h>
32747 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
32748 file_get_storage_info to implement grub_guess_root_device.
32749
26a61d6a
FZ
327502009-11-21 Felix Zielcke <fzielcke@z-51.de>
32751
32752 * Makefile.in (target): Use make's builtin $(shell) function
32753 instead of calling directly $(SHELL) to create the locale directories,
32754 inside the $(foreach) function.
32755
74ff1dd5
FZ
327562009-11-21 Felix Zielcke <fzielcke@z-51.de>
32757
32758 * util/grub-mkrescue.in: Print an error and usage if output option
32759 has not been given.
32760
0b787d0e
FZ
327612009-11-21 Felix Zielcke <fzielcke@z-51.de>
32762
32763 Patch from Loïc Minier <loic.minier@ubuntu.com>.
32764 * util/grub.d/30_os-prober.in: Cope with Linux entries where
32765 root and /boot are on different devices.
32766
1164b270
RM
327672009-11-21 Robert Millan <rmh.grub@aybabtu.com>
32768
32769 Fix build for srcdir != objdir.
32770
32771 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
32772 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
32773 $(srcdir).
32774 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
32775 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
32776 reference for input.
32777
13774a2f
RM
327782009-11-21 Robert Millan <rmh.grub@aybabtu.com>
32779
32780 * util/grub-mkrescue.in: Use source directory direcly (without copiing
32781 or hardlinking it). Remove -J option, Joliet is not compatible with
32782 multiple source directories.
32783
efda854e
RM
327842009-11-21 Carles Pina i Estany <carles@pina.cat>
327852009-11-21 Robert Millan <rmh.grub@aybabtu.com>
32786
32787 * util/grub-mkrescue.in: Recognize `--override-directory' option.
32788 (process_input_dir): New function. Process an arbitrary input
32789 directory.
32790 Misc adjustments to support both "override mode" and system-wide mode.
32791
6c09890c
FZ
327922009-11-20 Felix Zielcke <fzielcke@z-51.de>
32793
32794 * configure.ac (UNIFONT_BDF): Rename to ...
32795 (FONT_SOURCE): ... this. Update all users.
32796
a797824f
FZ
327972009-11-20 Felix Zielcke <fzielcke@z-51.de>
32798
32799 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
32800 to the list of unifont files to look for.
32801
cd4f42b0
RM
328022009-11-19 Robert Millan <rmh.grub@aybabtu.com>
32803
32804 Patch from Joe Auricchio <jauricchio@gmail.com>
32805 * commands/minicmd.c (grub_mini_cmd_clear): New function.
32806 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
32807 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
32808
393c783d
FZ
328092009-11-19 Felix Zielcke <fzielcke@z-51.de>
32810
32811 * Makefile.in (install-local): Add a missing backslash.
32812
b2f1e327
FZ
328132009-11-19 Felix Zielcke <fzielcke@z-51.de>
32814
32815 * include/grub/x86_64/io.h: New file.
32816
f577f7a0
RM
328172009-11-19 Robert Millan <rmh.grub@aybabtu.com>
32818
32819 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
32820 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
32821 Include `"progname.h"'.
32822 (main): Initialize gettext.
32823 * util/i386/pc/grub-setup.c: Gettexttize.
32824 * util/i386/pc/grub-mkimage.c: Likewise.
32825
32826 * Makefile.in (po/*.po): Redefine as ...
32827 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
32828
3bc7896c
RM
32829 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
32830
c37943b6
RM
328312009-11-19 Robert Millan <rmh.grub@aybabtu.com>
32832
32833 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
32834 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
32835 (program_name): Remove.
32836 (main): Initialize gettext support.
6323f705
RM
32837 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
32838 Include `<libintl.h>'.
32839 (_): New macro.
c37943b6
RM
32840
32841 * util/mkisofs/eltorito.c: Gettexttize.
32842 * util/mkisofs/joliet.c: Likewise.
32843 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
32844 * util/mkisofs/multi.c: Likewise.
32845 * util/mkisofs/rock.c: Likewise.
32846 * util/mkisofs/tree.c: Likewise.
32847 * util/mkisofs/write.c: Likewise.
32848
3bc7896c
RM
32849 * po/POTFILES: Update with new files.
32850
5ce77c6e
RM
328512009-11-18 Robert Millan <rmh.grub@aybabtu.com>
32852
32853 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
32854 * util/mkisofs/iso9660.h: Likewise.
32855 * util/mkisofs/joliet.c: Likewise.
32856 * util/mkisofs/mkisofs.c: Likewise.
32857 * util/mkisofs/mkisofs.h: Likewise.
32858 * util/mkisofs/rock.c: Likewise.
32859 * util/mkisofs/tree.c: Likewise.
32860 * util/mkisofs/write.c: Likewise.
32861
32862 * util/mkisofs/eltorito.c (rcsid): Remove.
32863 * util/mkisofs/hash.c: Likewise.
32864 * util/mkisofs/joliet.c: Likewise.
32865 * util/mkisofs/name.c: Likewise.
32866 * util/mkisofs/rock.c: Likewise.
32867 * util/mkisofs/tree.c: Likewise.
32868 * util/mkisofs/write.c: Likewise.
32869
1dabbc77
RM
328702009-11-18 Robert Millan <rmh.grub@aybabtu.com>
32871
32872 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
32873 instead of static allocation.
32874 * util/mkisofs/match.h: Likewise.
32875
633877cb
RM
328762009-11-18 Robert Millan <rmh.grub@aybabtu.com>
32877
3bc7896c
RM
32878 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
32879 and `util/grub.d/10_linux.in'.
633877cb
RM
32880 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
32881 translatable Shell files.
32882
af1c0c85
RM
328832009-11-18 Robert Millan <rmh.grub@aybabtu.com>
32884
32885 * Makefile.in ($(srcdir)/aclocal.m4): New target.
32886
769ae37b
RM
328872009-11-17 Robert Millan <rmh.grub@aybabtu.com>
32888
32889 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 32890 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
32891 * util/grub.d/10_kfreebsd.in (bindir): New variable.
32892 Add gettext initialization.
32893 (kfreebsd_entry): Make menuentry output translatable.
32894
328952009-11-17 Robert Millan <rmh.grub@aybabtu.com>
32896
32897 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
32898 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
32899 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
32900 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
32901 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 32902 * po/LINGUAS: New file.
769ae37b
RM
32903
329042009-11-17 Robert Millan <rmh.grub@aybabtu.com>
32905
32906 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
32907 other things).
32908 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
32909 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
32910 bindtextdomain() calls for gettext initialization.
32911
329122009-11-17 Robert Millan <rmh.grub@aybabtu.com>
32913
32914 * gnulib/progname.c: New file (imported from Gnulib).
32915 * gnulib/progname.h: Likewise.
32916 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
32917 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
32918 (usage): Replace `progname' with `program_name'.
32919 (main): Use set_program_name() for program name initialization.
32920
329212009-11-17 Robert Millan <rmh.grub@aybabtu.com>
32922
32923 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
32924 from here ...
32925 * Makefile.in (CPPFLAGS): ... to here.
32926
329272009-11-16 Robert Millan <rmh.grub@aybabtu.com>
32928
32929 * aclocal.m4: Move from here ...
32930 * acinclude.m4: ... to here.
32931 * autogen.sh: Add call to `aclocal'.
32932 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
32933
329342009-11-16 Robert Millan <rmh.grub@aybabtu.com>
32935
32936 * Makefile.in (CLEANFILES): Add `po/*.mo'.
32937 (LINGUAS): New variable.
32938 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
32939 (install-local): Install MO files.
32940 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
32941 * include/grub/i18n.h: New file.
3bc7896c
RM
32942 * po/POTFILES: New file.
32943 * po/ca.po: New file.
769ae37b
RM
32944 * util/grub.d/10_linux.in (bindir): New variable.
32945 Add gettext initialization.
32946 (linux_entry): Make menuentry output translatable.
32947 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
32948 (usage): Make --help output translatable.
32949 (main): Initialize gettext.
32950
02c0a6ad
RM
329512009-11-17 Robert Millan <rmh.grub@aybabtu.com>
32952
32953 * import_gcry.py: New file (written by Vladimir with minor
32954 adjustments).
32955 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
32956 ciphers.
32957 * INSTALL: Document that Python is required for bootstrap.
32958
329592009-11-17 Robert Millan <rmh.grub@aybabtu.com>
32960
32961 Import ciphers from libgcrypt 1.4.4.
32962
32963 * lib/libgcrypt/cipher/ChangeLog
32964 * lib/libgcrypt/cipher/ac.c
32965 * lib/libgcrypt/cipher/arcfour.c
32966 * lib/libgcrypt/cipher/bithelp.h
32967 * lib/libgcrypt/cipher/blowfish.c
32968 * lib/libgcrypt/cipher/camellia-glue.c
32969 * lib/libgcrypt/cipher/camellia.c
32970 * lib/libgcrypt/cipher/camellia.h
32971 * lib/libgcrypt/cipher/cast5.c
32972 * lib/libgcrypt/cipher/cipher.c
32973 * lib/libgcrypt/cipher/crc.c
32974 * lib/libgcrypt/cipher/des.c
32975 * lib/libgcrypt/cipher/dsa.c
32976 * lib/libgcrypt/cipher/ecc.c
32977 * lib/libgcrypt/cipher/elgamal.c
32978 * lib/libgcrypt/cipher/hash-common.c
32979 * lib/libgcrypt/cipher/hash-common.h
32980 * lib/libgcrypt/cipher/hmac-tests.c
32981 * lib/libgcrypt/cipher/md.c
32982 * lib/libgcrypt/cipher/md4.c
32983 * lib/libgcrypt/cipher/md5.c
32984 * lib/libgcrypt/cipher/primegen.c
32985 * lib/libgcrypt/cipher/pubkey.c
32986 * lib/libgcrypt/cipher/rfc2268.c
32987 * lib/libgcrypt/cipher/rijndael-tables.h
32988 * lib/libgcrypt/cipher/rijndael.c
32989 * lib/libgcrypt/cipher/rmd.h
32990 * lib/libgcrypt/cipher/rmd160.c
32991 * lib/libgcrypt/cipher/rsa.c
32992 * lib/libgcrypt/cipher/seed.c
32993 * lib/libgcrypt/cipher/serpent.c
32994 * lib/libgcrypt/cipher/sha1.c
32995 * lib/libgcrypt/cipher/sha256.c
32996 * lib/libgcrypt/cipher/sha512.c
32997 * lib/libgcrypt/cipher/tiger.c
32998 * lib/libgcrypt/cipher/twofish.c
32999 * lib/libgcrypt/cipher/whirlpool.c
33000
af2f93ac
RM
330012009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33002
33003 Fix build for systems without error().
33004
33005 * gnulib/error.c: New file (imported from Gnulib).
33006 * gnulib/error.h: Likewise.
33007 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
33008 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
33009 (this variable is now used by error()).
33010
73fb3dd5
FZ
330112009-11-16 Felix Zielcke <fzielcke@z-51.de>
33012
814f5e96
FZ
33013 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
33014 instead of relying that char is signed.
73fb3dd5 33015
a691ca33
VS
330162009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
33017
33018 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
33019 blocksize different from specified.
33020 (grub_pxefs_read): Likewise.
33021
2af8f0f4
FZ
330222009-11-16 Felix Zielcke <fzielcke@z-51.de>
33023
33024 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
33025
33026 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
33027 (grub_ata_readwrite): Likewise. Update 2 format strings.
33028 (grub_atapi_read): Likewise.
33029
33030 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
33031 * conf/i386.rmk (pkglib_MODULES): ... to here ...
33032 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
33033 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
33034 (ata_mod_LDFLAGS): Move from here ...
33035 * conf/i386.rmk: ... to here ...
33036 * conf/x86_64-efi.rmk: ... and here.
33037 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
33038 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
33039
83bdecaf
RM
330402009-11-16 Robert Millan <rmh.grub@aybabtu.com>
33041
33042 Relicense multiboot.h, with RMS' blessing.
33043
33044 * include/multiboot.h: Change to X11 license.
33045
fd6fd3d7
RM
330462009-11-15 Robert Millan <rmh.grub@aybabtu.com>
33047
33048 Support --version in grub-mkisofs.
33049
33050 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
33051 (OPTION_VERSION): New macro.
33052 (ld_options): Recognize --version.
33053 (usage): Move `program_name' from here ...
33054 (program_name): ... to here. Add `static' qualifier.
33055 (main): Recognize `OPTION_VERSION'.
33056
16a88c49
FZ
330572009-11-15 Felix Zielcke <fzielcke@z-51.de>
33058
33059 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
33060 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
33061
a4158476
RM
330622009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33063
33064 Fix help2man generation for mkisofs.
33065
33066 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
33067 (usage): Send output to stdout (rather than stderr).
33068
fc2208b0
RM
330692009-11-14 Robert Millan <rmh.grub@aybabtu.com>
33070
33071 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
33072 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33073 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
33074 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
33075 (bin_SCRIPTS): Add `grub-mkfloppy'.
33076 (grub_mkfloppy_SOURCES): New variable.
33077
33078 * util/grub-mkrescue.in: New file.
33079 * util/i386/pc/grub-mkfloppy.in: New file.
33080
33081 * util/i386/coreboot/grub-mkrescue.in: Remove.
33082 * util/i386/pc/grub-mkrescue.in: Remove.
33083
8d0edf4a
RM
330842009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33085
33086 * include/grub/multiboot.h (struct grub_multiboot_header): Move
33087 from here ...
33088 * include/multiboot.h (struct multiboot_header): ... to here. Update
33089 all users.
33090 * include/grub/multiboot.h (struct grub_multiboot_info): Move
33091 from here ...
33092 * include/multiboot.h (struct multiboot_info): ... to here. Update
33093 all users.
33094 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
33095 from here ...
33096 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
33097 Update all users.
33098 * include/grub/multiboot.h (struct grub_mod_list): Move
33099 from here ...
33100 * include/multiboot.h (struct multiboot_mod_list): ... to here.
33101 Update all users.
33102
a73f5969
RM
331032009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33104
33105 * include/multiboot2.h (multiboot_word): Rename from this ...
33106 (multiboot2_word): ... to this. Update all users.
33107 (multiboot_header): Rename from this ...
33108 (multiboot2_header): ... to this. Update all users.
33109 (multiboot_tag_header): Rename from this ...
33110 (multiboot2_tag_header): ... to this. Update all users.
33111 (multiboot_tag_start): Rename from this ...
33112 (multiboot2_tag_start): ... to this. Update all users.
33113 (multiboot_tag_name): Rename from this ...
33114 (multiboot2_tag_name): ... to this. Update all users.
33115 (multiboot_tag_module): Rename from this ...
33116 (multiboot2_tag_module): ... to this. Update all users.
33117 (multiboot_tag_memory): Rename from this ...
33118 (multiboot2_tag_memory): ... to this. Update all users.
33119 (multiboot_tag_unused): Rename from this ...
33120 (multiboot2_tag_unused): ... to this. Update all users.
33121 (multiboot_tag_end): Rename from this ...
33122 (multiboot2_tag_end): ... to this. Update all users.
33123
1c8927f0
RM
331242009-11-13 Robert Millan <rmh.grub@aybabtu.com>
33125
33126 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
33127 this platform we should support Multiboot1 first.
33128
33129 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
33130 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
33131 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
33132
6e1e0d89
RM
331332009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33134
33135 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
33136 of write calls (converting them to fwrite() if they aren't already).
33137 (get_torito_desc): Likewise.
33138 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
33139
7f2b34d8
RM
331402009-11-12 Robert Millan <rmh.grub@aybabtu.com>
33141
33142 * util/i386/pc/grub-install.in: Move from here ...
33143 * util/grub-install.in: ... to here. Update all users.
33144
c0ef3311
CW
331452009-11-11 Colin Watson <cjwatson@ubuntu.com>
33146
33147 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
33148
e1f240ff
RM
331492009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33150
33151 Support for El Torito without floppy emulation.
33152
33153 * util/mkisofs/eltorito.c: Include `<errno.h>'.
33154 (init_boot_catalog): Improve error handling.
33155 (get_torito_desc): Don't use floppy emulation unless requested by
33156 user. Patch boot information table when requested via
33157 `-boot-info-table'.
33158 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
33159 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
33160 (use_boot_info_table): New variables.
33161 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
33162 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
33163 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
33164 `--eltorito-emul-floppy'.
33165 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
33166 and `OPTION_ELTORITO_EMUL_FLOPPY'.
33167 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
33168 (use_boot_info_table, get_731): New prototypes.
33169 * util/mkisofs/write.c (get_731): New function.
33170
af7d4de5
FZ
331712009-11-11 Felix Zielcke <fzielcke@z-51.de>
33172
33173 Fix the generation of the man page.
33174
33175 * util/pc/i386/grub-install.in: Source
33176 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33177
2c55dbc0
RM
331782009-11-11 Robert Millan <rmh.grub@aybabtu.com>
33179
33180 Large file support for grub-mkisofs.
33181
33182 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
33183 * util/mkisofs/mkisofs.c (next_extent, last_extent)
33184 (session_start): Upgrade type to `uint64_t'. Update all users.
33185 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
33186 (struct directory_entry): Upgrade type of `starting_block' and
33187 `size' to `uint64_t'. Update all users.
33188 (struct deferred): Remove unused structure.
33189 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
33190 Update all users.
33191 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
33192 file is larger than `UINT32_MAX'.
33193 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
33194 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
33195 return value.
33196 (struct deferred_write): Upgrade type of `extent' and `size' to
33197 `uint64_t'. Update all users.
33198 (last_extent_written): Upgrade type to `uint64_t'. Update all
33199 users.
33200 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
33201 Update all users. Upgrade type of `remain' to `int64_t' and
33202 `use' to `size_t'. Use error() to handle fread() errors.
33203 (write_files): Rely on write_one_file() rather than calling
33204 xfwrite() directly.
33205
6a9cead5
FZ
332062009-11-09 Felix Zielcke <fzielcke@z-51.de>
33207
33208 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
33209
4825d790
RM
332102009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33211
33212 * util/mkisofs/fnmatch.c: Remove.
33213 * util/mkisofs/getopt1.c: Likewise.
33214 * util/mkisofs/getopt.c: Likewise.
33215 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
33216 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
33217 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
33218 `gnulib/getopt1.c' and `gnulib/getopt.c'.
33219 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
33220
33221 * configure.ac: Detect `mingw32msvc' host_os.
33222 Check for lstat(), getuid() and getgid().
33223
33224 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
33225 instances of `u_char' with `uint8_t'.
33226
33227 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
33228 [!HAVE_GETUID] (getuid): New function (stub).
33229 [!HAVE_GETGID] (getgid): Likewise.
33230 [!HAVE_LSTAT] (lstat): Likewise.
33231 [!S_IROTH] (S_IROTH): New macro (dummy).
33232 [!S_IRGRP] (S_IRGRP): Likewise.
33233
84b860d8
RM
332342009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33235
33236 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
33237 conditional expression).
33238
66e9b712
RM
332392009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33240
33241 Import from Gnulib.
33242
33243 * gnulib/fnmatch.c: New file.
33244 * gnulib/fnmatch.h: Likewise.
33245 * gnulib/fnmatch_loop.c: Likewise.
33246 * gnulib/getopt.c: Likewise.
33247 * gnulib/getopt.h: Likewise.
33248 * gnulib/getopt1.c: Likewise.
33249 * gnulib/getopt_int.h: Likewise.
33250 * gnulib/gettext.h: Likewise.
33251
34f4a5b0
RM
332522009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33253
33254 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
33255 * normal/handler.c (read_handler_list): Likewise.
33256
ac451143
RM
332572009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33258
33259 Misc cleanup.
33260
33261 * kern/command.c (grub_register_command_prio): Use
33262 grub_zalloc() instead of explicitly zeroing data.
33263 * kern/list.c: Include `<grub/mm.h>'.
33264 (grub_named_list_find): Replace `0' with `NULL'.
33265 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
33266 (fs_module_list): Change type to `grub_named_list_t'. Update all
33267 users.
33268 * normal/dyncmd.c (read_command_list): Add space between function
33269 call and parenthesis.
33270 * normal/handler.c (read_handler_list): Likewise.
33271
4089b167
RM
332722009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33273
33274 * normal/auth.c (punishment_delay): Moved from here ...
33275 (grub_auth_strcmp): ... to here (inside function).
33276
325f5037
RM
332772009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33278
33279 * include/grub/list.h (struct grub_named_list): Remove `const'
33280 qualifier from `name'.
33281 (struct grub_prio_list): Likewise.
33282
7aea29a3
RM
332832009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33284
33285 * normal/auth.c: Include `<grub/time.h>'.
33286 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
33287
3fd6f044
RM
332882009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33289
33290 * normal/auth.c (punishment_delay): New variable.
33291 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
33292 (grub_auth_check_authentication): Punish failed login attempts with
33293 an incremental (2^N) delay.
33294
a4cd68e4
RM
332952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33296
33297 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
33298 path with $(srcdir).
33299
7ad12f43
VS
333002009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
33301
33302 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
33303
c1129f03
RM
333042009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33305
33306 * util/i386/coreboot/grub-mkrescue.in: New file.
33307 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
33308 variables.
33309
33310 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
33311 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
33312 * configure.ac: Add header and function checks to satisfy grub-mkisofs
33313 requirements.
33314 * util/mkisofs/defaults.h: New file.
33315 * util/mkisofs/eltorito.c: Likewise.
33316 * util/mkisofs/exclude.h: Likewise.
33317 * util/mkisofs/fnmatch.c: Likewise.
33318 * util/mkisofs/getopt.c: Likewise.
33319 * util/mkisofs/getopt1.c: Likewise.
33320 * util/mkisofs/hash.c: Likewise.
33321 * util/mkisofs/include/fctldefs.h: Likewise.
33322 * util/mkisofs/include/mconfig.h: Likewise.
33323 * util/mkisofs/include/prototyp.h: Likewise.
33324 * util/mkisofs/include/statdefs.h: Likewise.
33325 * util/mkisofs/iso9660.h: Likewise.
33326 * util/mkisofs/joliet.c: Likewise.
33327 * util/mkisofs/match.c: Likewise.
33328 * util/mkisofs/match.h: Likewise.
33329 * util/mkisofs/mkisofs.c: Likewise.
33330 * util/mkisofs/mkisofs.h: Likewise.
33331 * util/mkisofs/multi.c: Likewise.
33332 * util/mkisofs/name.c: Likewise.
33333 * util/mkisofs/rock.c: Likewise.
33334 * util/mkisofs/tree.c: Likewise.
33335 * util/mkisofs/write.c: Likewise.
33336
ec8bb77d
VS
333372009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
33338
33339 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
33340 being insecure.
33341
3716b12c
RM
333422009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33343
33344 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
33345 `grub-mkimage' (and use $0 when possible).
33346
b97b7b91
RM
333472009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33348
33349 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
33350 error message for excessively large memory map.
33351
04114812
RM
333522009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33353
33354 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
33355 executable bit.
33356
e4eb2373
RM
333572009-11-08 Robert Millan <rmh.grub@aybabtu.com>
33358
33359 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
33360 message for coreboot users.
33361
c926e1d5 333622009-11-07 Robert Millan <rmh.grub@aybabtu.com>
33363
33364 Fix build with GNU gold.
33365
33366 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
33367 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
33368 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
33369 link addresses.
33370 * aclocal.m4: Likewise.
33371
86e5b1db 333722009-11-04 Felix Zielcke <fzielcke@z-51.de>
33373
33374 * configure.ac (AC_PREREQ): Bump to 2.59d.
33375 * INSTALL: Make it more clear when Autoconf and Ruby are
33376 needed and when to run `./autogen.sh'.
33377
246cd78f 333782009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
33379
33380 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
33381 OSes.
33382
4f9dfb37 333832009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33384
33385 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
33386
b82bd5e1 333872009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33388
33389 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
33390 giving it to GNU Mach.
33391
ff1a9bca 333922009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33393
33394 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
33395 GNU partition number to get internal GRUB partition number.
33396
61697d9c 333972009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33398
33399 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
33400 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
33401
a50569e1 334022009-11-01 Robert Millan <rmh.grub@aybabtu.com>
33403
33404 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
33405 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
33406 case.
33407
5b153867 334082009-11-01 Felix Zielcke <fzielcke@z-51.de>
33409
33410 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
33411
d9e2cd70 334122009-10-30 Robert Millan <rmh.grub@aybabtu.com>
33413
33414 Fix build problem.
33415
33416 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
33417 `-isystem=$(srcdir)/include'.
33418
805111a4 334192009-10-30 Robert Millan <rmh.grub@aybabtu.com>
33420
33421 * util/i386/pc/grub-install.in: Remove hint that device.map should be
33422 checked (grub-install doesn't currently rely on it).
33423
fa6e945f 334242009-10-29 Robert Millan <rmh.grub@aybabtu.com>
33425
33426 Revert SVN r2660.
33427
33428 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
33429 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
33430 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
33431 * conf/i386-ieee1275.rmk: Likewise.
33432 * conf/i386-pc.rmk: Likewise.
33433 * conf/powerpc-ieee1275.rmk: Likewise.
33434 * conf/sparc64-ieee1275.rmk: Likewise.
33435 * conf/x86_64-efi.rmk: Likewise.
33436
cee15086 334372009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33438
33439 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
33440
95b9239e 334412009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33442
33443 * include/grub/misc.h: Stop checking for APPLE_CC.
33444
2ed19dfd 334452009-10-28 Robert Millan <rmh.grub@aybabtu.com>
33446
33447 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
33448 doesn't cause an infinite call loop.
33449
fdcdde19 334502009-10-28 Felix Zielcke <fzielcke@z-51.de>
33451
33452 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
33453 strings.
33454
cefabfe1 334552009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33456
33457 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
33458 variable.
33459 * Makefile.in: Likewise.
33460
ed96ab6d 334612009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33462
33463 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
33464
0579b753 334652009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33466
33467 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
33468
478df409 334692009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33470
33471 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
33472
083d1679 334732009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33474
33475 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
33476 from here ...
33477 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
33478
5947ae32 334792009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33480
33481 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
33482 in $(MAKEINFO) invocation. This makes it clear in output that
33483 errors are being ignored.
33484
94180ff6 334852009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33486
33487 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
33488 from here ...
33489 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
33490 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
33491 * conf/i386-ieee1275.rmk: Likewise.
33492 * conf/i386-pc.rmk: Likewise.
33493 * conf/powerpc-ieee1275.rmk: Likewise.
33494 * conf/sparc64-ieee1275.rmk: Likewise.
33495 * conf/x86_64-efi.rmk: Likewise.
33496
9031b03a 334972009-10-26 Colin Watson <cjwatson@ubuntu.com>
33498
33499 * util/grub-editenv.c (main): If only a command is given, use
33500 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
33501 (usage): FILENAME is now optional and has a default.
33502
e4f6809b 335032009-10-26 Colin Watson <cjwatson@ubuntu.com>
33504
33505 Improve grub-mkconfig performance when there are several menu
33506 entries on a single filesystem.
33507
33508 * util/grub.d/10_linux.in (linux_entry): Cache the output of
33509 prepare_grub_to_access_device.
33510 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33511 * util/grub.d/30_os-prober.in: Likewise.
33512
67937d4d 335132009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33514
33515 * util/grub.d/10_freebsd.in: Remove.
33516 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
33517 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
33518
ee3756cc 335192009-10-26 Robert Millan <rmh.grub@aybabtu.com>
33520
5c35048e 33521 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 33522
4dea1c6f 335232009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33524
33525 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
33526 grub_util_error() call.
33527
042484d7 335282009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33529
33530 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
33531 `reserved_first_sector' member.
33532 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
33533 `reserved_first_sector' to 1.
33534 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
33535 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
33536 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
33537 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
33538 filesystems which begin at first sector.
33539 (options): New option --skip-fs-probe.
33540 (main): Handle --skip-fs-probe and pass it to setup().
33541
d64448a7 335422009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33543
33544 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
33545 (memset): Fix function prototype.
33546
508d42ec 335472009-10-25 Robert Millan <rmh.grub@aybabtu.com>
335482009-10-25 Vasily Averin <vvs@parallels.com>
33549
33550 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
33551 `dirent.direntlen == 0'.
33552
b240e30c 335532009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33554
33555 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
33556 `cpio'.
33557 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
33558
346e7fbe 335592009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33560
33561 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
33562 `__trampoline_setup' and `__ucmpdi2'.
33563 * include/grub/powerpc/libgcc.h: Only export symbols for functions
33564 that libgcc provides.
33565
cdb308b0 335662009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33567
33568 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
33569 * include/grub/sparc64/libgcc.h (memset): Likewise.
33570 * include/grub/misc.h (memset, memcmp): New function prototypes.
33571
fb26abc2 335722009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33573
33574 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
33575 `cpio'.
33576 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
33577
f6693890 335782009-10-25 Robert Millan <rmh.grub@aybabtu.com>
33579
33580 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
33581 * docs/grub.cfg: Compensate for recent change in multiboot
33582 loader (since 2009-08-14 it won't pass filename to payload).
33583 * util/grub.d/10_hurd.in: Likewise.
33584
0933cdc0 335852009-10-21 Felix Zielcke <fzielcke@z-51.de>
33586
33587 * config.guess: Update to latest version from config git
33588 repository.
33589 * config.sub: Likewise.
33590
3b2fe8c2 335912009-10-20 Robert Millan <rmh.grub@aybabtu.com>
33592
33593 Fix build on sparc64.
33594
33595 * configure.ac: Perform checks for libgcc symbols before
33596 adding `-nostdlib' to LDFLAGS.
33597
46695a62 335982009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
33599
33600 Let user specify OpenBSD root device.
33601
33602 * loader/i386/bsd.c (openbsd_root): New variable.
33603 (openbsd_opts): New option 'root'.
33604 (OPENBSD_ROOT_ARG): New macro.
33605 (grub_openbsd_boot): Use 'openbsd_root'.
33606 (grub_cmd_openbsd): Fill 'openbsd_root'.
33607
d2b6b7fc 336082009-10-16 Robert Millan <rmh.grub@aybabtu.com>
33609
33610 * NEWS: Misc adjustments.
33611
421bd7ac 336122009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
33613
33614 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
33615
f1d29d87 336162009-10-16 Robert Millan <rmh.grub@aybabtu.com>
33617
33618 * configure.ac: Bump version to 1.97.
33619
6f3cd880 336202009-10-16 Colin Watson <cjwatson@ubuntu.com>
33621
33622 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
33623 -mno-3dnow on x86 architectures. Some toolchains enable these
33624 features by default, but they rely on registers that aren't enabled
33625 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
33626
035f7122 336272009-10-15 Robert Millan <rmh.grub@aybabtu.com>
33628
33629 Make entry text a bit more readable.
33630
33631 * util/grub.d/10_linux.in: Add `with' before `Linux'.
33632
44998e58 336332009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33634
33635 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
33636
cd2851b3 336372009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33638
33639 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
33640 operations.
33641
c6f3b249 336422009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33643
33644 * configure.ac: Add missing dollar.
33645
6b5886ba 336462009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
33647
33648 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
33649
33650 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
33651 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
33652 exports.
33653 * include/grub/sparc64/libgcc.h: Likewise. Use
33654 preprocessor conditionals.
33655
e9d66f6d 336562009-10-14 Robert Millan <rmh.grub@aybabtu.com>
33657
33658 * conf/common.rmk (grub-dumpbios): Remove rule.
33659 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
33660 * util/grub-dumpbios.in: Remove file.
33661
9155bc17 336622009-10-14 Robert Millan <rmh.grub@aybabtu.com>
33663
33664 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
33665 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
33666
33667 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
33668 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
33669 users.
33670
33671 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
33672 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
33673 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
33674 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
33675 users.
33676
bf7f7a18 336772009-10-12 Robert Millan <rmh.grub@aybabtu.com>
33678
33679 * term/tparm.c: Switch to GPLv3.
33680
86564c26 336812009-10-09 Robert Millan <rmh.grub@aybabtu.com>
33682
33683 * include/grub/i386/cpuid.h: Add header protection.
33684
5c936493 336852009-10-09 Robert Millan <rmh.grub@aybabtu.com>
33686
33687 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
33688
33689 * include/grub/i386/cpuid.h: New file.
33690 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
33691 (has_longmode): Rename to ...
33692 (grub_cpuid_has_longmode): ... this. Update all users. Remove
33693 `static' attribute.
33694 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
33695 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
33696 on a CPU that doesn't implement AMD64 instruction set.
33697
186e7cf2 336982009-10-06 Colin Watson <cjwatson@ubuntu.com>
33699
33700 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
33701 that version.texi is rebuilt on version number changes.
33702
83b65c4a 337032009-10-06 Colin Watson <cjwatson@ubuntu.com>
33704
33705 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
33706 Fixes bug #27602.
33707
d244281c 337082009-10-06 Colin Watson <cjwatson@ubuntu.com>
33709
33710 * util/i386/pc/grub-install.in: Source
33711 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
33712 that the --grub-probe option will work.
33713 * util/sparc64/ieee1275/grub-install.in: Likewise.
33714
da25306d 337152009-10-05 Robert Millan <rmh.grub@aybabtu.com>
33716
33717 * configure.ac: Bump version to 1.97~beta4.
33718
e8ee83c0 337192009-10-03 Robert Millan <rmh.grub@aybabtu.com>
33720
33721 Resync grub-mkdevicemap in x86_64-efi.
33722
33723 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
33724 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
33725 `util/devicemap.c'.
33726
50dcabcf 337272009-10-01 Colin Watson <cjwatson@ubuntu.com>
33728
33729 * util/grub-editenv.c (create_envblk_file): Write new block with a
33730 .new suffix and then rename it into place, to ensure atomic
33731 creation.
33732
0e51c3a7 337332009-09-28 Robert Millan <rmh.grub@aybabtu.com>
33734
33735 Do not automatically install headers.
33736
33737 * Makefile.in (include_DATA): Remove. Update all users.
33738
31299a95 337392009-09-26 Robert Millan <rmh.grub@aybabtu.com>
33740
33741 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
33742 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
33743
33744 * util/osdetect.lua: Remove.
33745 * script/lua/lauxlib.c: Likewise.
33746 * script/lua/ldebug.c: Likewise.
33747 * script/lua/grub_main.c: Likewise.
33748 * script/lua/lauxlib.h: Likewise.
33749 * script/lua/ldebug.h: Likewise.
33750 * script/lua/ltablib.c: Likewise.
33751 * script/lua/liolib.c: Likewise.
33752 * script/lua/lstrlib.c: Likewise.
33753 * script/lua/lualib.h: Likewise.
33754 * script/lua/ldo.c: Likewise.
33755 * script/lua/ldump.c: Likewise.
33756 * script/lua/ldo.h: Likewise.
33757 * script/lua/loslib.c: Likewise.
33758 * script/lua/lundump.c: Likewise.
33759 * script/lua/grub_lib.c: Likewise.
33760 * script/lua/ldblib.c: Likewise.
33761 * script/lua/lundump.h: Likewise.
33762 * script/lua/lmem.c: Likewise.
33763 * script/lua/grub_lib.h: Likewise.
33764 * script/lua/lmathlib.c: Likewise.
33765 * script/lua/lstate.c: Likewise.
33766 * script/lua/ltm.c: Likewise.
33767 * script/lua/lvm.c: Likewise.
33768 * script/lua/lmem.h: Likewise.
33769 * script/lua/lstate.h: Likewise.
33770 * script/lua/ltm.h: Likewise.
33771 * script/lua/ltable.c: Likewise.
33772 * script/lua/lvm.h: Likewise.
33773 * script/lua/llex.c: Likewise.
33774 * script/lua/lgc.c: Likewise.
33775 * script/lua/grub_lua.h: Likewise.
33776 * script/lua/loadlib.c: Likewise.
33777 * script/lua/lfunc.c: Likewise.
33778 * script/lua/lopcodes.c: Likewise.
33779 * script/lua/lparser.c: Likewise.
33780 * script/lua/ltable.h: Likewise.
33781 * script/lua/llex.h: Likewise.
33782 * script/lua/lgc.h: Likewise.
33783 * script/lua/lfunc.h: Likewise.
33784 * script/lua/lbaselib.c: Likewise.
33785 * script/lua/lopcodes.h: Likewise.
33786 * script/lua/lparser.h: Likewise.
33787 * script/lua/lzio.c: Likewise.
33788 * script/lua/linit.c: Likewise.
33789 * script/lua/lobject.c: Likewise.
33790 * script/lua/llimits.h: Likewise.
33791 * script/lua/lstring.c: Likewise.
33792 * script/lua/lzio.h: Likewise.
33793 * script/lua/lapi.c: Likewise.
33794 * script/lua/lcode.c: Likewise.
33795 * script/lua/lua.h: Likewise.
33796 * script/lua/lobject.h: Likewise.
33797 * script/lua/lstring.h: Likewise.
33798 * script/lua/lapi.h: Likewise.
33799 * script/lua/lcode.h: Likewise.
33800 * script/lua/luaconf.h: Likewise.
33801
cb8a2c38 338022009-09-26 Colin Watson <cjwatson@ubuntu.com>
33803
33804 * docs/grub.texi (Command-line and menu entry commands): Document
33805 date and echo commands.
33806
6b9b6276 338072009-09-24 Pavel Roskin <proski@gnu.org>
33808
33809 * include/grub/kernel.h (struct grub_module_header): Remove
33810 `grub_module_header_types'. Make `type' unsigned. Make `size'
33811 32-bit on all platforms.
33812 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
33813 8-bit field. Use grub_host_to_target32() for `size'.
33814 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
33815 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
33816 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
33817
4e5a02a7 338182009-09-24 Robert Millan <rmh.grub@aybabtu.com>
33819
33820 Fix "lost keypress" bug in at_keyboard.
33821
33822 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
33823 Checks for readyness of input buffer (without flushing it).
33824 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
33825 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
33826
c6dcedf6 338272009-09-24 Robert Millan <rmh.grub@aybabtu.com>
33828
33829 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
33830 size check within GRUB_MACHINE_PCBIOS section.
33831
74c958b1 338322009-09-24 Robert Millan <rmh.grub@aybabtu.com>
33833
33834 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
33835 return value.
33836 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
33837 KEYBOARD_ISREADY check.
33838 (grub_at_keyboard_checkkey): Rename to ...
33839 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
33840 Remove gratuitous cast.
33841
ff420223 338422009-09-23 Colin Watson <cjwatson@ubuntu.com>
33843
33844 * configure.ac: Call AC_PROG_MKDIR_P.
33845 * Makefile.in (docs/stamp-vti): Create docs directory. Create
33846 version.texi in $(builddir) rather than $(srcdir).
33847 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
33848 to makeinfo's @include search path.
33849
d96875df 338502009-09-23 Felix Zielcke <fzielcke@z-51.de>
33851
33852 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
33853
9b3f8365 338542009-09-23 Felix Zielcke <fzielcke@z-51.de>
33855
33856 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
33857 for `*.dpkg-new'.
33858
c44c90db 338592009-09-21 Colin Watson <cjwatson@ubuntu.com>
33860
33861 Build info documentation. Some code borrowed from Automake.
33862
33863 * configure.ac: Check for makeinfo.
33864 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
33865 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
33866 docs/version.texi.
33867 (MOSTLYCLEANFILES): Add vti.tmp.
33868 (docs/version.texi, docs/stamp-vti): Update automatically.
33869 (docs/grub.info): Build info documentation. Use --force and ignore
33870 errors for now.
33871 (all-local): Add $(INFOS).
33872 (install-local): Install info files.
33873 (uninstall): Uninstall info files.
33874 * docs/version.texi: Remove from revision control. This file is
33875 automatically generated on build now.
33876 * gendistlist.sh: Add `*.info'.
33877
e0b37bb5 338782009-09-21 Felix Zielcke <fzielcke@z-51.de>
33879
33880 * kern/term.c: Fix indentation.
33881
5a78865b 338822009-09-21 Felix Zielcke <fzielcke@z-51.de>
33883
33884 * util/hostdisk.c: Fix a comment.
33885
dace7e8a 338862009-09-20 Robert Millan <rmh.grub@aybabtu.com>
33887
33888 Fix regression introduced in r2539.
33889
33890 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
33891 to 0xA1.
33892
a83d079b 338932009-09-19 Colin Watson <cjwatson@ubuntu.com>
33894
33895 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 33896 os-prober. Under normal operation, it does not print anything to
33897 stderr; if it does, we need to debug it, and throwing away stderr
33898 makes that excessively difficult.
a83d079b 33899
be94a509 339002009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
33901
33902 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
33903
63f745e8 339042009-09-16 Robert Millan <rmh.grub@aybabtu.com>
33905
33906 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
33907 AC_LANG_PROGRAM from autoconf.
33908 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
33909 prototypes (fixes warning).
33910
33911 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
33912 `--disable-werror' was used.
33913
bbb2a70f 339142009-09-16 Robert Millan <rmh.grub@aybabtu.com>
33915
33916 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
33917 uninitialized `lastaddr'.
33918
77c24f1d 339192009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
33920
0f0b8c87 33921 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 33922
07197f23 339232009-09-14 Colin Watson <cjwatson@ubuntu.com>
33924
33925 * commands/test.c (get_fileinfo): Return immediately if
33926 grub_fs_probe fails.
33927
dabf1798 339282009-09-14 José Martínez <xosemp@gmail.com>
33929
33930 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
33931
d52109a7 339322009-09-14 Colin Watson <cjwatson@ubuntu.com>
33933
33934 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
33935 output.
33936
56532179 339372009-09-13 Robert Millan <rmh.grub@aybabtu.com>
33938
33939 * configure.ac: Remove --enable-grub-pe2elf. Only build
33940 grub-pe2elf when needed by the build system itself.
33941 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
33942
8ef070f5 339432009-09-12 Robert Millan <rmh.grub@aybabtu.com>
33944
33945 * configure.ac: Bump version to 1.97~beta3.
33946 * docs/version.texi: Likewise.
33947
61229557 339482009-09-12 Robert Millan <rmh.grub@aybabtu.com>
33949
33950 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
33951 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
33952 from here ...
33953 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
33954 (grub_linux_setup_video): ... to here (with some adjustments).
33955
5c9f8d84 339562009-09-12 Robert Millan <rmh.grub@aybabtu.com>
33957
33958 Fix memory corruption issue (spotted by Colin Watson).
33959
33960 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
33961 causing returned size to be stored in an incorrect memory location.
33962 Fix use of uninitialized value when storing the returned size.
33963
e8f5d6e9 339642009-09-12 Yves Blusseau <blusseau@zetam.org>
33965
33966 Change clean rules to properly remove files
33967
33968 * genmk.rb: add new clean rules
33969 * Makefile.in (clean): add the new targets
33970 (mostlyclean): likewise
33971
cda2a409 339722009-09-11 Colin Watson <cjwatson@ubuntu.com>
33973
33974 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
33975 to grub_uint64_t.
33976 * fs/ntfs.c (init_file): Understand 64-bit sizes for
33977 non-resident files.
33978
86695375 339792009-09-11 Colin Watson <cjwatson@ubuntu.com>
33980
33981 * configure.ac: Don't look for help2man when cross-compiling. Fixes
33982 part of bug #27349.
33983
8aa1541a 339842009-09-10 Felix Zielcke <fzielcke@z-51.de>
33985
33986 * util/grub-mkconfig.in: Make the created config mode 400 and
33987 print a warning if it fails.
33988
48d9bb0a 339892009-09-10 Robert Millan <rmh.grub@aybabtu.com>
33990
33991 * util/grub.d/40_custom.in: Ask user to type custom entries below
33992 comment, rather than below 'exec tail' line.
33993
3b0521be 339942009-09-10 Colin Watson <cjwatson@ubuntu.com>
33995
33996 * util/grub.d/40_custom.in: Make sure that the explanatory text is
33997 visible in grub.cfg.
33998
50051d55 339992009-09-10 Colin Watson <cjwatson@ubuntu.com>
34000
34001 * util/grub.d/40_custom.in: Make it a little clearer how to use this
34002 file.
34003
c0d34387 340042009-09-10 Felix Zielcke <fzielcke@z-51.de>
34005
34006 * docs/grub.cfg: Add an example menu entry for memtest86+.
34007
80a608f3 340082009-09-09 Felix Zielcke <fzielcke@z-51.de>
34009
a2094832 34010 * config.guess: Update to latest version from config git.
80a608f3 34011 * config.sub: Likewise.
34012
99423078 340132009-09-08 Colin Watson <cjwatson@ubuntu.com>
34014
34015 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
34016 unknown-command case. Fixes bug #27320.
34017
44454e4c 340182009-09-08 Felix Zielcke <fzielcke@z-51.de>
34019
34020 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
34021 `help' if the command exists.
34022
e30d87ad 340232009-09-06 Robert Millan <rmh.grub@aybabtu.com>
34024
34025 * INSTALL: Require GCC 4.1.3 or later.
34026
9a86f1ec 340272009-09-06 Yves Blusseau <blusseau@zetam.org>
34028
34029 * Makefile.in (RMKFILES): add i386-qemu.rmk
34030 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
34031 $(srcdir)/stamp-h.in
34032
7f26d466 340332009-09-05 Robert Millan <rmh.grub@aybabtu.com>
34034
34035 * util/grub-probe.c (probe): Comment out buggy codepath, which
34036 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
34037 should be re-enabled after 1.97.
34038
3a613259 340392009-09-05 Felix Zielcke <fzielcke@z-51.de>
34040
34041 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
34042 find searches for.
34043
197f76c7 340442009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
34045
34046 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
34047 unnecessary calls to grub_error.
34048
70ba68ce 340492009-09-04 Colin Watson <cjwatson@ubuntu.com>
34050
34051 * NEWS: Mention `keystatus' and Unicode fonts.
34052
4ff0d7a4 340532009-09-04 Robert Millan <rmh.grub@aybabtu.com>
34054
34055 * configure.ac: Bump version to 1.97~beta2.
34056 * docs/version.texi: Likewise.
34057
77c55a87 340582009-09-03 Colin Watson <cjwatson@ubuntu.com>
34059
34060 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
34061 containing unwind information in some cases where it previously did
34062 not. Use -fno-dwarf2-cfi-asm if available to restore the old
34063 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
34064 discussion.
34065
f79572cd 340662009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
34067
34068 Embedding loadenv module into grub-emu
34069
34070 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
34071 commands/loadenv.c
34072 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
34073 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
34074 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
34075 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
34076 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
34077 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
34078
93a81088 340792009-09-03 Magnus Granberg <zorry@ume.nu>
34080
34081 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
34082 include -fPIE in the default specs.
34083 * configure.ac: Check if pie_possible is yes and add -fno-PIE
34084 to TARGET_CFLAGS.
34085
160034b2 340862009-09-03 Felix Zielcke <fzielcke@z-51.de>
34087
34088 * INSTALL: Note that GNU Bison 2.3 or later is required.
34089
087c07c4 340902009-09-03 Colin Watson <cjwatson@ubuntu.com>
34091
34092 * kern/i386/pc/startup.S: Fix typo.
34093
cbf978c0 340942009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
34095
34096 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
34097 according to GCS.
34098
340992009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 34100
34101 * docs/grub.texi (Naming convention): Describe one-based partition
34102 numbering.
34103 (Device syntax): Likewise.
34104 (File name syntax): Likewise.
34105 (Block list syntax): Likewise.
34106 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
34107 menu.lst.
34108 (File name syntax): Likewise.
34109 (Command-line and menu entry commands): Document acpi, blocklist,
34110 crc, export, insmod, keystatus, ls, set, and unset commands.
34111
f3e8cdfd 341122009-09-02 Colin Watson <cjwatson@ubuntu.com>
34113
34114 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
34115 to avoid implying that only one of --shift, --ctrl, or --alt may be
34116 used.
34117
c0bc232b 341182009-09-02 Colin Watson <cjwatson@ubuntu.com>
34119
34120 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
34121 rather than comparing against S_IFREG, which will almost never work.
34122
aa0f752d 341232009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
34124
34125 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
34126 (write_blocklists): Likewise.
34127
ecb3166a 341282009-09-01 Colin Watson <cjwatson@ubuntu.com>
34129
34130 * script/lua/grub_lua.h (fputs): Supply a format string as the first
34131 argument to grub_printf.
34132
c403a125 341332009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 34134
34135 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 34136 non GNU test.
31aba781 34137
b5e7312c 341382009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34139
34140 * kern/file.c (grub_file_read): Spelling fix
34141
fe00f472 341422009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
34143
34144 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
34145 loading of headers in some cases.
34146
cc55302e 341472009-08-30 Robert Millan <rmh.grub@aybabtu.com>
34148
34149 * configure.ac: Bump version to 1.97~beta1.
34150 * docs/version.texi: Likewise.
34151
5c90cdd2 341522009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 34153
34154 * include/grub/i386/xnu.h: Add license header.
34155 include grub/err.h explicitly.
34156
c90edae4 341572009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34158
34159 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
34160 to `ufs' in the vfs.root.mountfrom kernel parameter.
34161
d8888b5c 341622009-08-29 Robert Millan <rmh.grub@aybabtu.com>
34163
34164 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
34165
34166 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
34167 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
34168
34169 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
34170 `ARRAY_SIZE' macro.
34171
6f07b921 341722009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34173
34174 * kern/file.c (grub_file_read): Check offset.
34175 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
34176 * fs/jfs.c (grub_jfs_read_file): Likewise.
34177 * fs/ntfs.c (grub_ntfs_read): Likewise.
34178 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
34179 * fs/minix.c (grub_minix_read_file): Correct offset check.
34180 * fs/ufs.c (grub_ufs_read_file): Likewise.
34181
b4f34077 341822009-08-28 Colin Watson <cjwatson@ubuntu.com>
34183
34184 * term/i386/pc/console.c (bios_data_area): Cast
34185 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
34186
e7c69859 341872009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34188
34189 1-bit optimised blitters.
34190
34191 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
34192 prototype.
34193 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34194 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34195 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34196 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34197 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34198 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34199 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
34200 function.
34201 (grub_video_fbblit_replace_24bit_1bit): Likewise.
34202 (grub_video_fbblit_replace_16bit_1bit): Likewise.
34203 (grub_video_fbblit_replace_8bit_1bit): Likewise.
34204 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
34205 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
34206 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
34207 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
34208 when possible.
34209 * video/video.c (grub_video_get_blit_format): Return
34210 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
34211
a57da43f 342122009-08-28 Colin Watson <cjwatson@ubuntu.com>
34213
34214 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
34215 the first argument to grub_printf.
34216
4cbe67e5 342172009-08-28 Colin Watson <cjwatson@ubuntu.com>
342182009-08-28 Robert Millan <rmh.grub@aybabtu.com>
34219
34220 Add `getkeystatus' terminal method. Add a new `keystatus' command
34221 to query it.
34222
34223 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
34224 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
34225 modifier key bitmasks.
34226 (struct grub_term_input): Add `getkeystatus' member.
34227 (grub_getkeystatus): Add prototype.
34228 * kern/term.c (grub_getkeystatus): New function.
34229
34230 * include/grub/i386/pc/memory.h
34231 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
34232 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
34233 Data Area layout.
34234 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
34235 (grub_console_term_input): Set `getkeystatus' member.
34236 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
34237 constants.
34238 (grub_usb_keyboard_getreport): Likewise.
34239 (grub_usb_keyboard_checkkey): Likewise.
34240 (grub_usb_keyboard_getkeystatus): New function.
34241 (grub_usb_keyboard_term): Set `getkeystatus' member.
34242
34243 * commands/keystatus.c: New file.
34244 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
34245 (keystatus_mod_SOURCES): New variable.
34246 (keystatus_mod_CFLAGS): Likewise.
34247 (keystatus_mod_LDFLAGS): Likewise.
34248 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
34249 commands/keystatus.c.
34250 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34251 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34252 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34253 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34254 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34255 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 34256
6e2a9085 342572009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
34258
34259 Split befs.mod and afs.mod into *_be.mod and *.mod
34260
34261 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
34262 (grub_fstest_SOURCES): Likewise.
34263 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
34264 (afs_be_mod_SOURCES): New variable.
34265 (afs_be_mod_CFLAGS): Likewise.
34266 (afs_be_mod_LDFLAGS): Likewise.
34267 (befs_be_mod_SOURCES): Likewise.
34268 (befs_be_mod_CFLAGS): Likewise.
34269 (befs_be_mod_LDFLAGS): Likewise.
34270 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
34271 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34272 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34273 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
34274 (grub_emu_SOURCES): Likewise.
34275 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34276 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34277 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34278 * fs/afs_be.c: New file.
34279 * fs/befs_be.c: New file.
34280 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
34281 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
34282 (U16): Replaced with ...
34283 (grub_afs_to_cpu16): ...this. All users updated.
34284 (U32): Replaced with ...
34285 (grub_afs_to_cpu32): ...this. All users updated.
34286 (U64): Replaced with ...
34287 (grub_afs_to_cpu64): ...this. All users updated.
34288 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
34289 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 34290 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 34291 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
34292 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
34293 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
34294 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
34295 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
34296 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
34297 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
34298 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
34299
32a71655 343002009-08-26 Bean <bean123ch@gmail.com>
34301
34302 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
34303 64-bit number.
34304 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
34305 (grub_xfs_inode_block): Change return type to grub_uint64_t.
34306 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
34307
552bf6c5 343082009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34309
34310 NetBSD memory map support.
34311
34312 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
34313 (grub_netbsd_btinfo_mmap_header): New structure.
34314 (grub_netbsd_btinfo_mmap_entry): Likewise.
34315 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
34316
1ae2078c 343172009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34318
34319 Enable bsd.mod on coreboot.
34320
34321 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
34322 (bsd_mod_SOURCES): New variable.
34323 (bsd_mod_CFLAGS): Likewise.
34324 (bsd_mod_LDFLAGS): Likewise.
34325 (bsd_mod_ASFLAGS): Likewise.
34326 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
34327 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
34328
beefc598 343292009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34330
34331 Cleanup NetBSD root support.
34332
34333 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
34334 grub_bsd_get_device.
34335 Fix typo.
34336
3b76e68b 343372009-08-25 Felix Zielcke <fzielcke@z-51.de>
34338
34339 * util/grub.d/00_header.in: Move check for the video backend of
34340 gfxterm from here ...
34341 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
34342 a suitable video backend.
34343
aea664ea 343442009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34345
34346 Fix breakage in grub-setup.
34347
34348 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
34349 "msdos_partition_map".
34350
ff747d50 343512009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34352
34353 Fix breakage in normal/auth.c.
34354
34355 * normal/auth.c (grub_iswordseparator): New function.
34356
e7e1f93f 343572009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
34358
34359 Authentication support.
34360
34361 * commands/password.c: New file.
34362 * conf/common.rmk (pkglib_MODULES): Add password.mod.
34363 (password_mod_SOURCES): New variable.
34364 (password_mod_CFLAGS): Likewise.
34365 (password_mod_LDFLAGS): Likewise.
34366 (normal_mod_SOURCES): Add normal/auth.c.
34367 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
34368 normal/auth.c.
34369 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34370 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34371 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34372 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34373 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34374 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34375 * include/grub/auth.h: New file.
34376 * include/grub/err.h (grub_err_t): New enum value
34377 GRUB_ERR_ACCESS_DENIED.
34378 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
34379 'users'.
34380 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
34381 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
34382 users updated.
34383 * normal/auth.c: New file.
34384 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
34385 (grub_cmdline_run): Don't allow to go to command line without
34386 authentication.
34387 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
34388 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
34389 menuentry without superuser rights.
34390 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
34391 user isn't a superuser.
34392
70f1161d 343932009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34394
34395 Save space by inlining misc.c functions.
34396
34397 * kern/misc.c (grub_iswordseparator): Made static.
34398 * kern/misc.c (grub_strcat): Moved from here ...
34399 * include/grub/misc.h (grub_strcat): ... here. Inlined.
34400 * kern/misc.c (grub_strncat): Moved from here ...
34401 * include/grub/misc.h (grub_strncat): ... here. Inlined.
34402 * kern/misc.c (grub_strcasecmp): Moved from here ...
34403 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
34404 * kern/misc.c (grub_strncasecmp): Moved from here ...
34405 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
34406 * kern/misc.c (grub_isalpha): Moved from here ...
34407 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
34408 * kern/misc.c (grub_isdigit): Moved from here ...
34409 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
34410 * kern/misc.c (grub_isgraph): Moved from here ...
34411 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
34412 * kern/misc.c (grub_tolower): Moved from here ...
34413 * include/grub/misc.h (grub_tolower): ... here. Inlined.
34414
48e40bff 344152009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34416
34417 * script/sh/function.c (grub_script_function_find): Cut error message
34418 not to flood terminal.
34419 * script/sh/lexer.c (grub_script_yylex): Remove command line length
34420 limit.
34421 * script/sh/script.c (grub_script_arg_add): Duplicate string.
34422
c385bfc3 344232009-08-24 Colin Watson <cjwatson@ubuntu.com>
34424
34425 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
34426 `report' grub_uint8_t *.
34427 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
34428 Use a 50-millisecond timeout rather than just repeating
34429 grub_usb_keyboard_getreport 50 times.
34430 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
34431
2d21e3e8 344322009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34433
34434 Rename *_partition_map to part_*
34435
34436 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
34437 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
34438 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
34439 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
34440 All users updated.
34441 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
34442 All users updated.
34443 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
34444 * util/grub-probe.c (probe_partmap): Don't transform partition name
34445 to get module name.
34446
dd103c4e 344472009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34448
34449 Fix OpenBSD and NetBSD support.
34450
34451 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
34452 memory address conflict.
34453 (OPENBSD_MMAP_ACPI): New definition.
34454 (OPENBSD_MMAP_NVS): Likewise.
34455 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
34456 and OPENBSD_MMAP_NVS.
34457 Add memory map terminator
34458 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 34459 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 34460
16c84d74 344612009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34462
34463 Let user specify NetBSD root device.
34464
34465 * loader/i386/bsd.c (netbsd_root): New variable.
34466 (netbsd_opts): New option 'root'.
34467 (NETBSD_ROOT_ARG): New macro.
34468 (grub_netbsd_boot): Use 'netbsd_root'.
34469 (grub_bsd_unload): Free 'netbsd_root'.
34470 (grub_cmd_netbsd): Fill 'netbsd_root'.
34471
adb29902 344722009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34473
34474 Support for 64-bit NetBSD.
34475
34476 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
34477 point when booting non-FreeBSD.
34478
f5ae9f74 344792009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
34480
34481 Support --no-smp and --no-acpi for NetBSD.
34482
34483 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
34484 (NETBSD_AB_NOACPI): Likewise.
34485 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
34486 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
34487
de74f136 344882009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34489
34490 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
34491 errors.
34492 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
34493 errors. Call grub_error when needed.
34494
e9a925da 344952009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34496
34497 * commands/search.c (search_fs): Try searching without autoload first.
34498 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
34499 filesystem module explicitly for faster booting.
34500
5174302b 345012009-08-23 Colin Watson <cjwatson@ubuntu.com>
34502
34503 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
34504
c8c80635 345052009-08-23 Colin Watson <cjwatson@ubuntu.com>
34506
34507 * util/grub.d/30_os-prober.in: Disable os-prober if
34508 `GRUB_DISABLE_OS_PROBER' was set to true.
34509
71acf5e5 345102009-08-23 Robert Millan <rmh.grub@aybabtu.com>
34511
34512 * partmap/pc.c: Rename to ...
34513 * partmap/msdos.c: ... this. Update all users.
34514 (grub_pc_partition_map): Rename to ...
34515 (grub_msdos_partition_map): ... this. Update all users.
34516
34517 * parttool/pcpart.c: Rename to ...
34518 * parttool/msdospart.c: ... this. Update all users.
34519
34520 * include/grub/pc_partition.h: Rename to ...
34521 * include/grub/msdos_partition.h: ... this. Update all users.
34522 (grub_pc_partition_bsd_entry): Rename to ...
34523 (grub_msdos_partition_bsd_entry): ... this. Update all users.
34524 (grub_pc_partition_disk_label): Rename to ...
34525 (grub_msdos_partition_disk_label): ... this. Update all users.
34526 (grub_pc_partition_entry): Rename to ...
34527 (grub_msdos_partition_entry): ... this. Update all users.
34528 (grub_pc_partition_mbr): Rename to ...
34529 (grub_msdos_partition_mbr): ... this. Update all users.
34530 (grub_pc_partition): Rename to ...
34531 (grub_msdos_partition): ... this. Update all users.
34532 (grub_pc_partition_is_empty): Rename to ...
34533 (grub_msdos_partition_is_empty): ... this. Update all users.
34534 (grub_pc_partition_is_extended): Rename to ...
34535 (grub_msdos_partition_is_extended): ... this. Update all users.
34536 (grub_pc_partition_is_bsd): Rename to ...
34537 (grub_msdos_partition_is_bsd): ... this. Update all users.
34538
34539 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
34540 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
34541 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
34542 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
34543 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
34544 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
34545 (gpt_mod_LDFLAGS): Rename to ...
34546 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
34547 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
34548 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
34549 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
34550 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
34551 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
34552 (part_gpt_mod_LDFLAGS): ... this.
34553 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
34554 `pcpart.mod' to `msdospart.mod'.
34555 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
34556 to ...
34557 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
34558 (msdospart_mod_LDFLAGS): ... this.
34559
c11fded5 345602009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
34561
34562 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
34563 (openbsd_opts): Likewise.
34564 (netbsd_opts): Likewise.
34565 (freebsd_flags): Added 0 terminator.
34566 (openbsd_flags): Likewise.
34567 (netbsd_flags): Likewise.
34568 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
34569 (grub_cmd_freebsd): Transformed into extended command.
34570 (grub_cmd_openbsd): Likewise.
34571 (grub_cmd_netbsd): Likewise.
34572 (cmd_freebsd): Changed type to grub_extcmd_t.
34573 (cmd_openbsd): Likewise.
34574 (cmd_netbsd): Likewise.
34575 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
34576 grub_cmd_openbsd as extended commands.
34577 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
34578 cmd_netbsd and cmd_openbsd
34579
11d1c769 345802009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
34581
34582 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
34583
7a9094e5 345842009-08-21 Pavel Roskin <proski@gnu.org>
34585
5496c37e 34586 * Makefile.in (install-local): When checking if a file is in the
34587 build directory, use "test -e" to detect symlinks.
34588
7a9094e5 34589 * Makefile.in (install-local): Remove all files in
34590 $(DESTDIR)$(pkglibdir) before installing new files there.
34591
e53cea11 345922009-08-18 Felix Zielcke <fzielcke@z-51.de>
34593
34594 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
34595 grub-mkelfimage.
34596
9aced544 345972009-08-18 Felix Zielcke <fzielcke@z-51.de>
34598
34599 * util/grub-mkconfig.in: Don't use gfxterm by default if not
34600 explicitly specified by the user.
34601
b7da6bab 346022009-08-18 Pavel Roskin <proski@gnu.org>
34603
34604 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
34605 grub_uint8_t pointer for data.
34606 * include/grub/fbutil.h (struct grub_video_fbblit_info):
34607 Likewise.
34608 * video/fb/fbutil.c: Remove unnecessary casts.
34609
19f1b335 346102009-08-17 Michal Suchanek <hramrach@centrum.cz>
34611
34612 VBE cleanup.
34613
34614 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
34615 (grub_vbe_set_video_mode): Save active mode info
34616 only after setting the mode.
34617 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
34618 second argument.
34619
2f467aa9 346202009-08-17 Michal Suchanek <hramrach@centrum.cz>
34621
34622 Rename variables for clarity.
34623
34624 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
34625 (active_vbe_mode_info): ... this. All users updated.
34626 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
34627 All users updated.
34628 (initial_mode): Rename to ...
34629 (initial_vbe_mode): ... this. All users updated.
34630 (mode_in_use): Rename to ..
34631 (vbe_mode_in_use): ... this. All users updated.
34632 (mode_list): Rename to ..
34633 (vbe_mode_list): ... this. All users updated.
34634 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
34635 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
34636 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
34637 'mode_list_size' to 'vbe_mode_list_size'.
34638 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
34639 'best_mode_info' to 'best_vbe_mode_info' and
34640 'best_mode' to 'best_vbe_mode'
34641
6025fcd7 346422009-08-17 Michal Suchanek <hramrach@centrum.cz>
34643
34644 Remove duplicate grub_video_fb_get_video_ptr.
34645
34646 * include/grub/fbutil.h (get_data_ptr): Rename to ...
34647 (grub_video_fb_get_video_ptr): ... this.
34648 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
34649 * video/fb/fbutil.c: Add comment about addressing.
34650 (get_data_ptr): Rename to ...
34651 (grub_video_fb_get_video_ptr): ... this. All users updated.
34652 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
34653
cc8c6faf 346542009-08-17 Robert Millan <rmh.grub@aybabtu.com>
34655
34656 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
34657 grub_dprintf() that was just added.
34658
08aa61f0 346592009-08-17 Robert Millan <rmh.grub@aybabtu.com>
34660
34661 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
34662 (DEFAULT_VIDEO_MODE): Remove macros.
34663 (grub_linux_boot): Remove assumption that Linux has FB support,
34664 and use "text" as default video mode.
34665
7cef4f75 346662009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
34667
34668 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
34669 grub_dprintf.
34670 * fs/fat.c (grub_fat_read_data): Likewise.
34671
e1f39873 346722009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34673
34674 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
34675 payload.
34676 (grub_module): Likewise.
34677
c166d79e 346782009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34679
34680 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
34681 mbi->cmdline but free playground.
34682
c60cee8e 346832009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34684
34685 Handle group offset on UFS1.
34686
34687 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
34688 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
34689
c0d8b5d4 346902009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34691
34692 Split ufs.mod into ufs1.mod and ufs2.mod.
34693
34694 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
34695 (grub_fstest_SOURCES): Likewise.
34696 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
34697 (ufs_mod_SOURCES): Remove.
34698 (ufs_mod_CFLAGS): Likewise.
34699 (ufs_mod_LDFLAGS): Likewise.
34700 (ufs1_mod_SOURCES): New variable.
34701 (ufs1_mod_CFLAGS): Likewise.
34702 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 34703 (ufs2_mod_SOURCES): New variable.
34704 (ufs2_mod_CFLAGS): Likewise.
34705 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 34706 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
34707 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
34708 Likewise.
34709 (grub_emu_SOURCES): Likewise.
34710 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34711 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34712 (grub_setup_SOURCES): Likewise.
34713 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34714 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
34715 (grub_setup_SOURCES): Likewise.
34716 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
34717 Likewise.
34718 * fs/ufs2.c: New file.
34719 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
34720
d3539132 347212009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
34722
34723 Framebuffer split.
34724
34725 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
34726 subsystem at the end.
34727 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
34728 (video_fb_mod_SOURCES): New variable.
34729 (video_fb_mod_CFLAGS): Likewise.
34730 (video_fb_mod_LDFLAGS): Likewise.
34731 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
34732 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
34733 * video/i386/pc/vbeblit.c: Moved from here ...
34734 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
34735 * video/i386/pc/vbefill.c: Moved from here ...
34736 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
34737 * video/i386/pc/vbeutil.c: Moved from here ...
34738 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
34739 * include/grub/i386/pc/vbeblit.h: Moved from here ...
34740 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
34741 * include/grub/i386/pc/vbefill.h: Moved from here ...
34742 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
34743 * include/grub/i386/pc/vbeutil.h: Moved from here ...
34744 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
34745 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
34746 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
34747 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
34748 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
34749 (grub_video_adapter): Added 'get_info_and_fini'.
34750 (grub_video_get_info_and_fini): New prototype.
34751 (grub_video_set_mode): make modestring const char *.
34752 * loader/i386/linux.c (grub_linux_setup_video): Use
34753 grub_video_get_info_and_fini.
34754 (grub_linux_boot): Move modesetting just before booting.
34755 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
34756 grub_video_get_info_and_fini.
34757 * video/i386/pc/vbe.c: Moved framebuffer part ...
34758 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
34759 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
34760 grub_video_fbstd_colors and grub_video_fb_set_palette.
34761 (grub_video_vbe_init): Clear 'framebuffer' variable and use
34762 grub_video_fb_init.
34763 (grub_video_vbe_fini): Use grub_video_fb_fini.
34764 (grub_video_vbe_setup): Use framebuffer.render_target instead of
34765 render_target and use grub_video_fb_set_active_render_target and
34766 grub_video_fb_set_palette.
34767 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
34768 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
34769 (grub_video_vbe_adapter): Use framebuffer.
34770 * video/video.c (grub_video_get_info_and_fini): New function.
34771 (grub_video_set_mode): Make modestring const char *.
34772 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
34773 values are already initialised.
34774
d404ee56 347752009-08-14 Pavel Roskin <proski@gnu.org>
34776
34777 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
34778 ABS and APPLE_CC.
34779 * boot/i386/pc/diskboot.S: Likewise.
34780 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
34781 sectors allow compilation on MacOSX.
34782 * conf/i386-pc.rmk: Enable unconditional compilation of
34783 lnxboot.img.
34784
9a10df16 347852009-08-13 Colin Watson <cjwatson@ubuntu.com>
34786
34787 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
34788 * util/grub.d/00_header.in: Enter interruptible sleep if
34789 GRUB_HIDDEN_TIMEOUT is set.
34790
be3c9ca7 347912009-08-13 Yves Blusseau <blusseau@zetam.org>
34792
34793 * include/grub/symbol.h: Add the LOCAL macro.
34794 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
34795 starting with "L_".
34796
1f9e557e 347972009-08-13 Pavel Roskin <proski@gnu.org>
34798
9ca62843 34799 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
34800 any modern compilers we support.
34801
1f9e557e 34802 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
34803 Use local labels starting with "L_" so that Apple assembler
34804 knows they are local.
34805
81623db6 348062009-08-10 Robert Millan <rmh.grub@aybabtu.com>
34807
34808 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
34809 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
34810 (bsd_kernel_types): ... this enum.
34811
34812 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
34813 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
34814 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
34815
34816 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
34817 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
34818 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
34819 messages.
34820
f5d35e7a 348212009-08-08 Robert Millan <rmh.grub@aybabtu.com>
34822
34823 * util/grub-dumpdevtree: Moved from here ...
34824 * util/i386/efi/grub-dumpdevtree: ... to here.
34825 (hexify): New function. Converts a string to its hex version.
34826 Generate hex versions of "efi" and "device-properties" by calling
34827 hexify() on the ASCII strings rather than by hardcoding numbers.
34828
d1e1d527 348292009-08-08 Robert Millan <rmh.grub@aybabtu.com>
34830
34831 * fs/jfs.c: Update copyright year.
34832
1ebbe064 348332009-08-08 Felix Zielcke <fzielcke@z-51.de>
34834
34835 * util/grub.d/00_header.in: Fix a comment.
34836 * util/grub.d/10_linux.in: Likewise.
34837 * util/grub.d/10_windows.in: Likewise.
34838 * util/grub.d/10_hurd.in: Likewise.
34839
a78c8d24 348402009-08-08 Felix Zielcke <fzielcke@z-51.de>
34841
34842 * util/grub-mkconfig.in: Allow the user to specify the used font
34843 with GRUB_FONT.
34844
29a6b9e8 348452009-08-08 Pavel Roskin <proski@gnu.org>
34846
b5f16cc4 34847 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
34848 available, xfs.mod needs it now.
34849
2f5cb827 34850 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
34851 the "g" modifier in sed when the intention is to strip something
34852 once. This fixes comparison of kernels with multiple dashes.
34853
29a6b9e8 34854 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
34855 on it. Add missing space before closing bracket. Fix
34856 misleading formatting.
34857
892a3d98 348582009-08-07 Robert Millan <rmh.grub@aybabtu.com>
34859
34860 * docs/grub.texi: Major overhaul. Remove all sections that are
34861 specific to GRUB Legacy, or mostly composed of Legacy-specific
34862 information.
34863
ed94253f 348642009-08-07 Robert Millan <rmh.grub@aybabtu.com>
34865
34866 * docs/version.texi: New file. Provides version information for
34867 grub.texi.
34868
126d6628 348692009-08-07 Robert Millan <rmh.grub@aybabtu.com>
34870
34871 * docs/grub.texi: Update CVS information to SVN.
34872 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
34873
998b5aa9 348742009-08-07 Felix Zielcke <fzielcke@z-51.de>
34875
34876 * util/grub-mkconfig.in: Remove a wrong `fi'.
34877
818e094a 348782009-08-07 Felix Zielcke <fzielcke@z-51.de>
34879
34880 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
34881 (grub_jfs_uuid): New function.
34882 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
34883
b969c52f 348842009-08-07 Felix Zielcke <fzielcke@z-51.de>
34885
34886 * util/grub-mkconfig_lib.in (font_path): Move the functionality
34887 of it to ...
34888 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
34889 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
34890
7a4894cc 348912009-08-07 Robert Millan <rmh.grub@aybabtu.com>
34892
34893 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
34894 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
34895 Update all users.
34896
34897 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
34898 not just "vmlinu[zx]".
34899 Moved from here ...
34900 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
34901 all users.
34902
34903 * util/grub.d/10_linux.in (find_latest): Moved from here ...
34904 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
34905 all users.
34906
4e2171f8 349072009-08-07 Robert Millan <rmh.grub@aybabtu.com>
34908
34909 * util/grub.d/10_freebsd.in: Use an absolute device path for
34910 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
34911
6dcfcb32 349122009-08-06 Felix Zielcke <fzielcke@z-51.de>
34913
34914 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
34915 handling of multiple abstraction modules.
34916
f56a8756 349172009-08-04 Robert Millan <rmh.grub@aybabtu.com>
34918
34919 Fix a bug resulting in black screen when loading Linux using a
34920 packed video mode.
34921
34922 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
34923 function.
34924
34925 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
34926 (grub_vbe_bios_getset_dac_palette_width): New function.
34927 (grub_vbe_bios_get_dac_palette_width)
34928 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
34929 grub_vbe_bios_getset_dac_palette_width()).
34930
34931 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
34932 check for return status.
34933 (grub_vbe_get_video_mode_info): When getting information for a packed
34934 mode (<= 8 bpp), obtain DAC palette width using
34935 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
34936 {red,green,blue}_mark_size.
34937
222671b2 349382009-08-04 Felix Zielcke <fzielcke@z-51.de>
34939
ecb1a6d9 34940 * commands/search.c (options): Fix help output to match actual code.
222671b2 34941
f84114f5 349422009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
34943
34944 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
34945 of homegrown code.
34946
bd288a20 349472009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 34948
34949 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
34950 on XFS or ReiserFS.
34951
8aab5e25 349522009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
34953
34954 Support Apple partition map with sector size different from 512 bytes.
34955
34956 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
34957 (apple_partition_map_iterate): Respect 'aheader.blocksize'
34958 and 'apart.partmap_size'.
34959
6ad6258a 349602009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
349612009-08-01 Robert Millan <rmh.grub@aybabtu.com>
34962
34963 Fix cpuid command.
34964
34965 * commands/i386/cpuid.c (options): New variable.
34966 (grub_cmd_cpuid): Return real error.
34967 (GRUB_MOD_INIT(cpuid)): Declare options.
34968
67459bc6 349692009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
34970
34971 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
34972 valid.
34973
fbc6ab54 349742009-07-31 Bean <bean123ch@gmail.com>
34975
34976 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
34977 log2_inode.
34978 (grub_fshelp_node): Move inode field to the end.
34979 (grub_xfs_data): Remove inode field.
34980 (grub_xfs_inode_block): Calculate inode size using sblock.
34981 (grub_xfs_inode_offset): Likewise.
34982 (grub_xfs_read_inode): Calculate inode size using sblock.
34983 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
34984 (grub_xfs_iterate_dir): Calculate inode size using sblock.
34985 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
34986 to match inode size.
34987 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
34988 not accessible when data is null.
34989 (grub_xfs_open): Likewise.
34990
f45d6cfc 349912009-07-31 Bean <bean123ch@gmail.com>
34992
34993 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
34994 Don't change pv->disk if it's already set.
34995
34996 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
34997 (grub_raid_register): ... here.
34998 (grub_raid_rescan): Removed.
34999
35000 * include/grub/raid.h (grub_raid_rescan): Removed.
35001
35002 * util/grub-fstest.c: Remove include file <grub/raid.h>.
35003 (fstest): Replace grub_raid_rescan with module fini function followed
35004 by init function.
35005
35006 * util/grub-probe.c: Add include file <grub/raid.h>.
35007 (probe_raid_level): New function.
35008 (probe): Detect abstraction by walking the disk device, support two
35009 level of abstraction (LVM on RAID) when detecting partition map.
35010
24443b5a 350112009-07-31 Pavel Roskin <proski@gnu.org>
35012
35013 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
35014 to grub_zalloc(), it was erroneous.
35015 Reported by Bean <bean123ch@gmail.com>
35016
a275d9e7 350172009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
35018
35019 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 35020 embedding zone, not only the first one.
a275d9e7 35021
56c5a47f 350222009-07-29 Joe Auricchio <jauricchio@gmail.com>
35023
35024 * term/gfxterm.c (clear_char): New function.
35025 (grub_virtual_screen_setup): Use clear_char.
35026 (scroll_up): Likewise.
35027 (grub_virtual_screen_cls): Likewise.
35028
67bb323a 350292009-07-29 Felix Zielcke <fzielcke@z-51.de>
35030
35031 * util/deviceiter.c (get_acceleraid_disk_name): New static
35032 function.
35033 (grub_util_iterate_devices): Handle Accelraid devices.
35034 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
35035
388a7c75 350362009-07-28 Robert Millan <rmh.grub@aybabtu.com>
35037
35038 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
35039 separator for the suggested gfxpayload string (';' collides with the
35040 parser and needs escaping).
35041
3bb7abcf 350422009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
35043
35044 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
35045 Clear direction flag before jumping to OS.
35046 (grub_multiboot2_real_boot): Likewise.
35047
2ddd36d7 350482009-07-28 Felix Zielcke <fzielcke@z-51.de>
35049
35050 * util/i386/pc/grub-install: Fix parsing of --disk-module
35051 option.
35052
c521b62b 350532009-07-28 Felix Zielcke <fzielcke@z-51.de>
35054
35055 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
35056 when embedding.
35057
880e0a0c 350582009-07-26 Felix Zielcke <fzielcke@z-51.de>
35059
35060 * util/grub-mkconfig.in (package_version): New variable.
35061 Use it do display the version.
35062
2366e356 350632009-07-25 Felix Zielcke <fzielcke@z-51.de>
35064
35065 * kern/file.c (grub_file_open): Revert to previous check with
35066 grub_errno.
35067
7ad8c80e 350682009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35069
35070 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
35071 from help line. It's out of sync with code.
35072
72b9658b 350732009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
35074
35075 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
35076 entries on failed boot.
35077
77435277 350782009-07-25 Felix Zielcke <fzielcke@z-51.de>
35079
35080 * kern/file.c (grub_file_open): Fix an error check.
35081
fcaa8b21 350822009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
35083
35d16c74 35084 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
35085 partition map couldn't be identified.
fcaa8b21 35086
48904cd1 350872009-07-23 Pavel Roskin <proski@gnu.org>
35088
ef3c317f 35089 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
35090 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
35091 case of little endian words becomes just an optimization.
35092 Respect const modifier.
ad8ea1f4 35093 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 35094
48904cd1 35095 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
35096 to avoid loss of upper bits if align is unsigned and shorter
35097 than addr.
35098
260c9a89 350992009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35100
35101 UUID support for UFS
35102
35103 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
35104 (grub_ufs_uuid): New function.
35105 (grub_ufs_fs): add .uuid
35106
f76ce889 351072009-07-21 Pavel Roskin <proski@gnu.org>
35108
35109 * kern/dl.c (grub_dl_check_header): Make static.
35110
6a6cbcaf 351112009-07-21 Felix Zielcke <fzielcke@z-51.de>
35112
35113 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
35114 add drivemap for Vista. It breaks Windows 7.
35115
cffcddb2 351162009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
35117
35118 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
35119 128 bytes
35120
1ef44b80 351212009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35122
35123 Add BFS support
35124
35125 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
35126 (grub_fstest_SOURCES): Likewise.
35127 (pkglib_MODULES): Add befs.mod.
35128 (befs_mod_SOURCES): New variable.
35129 (befs_mod_CFLAGS): Likewise.
35130 (befs_mod_LDFLAGS): Likewise.
35131 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35132 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35133 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35134 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35135 (grub_setup_SOURCES): Likewise.
35136 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35137 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35138 (grub_setup_SOURCES): Likewise.
35139 * fs/befs.c: New file.
35140 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
35141 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
35142 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
35143 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
35144 (B_KEY_INDEX_ALIGN): New declaration.
35145 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
35146 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
35147 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
35148 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
35149 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
35150 (grub_afs_mount) [MODE_BFS]: Likewise.
35151 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
35152 (grub_afs_fs): Use GRUB_AFS_FSNAME
35153 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
35154 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
35155 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
35156 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
35157
4f253044 351582009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
35159
35160 * util/getroot.c (find_root_device): Add support for MacOSX.
35161 * util/hostdisk.c: Likewise.
35162
57a55913 351632009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35164
35165 * font/font.c (find_glyph): Check whether a font is present to avoid
35166 segmentation fault.
75421ca9 35167
351682009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 35169
35170 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
35171
e98cd0c2 351722009-07-20 Pavel Roskin <proski@gnu.org>
35173
35174 * configure.ac: Trim excessively wordy excuses.
35175
1d2d169a 351762009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35177
35178 Add symlink, mtime and label support to AtheFS.
35179
35180 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
35181 (grub_afs_iterate_dir): Handle symlinks.
35182 (grub_afs_open): Use grub_afs_read_symlink.
35183 (grub_afs_dir): Likewise.
35184 Pass mtime.
35185 (grub_afs_label): New function.
35186 (grub_afs_fs): Add grub_afs_label.
35187 (grub_afs_read_symlink): New function.
35188
186f3189 351892009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
35190
35191 Fix AtheFS support.
35192
35193 * fs/afs.c: Fix comments style.
35194 (grub_afs_blockrun): Declare as packed.
35195 (grub_afs_datastream): Likewise.
35196 (grub_afs_bnode): Likewise.
35197 (grub_afs_btree): Likewise.
35198 (grub_afs_sblock): Likewise.
35199 Declare `name' as char.
35200 (grub_afs_inode): Declare as packed.
35201 Change void *vnode to grub_uint32_t unused.
35202 (grub_afs_iterate_dir): Check that key_size is positive.
35203 (grub_afs_mount): Don't read superblock twice.
75421ca9 35204 (grub_afs_dir): Don't free node in case of error,
186f3189 35205 grub_fshelp_find_file already handles this.
35206 (grub_afs_open): Likewise.
35207
5680109e 352082009-07-19 Pavel Roskin <proski@gnu.org>
35209
35210 * Makefile.in: Remove LIBLZO and enable_lzo.
35211 * conf/i386-pc.rmk: Remove lzo support.
35212 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
35213 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
35214 support.
35215 * kern/i386/pc/lzo1x.S: Remove.
35216 * kern/i386/pc/startup.S: Remove lzo support.
35217 * util/i386/pc/grub-mkimage.c: Likewise.
35218
ac70fa32 352192009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
35220
35221 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
35222 * fs/xfs.c (grub_xfs_dir): Likewise.
35223 * fs/afs.c (grub_afs_dir): Likewise.
35224 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
35225 (grub_iso9660_open): Likewise.
35226 * fs/jfs.c (grub_jfs_open): Likewise.
35227 * fs/ext2.c (grub_ext2_dir): Likewise.
35228 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
35229 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 35230
eab58da2 352312009-07-16 Pavel Roskin <proski@gnu.org>
35232
d2838156 35233 * configure.ac: Never add "-c" to CFLAGS.
35234
55c70904 35235 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
35236
43e6200c 35237 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
35238 grub_cv_cc_efiemu should be used.
35239
ce7a733d 35240 * configure.ac: Typo fixes.
35241
eab58da2 35242 * kern/mm.c (grub_zalloc): New function.
35243 (grub_debug_zalloc): Likewise.
35244 * include/grub/mm.h: Declare grub_zalloc() and
35245 grub_debug_zalloc().
35246 * util/misc.c (grub_zalloc): New function.
35247 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
35248 instead of grub_malloc(), remove unneeded initializations.
35249 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
35250 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
35251 * commands/parttool.c (grub_cmd_parttool): Likewise.
35252 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
35253 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
35254 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
35255 * disk/usbms.c (grub_usbms_finddevs): Likewise.
35256 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
35257 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
35258 (grub_cmd_efiemu_pnvram): Likewise.
35259 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
35260 * fs/iso9660.c (grub_iso9660_mount): Likewise.
35261 (grub_iso9660_iterate_dir): Likewise.
35262 * fs/jfs.c (grub_jfs_opendir): Likewise.
35263 * fs/ntfs.c (list_file): Likewise.
35264 (grub_ntfs_mount): Likewise.
35265 * kern/disk.c (grub_disk_open): Likewise.
35266 * kern/dl.c (grub_dl_load_core): Likewise.
35267 * kern/elf.c (grub_elf_file): Likewise.
35268 * kern/env.c (grub_env_context_open): Likewise.
35269 (grub_env_set): Likewise.
35270 (grub_env_set_data_slot): Likewise.
35271 * kern/file.c (grub_file_open): Likewise.
35272 * kern/fs.c (grub_fs_blocklist_open): Likewise.
35273 * loader/i386/multiboot.c (grub_module): Likewise.
35274 * loader/xnu.c (grub_xnu_create_key): Likewise.
35275 (grub_xnu_create_value): Likewise.
35276 * normal/main.c (grub_normal_add_menu_entry): Likewise.
35277 (read_config_file): Likewise.
35278 * normal/menu_entry.c (make_screen): Likewise.
35279 * partmap/sun.c (sun_partition_map_iterate): Likewise.
35280 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
35281 * script/sh/script.c (grub_script_parse): Likewise.
35282 * video/bitmap.c (grub_video_bitmap_create): Likewise.
35283 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
35284 * video/readers/png.c (grub_png_output_byte): Likewise.
35285 (grub_video_reader_png): Likewise.
35286
830afef7 352872009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 35288
35289 Enable all targets that can be built by default
35290
830afef7 35291 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 35292 grub-mkfont and grub-fstest if they can be built
35293
ee293aee 352942009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35295
35296 Fix hang and segmentation fault in grub-emu-usb
35297
35298 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
35299 * util/usb.c (grub_libusb_devices): likewise
35300 (grub_libusb_init): rename to ...
35301 (GRUB_MOD_INIT (libusb)):...this
35302 (grub_libusb_fini): rename to ..
35303 (GRUB_MOD_FINI (libusb)):...this
35304 * disk/usbms.c (grub_usbms_transfer): fix retry logic
35305 * include/grub/disk.h (grub_raid_init): removed, it's useless
35306 (grub_raid_fini): likewise
35307 (grub_lvm_init): likewise
35308 (grub_lvm_fini): likewise
35309 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
35310 by grub_init_all
35311
94414221 353122009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35313
35314 Fix libusb
35315
35316 * Makefile.in (LIBUSB): new macro
35317 * genmk.rb (Utility/print_tail): new method
35318 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
35319 (top level): call util.print_tail at the end.
35320
59ade63d 353212009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35322
35323 Make FreeBSD accept zpool.cache
35324
35325 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
35326 type is /boot/zfs/zpool.cache
35327
a58da8c7 353282009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
35329
35330 Fix 64-bit efiemu
35331
35332 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
35333 correct wrong typedef
35334 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
35335
20591577 353362009-07-15 Pavel Roskin <proski@gnu.org>
35337
560ca572 35338 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
35339 * kern/disk.c (struct grub_disk_cache): Likewise.
35340
e8e8e4fd 35341 * commands/probe.c (options): Typo fix.
35342
fde24e10 35343 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
35344 Increase to 0x5a to accommodate FAT32. Adjust other offsets
35345 accordingly.
35346 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
35347
379c54c1 35348 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
35349 the end of "Error" to make the message more readable.
35350
7bd8f5bf 35351 * boot/i386/pc/boot.S (kernel_segment): Remove.
35352 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
35353 for destination.
35354
40b132c5 35355 * boot/i386/pc/boot.S (boot_version): Remove.
35356 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
35357 Remove.
35358
20591577 35359 * include/grub/i386/pc/boot.h: Sort all offsets.
35360 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
35361 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
35362 * boot/i386/pc/boot.S: Assert location of every offset listed in
35363 include/grub/i386/pc/boot.h.
35364
2df32b2c 353652009-07-13 Pavel Roskin <proski@gnu.org>
35366
44b5d879 35367 * include/grub/i386/coreboot/machine.h: Rename
35368 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
35369 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
35370 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
35371
17dc3751 35372 * kern/dl.c: Force native word size to suppress warnings when
35373 compiling grub-emu.
35374
2df32b2c 35375 * kern/device.c (grub_device_iterate): Change struct part_ent to
35376 hold the name, not a pointer to it. Use one grub_malloc() per
35377 partition, not two. Free partition_name if grub_malloc() fails.
35378 Set ents to NULL only before grub_partition_iterate() is called.
35379
75c59f59 353802009-07-11 Bean <bean123ch@gmail.com>
35381
35382 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
35383 childname.
35384
0ae1bf88 353852009-07-10 Bean <bean123ch@gmail.com>
353862009-07-10 Robert Millan <rmh.grub@aybabtu.com>
35387
35388 * kern/ieee1275/openfw.c (grub_children_iterate)
35389 (grub_devalias_iterate): Fix size evaluation for property or path
35390 strings, which was broken since r2132.
35391
8279cade 353922009-07-07 Pavel Roskin <proski@gnu.org>
35393
7d8a52d3 35394 * commands/search.c (search_file): Merge into ...
35395 (search_fs): ... this. Accept search type as argument.
35396 (grub_cmd_search): Pass search type to search_fs().
35397
25f9a05a 35398 * include/grub/util/console.h: New file.
35399 * util/console.c: Use it instead of grub/machine/console.h.
35400 * util/grub-emu.c: Likewise.
35401
8279cade 35402 * lib/arg.c (find_long_option): Remove.
35403 (find_long): Add `len' argument, make `s' const char *.
35404 (grub_arg_parse): Parse long options in place, not in a
35405 temporary buffer.
35406
4a11b60f 354072009-07-06 Pavel Roskin <proski@gnu.org>
35408
99f68041 35409 * commands/search.c (search_fs): Fix potential NULL pointer
35410 dereference.
35411
4a11b60f 35412 * commands/search.c (search_fs): Replace QUID macro with quid_fn
35413 function pointer.
35414
e110f4de 354152009-07-06 Daniel Mierswa <impulze@impulze.org>
35416
35417 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
35418 comparison.
35419
46eeb6a2 354202009-07-05 Pavel Roskin <proski@gnu.org>
35421
bab74958 35422 * include/grub/i386/linux.h (struct linux_kernel_params):
35423 Restore padding3, it's still needed.
35424
46eeb6a2 35425 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
35426 FreeBSD.
35427 * util/osdetect.lua: Likewise.
35428
b4a1dc79 354292009-07-05 Bean <bean123ch@gmail.com>
35430
35431 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
35432
35433 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
35434 (grub_lua_getenv): Likewise.
35435 (grub_lua_setenv): Likewise.
35436 (save_errno): New function.
35437 (push_result): Likewise.
35438 (grub_lua_enum_device): Likewise.
35439 (grub_lua_enum_file): Likewise.
35440 (grub_lua_file_open): Likewise.
35441 (grub_lua_file_close): Likewise.
35442 (grub_lua_file_seek): Likewise.
35443 (grub_lua_file_read): Likewise.
35444 (grub_lua_file_getline): Likewise.
35445 (grub_lua_file_getsize): Likewise.
35446 (grub_lua_file_getpos): Likewise.
35447 (grub_lua_file_eof): Likewise.
35448 (grub_lua_file_exist): Likewise.
35449 (grub_lua_add_menu): Likewise.
35450
35451 * script/lua/grub_lua.h (isupper): New inline function.
35452 (islower): Likewise.
35453 (ispunct): Likewise.
35454 (isxdigit): Likewise.
35455 (strcspn): Change to normal function.
35456 (strpbkr): New function declaration.
35457 (memchr): Likewise.
35458
35459 * script/lua/grub_main.c (scan_str): New function.
35460 (strcspn): Likewise.
35461 (strpbrk): Likewise.
35462 (memchr): Likewise.
35463
35464 * script/lua/linit.c (lualibs): Enable the string library.
35465
35466 * util/osdetect.lua: New file.
35467
2da92295 354682009-07-04 Robert Millan <rmh.grub@aybabtu.com>
35469
35470 * include/grub/i386/linux.h (struct linux_kernel_params): Add
35471 `capabilities' member.
35472
b2582ec9 354732009-07-02 Pavel Roskin <proski@gnu.org>
35474
35475 * genparttoollist.sh: Add missing newline at the end.
35476
32622956 354772009-07-01 Pavel Roskin <proski@gnu.org>
35478
87a7339e 35479 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
35480
d23af54e 35481 * util/hostdisk.c (open_device): Remove `const' from
35482 `sysctl_size', as sysctlbyname() can change it (in this case it
35483 doesn't actually happen).
35484
c94b18a9 35485 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
35486 using signed long int constants.
35487
c6cd3ef0 35488 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
35489 constant to avoid a warning on FreeBSD.
35490
0df63420 35491 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
35492 where it's needed.
35493
999577f1 35494 * Makefile.in: Install include/grub/machine symlink.
35495
6f41557f 35496 * Makefile.in: When installing symlinks, use "cp -fR", which
35497 works on FreeBSD and MacOSX.
35498 From Yves Blusseau <cl7m42e02@sneakemail.com>
35499
c8d22988 35500 * kern/dl.c (grub_dl_resolve_symbol): Make static.
35501 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
35502
1b96e952 35503 * util/misc.c: Move grub_reboot() and grub_halt() ...
35504 * util/grub-emu.c: ... here. Make main_env static.
35505 * include/grub/util/misc.h: Remove main_env.
35506
2ef0084d 35507 * kern/mm.c: Use correct format to print size_t.
35508
32622956 35509 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
35510 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
35511 * kern/powerpc/dl.c: Likewise.
35512 * kern/sparc64/dl.c: Likewise.
35513 * kern/x86_64/dl.c: Likewise.
35514
3f7f0cd0 355152009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35516
35517 Fix grub-emu build on sparc64-ieee1275.
35518
75421ca9 35519 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 35520 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
35521
211d06b5 355222009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35523
35524 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
35525 (grub_reboot, grub_halt): New functions.
35526
35527 * util/i386/pc/misc.c: Delete. Update all users.
35528 * util/sparc64/ieee1275/misc.c: Likewise.
35529 * util/powerpc/ieee1275/misc.c: Likewise.
35530
aaf53e3c 355312009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35532
35533 * conf/i386.rmk (setjmp_mod_SOURCES)
35534 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
35535 * conf/common.rmk (setjmp_mod_SOURCES)
35536 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
35537 to use $(target_cpu).
35538 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
35539 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
35540 * conf/powerpc-ieee1275.rmk: Likewise.
35541 * conf/sparc64-ieee1275.rmk: Likewise.
35542
35543 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
35544 $(target_cpu) for kern/$(target_cpu)/dl.c.
35545 * conf/i386-efi.rmk: Likewise.
35546 * conf/i386-ieee1275.rmk: Likewise.
35547 * conf/x86_64-efi.rmk: Likewise.
35548 * conf/i386-coreboot.rmk: Likewise.
35549 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
35550 $(target_cpu) for kern/$(target_cpu)/dl.c and for
35551 kern/$(target_cpu)/cache.S.
35552 * conf/sparc64-ieee1275.rmk: Likewise.
35553
a337130b 355542009-07-01 Robert Millan <rmh.grub@aybabtu.com>
35555
35556 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
35557 type to `grub_uint8_t', and adjust `padding9' accordingly.
35558
c6fe4d53 355592009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35560
b09db61d 35561 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
35562
c6fe4d53 35563 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
35564 assembly in final jump, using register constraints.
35565
b09db61d 35566 (grub_linux_boot): For text mode, initialize `have_vga' using
35567 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
35568
35569 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
35570 right before the final jump.
35571
35572 Set `video_mode' to 0x3.
35573
35574 Document initialization of `video_page', `video_mode' and
35575 `video_ega_bx'.
35576
28333ad0 355772009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35578
35579 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
35580 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 35581 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 35582
02164e1b 355832009-06-29 Robert Millan <rmh.grub@aybabtu.com>
35584
35585 Fix build on Debian / sparc.
35586
35587 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
35588
18b6c557 355892009-06-28 Pavel Roskin <proski@gnu.org>
35590
85f2aab6 35591 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
35592 fix a warning.
35593
18b6c557 35594 * util/grub.d/10_linux.in: Match SUSE style initrd names.
35595
ad760f81 355962009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35597
35598 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
35599 `err'.
35600
87a4623b 356012009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35602
35603 Revert r2338.
35604
35605 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
35606 file can't be opened. grub_file_open() is already supposed to set
75421ca9 35607 grub_errno / grub_errmsg appropriately.
87a4623b 35608 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
35609
8231fb77 356102009-06-27 Pavel Roskin <proski@gnu.org>
356112009-06-27 Robert Millan <rmh.grub@aybabtu.com>
35612
35613 * include/grub/dl.h: Include grub/elf.h.
35614 (struct grub_dl): Add symtab field.
35615 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
35616 GRUB_MODULES_MACHINE_READONLY.
35617 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
35618 of the header for read-only modules.
35619 (grub_dl_unload): Free mod->symtab for read-only modules.
35620 * kern/i386/dl.c: Use mod->symtab.
35621 * kern/powerpc/dl.c: Likewise.
35622 * kern/sparc64/dl.c: Likewise.
35623 * kern/x86_64/dl.c: Likewise.
35624
35625 * conf/i386-qemu.rmk: New file.
35626 * kern/i386/qemu/startup.S: Likewise.
35627 * kern/i386/qemu/mmap.c: Likewise.
35628 * boot/i386/qemu/boot.S: Likewise.
35629 * include/grub/i386/qemu/time.h: Likewise.
35630 * include/grub/i386/qemu/serial.h: Likewise.
35631 * include/grub/i386/qemu/kernel.h: Likewise.
35632 * include/grub/i386/qemu/console.h: Likewise.
35633 * include/grub/i386/qemu/boot.h: Likewise.
35634 * include/grub/i386/qemu/init.h: Likewise.
35635 * include/grub/i386/qemu/machine.h: Likewise.
35636 * include/grub/i386/qemu/loader.h: Likewise.
35637 * include/grub/i386/qemu/memory.h: Likewise.
35638
35639 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
35640 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
35641 [qemu] (pkglib_IMAGES): Add `boot.img'.
35642 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
35643 [qemu] (boot_img_FORMAT): New variables.
35644 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
35645 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
35646 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
35647 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
35648 [qemu] (kernel_img_FORMAT): New variables.
35649
35650 * configure.ac: Recognise `i386-qemu'.
35651
35652 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
35653 (for no compression).
35654 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
35655 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
35656 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
35657 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
35658 ifdefs).
35659
97fe384e 356602009-06-27 Pavel Roskin <proski@gnu.org>
35661
35662 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
35663 read.
35664 * efiemu/prepare32.c: Likewise.
35665 * efiemu/prepare64.c: Likewise.
35666
c402ab17 356672009-06-26 Pavel Roskin <proski@gnu.org>
35668
35669 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
35670 * include/grub/elf.h: Define symbols without "32" or "64" based
35671 on GRUB_TARGET_WORDSIZE.
35672 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
35673 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
35674 ELF definitions.
35675 * efiemu/loadcore64.c: Likewise.
35676 * loader/i386/bsd32.c: Likewise.
35677 * loader/i386/bsd64.c: Likewise.
35678 * kern/dl.c: Remove own ELF definitions.
35679 * util/i386/efi/grub-mkimage.c: Likewise.
35680
9bbdfd4d 356812009-06-23 Robert Millan <rmh.grub@aybabtu.com>
35682
35683 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
35684 segment 0x0 unconditionally, because the reference generated by
35685 GAS is an absolute address.
35686
a42ce6e9 356872009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35688
35689 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
35690 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
35691
c952cf92 356922009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35693
35694 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
35695 indexes. Check for -f explicitly.
cc3752ad 35696 (search_file): Improve error message.
35697 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 35698
132a0a59 356992009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35700
35701 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
35702 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
35703
387a140c 357042009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35705
35706 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
35707 * conf/i386-ieee1275.rmk: Likewise.
35708 * conf/i386-coreboot.rmk: Likewise.
35709
35710 * kern/i386/pc/startup.S (grub_stop): Remove function.
35711 * kern/i386/ieee1275/startup.S: Likewise.
35712 * kern/i386/coreboot/startup.S: Likewise.
35713 * kern/i386/misc.S (grub_stop): New function.
35714
41da9665 357152009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35716
35717 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
35718 * kern/i386/realmode.S (real_to_prot): ... to here.
35719
bf337234 357202009-06-22 Robert Millan <rmh.grub@aybabtu.com>
35721
35722 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
35723 with `kernel.img'.
35724 (kernel_elf_SOURCES): Rename to ...
35725 (kernel_img_SOURCES): ... this.
35726 (kernel_elf_HEADERS): Rename to ...
35727 (kernel_img_HEADERS): ... this. Update all users.
35728 (kernel_elf_ASFLAGS): Rename to ...
35729 (kernel_img_ASFLAGS): ... this.
35730 (kernel_elf_CFLAGS): Rename to ...
35731 (kernel_img_CFLAGS): ... this.
35732 (kernel_elf_LDFLAGS): Rename to ...
35733 (kernel_img_LDFLAGS): ... this.
35734 * conf/i386-coreboot.rmk: Likewise.
35735 * conf/powerpc-ieee1275.rmk: Likewise.
35736
35737 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
35738 with "kernel.img".
35739
f52196ff 357402009-06-21 Pavel Roskin <proski@gnu.org>
35741
c3cee413 35742 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
35743 to match nested functions.
35744 * loader/sparc64/ieee1275/linux.c: Likewise.
35745
f52196ff 35746 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
35747
58750afc 357482009-06-21 Robert Millan <rmh.grub@aybabtu.com>
35749
35750 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
35751 all i386 platforms.
35752
15355c7d 357532009-06-21 Robert Millan <rmh.grub@aybabtu.com>
35754
35755 Fix asm file handling on ELF, and remove workarounds.
35756
35757 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 35758 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 35759 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
35760 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
35761
3f3ec72b 357622009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
35763
35764 Load BSD ELF modules
35765
35766 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
35767 and loader/i386/bsd64.c
35768 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
35769 (FREEBSD_MODTYPE_ELF_MODULE): New definition
35770 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
35771 (grub_freebsd_load_elfmodule32): New declaration
35772 (grub_freebsd_load_elfmoduleobj64): Likewise
35773 (grub_freebsd_load_elf_meta32): Likewise
35774 (grub_freebsd_load_elf_meta64): Likewise
35775 (grub_freebsd_add_meta): Likewise
35776 (grub_freebsd_add_meta_module): Likewise
35777 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
35778 (grub_freebsd_add_meta_module): Likewise and move module-specific
35779 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
35780 (grub_cmd_freebsd): Add elf-kernel specific parts
35781 based on grub_freebsd_add_meta_module
35782 (grub_cmd_freebsd_module): Add type parsing moved from
35783 grub_freebsd_add_meta_module
35784 (grub_cmd_freebsd_module_elf): New function
35785 (cmd_freebsd_module_elf): New variable
35786 (GRUB_MOD_INIT): Register freebsd_module_elf
35787 * loader/i386/bsd32.c: New file
35788 * loader/i386/bsd64.c: Likewise
35789 * loader/i386/bsdXX.c: Likewise
35790 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
35791 (grub_elf64_load): Likewise
35792 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
35793 All users updated
35794 (grub_elf64_load_hook_t): Likewise
35795
0db15301 357962009-06-21 Colin Watson <cjwatson@ubuntu.com>
35797
35798 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
35799 variable.
35800 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
35801 don't write a menu entry for recovery mode.
35802
546796c1 358032009-06-20 Robert Millan <rmh.grub@aybabtu.com>
35804
35805 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
35806 after it's no longer needed.
35807
cd7310d5 358082009-06-20 Robert Millan <rmh.grub@aybabtu.com>
35809
35810 * include/grub/i386/loader.h (grub_linux_prot_size)
35811 (grub_linux_tmp_addr, grub_linux_real_addr)
35812 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
35813 GRUB_MACHINE_PCBIOS.
35814 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
35815 common grub_util_info() call to ...
35816 (generate_image): ... here.
35817 Fix use of uninitialized memory, comparison of signed with
35818 unsigned integers and memory leak.
35819 Remove bogus module address message.
35820
ab32d3b5 358212009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
35822
35823 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
35824 grub_raid_register
35825 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
35826
024ef597 358272009-06-19 Pavel Roskin <proski@gnu.org>
35828
35829 * configure.ac: Remove stray AC_MSG_CHECKING.
35830
3ac72b51 358312009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
35832
35833 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 35834
e14cd814 358352009-06-18 Pavel Roskin <proski@gnu.org>
35836
35837 * conf/common.rmk: Add fs_file.mod.
35838 * disk/fs_file.c: New file.
35839 * include/grub/disk.h (enum grub_disk_dev_id): Add
35840 GRUB_DISK_DEVICE_FILE_ID.
35841
26586d98 358422009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
35843
35844 Fix build with Apple's toolchain. Part 2
35845
35846 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
35847 a fake start
35848
26de2bcd 358492009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
35850
35851 Fix build with Apple's toolchain. Part 1
35852
35853 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
35854 for long calls
35855 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 35856 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 35857 Apple's toolchain
35858
09b3490b 358592009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
35860
35861 Fix warnings
35862
35863 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
35864 (decomp_block): initialize ch
35865 use grub_memcpy instead of memcpy
35866
c22a006a 358672009-06-17 Pavel Roskin <proski@gnu.org>
35868
d3638678 35869 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
35870 version, use declarations needed to use vga_text as the startup
35871 console.
35872
c22a006a 35873 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
35874 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
35875 the kernel.
35876 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
35877 and grub_at_keyboard_fini(), it's done on module load and
35878 unload.
35879
05b129e0 358802009-06-17 Felix Zielcke <fzielcke@z-51.de>
35881
35882 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
35883 file can't be found.
35884 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
35885
cf24ed9e 358862009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
35887
35888 Fix newline handling
35889
35890 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 35891 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 35892 (grub_script_yylex): don't segfault on unterminated script
35893 newline terminates command and variable
35894
74aa8e4b 358952009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
35896
35897 avoid double grub_adjust_range call. Bug reported by David Simner
35898
35899 * kern/disk.c (grub_disk_write): change to raw disk access before
35900 calling disk_read
35901
1bd265f3 359022009-06-17 Colin Watson <cjwatson@ubuntu.com>
35903
35904 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
35905 spaces, for the benefit of help2man.
35906 * util/i386/efi/grub-mkimage.c (usage): Likewise.
35907
a2d08c06 359082009-06-16 Pavel Roskin <proski@gnu.org>
35909
35910 * kern/i386/halt.c: Include grub/machine/init.h.
35911 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
35912
b97bcb19 359132009-06-16 Felix Zielcke <fzielcke@z-51.de>
35914
35915 * util/grub.d/30_os-prober.in: Use ${root} in the generated
35916 drivemap menuentry.
35917
0644f96c 359182009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
35919
35920 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
35921 `echo' command.
35922
3ef17a2e 359232009-06-16 Pavel Roskin <proski@gnu.org>
35924
35925 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
35926 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
35927 save %dx, we only need %dl and we never change it.
35928 * boot/i386/pc/cdboot.S: Don't set the root drive.
35929 * boot/i386/pc/pxeboot.S: Likewise.
35930 * include/grub/i386/pc/boot.h: Remove
35931 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
35932 GRUB_BOOT_MACHINE_DRIVE_CHECK.
35933 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
35934 * kern/i386/pc/init.c (make_install_device): Remove references
35935 to grub_root_drive.
35936 * kern/i386/pc/startup.S: Likewise.
35937 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
35938
693fe637 359392009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
35940
35941 xnu_uuid command
35942
35943 * commands/xnu_uuid.c: new file
35944 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
35945 (xnu_uuid_mod_SOURCES): new variable
35946 (xnu_uuid_mod_CFLAGS): likewise
35947 (xnu_uuid_mod_LDFLAGS): likewise
35948 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
35949 * conf/i386-ieee1275.rmk: likewise
35950 * conf/i386-pc.rmk: likewise
35951 * conf/powerpc-ieee1275.rmk: likewise
35952 * conf/sparc64-ieee1275.rmk: likewise
35953 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
35954
c9da87d0 359552009-06-16 Pavel Roskin <proski@gnu.org>
35956
35957 * configure.ac: Avoid '==' in test command, it's not portable.
35958
9c6f4596 359592009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
35960
35961 Probe command
35962
35963 * commands/probe.c: new file
35964 * conf/common.rmk (pkglib_MODULES): add probe.mod
35965 (probe_mod_SOURCES): new variable
35966 (probe_mod_CFLAGS): likewise
35967 (probe_mod_LDFLAGS): likewise
35968 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
35969 * conf/i386-ieee1275.rmk: likewise
35970 * conf/i386-pc.rmk: likewise
35971 * conf/powerpc-ieee1275.rmk: likewise
35972 * conf/sparc64-ieee1275.rmk: likewise
35973
70b7f9fd 359742009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
35975
35976 Fix handling of string like \"hello\" and "a
35977 b"
35978
35979 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
35980 (grub_script_yylex): fix parsing of quoting, escaping and newline
35981
71c79a6b 359822009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
35983
dd74360c 35984 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 35985 handling
dd74360c 35986
0644f96c 359872009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 35988
35989 * util/grub-mkconfig.in: Fix parsing of --output option.
35990
e40893c3 359912009-06-12 Pavel Roskin <proski@gnu.org>
35992
35993 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
35994 genmk.rb don't need to be generated or installed.
35995
3a1acfe2 359962009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
35997
35998 * commands/i386/pc/drivemap_int13h.S: add more comments
35999
3a4575d4 360002009-06-11 Pavel Roskin <proski@gnu.org>
36001
0658e928 36002 * Makefile.in (uninstall): Uninstall manuals.
36003
ca0388f0 36004 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
36005 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
36006 and update-grub_lib in two places.
36007 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
36008
e3b27c39 36009 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
36010 a compiler warning.
36011
3a4575d4 36012 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
36013 `entry_lo' to fix variable shadowing.
36014
af1f4f55 360152009-06-11 Christian Franke <franke@computer.org>
36016
36017 * kern/misc.c (__enable_execute_stack): Add missing return type
36018 to prevent gcc warning.
36019
5225e649 360202009-06-11 Felix Zielcke <fzielcke@z-51.de>
36021
36022 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
36023
7d83bd47 360242009-06-11 Pavel Roskin <proski@gnu.org>
36025
c1cb63ba 36026 * Makefile.in: Don't rely on any scripts being executable.
36027 Always use $(SHELL) to run shell scripts.
36028
7d83bd47 36029 * configure.ac: Always define ___main if using -nostdlib. This
36030 fixes tests on Cygwin.
36031
948f48e7 360322009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
36033
36034 UDF fix
36035
7d83bd47 36036 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 36037 is in bytes and not in blocks
7d83bd47 36038
8ada9bc1 360392009-06-11 Pavel Roskin <proski@gnu.org>
36040
36041 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
36042 warning.
36043
25ad2323 360442009-06-11 Felix Zielcke <fzielcke@z-51.de>
36045
36046 * util/grub.d/30_os-prober.in: Fix a comment. Source
36047 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
36048 to set the root device. Place drivemap command in the generated
36049 chain entry.
36050
e65acb0c 360512009-06-11 Pavel Roskin <proski@gnu.org>
36052
36053 * configure.ac: Remove host_m32. Issues with 64-bit utilities
36054 have long been resolved.
36055
f285fe2d 360562009-06-11 Colin Watson <cjwatson@ubuntu.com>
36057
bd47b0b5 36058 * util/grub.d/10_linux.in: Capitalise "Linux".
36059
f285fe2d 36060 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
36061
a0c62e4e 360622009-06-11 Pavel Roskin <proski@gnu.org>
36063
b6783cb2 36064 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
36065 fix a gcc warning and ensure that the function won't ever exit.
36066
dde032e8 36067 * kern/i386/ieee1275/init.c: Add missing prototype for
36068 grub_stop_floppy().
36069
22cd079d 36070 * loader/ieee1275/multiboot2.c [__i386__]: Include
36071 grub/cpu/multiboot.h.
36072
a0c62e4e 36073 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
36074 casts to short - they are not portable and cause warnings. Fix
36075 use of uninitialized values in input_buf. Use ARRAY_SIZE.
36076
63963d17 360772009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
36078
36079 Drivemap fixes
36080
36081 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
36082 new function
36083 (grub_get_root_biosnumber_saved): new variable
36084 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
36085 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 36086 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 36087 %dx after the call if necessary
36088 * conf/common.rmk (pkglib_MODULES): remove boot.mod
36089 (boot_mod_SOURCES): remove
36090 (boot_mod_CFLAGS): remove
36091 (boot_mod_LDFLAGS): remove
36092 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
36093 (boot_mod_SOURCES): new variable
36094 (boot_mod_CFLAGS): likewise
36095 (boot_mod_LDFLAGS): likewise
36096 * conf/i386-efi.rmk: likewise
36097 * conf/i386-ieee1275.rmk: likewise
36098 * conf/i386-pc.rmk: likewise
36099 * conf/powerpc-ieee1275.rmk: likewise
36100 * conf/sparc64-ieee1275.rmk: likewise
36101 * conf/x86_64-efi.rmk: likewise
36102 * include/grub/i386/pc/biosnum.h: new file
36103 * lib/i386/pc/biosnum.c: likewise
36104 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
36105 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
36106 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 36107
33abf7ae 361082009-06-10 Pavel Roskin <proski@gnu.org>
36109
5ac35b35 36110 * io/gzio.c (test_header): Don't reuse one buffer for all data.
36111 Use separate variables. Read only the file size at the end, but
36112 not the checksum that we don't use.
36113
5c5215d5 36114 * kern/file.c (grub_file_read): Use void pointer for the buffer.
36115 Adjust all callers.
36116
27d5fef7 36117 * kern/ieee1275/openfw.c: Remove libc includes.
36118 * kern/ieee1275/cmain.c: Likewise.
36119 * include/grub/ieee1275/ieee1275.h: Likewise.
36120
33abf7ae 36121 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
36122 compiler warnings.
36123
19d50c2b 361242009-06-10 Felix Zielcke <fzielcke@z-51.de>
36125
36126 * Makefile.in: Remove all trailing whitespace.
36127 * conf/i386-pc.rmk: Likewise.
36128 * conf/powerpc-ieee1275.rmk: Likewise.
36129 * conf/sparc64-ieee1275.rmk: Likewise.
36130 * docs/grub.texi: Likewise.
36131 * docs/texinfo.tex: Likewise.
36132 * disk/fs_uuid.c: Likewise.
36133 * disk/lvm.c: Likewise.
36134 * disk/scsi.c: Likewise.
36135 * disk/ata.c: Likewise.
36136 * disk/ieee1275/ofdisk.c: Likewise.
36137 * disk/i386/pc/biosdisk.c: Likewise.
36138 * disk/host.c: Likewise.
36139 * disk/raid.c: Likewise.
36140 * disk/efi/efidisk.c: Likewise.
36141 * disk/usbms.c: Likewise.
36142 * disk/memdisk.c: Likewise.
36143 * disk/loopback.c: Likewise.
36144 * kern/powerpc/dl.c: Likewise.
36145 * kern/device.c: Likewise.
36146 * kern/dl.c: Likewise.
36147 * kern/sparc64/dl.c: Likewise.
36148 * kern/ieee1275/ieee1275.c: Likewise.
36149 * kern/term.c: Likewise.
36150 * kern/fs.c: Likewise.
36151 * kern/i386/dl.c: Likewise.
36152 * kern/i386/pc/startup.S: Likewise.
36153 * kern/i386/pc/init.c: Likewise.
36154 * kern/i386/pc/mmap.c: Likewise.
36155 * kern/i386/pc/lzo1x.S: Likewise.
36156 * kern/i386/ieee1275/init.c: Likewise.
36157 * kern/i386/realmode.S: Likewise.
36158 * kern/i386/tsc.c: Likewise.
36159 * kern/partition.c: Likewise.
36160 * kern/corecmd.c: Likewise.
36161 * kern/file.c: Likewise.
36162 * kern/efi/efi.c: Likewise.
36163 * kern/efi/init.c: Likewise.
36164 * kern/efi/mm.c: Likewise.
36165 * kern/main.c: Likewise.
36166 * kern/err.c: Likewise.
36167 * kern/env.c: Likewise.
36168 * kern/disk.c: Likewise.
36169 * kern/generic/millisleep.c: Likewise.
36170 * kern/generic/rtc_get_time_ms.c: Likewise.
36171 * kern/misc.c: Likewise.
36172 * kern/parser.c: Likewise.
36173 * genmk.rb: Likewise.
36174 * configure.ac: Likewise.
36175 * boot/i386/pc/diskboot.S: Likewise.
36176 * boot/i386/pc/pxeboot.S: Likewise.
36177 * boot/i386/pc/boot.S: Likewise.
36178 * boot/i386/pc/lnxboot.S: Likewise.
36179 * boot/i386/pc/cdboot.S: Likewise.
36180 * parttool/pcpart.c: Likewise.
36181 * video/readers/tga.c: Likewise.
36182 * video/video.c: Likewise.
36183 * video/bitmap.c: Likewise.
36184 * lib/envblk.c: Likewise.
36185 * lib/i386/setjmp.S: Likewise.
36186 * fs/xfs.c: Likewise.
36187 * fs/afs.c: Likewise.
36188 * fs/fat.c: Likewise.
36189 * fs/ntfs.c: Likewise.
36190 * fs/udf.c: Likewise.
36191 * fs/affs.c: Likewise.
36192 * fs/iso9660.c: Likewise.
36193 * fs/hfs.c: Likewise.
36194 * fs/fshelp.c: Likewise.
36195 * fs/ext2.c: Likewise.
36196 * fs/jfs.c: Likewise.
36197 * fs/reiserfs.c: Likewise.
36198 * fs/hfsplus.c: Likewise.
36199 * fs/minix.c: Likewise.
36200 * fs/cpio.c: Likewise.
36201 * fs/sfs.c: Likewise.
36202 * fs/ufs.c: Likewise.
36203 * efiemu/prepare.c: Likewise.
36204 * efiemu/loadcore_common.c: Likewise.
36205 * efiemu/runtime/efiemu.sh: Likewise.
36206 * efiemu/runtime/efiemu.S: Likewise.
36207 * efiemu/runtime/efiemu.c: Likewise.
36208 * efiemu/pnvram.c: Likewise.
36209 * efiemu/main.c: Likewise.
36210 * efiemu/i386/pc/cfgtables.c: Likewise.
36211 * efiemu/i386/loadcore64.c: Likewise.
36212 * efiemu/i386/loadcore32.c: Likewise.
36213 * efiemu/loadcore.c: Likewise.
36214 * efiemu/symbols.c: Likewise.
36215 * efiemu/mm.c: Likewise.
36216 * include/grub/autoefi.h: Likewise.
36217 * include/grub/datetime.h: Likewise.
36218 * include/grub/term.h: Likewise.
36219 * include/grub/hfs.h: Likewise.
36220 * include/grub/lvm.h: Likewise.
36221 * include/grub/i386/tsc.h: Likewise.
36222 * include/grub/i386/linux.h: Likewise.
36223 * include/grub/i386/xnu.h: Likewise.
36224 * include/grub/i386/efiemu.h: Likewise.
36225 * include/grub/i386/pc/biosdisk.h: Likewise.
36226 * include/grub/i386/pc/memory.h: Likewise.
36227 * include/grub/i386/pc/vbe.h: Likewise.
36228 * include/grub/parttool.h: Likewise.
36229 * include/grub/video.h: Likewise.
36230 * include/grub/memory.h: Likewise.
36231 * include/grub/fs.h: Likewise.
36232 * include/grub/partition.h: Likewise.
36233 * include/grub/xnu.h: Likewise.
36234 * include/grub/efi/api.h: Likewise.
36235 * include/grub/efi/pe32.h: Likewise.
36236 * include/grub/efi/memory.h: Likewise.
36237 * include/grub/multiboot.h: Likewise.
36238 * include/grub/usbdesc.h: Likewise.
36239 * include/grub/multiboot2.h: Likewise.
36240 * include/grub/acpi.h: Likewise.
36241 * include/grub/efiemu/efiemu.h: Likewise.
36242 * include/grub/disk.h: Likewise.
36243 * include/grub/ieee1275/ieee1275.h: Likewise.
36244 * include/grub/net.h: Likewise.
36245 * include/grub/machoload.h: Likewise.
36246 * include/grub/macho.h: Likewise.
36247 * include/multiboot.h: Likewise.
36248 * genmoddep.awk: Likewise.
36249 * normal/main.c: Likewise.
36250 * normal/menu_entry.c: Likewise.
36251 * normal/menu_viewer.c: Likewise.
36252 * normal/completion.c: Likewise.
36253 * normal/cmdline.c: Likewise.
36254 * normal/misc.c: Likewise.
36255 * normal/datetime.c: Likewise.
36256 * bus/usb/usbtrans.c: Likewise.
36257 * bus/usb/ohci.c: Likewise.
36258 * bus/usb/uhci.c: Likewise.
36259 * bus/usb/usb.c: Likewise.
36260 * mmap/efi/mmap.c: Likewise.
36261 * mmap/i386/pc/mmap_helper.S: Likewise.
36262 * mmap/i386/pc/mmap.c: Likewise.
36263 * mmap/i386/mmap.c: Likewise.
36264 * mmap/i386/uppermem.c: Likewise.
36265 * mmap/mmap.c: Likewise.
36266 * commands/acpi.c: Likewise.
36267 * commands/echo.c: Likewise.
36268 * commands/blocklist.c: Likewise.
36269 * commands/loadenv.c: Likewise.
36270 * commands/usbtest.c: Likewise.
36271 * commands/boot.c: Likewise.
36272 * commands/parttool.c: Likewise.
36273 * commands/search.c: Likewise.
36274 * commands/cat.c: Likewise.
36275 * commands/i386/pc/play.c: Likewise.
36276 * commands/i386/pc/drivemap.c: Likewise.
36277 * commands/i386/pc/vbeinfo.c: Likewise.
36278 * commands/i386/pc/acpi.c: Likewise.
36279 * commands/i386/pc/vbetest.c: Likewise.
36280 * commands/ls.c: Likewise.
36281 * commands/cmp.c: Likewise.
36282 * commands/test.c: Likewise.
36283 * commands/efi/acpi.c: Likewise.
36284 * commands/gptsync.c: Likewise.
36285 * commands/help.c: Likewise.
36286 * partmap/amiga.c: Likewise.
36287 * partmap/apple.c: Likewise.
36288 * partmap/acorn.c: Likewise.
36289 * partmap/pc.c: Likewise.
36290 * partmap/sun.c: Likewise.
36291 * partmap/gpt.c: Likewise.
36292 * script/sh/lexer.c: Likewise.
36293 * script/sh/function.c: Likewise.
36294 * font/font.c: Likewise.
36295 * font/font_cmd.c: Likewise.
36296 * loader/powerpc/ieee1275/linux.c: Likewise.
36297 * loader/efi/chainloader.c: Likewise.
36298 * loader/multiboot_loader.c: Likewise.
36299 * loader/macho.c: Likewise.
36300 * loader/i386/multiboot.c: Likewise.
36301 * loader/i386/linux.c: Likewise.
36302 * loader/i386/pc/linux.c: Likewise.
36303 * loader/i386/pc/multiboot2.c: Likewise.
36304 * loader/i386/pc/chainloader.c: Likewise.
36305 * loader/i386/pc/xnu.c: Likewise.
36306 * loader/i386/bsd_trampoline.S: Likewise.
36307 * loader/i386/efi/linux.c: Likewise.
36308 * loader/i386/multiboot_elfxx.c: Likewise.
36309 * loader/i386/bsd_helper.S: Likewise.
36310 * loader/i386/bsd.c: Likewise.
36311 * loader/i386/linux_trampoline.S: Likewise.
36312 * loader/i386/xnu_helper.S: Likewise.
36313 * loader/i386/xnu.c: Likewise.
36314 * loader/i386/bsd_pagetable.c: Likewise.
36315 * loader/i386/multiboot_helper.S: Likewise.
36316 * loader/xnu.c: Likewise.
36317 * loader/xnu_resume.c: Likewise.
36318 * io/gzio.c: Likewise.
36319 * term/efi/console.c: Likewise.
36320 * term/terminfo.c: Likewise.
36321 * term/ieee1275/ofconsole.c: Likewise.
36322 * term/i386/pc/serial.c: Likewise.
36323 * term/i386/pc/vesafb.c: Likewise.
36324 * term/i386/pc/vga.c: Likewise.
36325 * term/usb_keyboard.c: Likewise.
36326 * term/gfxterm.c: Likewise.
36327 * aclocal.m4: Likewise.
36328 * util/lvm.c: Likewise.
36329 * util/grub.d/30_os-prober.in: Likewise.
36330 * util/grub.d/10_hurd.in: Likewise.
36331 * util/console.c: Likewise.
36332 * util/grub-macho2img.c: Likewise.
36333 * util/grub-probe.c: Likewise.
36334 * util/hostfs.c: Likewise.
36335 * util/i386/pc/grub-mkimage.c: Likewise.
36336 * util/i386/pc/grub-setup.c: Likewise.
36337 * util/i386/efi/grub-mkimage.c: Likewise.
36338 * util/grub-mkconfig.in: Likewise.
36339 * util/raid.c: Likewise.
36340 * util/resolve.c: Likewise.
36341 * util/grub-mkdevicemap.c: Likewise.
36342 * util/grub-emu.c: Likewise.
36343 * util/getroot.c: Likewise.
36344 * util/hostdisk.c: Likewise.
36345 * util/usb.c: Likewise.
36346 * util/grub-editenv.c: Likewise.
36347 * util/misc.c: Likewise.
36348
d2d49665 363492009-06-10 Felix Zielcke <fzielcke@z-51.de>
36350
36351 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
36352 `genparttoollist.sh'.
36353 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
36354 Add `*.sh' to the list find searches for and change `mdate.sh'
36355 to `mdate-sh'.
36356
fe052e37 363572009-06-10 Pavel Roskin <proski@gnu.org>
36358
2763ac18 36359 * include/grub/multiboot2.h: Provide compatibility defines for
36360 multiboot2.h.
36361 * include/multiboot2.h: Include stdint.h only if needed, using
36362 angle brackets.
36363 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
36364 grub/multiboot2.h.
36365 * loader/ieee1275/multiboot2.c: Likewise.
36366 * loader/multiboot2.c: Likewise.
36367 * loader/multiboot_loader.c: Likewise.
36368
437e6adc 36369 * configure.ac: Use -nostdlib when probing for the target. It
36370 should not be required to have libc for the target.
36371
06a6836c 36372 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
36373 they fail without libc headers for the target.
36374 * include/grub/powerpc/libgcc.h: Use weak attribute for all
36375 exports.
36376 * include/grub/sparc64/libgcc.h: Likewise. Don't use
36377 preprocessor conditionals.
36378
fe052e37 36379 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
36380 build system doesn't need to be aware of the tar.c internals.
36381
afd22553 363822009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 36383
afd22553 36384 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 36385
6b787c4f 363862009-06-09 Robert Millan <rmh.grub@aybabtu.com>
36387
36388 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
36389 disk limit to 26 for IDE, Virtio, Xen and SCSI.
36390
363912009-06-09 Felix Zielcke <fzielcke@z-51.de>
36392
36393 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 36394 aren't available if ata.mod gets used.
6b787c4f 36395
473d1e45 363962009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 36397
473d1e45 36398 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 36399 initialising controller.
473d1e45 36400 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 36401
255a27d4 364022009-06-08 Felix Zielcke <fzielcke@z-51.de>
36403
36404 * util/i386/pc/grub-install.in: Add a parameter --disk-module
36405 to choose between ata and biosdisk module on i386-pc.
36406
473d1e45 364072009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 36408
d55842d8 36409 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
36410 Subclass and Programming Interface fields in terms of the 3 byte
36411 Class Code register.
36412 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36413
fa5db0b1 36414 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
36415 interface is OHCI. Add grub_dprintf for symmetry with
36416 bus/usb/uhci.c.
36417 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
36418 interface is UHCI. Add interf variable for programming
36419 interface. Print interface with class/subclass.
36420
c0947beb 36421 * bus/usb/ohci.c: Set interf with correct field.
36422
69da8877 36423 * bus/usb/uhci.c: Remove unneeded doubled lines.
36424 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
36425 Remove whitespace inside comment.
36426
9e172e30 364272009-06-08 Robert Millan <rmh.grub@aybabtu.com>
36428
36429 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
36430 as fallback an equivalent option without depth.
36431
de65ee2b 364322009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
36433
36434 Not fail if unable to retrieve C/H/S on LBA disks
36435
473d1e45 36436 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 36437 if unable to retrieve C/H/S on LBA disks
36438
b57ea2c9 364392009-06-08 Pavel Roskin <proski@gnu.org>
36440
36441 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
36442 about aliasing.
36443
af361263 364442009-06-08 Felix Zielcke <fzielcke@z-51.de>
36445
36446 * Makefile.in (uninstall): Remove all $lib_DATA files.
36447
4c9ec6b3 364482009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
36449
36450 Bugfix: install on partitionless device
36451
36452 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
36453 is a whole disk
36454
e76fc924 364552009-06-08 Felix Zielcke <fzielcke@z-51.de>
36456
36457 * Makefile.in (uninstall): Remove all $include_DATA files.
36458
ba5a0d05 364592009-06-08 Felix Zielcke <fzielcke@z-51.de>
36460
36461 * commands/true.c: New file. Implement the true and false commands.
36462 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
36463 (true_mod_SOURCES): New variable.
36464 (true_mod_CFLAGS): Likewise.
36465 (true_mod_LDFLAGS): Likewise.
36466
c8048e32 364672009-06-05 Colin D Bennett <colin@gibibit.com>
36468
36469 Optimized font character lookup using binary search instead of linear
36470 search. Fonts now are required to have the character index ordered by
36471 code point.
36472
36473 * font/font.c (load_font_index): Verify that fonts have ordered
36474 character indices.
36475 (find_glyph): Use binary search instead of linear search to find a
36476 character in a font.
36477
408305be 364782009-06-05 Michael Scherer <misc@mandriva.org>
36479
36480 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
36481 uses case sensitive btree.
36482 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
36483 only for case insensitive filesystems.
36484
8ee1e0d9 364852009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
36486
36487 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
36488 * conf/common.rmk (search_mod_CFLAGS): likewise
36489
a9966eb1 364902009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36491
473d1e45 36492 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 36493 compensate a compiler bug
36494
9e7100fb 364952009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36496
473d1e45 36497 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 36498 instead of '\b'
473d1e45 36499
ede21d71 365002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36501
36502 Definitions for creating asm symbols with Apple's CC
36503
36504 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
36505 [APPLE_CC] (VARIABLE): likewise
36506
9dbf7653 365072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36508
36509 Disable lnxboot.img when compiled
36510 with Apple's CC
36511
36512 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
36513 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
36514 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
36515 [! APPLE_CC] (CODE_LENG): skip
36516 [! APPLE_CC] (setup_sects): likewise
36517 [! APPLE_CC]: skip filling
473d1e45 36518
e93cdc3d 365192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36520
36521 Address in trampolines based on 32-bit registers when compiled
36522 with Apple's CC
36523
473d1e45 36524 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 36525 for addresses
36526 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
36527
6c688477 365282009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36529
36530 Avoid aliases when compiling with Apple's CC for PCBIOS machine
36531
36532 * kern/misc.c [APPLE_CC] (memcpy): new function
36533 [APPLE_CC] (memmove): likewise
36534 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 36535 (memcpy): define alias conditionally on !APPLE_CC
6c688477 36536 (memset): likewise
36537 (abort): likewise
36538 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
36539 APPLE_CC are defined
36540 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
36541 (grub_assert_fail): make prototype conditional
36542
e37ffc5c 365432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36544
36545 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
36546
473d1e45 36547 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
36548 grub-macho2img
e37ffc5c 36549 (CLEANFILES): add grub-macho2img
36550 (grub_macho2img_SOURCES): new variable
36551 * kern/i386/pc/startup.S (bss_start): new variable
36552 (bss_end): likewise
36553 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
36554 * util/grub-macho2img.c: new file
36555
cf00df31 365562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36557
36558 Use objconv when compiling with Apple's CC
36559
36560 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
36561 (efiemu64.o): likewise
36562 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
36563 when compiling with Apple's CC
36564 (efiemu64_s.o): likewise
36565 * configure.ac: check for objconv when compiling with Apple's CC
36566 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 36567
d119a20c 365682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36569
36570 Define segment as well as section when compiling with
36571 Apple's CC
36572
36573 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
36574 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
36575 (efiemu_convert_pointer): likewise
36576 (efiemu_set_virtual_address_map): likewise
36577 (efiemu_convert_pointer): likewise
36578 (efiemu_getcrc32): likewise
36579 (init_crc32_table): likewise
36580 (reflect): likewise
36581 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
36582 (GRUB_MOD_DEP): likewise
473d1e45 36583
c8600122 365842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36585
36586 Allow a compilation without -mcmodel=large
36587
36588 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
36589 when compiled without -mcmodel=large
473d1e45 36590 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 36591 without -mcmodel=large
473d1e45 36592 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 36593 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 36594
e8df1d4e 365952009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36596
36597 Remove nested functions in efiemu core
36598
36599 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 36600
cc6c3ac1 366012009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36602
36603 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
36604
36605 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
36606 temporary storage
473d1e45 36607 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
36608 using Apple's CC
cc6c3ac1 36609 (grub_cpu_is_tsc_supported): likewise
36610 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 36611
3e325901 366122009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36613
36614 Absolute addressing through constant with Apple's cc
36615
36616 * kern/i386/pc/startup.S: Define necessary constants
36617 and address through it when using ABS with Apple's CC
36618 * boot/i386/pc/diskboot.S: likewise
36619 * boot/i386/pc/boot.S: likewise
36620 * boot/i386/pc/lnxboot.S: likewise
36621 * boot/i386/pc/cdboot.S: likewise
36622 * mmap/i386/pc/mmap_helper.S: likewise
36623 * commands/i386/pc/drivemap_int13h.S: likewise
36624
2b167a72 366252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36626
36627 Check if compiler is apple cc
36628
36629 * Makefile.in (ASFLAGS): new variable
36630 (TARGET_ASFLAGS): likewise
36631 (TARGET_MODULE_FORMAT): likewise
36632 (TARGET_APPLE_CC): likewise
36633 (OBJCONV): likewise
36634 (TARGET_IMG_CFLAGS): likewise
36635 (TARGET_CPPFLAGS): add includedir
36636 * configure.ac: call grub_apple_cc and grub_apple_target_cc
36637 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
36638 Check for linker script only if compiler isn't Apple's CC
36639 (TARGET_MODULE_FORMAT): set
36640 (TARGET_APPLE_CC): likewise
36641 (TARGET_ASFLAGS): likewise
36642 (ASFLAGS): likewise
36643 Check for objcopy only if compiler isn't Apple's CC
36644 Check for BSS symbol only if compiler isn't Apple's CC
36645 * genmk.rb: adapt nm options if we use Apple's utils
36646 * aclocal.m4 (grub_apple_cc): new test
36647 (grub_apple_target_cc): likewise
473d1e45 36648
fb14123e 366492009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36650
36651 Simplify sed expressions and improve awk
36652
36653 * Makefile.in (install-local): simplify sed expression
36654 * gencmdlist.sh: likewise
36655 * genmoddep.awk: avoid adding module as a dependency of itself
36656
5b889789 366572009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36658
36659 Add missing start symbols
36660
36661 * boot/i386/pc/boot.S: add start
fb14123e 36662 * boot/i386/pc/pxeboot.S: likewise
473d1e45 36663
fd2bf2e3 366642009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36665
36666 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 36667
36668 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 36669 (relocate_addresses): consider both r_addend and value at offset
36670 (make_mods_section): zerofill modinfo and header
36671 (convert_elf): write prefix here
473d1e45 36672
5389763d 366732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36674
36675 Use .asciz instead of .string
36676
36677 * i386/pc/diskboot.S: use .asciz instead of .string
36678 * i386/pc/boot.S: likewise
36679 * include/grub/dl.h (GRUB_MOD_DEP): likewise
36680 (GRUB_MOD_NAME): likewise
473d1e45 36681
3eb5ed4e 366822009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36683
36684 gfxpayload support
36685
36686 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
36687 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
36688 (grub_video_setup): remove
36689 (grub_video_set_mode): new prototype
36690 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
36691 (vid_mode): remove
36692 (linux_vesafb_res): compile only on PCBIOS
36693 (grub_linux_boot): support gfxpayload
36694 * loader/i386/pc/xnu.c (video_hook): new function
36695 (grub_xnu_set_video): support gfxpayload
36696 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
36697 (DEFAULT_VIDEO_HEIGHT): likewise
36698 (DEFAULT_VIDEO_FLAGS): likewise
36699 (DEFAULT_VIDEO_MODE): new definition
36700 (video_hook): new function
36701 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 36702 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 36703 loading xnu
36704 * video/video.c (grub_video_setup): removed
473d1e45 36705 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 36706 grub_video_setup
36707
4b0e1143 367082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36709
36710 Avoid calling biosdisk in drivemap
36711
36712 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
36713 (revparse_biosdisk): likewise
36714 (list_mappings): derive name from id directly
36715 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 36716
fda6cb98 367172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
36718
36719 Script fixes
36720
36721 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
36722 (grub_lexer_param): add tokenonhold
36723 (grub_script_create_cmdline): remove cmdline. All callers updated
36724 (grub_script_function_create): make functionname
36725 grub_script_arg. All callers updated
36726 (grub_script_execute_argument_to_string): new prototype
36727 * kern/parser.c (state_transitions): reorder
36728 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 36729 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 36730 make global
36731 (grub_script_execute_cmdline): use new format
36732 * script/sh/function.c (grub_script_function_create): make functionname
36733 grub_script_arg. All callers updated
473d1e45 36734 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 36735 (grub_script_yylex): remove
36736 (grub_script_yylex2): renamed to ...
36737 (grub_script_yylex): ...renamed
36738 parse the expressions like a${b}c
36739 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
36740 (GRUB_PARSER_TOKEN_VAR): remove
36741 (GRUB_PARSER_TOKEN_NAME): likewise
36742 ("if"): declare as typeless
36743 ("while"): likewise
36744 ("function"): likewise
36745 ("else"): likewise
36746 ("then"): likewise
36747 ("fi"): likewise
36748 (text): remove
36749 (argument): likewise
36750 (script): accept empty scripts and make exit on error
36751 (arguments): use GRUB_PARSER_TOKEN_ARG
36752 (function): likewise
36753 (command): move error handling to script
36754 (menuentry): move grub_script_lexer_ref before
473d1e45 36755 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 36756 argument. All callers updated
36757
f4448a07 367582009-06-04 Robert Millan <rmh.grub@aybabtu.com>
36759
36760 Prevent GRUB from probing floppies during boot.
36761
36762 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
36763 * commands/search.c (options): Add --no-floppy.
36764 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
36765 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
36766 --no-floppy when searching for UUIDs.
36767
2bf5885a 367682009-06-04 Robert Millan <rmh.grub@aybabtu.com>
36769
36770 Simplify the code duplication in commands/search.c.
36771
36772 * commands/search.c (search_label, search_fs_uuid): Merge into ...
36773 (search_fs): ... this. Update all users.
36774
f6fd460a 367752009-06-03 Felix Zielcke <fzielcke@z-51.de>
36776
36777 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
36778
cbb3c83e 367792009-05-28 Pavel Roskin <proski@gnu.org>
36780
57788cfd 36781 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
36782 Remove the original symlink explicitly.
36783
cbb3c83e 36784 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
36785 just one slash. That's how grub_fshelp_find_file() does it.
36786
cd0d5e30 367872009-05-26 Pavel Roskin <proski@gnu.org>
36788
f0f8bbe2 36789 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
36790 to `str'.
36791
cd0d5e30 36792 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
36793 possibly unused.
36794
8c2cab51 367952009-05-25 Christian Franke <franke@computer.org>
36796
36797 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
36798 register.
36799 (grub_atapi_identify): Add wait after drive select.
36800 (grub_ata_identify): Do more strict status register check before
36801 calling grub_atapi_identify (). Suppress error message if status
36802 register is 0x00 after command failure. Add status register
36803 check after PIO read to avoid bogus identify due to stuck DRQ.
36804 Thanks to Pavel Roskin for testing.
36805 (grub_device_initialize): Remove unsafe status register check.
36806 Thanks to 'phcoder' for problem report and patch.
36807 Prevent sign extension in debug message.
36808
230c0ad6 368092009-05-23 Colin D Bennett <colin@gibibit.com>
36810
36811 Cleaned up `include/grub/normal.h'. Grouped prototypes by
36812 definition file, and functions defined in `normal/menu.c' have had
36813 their prototypes moved to `include/grub/menu.h' for consistency.
36814
36815 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
36816 from normal.h.
36817 (grub_menu_get_entry): Likewise.
36818 (grub_menu_get_timeout): Likewise.
36819 (grub_menu_set_timeout): Likewise.
36820 (grub_menu_execute_entry): Likewise.
36821 (grub_menu_execute_with_fallback): Likewise.
36822 (grub_menu_entry_run): Likewise.
36823
36824 * include/grub/normal.h: Re-ordered and grouped function
36825 prototypes by file that the function is defined in.
36826 (grub_menu_execute_callback): Removed; moved to menu.h.
36827 (grub_menu_get_entry): Likewise.
36828 (grub_menu_get_timeout): Likewise.
36829 (grub_menu_set_timeout): Likewise.
36830 (grub_menu_execute_entry): Likewise.
36831 (grub_menu_execute_with_fallback): Likewise.
36832 (grub_menu_entry_run): Likewise.
36833 (grub_menu_addentry): Renamed from this ...
36834 (grub_normal_add_menu_entry): ... to this.
36835
36836 * normal/main.c (grub_menu_addentry): Renamed from this ...
36837 (grub_normal_add_menu_entry): ... to this.
36838
36839 * script/sh/execute.c (grub_script_execute_menuentry): Update
36840 reference to renamed grub_menu_addentry function.
36841
861f03a5 368422009-05-23 Felix Zielcke <fzielcke@z-51.de>
36843
36844 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
36845
96b1619a 368462009-05-22 Pavel Roskin <proski@gnu.org>
36847
bf6a5fb2 36848 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
36849 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
36850 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
36851 compiling for the i386 targets, but not for the utilities.
36852
96b1619a 36853 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
36854 to grub_uint8_t.
36855 (grub_root_drive): Likewise.
36856 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
36857 remove alignment.
36858 (grub_root_drive): Change size to byte.
36859 (grub_start_addr): Remove.
36860 (grub_end_addr): Likewise.
36861 (grub_apm_bios_info): Likewise.
36862
b729776b 368632009-05-21 Felix Zielcke <fzielcke@z-51.de>
36864
36865 * normal/i386: Remove.
36866 * normal/powerpc: Likewise.
36867 * normal/sparc64: Likewise.
36868 * normal/x86_64: Likewise.
36869
0a15ce80 368702009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
36871
36872 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 36873 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 36874 * loader/i386/xnu_helper.S: Likewise
d6da58e6 36875
33db9015 368762009-05-18 Colin D Bennett <colin@gibibit.com>
36877
d6da58e6 36878 Display error messages when parsing a Lua statement fails.
36879 Previously, executing a syntactically invalid statement like
36880 ")foo" or "bar;" would silently fail.
33db9015 36881
36882 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 36883 (grub_lua_parse_line): Improved reporting of Lua parser and
36884 execution errors.
33db9015 36885
46422c89 368862009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
36887
36888 Remove -Werror which causes build to fail on some systems
36889
36890 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
36891 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
36892 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 36893
22f53a96 368942009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
36895
36896 trampoline for linux on 64-bit platform
36897
18f547ad 36898 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
36899 loader/i386/efi/linux_trampoline.S
36900 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 36901 declaration
d6da58e6 36902 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
36903 here
22f53a96 36904 * loader/i386/linux_trampoline.S: moved here
d6da58e6 36905 * loader/i386/efi/linux.c (allocate_pages): reserve space for
36906 trampoline
22f53a96 36907 (jumpvector): removed
36908 (grub_linux_trampoline_start): new declaration
36909 (grub_linux_trampoline_end): likewise
36910 (grub_linux_boot): use trampoline when on 64-bit platform
36911 * loader/i386/linux.c: likewise
36912
cb5a0f40 369132009-05-16 Pavel Roskin <proski@gnu.org>
36914
36915 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
36916 const to avoid a warning.
36917 (grub_lua_setenv): Likewise.
36918 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
36919 lmsg to fix a warning.
36920
334f2c28 369212009-05-16 Felix Zielcke <fzielcke@z-51.de>
36922
36923 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 36924 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
36925 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
36926 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
36927 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
36928 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
36929 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
36930 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 36931
59e5d3ec 369322009-05-16 Felix Zielcke <fzielcke@z-51.de>
36933
36934 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
36935
9d87a1ba 369362009-05-16 Bean <bean123ch@gmail.com>
36937
36938 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
36939 (lua_mod_SOURCES): New variable.
36940 (lua_mod_CFLAGS): Likewise.
36941 (lua_mod_LDFLAGS): Likewise.
36942
36943 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
36944 (setjmp_mod_SOURCES): New variable.
36945 (setjmp_mod_CFLAGS): Likewise.
36946 (setjmp_LDFLAGS): Likewise.
36947
36948 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
36949 (setjmp_mod_SOURCES): New variable.
36950 (setjmp_mod_CFLAGS): Likewise.
36951 (setjmp_LDFLAGS): Likewise.
36952
36953 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
36954 (setjmp_mod_SOURCES): New variable.
36955 (setjmp_mod_CFLAGS): Likewise.
36956 (setjmp_LDFLAGS): Likewise.
36957
36958 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
36959 (setjmp_mod_SOURCES): New variable.
36960 (setjmp_mod_CFLAGS): Likewise.
36961 (setjmp_LDFLAGS): Likewise.
36962
36963 * normal/i386/setjmp.S: Moved from here ...
36964 * lib/i386/setjmp.S: ... Moved here
36965 * normal/x86_64/setjmp.S: Moved from here ...
36966 * lib/x86_64/setjmp.S: ... Moved here
36967 * normal/powerpc/setjmp.S: Moved from here ...
36968 * lib/powerpc/setjmp.S: ... Moved here
36969 * normal/sparc64/setjmp.S: Moved from here ...
36970 * lib/sparc64/setjmp.S: ... Moved here
36971
36972 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
36973 returns_twice in mingw.
36974
36975 * script/lua/grub_lib.c: New file.
36976 * script/lua/grub_lib.h: Likewise.
36977 * script/lua/grub_lua.h: Likewise.
36978 * script/lua/grub_main.c: Likewise.
36979 * script/lua/lapi.c: Likewise.
36980 * script/lua/lapi.h: Likewise.
36981 * script/lua/lauxlib.c: Likewise.
36982 * script/lua/lauxlib.h: Likewise.
36983 * script/lua/lbaselib.c: Likewise.
36984 * script/lua/lcode.c: Likewise.
36985 * script/lua/lcode.h: Likewise.
36986 * script/lua/ldblib.c: Likewise.
36987 * script/lua/ldebug.c: Likewise.
36988 * script/lua/ldebug.h: Likewise.
36989 * script/lua/ldo.c: Likewise.
36990 * script/lua/ldo.h: Likewise.
36991 * script/lua/ldump.c: Likewise.
36992 * script/lua/lfunc.c: Likewise.
36993 * script/lua/lfunc.h: Likewise.
36994 * script/lua/lgc.c: Likewise.
36995 * script/lua/lgc.h: Likewise.
36996 * script/lua/linit.c: Likewise.
36997 * script/lua/liolib.c: Likewise.
36998 * script/lua/llex.c: Likewise.
36999 * script/lua/llex.h: Likewise.
37000 * script/lua/llimits.h: Likewise.
37001 * script/lua/lmathlib.c: Likewise.
37002 * script/lua/lmem.c: Likewise.
37003 * script/lua/lmem.h: Likewise.
37004 * script/lua/loadlib.c: Likewise.
37005 * script/lua/lobject.c: Likewise.
37006 * script/lua/lobject.h: Likewise.
37007 * script/lua/lopcodes.c: Likewise.
37008 * script/lua/lopcodes.h: Likewise.
37009 * script/lua/loslib.c: Likewise.
37010 * script/lua/lparser.c: Likewise.
37011 * script/lua/lparser.h: Likewise.
37012 * script/lua/lstate.c: Likewise.
37013 * script/lua/lstate.h: Likewise.
37014 * script/lua/lstring.c: Likewise.
37015 * script/lua/lstring.h: Likewise.
37016 * script/lua/lstrlib.c: Likewise.
37017 * script/lua/ltable.c: Likewise.
37018 * script/lua/ltable.h: Likewise.
37019 * script/lua/ltablib.c: Likewise.
37020 * script/lua/ltm.c: Likewise.
37021 * script/lua/ltm.h: Likewise.
37022 * script/lua/lua.h: Likewise.
37023 * script/lua/luaconf.h: Likewise.
37024 * script/lua/lualib.h: Likewise.
37025 * script/lua/lundump.c: Likewise.
37026 * script/lua/lundump.h: Likewise.
37027 * script/lua/lvm.c: Likewise.
37028 * script/lua/lvm.h: Likewise.
37029 * script/lua/lzio.c: Likewise.
37030 * script/lua/lzio.h: Likewise.
37031
5e898c9d 370322009-05-16 Bean <bean123ch@gmail.com>
37033
37034 * include/grub/kernel.h (grub_module_header_types): Add type
37035 OBJ_TYPE_CONFIG.
37036
37037 * kern/main.c (grub_load_config): New function.
37038 (grub_main): Call grub_load_config to read boot config.
37039
37040 * grub-mkimage (generate_image): New parameter config_path.
37041 (options): New option --config.
37042 (main): Parse --config option, and pass it to generate_image.
37043
cf353a47 370442009-05-14 Christian Franke <franke@computer.org>
37045
37046 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
37047 This fixes build on Cygwin.
37048
3834887f 370492009-05-14 Pavel Roskin <proski@gnu.org>
37050
37051 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
37052 jump. This saves two bytes, so the typical case of 2 swapped
37053 drives would fit 32 bytes.
37054
8090fc01 370552009-05-13 Pavel Roskin <proski@gnu.org>
37056
ac963883 37057 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
37058 grub_uint32_t to avoid a warning.
37059
8090fc01 37060 * loader/i386/linux.c (allocate_pages): When assigning
37061 real_mode_mem, cast through grub_size_t to fix a warning. The
37062 code already makes sure that the value would fit a pointer.
37063 (grub_linux_setup_video): Cast render_target->data to
37064 grub_size_t to fix a warning.
37065
18f547ad 370662009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 37067
37068 * commands/i386/pc/drivemap.c: New file - implement drivemap
37069 command.
37070 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
37071 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
37072
6f6a8b28 370732009-05-13 Pavel Roskin <proski@gnu.org>
37074
37075 * util/i386/pc/grub-setup.c (setup): Remove unused variable
37076 embedding_area_exists.
37077
15fbf4c4 370782009-05-13 Robert Millan <rmh.grub@aybabtu.com>
37079
37080 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
37081 it easier to understand / work with.
59978c8a 37082 Improve warning messages for cases where there's no embedding area,
37083 or when it is too small (or core.img too large).
15fbf4c4 37084
238e871f 370852009-05-13 Pavel Roskin <proski@gnu.org>
37086
0ab3a9a4 37087 * loader/i386/pc/multiboot2.c: Add necessary includes for
37088 grub_multiboot2_real_boot().
37089
a2c8c5f8 37090 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
37091 PX record is always little-endian. We only need the lower 2
37092 bytes of the mode.
37093
faec96af 37094 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
37095 facilitate code reuse.
37096 (grub_cpio_mount): Use "struct head", not a char buffer. This
37097 fixes a warning reported by gcc 4.4.
37098
238e871f 37099 * kernel/disk.c (grub_disk_read): Use void pointer for the
37100 buffer.
37101 (grub_disk_write): Use const void pointer for the buffer.
37102 Adjust all callers. Remove unnecessary casts.
37103
901d2f0c 371042009-05-10 Robert Millan <rmh.grub@aybabtu.com>
37105
37106 * util/i386/pc/grub-install.in: Update copyright year.
37107
18f547ad 371082009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 37109
37110 gptsync
37111
37112 * commands/gptsync.c: new file
37113 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
37114 (gptsync_mod_SOURCES): new variable
37115 (gptsync_mod_CFLAGS): likewise
37116 (gptsync_mod_LDFLAGS): likewise
18f547ad 37117 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 37118 new definition
37119 (GRUB_PC_PARTITION_TYPE_HFS): likewise
37120 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
37121 * conf/i386-ieee1275.rmk: likewise
37122 * conf/i386-pc.rmk: likewise
37123 * conf/powerpc-ieee1275.rmk: likewise
37124
b4ba690a 371252009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
37126
37127 Fixed grub-emu
37128
37129 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
37130 (grub_dl_ref): likewise
37131
317e1a44 371322009-05-08 Robert Millan <rmh.grub@aybabtu.com>
37133
37134 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
37135 split in two functions (one for msdos and one for gpt).
37136
041b8094 371372009-05-08 Pavel Roskin <proski@gnu.org>
37138
752473c2 37139 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
37140 not modified.
37141
041b8094 37142 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
37143 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
37144 Initialize them with -1. Add sanity check for bad1. Eliminate
37145 nerr variable.
37146
172800ce 371472009-05-08 David S. Miller <davem@davemloft.net>
37148
37149 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
37150
29aa5e81 371512009-05-06 Robert Millan <rmh.grub@aybabtu.com>
37152
37153 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 37154 existence.
29aa5e81 37155
96613b62 371562009-05-05 Felix Zielcke <fzielcke@z-51.de>
37157
37158 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 37159 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 37160
eef73c8a 371612009-05-05 David S. Miller <davem@davemloft.net>
37162
37163 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
37164
119494b5 371652009-05-05 Pavel Roskin <proski@gnu.org>
37166
37167 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
37168 of grub_dl_ref() and grub_dl_unref().
37169 * commands/parttool.c: Remove preprocessor conditionals around
37170 grub_dl_ref() and grub_dl_unref().
37171 * fs/affs.c: Likewise.
37172 * fs/afs.c: Likewise.
37173 * fs/cpio.c: Likewise.
37174 * fs/ext2.c: Likewise.
37175 * fs/fat.c: Likewise.
37176 * fs/hfs.c: Likewise.
37177 * fs/hfsplus.c: Likewise.
37178 * fs/iso9660.c: Likewise.
37179 * fs/jfs.c: Likewise.
37180 * fs/minix.c: Likewise.
37181 * fs/ntfs.c: Likewise.
37182 * fs/reiserfs.c: Likewise.
37183 * fs/sfs.c: Likewise.
37184 * fs/udf.c: Likewise.
37185 * fs/ufs.c: Likewise.
37186 * fs/xfs.c: Likewise.
37187 * include/grub/dl.h: Likewise.
37188 * loader/xnu.c: Likewise.
37189
de5fd76e 371902009-05-04 Pavel Roskin <proski@gnu.org>
37191
37192 * commands/acpi.c: Remove unused variable my_mod.
37193 * partmap/amiga.c: Likewise.
37194 * partmap/apple.c: Likewise.
37195 * partmap/gpt.c: Likewise.
37196 * partmap/pc.c: Likewise.
37197 * partmap/sun.c: Likewise.
37198 * term/gfxterm.c: Likewise.
37199 * term/i386/pc/vesafb.c: Likewise.
37200 * term/i386/pc/vga.c: Likewise.
37201
983598ad 372022009-05-04 David S. Miller <davem@davemloft.net>
37203
37204 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
37205 pointer args to grub_ieee1275_get_property().
37206
8aadec43 37207 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
37208
9554b15e 37209 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
37210 devices, and do not traverse down under controller nodes.
37211
67e23c90 37212 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
37213 (grub_ofdisk_open): Use it to un-escape "," characters.
37214 * kern/disk.c (find_part_sep): New.
37215 (grub_disk_open): Use it to find the first non-escaped ','
37216 character in the disk name.
37217 * util/ieee1275/devicemap.c (escape_of_path): New.
37218 (grub_util_emit_devicemap_entry): Use it.
37219 * util/sparc64/ieee1275/grub-install.in: Update script to
37220 strip partition specifiers properly by not triggering on
37221 '\' escaped ',' characters.
37222
74bfdd2f 372232009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37224
37225 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
37226 to 0x300.
37227 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
37228 resolutions.
37229 (linux_vesafb_modes): Add a lot of additional modes to the list (based
37230 on documentation from Wikipedia).
37231
4241d2b1 372322009-05-04 Pavel Roskin <proski@gnu.org>
37233
37234 * disk/ata.c: Spelling fixes.
37235 * disk/raid.c: Likewise.
37236 * disk/usbms.c: Likewise.
37237 * disk/dmraid_nvidia.c: Likewise.
37238 * kern/ieee1275/openfw.c: Likewise.
37239 * kern/ieee1275/init.c: Likewise.
37240 * kern/ieee1275/cmain.c: Likewise.
37241 * boot/i386/pc/cdboot.S: Likewise.
37242 * video/readers/png.c: Likewise.
37243 * video/i386/pc/vbe.c: Likewise.
37244 * fs/udf.c: Likewise.
37245 * fs/hfs.c: Likewise.
37246 * fs/reiserfs.c: Likewise.
37247 * efiemu/runtime/efiemu.c: Likewise.
37248 * efiemu/main.c: Likewise.
37249 * efiemu/mm.c: Likewise.
37250 * include/grub/elf.h: Likewise.
37251 * include/grub/xnu.h: Likewise.
37252 * include/grub/usbdesc.h: Likewise.
37253 * include/grub/usb.h: Likewise.
37254 * include/grub/script_sh.h: Likewise.
37255 * include/grub/lib/LzmaEnc.h: Likewise.
37256 * include/grub/efiemu/efiemu.h: Likewise.
37257 * include/grub/command.h: Likewise.
37258 * normal/menu.c: Likewise.
37259 * normal/main.c: Likewise.
37260 * normal/datetime.c: Likewise.
37261 * bus/usb/uhci.c: Likewise.
37262 * mmap/i386/uppermem.c: Likewise.
37263 * mmap/mmap.c: Likewise.
37264 * commands/acpi.c: Likewise.
37265 * commands/test.c: Likewise.
37266 * partmap/apple.c: Likewise.
37267 * font/font.c: Likewise.
37268 * loader/sparc64/ieee1275/linux.c: Likewise.
37269 * loader/macho.c: Likewise.
37270 * loader/i386/bsd_trampoline.S: Likewise.
37271 * loader/i386/bsd.c: Likewise.
37272 * loader/xnu.c: Likewise.
37273 * term/i386/pc/vesafb.c: Likewise.
37274 * term/usb_keyboard.c: Likewise.
37275 * util/resolve.c: Likewise.
37276 * util/getroot.c: Likewise.
37277
0cfc0083 372782009-05-04 Felix Zielcke <fzielcke@z-51.de>
37279
37280 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
37281
7c1d00cd 372822009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37283
37284 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
37285 build error.
37286
b01f0548 372872009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37288
37289 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
37290 parameter only available on BIOS.
37291
ecc3eb22 372922009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37293
37294 Removed wrong semicolon in declaration
37295
37296 * grub/misc.h (grub_dprintf): remove semicolon
37297
112972a9 372982009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37299
37300 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
37301 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
37302 is done by grub_cmd_linux() now).
37303 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
37304 restore video to text mode.
37305 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
37306 indicates lack of "vga=" parameter. "vga=0" is mapped to
37307 `GRUB_LINUX_VID_MODE_NORMAL'.
37308
afd5c115 373092009-05-04 Felix Zielcke <fzielcke@z-51.de>
37310
37311 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
37312 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
37313 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 37314 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 37315 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
37316 `grub_script.tab.c'.
37317
37318 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37319 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37320 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37321 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37322 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37323
faa517ce 37324 * Makefile.in: Remove duplicated 2008 in Copyright line.
37325
ae0c0bdc 373262009-05-04 Robert Millan <rmh.grub@aybabtu.com>
37327
473d1e45 37328 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 37329 unconditionally.
37330 * include/grub/util/misc.h (grub_util_warn): New declaration.
37331
37332 * util/i386/pc/grub-install.in: Understand --force and pass it down
37333 to grub-setup.
37334
37335 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
37336 down to setup().
37337 (setup): Improve error messages and add warnings when requested to
37338 install in odd layouts. Refuse to install using blocklists unless
37339 --force was set.
37340
18f547ad 373412009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 37342
37343 * disk/raid.c (grub_raid_scan_device): Improve debug message.
37344
6d260daa 373452009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37346
37347 Updated copyright year
37348
37349 * fs/hfsplus.c: updated copyright year
18f547ad 37350
69f853f8 373512009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
37352
37353 HFS+ UUID
37354
18f547ad 37355 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 37356 in the space previously used by unused3
37357 (grub_hfsplus_uuid): new function
37358 (grub_hfsplus_fs): added uuid field
37359
4c402e73 373602009-05-03 Pavel Roskin <proski@gnu.org>
37361
37362 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
37363 suppress warnings. It's no longer needed.
37364 * disk/host.c: Likewise.
37365 * disk/ata_pthru.c: Likewise.
37366 * disk/loopback.c: Likewise.
37367 * hook/datehook.c: Likewise.
37368 * parttool/pcpart.c: Likewise.
37369 * fs/i386/pc/pxe.c: Likewise.
37370 * fs/ntfscomp.c: Likewise.
37371 * efiemu/main.c: Likewise.
37372 * mmap/mmap.c: Likewise.
37373 * commands/crc.c: Likewise.
37374 * commands/hexdump.c: Likewise.
37375 * commands/hdparm.c: Likewise.
37376 * commands/acpi.c: Likewise.
37377 * commands/echo.c: Likewise.
37378 * commands/minicmd.c: Likewise.
37379 * commands/blocklist.c: Likewise.
37380 * commands/memrw.c: Likewise.
37381 * commands/loadenv.c: Likewise.
37382 * commands/usbtest.c: Likewise.
37383 * commands/lsmmap.c: Likewise.
37384 * commands/boot.c: Likewise.
37385 * commands/parttool.c: Likewise.
37386 * commands/configfile.c: Likewise.
37387 * commands/search.c: Likewise.
37388 * commands/ieee1275/suspend.c: Likewise.
37389 * commands/cat.c: Likewise.
37390 * commands/i386/pc/pxecmd.c: Likewise.
37391 * commands/i386/pc/play.c: Likewise.
37392 * commands/i386/pc/halt.c: Likewise.
37393 * commands/i386/pc/vbeinfo.c: Likewise.
37394 * commands/i386/pc/vbetest.c: Likewise.
37395 * commands/lspci.c: Likewise.
37396 * commands/date.c: Likewise.
37397 * commands/handler.c: Likewise.
37398 * commands/ls.c: Likewise.
37399 * commands/test.c: Likewise.
37400 * commands/cmp.c: Likewise.
37401 * commands/efi/loadbios.c: Likewise.
37402 * commands/efi/fixvideo.c: Likewise.
37403 * commands/halt.c: Likewise.
37404 * commands/help.c: Likewise.
37405 * commands/reboot.c: Likewise.
37406 * hello/hello.c: Likewise.
37407 * script/sh/main.c: Likewise.
37408 * loader/xnu.c: Likewise.
37409 * term/terminfo.c: Likewise.
37410 * term/i386/pc/serial.c: Likewise.
37411 * term/usb_keyboard.c: Likewise.
37412
515b5079 374132009-05-03 David S. Miller <davem@davemloft.net>
37414
37415 * normal/menu.c: Include grub/parser.h
37416
dfc31a22 374172009-05-03 Pavel Roskin <proski@gnu.org>
37418
2fee74f1 37419 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
37420 not char*.
37421 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
37422 Suggested by Javier Martín <lordhabbit@gmail.com>
37423
dfc31a22 37424 * util/i386/pc/grub-mkrescue.in: Allow for the case when
37425 efiemu??.o doesn't exist.
37426 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
37427 copying.
37428
18f547ad 374292009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 37430
37431 FreeBSD 64-bit support
37432
18f547ad 37433 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 37434 and loader/i386/bsd_trampoline.S
37435 (bsd_mod_ASFLAGS): new variable
37436 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
37437 (FREEBSD_MODTYPE_KERNEL64): likewise
37438 (grub_bsd64_trampoline_start): likewise
37439 (grub_bsd64_trampoline_end): likewise
37440 (grub_bsd64_trampoline_selfjump): likewise
37441 (grub_bsd64_trampoline_gdt): likewise
37442 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
37443 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
37444 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
37445 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 37446 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 37447 of "attrib" member
37448 * loader/i386/bsd_pagetable.c: new file
37449 * loader/i386/bsd_trampoline.S: likewise
37450 * loader/i386/bsd.c (ALIGN_QWORD): new macro
37451 (ALIGN_VAR): likewise
37452 (entry_hi): new variable
37453 (kern_end_mdofs): likewise
37454 (is_64bit): likewise
37455 (grub_freebsd_add_meta): use ALIGN_VAR
37456 (grub_e820_mmap): new declaration
37457 (grub_freebsd_add_mmap): new function
37458 (grub_freebsd_add_meta_module): support 64 bit kernels
37459 (grub_freebsd_list_modules): use ALIGN_VAR
37460 (gdt_descriptor): new declaration
37461 (grub_freebsd_boot): support 64 bit kernels
37462 (grub_bsd_elf64_hook): new function
37463 (grub_bsd_load_elf): support elf64
37464
038c5720 374652009-05-03 Bean <bean123ch@gmail.com>
37466
37467 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
37468 after we get the result of if statement.
37469
fc45fb58 374702009-05-03 Bean <bean123ch@gmail.com>
37471
37472 * Makefile.in (enable_efiemu): New variable.
37473
37474 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
37475 set.
37476 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
37477 path.
37478 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
37479 path, add -mno-red-zone option.
37480 (efiemu64_s.o): Likewise.
37481 (efiemu64.o): Use macro $^ for source file.
37482
37483 * configure.ac (--enable-efiemu): New option.
37484
bbee0f2b 374852009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
37486
37487 xnu support
37488
37489 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
37490 (pkglib_MODULES): add xnu.mod
37491 (xnu_mod_SOURCES): new variable
37492 (xnu_mod_CFLAGS): likewise
37493 (xnu_mod_LDFLAGS): likewise
37494 (xnu_mod_ASFLAGS): likewise
37495 * conf/i386-pc.rmk: likewise
37496 * conf/x86_64-efi.rmk: likewise
7dd4a573 37497 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 37498 new declaration
37499 * include/grub/i386/macho.h: new file
37500 * include/grub/i386/xnu.h: likewise
37501 * include/grub/macho.h: likewise
37502 * include/grub/machoload.h: likewise
37503 * include/grub/x86_64/macho.h: likewise
37504 * include/grub/x86_64/xnu.h: likewise
37505 * include/grub/xnu.h: likewise
37506 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
37507 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
37508 * loader/i386/efi/xnu.c: new file
37509 * loader/i386/pc/xnu.c: likewise
37510 * loader/i386/xnu.c: likewise
37511 * loader/i386/xnu_helper.S: likewise
37512 * loader/macho.c: likewise
37513 * loader/xnu.c: likewise
37514 * loader/xnu_resume.c: likewise
37515 * util/grub-dumpdevtree: likewise
37516 * include/grub/i386/pit.h: include grub/err.h
37517 (grub_pit_wait): export
37518 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 37519
5caf964d 375202009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
37521
37522 Efiemu
7dd4a573 37523
5caf964d 37524 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 37525 _linux_efi, linux_efi.
37526 new files in grub-emu
5caf964d 37527 new targets efiemu32.o and efiemu64.o
37528 * loader/linux_normal_efiemu.c: likewise
37529 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 37530 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 37531 files to copy
37532 * include/grub/autoefi.h: new file
7dd4a573 37533 * include/grub/i386/efiemu.h: likewise
5caf964d 37534 * include/grub/i386/pc/efiemu.h: likewise
37535 * include/grub/efi/api.h: add LL suffix when necessary
37536 new definitions relating to tables
37537 * include/grub/efiemu/efiemu.h: new file
37538 * include/grub/efiemu/runtime.h: likewise
37539 * efiemu/prepare.c: likewise
37540 * efiemu/loadcore_common.c: likewise
37541 * efiemu/loadcore64.c: likewise
37542 * efiemu/runtime/efiemu.sh: likewise
37543 * efiemu/runtime/efiemu.S: likewise
37544 * efiemu/runtime/efiemu.c: likewise
37545 * efiemu/runtime/config.h: likewise
37546 * efiemu/prepare32.c: likewise
37547 * efiemu/main.c: likewise
37548 * efiemu/modules/pnvram.c: likewise
37549 * efiemu/modules/i386: likewise
37550 * efiemu/modules/i386/pc: likewise
37551 * efiemu/modules/acpi.c: likewise
37552 * efiemu/i386/pc/cfgtables.c: likewise
37553 * efiemu/i386/loadcore64.c: likewise
37554 * efiemu/i386/loadcore32.c: likewise
37555 * efiemu/prepare64.c: likewise
37556 * efiemu/loadcore.c: likewise
37557 * efiemu/symbols.c: likewise
37558 * efiemu/mm.c: likewise
37559 * efiemu/loadcore32.c: likewise
7dd4a573 37560
375612009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 37562
37563 ACPI spoofing
37564
37565 * commands/acpi.c: new file
37566 * commands/i386/pc/acpi.c: likewise
37567 * commands/efi/acpi.c: likewise
37568 * include/grub/acpi.h: likewise
37569 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
37570 (acpi_mod_SOURCES): new variable
37571 (acpi_mod_CFLAGS): likewise
37572 (acpi_mod_LDFLAGS): likewise
37573 * conf/i386-efi.rmk: likewise
37574 * conf/x86_64-efi.rmk: likewise
37575
7dd4a573 375762009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 37577
37578 Missing part from mmap patch
37579
37580 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
37581 (grub_mmap_unregister)
37582 (grub_mmap_free_and_unregister): use grub_mmap_register
37583
7dd4a573 375842009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 37585
37586 Mmap services
37587
37588 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
37589 * loader/i386/linux.c (find_mmap_size): likewise
37590 (allocate_pages): likewise
37591 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
37592 (grub_fill_multiboot_mmap): likewise
37593 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
37594 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
37595 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
37596 (OPENBSD_MMAP_RESERVED): likewise
37597 * include/grub/i386/pc/memory.h: include grub/memory.h
37598 (grub_lower_mem): removed
37599 (grub_upper_mem): likewise
37600 (GRUB_MACHINE_MEMORY_ACPI): new definition
37601 (GRUB_MACHINE_MEMORY_NVS): likewise
37602 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
37603 (GRUB_MACHINE_MEMORY_HOLE): likewise
37604 (grub_machine_mmap_register): likewise
37605 (grub_machine_mmap_unregister): likewise
37606 (grub_machine_get_upper): likewise
37607 (grub_machine_get_lower): likewise
37608 (grub_machine_get_post64): likewise
37609 * include/grub/i386/efi/memory.h: new file
37610 * include/grub/x86_64/efi/memory.h: likewise
37611 * include/grub/efi/memory.h: likewise
37612 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
37613 (mmap_mod_SOURCES): new variable
37614 (mmap_mod_LDFLAGS): likewise
37615 (mmap_mod_ASFLAGS): likewise
37616 * conf/i386-coreboot.rmk: likewise
37617 * conf/i386-ieee1275.rmk: likewise
37618 * conf/i386-efi.rmk: likewise
37619 * conf/x86_64-efi.rmk: likewise
37620 * include/grub/types.h (UINT_TO_PTR): new macro
37621 (PTR_TO_UINT32): likewise
37622 (PTR_TO_UINT64): likewise
37623 * include/grub/memory.h: new file
37624 * mmap/i386/pc/mmap.c: likewise
37625 * mmap/i386/pc/mmap_helper.S: likewise
37626 * mmap/i386/uppermem.c: likewise
37627 * mmap/mmap.c: likewise
37628 * mmap/efi/mmap.c: likewise
7dd4a573 37629 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 37630 grub_upper_mem
37631 * kern/i386/pc/init.c (grub_lower_mem): removed variable
37632 (grub_upper_mem): likewise
37633 (grub_machine_init): don't use grub_upper_mem,
37634 make grub_lower_mem local
37635 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
37636 grub_mmap_iterate and grub_mmap_get_upper
37637 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
37638
d558e6b5 376392009-05-02 Bean <bean123ch@gmail.com>
37640
37641 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
37642 script/sh/parser.y.
37643 (pkglib_MODULES): Add normal.mod and sh.mod.
37644 (normal_SOURCES): New variable.
37645 (normal_mod_CFLAGS): Likewise.
37646 (normal_mod_LDFLAGS): Likewise.
37647 (sh_mod_SOURCES): Likewise.
37648 (sh_mod_CFLAGS): Likewise.
37649 (sh_mod_LDFLAGS): Likewise.
37650
37651 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
37652 script/sh/lexer.c_DEPENDENCIES.
37653 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
37654 kern/rescue_reader.c and kern/rescue_parser.c.
37655 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
37656 (grub_emu_SOURCES): Change source files.
37657 (pkglib_MODULES): Remove normal.mod.
37658 (normal_SOURCES): Removed.
37659 (normal_mod_CFLAGS): Likewise.
37660 (normal_mod_LDFLAGS): Likewise.
37661 * conf/i386-coreboot.rmk: Likewise.
37662 * conf/i386-efi.rmk: Likewise.
37663 * conf/i386-ieee1276.rmk: Likewise.
37664 * conf/powerpc-ieee1275.rmk: Likewise.
37665 * conf/sparc64-ieee1275.rmk: Likewise.
37666 * conf/x86_64-efi.rmk: Likewise.
37667
37668 * include/grub/command.h (grub_command_execute): New inline function.
37669
37670 * include/grub/menu.h (grub_menu_entry): Removed commands field.
37671
37672 * include/grub/normal.h: Remove <grub/setjmp.h>.
37673 (grub_fs_module_list): Moved to normal/autofs.c.
37674 (grub_exit_env): Removed.
37675 (grub_command_execute): Likewise.
37676 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
37677 parameter script.
37678 (read_command_list): New function declaration.
37679 (read_fs_list): Likewise.
37680
37681 * include/parser.h: Include <grub/reader.h>.
37682 (grub_parser_split_cmdline): Change type of getline parameter.
37683 (grub_parser): New structure.
37684 (grub_parser_class): New variable.
37685 (grub_parser_execute): New function declaration.
37686 (grub_register_rescue_parser): Likewise.
37687 (grub_parser_register): New inline function.
37688 (grub_parser_unregister): Likewise.
37689 (grub_parser_get_current): Likewise.
37690 (grub_parser_set_current): Likewise.
37691
37692 * include/grub/reader.h: New file.
37693 * kern/reader.c: Likewise.
37694 * kern/rescue_parser.c: Likewise.
37695 * kern/rescue_reader.c: Likewise.
37696 * normal/autofs.c: Likewise.
37697 * normal/dyncmd.c: Likewise.
37698
37699 * include/grub/rescue.h: Removed.
37700 * normal/command.h: Likewise.
37701
37702 * include/grub/script.h: Moved to ...
37703 * include/grub/script_sh.h: ... Moved here.
37704 * normal/execute.c: Moved to ...
37705 * script/sh/execute.c: ... Moved here.
37706 * normal/function.c: Moved to ...
37707 * script/sh/function.c: ... Moved here.
37708 * normal/lexer.c: Moved to ...
37709 * script/sh/lexer.c: ... Moved here.
37710 * normal/parser.y: Moved to ...
37711 * script/sh/parser.y: ... Moved here.
37712 * normal/script.c: Moved to ...
37713 * script/sh/script.c: ... Moved here.
37714
37715 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
37716 <grub/reader.h>.
37717 (grub_exit_env): Removed.
37718 (fs_module_list): Moved to normal/autofs.c.
37719 (grub_file_getline): Don't handle comment here.
37720 (free_menu): Skip removed field entry->commands.
37721 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
37722 script parameter.
37723 (read_config_file): Removed nested parameter, change getline function.
37724 (grub_enter_normal_mode): Removed.
37725 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
37726 (read_command_list): Likewise.
37727 (autoload_fs_module): Moved to normal/autofs.c.
37728 (read_fs_list): Likewise.
37729 (reader_nested): New variable.
37730 (grub_normal_execute): Run parser.sh to switch to sh parser.
37731 (grub_cmd_rescue): Removed.
37732 (cmd_normal): Removed.
37733 (grub_cmd_normal): Unregister itself at the beginning. Don't register
37734 rescue command.
37735 (grub_cmdline_run): New function.
37736 (grub_normal_reader_init): Likewise.
37737 (grub_normal_read_line): Likewise.
37738 (grub_env_write_pager): Likewise.
37739 (cmdline): New variable.
37740 (grub_normal_reader): Likewise.
37741 (GRUB_MOD_INIT): Register normal reader and set as current, register
37742 pager hook, register normal command with grub_register_command_prio,
37743 so that it won't show up in command.lst.
37744 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
37745 grub_fs_autoload_hook.
37746
37747 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
37748 (grub_menu_execute_entry): Replace grub_script_execute with
37749 grub_parser_execute, change parameter to grub_command_execute.
37750
37751 * normal/menu_text.c: Remove <grub/script.h>.
37752
37753 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
37754 and <grub/parser.h>.
37755 (run): Change editor_getline to use new parser interface. Change
37756 parameter to grub_command_execute.
37757
37758 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
37759 <grub/reader.h> and <grub/parser.h>.
37760 (grub_load_normal_mode): Execute normal command.
37761 (grub_main): Call grub_register_core_commands,
37762 grub_register_rescue_parser and grub_register_rescue_reader, use
37763 grub_reader_loop to enter input loop.
37764
7dd4a573 37765 * kern/parser.c (grub_parser_split_cmdline): Change type of
37766 getline parameter.
d558e6b5 37767 (grub_parser_class): New variable.
37768 (grub_parser_execute): New function.
37769
37770 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
37771 * loader/multiboot2.c: Likewise.
37772 * loader/sparc64/ieee1275/linux.c: Likewise.
37773
37774 * util/grub-emu.c (read_command_list): New dummy function.
37775
18db813d 377762009-05-02 Robert Millan <rmh.grub@aybabtu.com>
37777
37778 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
37779 count to 16 for CCISS and IDA.
37780
6c67de15 377812009-05-02 Robert Millan <rmh.grub@aybabtu.com>
37782
37783 * normal/menu_text.c (grub_wait_after_message): Print a newline
37784 after waiting for user input.
37785
37786 * loader/i386/linux.c: Include `<grub/normal.h>'.
37787 (grub_cmd_linux): Improve the error message about `ask' mode, by
37788 waiting for user input so it's not missed (we can do this, since
37789 user requested interaction).
37790
d9dc87b0 377912009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
37792
37793 Added missing lst to grub-mkrescue
37794
37795 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
37796 and ${input_dir}/parttool.lst
37797
ac8a2baa 377982009-04-30 David S. Miller <davem@davemloft.net>
37799
ad22a610 37800 * util/hostdisk.c (device_is_wholedisk): New function.
37801 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
37802 zero only if device_is_wholedisk() returns true.
37803
6966215d 37804 * util/hostdisk.c (convert_system_partition_to_system_disk):
37805 Handle virtual disk devices named /dev/vdiskX as found on sparc
37806 and powerpc.
37807
ac8a2baa 37808 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
37809 lettered partition specifier is found, convert to numbered.
37810
979b4fb4 378112009-04-29 David S. Miller <davem@davemloft.net>
37812
e2bf39b2 37813 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
37814 * include/grub/sparc64/ieee1275/memory.h: Likewise.
37815
3c64e104 37816 * normal/command.c: Add missing newline at end of file.
37817
979b4fb4 37818 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
37819 warnings.
37820 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
37821 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
37822 grub_ofdisk_read): Likewise, and deal similarly with the fact that
37823 ihandles have a 32-bit type but need to be stored in a "void *".
37824
136d9f82 378252009-04-28 Pavel Roskin <proski@gnu.org>
37826
9459c306 37827 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
37828 not disk. Adjust all dependencies.
2e08a26a 37829 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 37830 grub_disk_close().
37831
136d9f82 37832 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
37833 parent's partition, don't copy it by reference, as it gets freed
37834 on close.
37835
7dd4a573 378362009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 37837
37838 Preboot hooks support
37839
37840 * commands/boot.c (struct grub_preboot_t): new declaration
37841 (preboots_head): new variable
37842 (preboots_tail): likewise
37843 (grub_loader_register_preboot_hook): new function
37844 (grub_loader_unregister_preboot_hook): likewise
37845 (grub_loader_set): launch preboot hooks
37846 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
37847 (grub_loader_register_preboot_hook): new declaration
37848 (grub_loader_unregister_preboot_hook): likewise
37849
5af922b5 378502009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
37851
37852 Warning fix
37853
7dd4a573 37854 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 37855 calling grub_dprintf
37856
a5562c30 378572009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
37858
37859 Bug and warning fixes
37860
7dd4a573 37861 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 37862 declaration
37863 * commands/test.c (test_parse): fixed bug with file tests and corrected
37864 declaration of find_file
37865
4006f85c 378662009-04-26 Pavel Roskin <proski@gnu.org>
37867
37868 * Makefile.in: Don't install empty manual pages if help2man is
37869 missing. Use help2man option for output, not shell redirection.
37870
5c77c3de 378712009-04-26 David S. Miller <davem@davemloft.net>
37872
37873 * util/grub-mkdevicemap.c (make_device_map): Add missing
37874 NESTED_FUNC_ATTR to process_device().
37875
033b10a8 378762009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
37877
37878 Test command
37879
37880 * commands/test.c: rewritten to use bash-like test
37881
e4343593 378822009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
37883
37884 Parttool autoloading and improvements
37885
7dd4a573 37886 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 37887 (parttool.lst): new target
37888 * genmk.rb: generate parttool-*
37889 (CLEANFILES): add #{parttool}
37890 (PARTTOOLFILES): new variable
37891 * genparttoollist.sh: new file
7dd4a573 37892 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 37893 (grub_pcpart_type): likewise
37894 * commands/parttool.c (helpmsg): new variable
37895 (grub_cmd_parttool): output help if not enough arguments are supplied
37896 autoload modules
37897 (GRUB_MOD_INIT(parttool)): use helpmsg
37898
0d312500 378992009-04-24 David S. Miller <davem@davemloft.net>
37900
7dd4a573 37901 Avoiding opening same device multiple times in device iterator.
0d312500 37902
37903 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 37904 and use it to build a list of partitions in iterate_disk() and
0d312500 37905 iterate_partition().
37906
ac20caff 37907 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
37908 on disk->data.
37909
0dcf7495 37910 * disk/ieee1275/nand.c (grub_nand_iterate): Return
37911 grub_devalias_iterate() result instead of unconditional 0.
37912 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
37913 Also, capture hook return value, either directly or via
37914 grub_children_iterate(), and propagate to caller.
37915 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
37916 grub_children_iterate): Return value is now 'int' instead of
37917 'grub_err_t'.
37918 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
37919 like a proper iterator, stopping when hooks return non-zero.
37920 (grub_devalias_iterate): Likewise.
37921
c8c08833 379222009-04-23 David S. Miller <davem@davemloft.net>
37923
37924 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
37925
f01005a8 379262009-04-22 David S. Miller <davem@davemloft.net>
37927
37928 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
37929 is larger than address_cells, use that value for address_cells too.
37930
4e8269da 37931 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
37932 IEEE1275_MAX_PATH_LEN): Define.
37933 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
37934 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
37935 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
37936 'devtype'. Explicitly NULL terminate devalias expansion.
37937
a1447506 37938 * util/sparc64/ieee1275/misc.c: New file.
37939 * util/sparc64/ieee1275/grub-setup.c: New file.
37940 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
37941 * util/sparc64/ieee1275/grub-mkimage.c: New file.
37942 * util/sparc64/ieee1275/grub-install.in: New file.
37943 * util/ieee1275/ofpath.c: New file.
37944 * util/ieee1275/devicemap.c: New file.
37945 * util/devicemap.c: New file.
37946 * util/deviceiter.c: New file.
37947 * kern/sparc64/ieee1275/init.c: New file.
37948 * include/grub/util/ofpath.h: New file.
37949 * include/grub/util/deviceiter.h: New file.
37950 * util/grub-mkdevicemap.c: Include deviceiter.h.
37951 Implement using grub_util_emit_devicemap_entry and
37952 grub_util_iterate_devices.
37953 * conf/i386-corebook.rmk: Build util/deviceiter.c and
37954 util/devicemap.c into grub-mkdevicemap
37955 * conf/i386-efi.rmk: Likewise.
37956 * conf/i386-ieee1275.rmk: Likewise.
37957 * conf/i386-pc.rmk: Likewise.
37958 * conf/powerpc-ieee1275.rmk: Likewise.
37959 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
37960 images and installation utilities. Build kernel as image
37961 instead of as elf binary. Use common rules as much as possible.
37962
7dd4a573 379632009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 37964
37965 Correct GPT definition
37966
7dd4a573 37967 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 37968 of "attrib" member
37969
c6c5219f 379702009-04-19 Felix Zielcke <fzielcke@z-51.de>
37971
37972 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
37973
0552ff9f 379742009-04-19 David S. Miller <davem@davemloft.net>
37975
37976 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
37977 (grub_rescue_cmd_linux): Rename to...
37978 (grub_cmd_linux): and fix prototype.
37979 (grub_rescue_cmd_initrd): Rename to...
37980 (grub_cmd_initrd): and fix prototype.
37981 (cmd_linux, cmd_initrd): New.
37982 (GRUB_MOD_INIT(linux)): Use grub_register_command().
37983 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
37984
d1a282fc 379852009-04-17 Pavel Roskin <proski@gnu.org>
37986
07c5039f 37987 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
37988 format.
37989 (grub_ohci_transfer): Likewise.
37990
b012002d 37991 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
37992
1bc09c35 37993 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
37994 return without a value. Fix inconsistent indentation.
37995
e0ff9126 37996 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
37997 match struct grub_fs.
37998
d1a282fc 37999 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
38000 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
38001 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38002 * commands/lspci.c (grub_lspci_iter): Likewise.
38003
a96df3f2 380042009-04-16 Bean <bean123ch@gmail.com>
38005
38006 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
38007 value.
38008
41bb0fe9 380092009-04-15 Pavel Roskin <proski@gnu.org>
38010
38011 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
38012 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
38013 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
38014 definitions.
38015
596c6970 380162009-04-15 Felix Zielcke <fzielcke@z-51.de>
38017
38018 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 38019 that no multiple data or metadata areas are supported and `Unknown
596c6970 38020 metadata header'.
38021
7dd4a573 380222009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 38023
38024 Move loader out of the kernel
38025
38026 * kern/loader.c: moved to ...
38027 * commands/boot.c: ... moved here
38028 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
38029 * commands/boot.c (grub_cmd_boot): moved here. All users updated
38030 * include/grub/kernel.h (grub_machine_fini): export
38031 * include/grub/loader.h (grub_loader_is_loaded): update declaration
38032 (grub_loader_set): likewise
38033 (grub_loader_unset): likewise
38034 (grub_loader_boot): likewise
38035 * conf/common.rmk: new module boot.mod
38036 (pkglib_MODULES): add boot.mod
38037 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
38038 (grub_emu_SOURCES): likewise
38039 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
38040 (grub_emu_SOURCES): likewise
38041 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
38042 (grub_emu_SOURCES): likewise
38043 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
38044 (grub_emu_SOURCES): likewise
38045 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
38046 (grub_emu_SOURCES): likewise
7dd4a573 38047 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
38048 (grub_emu_SOURCES): likewise
0d5d5653 38049 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 38050 (grub_emu_SOURCES): likewise
0d5d5653 38051
7dd4a573 380522009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 38053
38054 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 38055
5999d619 38056 * kern/misc.c (grub_itoa): Removed function
38057 (grub_ltoa): likewise
38058 (grub_vsprintf): use grub_lltoa
38059
7dd4a573 380602009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 38061
38062 Restore grub-emu
38063
38064 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
38065 * conf/i386-coreboot.rmk: likewise
38066 * conf/i386-ieee1275.rmk: likewise
38067 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 38068
20318222 380692009-04-15 Felix Zielcke <fzielcke@z-51.de>
38070
38071 * INSTALL: Add that `./autogen.sh' needs to be run before
38072 `./configure.'.
38073
d05f0df3 380742009-04-14 Bean <bean123ch@gmail.com>
38075
38076 * Makefile.in (pkglib_DATA): Add handler.lst.
38077 (handler.lst): New rule.
38078
38079 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
38080 * conf/i386-coreboot.rmk: Likewise.
38081 * conf/i386-ieee1275.rmk: Likewise.
38082 * conf/i386-efi.rmk: Likewise.
38083 * conf/x86_64-efi.rmk: Likewise.
38084 * conf/powerpc-ieee1275.rmk: Likewise.
38085 * conf/sparc64-ieee1275.rmk: Likewise.
38086
38087 * genhandlerlist.sh: New file.
38088
38089 * genmk.rb: Add rules to generate handler.lst.
38090
38091 * include/grub/normal.h (grub_file_getline): New function definition.
38092 (read_handler_list): Likewise.
38093 (free_handler_list): Likewise.
38094
38095 * include/grub/term.h (grub_term_register_input): Add name parameter
38096 for auto generation of handler.lst.
38097 (grub_term_register_output): Likewise.
38098
38099 * normal/handler.c: New file.
38100
38101 * normal/main.c (get_line): Renamed to grub_file_getline.
38102 (read_config_file): Use the newly renamed grub_file_getline.
38103 (read_command_list): Likewise.
38104 (read_fs_list): Likewise.
38105 (grub_normal_execute): Call read_handler_list to parse handler.lst.
38106 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
38107
38108 * term/efi/console.c (grub_console_init): Add name parameter for auto
38109 generation of handler.lst.
38110 * term/gfxterm.c: Likewise.
38111 * term/i386/pc/at_keyboard.c: Likewise.
38112 * term/i386/pc/console.c: Likewise.
38113 * term/i386/pc/serial.c: Likewise.
38114 * term/i386/pc/vesafb.c: Likewise.
38115 * term/i386/pc/vga.c: Likewise.
38116 * term/i386/pc/vga_text.c: Likewise.
38117 * term/ieee1275/ofconsole.c: Likewise.
38118 * term/usb_keyboard.c: Likewise.
38119
33c846be 381202009-04-14 Bean <bean123ch@gmail.com>
38121
38122 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
38123 properly with null character.
38124
4484e01e 381252009-04-14 Felix Zielcke <fzielcke@z-51.de>
38126
38127 * configure: Remove.
38128 * config.h.in: Likewise.
f93d668e 38129 * stamp-h.in: Likewise.
4484e01e 38130 * DISTLIST: Likewise.
38131 * conf/common.mk: Likewise.
38132 * conf/i386-coreboot.mk: Likewise.
38133 * conf/i386-efi.mk: Likewise.
38134 * conf/i386-ieee1275.mk: Likewise.
38135 * conf/i386.mk: Likewise.
38136 * conf/i386-pc.mk: Likewise.
38137 * conf/powerpc-ieee1275.mk: Likewise.
38138 * conf/sparc64-ieee1275.mk: Likewise.
38139 * conf/x86_64-efi.mk: Likewise.
38140
38141 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
38142 develop on GRUB.
38143
7dd4a573 381442009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 38145 David S. Miller <davem@davemloft.net>
38146
38147 * util/hostdisk.c (make_device_name): Fix buffer length
38148 calculations.
38149
e25b5a8c 381502009-04-14 Felix Zielcke <fzielcke@z-51.de>
38151
38152 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
38153 <sys/param.h> and <sys/sysctl.h>.
38154 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
38155 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
38156 opening the device and reset them afterwards.
38157
1f1f580c 381582009-04-13 Pavel Roskin <proski@gnu.org>
38159
38160 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
38161 Reported by John Stanley <jpsinthemix@verizon.net>
38162
7ebc2d6b 381632009-04-13 Robert Millan <rmh@aybabtu.com>
38164
38165 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 38166 that name for menuentries when appropriate.
7ebc2d6b 38167
d8ba3667 381682009-04-13 Felix Zielcke <fzielcke@z-51.de>
38169
38170 * util/grub.d/10_freebsd.in: Add a missing `fi'.
38171
cba416eb 381722009-04-13 Robert Millan <rmh@aybabtu.com>
38173
38174 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
38175 to Linux, simply abort telling the user it's no longer supported.
38176
a547a745 381772009-04-13 Felix Zielcke <fzielcke@z-51.de>
38178
38179 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 38180 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 38181 `freebsd_loadenv' only when devices.hints exist.
38182
232a769c 381832009-04-13 Pavel Roskin <proski@gnu.org>
38184
38185 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
38186
c3012039 381872009-04-13 Felix Zielcke <fzielcke@z-51.de>
38188
38189 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
38190 partition number.
38191 (grub_drive): Likewise.
38192
234022fe 381932009-04-13 David S. Miller <davem@davemloft.net>
38194
38195 * kern/sparc64/ieee1275/ieee1275.c: New file.
38196 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
38197 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
38198 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
38199 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
38200 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
38201 grub_ieee1275_alloc_physmem): Declare new exported functions.
38202
d8e1836c 38203 * include/grub/sparc64/ieee1275/loader.h: New file.
38204 * include/grub/sparc64/ieee1275/memory.h: Likewise.
38205 * include/grub/sparc64/kernel.h: Likewise.
38206 * loader/sparc64/ieee1275/linux.c: Likewise.
38207
96bd81ec 38208 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
38209 (grub_fstest_SOURCES): Likewise.
38210
6a4737e5 38211 * util/hostdisk.c (make_device_name): Do not make any assumptions
38212 about the length of drive names.
38213
1d7a72fd 38214 * kern/dl.c (grub_dl_load_file): Close file immediately when
38215 we are done using it.
38216
56bc2471 382172009-04-12 David S. Miller <davem@davemloft.net>
38218
38219 * kern/misc.c (grub_ltoa): Fix cast when handling negative
38220 values. Noticed by Pavel Roskin.
38221
df38d0bb 38222 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
38223 target compiler.
7dd4a573 38224
e382e93a 38225 * genmk.rb: Add more flexible image type specification, also
38226 pass --strip-unneeded to objcopy.
38227 * conf/i386-pc.rmk: Use *_FORMAT.
38228 * conf/i386-pc.mk: Rebuilt.
38229
f5dbbca9 38230 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
38231 (OFDISK_HASH_SZ): Define.
38232 (ofdisk_hash): New hash table.
38233 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
38234 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
38235 instead of device phandle which is not unique.
38236
91c88b12 38237 * kern/sparc64/ieee1275/init.c: Delete, replace with...
38238 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
38239 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
38240 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
38241 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
38242 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
38243 GRUB_KERNEL_MACHINE_DATA_END): Define.
38244 (grub_kernel_image_size, grub_total_module_size): Declare.
38245
5b5d4aa5 382462009-04-12 Pavel Roskin <proski@gnu.org>
38247
7dd4a573 38248 * configure.ac: Change the logic when we check for target tools.
38249 Do it when the target is specified and it's different from the
38250 specified value of the host.
5b5d4aa5 38251
c91e1793 382522009-04-11 Felix Zielcke <fzielcke@z-51.de>
38253
38254 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
38255 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
38256 GNU/kFreeBSD. Check if a device is a character device. Use
38257 DIOCGMEDIASIZE to get the size.
38258 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
38259 support for GNU/kFreeBSD.
38260 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
38261 is a character device instead of a block device. Add support for
38262 FreeBSD device names.
38263
38264 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
38265 is a character device instead of a block device.
38266
38267 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
38268 is a character device instead of a block device.
38269
b1ac8644 382702009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
38271
38272 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
38273 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
38274 FreeBSD. Check if a device is a character device. Use
38275 DIOCGMEDIASIZE to get the size.
38276 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
38277 support for FreeBSD.
38278 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
38279 is a character device instead of a block device. Add support for
38280 FreeBSD device names.
38281
38282 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
38283 a character device instead of a block device.
38284 (grub_util_check_char_device): New function.
38285
38286 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
38287 a character device instead of a block device.
38288
38289 * include/grub/util/getroot.h (grub_util_check_char_device): New
38290 prototype.
38291
a3f7515a 382922009-04-11 David S. Miller <davem@davemloft.net>
38293
38294 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
38295 static libgcc.
38296 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
38297 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
38298 function, if present.
38299 (__bswapdi2): Likewise.
38300
0d44993d 38301 * include/grub/sparc64/ieee1275/boot.h: New file.
38302 * boot/sparc64/ieee1275/boot.S: Likewise.
38303 * boot/sparc64/ieee1275/diskboot.S: Likewise.
38304
ed3d2bc2 38305 * kern/misc.c (grub_ltoa): New function.
38306 (grub_vsprintf): Use it to format 'long' integers.
38307
d3bfb59c 383082009-04-10 David S. Miller <davem@davemloft.net>
38309
38310 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
38311 slots are of type grub_ieee1275_cell_t.
38312 (grub_nand_read): Likewise.
38313 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
38314 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
38315 macros are used to compare values in arg/ret block of the call.
38316 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
38317 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
38318 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
38319 grub_ieee1275_instance_to_path, grub_ieee1275_write,
38320 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
38321 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
38322 grub_ieee1275_close, grub_ieee1275_set_property,
38323 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
38324 grub_ieee1275_cell_t.
38325 * kern/ieee1275/openfw.c (grub_map): Likewise.
38326 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
38327 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
38328
450e2238 38329 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
38330 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
38331 (grub_devalias_iterate): Likewise.
38332
7dd4a573 383332009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 38334
38335 UFS improvements
38336
38337 * fs/ufs.c (INODE_NBLOCKS): new definition
38338 (struct grub_ufs_dirent): added fields for non-BSD dirents
38339 (grub_ufs_get_file_block): fixed double indirect handling
38340 (grub_ufs_lookup_symlink): use more robust way to determine whether
38341 symlink is inline
38342 (grub_ufs_find_file): support for non-BSD dirents
38343 (grub_ufs_dir): support for non-BSD dirents
38344
e7e6862a 383452009-04-10 Bean <bean123ch@gnail.com>
38346
38347 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
38348 attribute, otherwise the size would be wrong for i386 platform.
38349
38350 * include/grub/pci.h (grub_pci_read_word): New inline function.
38351 (grub_pci_read_byte): Likewise.
38352 (grub_pci_write): Likewise.
38353 (grub_pci_write_word): Likewise.
38354 (grub_pci_write_byte): Likewise.
38355
38356 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
38357
38358 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
38359 (find_framebuf): Scan pci to locate the frame buffer address.
38360
38361 * commands/efi/fixvideo.c: New file.
38362
38363 * commands/efi/loadbios.c: Likewise.
38364
38365 * commands/memrw.c: Likewise.
38366
38367 * util/grub-dumpbios.in: Likewise.
38368
38369 * conf/common.rmk (grub-dumpbios): New utility.
38370 (pkglib_MODULES): New module memrw.mod.
38371 (memrw_mod_SOURCE): New macro.
38372 (memrw_mod_CFLAGS): Likewise.
38373 (memrw_mod_LDFLAGS): Likewise.
38374
7dd4a573 38375 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 38376 fixvideo.mod.
38377 (loadbios_mod_SOURCE): New macro.
38378 (loadbios_mod_CFLAGS): Likewise.
38379 (loadbios_mod_LDFLAGS): Likewise.
38380 (fixvideo_mod_SOURCE): Likewise.
38381 (fixvideo_mod_CFLAGS): Likewise.
38382 (fixvideo_mod_LDFLAGS): Likewise.
38383
7dd4a573 38384 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 38385 fixvideo.mod.
38386 (loadbios_mod_SOURCE): New macro.
38387 (loadbios_mod_CFLAGS): Likewise.
38388 (loadbios_mod_LDFLAGS): Likewise.
38389 (fixvideo_mod_SOURCE): Likewise.
38390 (fixvideo_mod_CFLAGS): Likewise.
38391 (fixvideo_mod_LDFLAGS): Likewise.
38392
af63ada2 383932009-04-08 Felix Zielcke <fzielcke@z-51.de>
38394
38395 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
38396
c2cdde70 383972009-04-07 David S. Miller <davem@davemloft.net>
38398
38399 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
38400 support for R_SPARC_OLO10 relocations. Fix compile warning for
38401 R_SPARC_WDISP30 case.
ea3f72cf 38402 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 38403
761319cf 384042009-04-06 Pavel Roskin <proski@gnu.org>
38405
1007d1f5 38406 * include/grub/misc.h (ARRAY_SIZE): New macro.
38407 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
38408 New macro.
38409 * loader/i386/linux.c (allocate_pages): Use free_pages().
38410 (grub_linux_unload): Don't use free_pages().
38411 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
38412 wrong index. Treat all other modes as text modes.
38413 (grub_cmd_linux): Initialize vid_mode unconditionally to
38414 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
38415
761319cf 38416 * commands/help.c (print_command_help): Use cmd->prio, not
38417 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
38418
ea761d40 384192009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 38420
ea761d40 38421 Parttool
38422
38423 * parttool/pcpart.c: new file
38424 * commands/parttool.c: likewise
38425 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
38426 (parttool_mod_SOURCES): new variable
38427 (parttool_mod_CFLAGS): likewise
38428 (parttool_mod_LDFLAGS): likewise
38429 (pcpart_mod_SOURCES): likewise
38430 (pcpart_mod_CFLAGS): likewise
38431 (pcpart_mod_LDFLAGS): likewise
7dd4a573 38432 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 38433 and parttool/pcpart.c
38434 * conf/i386-efi.rmk: likewise
38435 * conf/i386-ieee1275.rmk: likewise
38436 * conf/i386-pc.rmk: likewise
38437 * conf/powerpc-ieee1275.rmk: likewise
38438 * conf/sparc64-ieee1275.rmk: likewise
38439 * conf/x86_64-ieee1275.rmk: likewise
38440
05aaebfb 384412009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
38442
38443 Support for mtime and further expandability of dir command
38444
38445 * include/grub/lib/datetime.h: moved to ...
7dd4a573 38446 * include/grub/datetime.h: ... moved here and added
05aaebfb 38447 declaration of grub_unixtime2datetime. All users updated
7dd4a573 38448 * include/grub/fs.h: new syntax for dir and mtime functions in
38449 struct grub_fs
05aaebfb 38450 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
38451 and GRUB_FSHELP_FLAGS_MASK
38452 * commands/ls.c (grub_ls_list_files): Write mtime in long format
38453 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
38454 (grub_ext2_mtime): new function
38455 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
38456 (grub_hfsplus_mtime): new function
38457 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
38458 (GRUB_UFS_ATTR_FILE): likewise
38459 (GRUB_UFS_ATTR_LNK): likewise
38460 (struct grub_ufs_sblock): new fields mtime
38461 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
38462 all users updated
38463 (grub_ufs_dir): mtime support
38464 (grub_ufs_mtime): new function
38465 * fs/affs.c (grub_affs_dir): use new dir syntax
38466 * fs/afs.c (grub_afs_dir): likewise
38467 * fs/cpio.c (grub_cpio_dir): likewise
38468 * fs/fat.c (grub_fat_find_dir): likewise
38469 * fs/hfs.c (grub_hfs_dir): likewise
38470 * fs/iso9660.c (grub_iso9660_dir): likewise
38471 * fs/jfs.c (grub_jfs_dir): likewise
38472 * fs/minix.c (grub_minix_dir): likewise
38473 * fs/ntfs.c (grub_ntfs_dir): likewise
38474 * fs/reiserfs.c (grub_reiserfs_dir): likewise
38475 * fs/sfs.c (grub_sfs_dir): likewise
38476 * fs/xfs.c (grub_xfs_dir): likewise
38477 * util/hostfs.c (grub_hostfs_dir): likewise
38478 * lib/datetime.c: moved to ...
38479 * normal/datetime.c: ... moved here
38480 (grub_unixtime2datetime): new function
38481 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 38482 * normal/completion.c (iterate_dir): use new dir syntax
38483 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 38484 last modification time of a volume
7dd4a573 38485 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 38486 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 38487 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 38488 (normal_mod_SOURCES): likewise
38489 (datetime_mod_SOURCES): Removed lib/datetime.c
38490 * conf/i386-efi.rmk: likewise
7dd4a573 38491 * conf/i386-ieee1275.rmk: likewise
05aaebfb 38492 * conf/i386-pc.rmk: likewise
38493 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 38494 * conf/sparc64-ieee1275.rmk: likewise
38495 * conf/x86_64-efi.rmk: likewise
05aaebfb 38496
8a7e1a14 384972009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
38498
38499 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 38500
38501 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 38502 on grub_fat_find_dir
38503 (grub_fat_find_dir): use grub_fat_iterate_dir
38504 (grub_fat_label): likewise
38505
04186a9c 385062009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
38507
7dd4a573 38508 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 38509 and command.h
38510 remove extraneous kernel_elf_HEADERS
38511
da4c0bb6 385122009-04-04 Bean <bean123ch@gnail.com>
38513
38514 * include/grub/util/misc.h: Add dummy function fsync for mingw.
38515
38516 * util/misc.c: Likewise.
38517
54ad9555 385182009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
38519
38520 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
38521 instead of grub_printf.
38522
7a6bf9f2 385232009-04-03 Robert Millan <rmh@aybabtu.com>
38524
38525 * loader/i386/linux.c (grub_linux_setup_video): Fill
38526 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
38527 values from `mode info' structure instead of hardcoded
38528 values.
38529
3fcc2083 385302009-04-01 Pavel Roskin <proski@gnu.org>
38531
38532 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
38533 unused now.
38534 * genmk.rb: Likewise.
38535 * configure.ac: Likewise.
38536
5ec9740b 385372009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
38538
38539 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
38540 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
38541
5270cec8 385422009-04-01 David S. Miller <davem@davemloft.net>
38543
38544 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 38545 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 38546 (grub_setjmp): Mark with 'returns_twice' attribute.
38547 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
38548 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
38549 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
38550
9c3dd854 385512009-04-01 Robert Millan <rmh@aybabtu.com>
38552
38553 Reapply fix from 2008-07-28 which was accidentally reverted; also
38554 perform the same fix to a similar check in same function.
38555
38556 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
38557 with the same number are found, just use issue a warning with
38558 grub_dprintf(), as this error has been reported to be non-fatal.
38559
0d818b7e 385602009-03-31 Pavel Roskin <proski@gnu.org>
38561
38562 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
38563 for cross-compilation.
38564
95646d92 385652009-03-30 Robert Millan <rmh@aybabtu.com>
38566
38567 Fix i386-ieee1275 build.
38568
38569 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
38570 Remove declaration.
38571
6a003ed1 385722009-03-30 Pavel Roskin <proski@gnu.org>
38573
38574 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
38575 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
38576 zero-terminated, rely only on the strlen value. Fix comparison
38577 of strings differing in length.
38578
92f33540 385792009-03-30 Robert Millan <rmh@aybabtu.com>
38580
38581 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
38582 checking for abi version. Improve error messages on BIOS to notify
38583 user about `linux16' command.
38584
a8c48fd5 385852009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
38586
f968172e 38587 Leak fixes
a8c48fd5 38588
f968172e 38589 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
38590 in case of collision
38591 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 38592
9c323f09 385932009-03-29 Robert Millan <rmh@aybabtu.com>
38594
38595 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
38596 set `vid_mode' accordingly.
38597 (grub_linux_boot): Process `vid_mode' and set video mode.
38598
ae68f423 385992009-03-29 Robert Millan <rmh@aybabtu.com>
38600
38601 * util/grub.d/10_linux.in (linux_entry): New function.
38602 Factorize generation of Linux boot entries.
38603
5709cfc4 386042009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
38605
38606 Make the format of Environment Block plain text. The boot loader
38607 part is not tested well yet.
7dd4a573 38608
5709cfc4 38609 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
38610 (buffer): Removed.
38611 (envblk): Likewise.
38612 (usage): Remove "info" and "clear". Add "unset". Update the
38613 description of "set", as this does not delete variables any
38614 longer.
38615 (create_envblk_file): Complete rewrite.
38616 (open_envblk_file): Likewise.
38617 (cmd_info): Removed.
38618 (cmd_list): Likewise.
38619 (cmd_set): Likewise.
38620 (cmd_clear): Likewise.
38621 (list_variables): New function.
38622 (write_envblk): Likewise.
38623 (set_variables): Likewise.
38624 (unset_variables): Likewise.
38625 (main): Complete rewrite.
38626
38627 * commands/loadenv.c (buffer): Removed.
38628 (envblk): Likewise.
38629 (open_envblk_file): New function.
38630 (read_envblk_file): Complete rewrite.
38631 (grub_cmd_load_env): Likewise.
38632 (grub_cmd_list_env): Likewise.
38633 (struct blocklist): New struct.
38634 (free_blocklists): New function.
38635 (check_blocklists): Likewise.
38636 (write_blocklists): Likewise.
38637 (grub_cmd_save_env): Complete rewrite.
38638
38639 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
38640 a plain text signature.
38641 (GRUB_ENVBLK_MAXLEN): Removed.
38642 (struct grub_envblk): Complete rewrite.
38643 (grub_envblk_find): Removed.
38644 (grub_envblk_insert): Likewise.
38645 (grub_envblk_open): New prototype.
38646 (grub_envblk_set): Likewise.
38647 (grub_envblk_delete): Put const to VALUE.
38648 (grub_envblk_iterate): Put const to NAME and VALUE.
38649 (grub_envblk_close): New prototype.
38650 (grub_envblk_buffer): New inline function.
38651 (grub_envblk_size): Likewise.
38652
38653 * lib/envblk.c: Include grub/mm.h.
38654 (grub_env_find): Removed.
38655 (grub_envblk_open): New function.
38656 (grub_envblk_close): Likewise.
38657 (escaped_value_len): Likewise.
38658 (find_next_line): Likewise.
38659 (grub_envblk_insert): Removed.
38660 (grub_envblk_set): New function.
38661 (grub_envblk_delete): Complete rewrite.
38662 (grub_envblk_iterate): Likewise.
38663
a9368fd3 386642009-03-28 Robert Millan <rmh@aybabtu.com>
38665
38666 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
38667 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
38668 variables. Use 16-bit loader.
38669 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
38670 loader.
38671 * kern/i386/loader.S (grub_linux_boot): Rename to ...
38672 (grub_linux16_boot): ... this. Update all users.
38673 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
38674 (grub_linux_boot): ... this. Update all users.
38675
38676 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
38677 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
38678 commands to `linux16' and `initrd16'.
38679 (GRUB_MOD_FINI(linux)): Rename to ...
38680 (GRUB_MOD_FINI(linux16)): ... this.
38681
e4dd5a7e 386822009-03-24 Pavel Roskin <proski@gnu.org>
38683
38684 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
38685 not just for compilation.
38686
c04d6e05 386872009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
38688
38689 Move multiboot helper out of kernel
38690
38691 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
38692 `loader/i386/multiboot_helper.S'.
38693 * conf/i386-coreboot.rmk: Likewise
38694 * conf/i386-ieee1275.rmk: Likewise
38695
38696 * kern/i386/loader.S: Move multiboot helpers from here...
38697 * loader/i386/multiboot_helper.S: ...moved here
38698 * include/grub/i386/loader.h: Move declarations of multiboot
38699 helpers from here...
38700 * include/grub/i386/multiboot.h: ...moved here
38701 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
38702
42a5b3fc 387032009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
38704
38705 * kern/env.c (grub_env_context_open): Added an argument to specify
38706 whether a new context inherits exported variables from current
38707 one. This is useful when making a sandbox to interpret a config
38708 file.
38709 All callers updated.
38710
38711 * include/grub/env.h (grub_env_context_open): Updated the prototype.
38712
b28bbc4e 387132009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
38714
38715 * kern/env.c (grub_env_context_close): Fix memory leaks.
38716
f04f02e4 387172009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
38718
38719 * normal/main.c (grub_normal_execute): Added an argument
38720 BATCH to specify if an interactive interface should be provided
38721 after reading a config file.
38722 All callers updated.
38723 (read_command_list): Prevent being executed twice.
38724 (read_fs_list): Likewise.
38725
42a5b3fc 38726 * include/grub/normal.h (grub_normal_execute): Updated the
38727 prototype.
f04f02e4 38728
41473ac2 387292009-03-22 Pavel Roskin <proski@gno.org>
38730
fbc00b0c 38731 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
38732 _start.
38733 * kern/i386/pc/startup.S: Likewise.
38734 * kern/i386/efi/startup.S: Likewise.
38735 * kern/i386/ieee1275/startup.S: Likewise.
38736 * kern/i386/coreboot/startup.S: Likewise.
38737 * kern/x86_64/efi/startup.S: Likewise.
38738
41473ac2 38739 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
38740 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
38741 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
38742
2274cc8f 387432009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
38744
38745 Bugfixes in multiboot for bugs uncovered by solaris kernel.
38746
38747 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
38748 limit detection.
38749 Use vaddr of correct segment for entry_point.
38750
b1b797cb 387512009-03-21 Bean <bean123ch@gmail.com>
38752
38753 * commands/blocklist.c: Add include file <grub/command.h>, remove
38754 <grub/normal.h> and <grub/arg.h>.
38755 (grub_cmd_blocklist): Use the new command interface.
38756 (GRUB_MOD_INIT): Likewise.
38757 (GRUB_MOD_FINI): Likewise.
38758 * commands/boot.c: Likewise.
38759 * commands/cat.c: Likewise.
38760 * commands/cmp.c: Likewise.
38761 * commands/configfile.c: Likewise.
38762 * commands/crc.c: Likewise.
38763 * commands/echo.c: Likewise.
38764 * commands/halt.c: Likewise.
38765 * commands/handler.c: Likewise.
38766 * commands/hdparm.c: Likewise.
38767 * commands/help.c: Likewise.
38768 * commands/hexdump.c: Likewise.
38769 * commands/loadenv.c: Likewise.
38770 * commands/ls.c: Likewise.
38771 * commands/lsmmap.c: Likewise.
38772 * commands/lspci.c: Likewise.
38773 * commands/loadenv.c: Likewise.
38774 * commands/read.c: Likewise.
38775 * commands/reboot.c: Likewise.
38776 * commands/search.c: Likewise.
38777 * commands/sleep.c: Likewise.
38778 * commands/test.c: Likewise.
38779 * commands/usbtest.c: Likewise.
38780 * commands/videotest.c: Likewise.
38781 * commands/i386/cpuid.c: Likewise.
38782 * commands/i386/pc/halt.c: Likewise.
38783 * commands/i386/pc/play.c: Likewise.
38784 * commands/i386/pc/pxecmd.c: Likewise.
38785 * commands/i386/pc/vbeinfo.c: Likewise.
38786 * commands/i386/pc/vbetest.c: Likewise.
38787 * commands/ieee1275/suspend.c: Likewise.
38788 * disk/loopback.c: Likewise.
38789 * font/font_cmd.c: Likewise.
38790 * hello/hello.c: Likewise.
38791 * loader/efi/appleloader.c: Likewise.
38792 * loader/efi/chainloader.c: Likewise.
38793 * loader/i386/bsd.c: Likewise.
38794 * loader/i386/efi/linux.c: Likewise.
38795 * loader/i386/ieee1275/linux.c: Likewise.
38796 * loader/i386/linux.c: Likewise.
38797 * loader/i386/pc/chainloader.c: Likewise.
38798 * loader/i386/pc/linux.c: Likewise.
38799 * loader/powerpc/ieee1275/linux.c: Likewise.
38800 * loader/multiboot_loader.c: Likewise.
38801 * term/gfxterm.c: Likewise.
38802 * term/i386/pc/serial.c: Likewise.
38803 * term/terminfo.c: Likewise.
38804
38805 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
38806 * term/i386/pc/vga.c: Likewise.
38807 * video/readers/jpeg.c: Likewise.
38808 * video/readers/png.c: Likewise.
38809 * video/readers/tga.c: Likewise.
38810
38811 * util/grub-fstest (cmd_loopback): Removed.
38812 (cmd_blocklist): Likewise.
38813 (cmd_ls): Likewise.
38814 (grub_register_command): Likewise.
38815 (grub_unregister_command): Likewise.
38816 (execute_command): Use grub_command_find to locate command and execute
38817 it.
38818
38819 * include/grub/efi/chainloader.h: Removed.
38820 * loader/efi/chainloader_normal.c: Likewise.
38821 * loader/i386/bsd_normal.c: Likewise.
38822 * loader/i386/pc/chainloader_normal.c: Likewise.
38823 * loader/i386/pc/multiboot_normal.c: Likewise.
38824 * loader/linux_normal.c: Likewise.
38825 * loader/multiboot_loader_normal.c: Likewise.
38826 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
38827
38828 * gencmdlist.sh: Scan new registration command grub_register_extcmd
38829 and grub_register_command_p1.
38830
38831 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
38832 kern/command.c, lib/arg.c and commands/extcmd.c.
38833 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
38834 (minicmd_mod_SOURCES): New variable.
38835 (minicmd_mod_CFLAGS): Likewise.
38836 (minicmd_mod_LDFLAGS): Likewise.
38837 (extcmd_mod_SOURCES): Likewise.
38838 (extcmd_mod_CFLAGS): Likewise.
38839 (extcmd_mod_LDFLAGS): Likewise.
38840 (boot_mod_SOURCES): Removed.
38841 (boot_mod_CFLAGS): Likewise.
38842 (boot_mod_LDFLAGS): Likewise.
38843
38844 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
38845 kern/corecmd.c.
38846 (kernel_img_HEADERS): Add command.h.
38847 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
38848 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
38849 and lib/arg.c.
38850 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
38851 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
38852 remove the corresponding normal mode command.
38853 (normal_mod_SOURCES): Remove normal/arg.c.
38854 * conf/i386-coreboot.rmk: Likewise.
38855 * conf/i386-efi.rmk: Likewise.
38856 * conf/i386-ieee1275.rmk: Likewise.
38857 * conf/powerpc-ieee1275.rmk: Likewise.
38858 * conf/x86_64-efi.rmk: Likewise.
38859
38860 * include/grub/arg.h: Move from here ...
38861 * include/grub/lib/arg.h: ... to here.
38862
38863 * normal/arg.c: Move from here ...
38864 * lib/arg.c: ... to here.
38865
38866 * commands/extcmd.c: New file.
38867 * commands/minicmd.c: Likewise.
38868 * include/grub/command.h: Likewise.
38869 * include/grub/extcmd.h: Likewise.
38870 * kern/command.c: Likewise.
38871 * kern/corecmd.c: Likewise.
38872
38873 * kern/list.c (grub_list_iterate): Return int instead of void.
38874 (grub_list_insert): New function.
38875 (grub_prio_list_insert): Likewise.
38876
38877 * kern/rescue.c (grub_rescue_command): Removed.
38878 (grub_rescue_command_list): Likewise.
38879 (grub_rescue_register_command): Likewise.
38880 (grub_rescue_unregister_command): Likewise.
38881 (grub_rescue_cmd_boot): Move to minicmd.c
38882 (grub_rescue_cmd_help): Likewise.
38883 (grub_rescue_cmd_info): Likewise.
38884 (grub_rescue_cmd_boot): Likewise.
38885 (grub_rescue_cmd_testload): Likewise.
38886 (grub_rescue_cmd_dump): Likewise.
38887 (grub_rescue_cmd_rmmod): Likewise.
38888 (grub_rescue_cmd_lsmod): Likewise.
38889 (grub_rescue_cmd_exit): Likewise.
38890 (grub_rescue_print_devices): Moved to corecmd.c.
38891 (grub_rescue_print_files): Likewise.
38892 (grub_rescue_cmd_ls): Likewise.
38893 (grub_rescue_cmd_insmod): Likewise.
38894 (grub_rescue_cmd_set): Likewise.
38895 (grub_rescue_cmd_unset): Likewise.
7d074e3c 38896 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 38897 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 38898 commands, remove grub_rescue_register_command calls.
b1b797cb 38899
7d074e3c 38900 * normal/command.c (grub_register_command): Removed.
b1b797cb 38901 (grub_unregister_command): Likewise.
38902 (grub_command_find): Likewise.
38903 (grub_iterate_commands): Likewise.
38904 (rescue_command): Likewise.
38905 (export_command): Moved to corecmd.c.
38906 (set_command): Removed.
38907 (unset_command): Likewise.
38908 (insmod_command): Likewise.
38909 (rmmod_command): Likewise.
38910 (lsmod_command): Likewise.
38911 (grub_command_init): Likewise.
38912
38913 * normal/completion.c (iterate_command): Use cmd->prio to check for
38914 active command.
38915 (complete_arguments): Use grub_extcmd_t structure to find options.
38916 (grub_normal_do_completion): Change function grub_iterate_commands to
38917 grub_command_iterate.
38918
38919 * normal/execute.c (grub_script_execute_cmd): No need to parse
38920 argument here.
38921
38922 * normal/main.c (grub_dyncmd_dispatcher): New function.
38923 (read_command_list): Register unload commands as dyncmd.
38924 (grub_cmd_normal): Use new command interface, register rescue,
38925 unregister normal at entry, register normal, unregister rescue at exit.
38926
38927 * include/grub/list.h (grub_list_test_t): New type.
38928 (grub_list_iterate): Return int instead of void.
38929 (grub_list_insert): New function.
38930 (GRUB_AS_NAMED_LIST_P): New macro.
38931 (GRUB_AS_PRIO_LIST): Likewise.
38932 (GRUB_AS_PRIO_LIST_P): Likewise.
38933 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
38934 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
38935 (grub_prio_list): New structure.
38936 (grub_prio_list_insert): New function.
38937 (grub_prio_list_remove): New inline function.
38938
38939 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
38940 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
38941 (GRUB_COMMAND_FLAG_MENU): Likewise.
38942 (GRUB_COMMAND_FLAG_BOTH): Likewise.
38943 (GRUB_COMMAND_FLAG_TITLE): Likewise.
38944 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
38945 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
38946 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
38947 (grub_command): Likewise.
38948 (grub_register_command): Likewise.
38949 (grub_command_find): Likewise.
38950 (grub_iterate_commands): Likewise.
38951 (grub_command_init): Likewise.
38952 (grub_arg_parse): Likewise.
38953 (grub_arg_show_help): Likewise.
38954
38955 * include/grub/rescue.h (grub_rescue_register_command): Removed.
38956 (grub_rescue_unregister_command): Likewise.
38957
38958 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
38959 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
38960 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
38961
38962 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
38963 grub_rescue_cmd_initrd.
38964 * include/grub/i386/loader.h: Likewise.
38965 * include/grub/x86_64/loader.h: Likewise.
38966
38967 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
38968
1f4147aa 389692009-03-21 Bean <bean123ch@gmail.com>
38970
38971 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
38972 instead of stat in mingw environment.
38973
38974 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
38975
38976 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
38977
38978 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
38979 AC_CONFIG_LINKS.
38980
2156d5ba 389812009-03-21 Bean <bean123ch@gmail.com>
38982
38983 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
38984 out of range error.
38985
177b82ca 389862009-03-18 Michel Dänzer <michel@daenzer.net>
38987
38988 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
38989 checking inode flags for EXT4_EXTENTS_FLAG.
38990
14aad807 389912009-03-18 Robert Millan <rmh@aybabtu.com>
38992
38993 * loader/i386/linux.c: Include `<grub/video.h>' and
38994 `<grub/i386/pc/vbe.h>'..
38995 (grub_linux_setup_video): New function. Loosely based on the EFI one.
38996 (grub_linux32_boot): Attempt to configure video settings with
38997 grub_linux_setup_video().
38998 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
38999 to avoid grub_console_fini() which would step out of graphical mode
39000 unconditionally.
39001
8cf83a27 390022009-03-14 Robert Millan <rmh@aybabtu.com>
39003
39004 Fix build on powerpc.
39005 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
39006
40164e75 390072009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
39008
39009 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
39010 background image command.
39011
c58bc32a 390122009-03-12 Colin D Bennett <colin@gibibit.com>
39013
39014 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
39015 (grub_gfxterm_putchar): Extract pairs of identical calls to
39016 draw_cursor out of conditional blocks.
39017
5415144a 390182009-03-11 Pavel Roskin <proski@gnu.org>
39019
39020 * fs/hfs.c (grub_hfs_strncasecmp): New function.
39021 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
39022
6394042e 390232009-03-11 Robert Millan <rmh@aybabtu.com>
39024
39025 * loader/i386/multiboot_elfxx.c
39026 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
39027
b7b50e5f 390282009-03-11 Felix Zielcke <fzielcke@z-51.de>
39029
39030 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
39031 `kern/handler.c'.
39032
1ca7fc96 390332009-03-11 Robert Millan <rmh@aybabtu.com>
39034
39035 * loader/i386/multiboot.c (code_size): New variable.
39036 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 39037 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 39038 4-byte alignment to MBI and others by increasing
7d074e3c 39039 `boot_loader_name_length' appropriately.
1ca7fc96 39040
39041 * loader/i386/multiboot_elfxx.c
39042 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
39043
a83ea1d2 390442009-03-09 Felix Zielcke <fzielcke@z-51.de>
39045
39046 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
39047 `fs/ext2.c'.
39048
aa9f3bff 390492009-03-08 Robert Millan <rmh@aybabtu.com>
39050
39051 Make loader/i386/linux.c usable on i386-pc again.
39052
39053 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
39054 memory to heap.
39055 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
39056 `#error' stanza.
39057
d8b3b60e 390582009-03-07 Bean <bean123ch@gmail.com>
39059
39060 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
39061 allocation.
39062
b362c9e9 390632009-03-06 Robert Millan <rmh@aybabtu.com>
39064
39065 Fix display issue on terminals with screen size other than 80x25
39066 (e.g. gfxterm with resolution higher than 640x480).
39067
39068 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 39069 position relative to the center of the terminal instead of relying
b362c9e9 39070 on a hardcoded offset.
39071
9304eef1 390722009-03-04 Robert Millan <rmh@aybabtu.com>
39073
39074 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
39075 installed.
39076
39077 * Makefile.in (host_kernel): New variable.
39078 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
39079 scripts instead of just the windows one.
39080 * configure.ac: Initialize and AC_SUBST `host_kernel'.
39081
eabc95fb 390822009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 39083
39084 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
39085 `kern/handler.c'.
39086 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39087 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39088 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39089 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39090 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39091 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39092
ceb1223c 390932009-03-04 Felix Zielcke <fzielcke@z-51.de>
39094
39095 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
39096 or if there's no space for the disk label and print the partition number on a
39097 invalid magic.
39098
4910684a 390992009-03-04 Felix Zielcke <fzielcke@z-51.de>
39100
39101 * util/misc.c: Include <time.h>.
39102 (grub_millisleep): New function.
39103
7e9ca17a 391042009-03-04 Bean <bean123ch@gmail.com>
39105
39106 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
39107 another option -mno-red-zone.
39108
39109 * commands/handler.c: Change module description.
39110
39111 * kern/handler.c: Add missing space at the end of description line.
39112
39113 * kern/list.c: Likewise.
39114
f501677c 391152009-03-03 Robert Millan <rmh@aybabtu.com>
39116
39117 Move more components to the relocation area, and fix mbi pointer
39118 handling to use the destination rather than the origin (thanks to
39119 Vladimir Serbinenko for spotting).
39120
39121 * loader/i386/multiboot.c (mbi_dest): New variable.
39122 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
39123 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
39124 relocation area.
39125
9902d047 391262009-03-01 Bean <bean123ch@gmail.com>
39127
50fb7002 39128 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 39129 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
39130 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
39131 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
39132
39133 * loader/i386/efi/linux.c (acpi_guid): New variable.
39134 (acpi_guid): Likewise.
39135 (EBDA_SEG_ADDR): New constant.
39136 (LOW_MEM_ADDR): Likewise.
39137 (FAKE_EBDA_SEG): Likewise.
39138 (fake_bios_data): New function.
39139 (grub_linux_boot): Call fake_bios_data.
39140
71b9f361 391412009-03-01 Bean <bean123ch@gmail.com>
39142
39143 * commands/terminal.c: Removed.
39144
39145 * commands/handler.c: New file.
39146
39147 * include/grub/list.h: Likewise.
39148
39149 * include/grub/handler.h: Likewise.
39150
39151 * kern/list.c: Likewise.
39152
39153 * kern/handler.c: Likewise.
39154
39155 * kern/term.h: Include header file <grub/handler.h>.
39156 (grub_term_input): Move next field to the beginning.
39157 (grub_term_output): Likewise.
39158 (grub_term_input_class): New variable.
39159 (grub_term_output_class): Likewise.
39160 (grub_term_register_input): Changed to inline function.
39161 (grub_term_register_output): Likewise.
39162 (grub_term_unregister_input): Likewise.
39163 (grub_term_unregister_output): Likewise.
39164 (grub_term_set_current_input): Likewise.
39165 (grub_term_set_current_output): Likewise.
39166 (grub_term_get_current_input): Likewise.
39167 (grub_term_get_current_output): Likewise.
39168 (grub_term_iterate_input): Removed.
39169 (grub_term_iterate_output): Likewise.
39170
39171 * kern/term.c (grub_term_list_input): Removed.
39172 (grub_term_list_output): Likewise.
39173 (grub_term_input_class): New variable.
39174 (grub_term_output_class): Likewise.
50fb7002 39175 (grub_cur_term_input): Change variable as macro.
71b9f361 39176 (grub_cur_term_output): Likewise.
39177 (grub_term_register_input): Removed.
39178 (grub_term_register_output): Likewise.
39179 (grub_term_unregister_input): Likewise.
39180 (grub_term_unregister_output): Likewise.
39181 (grub_term_set_current_input): Likewise.
39182 (grub_term_set_current_output): Likewise.
39183 (grub_term_iterate_input): Likewise.
39184 (grub_term_iterate_output): Likewise.
39185 (grub_term_get_current_input): Likewise.
39186 (grub_term_get_current_output): Likewise.
39187
39188 * util/grub-editenv.c: Include header file <grub/handler.h>.
39189 (grub_term_get_current_input): Removed.
39190 (grub_term_get_current_output): Likewise.
39191 (grub_term_input_class): New variable.
50fb7002 39192 (grub_term_output_class): Likewise.
71b9f361 39193
39194 * util/grub-fstest.c (grub_term_get_current_input): Removed.
39195 (grub_term_get_current_output): Likewise.
39196 (grub_term_input_class): New variable.
50fb7002 39197 (grub_term_output_class): Likewise.
71b9f361 39198
39199 * util/grub-probe.c (grub_term_get_current_input): Removed.
39200 (grub_term_get_current_output): Likewise.
39201 (grub_term_input_class): New variable.
50fb7002 39202 (grub_term_output_class): Likewise.
71b9f361 39203
39204 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
39205 (grub_term_get_current_output): Likewise.
39206 (grub_term_input_class): New variable.
50fb7002 39207 (grub_term_output_class): Likewise.
71b9f361 39208
39209 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
39210 (terminal_mod_SOURCES): Likewise.
39211 (terminal_mod_CFLAGS): Likewise.
39212 (terminal_mod_LDFLAGS): Likewise.
39213
39214 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
39215 handler.c.
39216 (kernel_img_SOURCES): Add list.c and handler.c.
39217 (kernel_img_HEADERS): Add list.h and handler.h.
39218
39219 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
39220 handler.c.
39221 (kernel_mod_SOURCES): Add list.c and handler.c.
39222 (kernel_mod_HEADERS): Add list.h and handler.h.
39223
39224 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
39225 handler.c.
39226 (kernel_elf_SOURCES): Add list.c and handler.c.
39227 (kernel_elf_HEADERS): Add list.h and handler.h.
39228
39229 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
39230 handler.c.
39231 (kernel_elf_SOURCES): Add list.c and handler.c.
39232 (kernel_elf_HEADERS): Add list.h and handler.h.
39233
39234 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
39235 handler.c.
39236 (kernel_mod_SOURCES): Add list.c and handler.c.
39237 (kernel_mod_HEADERS): Add list.h and handler.h.
39238
39239 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
39240 handler.c.
39241 (kernel_elf_SOURCES): Add list.c and handler.c.
39242 (kernel_elf_HEADERS): Add list.h and handler.h.
39243
8a31787f 392442009-02-27 Robert Millan <rmh@aybabtu.com>
39245
39246 Factorize elf32 / elf64 code in Multiboot loader. This will
39247 prevent it from getting out of sync again.
39248
39249 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
39250 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
39251 grub_multiboot_load_elf64): Move from here ...
39252 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
39253 grub_multiboot_load_elf): ... to here (new file).
39254
51cd3dfc 392552009-02-27 Robert Millan <rmh@aybabtu.com>
39256
39257 * util/grub.d/10_linux.in: Rename "single-user mode" to
39258 "recovery mode".
39259
6e8c9c3a 392602009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
39261
39262 Don't leak in SCSI code.
39263 * disk/scsi.c (grub_scsi_close): free `scsi'.
39264
4b6bf4f9 392652009-02-27 Robert Millan <rmh@aybabtu.com>
39266
39267 * loader/i386/pc/multiboot.c: Move from here ...
39268 * loader/i386/multiboot.c: ... to here. Update all users.
39269
b9413424 392702009-02-27 Robert Millan <rmh@aybabtu.com>
39271
39272 Patch from Alexandre Bique <bique.alexandre@gmail.com>
39273 * util/i386/pc/grub-setup.c (setup): Fix directory path.
39274
50fb7002 392752009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 39276
39277 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
39278 b-tree.
39279
8cc50345 392802009-02-27 Robert Millan <rmh@aybabtu.com>
39281
39282 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
39283 `0x' qualifier as 0 when base is specified as parameter).
39284
6e09b8b7 392852009-02-24 Bean <bean123ch@gmail.com>
39286
39287 * configure.ac: Check for -mcmodel=large in x86_64 target.
39288
39289 * include/grub/efi/api.h (efi_call_10): New macro.
39290 (efi_wrap_10): New function.
39291
39292 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
39293 (GRUB_PE32_REL_BASED_HIGH): Likewise.
39294 (GRUB_PE32_REL_BASED_LOW): Likewise.
39295 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
39296 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
39297 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
39298 (GRUB_PE32_REL_BASED_SECTION): Likewise.
39299 (GRUB_PE32_REL_BASED_REL): Likewise.
39300 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
39301 (GRUB_PE32_REL_BASED_DIR64): Likewise.
39302 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
39303
39304 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
39305 issue.
39306
39307 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
39308 (efi_wrap_10): New function.
39309
39310 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
39311
39312 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
39313 MB/MBP model (NV chipset).
39314 (devdata_devs): Add devpath_5 to the list.
39315
39316 * load/i386/efi/linux.c (video_base): Remove variable.
39317 (RGB_MASK): New macro.
39318 (RGB_MAGIC): Likewise.
39319 (LINE_MIN): Likewise.
39320 (LINE_MAX): Likewise.
39321 (FBTEST_STEP): Likewise.
39322 (FBTEST_COUNT): Likewise.
39323 (fb_list): New variable.
39324 (grub_find_video_card): Remove function.
39325 (find_framebuf): New function.
39326 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
39327 line length.
39328
39329 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
39330 problem for x86_64.
39331
74b21bee 393322009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
39333
39334 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
39335
39336 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
39337 coding tool name.
39338
a455f472 393392009-02-22 Robert Millan <rmh@aybabtu.com>
39340
39341 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
39342 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
39343 in our relocation, instead of using it directly from heap. Also
39344 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
39345
6374daf3 393462009-02-21 Robert Millan <rmh@aybabtu.com>
39347
39348 Implement USB keyboard support (based on patch by Marco Gerards)
39349
39350 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
39351 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
39352 (usb_keyboard_mod_LDFLAGS): New variables.
39353
39354 * term/usb_keyboard.c: New file.
39355
8fa4ea70 393562009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
39357
39358 Corrected wrong declaration
39359
39360 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
39361
353976ac 393622009-02-14 Christian Franke <franke@computer.org>
39363
39364 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
39365 (grub_lspci_iter): Print class code and programming interface byte.
39366
6aa1169b 393672009-02-14 Christian Franke <franke@computer.org>
39368
39369 * gendistlist.sh: Ignore `.svn' directories.
39370
265372ca 393712009-02-14 Felix Zielcke <fzielcke@z-51.de>
39372
39373 * fs/fat.c: Add 2009 to Copyright line.
39374
9ff516f3 393752009-02-14 Christian Franke <franke@computer.org>
39376
39377 * commands/hdparm.c: New file. Provides `hdparm' command
39378 which sends ATA commands via grub_disk_ata_pass_through ().
39379
39380 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
39381
39382 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
39383 and <grub/cpu/io.h> to include/grub/ata.h.
39384 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
39385 (GRUB_CDROM_SECTOR_SIZE): Remove.
39386 (GRUB_ATA_*): Move to include/grub/ata.h.
39387 (GRUB_ATAPI_*): Likewise.
39388 (enum grub_ata_commands): Likewise.
39389 (enum grub_ata_timeout_milliseconds): Likewise.
39390 (struct grub_ata_device): Likewise.
39391 (grub_ata_regset): Likewise.
39392 (grub_ata_regget): Likewise.
39393 (grub_ata_regset2): Likewise.
39394 (grub_ata_regget2): Likewise.
39395 (grub_ata_check_ready): Likewise.
39396 (grub_ata_wait_not_busy): Remove static, exported in
39397 include/grub/ata.h.
39398 (grub_ata_wait_drq): Likewise.
39399 (grub_ata_pio_read): Likewise.
39400
39401 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
39402 function for hdparm.mod.
39403
39404 * include/grub/ata.h: New file, contains declarations from
39405 disk/ata.c.
39406 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
39407
39408 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
39409 (grub_disk_ata_pass_through): New exported variable.
39410
39411 * kern/disk.c (grub_disk_ata_pass_through): New variable.
39412
772e23da 394132009-02-13 Colin D Bennett <colin@gibibit.com>
39414
39415 Support multiple fallback entries, and provide an API to support
39416 executing default+fallback menu entries. Renamed the `terminal' menu
39417 viewer to `text'.
39418
39419 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
39420 variable declaration.
39421 (grub_menu_execute_callback): New structure declaration.
39422 (grub_menu_execute_callback_t): New typedef.
39423 (grub_menu_execute_with_fallback): New function declaration.
39424 (grub_menu_get_entry): Likewise.
39425 (grub_menu_get_timeout): Likewise.
39426 (grub_menu_set_timeout): Likewise.
39427
39428 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
39429
39430 * normal/menu.c (grub_wait_after_message): Moved to
39431 `normal/menu_text.c'.
39432 (draw_border): Likewise.
39433 (print_message): Likewise.
39434 (print_entry): Likewise.
39435 (print_entries): Likewise.
39436 (grub_menu_init_page): Likewise.
39437 (get_entry_number): Likewise.
39438 (print_timeout): Likewise.
39439 (run_menu): Likewise.
39440 (grub_menu_execute_entry): Likewise.
39441 (show_text_menu): Likewise.
39442 (get_and_remove_first_entry_number): New function.
39443 (grub_menu_execute_with_fallback): Likewise.
39444 (get_entry): Renamed to ...
39445 (grub_menu_get_entry): .. this and made it global.
39446 (get_timeout): Renamed to ...
39447 (grub_menu_get_timeout): ... this and made it global.
39448 (set_timeout): Renamed to ...
39449 (grub_menu_set_timeout): ... this and made it global.
39450 (grub_normal_terminal_menu_viewer): Renamed to ...
39451 (grub_normal_text_menu_viewer): ... this.
39452
39453 * normal/menu_text.c: New file. Extracted text-menu-specific code
39454 from normal/menu.c.
39455
39456 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
39457 (normal_mod_SOURCES): Likewise.
39458
39459 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39460 (normal_mod_SOURCES): Likewise.
39461
39462 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39463 (normal_mod_SOURCES): Likewise.
39464
39465 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
39466 (normal_mod_SOURCES): Likewise.
39467
39468 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39469 (normal_mod_SOURCES): Likewise.
39470
39471 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39472 (normal_mod_SOURCES): Likewise.
39473
39474 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39475 (normal_mod_SOURCES): Likewise.
39476
16ac430e 394772009-02-11 Robert Millan <rmh@aybabtu.com>
39478
39479 * util/grub.d/00_header.in: Update old reference to `font' command.
39480
06ff20fc 394812009-02-10 Felix Zielcke <fzielcke@z-51.de>
39482
39483 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
39484
39485 Based on patch from Javier Martín.
39486
96da9407 394872009-02-09 Felix Zielcke <fzielcke@z-51.de>
39488
39489 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 39490 to avoid false positives with FAT.
96da9407 39491 (grub_fstest_SOURCES): Likewise.
39492 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39493 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39494 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39495 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39496 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39497 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39498
6dca6fe4 394992009-02-09 Felix Zielcke <fzielcke@z-51.de>
39500
06ff20fc 39501 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 39502 bpb.version_specific.fat12_or_fat16.fstype and
39503 bpb.version_specific.fat32.fstype.
39504
2550c62f 395052009-02-08 Robert Millan <rmh@aybabtu.com>
39506
be110b30 39507 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 39508
56978920 395092009-02-08 Robert Millan <rmh@aybabtu.com>
39510
39511 * Makefile.in (host_os, host_cpu): New variables.
39512 (target_os): Remove. Update all users.
39513
d64399b5 395142009-02-08 Marco Gerards <marco@gnu.org>
39515
39516 * Makefile.in (enable_grub_emu_usb): New variable.
39517 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
39518 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
39519 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
39520 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
39521 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
39522 `usbtest.mod' and `usbms.mod'.
39523 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
39524 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
39525 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
39526 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
39527 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
39528 variables.
39529
39530 * disk/usbms.c: New file.
39531
39532 * include/grub/usb.h: Likewise.
39533
39534 * include/grub/usbtrans.h: Likewise.
39535
39536 * include/grub/usbdesc.h: Likewise.
39537
39538 * bus/usb/usbtrans.c: Likewise.
39539
39540 * bus/usb/ohci.c: Likewise.
39541
39542 * bus/usb/uhci.c: Likewise.
39543
39544 * bus/usb/usbhub.c: Likewise.
39545
39546 * bus/usb/usb.c: Likewise.
39547
39548 * commands/usbtest.c: Likewise.
39549
39550 * util/usb.c: Likewise.
50fb7002 39551
d64399b5 39552 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
39553
39554 * configure.ac: Test for libusb presence.
50fb7002 39555
d64399b5 39556 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
39557
2b40d6bb 395582009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
39559
39560 * kern/mm.c: Add more comments.
39561
73a4ce81 395622009-02-08 Robert Millan <rmh@aybabtu.com>
39563
39564 Patch from Javier Martín.
39565 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
39566 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
39567
f821ce59 395682009-02-08 Robert Millan <rmh@aybabtu.com>
39569
39570 * fs/cpio.c: Split tar functionality to ...
39571 * fs/tar.c: ... here (new file). Update all users.
39572
aebfc4b0 395732009-02-07 Robert Millan <rmh@aybabtu.com>
39574
39575 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
39576 backward-incompatible features.
39577
39578 Based on patch from Javier Martín, with some adjustments.
39579
50fb7002 395802009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 39581
39582 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
39583
0bb5115e 395842009-02-07 Robert Millan <rmh@aybabtu.com>
39585
39586 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
39587 position of `disk/lvm.c' to ensure grub_init_all() always picks it
39588 after the RAID stuff.
39589
38a0f8e7 395902009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
39591
50fb7002 39592 Fixes problem when running vbetest command as reported by
38a0f8e7 39593 Vladimir Serbinenko <phcoder@gmail.com>.
39594
39595 * (grub_vbe_set_video_mode): Fixed problem with text modes.
39596
3143cc1c 395972009-02-04 Felix Zielcke <fzielcke@z-51.de>
39598
39599 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
39600 /dev/md/NpN style mdraid devices.
39601
9cba6fce 396022009-02-03 Felix Zielcke <fzielcke@z-51.de>
39603
39604 * util/unifont2pff.rb: Remove.
39605
e507a2c1 396062009-02-03 Felix Zielcke <fzielcke@z-51.de>
39607
39608 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
39609 `#'.
39610
d2c2b4cd 396112009-02-03 Felix Zielcke <fzielcke@z-51.de>
39612
39613 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
39614 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39615 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39616 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39618 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39619 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39620
b4315fb0 396212009-02-02 Christian Franke <franke@computer.org>
39622
39623 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
39624
de3aa260 396252009-02-01 Felix Zielcke <fzielcke@z-51.de>
39626
7c3ff286 39627 * INSTALL: Note that we now require at least autoconf 2.59 and
39628 that LZO is optional.
de3aa260 39629
825a182b 396302009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
39631
39632 Base on patch on bug #24154 created by Tomas Tintera
39633 <trosos@seznam.cz>.
39634
39635 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
39636
a69ef770 396372009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
39638
7c3ff286 39639 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 39640 <bero@arklinux.org>.
39641
39642 * normal/parser.y (script_init): Add missing semicolon.
39643
6fa42fa6 396442009-01-31 Colin D Bennett <colin@gibibit.com>
39645
7c3ff286 39646 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 39647 (free_menu_entry_classes): Added.
39648 (grub_normal_menu_addentry): Added class property handling.
39649 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
39650 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
39651
39652 * normal/menu_viewer.c: New file.
39653
39654 * normal/menu.c (run_menu_entry): Renamed to ...
39655 (grub_menu_execute_entry): ... this and made it as global.
39656 (grub_menu_run): Renamed to ...
39657 (show_text_menu): ... this and made it local.
39658 (show_text_menu): Adapt to new function names.
39659 (grub_normal_terminal_menu_viewer): New global variable.
39660
39661 * include/grub/menu.h: New file.
39662
39663 * include/grub/menu_viewer.h: New file.
39664
39665 * include/grub/normal.h: Added include to grub/menu.h.
39666 (grub_menu_entry): Moved to include/grub/menu.h.
39667 (grub_menu_entry_t): Likewise.
39668 (grub_menu): Likewise.
39669 (grub_menu_t): Likewise.
39670 (grub_normal_terminal_menu_viewer): Added.
39671 (grub_menu_execute_entry): Likewise.
39672 (grub_menu_run): Removed.
39673
39674 * DISTLIST: Added include/grub/menu.h.
39675 Added include/grub/menu_viewer.h.
39676 Added normal/menu_viewer.c.
39677
396782009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
39679
39680 * normal/execute.c (grub_script_execute_menuentry): Changed to use
39681 arglist for menutitle arguments.
39682
39683 * normal/main.c (grub_normal_menu_addentry): Likewise.
39684
39685 * normal/parser.y (menuentry): Likewise.
39686
39687 * normal/script.c (grub_script_create_cmdmenu): Likewise.
39688
39689 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
39690 (grub_script_create_cmdmenu): Likewise.
39691
39692 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
39693
39694 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
39695 changes.
39696
39697 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
39698
39699 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
39700
39701 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
39702
39703 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
39704
39705 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
39706
39707 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
39708
56192c23 397092009-01-30 Christian Franke <franke@computer.org>
39710
39711 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
39712 in option help text.
39713
d72521b3 397142009-01-27 Pavel Roskin <proski@gnu.org>
39715
39716 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
39717
994b5e84 397182009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
39719
39720 * commands/lsmmap.c: Add include to grub/machine/memory.h.
39721
39722 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
39723
39724 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
39725 unregister function.
39726
6a7eab2c 397272009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
39728
39729 * disk/scsi.c (grub_scsi_read): Fix sign problem.
39730
39731 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
39732
39733 * util/grub-mkfont.c (usage): Fix typo.
39734
39735 * util/elf/grub-mkimage.c (load_modules): Fix warning.
39736
1806b56e 397372009-01-26 Daniel Mierswa <impulze@impulze.org>
39738
3fb18f09 39739 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
39740
336e1fb9 39741 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
39742
1806b56e 39743 * kern/misc.c (grub_strcasecmp): New function.
39744 (grub_strcasecmp): Use grub_size_t instead of int for length.
39745 Fix return value.
39746 * include/grub/misc.h: Update function prototypes.
39747
580b2a0f 397482009-01-26 Robert Millan <rmh@aybabtu.com>
39749
39750 * configure.ac: Fix cross-compilation check.
ef257b36 39751
d31c24f1 397522009-01-22 Christian Franke <franke@computer.org>
39753
39754 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
39755 (precision) digit string. Allow `.format2' without `format1' (width).
39756 Limit input chars for `%s' output to `format2' if specified. This is
39757 compatible with standard printf ().
39758
3138b44c 397592009-01-22 Christian Franke <franke@computer.org>
39760
39761 * disk/ata.c (grub_ata_wait_status): Replace by ...
39762 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
39763 other status bits may be invalid while BSY is asserted.
39764 (grub_ata_check_ready): New function.
39765 (grub_ata_cmd): Removed.
39766 (grub_ata_wait_drq): New function.
39767 (grub_ata_strncpy): Remove inline.
39768 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
39769 and error check now done by grub_ata_wait_drq ().
39770 (grub_ata_pio_write): Likewise.
39771 (grub_atapi_identify): Set DEV before check for !BSY. Use
39772 grub_ata_wait_drq () to wait for data.
39773 (grub_ata_device_initialize): Add status register check to
39774 detect missing SATA slave devices. Add debug messages.
39775 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
39776 (grub_atapi_packet): Set DEV before check for !BSY. Replace
39777 transfer loop by grub_ata_pio_write ().
39778 (grub_ata_identify): Set DEV before check for !BSY. Use
39779 grub_ata_wait_drq () to wait for data.
ef257b36 39780 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 39781 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
39782 read/write in one loop. Fix invalid command on write. Fix incomplete
39783 command on (size % batch) == 0. Add missing error check after write of
39784 last block. Add debug messages.
39785 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
39786
59a64ef6 397872009-01-19 Christian Franke <franke@computer.org>
39788
39789 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
39790 (GRUB_ATAPI_IREASON_*): Likewise.
39791 (grub_ata_pio_write): Fix timeout error return.
39792 (grub_atapi_identify): Add grub_ata_wait () after cmd.
39793 (grub_atapi_wait_drq): New function.
39794 (grub_atapi_packet): New parameter `size'.
39795 Use grub_atapi_wait_drq () and direct write instead of
39796 grub_ata_pio_write ().
39797 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
39798 reads the number of bytes requested by the device for each DRQ
39799 assertion.
39800 (grub_atapi_write): Remove old implementation, return not
39801 implemented instead.
39802
1cfe20b3 398032009-01-19 Christian Franke <franke@computer.org>
39804
39805 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
39806 of 512 to calculate data size.
39807 (grub_scsi_read12): Likewise.
39808 (grub_scsi_write10): Likewise.
39809 (grub_scsi_write12): Likewise.
39810 (grub_scsi_read): Adjust size according to blocksize.
39811 Add checks for invalid blocksize and unaligned transfer.
39812
bee5fe5d 398132009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
39814
39815 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
39816
ef257b36 39817 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 39818 width glyphs.
39819
3e643f8c 398202009-01-19 Robert Millan <rmh@aybabtu.com>
39821
39822 * config.guess: Update to latest version from config git.
39823 * config.sub: Likewise.
39824
4fa80998 398252009-01-17 Felix Zielcke <fzielcke@z-51.de>
39826
39827 * Makefile.in: Change font compilation to use new grub-mkfont instead
39828 of java version.
39829
39830 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
39831 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
39832 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
39833 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
39834 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
39835 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
39836 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
39837 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
39838 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
39839
7086085b 398402009-01-16 Christian Franke <franke@computer.org>
39841
39842 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
39843 (enum grub_ata_timeout_milliseconds): New enum.
39844 (grub_ata_wait_status): Add parameter milliseconds.
39845 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
39846 recovery from timed-out commands.
39847 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
39848 return grub_errno instead of REG_ERROR.
39849 (grub_ata_pio_write): Add parameter milliseconds.
39850 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
39851 Pass milliseconds to grub_ata_wait_status () and
39852 grub_ata_pio_read ().
39853 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
39854 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
39855 grub_ata_wait_status (). Fix IDENTIFY timeout check.
39856 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
39857 It is not suitable for device detection, because DEV bit is ignored,
39858 the command may run too long, and not all devices set the signature
39859 properly.
39860 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
39861 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
39862 Fix device selection, DEV bit must be set first to address the registers
39863 of the correct device.
39864 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
39865 grub_ata_pio_read/write ().
39866 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
39867 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
39868
4a412913 398692009-01-13 Carles Pina i Estany <carles@pina.cat>
39870
39871 * util/grub-editenv.c (main): Use fseeko(), not fseek().
39872
7795c55e 398732009-01-13 Bean <bean123ch@gmail.com>
d913988c 39874
39875 * util/grub-mkfont.c (write_font): forget to remove some debug code.
39876
7795c55e 398772009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 39878
39879 * Makefile.in: (enable_grub_mkfont): New variable.
39880 (freetype_cflags): Likewise.
39881 (freetype_libs): Likewise.
39882
39883 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
39884 (grub_mkfont_SOURCES): New variable.
39885 (grub_mkfont_CFLAGS): Likewise.
39886 (grub_mkfont_LDFLAGS): Likewise.
39887
39888 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
39889 library if `--enable-grub-mkfont' is requested.
39890 (enable_grub_mkfont): New variable.
39891 (freetype_cflags): Likewise.
39892 (freetype_libs): Likewise.
39893
39894 * util/grub-mkfont.c: New file.
39895
093af1fe 398962009-01-12 Christian Franke <franke@computer.org>
39897
39898 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
39899 mode check. Fix setting of compat_use[].
39900
f36cc108 399012009-01-10 Robert Millan <rmh@aybabtu.com>
39902
39903 Update a few copyright years which we forgot to do in 2008 (only for
39904 files whose changes made in 2008 were copyright-significant)
39905
39906 * Makefile.in: Add 2008 to Copyright line.
39907 * disk/ieee1275/ofdisk.c: Likewise.
39908 * disk/efi/efidisk.c: Likewise.
39909 * kern/dl.c: Likewise.
39910 * kern/sparc64/ieee1275/init.c: Likewise.
39911 * kern/mm.c: Likewise.
39912 * kern/efi/mm.c: Likewise.
39913 * boot/i386/pc/boot.S: Likewise.
39914 * genfslist.sh: Likewise.
39915 * fs/iso9660.c: Likewise.
39916 * fs/hfs.c: Likewise.
39917 * fs/jfs.c: Likewise.
39918 * fs/minix.c: Likewise.
39919 * fs/ufs.c: Likewise.
39920 * gensymlist.sh.in: Likewise.
39921 * genkernsyms.sh.in: Likewise.
39922 * include/grub/misc.h: Likewise.
39923 * include/grub/types.h: Likewise.
39924 * include/grub/symbol.h: Likewise.
39925 * include/grub/elf.h: Likewise.
39926 * include/grub/kernel.h: Likewise.
39927 * include/grub/disk.h: Likewise.
39928 * include/grub/dl.h: Likewise.
39929 * include/grub/i386/linux.h: Likewise.
39930 * include/grub/i386/pc/biosdisk.h: Likewise.
39931 * include/grub/efi/api.h: Likewise.
39932 * include/grub/efi/pe32.h: Likewise.
39933 * include/grub/util/misc.h: Likewise.
39934 * normal/execute.c: Likewise.
39935 * normal/arg.c: Likewise.
39936 * normal/completion.c: Likewise.
39937 * normal/lexer.c: Likewise.
39938 * normal/parser.y: Likewise.
39939 * normal/misc.c: Likewise.
39940 * commands/i386/pc/vbeinfo.c: Likewise.
39941 * commands/hexdump.c: Likewise.
39942 * commands/terminal.c: Likewise.
39943 * commands/ls.c: Likewise.
39944 * commands/help.c: Likewise.
39945 * partmap/pc.c: Likewise.
39946 * loader/efi/chainloader.c: Likewise.
39947 * loader/multiboot_loader.c: Likewise.
39948 * loader/i386/pc/multiboot2.c: Likewise.
39949 * term/efi/console.c: Likewise.
39950 * term/i386/pc/serial.c: Likewise.
39951 * util/lvm.c: Likewise.
39952 * util/console.c: Likewise.
39953 * util/i386/efi/grub-mkimage.c: Likewise.
39954 * util/raid.c: Likewise.
39955
7f02114b 399562009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
39957
39958 * commands/videotest.c: Removed include to grub/machine/memory.h.
39959
39960 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
39961 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
39962 (video_mod_SOURCES): Removed.
39963 (video_mod_CFLAGS): Likewise.
39964 (video_mod_LDFLAGS): Likewise.
39965 (gfxterm_mod_SOURCES): Likewise.
39966 (gfxterm_mod_CFLAGS): Likewise.
39967 (gfxterm_mod_LDFLAGS): Likewise.
39968 (videotest_mod_SOURCES): Likewise.
39969 (videotest_mod_CFLAGS): Likewise.
39970 (videotest_mod_LDFLAGS): Likewise.
39971 (bitmap_mod_SOURCES): Likewise.
39972 (bitmap_mod_CFLAGS): Likewise.
39973 (bitmap_mod_LDFLAGS): Likewise.
39974 (tga_mod_SOURCES): Likewise.
39975 (tga_mod_CFLAGS): Likewise.
39976 (tga_mod_LDFLAGS): Likewise.
39977 (jpeg_mod_SOURCES): Likewise.
39978 (jpeg_mod_CFLAGS): Likewise.
39979 (jpeg_mod_LDFLAGS): Likewise.
39980 (png_mod_SOURCES): Likewise.
39981 (png_mod_CFLAGS): Likewise.
39982 (png_mod_LDFLAGS): Likewise.
39983
39984 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
39985 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
39986 (video_mod_SOURCES): Added.
39987 (video_mod_CFLAGS): Likewise.
39988 (video_mod_LDFLAGS): Likewise.
39989 (videotest_mod_SOURCES): Likewise.
39990 (videotest_mod_CFLAGS): Likewise.
39991 (videotest_mod_LDFLAGS): Likewise.
39992 (bitmap_mod_SOURCES): Likewise.
39993 (bitmap_mod_CFLAGS): Likewise.
39994 (bitmap_mod_LDFLAGS): Likewise.
39995 (tga_mod_SOURCES): Likewise.
39996 (tga_mod_CFLAGS): Likewise.
39997 (tga_mod_LDFLAGS): Likewise.
39998 (jpeg_mod_SOURCES): Likewise.
39999 (jpeg_mod_CFLAGS): Likewise.
40000 (jpeg_mod_LDFLAGS): Likewise.
40001 (png_mod_SOURCES): Likewise.
40002 (png_mod_CFLAGS): Likewise.
40003 (png_mod_LDFLAGS): Likewise.
40004 (gfxterm_mod_SOURCES): Likewise.
40005 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 40006 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 40007
40008 * term/gfxterm.c: Removed include to grub/machine/memory.h,
40009 grub/machine/console.h.
40010
644fff97 400112009-01-04 Jerone Young <jerone@gmail.com>
40012
40013 Make on screen instructions clearer
40014
40015 Based on patch created by Jidanni <jidanni@jidanni.org>
40016
40017 * normal/menu.c: print clearer instructions on the screen
40018
1e901a75 400192009-01-02 Colin D Bennett <colin@gibibit.com>
40020
40021 New font engine.
34c44600 40022
1e901a75 40023 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
40024 build system and fixed gfxterm.c to work with different sized fonts.
40025
40026 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 40027
1e901a75 40028 * configure: Re-generated.
34c44600 40029
1e901a75 40030 * DISTLIST: Removed font/manager.c.
40031 Added font/font.c.
40032 Added font/font_cmd.c.
34c44600 40033
1e901a75 40034 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
40035 compilation.
34c44600 40036
1e901a75 40037 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 40038
40039 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 40040
40041 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 40042
1e901a75 40043 * normal/menu.c: Likewise.
34c44600 40044
1e901a75 40045 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
40046 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 40047
1e901a75 40048 * include/grub/font.h: Replaced with new file.
34c44600 40049
1e901a75 40050 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
40051 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
40052 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
40053 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
40054 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 40055 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 40056 fg_red, fg_green, fg_blue, fg_alpha.
40057 (grub_video_adapter): Removed blit_glyph.
34c44600 40058 (grub_video_blit_glyph): Removed.
40059
1e901a75 40060 * font/manager.c: Removed file.
34c44600 40061
40062 * font/font.c: New file.
40063
1e901a75 40064 * font/font_cmd.c: Likewise.
34c44600 40065
1e901a75 40066 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 40067
1e901a75 40068 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
40069 (grub_video_vbe_map_rgba): Likewise.
40070 (grub_video_vbe_unmap_color_int): Likewise.
40071 (grub_video_vbe_blit_glyph): Removed.
40072 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 40073
1e901a75 40074 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
40075 (get_pixel): Likewise.
34c44600 40076 (set_pixel): Likewise.
40077
1e901a75 40078 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 40079
1e901a75 40080 * term/gfxterm.c: Adapted to new font engine.
34c44600 40081
1e901a75 40082 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 40083
1e901a75 40084 * term/i386/pc/vga.c: Likewise.
34c44600 40085
1e901a75 40086 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 40087
1e901a75 40088 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 40089
1e901a75 40090 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 40091
1e901a75 40092 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 40093
1e901a75 40094 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 40095
1e901a75 40096 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 40097
1e901a75 40098 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 40099
1e901a75 40100 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 40101
1e901a75 40102 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
40103
40104 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 40105
1e901a75 40106 * util/grub-mkconfig_lib.in: Changed font extension.
40107
278922e8 401082008-12-28 Felix Zielcke <fzielcke@z-51.de>
40109
40110 * util/getroot.c (grub_util_get_grub_dev): Add support for
40111 /dev/md/dNNpNN style partitionable mdraid devices.
40112
3ced05cf 401132008-12-12 Alex Smith <alex@alex-smith.me.uk>
40114
40115 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
40116 at a time limit of the PXE TFTP API correctly.
40117 (grub_pxefs_close): Likewise.
40118
7fd0ee30 401192008-11-29 Robert Millan <rmh@aybabtu.com>
40120
34c44600 40121 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 40122 grub_ata_device_initialize() calls.
40123
34c44600 401242008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 40125
40126 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
40127 iteration failed.
40128 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
40129
89313780 401302008-11-28 Robert Millan <rmh@aybabtu.com>
40131
40132 Fix build on powerpc-ieee1275. Based on patch created by
40133 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
40134 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40135 `kern/ieee1275/mmap.c'.
40136 * include/grub/powerpc/ieee1275/memory.h: New file.
40137
15257703 40138 Provide grub-install on coreboot.
40139 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
40140 (grub_install_SOURCES): New variable.
40141 * util/i386/pc/grub-install.in: Add a few condition checks to make it
40142 usable on coreboot.
40143
9fc5388a 401442008-11-25 Felix Zielcke <fzielcke@z-51.de>
40145
40146 * util/grub-fstest.c (grub_term_get_current_input): Change return type
40147 to `grub_term_input_t'.
40148 (grub_term_get_current_output): Change return type to
40149 `grub_term_output_t'.
40150
bc3a2f31 401512008-11-22 Robert Millan <rmh@aybabtu.com>
40152
34c44600 40153 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 40154 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
40155 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
40156 grub_vga_text_cls().
40157
80fc88f2 40158 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 40159 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 40160
cbf36fd3 40161 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
40162 to 0x200000 (avoids trouble with some OFW implementations, and matches
40163 with the one in Yaboot).
40164 Reported by Manoel Abranches
40165
73e8e268 401662008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 40167
40168 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
40169 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
40170
73e8e268 40171 * util/grub-mkconfig_lib.in (grub_warn): New function.
40172 (convert_system_path_to_grub_path): Use grub_warn() when issuing
40173 warnings, to obtain consistent formatting.
40174 * util/grub.d/00_header.in: Likewise.
40175 * util/update-grub_lib.in: Likewise.
40176
e94045a1 40177 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 40178 Move comment text to `#error' stanza.
e94045a1 40179
79d29fd7 40180 Harmonize ieee1275's grub_available_iterate() with the generic
40181 grub_machine_mmap_iterate() interface (fixes a recently-introduced
40182 build problem on i386-ieee1275):
40183 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
40184 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
40185 parameter `type'. Update all users of this function.
40186 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40187 `kern/ieee1275/mmap.c'.
40188 * kern/ieee1275/init.c
40189 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
40190 with ...
40191 (grub_machine_mmap_iterate): ... this.
40192 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
40193 return type to `grub_err_t'. Update all implementations of this
40194 function prototype.
40195 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
40196 Likewise.
40197
60d6b16e 40198 Add `lsmmap' command (lists firmware-provided memory map):
40199 * commands/lsmmap.c: New file.
40200 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
40201 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
40202 variables.
40203 * conf/powerpc-ieee1275.rmk: Likewise.
40204 * conf/i386-coreboot.rmk: Likewise.
40205 * conf/i386-ieee1275.rmk: Likewise.
40206
ebaaf49b 402072008-11-19 Robert Millan <rmh@aybabtu.com>
40208
40209 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 40210 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
40211 constraints to initrd allocation (based on code from
40212 loader/i386/pc/linux.c). Without them, initrd was allocated too high
40213 for Linux to find it.
ebaaf49b 40214
dfab719f 402152008-11-14 Robert Millan <rmh@aybabtu.com>
40216
40217 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
40218 order to cope with duplicate slashes.
40219
10fc3eb9 402202008-11-14 Robert Millan <rmh@aybabtu.com>
40221
40222 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
40223 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
40224 don't want to mess with lower memory, because it is used in the Linux
40225 loader.
40226
40227 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 40228 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 40229 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
40230 is in our heap (probably as a result of it being corrupted during
2f2a3442 40231 decompression). Add #error instance with comment to explain why this
40232 loader isn't currently usable on PC/BIOS.
10fc3eb9 40233
e2e07847 402342008-11-14 Robert Millan <rmh@aybabtu.com>
40235
40236 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 40237 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 40238
fe8e8d69 402392008-11-12 Robert Millan <rmh@aybabtu.com>
40240
40241 Make loader/i386/linux.c buildable on i386-pc (although disabled).
40242
40243 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
40244 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
40245 from here ...
40246 * include/grub/i386/pc/memory.h: ... to here.
40247
976b07d0 402482008-11-12 Robert Millan <rmh@aybabtu.com>
40249
40250 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
40251 split).
40252
40253 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
40254 (grub_console_cur_color, grub_console_real_putchar)
40255 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
40256 (grub_console_setcolorstate, grub_console_setcolor)
40257 (grub_console_getcolor): Move from here ...
40258 * include/grub/i386/vga_common.h: ... to here (new file).
40259
40260 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
40261 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
40262 `<grub/i386/io.h>'.
40263 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
40264 `<grub/i386/vga_common.h>'.
40265
76679cd3 402662008-11-12 Robert Millan <rmh@aybabtu.com>
40267
40268 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
40269 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
40270 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
40271 variables.
40272 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
40273 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
40274
40275 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
40276 grub_console_init() with call to grub_vga_text_init().
40277 (grub_machine_fini): Replace call to
40278 grub_console_fini() with call to grub_vga_text_fini() and
40279 grub_at_keyboard_fini().
40280
40281 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
40282 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
40283 (grub_console_setcolorstate, grub_console_setcolor)
40284 (grub_console_getcolor): New function prototypes.
40285
40286 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
40287 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
40288 (grub_vga_text_setcursor): Static-ize.
40289 (grub_vga_text_term): New structure.
40290 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
40291
40292 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
40293 (grub_console_cur_color, grub_console_standard_color)
40294 (grub_console_normal_color, grub_console_highlight_color)
40295 (map_char, grub_console_putchar, grub_console_getcharwidth)
40296 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
40297 (grub_console_getcolor): Move from here ...
40298 * term/i386/vga_common.c: ... to here (same function names).
40299
95b841d3 403002008-11-12 Robert Millan <rmh@aybabtu.com>
40301
40302 Use newly-added Multiboot support in coreboot.
40303
40304 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
40305 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
40306
40307 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
40308 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
40309 (codestart): Store the MBI in `startup_multiboot_info' when we're
40310 being loaded using Multiboot.
40311
40312 * kern/i386/coreboot/init.c (grub_machine_init): Move
40313 grub_at_keyboard_init() call to beginning of function (useful for
40314 debugging). Call grub_machine_mmap_init() before attempting to use
40315 grub_machine_mmap_iterate().
40316 (grub_lower_mem, grub_upper_mem): Move from here ...
40317 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
40318 here (new file).
40319
40320 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
40321 function prototype.
40322
761ca975 403232008-11-12 Robert Millan <rmh@aybabtu.com>
40324
40325 Fix a regression introduced by the at_keyboard.mod split. Because
40326 some terminals are default on some platforms and non-default on
40327 others, the first terminal being registered determines which is
40328 going to be default.
40329
40330 * kern/term.c (grub_term_register_input): If this is the first
40331 terminal being registered, set it as the current one.
40332 (grub_term_register_output): Likewise.
40333
40334 * term/efi/console.c (grub_console_init): Do not call
40335 grub_term_set_current_output() or grub_term_set_current_input().
40336 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
40337 * term/i386/pc/console.c (grub_console_init): Likewise.
40338 (grub_console_fini): Do not call grub_term_set_current_input()
40339 (but leave grub_term_set_current_output() to restore text mode).
40340
6c529df7 403412008-11-10 Robert Millan <rmh@aybabtu.com>
40342
40343 * util/grub.d/00_header.in: Add backward compatibility check for
40344 versions of terminal.mod that don't understand `terminal_input' or
40345 `terminal_output'.
40346
132e4113 403472008-11-09 Robert Millan <rmh@aybabtu.com>
40348
40349 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
40350 `terminal_input' / `terminal_output', not `terminal'.
40351
ac293d50 403522008-11-08 Robert Millan <rmh@aybabtu.com>
40353
40354 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 40355 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 40356
0025933a 403572008-11-08 Robert Millan <rmh@aybabtu.com>
40358
40359 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 40360 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 40361 members. Update all users.
40362 * util/console.c (grub_ncurses_term): Split in ...
40363 (grub_ncurses_term_input): ... this, and ...
40364 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 40365 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 40366
37c86336 403672008-11-08 Robert Millan <rmh@aybabtu.com>
40368
40369 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
40370 (PKGDATA): Add $(pkgdata_SRCDIR).
40371 (pkglib_BUILDDIR): New variable.
40372 (pkgdata_SRCDIR): New variable.
40373 (build_env.mk): New target.
40374 (include_DATA): New variable.
40375 (install-local): Install $(include_DATA) files in $(includedir).
40376
b6c15a2d 403772008-11-07 Pavel Roskin <proski@gnu.org>
40378
d99d46f1 40379 * gendistlist.sh: Use C locale for sorting to ensure consistent
40380 output on all systems.
40381
b6c15a2d 40382 * util/grub.d/00_header.in: Remove incorrect space before
40383 "serial".
40384
c32ee8c9 403852008-11-07 Robert Millan <rmh@aybabtu.com>
40386
40387 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
40388 per specification.
40389 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
40390 * loader/multiboot_loader.c (find_multi_boot2_header): New function
40391 (based on find_multi_boot1_header).
40392 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
40393 using find_multi_boot2_header(), and abort if neither Multiboot or
40394 Multiboot headers were found.
40395
651c29b7 403962008-11-07 Robert Millan <rmh@aybabtu.com>
40397
40398 Modularize at_keyboard.mod:
40399
40400 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
40401 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
40402 (at_keyboard_mod_LDFLAGS): New variables.
40403
40404 Actual terminal split:
40405
40406 * include/grub/term.h (struct grub_term): Split in ...
40407 (struct grub_term_input): ... this, and ...
40408 (struct grub_term_output): ... this. Update all users.
40409 (grub_term_set_current): Split in ...
40410 (grub_term_set_current_input): ... this, and ...
40411 (grub_term_set_current_output): ... this.
40412 (grub_term_get_current): Split in ...
40413 (grub_term_get_current_input): ... this, and ...
40414 (grub_term_get_current_output): ... this.
40415 (grub_term_register): Split in ...
40416 (grub_term_register_input): ... this, and ...
40417 (grub_term_register_output): ... this.
40418 (grub_term_unregister): Split in ...
40419 (grub_term_unregister_input): ... this, and ...
40420 (grub_term_unregister_output): ... this.
40421 (grub_term_iterate): Split in ...
40422 (grub_term_iterate_input): ... this, and ...
40423 (grub_term_iterate_output): ... this.
40424
40425 * kern/term.c (grub_term_list): Split in ...
40426 (grub_term_list_input): ... this, and ...
40427 (grub_term_list_output): ... this. Update all users.
40428 (grub_cur_term): Split in ...
40429 (grub_cur_term_input): ... this, and ...
40430 (grub_cur_term_output): ... this. Update all users.
40431 (grub_term_set_current): Split in ...
40432 (grub_term_set_current_input): ... this, and ...
40433 (grub_term_set_current_output): ... this.
40434 (grub_term_get_current): Split in ...
40435 (grub_term_get_current_input): ... this, and ...
40436 (grub_term_get_current_output): ... this.
40437 (grub_term_register): Split in ...
40438 (grub_term_register_input): ... this, and ...
40439 (grub_term_register_output): ... this.
40440 (grub_term_unregister): Split in ...
40441 (grub_term_unregister_input): ... this, and ...
40442 (grub_term_unregister_output): ... this.
40443 (grub_term_iterate): Split in ...
40444 (grub_term_iterate_input): ... this, and ...
40445 (grub_term_iterate_output): ... this.
40446
40447 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
40448 a check for input and one for output (and only attempt to get keys
40449 from user when input works).
40450
40451 * util/grub-probe.c (grub_term_get_current): Split in ...
40452 (grub_term_get_current_input): ... this, and ...
40453 (grub_term_get_current_output): ... this.
40454 * util/grub-fstest.c: Likewise.
40455 * util/i386/pc/grub-setup.c: Likewise.
40456 * util/grub-editenv.c: Likewise.
40457
40458 Portability adjustments:
40459
40460 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
40461 `term/i386/pc/at_keyboard.c'.
40462 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
40463 grub_keyboard_controller_init() (now handled by terminal .init).
40464 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
40465 grub_at_keyboard_init().
40466 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
40467 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
40468 at_keyboard.mod via input terminal interface).
40469 * include/grub/i386/coreboot/console.h: Convert into a stub for
40470 `<grub/i386/pc/console.h>'.
40471
40472 Migrate full terminals to new API:
40473
40474 * term/efi/console.c (grub_console_term): Split into ...
40475 (grub_console_term_input): ... this, and ...
40476 (grub_console_term_output): ... this. Update all users.
40477 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
40478 (grub_ofconsole_init): Split into ...
40479 (grub_ofconsole_init_input): ... this, and ...
40480 (grub_ofconsole_init_output): ... this.
40481 (grub_ofconsole_term): Split into ...
40482 (grub_ofconsole_term_input): ... this, and ...
40483 (grub_ofconsole_term_output): ... this. Update all users.
40484 * term/i386/pc/serial.c (grub_serial_term): Split into ...
40485 (grub_serial_term_input): ... this, and ...
40486 (grub_serial_term_output): ... this. Update all users.
40487 * term/i386/pc/console.c (grub_console_term): Split into ...
40488 (grub_console_term_input): ... this, and ...
40489 (grub_console_term_output): ... this. Update all users.
40490 (grub_console_term_input): Only enable it on PC/BIOS platform.
40491 (grub_console_init): Remove grub_keyboard_controller_init() call.
40492
40493 Migrate input terminals to new API:
40494
40495 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
40496 `i386' and `i386/pc' to enable build on x86_64 (this driver is
40497 i386-specific anyway).
40498 (grub_console_checkkey): Rename to ...
40499 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
40500 users.
40501 (grub_keyboard_controller_orig): New variable.
40502 (grub_console_getkey): Rename to ...
40503 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
40504 users.
40505 (grub_keyboard_controller_init): Static-ize. Save original
40506 controller value so that it can be restored ...
40507 (grub_keyboard_controller_fini): ... here (new function).
40508 (grub_at_keyboard_term): New structure.
40509 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
40510 functions.
40511
40512 Migrate output terminals to new API:
40513
40514 * term/i386/pc/vga.c (grub_vga_term): Change type to
40515 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
40516 members. Update all users.
40517 * term/gfxterm.c (grub_video_term): Change type to
40518 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
40519 members. Update all users.
40520 * include/grub/i386/pc/console.h (grub_console_checkkey)
40521 (grub_console_getkey): Do not export (no longer needed by gfxterm,
40522 etc).
40523
40524 Migrate `terminal' command and userland tools to new API:
40525
40526 * commands/terminal.c (grub_cmd_terminal): Split into ...
40527 (grub_cmd_terminal_input): ... this, and ...
40528 (grub_cmd_terminal_output): ... this.
40529 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
40530 `terminal_input' and `terminal_output'.
40531 * util/grub.d/00_header.in: Adjust `terminal' calls to new
40532 `terminal_input' / `terminal_output' API.
40533 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
40534 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
40535 provided ${GRUB_TERMINAL}, convert it).
40536
96e5d876 405372008-11-04 Robert Millan <rmh@aybabtu.com>
40538
40539 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
40540 for FreeBSD.
40541 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
40542
556f3775 405432008-11-03 Bean <bean123ch@gmail.com>
40544
40545 * kern/elf.c (grub_elf32_load): Revert to previous code.
40546 (grub_elf64_load): Likewise.
40547
40548 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
40549
926b9823 405502008-11-01 Robert Millan <rmh@aybabtu.com>
40551
40552 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
40553 (TARGET_CPPFLAGS): Likewise.
40554 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
40555
1432e958 405562008-11-01 Carles Pina i Estany <carles@pina.cat>
40557
40558 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
40559
dba3f844 405602008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 40561
40562 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
40563 addition of objects until the code is not going to be able to fail.
40564
dba3f844 405652008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 40566
40567 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
40568 (add a missing NULL check, and correct them by moving the pointer
40569 operations after the actual check).
40570
7ab28c21 405712008-10-29 Robert Millan <rmh@aybabtu.com>
40572
40573 * util/i386/pc/grub-install.in: Handle empty string as output from
40574 make_system_path_relative_to_its_root().
40575
1b7748eb 405762008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
40577
40578 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
40579 circular metadata worst case scenario. If the metadata is circular
40580 then copy the wrap in place.
40581 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
40582 project lib/format_text/layout.h
40583 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
40584
c9618ab2 405852008-10-03 Felix Zielcke <fzielcke@z-51.de>
40586
7a36edca 40587 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 40588
bf981c62 405892008-10-03 Felix Zielcke <fzielcke@z-51.de>
40590
40591 * util/update-grub_lib.in: Mention filename in warning message.
40592
6d994591 405932008-09-29 Felix Zielcke <fzielcke@z-51.de>
40594
40595 * NEWS: Update for rename of update-grub to grub-mkconfig.
40596
18ade780 405972008-09-29 Felix Zielcke <fzielcke@z-51.de>
40598
40599 * util/update-grub_lib.in: Copy to ...
40600 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 40601 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 40602 * util/update-grub.in: Rename to ...
40603 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
40604 option. Add `--output' option to allow users to specify the generated
40605 configuration file. Default to stdout.
40606 (update_grub_dir): Rename to ...
40607 (grub_mkconfig_dir): ... this.
40608 (grub_cfg): Default to an empty string.
40609 * conf/common.rmk (update-grub): Rename to ...
40610 (grub-mkconfig): ... this.
40611 (update-grub_lib): Copy to ...
40612 (grub-mkconfig_lib): ... this.
40613 (update-grub_SCRIPTS): Copy to ...
40614 (grub-mkconfig_SCRIPTS): ... this. Update all users.
40615 (update-grub_DATA): Rename to ...
40616 (grub-mkconfig_DATA): ... this.
40617
556ce6ac 406182008-09-28 Robert Millan <rmh@aybabtu.com>
40619
40620 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
40621 to `modified'. Add the real `created' field.
40622 (grub_iso9660_uuid): Use `modified' rather than `created' for
40623 constructing the UUID.
40624
406252008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 40626
40627 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
40628 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
40629
92274e85 406302008-09-28 Bean <bean123ch@gmail.com>
40631
40632 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
40633 Thanks to Christian Franke for finding this bug.
40634
add6f17a 406352008-09-25 Robert Millan <rmh@aybabtu.com>
40636
40637 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
40638 instances of grub_util_get_disk_name() (see previous commit).
40639
d2a367b8 406402008-09-25 Robert Millan <rmh@aybabtu.com>
40641
40642 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
40643 `util/i386/get_disk_name.c'.
40644 * conf/i386-efi.rmk: Likewise.
40645 * conf/x86_64-efi.rmk: Likewise.
40646 * conf/i386-coreboot.rmk: Likewise.
40647 * conf/i386-ieee1275.rmk: Likewise.
40648 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
40649 `util/ieee1275/get_disk_name.c'.
40650 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
40651 * util/ieee1275/get_disk_name.c: Remove file.
40652 * util/i386/get_disk_name.c: Remove file.
40653 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
40654 "hd%d" for device.map entries, rather than using
40655 grub_util_get_disk_name().
40656
81a06771 406572008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 40658
40659 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
40660 warning.
40661 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
40662
5a004279 406632008-09-24 Carles Pina i Estany <carles@pina.cat>
40664
40665 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
40666 Changed to 0x5100.
40667 (GRUB_TERM_PPAGE): Changed to 0x4900.
40668
397093d3 406692008-09-24 Robert Millan <rmh@aybabtu.com>
40670
40671 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
40672 macros (they were i386-pc specific).
40673 * include/grub/sparc64/ieee1275/console.h: Likewise.
40674 * include/grub/efi/console.h: Likewise.
40675
a91b6c7c 406762008-09-22 Bean <bean123ch@gmail.com>
40677
40678 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
40679 resident and in attribute list.
40680
40681 * include/grub/ntfs.h (BMP_LEN): Removed.
40682
c40fd116 406832008-09-22 Bean <bean123ch@gmail.com>
40684
81a06771 40685 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 40686 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
40687
40688 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
40689 error occurs, as grub_disk_open will call grub_disk_close, which will
40690 call p->close (scsi).
40691
81a06771 406922008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 40693
40694 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
40695 (AC_PREREQ): Bumped to 2.59.
40696 (AC_TRY_COMPILE): Replace obsolete macro with ...
40697 (AC_COMPILE_IFELSE): ... this.
40698 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
40699 (AC_LINK_IFELSE): ... this.
40700
5dc43410 407012008-09-21 Felix Zielcke <fzielcke@z-51.de>
40702
40703 * autogen.sh: Add a call to `gendistlist.sh'.
40704
9035dce4 407052008-09-19 Christian Franke <franke@computer.org>
40706
40707 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
40708 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
40709 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
40710 Export __enable_execute_stack() to modules.
40711 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
40712 New function.
40713
7fd75377 407142008-09-09 Felix Zielcke <fzielcke@z-51.de>
40715
040030b3 40716 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
40717 Sort the list.
40718
407192008-09-09 Felix Zielcke <fzielcke@z-51.de>
40720
40721 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 40722 #include <grub/util/hostdisk.h>.
40723
89d5ffcf 407242008-09-08 Robert Millan <rmh@aybabtu.com>
40725
40726 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
40727 segments when their filesz is zero (grub_file_read() interprets
81a06771 40728 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 40729 Use `lowest_segment' rather than 0 for calculating the current
40730 segment load address.
40731
40da438f 407322008-09-08 Robert Millan <rmh@aybabtu.com>
40733
40734 * util/hostdisk.c (open_device): Replace a grub_util_info() call
40735 with grub_dprintf("hostdisk", ...), as it was so verbose that it
40736 clobbered useful information.
40737
ddbf5556 407382008-09-08 Robert Millan <rmh@aybabtu.com>
40739
40740 * include/grub/util/biosdisk.h: Move to ...
40741 * include/grub/util/hostdisk.h: ... here. Update all users.
40742 * util/biosdisk.c: Move to ...
40743 * util/hostdisk.c: ... here. Update all users.
40744
783d0f48 407452008-09-07 Robert Millan <rmh@aybabtu.com>
40746
40747 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
40748 variables.
40749 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
40750 and length can be stored directly in the `mbi->mmap_addr' and
40751 `mbi->mmap_length' struct fields.
40752
548e2ea5 407532008-09-07 Robert Millan <rmh@aybabtu.com>
40754
40755 * conf/i386.rmk: New file. Provides declaration for building
40756 `cpuid.mod'.
40757 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
40758 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
40759 variables.
40760 Include `conf/i386.mk'.
40761 * conf/i386-efi.rmk: Likewise.
40762 * conf/x86_64-efi.rmk: Likewise.
40763 * conf/i386-coreboot.rmk: Likewise.
40764 * conf/i386-ieee1275.rmk: Likewise.
40765
0ea85a37 407662008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
40767
40768 Based on patch created by Colin D Bennett <colin@gibibit.com>.
40769 Adds optimization support for BGR based modes.
40770
40771 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
40772 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
40773 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
40774 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
40775 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
40776 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
40777 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
40778 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
40779 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
40780 (grub_video_i386_vbeblit_index_index): Likewise.
40781 (grub_video_i386_vbeblit_replace_directN): Added.
40782 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
40783 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
40784 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
40785 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
40786 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
40787 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 40788 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 40789 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
40790 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
40791 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
40792 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
40793 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
40794 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
40795
40796 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
40797 (grub_video_i386_vbefill_R8G8B8): Likewise.
40798 (grub_video_i386_vbefill_index): Likewise.
40799 (grub_video_i386_vbefill_direct32): Added.
40800 (grub_video_i386_vbefill_direct24): Likewise.
40801 (grub_video_i386_vbefill_direct16): Likewise.
40802 (grub_video_i386_vbefill_direct8): Likewise.
40803
81a06771 40804 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 40805 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
40806 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
40807 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
40808 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
40809 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 40810
0ea85a37 40811 * video/video.c (grub_video_get_blit_format): Updated to use new
40812 blit formats. Added handling for 16 bit color modes.
81a06771 40813
40814 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 40815 fillers.
40816 (common_blitter): Updated to use new blitters.
40817
40818 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
40819 Removed.
40820 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
40821 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
40822 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
40823 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
40824 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
40825 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
40826 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
40827 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
40828 (grub_video_i386_vbeblit_index_index): Likewise.
40829 (grub_video_i386_vbeblit_replace_directN): Added.
40830 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
40831 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
40832 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
40833 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
40834 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
40835 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
40836 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
40837 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
40838 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
40839 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
40840 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
40841 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
40842 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 40843
0ea85a37 40844 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
40845 (grub_video_i386_vbefill_R8G8B8): Likewise.
40846 (grub_video_i386_vbefill_index): Likewise.
40847 (grub_video_i386_vbefill_direct32): Added.
40848 (grub_video_i386_vbefill_direct24): Likewise.
40849 (grub_video_i386_vbefill_direct16): Likewise.
40850 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 40851
0ea85a37 40852 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
40853 types.
81a06771 40854
0ea85a37 40855 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
40856 types.
81a06771 40857
0ea85a37 40858 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
40859 blitter types.
81a06771 40860
0ea85a37 40861 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
40862 types.
40863
e8a83df6 408642008-09-06 Felix Zielcke <fzielcke@z-51.de>
40865
40866 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
40867 RAID level 1.
40868
6bcd8ee5 408692008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 40870
6bcd8ee5 40871 * fs/iso9660.c (grub_iso9660_date): New structure.
40872 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
40873 (grub_iso9660_uuid): New function.
c375ae58 40874
59261157 408752008-09-05 Bean <bean123ch@gmail.com>
40876
40877 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
40878
40879 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
40880 insensitive bit for names in Win32 and Win32 & DOS namespace.
40881
40882 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
40883
40884 * include/grub/types.h (LONG_MAX): Likewise.
40885
58b6645a 408862008-09-04 Felix Zielcke <fzielcke@z-51.de>
40887
4ee55921 40888 * util/getroot.c: Include <config.h>.
40889 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
40890 add support for /dev/md/N devices and handle LVM double dash escaping.
40891
408922008-09-04 Felix Zielcke <fzielcke@z-51.de>
40893
40894 * config.guess: Update to latest version from config git.
40895 * config.sub: Likewise.
58b6645a 40896
9124f65d 408972008-09-03 Robert Millan <rmh@aybabtu.com>
40898
40899 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
40900 `disk->total_sectors'.
40901
81a06771 409022008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 40903
40904 * include/grub/normal.h: Fixed incorrect comment for
40905 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
40906
81a06771 409072008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 40908
40909 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
40910 values with defines.
40911
40912 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
40913 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
40914 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
40915 (GRUB_VBE_MODEATTR_COLOR): Likewise.
40916 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
40917 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
40918 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
40919 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
40920 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
40921 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
40922 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
40923 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
40924 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
40925 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
40926 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
40927 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
40928 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
40929 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
40930 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
40931
93d5cbf8 409322008-08-31 Robert Millan <rmh@aybabtu.com>
40933
40934 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
40935 declaration.
40936 (grub_multiboot): Fix a few warnings.
40937
21751d50 409382008-08-31 Robert Millan <rmh@aybabtu.com>
40939
40940 * loader/i386/pc/multiboot.c: Update comment not to say that
40941 boot_device support is unimplemented.
40942
e27a75c5 409432008-08-31 Robert Millan <rmh@aybabtu.com>
40944
40945 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
40946 or memory map support are unimplemented.
40947
81a06771 409482008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 40949
40950 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
40951
81a06771 409522008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 40953
40954 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
40955 total video memory in 'vbeinfo' output; show color format details for
40956 each video mode.
40957
7c5d8d95 409582008-08-30 Pavel Roskin <proski@gnu.org>
40959
40960 * util/genmoddep.c: Remove for real this time.
40961 * DISTLIST: Remove util/genmoddep.c.
40962
4cebd25a 409632008-08-30 Robert Millan <rmh@aybabtu.com>
40964
40965 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
40966 as required by Multiboot spec (it was already 4-byte aligned, but
40967 only by chance).
40968
b497a269 409692008-08-29 Pavel Roskin <proski@gnu.org>
40970
e3925185 40971 * kern/powerpc/ieee1275/crt0.S: Rename to ...
40972 * kern/powerpc/ieee1275/startup.S: ... this.
40973 * conf/powerpc-ieee1275.rmk: Adjust for the above.
40974 * DISTLIST: Likewise.
40975
b497a269 40976 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
40977 grub/cpu/kernel.h. Add start label for consistency with other
40978 platforms. Add grub_prefix immediately after start. Add jump
40979 to the code after grub_prefix.
40980 * include/grub/powerpc/kernel.h: Provide valid values for
40981 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
40982
6e5a42fe 409832008-08-29 Bean <bean123ch@gmail.com>
40984
40985 * configure.ac: Change host_os to cygwin for mingw.
40986 (asprintf): New check for function.
40987
40988 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
40989 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
40990
40991 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 40992 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 40993 sync, sleep and grub_util_get_disk_size for mingw.
40994
40995 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
40996 to get size in mingw.
40997 (open_device): Use flag O_BINARY if it's defined.
40998 (find_root_device): Add dummy code for mingw.
40999
41000 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
41001 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
41002 (get_scsi_disk_name): Return 0 for mingw.
41003
41004 * util/hostfs.c: #include <grub/util/misc.h>.
41005 (grub_hostfs_open): Use "rb" flag to open file, use
41006 grub_util_get_disk_size to get disk size for mingw.
41007
41008 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
41009 (asprintf): New function if HAVE_ASPRINTF is not set.
41010 (sync): New function for mingw.
41011 (sleep): Likewise.
41012 (grub_util_get_disk_size): Likewise.
41013
ab3f2673 410142008-08-28 Pavel Roskin <proski@gnu.org>
41015
41016 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41017 kern/time.c.
41018
1c282483 410192008-08-28 Robert Millan <rmh@aybabtu.com>
41020
41021 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
41022
678e849c 410232008-08-28 Robert Millan <rmh@aybabtu.com>
41024
41025 Change find_grub_drive() syntax so it doesn't prevent it from
41026 detecting NULL names as errors.
41027
41028 * util/biosdisk.c (find_grub_drive): Move free slot search code
41029 from here ...
41030 (find_free_slot): ... to here.
41031 (read_device_map): Use find_free_slot() to search for free slots.
41032
965c75ca 410332008-08-27 Marco Gerards <marco@gnu.org>
41034
41035 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
41036 (scsi_mod_SOURCES): New variable.
41037 (scsi_mod_CFLAGS): Likewise
41038 (scsi_mod_LDFLAGS): Likewise.
41039
41040 * disk/scsi.c: New file.
41041
41042 * include/grub/scsi.h: Likewise.
41043
41044 * include/grub/scsicmd.h: Likewise.
41045
41046 * disk/ata.c: Include <grub/scsi.h>.
41047 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
41048 instead.
41049 (grub_ata_iterate): Skip ATAPI devices.
41050 (grub_ata_open): Only handle ATAPI devices.
41051 (struct grub_atapi_read): Removed.
41052 (grub_atapi_readsector): Likewise.
41053 (grub_ata_read): No longer handle ATAPI devices.
41054 (grub_ata_write): Likewise.
41055 (grub_atapi_iterate): New function.
41056 (grub_atapi_read): Likewise.
41057 (grub_atapi_write): Likewise.
41058 (grub_atapi_open): Likewise.
41059 (grub_atapi_close): Likewise.
41060 (grub_atapi_dev): New variable.
41061 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
41062 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
41063
41064 * include/grub/disk.h (enum grub_disk_dev_id): Add
41065 `GRUB_DISK_DEVICE_SCSI_ID'.
41066
c07ae501 410672008-08-26 Robert Millan <rmh@aybabtu.com>
41068
41069 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
41070 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
41071 descriptive.
41072
5ed20adc 410732008-08-23 Bean <bean123ch@gmail.com>
41074
41075 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
41076 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41077 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
41078 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
41079 dm_nv.mod.
41080 (raid5rec_mod_SOURCES): New macro.
41081 (raid5rec_mod_CFLAGS): Likewise.
41082 (raid5rec_mod_LDFLAGS): Likewise.
41083 (raid6rec_mod_SOURCES): Likewise.
41084 (raid6rec_mod_CFLAGS): Likewise.
41085 (raid6rec_mod_LDFLAGS): Likewise.
41086 (mdraid_mod_SOURCES): Likewise.
41087 (mdraid_mod_CFLAGS): Likewise.
41088 (mdraid_mod_LDFLAGS): Likewise.
41089 (dm_nv_mod_SOURCES): Likewise.
41090 (dm_nv_mod_CFLAGS): Likewise.
41091 (dm_nv_mod_LDFLAGS): Likewise.
41092
41093 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
41094 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
41095 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41096
41097 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
41098 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
41099
41100 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41101
41102 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41103
41104 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41105
41106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41107
41108 * disk/raid5_recover.c: New file.
41109
41110 * disk/raid6_recover.c: Likewise.
41111
41112 * disk/mdraid_linux.c: Likewise.
41113
41114 * disk/dmraid_nvidia.c: Likewise.
41115
41116 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
41117 ULONG_MAX.
41118
41119 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
41120 calculate the size of raid device.
41121 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
41122 different layout of raid5.
41123 (grub_raid_scan_device): Remove code specific to mdraid.
41124 (grub_raid_list): New variable.
41125 (free_array): New function.
41126 (grub_raid_register): Likewise.
41127 (grub_raid_unregister): Likewise.
41128 (grub_raid_rescan): Likewise.
41129 (GRUB_MOD_INIT): Don't iterate device here.
41130 (GRUB_MOD_FINI): Use free_array to release resource.
41131
41132 * include/grub/raid.h: Remove macro and structure specific to mdraid.
41133 (grub_raid5_recover_func_t): New function variable type.
41134 (grub_raid6_recover_func_t): Likewise.
41135 (grub_raid5_recover_func): New variable.
41136 (grub_raid6_recover_func): Likewise.
41137 (grub_raid_register): New function.
41138 (grub_raid_unregister): Likewise.
41139 (grub_raid_rescan): Likewise.
41140 (grub_raid_block_xor): Likewise.
41141
41142 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
41143 (CMD_CRC): New macro.
41144 (part): Removed.
41145 (read_file): Handle device as well as file.
41146 (cmd_crc): New function.
41147 (fstest): Handle multiple disks.
41148 (options): Remove part, raw and long, add root and diskcount.
41149 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 41150 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 41151 add handling for the new options, support multiple disks.
41152
41153 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
41154
29c18915 411552008-08-23 Bean <bean123ch@gmail.com>
41156
41157 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
41158
41159 * genfslist.sh: Ignore kernel.mod.
41160
41161 * genpartmaplist.sh: Likewise.
41162
8415f261 411632008-08-23 Robert Millan <rmh@aybabtu.com>
41164
41165 * util/getroot.c (find_root_device): Skip anything that starts with
41166 a dot, not just directories. This avoids things like /dev/.tmp.md0.
41167
d5a7dc5b 411682008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 41169
d5a7dc5b 41170 * util/update-grub.in (GRUB_GFXMODE): Export variable.
41171 * util/grub.d/00_header.in: Allow the administrator to change default
41172 gfxmode via ${GRUB_GFXMODE}.
41173
380cfbb4 411742008-08-21 Felix Zielcke <fzielcke@z-51.de>
41175
41176 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
41177
c9baafe7 411782008-08-21 Robert Millan <rmh@aybabtu.com>
41179
41180 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
41181 loader.
41182 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
41183 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
41184
e290bef2 411852008-08-20 Carles Pina i Estany <carles@pina.cat>
41186
41187 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
41188 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
41189
f9dbfc96 411902008-08-19 Robert Millan <rmh@aybabtu.com>
41191
41192 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
41193 (struct grub_virtual_screen): Remove `cursor_color'.
41194 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
41195 initialization.
41196 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
41197
dd6bd6ab 411982008-08-18 Robert Millan <rmh@aybabtu.com>
41199
41200 Unify (identical) linux_normal.c files.
41201 * loader/i386/efi/linux_normal.c: Move from here ...
41202 * loader/linux_normal.c: ... to here. Update all users.
41203 * loader/i386/pc/linux_normal.c: Delete. Update all users.
41204 * loader/i386/ieee1275/linux_normal.c: Likewise.
41205
7f42f83e 412062008-08-18 Robert Millan <rmh@aybabtu.com>
41207
41208 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
41209 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
41210 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
41211 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
41212 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
41213 New macros.
41214 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
41215 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
41216 (GRUB_LINUX_CL_END_OFFSET): ... to here.
41217 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
41218 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
41219 (GRUB_EFI_CL_END_OFFSET): Rename to ...
41220 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
41221 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
41222 Initialize `params->video_cursor_x' and `params->video_cursor_y'
41223 portably using grub_getxy().
41224 Replace `-EFI' with `-bzImage' in boot message.
41225
38487ddb 412262008-08-17 Robert Millan <rmh@aybabtu.com>
41227
41228 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
41229
deceb3ec 412302008-08-17 Robert Millan <rmh@aybabtu.com>
41231
41232 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
41233
41234 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
41235 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
41236 (grub_machine_mmap_iterate): New function declaration.
41237 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
41238 structure.
41239 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
41240 macros.
41241
41242 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
41243 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
41244 Move e820 parsing from here ...
41245 * kern/i386/pc/mmap.c: New file.
41246 (grub_machine_mmap_iterate): ... to here.
41247
41248 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
41249 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
41250 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
41251 (grub_available_iterate): Redeclare to return `void', and redeclare
41252 its hook to use grub_uint64_t as addr and size parameters, and rename
41253 to ...
41254 (grub_machine_mmap_iterate): ... this. Update all users.
41255
41256 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
41257 to make it more readable. Rename to ...
41258 (grub_machine_mmap_iterate): ... this.
41259
41260 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
41261 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
41262 (grub_multiboot): Allocate an extra region after the payload, and fill
41263 it with a Multiboot memory map. Adjust a.out loader to calculate size
41264 with the extra space.
41265 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
41266 with the extra space.
41267
f8aa0f43 412682008-08-17 Carles Pina i Estany <carles@pina.cat>
41269
9807deb9 41270 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 41271
605f5bb6 412722008-08-17 Felix Zielcke <fzielcke@z-51.de>
41273
41274 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
41275 mdate-sh to the list `find' searches for.
41276 * DISTLIST: Regenerated.
41277
210db6c6 412782008-08-16 Felix Zielcke <fzielcke@z-51.de>
41279
41280 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
41281 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 41282 genmoddep.awk, gensymlist.sh.in.
41283 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 41284 * DISTLIST: Regenerated.
48cdbfd4 41285 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 41286
1082b929 412872008-08-16 Robert Millan <rmh@aybabtu.com>
41288
41289 * disk/raid.c (grub_raid_init): Handle/report errors set by
41290 grub_device_iterate().
41291 * disk/lvm.c (grub_lvm_init): Likewise.
41292
42ce5170 412932008-08-15 Bean <bean123ch@gmail.com>
41294
41295 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41296 and datehook.mod.
41297 (datetime_mod_SOURCES): New macro.
41298 (datetime_mod_CFLAGS): Likewise.
41299 (datetime_mod_LDFLAGS): Likewise.
41300 (date_mod_SOURCES): Likewise.
41301 (date_mod_CFLAGS): Likewise.
41302 (date_mod_LDFLAGS): Likewise.
41303 (datehook_mod_SOURCES): Likewise.
41304 (datehook_mod_CFLAGS): Likewise.
41305 (datehook_mod_LDFLAGS): Likewise.
41306
41307 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41308 and datehook.mod.
41309 (datetime_mod_SOURCES): New macro.
41310 (datetime_mod_CFLAGS): Likewise.
41311 (datetime_mod_LDFLAGS): Likewise.
41312 (date_mod_SOURCES): Likewise.
41313 (date_mod_CFLAGS): Likewise.
41314 (date_mod_LDFLAGS): Likewise.
41315 (datehook_mod_SOURCES): Likewise.
41316 (datehook_mod_CFLAGS): Likewise.
41317 (datehook_mod_LDFLAGS): Likewise.
41318
41319 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41320 and datehook.mod.
41321 (datetime_mod_SOURCES): New macro.
41322 (datetime_mod_CFLAGS): Likewise.
41323 (datetime_mod_LDFLAGS): Likewise.
41324 (date_mod_SOURCES): Likewise.
41325 (date_mod_CFLAGS): Likewise.
41326 (date_mod_LDFLAGS): Likewise.
41327 (datehook_mod_SOURCES): Likewise.
41328 (datehook_mod_CFLAGS): Likewise.
41329 (datehook_mod_LDFLAGS): Likewise.
41330
41331 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41332 and datehook.mod.
41333 (datetime_mod_SOURCES): New macro.
41334 (datetime_mod_CFLAGS): Likewise.
41335 (datetime_mod_LDFLAGS): Likewise.
41336 (date_mod_SOURCES): Likewise.
41337 (date_mod_CFLAGS): Likewise.
41338 (date_mod_LDFLAGS): Likewise.
41339 (datehook_mod_SOURCES): Likewise.
41340 (datehook_mod_CFLAGS): Likewise.
41341 (datehook_mod_LDFLAGS): Likewise.
41342
41343 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
41344 and datehook.mod.
41345 (datetime_mod_SOURCES): New macro.
41346 (datetime_mod_CFLAGS): Likewise.
41347 (datetime_mod_LDFLAGS): Likewise.
41348 (date_mod_SOURCES): Likewise.
41349 (date_mod_CFLAGS): Likewise.
41350 (date_mod_LDFLAGS): Likewise.
41351 (datehook_mod_SOURCES): Likewise.
41352 (datehook_mod_CFLAGS): Likewise.
41353 (datehook_mod_LDFLAGS): Likewise.
41354
41355 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
41356
41357 * commands/date.c: New file.
41358
41359 * hook/datehook.c: Likewise.
41360
41361 * include/grub/lib/datetime.h: Likewise.
41362
41363 * include/grub/i386/cmos.h: Likewise.
41364
41365 * lib/datetime.c: Likewise.
41366
41367 * lib/i386/datetime.c: Likewise.
41368
41369 * lib/efi/datetime.c: Likewise.
41370
0e9242da 413712008-08-14 Robert Millan <rmh@aybabtu.com>
41372
41373 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
41374 (grub_mkelfimage_SOURCES): New variable.
41375 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
41376
41377 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
41378 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
41379 * conf/powerpc-ieee1275.rmk: Likewise.
41380 * conf/i386-ieee1275.rmk: Likewise.
41381
41382 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
41383 * kern/i386/coreboot/init.c: Likewise.
41384
41385 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
41386 with `<grub/cpu/kernel.h>'.
41387 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
41388 to ...
41389 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
41390 * kern/i386/coreboot/startup.S: Likewise.
41391
41392 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
41393 (GRUB_MOD_GAP): Remove.
41394 * include/grub/powerpc/kernel.h: New file.
41395 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
41396 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
41397 * include/grub/i386/kernel.h: New file.
41398 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
41399 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
41400 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
41401
41402 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
41403 `grub-mkelfimage'.
41404 Use --directory when invoking grub_mkimage.
41405
41406 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
41407 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
41408 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
41409 and GRUB_KERNEL_CPU_PREFIX.
41410
b86408f8 414112008-08-14 Felix Zielcke <fzielcke@z-51.de>
41412
d5e619ca 41413 * include/grub/err.h (grub_err_printf): New function prototype.
41414 * util/misc.c (grub_err_printf): New function.
41415 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
41416 grub_printf.
41417 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 41418
7161f0e0 414192008-08-13 Robert Millan <rmh@aybabtu.com>
41420
41421 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
41422
a1967522 414232008-08-13 Robert Millan <rmh@aybabtu.com>
41424
41425 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
41426 boot entry.
41427
371458b5 414282008-08-12 Robert Millan <rmh@aybabtu.com>
41429
41430 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
41431 of the relocation code from here ...
41432 (grub_multiboot): ... to here.
41433 (forward_relocator, backward_relocator): Move from here ...
41434 * kern/i386/loader.S (grub_multiboot_forward_relocator)
41435 (grub_multiboot_backward_relocator): ... to here.
41436 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
41437 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
41438 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
41439 (grub_multiboot_forward_relocator_end)
41440 (grub_multiboot_backward_relocator)
41441 (grub_multiboot_backward_relocator_end): New variables.
41442
05f9452b 414432008-08-12 Bean <bean123ch@gmail.com>
41444
41445 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
41446
20024ab0 414472008-08-11 Robert Millan <rmh@aybabtu.com>
41448
41449 * kern/i386/linuxbios/startup.S: Move from here ...
41450 * kern/i386/coreboot/startup.S: ... to here.
41451
41452 * kern/i386/linuxbios/init.c: Move from here ...
41453 * kern/i386/coreboot/init.c: ... to here.
41454
41455 * kern/i386/linuxbios/table.c: Move from here ...
41456 * kern/i386/coreboot/mmap.c: ... to here.
41457
41458 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
41459
e352e9cd 414602008-08-11 Robert Millan <rmh@aybabtu.com>
41461
41462 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
41463 errors. Leave it to the upper layer to handle them.
41464
2d05bc6a 414652008-08-09 Christian Franke <franke@computer.org>
41466
41467 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
41468 * conf/common.rmk: Install `grub-pe2elf' only if requested.
41469 Install `grub.d/10_windows' only on Cygwin.
41470 * configure.ac: Add subst of `target_os'.
41471 Check `target_os' also before setting TARGET_OBJ2ELF.
41472 Add `--enable-grub-pe2elf'.
41473
042bd419 414742008-08-08 Robert Millan <rmh@aybabtu.com>
41475
41476 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
41477 (grub_last_time): Change type to grub_uint64_t.
41478 (grub_disk_open): Migrate code from to using grub_get_time_ms().
41479 (grub_disk_close): Likewise.
41480
41481 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
41482 (run_menu): Migrate code from to using grub_get_time_ms().
41483
41484 * util/misc.c (grub_get_time_ms): New function.
41485
7f280db5 414862008-08-08 Marco Gerards <marco@gnu.org>
41487
41488 * disk/ata.c (grub_ata_regget): Change return type to
41489 `grub_uint8_t'.
41490 (grub_ata_regget2): Likewise.
41491 (grub_ata_wait_status): New function.
41492 (grub_ata_wait_busy): Removed function, updated all users to use
41493 `grub_ata_wait_status'.
41494 (grub_ata_wait_drq): Likewise.
41495 (grub_ata_cmd): New function.
41496 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
41497 error handling.
41498 (grub_ata_pio_write): Add error handling.
41499 (grub_atapi_identify): Likewise.
41500 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
41501 handling.
41502 (grub_ata_identify): Use `grub_ata_cmd' and improve error
41503 handling. Actually use the detected registers. Reorder the
41504 detection logic such that it is easier to read.
41505 (grub_ata_pciinit): Do not assign the same ID to each controller.
41506 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
41507 handling.
41508 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
41509
41510 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
41511
1fbc5e66 415122008-08-08 Marco Gerards <marco@gnu.org>
41513
41514 * NEWS: Update.
41515
819ce6c0 415162008-08-07 Bean <bean123ch@gmail.com>
41517
41518 * include/grub/x86_64/pci.h: New file.
41519
5c41d44d 415202008-08-07 Christian Franke <franke@computer.org>
41521
41522 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
41523 (TIMER2_GATE): Likewise.
41524 (grub_pit_wait): Add enable/disable of the timer2 gate
41525 bit of port 0x61. This fixes a possible infinite loop.
41526
5ebc275d 415272008-08-07 Bean <bean123ch@gmail.com>
41528
41529 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
41530 kern/i386/tsc.c and kern/i386/pit.c.
41531
41532 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
41533 x86_64 platform.
41534
41535 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
41536 <grub/i386/tsc.h>.
41537
41538 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
41539
e383b3d0 415402008-08-07 Bean <bean123ch@gmail.com>
41541
41542 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
41543
41544 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
41545
41546 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
41547 multiple inclusion. Add #include <grub/types.h>.
41548
1cbb58ac 415492008-08-06 Christian Franke <franke@computer.org>
41550
41551 * conf/common.rmk: Build and install `10_windows'.
41552 * util/grub.d/10_windows.in: New script.
41553
337f5a1e 415542008-08-06 Pavel Roskin <proski@gnu.org>
41555
41556 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
41557
057bc4ac 415582008-08-06 Robert Millan <rmh@aybabtu.com>
41559
41560 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
41561 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
41562
2b99f123 415632008-08-06 Bean <bean123ch@gmail.com>
41564
41565 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
41566 (grub_pxefs_fs_int): Remove dummy definition.
41567 (grub_pxefs_open): Use data->block_size to store the current block
41568 size setting.
41569 (grub_pxefs_read): Use block size stored in data->block_size. As the
41570 value of grub_pxe_blksize can be changed after the file is opened.
41571
9f0234cb 415722008-08-06 Bean <bean123ch@gmail.com>
41573
41574 * fs/i386/pc/pxe.c (curr_file): new variable.
41575 (grub_pxefs_open): Simply the handling of pxe file system. Don't
41576 require the dummy internal file system anymore.
41577 (grub_pxefs_read): Removed.
41578 (grub_pxefs_close): Likewise.
41579 (grub_pxefs_fs_int): Likewise.
41580 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
41581 connection when we switch file.
41582 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
41583
a55d42e0 415842008-08-06 Robert Millan <rmh@aybabtu.com>
41585
41586 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
41587 `halt.mod'.
41588 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
41589 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
41590
41591 * kern/i386/halt.c: New file.
41592 * kern/i386/reboot.c: Likewise.
41593 * include/grub/i386/reboot.h: Likewise.
41594 * include/grub/i386/halt.h: Likewise.
41595
41596 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
41597 Include `<grub/cpu/halt.h>'.
41598 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
41599 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
41600
41601 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
41602 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
41603 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
41604 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
41605 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
41606 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
41607 from here ...
41608 * include/grub/i386/at_keyboard.h: ... to here.
41609
24371d26 416102008-08-05 Robert Millan <rmh@aybabtu.com>
41611
41612 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
41613 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
41614 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
41615 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
41616 `kern/generic/millisleep.c'.
41617
41618 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
41619 instead of grub_get_rtc().
41620 (grub_tsc_init): Initialize `tsc_boot_time'.
41621
41622 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
41623 (grub_machine_init): Use grub_tsc_init() rather than
41624 installing an RTC-based handler via grub_install_get_time_ms().
41625
41626 * kern/i386/pit.c: New file.
41627 * include/grub/i386/pit.h: Likewise.
41628
9e7007b3 416292008-08-05 Bean <bean123ch@gmail.com>
41630
41631 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
41632
41633 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
41634 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
41635 (pxe_mod_SOURCES): New macro.
41636 (pxe_mod_CFLAGS): Likewise.
41637 (pxe_mod_LDFLAGS): Likewise.
41638 (pxecmd_mod_SOURCES): Likewise.
41639 (pxecmd_mod_CFLAGS): Likewise.
41640 (pxecmd_mod_LDFLAGS): Likewise.
41641
41642 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
41643 (grub_pxe_call): Likewise.
41644
41645 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
41646
41647 * commands/i386/pc/pxecmd.c: New file.
41648
9f0234cb 41649 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 41650
41651 * include/grub/i386/pc/pxe.h: Likewise.
41652
6977d49f 416532008-08-05 Bean <bean123ch@gmail.com>
41654
41655 * util/console.c (grub_console_cur_color): New variable.
41656 (grub_console_standard_color): Likewise.
41657 (grub_console_normal_color): Likewise.
41658 (grub_console_highlight_color): Likewise.
41659 (color_map): Likewise.
41660 (use_color): Likewise.
41661 (NUM_COLORS): New macro.
41662 (grub_ncurses_setcolorstate): Handle color properly.
41663 (grub_ncurses_setcolor): Don't change color here, just remember the
41664 settings, color will be set in grub_ncurses_setcolorstate.
41665 (grub_ncurses_getcolor): New function.
41666 (grub_ncurses_init): Initialize color pairs.
41667 (grub_ncurses_term): New member grub_ncurses_getcolor.
41668
9c2ff3ee 416692008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 41670
9c2ff3ee 41671 High resolution timer support. Implemented for x86 CPUs using TSC.
41672 Extracted generic grub_millisleep() so it's linked in only as needed.
41673 This requires a Pentium compatible CPU; if the RDTSC instruction is
41674 not supported, then it falls back on the generic grub_get_time_ms()
41675 implementation that uses the machine's RTC.
41676
41677 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
41678 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
41679 `kern/generic/millisleep.c'.
41680
41681 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
41682 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
41683
41684 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
41685 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
41686
41687 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
41688
41689 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41690 `kern/generic/millisleep.c'.
41691
41692 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
41693
41694 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
41695
41696 * kern/generic/rtc_get_time_ms.c: New file.
41697
41698 * kern/generic/millisleep.c: New file.
337f5a1e 41699
9c2ff3ee 41700 * kern/misc.c: Don't include
41701 <kern/time.h> anymore.
41702 (grub_millisleep_generic): Removed.
41703
41704 * commands/sleep.c (grub_interruptible_millisleep): Uses
41705 grub_get_time_ms() instead of grub_get_rtc().
41706
41707 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
41708 function.
41709 (grub_cpu_is_cpuid_supported): New inline function.
41710 (grub_cpu_is_tsc_supported): New inline function.
41711 (grub_tsc_init): New function prototype.
41712 (grub_tsc_get_time_ms): New function prototype.
41713
41714 * kern/i386/tsc.c (grub_get_time_ms): New file.
41715
41716 * include/grub/time.h: Include <grub/types.h.
41717 (grub_millisleep_generic): Removed.
41718 (grub_get_time_ms): New prototype.
41719 (grub_install_get_time_ms): New prototype.
41720 (grub_rtc_get_time_ms): New prototype.
41721
41722 * kern/time.c (grub_get_time_ms): New function.
41723 (grub_install_get_time_ms): New function.
41724
41725 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
41726 <grub/time.h> anymore.
41727 (grub_millisleep): Removed.
41728 (grub_machine_init): Call grub_tsc_init.
41729
41730 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
41731 get_time_ms() implementation.
41732
41733 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
41734 (ieee1275_get_time_ms): New function.
41735 (grub_machine_init): Install get_time_ms() implementation.
41736
41737 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
41738 (grub_machine_init): Call grub_tsc_init().
41739 (grub_millisleep): Removed.
bf06a93f 41740
9c2ff3ee 41741 * kern/ieee1275/init.c (grub_millisleep): Removed.
41742 (grub_machine_init): Install ieee1275_get_time_ms()
41743 implementation.
41744 (ieee1275_get_time_ms): New function.
41745 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
41746 real work.
41747
9ec92aaf 417482008-08-05 Marco Gerards <marco@gnu.org>
41749
41750 * disk/ata.c: Include <grub/pci.h>.
41751 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
41752 (grub_ata_initialize): Rewritten.
41753 (grub_ata_device_initialize): New function.
41754
8d23f507 417552008-08-04 Pavel Roskin <proski@gnu.org>
41756
41757 * kern/main.c: Include grub/mm.h.
41758
5e15ee3d 417592008-08-04 Robert Millan <rmh@aybabtu.com>
41760
41761 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
41762 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
41763 corruption problem).
41764
a9053f8f 417652008-08-04 Robert Millan <rmh@aybabtu.com>
41766
41767 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
41768 warnings introduced in my last commit.
41769
dd19c7d7 417702008-08-03 Robert Millan <rmh@aybabtu.com>
41771
41772 Make PCI available on all i386 architectures.
41773
41774 * include/grub/i386/pc/pci.h: Move from here ...
41775 * include/grub/i386/pci.h: ... to here.
41776
41777 * include/grub/i386/pc/pci.h: Remove.
41778 * include/grub/i386/efi/pci.h: Remove.
41779 * include/grub/x86_64/efi/pci.h: Remove.
41780
41781 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
41782 `<grub/cpu/pci.h>'.
41783
41784 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
41785 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
41786 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
41787
41788 * conf/i386-ieee1275.rmk: Likewise.
41789
e14a6184 417902008-08-03 Robert Millan <rmh@aybabtu.com>
41791
41792 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
41793 (grub_console_setcursor): Make it possible to set cursor off.
41794
52768e37 417952008-08-03 Robert Millan <rmh@aybabtu.com>
41796
41797 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
41798 of modules instead of assuming which platform provides what.
41799 * util/update-grub.in: Likewise.
41800
2d52f57f 418012008-08-03 Robert Millan <rmh@aybabtu.com>
41802
41803 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
41804 instead of `grub_install_dos_part' to determine whether a drive needs
41805 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 41806 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 41807
2a5cd121 418082008-08-02 Robert Millan <rmh@aybabtu.com>
41809
41810 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
41811
93808428 418122008-08-02 Robert Millan <rmh@aybabtu.com>
41813
41814 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
41815 of informational grub_dprintf() calls.
41816
3bd0a12a 418172008-08-02 Robert Millan <rmh@aybabtu.com>
41818
41819 * disk/memdisk.c (memdisk_size): Don't initialize.
41820 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
41821
41822 * include/grub/i386/pc/kernel.h
41823 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
41824 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
41825 (grub_memdisk_image_size, grub_arch_memdisk_addr)
41826 (grub_arch_memdisk_size): Remove.
41827
41828 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
41829 field (was only used to transfer a constant). Add `type' field to
41830 support multiple module types.
41831 (grub_module_iterate): New function.
41832
41833 * kern/device.c (grub_device_open): Do not hide error messages
41834 when grub_disk_open() fails. Use grub_print_error() instead.
41835
41836 * kern/i386/pc/init.c (grub_arch_modules_addr)
41837 (grub_arch_memdisk_size): Remove functions.
41838 (grub_arch_modules_addr): Return the module address in high memory
41839 (now that it isn't copied anymore).
41840
41841 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
41842 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
41843 decompression routine (grub_total_module_size already includes that
41844 now). Don't copy modules back to low memory.
41845
41846 * kern/main.c: Include `<grub/mm.h>'.
41847 (grub_load_modules): Split out (and use) ...
41848 (grub_module_iterate): ... this function, which iterates through
41849 module objects and runs a hook.
41850 Comment out grub_mm_init_region() call, as it would cause non-ELF
41851 modules to be overwritten.
41852
41853 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
41854 the memdisk image in its own region, make it part of the module list.
41855 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
41856 (main): Parse --memdisk|-m option, and pass user-provided path as
41857 parameter to generate_image().
41858 (add_segments): Pass `memdisk_path' down to load_modules().
41859 (load_modules): Embed memdisk image in module section when requested.
41860 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
41861 `header.type' instead of `header.offset'.
41862
41863 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
41864 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
41865 (memdisk_mod_LDFLAGS): New variables.
41866 * conf/i386-coreboot.rmk: Likewise.
41867 * conf/i386-ieee1275.rmk: Likewise.
41868
a927cc73 418692008-08-02 Robert Millan <rmh@aybabtu.com>
41870
41871 * loader/i386/pc/multiboot.c (playground, forward_relocator)
41872 (backward_relocator): New variables. Used to allocate and relocate
41873 the payload, respectively.
41874 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 41875 address, install the appropriate relocator code in each bound of
a927cc73 41876 the payload, and set the entry point such that
41877 grub_multiboot_real_boot() will jump to one of them.
41878
41879 * kern/i386/loader.S (grub_multiboot_payload_size)
41880 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
41881 (grub_multiboot_payload_entry_offset): New variables.
41882 (grub_multiboot_real_boot): Set cpu context to what the relocator
41883 expects, and jump to the relocator instead of the payload.
41884
41885 * include/grub/i386/loader.h (grub_multiboot_payload_size)
41886 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
41887 (grub_multiboot_payload_entry_offset): Export.
41888
b15d8a0c 418892008-08-01 Bean <bean123ch@gmail.com>
41890
41891 * normal/menu_entry.c (editor_getline): Don't return the original
41892 string as result, as it will be released by lexer once it has done
41893 using it.
41894
cdfb3d22 418952008-08-01 Robert Millan <rmh@aybabtu.com>
41896
41897 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
41898 within menuentries, not before them.
41899 util/grub.d/10_hurd.in: Likewise.
41900
9175e93d 419012008-08-01 Bean <bean123ch@gmail.com>
41902
41903 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
41904 (bufio_mod_SOURCES): New macro.
41905 (bufio_mod_CFLAGS): Likewise.
41906 (bufio_mod_LDFLAGS): Likewise.
41907
41908 * include/grub/bufio.h: New file.
41909
41910 * io/bufio.c: Likewise.
41911
41912 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
41913 (grub_video_reader_png): Use grub_buffile_open to open file.
41914
41915 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
41916 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
41917
41918 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
41919 (grub_video_reader_tga): Use grub_buffile_open to open file.
41920
41921 * font/manager.c: Include <grub/bufio.h>.
41922 (add_font): Use grub_buffile_open to open file.
41923
3d8383e7 419242008-07-31 Robert Millan <rmh@aybabtu.com>
41925
41926 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
41927 ELF segments, use a macro for arbitrarily accessing any of them instead
41928 of preparing a pointer that allows access to one at a time.
41929 (grub_multiboot_load_elf64): Likewise.
41930
16e641b6 419312008-07-31 Bean <bean123ch@gmail.com>
41932
41933 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
41934 GRUB_KERNEL_MACHINE_DATA_END.
41935
59198b72 419362008-07-30 Robert Millan <rmh@aybabtu.com>
41937
41938 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
41939 Increase from 0x50 to 0x60.
41940 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
41941 use UUIDs to identify the root drive for them. If that's not
41942 possible, abort.
41943 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
41944 check, for cross-disk installs.
41945
ae88bca3 419462008-07-30 Robert Millan <rmh@aybabtu.com>
41947
41948 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
41949 is non-empty, use it to set the `prefix' environment variable instead
41950 of the usual approach.
41951 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
41952 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
41953 environment variable instead of dummy make_install_device().
41954
41955 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
41956 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 41957 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 41958
41959 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
41960 New variable reference.
41961 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
41962 New macro. Defines offset of `grub_prefix' within startup.S (relative
41963 to `start').
41964 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
41965 section within startup.S (relative to `start').
41966 * include/grub/i386/coreboot/kernel.h: Likewise.
41967
41968 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
41969 Overwrite grub_prefix with its contents, at the beginning of the
41970 first segment.
41971 (main): Understand -p|--prefix.
41972
14f41dd1 419732008-07-30 Robert Millan <rmh@aybabtu.com>
41974
41975 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
41976
4ca049a3 419772008-07-30 Robert Millan <rmh@aybabtu.com>
41978
41979 * term/i386/pc/vga_text.c (grub_console_cls): Use
41980 grub_console_gotoxy() to go back to beginning of the screen.
41981 Found by Patrick Georgi <patrick.georgi@coresystems.de>
41982
2921d337 419832008-07-29 Christian Franke <franke@computer.org>
41984
41985 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
41986 Add conversion of emulated mount points on Cygwin.
41987
b609876d 419882008-07-29 Christian Franke <franke@computer.org>
41989
41990 * util/update-grub.in: Add a check for admin
41991 group on Cygwin.
41992 Remove old `grub.cfg.new' before creation.
41993 Add `-f' to `mv' to handle the different filesystem
41994 semantics of Windows.
41995
e93e4679 419962008-07-29 Bean <bean123ch@gmail.com>
41997
41998 * normal/main.c (get_line): Fix buffer overflow bug.
41999
41694fd0 420002008-07-28 Robert Millan <rmh@aybabtu.com>
42001
42002 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
42003 (struct grub_apple_header): New struct. Describes the layout of
42004 the partmap header.
42005 (apple_partition_map_iterate): Check the header magic as well as the
42006 partition magic (which was already being checked).
42007
cfd0b4e6 420082008-07-28 Pavel Roskin <proski@gnu.org>
42009
42010 * genmk.rb: Add a warning to the beginning of the output that
42011 it's a generated file and should not be edited.
42012
93cce016 420132008-07-28 Robert Millan <rmh@aybabtu.com>
42014
42015 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
42016 with the same number are found, just use issue a warning with
42017 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 42018
cd1df915 420192008-07-27 Robert Millan <rmh@aybabtu.com>
42020
42021 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
42022 information.
42023
b70a8427 420242008-07-27 Bean <bean123ch@gmail.com>
42025
42026 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
42027 (grub_fat_find_dir): Ignore case when comparing filename.
42028
8f5e379f 420292008-07-27 Bean <bean123ch@gmail.com>
42030
42031 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
42032 smallino, as it's more descriptive, and i8count can be confused with
42033 the other field count.
42034 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
42035 inode type.
42036
a85cd5a0 420372008-07-27 Bean <bean123ch@gmail.com>
42038
42039 * commands/crc.c: New file.
42040
42041 * lib/crc.c: Likewise.
42042
42043 * include/grub/lib/crc.h: Likewise.
42044
42045 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
42046
42047 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
42048 (hexdump): Move this function to ...
42049
42050 * lib/hexdump.c: ... here.
42051
42052 * include/grub/hexdump.h: Renamed to ...
42053
42054 * include/grub/lib/hexdump.h: ... this.
42055
42056 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
42057
42058 * util/grub-editenv.c: Likewise.
42059
42060 * include/envblk.h: Renamed to ...
42061
42062 * include/lib/envblk.h: ... this.
42063
42064 * util/envblk.c: Renamed to ...
42065
42066 * lib/envblk.c: ... this.
42067
42068 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
42069 lib/hexdump.c.
42070 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
42071 (pkglib_MODULES): Add crc.mod.
42072 (hexdump_mod_SOURCES): Add lib/hexdump.c.
42073 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
42074 (crc_mod_SOURCES): New macro.
42075 (crc_mod_CFLAGS): Likewise.
42076 (crc_mod_LDFLAGS): Likewise.
42077
42078 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
42079
42080 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42081
42082 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42083
42084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42085
42086 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42087
c298def0 420882008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 42089
42090 * commands/help.c: Include <grub/term.h>.
42091 (TERM_WIDTH): Removed. Updated all users.
42092
cc349fb3 420932008-07-27 Pavel Roskin <proski@gnu.org>
42094
42095 * util/getroot.c (find_root_device): Rephrase a comment to avoid
42096 spurious warnings about a comment within a comment.
42097
9051607e 420982008-07-25 Robert Millan <rmh@aybabtu.com>
42099
42100 * util/getroot.c (find_root_device): Skip devices that match
42101 /dev/dm-[0-9]. This lets the real device be found for any type of
42102 abstraction (LVM, EVMS, RAID..).
42103 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
42104 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
42105 device is found first, find_root_device() will now skip it.
42106
01453bfc 421072008-07-24 Pavel Roskin <proski@gnu.org>
42108
42109 * include/grub/types.h: Use __builtin_bswap32() and
42110 __builtin_bswap64() with gcc 4.3 and newer.
42111
6af9849f 421122008-07-24 Christian Franke <franke@computer.org>
42113
3a0fa256 42114 * util/i386/pc/grub-install.in: If `--debug' is specified,
42115 pass `--verbose' to grub-setup.
42116 Abort script if make_system_path_relative_to_its_root() fails.
42117
7810e747 421182008-07-24 Bean <bean123ch@gmail.com>
42119
42120 * configure.ac: Fixed a bug caused by the previous cygwin patch,
42121 variable `target_platform' should be `platform'.
42122
42290e17 421232008-07-24 Bean <bean123ch@gmail.com>
42124
51cc5193 42125 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 42126 (grub_png_init_fixed_block): New function.
42127 (grub_png_decode_image_data): Handle fixed huffman code compression.
42128
2a8a80e4 421292008-07-24 Bean <bean123ch@gmail.com>
42130
42131 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
42132 (grub_pe2elf_SOURCES): New macro.
42133 (CLEANFILES): Add grub-pe2elf.
42134
42135 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
42136 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
42137 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
42138 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
42139 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
42140 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
42141 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
42142 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
42143 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
42144 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
42145 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
42146 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
42147 (GRUB_PE32_DT_FUNCTION): Likewise.
42148 (GRUB_PE32_REL_I386_DIR32): Likewise.
42149 (GRUB_PE32_REL_I386_REL32): Likewise.
42150 (grub_pe32_symbol): New structure.
42151 (grub_pe32_reloc): Likewise.
42152
42153 * util/grub-pe2elf.c: New file.
42154
42155 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
42156 start symbol in non pc platform.
42157
42158 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
42159
42160 The following patches are from Christian Franke.
42161
42162 * include/grub/dl.h: Remove .previous, gas supports this only
42163 for ELF format.
42164
42165 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
42166 Remove .type, gas supports this only for ELF format.
42167
42168 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
42169 nullbytes in symbol table. This fixes an infinite loop if table is
42170 zero filled.
42171
42172 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
42173 TARGET_IMG_LDFLAGS and EXEEXT.
42174
42175 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
42176 TARGET_IMG_LDFLAGS_AC.
42177 (grub_CHECK_STACK_ARG_PROBE): New function.
42178
42179 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
42180
42181 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
42182
42183 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
42184 to set TARGET_IMG_LD* accordingly.
42185 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
42186 Add call to grub_CHECK_STACK_ARG_PROBE.
42187 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
42188
42189 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
42190
42191 * genmk.rb: Add EXEEXT to CLEANFILES.
42192
12ccdb75 421932008-07-23 Robert Millan <rmh@aybabtu.com>
42194
42195 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
42196 define the codes for arrows and lines used for the menu).
42197 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
42198 as well.
42199
42200 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
42201 fonts, because the latter are too slow.
42202
18eeaf04 422032008-07-21 Bean <bean123ch@gmail.com>
42204
42205 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
42206 a20. Run keyboard test last, as it will cause macbook to halt.
42207
b095e2ad 422082008-07-18 Pavel Roskin <proski@gnu.org>
42209
42210 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
42211 load foreign architecture modules correctly anyway. Keep
42212 support for loading host architecture modules, whether we
42213 compile them or not.
42214
737feb35 422152008-07-17 Pavel Roskin <proski@gnu.org>
42216
3f4ce737 42217 * configure.ac: Use -m32 or -m64 regardless of whether we had to
42218 change target_cpu. The compiler default can mismatch target_cpu
42219 in any case.
42220
4ad2d049 42221 * disk/efi/efidisk.c: Fix format warnings on x86_64.
42222 * kern/efi/efi.c: Likewise.
42223
f6130a12 42224 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
42225 target compiler is functional.
42226 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
42227 are set up.
42228
58393a2d 42229 * configure.ac: Default to efi platform for x86_64-apple. Allow
42230 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
42231 adjustments from the rest, only do them if target is not
42232 explicitly given. Merge other adjustments with the final sanity
42233 check. Remove an extraneous check for supported CPU. Be
42234 specific which CPU and which platform is not supported.
42235
737feb35 42236 * configure.ac: Default to pc platform for x86_64.
42237
546f966a 422382008-07-17 Robert Millan <rmh@aybabtu.com>
42239
42240 Partial LinuxBIOS -> Coreboot rename.
42241
42242 * conf/i386-linuxbios.rmk: Renamed to ...
42243 * conf/i386-coreboot.rmk: ... this.
42244 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
42245 * configure.ac: Accept "coreboot" as input platform (but maintain
42246 compatibility with "linuxbios").
42247 * include/grub/i386/linuxbios: Renamed to ...
42248 * include/grub/i386/coreboot: ... this.
42249
20011694 422502008-07-17 Bean <bean123ch@gmail.com>
42251
42252 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 42253 (appleldr_mod_SOURCE): New variable.
20011694 42254 (appleldr_mod_CFLAGS): Likewise.
42255 (appleldr_mod_LDFLAGS): Likewise.
42256 (pci_mod_SOURCES): Likewise.
42257 (pci_mod_CFLAGS): Likewise.
42258 (pci_mod_LDFLAGS): Likewise.
42259 (lspci_mod_SOURCES): Likewise.
42260 (lspci_mod_CFLAGS): Likewise.
42261 (lspci_mod_LDFLAGS): Likewise.
42262
42263 * conf/x86_64-efi.rmk: New file.
42264
42265 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
42266 macro.
42267 (grub_efidisk_write): Likewise.
42268
42269 * include/efi/api.h (efi_call_0): New macro.
42270 (efi_call_1): Likewise.
42271 (efi_call_2): Likewise.
42272 (efi_call_3): Likewise.
42273 (efi_call_4): Likewise.
42274 (efi_call_5): Likewise.
42275 (efi_call_6): Likewise.
42276
42277 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
42278 grub_rescue_cmd_chainloader.
42279
42280 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
42281 (grub_pe32_optional_header): Change some fields based on i386 or
42282 x86_64 platform.
42283 (GRUB_PE32_PE32_MAGIC): Likewise.
42284
42285 * include/grub/efi/uga_draw.h: New file.
42286
42287 * include/grub/elf.h (STN_ABS): New constant.
42288 (R_X86_64_NONE): Relocation constant for x86_64.
42289 (R_X86_64_64): Likewise.
42290 (R_X86_64_PC32): Likewise.
42291 (R_X86_64_GOT32): Likewise.
42292 (R_X86_64_PLT32): Likewise.
42293 (R_X86_64_COPY): Likewise.
42294 (R_X86_64_GLOB_DAT): Likewise.
42295 (R_X86_64_JUMP_SLOT): Likewise.
42296 (R_X86_64_RELATIVE): Likewise.
42297 (R_X86_64_GOTPCREL): Likewise.
42298 (R_X86_64_32): Likewise.
42299 (R_X86_64_32S): Likewise.
42300 (R_X86_64_16): Likewise.
42301 (R_X86_64_PC16): Likewise.
42302 (R_X86_64_8): Likewise.
42303 (R_X86_64_PC8): Likewise.
42304
42305 * include/grub/i386/efi/pci.h: New file.
42306
42307 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
42308 Change it value based on platform.
42309 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
42310 (GRUB_E820_RAM): Likewise.
42311 (GRUB_E820_RESERVED): Likewise.
42312 (GRUB_E820_ACPI): Likewise.
42313 (GRUB_E820_NVS): Likewise.
42314 (GRUB_E820_EXEC_CODE): Likewise.
42315 (GRUB_E820_MAX_ENTRY): Likewise.
42316 (grub_e820_mmap): New structure.
42317 (linux_kernel_header): Change the efi field according to different
42318 kernel version, also field from linux_kernel_header.
42319
42320 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
42321
42322 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
42323 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
42324 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
42325 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
42326 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
42327 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
42328 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
42329 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
42330 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
42331 (GRUB_PCI_ADDR_IO_MASK): Likewise.
42332
42333 * include/grub/x86_64/efi/kernel.h: New file.
42334
42335 * include/grub/x86_64/efi/loader.h: Likewise.
42336
42337 * include/grub/x86_64/efi/machine.h: Likewise.
42338
42339 * include/grub/x86_64/efi/pci.h: Likewise.
42340
42341 * include/grub/x86_64/efi/time.h: Likewise.
42342
42343 * include/grub/x86_64/linux.h: Likewise.
42344
42345 * include/grub/x86_64/setjmp.h: Likewise.
42346
42347 * include/grub/x86_64/time.h: Likewise.
42348
42349 * include/grub/x86_64/types.h: Likewise.
42350
42351 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
42352 GRUB_TARGET_SIZEOF_VOID_P.
42353
42354 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
42355 (grub_efi_locate_handle): Likewise.
42356 (grub_efi_open_protocol): Likewise.
42357 (grub_efi_set_text_mode): Likewise.
42358 (grub_efi_stall): Likewise.
42359 (grub_exit): Likewise.
42360 (grub_reboot): Likewise.
42361 (grub_halt): Likewise.
42362 (grub_efi_exit_boot_services): Likewise.
42363 (grub_get_rtc): Likewise.
42364
42365 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
42366 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
42367 (grub_efi_allocate_pages): Wrap efi calls.
42368 (grub_efi_free_pages): Wrap efi calls.
42369 (grub_efi_get_memory_map): Wrap efi calls.
42370
42371 * kern/x86_64/dl.c: New file.
42372
42373 * kern/x86_64/efi/callwrap.S: Likewise.
42374
42375 * kern/x86_64/efi/startup.S: Likewise.
42376
42377 * loader/efi/appleloader.c: Likewise.
42378
42379 * loader/efi/chainloader.c (cmdline): New variable.
42380 (grub_chainloader_unload): Wrap efi calls.
42381 (grub_chainloader_boot): Likewise.
42382 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
42383 command line.
42384
42385 * loader/efi/chainloader_normal.c (chainloader_command):
42386 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
42387 command line.
42388
42389 * loader/i386/efi/linux.c (allocate_pages): Change allocation
42390 method.
42391 (grub_e820_add_region): New function.
42392 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
42393 booting.
42394 (grub_find_video_card): New function.
42395 (grub_linux_setup_video): New function.
42396 (grub_rescue_cmd_linux): Probe for video information.
42397
42398 * normal/x86_64/setjmp.S: New file.
42399
42400 * term/efi/console.c (map_char): New function.
42401 (grub_console_putchar): Map unicode char.
42402 (grub_console_checkkey): Wrap efi calls.
42403 (grub_console_getkey): Likewise.
42404 (grub_console_getwh): Likewise.
42405 (grub_console_gotoxy): Likewise.
42406 (grub_console_cls): Likewise.
42407 (grub_console_setcolorstate): Likewise.
42408 (grub_console_setcursor): Likewise.
42409
42410 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
42411
59652a20 424122008-07-16 Pavel Roskin <proski@gnu.org>
42413
ef294055 42414 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
42415 format strings.
42416
59652a20 42417 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
42418 pointer, not an integer. This fixes a warning and prevents
42419 precision loss on 64-bit systems.
42420 (relocate_addresses): Remove unneeded cast.
42421
afc3b5d7 424222008-07-15 Pavel Roskin <proski@gnu.org>
42423
506b2b3e 42424 * kern/i386/ieee1275/init.c: Include grub/cache.h.
42425
62ead89c 42426 * term/ieee1275/ofconsole.c: Disable code unused on i386.
42427
c4cd51d7 42428 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
42429 Fix comparison between signed and unsigned.
42430
0d3d8f28 42431 * include/grub/i386/ieee1275/console.h: Declare
42432 grub_console_init() and grub_console_fini().
42433
8804b286 42434 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
42435 It's empty and unused.
42436
ee01cf35 42437 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
42438 beginning to avoid warnings with some compilers.
42439
afc3b5d7 42440 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
42441 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
42442
e4e8eaa5 424432008-07-14 Pavel Roskin <proski@gnu.org>
42444
407aceb4 42445 * kern/env.c (grub_register_variable_hook): Don't copy empty
42446 string, it leaks memory. Pass "" to grub_env_set(), it should
42447 handle constant strings.
42448
e4e8eaa5 42449 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
42450 * commands/cmp.c (grub_cmd_cmp): Likewise.
42451 * kern/dl.c (grub_dl_flush_cache): Likewise.
42452 (grub_dl_load_core): Likewise.
42453 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
42454 (grub_elf64_load_phdrs): Likewise.
42455
d4e2dad3 424562008-07-13 Pavel Roskin <proski@gnu.org>
42457
42458 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
42459 between signed and unsigned.
42460 (LzmaEnc_Finish): Fix warning about an unused parameter.
42461
aa24b516 424622008-07-13 Bean <bean123ch@gmail.com>
42463
42464 * Makefile.in (enable_lzo): New rule.
42465
42466 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
42467
42468 * configure.ac (ENABLE_LZO): New option --enable-lzo.
42469
42470 * boot/i386/pc/lnxboot.S: #include <config.h>.
42471
42472 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 42473 its value according to the compression algorithm used, lzo or lzma.
aa24b516 42474
42475 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
42476 compression algorithm according to configure macro.
42477
42478 * kern/i386/pc/startup.S (codestart): Likewise.
42479
42480 * kern/i386/pc/lzma_decode.S: New file.
42481
42482 * include/grub/lib/LzFind.h: Likewise.
42483
42484 * include/grub/lib/LzHash.h: Likewise.
42485
42486 * include/grub/lib/LzmaDec.h: Likewise.
42487
42488 * include/grub/lib/LzmaEnc.h: Likewise.
42489
42490 * include/grub/lib/LzmaTypes.h: Likewise.
42491
42492 * lib/LzFind.c: Likewise.
42493
42494 * lib/LzmaDec.c: Likewise.
42495
42496 * lib/LzmaEnc.c: Likewise.
42497
4ae821ac 424982008-07-13 Bean <bean123ch@gmail.com>
42499
42500 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
42501 (grub_ext4_extent_header): New structure.
42502 (grub_ext4_extent): Likewise.
42503 (grub_ext4_extent_idx): Likewise.
42504 (grub_ext4_find_leaf): New function.
42505 (grub_ext2_read_block): Handle extents.
42506
9a745147 425072008-07-12 Robert Millan <rmh@aybabtu.com>
42508
42509 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
42510
d49a4cf6 425112008-07-11 Robert Millan <rmh@aybabtu.com>
42512
42513 * util/grub.d/40_custom.in: New file. Example on how to add custom
42514 entries to /etc/grub.d.
42515 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
42516 40_custom (implicitly, by merging all the grub.d rules).
42517
947414b4 425182008-07-11 Pavel Roskin <proski@gnu.org>
42519
0059cf6f 42520 * commands/read.c (grub_getline): Fix invalid memory access.
42521 Don't add newline to the variable value.
42522
947414b4 42523 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
42524 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
42525 (serial_hw_get_port): Check validity of the port number.
42526 (grub_cmd_serial): Check return value of serial_hw_get_port().
42527
62a02d00 425282008-07-07 Pavel Roskin <proski@gnu.org>
42529
42530 * boot/i386/pc/diskboot.S (notification_string): Replace
42531 "Loading kernel" with just "loading". This is shorter, less
42532 confusing and saves a few bytes for possible future changes.
42533
3e5581b0 425342008-07-05 Pavel Roskin <proski@gnu.org>
42535
ea387a48 42536 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
42537 size for ATAPI devices, they are undefined. Output sector
42538 number in decimal form.
42539
3e5581b0 42540 * disk/ata.c: Use named constants for status bits.
42541
fdecb8fd 425422008-07-04 Pavel Roskin <proski@gnu.org>
42543
bcd35b90 42544 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
42545 grub_addr_t before casting it to the void pointer to fix a
42546 warning. Non-addressable regions are discarded earlier.
42547 (grub_arch_modules_addr): Cast _end to grub_addr_t.
42548 * kern/i386/linuxbios/table.c: Include grub/misc.h.
42549 (check_signature): Don't shadow table_header.
42550 (grub_linuxbios_table_iterate): Cast numeric constants to
42551 grub_linuxbios_table_header_t.
42552 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
42553 grub_stop().
42554
af58ab3d 42555 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
42556 prevent warnings.
42557
1759aa57 42558 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
42559 pointer, which can cause warnings. Support 64-bit addresses.
42560
fdecb8fd 42561 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
42562 of sizeof(long). This fixes PowerPC image generation on x86_64.
42563
8516d2a8 425642008-07-04 Robert Millan <rmh@aybabtu.com>
42565
42566 This fixes a performance issue when pc & gpt partmap iterators
42567 didn't abort iteration even after our hook found what it was
fe987087 42568 looking for (often causing expensive probes of non-existent drives).
8516d2a8 42569
42570 Some callers relied on previous buggy behaviour, since they would
34c44600 42571 raise an error when their own hooks caused early abortion of its
8516d2a8 42572 iteration.
42573
42574 * kern/device.c (grub_device_open): Improve error message.
42575 * disk/lvm.c (grub_lvm_open): Likewise.
42576 * disk/raid.c (grub_raid_open): Likewise.
42577
42578 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
42579 when hook requests it, independently of grub_errno.
42580 (pc_partition_map_probe): Do not fail when find_func() caused
42581 early abortion of pc_partition_map_iterate().
42582
42583 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
42584 when hook requests it, independently of grub_errno.
42585 (gpt_partition_map_probe): Do not fail when find_func() caused
42586 early abortion of gpt_partition_map_iterate().
42587
42588 * kern/partition.c (grub_partition_iterate): Abort parent iteration
42589 when hook requests it, independently of grub_errno. Do not fail when
42590 part_map_iterate_hook() caused early abortion of p->iterate().
42591
42592 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
42593 when grub_partition_iterate() returned with non-zero.
42594
277d0de9 425952008-07-03 Pavel Roskin <proski@gnu.org>
42596
42597 * disk/ata.c (grub_ata_pio_write): Check status before writing,
42598 like we do in grub_ata_pio_read().
42599 (grub_ata_readwrite): Always write individual sectors. Fix the
42600 sector count for the remainder.
42601 (grub_ata_write): Enable writing to ATA devices. Correctly
42602 report error for ATAPI devices.
42603
d4c9b428 426042008-07-02 Pavel Roskin <proski@gnu.org>
42605
e43fc690 42606 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
42607 warning.
42608
f707af42 42609 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
42610 for every read sector, we already increment it for the whole
42611 batch. This fixes reading more than 256 sectors at once.
42612
11e16b15 42613 * util/grub-editenv.c (cmd_info): Cast argument to long
42614 explicitly. ptrdiff_t reduces to int on i386.
42615
cbabfdd4 42616 * util/grub-editenv.c (main): Be specific which parameter is
42617 missing.
42618
b8fbce0a 42619 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
42620 (memdisk): Make memdisk_orig_addr a pointer.
42621
c9c8e606 42622 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
42623 for file offsets, use grub_off_t instead. Fix printf format
42624 warnings.
42625
ca62e598 42626 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
42627 there. Real unexpected warnings should not drown in the noise
42628 about known problems.
42629
ce8d1766 42630 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
42631 grub_disk_addr_t for memory addresses.
42632
00c7a56a 42633 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
42634 explicitly to fix a warning.
42635
08d3ef09 42636 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
42637
cb71ba20 42638 * Makefile.in (MODULE_LDFLAGS): New variable.
42639 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
42640 the linker accepts --build-id=none.
42641 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
42642 MODULE_LDFLAGS.
42643 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
42644
d4c9b428 42645 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
42646 those in Linux XFS code. Provide a way to access 64-bit parent
42647 inode.
42648 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
42649 the end of struct grub_xfs_dir_header.
42650
d4156eee 426512008-07-02 Bean <bean123ch@gmail.com>
42652
42653 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
42654 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
42655 and GRUB_IEEE1275_FLAG_NO_ANSI.
42656
42657 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
42658 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
42659 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
42660
42661 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
42662 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
42663
42664 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
42665 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
42666
42667 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
42668 esc sequence on non ANSI terminal.
42669 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
42670
42671 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
42672 beginning of file.
42673
2270f77b 426742008-07-02 Bean <bean123ch@gmail.com>
42675
42676 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
42677 (grub_editenv_SOURCES): New variable.
42678 (pkglib_MODULES): Add loadenv.mod.
42679 (loadenv_mod_SOURCES): New variable.
42680 (loadenv_mod_CFLAGS): Likewise.
42681 (loadenv_mod_LDFLAGS): Likewise.
42682
42683 * include/grub/envblk.h: New file.
42684
42685 * util/envblk.c: New file.
42686
42687 * util/grub-editenv.c: New file.
42688
42689 * commands/loadenv.c: New file.
42690
0e9e51ec 426912008-07-01 Pavel Roskin <proski@gnu.org>
42692
d89b7634 42693 * include/multiboot2.h (struct multiboot_tag_module): Use char,
42694 not unsigned char. This fixes warnings and is consistent with
42695 other tags.
42696
bf1835b1 42697 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
42698
8222a04b 42699 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
42700
6a42d99d 42701 * term/tparm.c (analyze): Always set *popcount.
42702
10b159d1 42703 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
42704 cast to fix a warning.
42705
b8789f6c 42706 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
42707 cast to suppress a warning.
42708
29d7e38a 42709 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
42710 grub_fshelp_read_file() expects.
42711
f341f669 42712 * fs/fat.c: Fix UUID calculation on big-endian systems. We
42713 write uuid as a 32-bit value in CPU byte order, so declare and
42714 use it as such.
42715
0e9e51ec 42716 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
42717 long if the format specifier expects it.
42718 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
42719 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42720 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
42721 long to fix a warning.
42722 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
42723 grub_dprintf() arguments to fix warnings.
42724
3aefa857 427252008-06-30 Pavel Roskin <proski@gnu.org>
42726
56c7668b 42727 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
42728 install_bsd_part immediately before core.img is embedded or
42729 modified on disk. This fixes core.img verification if core.img
42730 cannot be embedded.
42731
3aefa857 42732 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
42733 core_path to calculate the blocklist.
42734 Patch from Javier Martín <lordhabbit@gmail.com>
42735
5444088d 427362008-06-29 Robert Millan <rmh@aybabtu.com>
42737
42738 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
42739 block to disk block.
42740 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
42741 Patch from Niels Böhm <bitbucket@arcor.de>
42742
674835c8 427432008-06-29 Robert Millan <rmh@aybabtu.com>
42744
42745 * util/update-grub_lib.in (font_path): Search for fonts in
42746 /boot/grub first, which is more likely to be readable (we aren't
42747 deciding where fonts live, just looking for them).
42748
f527dbc8 427492008-06-26 Pavel Roskin <proski@gnu.org>
42750
6c2d8df6 42751 * util/biosdisk.c (read_device_map): Don't leave dead map
42752 entries for devices failing stat() check.
42753
f527dbc8 42754 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
42755 core_path_dev for the core.img path on the target device.
42756
aebe3d13 427572008-06-26 Robert Millan <rmh@aybabtu.com>
42758
42759 * disk/fs_uuid.c: New file.
42760 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
42761 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
42762 (fs_uuid_mod_LDFLAGS): New variables.
42763 * include/grub/disk.h (grub_disk_dev_id): Add
42764 `GRUB_DISK_DEVICE_UUID_ID'.
42765 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
42766 implement iterate().
42767
37aaf354 427682008-06-26 Robert Millan <rmh@aybabtu.com>
42769
42770 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
42771 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
42772 Linux image includes no initrd.
42773
25ff262a 427742008-06-21 Javier Martín <lordhabbit@gmail.com>
42775
42776 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
42777 call to resolve the core image location that effectively appended the
42778 name twice.
42779
76a2bd44 427802008-06-21 Robert Millan <rmh@aybabtu.com>
42781
42782 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
42783 call from here ...
42784
42785 * util/grub.d/10_hurd.in: ... to here ...
42786 * util/grub.d/10_linux.in: ... and here.
42787
650e1c79 427882008-06-19 Robert Millan <rmh@aybabtu.com>
42789
fe987087 42790 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 42791 after it has been set by grub_machine_set_prefix().
42792
6ce63911 427932008-06-19 Robert Millan <rmh@aybabtu.com>
42794
42795 * commands/search.c (search_label, search_fs_uuid, search_file): Print
42796 search result when not saving to variable, not the other way around.
42797 When saving to variable, abort iteration as soon as a match is found.
42798
73940cec 427992008-06-19 Robert Millan <rmh@aybabtu.com>
42800
42801 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
42802 check for partition that provides /boot/grub. Its logic is flawed,
42803 as it prevents prepare_grub_to_access_device() from being called
42804 multiple times.
42805
3c62a39d 428062008-06-19 Robert Millan <rmh@aybabtu.com>
42807
42808 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
42809 "insmod" command directly when abstraction modules are needed,
fe987087 42810 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 42811 since it had already been processed).
42812
47395a42 428132008-06-19 Pavel Roskin <proski@gnu.org>
42814
42815 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
42816 changed. This is needed in case GRUB_LIBDIR changes.
42817 * conf/i386-ieee1275.rmk: Likewise.
42818 * conf/i386-linuxbios.rmk: Likewise.
42819 * conf/i386-pc.rmk: Likewise.
42820 * conf/powerpc-ieee1275.rmk: Likewise.
42821
a145ac2d 428222008-06-18 Pavel Roskin <proski@gnu.org>
42823
42824 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
42825 kernel_elf_symlist.c to symlist.c for consistency with other
42826 architectures. Update all users.
42827 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
42828
7847c51e 428292008-06-18 Robert Millan <rmh@aybabtu.com>
42830
42831 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
42832 it in prefix.
42833
42834 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
42835 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
42836 a RAID device, run setup() for all members independently on whether
42837 LVM abstraction is being used.
42838 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
42839 If grub-mkimage has set `*install_dos_part == -2', don't override this
42840 value.
42841 Perform *install_dos_part adjustments independently on whether
42842 we're embedding or not.
42843 Clarify error message when image is too big for embedding.
42844 Remove duplicate *install_dos_part stanza.
42845
b23e5644 428462008-06-17 Robert Millan <rmh@aybabtu.com>
42847
42848 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
42849 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
42850 variables.
42851 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
42852 values in grub_ofconsole_normal_color and
42853 grub_ofconsole_highlight_color (they're not directly related to
42854 background and foreground).
42855 (grub_ofconsole_setcolorstate): Extract background and foreground
42856 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
42857
0aac2f79 428582008-06-17 Robert Millan <rmh@aybabtu.com>
42859
42860 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
42861 /boot/grub for the check in last commit, not /boot (they could be
42862 different partitions).
42863
3cca7ef3 428642008-06-16 Robert Millan <rmh@aybabtu.com>
42865
42866 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
42867 asked to setup access for the same partition that provides /boot,
42868 don't bother using UUIDs since our root already has the value we
42869 want.
42870
347396d8 428712008-06-16 Robert Millan <rmh@aybabtu.com>
42872
42873 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
42874 I2O devices.
42875 Patch from Sven Mueller <sven@debian.org>.
42876
991477f8 428772008-06-16 Robert Millan <rmh@aybabtu.com>
42878
42879 * util/update-grub.in: Check for $EUID instead of $UID.
42880 Reported by Vincent Zweije.
42881
d31a32a1 428822008-06-16 Bean <bean123ch@gmail.com>
42883
fe987087 42884 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 42885 (grub_ext2_read_block): Likewise.
42886 (grub_ext2_read_inode): Likewise.
42887 (grub_ext2_mount): Likewise.
42888 (grub_ext2_close): Likewise.
42889 (grub_ext3_get_journal): Removed.
42890
fe987087 42891 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 42892 (grub_reiserfs_read_symlink): Likewise.
42893 (grub_reiserfs_mount): Likewise.
42894 (grub_reiserfs_open): Likewise.
42895 (grub_reiserfs_read): Likewise.
42896 (grub_reiserfs_close): Likewise.
42897 (grub_reiserfs_get_journal): Removed.
42898
42899 * fs/fshelp.c (grub_fshelp_read): Removed.
42900 (grub_fshelp_map_block): Likewise.
42901
42902 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
42903 (grub_fshelp_journal): Likewise.
42904 (grub_fshelp_read): Likewise.
42905 (grub_fshelp_map_block): Likewise.
42906
3540a760 429072008-06-16 Pavel Roskin <proski@gnu.org>
42908
42909 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
42910 floating point anymore.
42911 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
42912
95614c84 429132008-06-15 Pavel Roskin <proski@gnu.org>
42914
42915 * commands/ls.c (grub_ls_list_files): Use integer calculations
42916 for human readable format, avoid floating point use.
42917 * kern/misc.c (grub_ftoa): Remove.
42918 (grub_vsprintf): Remove floating point support.
42919
50465dd6 429202008-06-15 Robert Millan <rmh@aybabtu.com>
42921
fe6b695a 42922 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 42923 devices.
42924 Reported by Max Vozeler.
42925
a9207284 429262008-06-15 Robert Millan <rmh@aybabtu.com>
42927
42928 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
42929 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
42930 skipped later.
42931 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
42932 the beginning of the prefix.
42933
42934 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
42935 It is assumed that if we have a memdisk, grub-mkimage has set
42936 grub_prefix to include the "(memdisk)" drive in it.
42937
a7cbd45a 429382008-06-15 Robert Millan <rmh@aybabtu.com>
42939
42940 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
42941 Initialize keyboard controller after registering the terminal, so that
42942 grub_printf() can be called from grub_keyboard_controller_init().
42943
21cf716a 429442008-06-15 Robert Millan <rmh@aybabtu.com>
42945
42946 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
42947 extent-btree which is written as big endian on disk.
42948 Reported by Alain Greppin <al@chilibi.org>.
42949
23a64d8e 429502008-06-14 Robert Millan <rmh@aybabtu.com>
42951
42952 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
42953 * util/i386/pc/grub-install.in (modules): Likewise.
42954
d687651c 429552008-06-13 Pavel Roskin <proski@gnu.org>
42956
42957 * commands/ls.c (grub_ls_list_files): Fix format warnings.
42958
dfe9ddd4 429592008-06-13 Bean <bean123ch@gmail.com>
42960
42961 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
42962
42963 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
42964
42965 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
42966 to indicate sparse block.
42967
16ae7781 429682008-06-12 Pavel Roskin <proski@gnu.org>
42969
e6d1a308 42970 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
42971 number, grub_fshelp_read() does it for us.
42972
16ae7781 42973 * fs/fshelp.c (grub_fshelp_read): New function. Implement
42974 linear disk read with journal translation.
42975 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
42976 * include/grub/fshelp.h: Declare grub_fshelp_read().
42977
40fd3a2b 429782008-06-09 Pavel Roskin <proski@gnu.org>
42979
42980 * fs/minix.c (grub_minix_mount): Handle error reading
42981 superblock.
42982
f5679726 429832008-06-08 Robert Millan <rmh@aybabtu.com>
42984
42985 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
42986 don't append the RAID prefix afterwards.
42987 Reported by Clint Adams.
42988
ce525529 429892008-06-08 Robert Millan <rmh@aybabtu.com>
42990
42991 Based on description from Pavel:
42992 * kern/disk.c (grub_disk_check_range): Rename to ...
42993 (grub_disk_adjust_range): ... this. Add a comment explaining the
42994 tasks performed by this function.
42995
ad4936a0 429962008-06-08 Robert Millan <rmh@aybabtu.com>
42997
42998 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
42999 `num_serial' (for consistency with other variables).
43000 (struct grub_ntfs_data): Add `uuid' member.
43001 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
43002 (grub_ntfs_uuid): New function.
43003 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
43004
dc20b0f9 430052008-06-07 Pavel Roskin <proski@gnu.org>
43006
43007 * util/biosdisk.c (open_device): Revert last change to the
43008 function, it broke installation. The sector needs to be
43009 different dependent on which device is opened.
43010
c5e3cfba 430112008-06-06 Robert Millan <rmh@aybabtu.com>
43012
43013 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
43014 rest of GRUB, and breakage doesn't happen if its value were modified.
43015
43016 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43017 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
43018 a constant (same value).
43019 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
43020 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
43021
26a1f8c4 430222008-06-06 Robert Millan <rmh@aybabtu.com>
43023
43024 * util/biosdisk.c (open_device): Do not modify sector offset when
43025 accessing a partition. kern/disk.c already handles this for us.
43026
25d6b327 430272008-06-06 Robert Millan <rmh@aybabtu.com>
43028
43029 * util/grub-emu.c (grub_machine_init): Move code in this function from
43030 here ...
43031 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
43032 segfault in case grub_printf() is called).
43033
43034 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
43035 grub_probe. Update all users not to explicitly add it again.
43036 (grub_device): New variable; contains corresponding device for grubdir.
43037 (fs_module, partmap_module, devabstraction_module): Pass
43038 `--device ${grub_device}' to grub_probe to avoid traversing /dev
43039 every time.
43040
9ece62fb 430412008-06-05 Robert Millan <rmh@aybabtu.com>
43042
43043 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
43044 is found, print it (same layout as with labels).
43045
1ad36d37 430462008-06-04 Robert Millan <rmh@aybabtu.com>
43047
43048 * util/biosdisk.c (get_drive): Rename to ...
43049 (find_grub_drive): ... this. Update all users.
43050
43051 (get_os_disk): Rename to ...
43052 (convert_system_partition_to_system_disk): ... this. Update all users.
43053
43054 (find_drive): Rename to ...
43055 (find_system_device): ... this. Update all users.
43056
e6a30859 430572008-06-04 Robert Millan <rmh@aybabtu.com>
43058
43059 * util/biosdisk.c (get_os_disk): Handle IDA devices.
43060 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43061 (make_device_map): Likewise.
43062
00c108a4 430632008-06-01 Robert Millan <rmh@aybabtu.com>
43064
43065 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
43066 before dereferencing it.
43067
43068 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
43069 union with fat12/fat16-specific ones. Add some new fields, including
43070 `num_serial' for both versions.
43071 (struct grub_fat_data): Add `uuid' member.
43072 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
43073 names. Initialize `data->uuid' using `num_serial'.
43074 (grub_fat_uuid): New function.
43075 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
43076
43077 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
43078 (grub_reiserfs_uuid): New function.
43079 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
43080 member.
43081
43082 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
43083 (grub_xfs_uuid): New function.
43084 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
43085
1385c5bb 430862008-06-01 Robert Millan <rmh@aybabtu.com>
43087
43088 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
43089 code that is backward compatible with pre-uuid search command.
43090
c682dfd7 430912008-05-31 Robert Millan <rmh@aybabtu.com>
43092
43093 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
43094 floppies after everything else, to ensure floppy drive isn't accessed
43095 unnecessarily (patch from Bean).
43096
b7db5d47 430972008-05-31 Robert Millan <rmh@aybabtu.com>
43098
43099 * commands/search.c (search_label, search_fs_uuid, search_file): Do
43100 not print device names when we were asked to set a variable.
43101
6e037aa9 431022008-05-31 Robert Millan <rmh@aybabtu.com>
43103
43104 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
43105 using "cursor-on" and "cursor-off" commands (understood at least by
43106 the Open Firmware flavour on OLPC).
43107
41305bc8 431082008-05-31 Michael Gorven <michael@gorven.za.net>
43109
43110 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
43111 on and off sequences.
43112
69ba137e 431132008-05-31 Robert Millan <rmh@aybabtu.com>
43114
43115 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
43116 * util/update-grub.in: Likewise.
43117
520ae21b 431182008-05-30 Pavel Roskin <proski@gnu.org>
43119
43120 * util/biosdisk.c (linux_find_partition): Simplify logic and
43121 make the code more universal. Keep special processing for
43122 devfs, but use a simple rule for all other devices. If the
43123 device ends with a number, append 'p' and the partition number.
43124 Otherwise, append only the partition number.
43125
5786569b 431262008-05-30 Robert Millan <rmh@aybabtu.com>
43127
43128 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
43129 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
43130 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
43131 the `root' parameter to Linux.
43132
51500452 431332008-05-30 Robert Millan <rmh@aybabtu.com>
43134
43135 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
43136 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
43137 --fs_uuid with --fs-uuid.
43138 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
43139 all filesystems support them).
43140
811d3878 431412008-05-30 Robert Millan <rmh@aybabtu.com>
43142
43143 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 43144 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 43145
cab63c95 431462008-05-30 Robert Millan <rmh@aybabtu.com>
43147
43148 * util/grub.d/00_header.in: Remove obsolete comment referencing
43149 convert_system_path_to_grub_path().
43150 * util/update-grub.in: Likewise.
43151 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
43152 (convert_system_path_to_grub_path): Add a warning message explaining
43153 that this function is deprecated. Rely on is_path_readable_by_grub()
43154 for the readability checks.
43155 (font_path): Use is_path_readable_by_grub() for the readability
43156 check rather than convert_system_path_to_grub_path().
43157
972e2f7a 431582008-05-30 Robert Millan <rmh@aybabtu.com>
43159
43160 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
43161 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
43162 converting it first.
43163 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
43164 grub.cfg for access to font file, and afterwards call it again to set
43165 the root device.
43166
62191274 431672008-05-30 Robert Millan <rmh@aybabtu.com>
43168
43169 * commands/search.c (options): Add --fs_uuid option.
43170 (search_fs_uuid): New function.
43171 (grub_cmd_search): Fix --set argument passing.
43172 Use search_fs_uuid() when requested via --fs_uuid.
43173 (grub_search_init): Update help message.
43174 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
43175 and redeclare it as an array of 16-bit words.
43176 (grub_ext2_uuid): New function.
43177 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
43178 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
43179 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
43180 (GRUB_DEVICE_BOOT_UUID): New variables.
43181 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
43182 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
43183 whenever possible.
43184 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
43185 just assume `root' variable has the right value.
43186 * util/grub.d/10_linux.in: Likewise.
43187 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
43188 via PRINT_FS_UUID.
43189 (main): Recognise `-t fs_uuid' argument.
43190
01b73ec8 431912008-05-30 Robert Millan <rmh@aybabtu.com>
43192
43193 * util/biosdisk.c (map): Redefine structure to hold information
43194 about GRUB drive name.
fe6b695a 43195 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 43196 drive names.
43197 (call_hook): Remove.
43198 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
43199 member. Assume drive has partitions.
43200 (grub_util_biosdisk_open): Access device names via `.device' struct
43201 member.
43202 (open_device): Likewise.
43203 (find_drive): Likewise.
43204 (read_device_map): Adjust map[] usage to match the new struct
43205 definition. Don't check for duplicates (still possible, but not cheap
43206 anymore).
43207 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
43208 (make_device_name): Remove assumption of BIOS-like drive names.
43209
22f16596 432102008-05-30 Pavel Roskin <proski@gnu.org>
43211
43212 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
43213 compiling execute.c doesn't need grub_script.tab.h anymore.
43214 (normal/command.c_DEPENDENCIES): Likewise.
43215 (normal/function.c_DEPENDENCIES): Likewise.
43216 * conf/i386-ieee1275.rmk: Likewise.
43217 * conf/i386-linuxbios.rmk: Likewise.
43218 * conf/i386-pc.rmk: Likewise.
43219 * conf/powerpc-ieee1275.rmk: Likewise.
43220 * conf/sparc64-ieee1275.rmk: Likewise.
43221
528ad8f2 432222008-05-29 Pavel Roskin <proski@gnu.org>
43223
d1dff95d 43224 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
43225 when scanning metadata for volume group name.
43226
528ad8f2 43227 * include/grub/script.h: Don't include grub_script.tab.h. It's
43228 a generated file, which may only be included from the files with
43229 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
43230 use union YYSTYPE, as the later allows forward declaration.
43231 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
43232
47248e08 432332008-05-29 Robert Millan <rmh@aybabtu.com>
43234
43235 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
43236 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
43237 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
43238 (grub_console_checkkey): Add grub_dprintf() call to report unknown
43239 scan codes.
43240
ee632529 432412008-05-29 Robert Millan <rmh@aybabtu.com>
43242
43243 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
43244 control key combinations.
43245
eee96e08 432462008-05-29 Robert Millan <rmh@aybabtu.com>
43247
43248 * util/powerpc/ieee1275/grub-install.in: Move from here ...
43249 * util/ieee1275/grub-install.in: ... to here.
43250 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
43251 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
43252 (grub_install_SOURCES): Likewise.
43253
da9a6a94 432542008-05-29 Robert Millan <rmh@aybabtu.com>
43255
43256 * fs/affs.c: Update copyright year.
43257 * fs/ext2.c: Likewise.
43258 * fs/fshelp.c: Likewise.
43259 * fs/hfsplus.c: Likewise.
43260 * fs/ntfs.c: Likewise.
43261 * fs/xfs.c: Likewise.
43262 * include/grub/fshelp.h: Likewise.
43263 * util/grub-mkdevicemap.c: Likewise.
43264
12e65f3a 432652008-05-28 Robert Millan <rmh@aybabtu.com>
43266
43267 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
43268 might need to be fatfs to support some firmware implementations
43269 (e.g. OFW or EFI).
43270
23023641 432712008-05-28 Robert Millan <rmh@aybabtu.com>
43272
43273 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
43274 devices.
43275 * util/grub-mkdevicemap.c (get_mmc_disk_name)
43276 (make_device_map): Likewise.
43277
887d2619 432782008-05-20 Bean <bean123ch@gmail.com>
43279
43280 * fs/fshelp.c (grub_fshelp_map_block): New function.
43281 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
43282 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
43283
43284 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
43285 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
43286 (grub_fshelp_journal): New structure.
43287 (grub_fshelp_map_block): New function prototype.
43288 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
43289 (grub_fshelp_map_block): Likewise.
43290
43291 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
43292 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
43293 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
43294 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
43295 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
43296 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
43297 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
43298 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
43299 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
43300 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
43301 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
43302 (grub_ext2_sblock): New members for journal support.
43303 (grub_ext3_journal_header): New structure.
43304 (grub_ext3_journal_revoke_header): Likewise.
43305 (grub_ext3_journal_block_tag): Likewise.
43306 (grub_ext3_journal_sblock): Likewise.
43307 (grub_fshelp_node): New members logfile and journal.
43308 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
43309 grub_fshelp_map_block to get real block number.
43310 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
43311 number.
43312 (grub_ext2_read_inode): Likewise.
43313 (grub_ext3_get_journal): New function.
43314 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
43315 (grub_ext2_close): Release memory used by journal.
43316
43317 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
43318 (REISERFS_MAGIC_DESC_BLOCK): New macro.
43319 (grub_reiserfs_transaction_header): Renamed to
43320 grub_reiserfs_description_block, replace field data with real_blocks.
43321 (grub_reiserfs_commit_block): New structure.
43322 (grub_reiserfs_data): New member journal.
43323 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
43324 number.
43325 (grub_reiserfs_read_symlink): Likewise.
43326 (grub_reiserfs_iterate_dir): Likewise.
43327 (grub_reiserfs_open): Likewise.
43328 (grub_reiserfs_read): Likewise.
43329 (grub_reiserfs_get_journal): New function.
43330 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
43331 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
43332 using grub_reiserfs_get_journal.
43333 (grub_reiserfs_close): Release memory used by journal.
43334
43335 * fs/affs.c (grub_affs_read_block): Change block type to
43336 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
43337
43338 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
43339
43340 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
43341
43342 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
43343
43344 * fs/udf.c (grub_udf_read_block): Change block type to
43345 grub_disk_addr_t. Use type cast to avoid warning.
43346
43347 * fs/xfs.c (grub_xfs_read_block): Likewise.
43348
b7c6bed5 433492008-05-16 Christian Franke <franke@computer.org>
43350
43351 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
43352 to ensure that break with ESC will always work.
43353 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
43354 Remove ESC from keyboard queue.
43355
eedf167f 433562008-05-16 Christian Franke <franke@computer.org>
43357
43358 * util/biosdisk.c: [__CYGWIN__] Add includes.
43359 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
43360 (get_os_disk): Move variable declarations to OS specific
43361 parts to avoid warning.
43362 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
43363 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
43364 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
43365 Cygwin.
43366 * util/getroot.c: [__CYGWIN__] Add includes.
43367 (strip_extra_slashes): Fix "/" case.
43368 [__CYGWIN__] (get_win32_path): New function.
43369 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
43370 [__CYGWIN__] (find_root_device): Disable.
43371 [__CYGWIN__] (get_bootsec_serial): New function.
43372 [__CYGWIN__] (find_cygwin_root_device): Likewise.
43373 [__linux__] (grub_guess_root_device): Add early returns to simplify
43374 structure.
43375 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
43376 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
43377 check for Linux only.
43378
a079699e 433792008-05-15 Bean <bean123ch@gmail.com>
43380
43381 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
43382 keyboard hang problem in apple's intel mac.
43383
1cf4059a 433842008-05-09 Robert Millan <rmh@aybabtu.com>
43385
43386 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
43387 devices.
43388 * util/grub-mkdevicemap.c (get_virtio_disk_name)
43389 (make_device_map): Likewise.
43390 Reported by Aurelien Jarno <aurel32@debian.org>
43391
ed759390 433922008-05-07 Ian Campbell <ijc@hellion.org.uk>
43393
43394 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
43395 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
43396 (make_device_map): Output entries for xvd type disks.
43397
b56c4eaa 433982008-05-07 Robert Millan <rmh@aybabtu.com>
43399
43400 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
43401 devices.
43402 * util/grub-mkdevicemap.c (get_cciss_disk_name)
43403 (make_device_map): Likewise.
43404 Reported by Roland Dreier <rdreier@cisco.com>
43405
7f8866ed 434062008-05-07 Robert Millan <rmh@aybabtu.com>
43407
43408 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
43409 grub_strstr() call. Correct a few mistakes in failure path handling.
43410
b0346e0f 434112008-05-06 Robert Millan <rmh@aybabtu.com>
43412
43413 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43414 Do not print a trailing slash (therefore, the root directory is an
43415 empty string).
43416 (convert_system_path_to_grub_path): Do not remove trailing slash
43417 from make_system_path_relative_to_its_root() output.
43418
43419 * util/i386/pc/grub-install.in: Add trailing slash to output from
43420 make_system_path_relative_to_its_root().
43421
6cf12cbd 434222008-05-06 Robert Millan <rmh@aybabtu.com>
43423
43424 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
43425 ensures that output lines aren't intermangled with those sent to
43426 stderr (via grub_util_info()).
43427 * util/grub-probe.c (grub_refresh): Likewise.
43428 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
43429
0fbb3117 434302008-05-05 Christian Franke <franke@computer.org>
43431
43432 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
43433 Add Cygwin device names.
43434 (get_ide_disk_name) [__CYGWIN__]: Likewise.
43435 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
43436 (check_device): Return error instead of success on empty name.
43437 (make_device_map): Move label inside linux specific code to
43438 prevent compiler warning.
43439
8124cdb7 434402008-04-30 Robert Millan <rmh@aybabtu.com>
43441
43442 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
43443 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
43444 first boot option.
43445 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
43446
094c01d0 434472008-04-29 Robert Millan <rmh@aybabtu.com>
43448
43449 * docs/grub.cfg: New file (example GRUB configuration).
43450
f4b1fc02 434512008-04-26 Robert Millan <rmh@aybabtu.com>
43452
329ce2a5 43453 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
43454 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
43455 and `disk/ieee1275/nand.c'.
f4b1fc02 43456
25f16ec1 434572008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 43458
25f16ec1 43459 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
43460 i386-linuxbios.
43461
43462 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
43463 change the buffer size to 4096 for cdrom device.
43464
43465 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
43466 and nand.mod.
43467 (_linux_mod_SOURCES): New variable.
43468 (_linux_mod_CFLAGS): Likewise.
43469 (_linux_mod_LDFLAGS): Likewise.
43470 (linux_mod_SOURCES): Likewise.
43471 (linux_mod_CFLAGS): Likewise.
43472 (linux_mod_LDFLAGS): Likewise.
43473 (nand_mod_SOURCES): Likewise.
43474 (nand_mod_CFLAGS): Likewise.
43475 (nand_mod_LDFLAGS): Likewise.
43476
43477 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
43478 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
43479 type property. (nand device in olpc don't have this property)
43480
43481 * include/grub/disk.h (grub_disk_dev_id): New macro
43482 GRUB_DISK_DEVICE_NAND_ID.
43483
43484 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
43485 function prototype.
43486 (grub_rescue_cmd_initrd): Likewise.
43487
43488 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
43489 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
43490 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 43491
25f16ec1 43492 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
43493 GRUB_MACHINE_IEEE1275 is defined.
43494
43495 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
43496 Use NESTED_FUNC_ATTR attribute on the hook parameter.
43497
43498 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
43499 on nested function heap_init.
43500 (grub_upper_mem): New variable for i386-ieee1275.
43501 (grub_get_extended_memory): New function for i386-ieee1275.
43502 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
43503
43504 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
43505 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
43506 property.
f19dbdb7 43507
25f16ec1 43508 * loader/i386/ieee1275/linux.c: New file.
43509
43510 * loader/i386/ieee1275/linux_normal.c: New file.
43511
43512 * disk/ieee1275/nand.c: New file.
43513
e89d61e9 435142008-04-18 Thomas Schwinge <tschwinge@gnu.org>
43515
43516 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
43517 value.
43518 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
43519
602566f6 435202008-04-18 Robert Millan <rmh@aybabtu.com>
43521
43522 Restructures early code path on ieee1275 to unify grub_main() as
43523 the first C function that is executed in every platform.
43524
43525 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
43526 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
43527 cmain().
43528 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
43529 * kern/ieee1275/cmain.c (cmain): Rename to ...
43530 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
43531 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
43532 at the beginning.
43533
57490c2b 435342008-04-18 Robert Millan <rmh@aybabtu.com>
43535
43536 * util/update-grub.in: Fix syntax error when setting
43537 `GRUB_PRELOAD_MODULES'.
43538 Reported by Stephane Chazelas <stephane@artesyncp.com>
43539
1977517d 435402008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
43541
43542 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
43543 section into account, newer toolchains generate unique build ids
43544 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 43545 we want build ids to be preserved
1977517d 43546 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
43547 far from other sections don't cause the raw binary images grow
43548 size
43549
bfb1f1a2 435502008-04-15 Robert Millan <rmh@aybabtu.com>
43551
43552 * disk/lvm.c: Update copyright year.
43553 * kern/misc.c: Likewise.
43554
01979850 435552008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
43556
43557 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 43558 there is no memory left for physical volume name.
01979850 43559
0a1150e2 435602008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
43561
43562 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
43563 volume name mapping to support bigger than 9 character names properly.
43564
82ead3fe 435652008-04-13 Robert Millan <rmh@aybabtu.com>
43566
43567 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
43568 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
43569
e54a72f5 435702008-04-13 Christian Franke <franke@computer.org>
43571
43572 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
43573 to create a floppy emulation boot CD when non emulation mode
43574 does not work.
43575 Enable Joliet CD filesystem extension.
43576
9fe86034 435772008-04-13 Robert Millan <rmh@aybabtu.com>
43578
43579 * kern/misc.c (grub_strncat): Fix off-by-one error.
43580 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
43581
43582 * kern/env.c (grub_env_context_close): Clear current context, not
43583 previous one.
43584 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
43585
43586 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
43587
7ceeee39 435882008-04-13 Robert Millan <rmh@aybabtu.com>
43589
43590 Improve robustness when handling LVM.
43591
43592 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 43593 (and leave `*p' unmodified).
7ceeee39 43594 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
43595 through it.
43596 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
43597 iterating through it.
43598 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
43599 through it.
fe6b695a 43600 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 43601 when due) on each grub_lvm_getvalue() or grub_strstr() call.
43602 Don't assume `vg->pvs != NULL' when iterating through it.
43603
58cd3d85 436042008-04-13 Robert Millan <rmh@aybabtu.com>
43605
43606 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
43607 * genmk.rb (partmap): New variable.
43608 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
43609 (#{partmap}): New target rule.
43610 * genpartmaplist.sh: New file.
43611 * Makefile.in (pkglib_DATA): Add partmap.lst.
43612 (partmap.lst): New target rule.
43613 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
43614 modules (including all partition maps), instead of preloading them.
43615
78b51059 436162007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
43617
43618 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
43619 `linux-boot-prober' (if installed) to detect other operating
43620 systems which are installed on the computer and add them to
43621 the boot menu.
43622 * conf/common.rmk: Build and install 30_os-prober.
43623
a91627b4 436242008-04-12 Robert Millan <rmh@aybabtu.com>
43625
43626 * kern/powerpc/ieee1275/init.c: Move from here ...
43627 * kern/ieee1275/init.c: ... to here. Update all users.
43628
43629 * kern/powerpc/ieee1275/cmain.c: Move from here ...
43630 * kern/ieee1275/cmain.c: ... to here. Update all users.
43631
43632 * kern/powerpc/ieee1275/openfw.c: Move from here ...
43633 * kern/ieee1275/openfw.c: ... to here. Update all users.
43634
43635 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
43636 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
43637
322562ea 436382008-04-10 Pavel Roskin <proski@gnu.org>
43639
43640 * configure.ac: Always use "_cv_" in cache variables for
43641 compatibility with Autoconf 2.62.
43642
a02a73c5 436432008-04-07 Robert Millan <rmh@aybabtu.com>
43644
43645 Revert grub/machine/init.h addition by Pavel (since it breaks on
43646 i386-ieee1275 and others):
43647 * util/i386/pc/misc.c: Remove grub/machine/init.h.
43648 * util/powerpc/ieee1275/misc.c: Likewise.
43649
25c024b1 436502008-04-07 Robert Millan <rmh@aybabtu.com>
43651
43652 * util/grub-probe.c (probe): Improve error message.
43653
3cbd2f98 436542008-04-07 Robert Millan <rmh@aybabtu.com>
43655
43656 * util/biosdisk.c (read_device_map): Skip devices that don't exist
43657 (this prevents the presence of a bogus entry from ruining the whole
43658 thing).
43659
87a297bf 436602008-04-06 Pavel Roskin <proski@gnu.org>
43661
36747a62 43662 * util/biosdisk.c: Include grub/util/biosdisk.h.
43663 * util/grub-fstest.c (execute_command): Make static.
43664 * util/grub-mkdevicemap.c (check_device): Likewise.
43665 * util/i386/pc/misc.c: Include grub/machine/init.h.
43666 * util/powerpc/ieee1275/misc.c: Likewise.
43667 * util/lvm.c: Include grub/util/lvm.h.
43668 * util/misc.c: Include grub/kernel.h, grub/misc.h and
43669 grub/cache.h.
43670 * util/raid.c: Include grub/util/raid.h.
43671 (grub_util_getdiskname): Make static.
43672
87a297bf 43673 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
43674 grub_hostfs_fini(), as they are called from grub_init_all() and
43675 grub_fini_all() respectively. This fixes an infinite loop in
43676 grub-fstest due to double registration of hostfs.
43677 Reported by Christian Franke <Christian.Franke@t-online.de>
43678
f6ce7629 436792008-04-05 Pavel Roskin <proski@gnu.org>
43680
43681 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
43682 all 8 functions. Otherwise, probe function 0 only.
43683
070e49e4 436842008-04-04 Pavel Roskin <proski@gnu.org>
43685
8b088a4c 43686 * commands/lspci.c (grub_lspci_iter): Print the bus number
43687 correctly.
43688
4f657021 43689 * commands/lspci.c (grub_pci_classes): Fix typos.
43690 (grub_lspci_iter): Don't print func twice. Print vendor ID
43691 before device ID, as it's normally done.
43692
070e49e4 43693 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
43694 Fix signedness warnings.
43695 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
43696 Likewise.
43697 * util/ieee1275/get_disk_name.c: Include config.h so that
43698 _GNU_SOURCE is defined and getline() is declared. Mark an
43699 unused argument as such. Fix a signedness warning.
43700
ba7328dc 437012008-04-02 Pavel Roskin <proski@gnu.org>
43702
26887f22 43703 * genkernsyms.sh.in: Use more robust assignments for CC and
43704 srcdir. Quote srcdir.
43705 * gensymlist.sh.in: Likewise. Assert at the compile time that
43706 the symbol table is not empty.
43707
ba7328dc 43708 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
43709 * fs/cpio.c (grub_cpio_read): Likewise.
43710
0f582c6b 437112008-04-01 Pavel Roskin <proski@gnu.org>
43712
4b6e1995 43713 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
43714 * disk/host.c (grub_host_open): Likewise.
43715 * disk/loopback.c (grub_loopback_open): Likewise.
43716 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
43717 disk->id as in disk/host.c, not a multi-character constant.
43718
828a2768 43719 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
43720 later is obsolete, potentially dangerous and sets a bad example.
43721 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
43722 * util/misc.c (grub_util_get_image_size): Likewise.
43723
2bb4fb47 43724 * disk/loopback.c (options): Improve help for "--partitions".
43725
0f582c6b 43726 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
43727 options to align them with the short options, e.g. "echo -e".
43728
a33224e0 437292008-03-31 Bean <bean123ch@gmail.com>
43730
43731 * video/reader/png.c (grub_png_data): New member is_16bit and
43732 image_data.
43733 (grub_png_decode_image_header): Detect 16 bit png image.
43734 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
43735 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
43736 (grub_video_reader_png): Release memory occupied by image_data.
43737
43738 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
43739 4096 bytes.
43740 (grub_nfs_mount): Skip the test for sector per cluster.
43741
43742 * include/grub/ntfs.h (MAX_SPC): Removed.
43743
86cb4f54 437442008-03-31 Bean <bean123ch@gmail.com>
43745
43746 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
43747 (grub_probe_SOURCES): Add fs/afs.c.
43748 (grub_fstest_SOURCES): Likewise.
43749 (afs_mod_SOURCES): New variable.
43750 (afs_mod_CFLAGS): Likewise.
43751 (afs_mod_LDFLAGS): Likewise.
43752
43753 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
43754 (grub_emu_SOURCES): Likewise.
43755
43756 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43757
43758 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43759
43760 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43761
43762 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43763
43764 * fs/afs.c: New file.
43765
17c74c21 437662008-03-30 Pavel Roskin <proski@gnu.org>
43767
4cb68e89 43768 * disk/host.c: Include grub/misc.h to fix a warning.
43769 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
43770 warnings about implicit declarations.
43771
8790bb04 43772 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
43773 variable.
43774 * include/grub/i386/loader.h: Change declaration of
43775 grub_linux_boot() to match what grub_loader_set() expects.
43776 * util/getroot.c (grub_guess_root_device): Return const char* to
43777 fix a warning.
43778 * util/grub-probe.c (probe): Fix a warning about uninitialized
43779 abstraction_name variable.
43780 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
43781 second argument as unused to fix a warning.
43782
9a3f3296 43783 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
43784 missing grub_error() call.
43785
0ecef90d 43786 * util/update-grub_lib.in: Define datarootdir, since Autoconf
43787 2.60 and newer uses it to define datadir.
43788
0bf6d401 43789 * commands/sleep.c: Fix warning about implicit declaration.
43790 * disk/memdisk.c: Likewise.
43791 * loader/aout.c: Likewise.
43792 * loader/i386/bsd_normal.c: Likewise.
43793 * util/grub-probe.c: Likewise.
43794
7cdacf97 43795 * commands/i386/cpuid.c (has_longmode): Make static.
43796 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
43797 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
43798
17c74c21 43799 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
43800 GDT. This is more robust, as %ds can change.
43801 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
43802 calling real_to_prot().
43803 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
43804
80a3e68b 438052008-03-28 Pavel Roskin <proski@gnu.org>
43806
43807 * kern/i386/pc/startup.S: Assert that uncompressed functions
43808 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
43809 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
43810 code, as they push parts of the code (error handlers) beyond
43811 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
43812 code as correctness and size.
43813
77bcd272 438142008-03-28 Pavel Roskin <proski@gnu.org>
43815
43816 * kern/i386/pc/startup.S
43817 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
43818 data block address to the real mode, keep offset minimal. This
43819 works around a bug in AWARD BIOS on old Athlon systems, which
43820 makes CD detection hang.
43821
c5dfd43b 438222008-03-26 Pavel Roskin <proski@gnu.org>
43823
43824 * normal/color.c (grub_parse_color_name_pair): Make `name' a
43825 const.
43826 * include/grub/normal.h: Add grub_parse_color_name_pair()
43827 declaration.
43828
bf962df2 438292008-03-24 Bean <bean123ch@gmail.com>
43830
43831 * disk/i386/pc/biosdisk.c (cd_start): Removed.
43832 (cd_count): Removed.
43833 (cd_drive): New variable.
43834 (grub_biosdisk_get_drive): Don't check for (cdN) device.
43835 (grub_biosdisk_call_hook): Likewise.
43836 (grub_biosdisk_iterate): Change cdrom detection method.
43837 (grub_biosdisk_open): Replace cd_start with cd_drive.
43838 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
43839 detect cdrom device.
43840
43841 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
43842 Removed.
43843 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
43844 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
43845 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
43846 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
43847 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
43848 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
43849 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
43850 (grub_biosdisk_cdrp): New structure.
43851 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
43852
43853 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
43854
43855 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
43856 device.
43857
43858 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
43859 New function.
43860
68e7fc7a 438612008-03-20 Robert Millan <rmh@aybabtu.com>
43862
43863 Remove 2 TiB limit in ata.mod.
43864 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
43865 (grub_ata_dumpinfo): Print sector count with 0x%llx.
43866 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
43867 grub_uint64_t instead of grub_uint32_t.
43868
38ad2cf5 438692008-03-05 Bean <bean123ch@gmail.com>
43870
43871 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
43872 (grub_multiboot): Set boot device.
43873
43874 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
43875
2b89344e 438762008-03-02 Bean <bean123ch@gmail.com>
43877
43878 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
43879 symlink_buffer.
43880
87a95d1f 438812008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
43882
43883 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
43884 texinfo.tex.
43885
43886 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
43887 modified.
43888
43889 * docs/fdl.texi: New file.
f19dbdb7 43890
87a95d1f 43891 * docs/mdate-sh: New file. Copied from gnulib.
43892 * docs/texinfo.tex: Likewise.
43893
43894 * config.guess: Updated from gnulib.
43895 * install-sh: Likewise.
43896
7dc15d8e 438972008-02-28 Robert Millan <rmh@aybabtu.com>
43898
43899 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
43900 (aout_mod_SOURCES): New variable.
43901 (aout_mod_CFLAGS): Likewise.
43902 (aout_mod_LDFLAGS): Likewise.
43903
43904 * conf/i386-ieee1275.rmk: Likewise.
43905
b00ab696 439062008-02-28 Robert Millan <rmh@aybabtu.com>
43907
43908 * util/update-grub.in: Reorganise terminal validity check. Accept
43909 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
43910 Based on suggestion by Franklin PIAT.
43911
79ca2d78 439122008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
43913
43914 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
43915 function.
43916 * util/getroot.c (grub_util_check_block_device): New function that
43917 returns the given argument if it is a block device and returns NULL else.
43918 * util/grub-probe.c (argument_is_device): New variable.
43919 (probe): Promote device_name from a variable to an argument. Receive
43920 device_name from grub_util_check_block_device() if path is NULL and from
43921 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 43922 (options): Introduce new parameter '-d, --device'.
79ca2d78 43923 (main): Add description of the new parameter to the help screen.
43924 Rename path variable to argument. Set argument_is_device if the '-d'
43925 option is given. Pass argument to probe() depending on
43926 argument_is_device.
43927
0d16e571 439282008-02-24 Bean <bean123ch@gmail.com>
43929
43930 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
43931 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
43932 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
43933 (GRUB_ISO9660_VOLDESC_PART): Likewise.
43934 (GRUB_ISO9660_VOLDESC_END): Likewise.
43935 (grub_iso9660_primary_voldesc): New member escape.
43936 (grub_iso9660_data): New member joliet.
43937 (grub_iso9660_convert_string): New function.
43938 (grub_iso9660_mount): Detect joliet extension.
43939 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
43940 (grub_iso9660_iso9660_label): Likewise.
43941
43942 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
43943 (grub_setup_SOURCES): Add fs/udf.c.
43944 (grub_fstest_SOURCES): Likewise.
43945 (udf_mod_SOURCES): New variable.
43946 (udf_mod_CFLAGS): Likewise.
43947 (udf_mod_LDFLAGS): Likewise.
43948
43949 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
43950 (grub_emu_SOURCES): Likewise.
43951
43952 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43953
43954 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43955
43956 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43957
43958 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43959
43960 * fs/udf.c: New file.
43961
8a594a17 439622008-02-24 Robert Millan <rmh@aybabtu.com>
43963
43964 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
43965 (normal/lexer.c_DEPENDENCIES): New variables.
43966 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
43967 (normal/lexer.c_DEPENDENCIES): Likewise.
43968 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
43969 (normal/lexer.c_DEPENDENCIES): Likewise.
43970 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
43971 (normal/lexer.c_DEPENDENCIES): Likewise.
43972 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
43973 (normal/lexer.c_DEPENDENCIES): Likewise.
43974 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
43975 (normal/lexer.c_DEPENDENCIES): Likewise.
43976
2dc33c03 439772008-02-23 Robert Millan <rmh@aybabtu.com>
43978
43979 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
43980 since they were intended to be in hex. This didn't break previously
43981 because of a bug in gpt_partition_map_iterate() (see below).
43982
43983 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
43984 when checking the validity of GPT header.
43985 Remove `partno', since it always provides the same information as `i'.
43986
f6f4cfb0 439872008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
43988
43989 * include/grub/efi/time.h: Fix a wrong comment.
43990
79ff665f 439912008-02-19 Pavel Roskin <proski@gnu.org>
43992
43993 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
43994 message.
43995
d38e24c2 439962008-02-19 Bean <bean123ch@gmail.com>
43997
43998 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
43999 (aout_mod_SOURCES): New variable.
44000 (aout_mod_CFLAGS): Likewise.
44001 (aout_mod_LDFLAGS): Likewise.
44002 (_bsd_mod_SOURCES): New variable.
44003 (_bsd_mod_CFLAGS): Likewise.
44004 (_bsd_mod_LDFLAGS): Likewise.
44005 (bsd_mod_SOURCES): New variable.
44006 (bsd_mod_CFLAGS): Likewise.
44007 (bsd_mod_LDFLAGS): Likewise.
44008
44009 * include/grub/aout.h: New file.
44010
44011 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
44012
44013 * include/grub/i386/bsd.h: New file.
44014
44015 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
44016 to make it public.
44017
44018 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
44019 function is called, so that it's possible to change it inside the hook.
44020 (grub_elf64_load): Likewise.
44021 (grub_elf_file): Don't close the file if elf header is not found.
44022 (grub_elf_close): Close the file if grub_elf_file fails (The new
44023 grub_elf_file won't close it).
44024 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
44025 (grub_elf64_size): Likewise.
44026
44027 * kern/i386/loader.S (grub_unix_real_boot): New function.
44028
44029 * loader/aout.c: New file.
44030
44031 * loader/i386/bsd.c: New file.
44032
44033 * loader/i386/bsd_normal.c: New file.
44034
44035 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
44036
44037 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 44038 can test other formats.
d38e24c2 44039
b93bdb0f 440402008-02-19 Robert Millan <rmh@aybabtu.com>
44041
44042 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
44043 (grub_gpt_partition_type_empty): Redefine with macro from
44044 `<grub/gpt_partition.h>'.
44045 (gpt_partition_map_iterate): Adjust partition type comparison.
44046
44047 Export `entry' as partmap-specific `part.data' struct.
44048 (grub_gpt_header, grub_gpt_partentry): Move from here ...
44049
44050 * include/grub/gpt_partition.h (grub_gpt_header)
44051 (grub_gpt_partentry): ... to here (new file).
44052
44053 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
44054
44055 (grub_gpt_partition_type_bios_boot): New const variable, defined
44056 with macro from `<grub/gpt_partition.h>'.
44057
44058 (setup): Replace `first_start' with `embed_region', which keeps
44059 track of the embed region (and is partmap-agnostic).
44060
44061 Replace find_first_partition_start() with find_usable_region(),
44062 which finds a usable region for embedding using partmap-specific
44063 knowledge (supports PC/MSDOS and GPT).
44064
44065 Fix all assumptions that the embed region start at sector 1, using
44066 `embed_region.start' from now on. Similarly, use `embed_region.end'
44067 rather than `first_start' to calculate available size.
44068
44069 In grub_util_info() message, replace "into after the MBR" with an
44070 indication of the specific sector our embed region starts at.
44071
66cb40f6 440722008-02-19 Robert Millan <rmh@aybabtu.com>
44073
44074 * DISTLIST: Replace `commands/ieee1275/halt.c' and
44075 `commands/ieee1275/reboot.c' with `commands/halt.c' and
44076 `commands/reboot.c'.
44077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44078 (halt_mod_SOURCES): Likewise.
44079 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
44080 (halt_mod_SOURCES): Likewise.
44081
b7202015 440822008-02-17 Christian Franke <franke@computer.org>
44083
44084 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
44085
32b0fc49 440862008-02-17 Robert Millan <rmh@aybabtu.com>
44087
44088 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44089 set `first_start' to 0 for non-PC/MSDOS partition maps.
44090
aca63502 440912008-02-16 Robert Millan <rmh@aybabtu.com>
44092
44093 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
44094 do not assume partition map is PC/MSDOS before performing checks that
44095 are specific to that layout.
44096
0de8be86 440972008-02-13 Robert Millan <rmh@aybabtu.com>
44098
44099 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
44100 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
44101 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
44102
c3db8364 441032008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
44104
44105 * configure.ac: Only a cosmetic change on the handling of
44106 -fno-stack-protector.
44107
f714229e 441082008-02-12 Alexandre Boeglin <alex@boeglin.org>
44109
c3db8364 44110 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
44111 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
44112 reboot.c.
f714229e 44113 (grub_install_SOURCES): Add halt.mod and reboot.mod.
44114 (halt_mod_SOURCES): New variable.
44115 (halt_mod_CFLAGS): Likewise.
44116 (halt_mod_LDFLAGS): Likewise.
44117 (reboot_mod_SOURCES): Likewise.
44118 (reboot_mod_CFLAGS): Likewise.
44119 (reboot_mod_LDFLAGS): Likewise.
44120
c3db8364 44121 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
44122 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
44123 reboot.c.
f714229e 44124 (halt_mod_SOURCES): Likewise.
44125 (reboot_mod_SOURCES): Likewise.
44126
c3db8364 44127 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
44128 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 44129 (reboot_mod_SOURCES): Likewise.
44130
44131 * commands/i386/pc/reboot.c: merge this file ...
44132
44133 * commands/ieee1275/reboot.c: ... and this file ...
44134
44135 * commands/reboot.c: ... to this file.
c3db8364 44136 Add some precompiler directive to include the correct header for
44137 each machine.
f714229e 44138
44139 * commands/ieee1275/halt.c: move this file ...
44140
44141 * commands/halt.c: ... to here.
c3db8364 44142 Add some precompiler directive to include the correct header for
44143 each machine.
f714229e 44144
44145 * include/grub/efi/efi.h (grub_reboot): New function declaration.
44146 (grub_halt): Likewise.
44147
44148 * kern/efi/efi.c (grub_reboot): New function.
44149 (grub_halt): Likewise.
44150
c74493e0 441512008-02-12 Robert Millan <rmh@aybabtu.com>
44152
44153 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
44154 /dev (like it is done for /dev/mapper). This doesn't provide support
44155 for EVMS, but at least it is now easy to identify the problem when it
44156 arises.
44157
d0db4b04 441582008-02-11 Robert Millan <rmh@aybabtu.com>
44159
44160 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
44161 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
44162 comparing it with -1, not 0.
44163
bf748642 441642008-02-10 Robert Millan <rmh@aybabtu.com>
44165
44166 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
44167 `disk/lvm.c'.
44168 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44169 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
44170
44171 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
44172 `disk/lvm.c' to the end of the list.
44173 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44174 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44175
b5db202a 441762008-02-10 Robert Millan <rmh@aybabtu.com>
44177
44178 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
44179 grub_print_error() instead. This will let user know why we're entering
44180 rescue mode.
44181 Based on suggestions from Sam Morris.
44182
83abee31 441832008-02-10 Alexandre Boeglin <alex@boeglin.org>
44184
44185 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
44186 on remaining N args, instead of "--" arg N times.
44187
78d5a08b 441882008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
44189
44190 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
44191 (fill_with_default_glyph): Changed to use unknown_glyph for fill
44192 pattern for unknown glyphs.
44193
68807e5f 441942008-02-09 Robert Millan <rmh@aybabtu.com>
44195
44196 * configure.ac: Probe for `help2man'.
44197 * Makefile.in (builddir): New variable.
44198 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
44199 or otherwise add a few flags/options to it.
44200 (install-local): For every executable utility or script that is
44201 installed, invoke $(HELP2MAN) to install a manpage based on --help
44202 output.
44203
44204 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
44205 that it doesn't prevent --help from working in build tree.
44206
44207 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
44208 with `bug-grub@gnu.org'.
44209 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
44210 * util/update-grub.in (usage): New function.
44211 Implement proper argument check, with support for --help and --version
44212 (as well as existing -y).
44213
442142008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 44215
44216 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
44217 avoid overwriting previous output.
44218 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
44219
c1962162 442202008-02-09 Robert Millan <rmh@aybabtu.com>
44221
44222 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
44223 drawing the menu.
44224
3dac2e3f 442252008-02-09 Robert Millan <rmh@aybabtu.com>
44226
44227 * commands/sleep.c: New file.
44228 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
44229 (sleep_mod_SOURCES): New variable.
44230 (sleep_mod_CFLAGS): Likewise.
44231 (sleep_mod_LDFLAGS): Likewise.
44232
7a634e08 442332008-02-09 Robert Millan <rmh@aybabtu.com>
44234
44235 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
44236 situations in which we can deduce the RAID size and the superblock
44237 doesn't match it.
44238
b92f0c18 442392008-02-09 Robert Millan <rmh@aybabtu.com>
44240
44241 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
44242 and return a grub_diskmemberlist_t composed of LVM physical volumes.
44243 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
44244
44245 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
44246 and return a grub_diskmemberlist_t composed of physical array members.
44247 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
44248
44249 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
44250 prototype.
44251 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
44252 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
44253 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
44254
44255 * util/grub-probe.c (probe): Move partmap probing code from here ...
44256 (probe_partmap): ... to here.
44257 (probe): Use probe_partmap() once for the disk we're probing, and
44258 additionally, when such disk contains a memberlist() struct member,
44259 once for each disk that is contained in the structure returned by
44260 memberlist().
44261
91a4bf68 442622008-02-09 Robert Millan <rmh@aybabtu.com>
44263
44264 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
44265 environment variable to 'all' in order to obtain debug output from
44266 non-util/ code.
44267 * util/i386/pc/grub-setup.c (main): Likewise.
44268
a96f9caa 442692008-02-08 Robert Millan <rmh@aybabtu.com>
44270
44271 * disk/raid.c (grub_raid_scan_device): Check for
44272 `array->device[sb.this_disk.number]' rather than for
44273 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 44274 guaranteed to be accessible.
a96f9caa 44275
b37a9222 442762008-02-08 Robert Millan <rmh@aybabtu.com>
44277
44278 * disk/raid.c: Update copyright.
44279 * fs/cpio.c: Likewise.
44280 * include/grub/raid.h: Likewise.
44281 * loader/i386/pc/multiboot.c: Likewise.
44282 * util/hostfs.c: Likewise.
44283
5626aee1 442842008-02-08 Robert Millan <rmh@aybabtu.com>
44285
44286 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
44287 to a grub_disk_t array.
44288 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
44289 `device[x]'.
44290 (grub_raid_scan_device): Replace `device[x].name' accesses with
44291 `device[x]->name'. Simplify initialization of `array->device[x]'.
44292
554f0187 442932008-02-08 Robert Millan <rmh@aybabtu.com>
44294
44295 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
44296 grub_dprintf() calls.
44297 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
44298 error message.
44299
1ec8425d 443002008-02-07 Christian Franke <franke@computer.org>
44301
44302 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
44303 instead of fseek and ftell to support large files.
44304 (grub_hostfs_read): Likewise.
44305
f2156fda 443062008-02-07 Robert Millan <rmh@aybabtu.com>
44307
44308 Patch from Jeroen Dekkers.
44309 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 44310 failure, since successfully reading all array members might not be
f2156fda 44311 required.
44312
9216e0e7 443132008-02-06 Robert Millan <rmh@aybabtu.com>
44314
44315 * util/grub-probe.c (probe): Simplify partmap probing (with the
44316 assumption that the first word up to the underscore equals to
44317 the module name).
44318
b0dfd29a 443192008-02-06 Christian Franke <franke@computer.org>
44320
44321 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
44322 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
44323 last block of a cpio or tar stream.
44324 Check for "TRAILER!!!" instead of any empty data
44325 block to detect last block of a cpio stream.
44326 (grub_cpio_dir): Fix constness of variable np.
44327 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
44328 cpio or tar trailer is detected. This fixes a crash
44329 on open of a non existing file.
44330
c32865bf 443312008-02-05 Bean <bean123ch@gmail.com>
44332
44333 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
44334 address of entry.
44335 (grub_multiboot_load_elf64): Likewise.
44336 (grub_multiboot): Initialize mbi structure.
44337
44338 * util/grub-fstest.c: Don't include unused header file script.h.
44339
fe6b695a 44340 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 44341 of file.
44342 (grub_fstest_SOURCES): Likewise.
44343
409480b7 443442008-02-05 Robert Millan <rmh@aybabtu.com>
44345
44346 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
44347 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
44348 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
44349 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
44350
44351 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
44352 (translation_table): Replace hardcoded values with macros
44353 provided by `<grub/term.h>'.
44354
44355 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
44356 (keyboard_map): Correct/add a few values, with macros provided
44357 by `<grub/term.h>'.
44358 (keyboard_map_shift): Zero values that don't differ from their
44359 `keyboard_map' equivalents.
44360 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
44361 Discard the second scan code that is always sent by Caps lock.
44362 Only use `keyboard_map_shift' when it provides a non-zero value,
44363 otherwise fallback to `keyboard_map'.
44364
99fadbaa 443652008-02-04 Bean <bean123ch@gmail.com>
44366
44367 * Makefile.in (enable_grub_fstest): New variable.
44368
44369 * conf/common.rmk (grub_fstest_init.lst): New rule.
44370 (grub_fstest_init.h): Likewise.
44371 (grub_fstest_init.c): Likewise.
44372 (util/grub-fstest.c_DEPENDENCIES): New variable.
44373 (grub_fstest_SOURCES): Likewise.
44374
44375 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
44376
44377 * util/grub-fstest.c: New file.
44378
bf567c50 443792008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44380
44381 Make grub-setup handle a separate root device.
f19dbdb7 44382
bf567c50 44383 * util/i386/pc/grub-setup.c (setup): Always open the root device,
44384 so that the root device can be compared with the destination
44385 device.
44386 When embedding the core image, if the root and destination devices
44387 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
44388 0xFF.
44389 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 44390
9be6b98b 443912008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44392
44393 Add support for having a grub directory in a different drive. This
44394 is still only the data handling part.
f19dbdb7 44395
9be6b98b 44396 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
44397 (codestart): Save %dh in GRUB_ROOT_DRIVE.
44398 (grub_root_drive): New variable.
44399
44400 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
44401 instead of GRUB_BOOT_DRIVE to construct a device name. Set
44402 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
44403 as it was.
44404
44405 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
44406
44407 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
44408 macro.
44409 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
44410
44411 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
44412 is bogus, because PXE booting does not specify any drive
44413 correctly.
44414
44415 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
44416 am not sure if this is really correct.
44417
44418 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
44419 is always identical to the boot drive when booting from a CD.
44420
44421 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
44422 longer.
44423 (root_drive): New variable.
44424 (real_start): Unconditionally set %dh to ROOT_DRIVE.
44425 (setup_sectors): Push %dx right after popping it, because %dh will
44426 be modified later.
44427 (copy_buffer): Restore %dx.
44428
e0ca0677 444292008-02-03 Robert Millan <rmh@aybabtu.com>
44430
44431 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
44432 use `cdboot.img' for cdrom images.
44433
3b3f6629 444342008-02-03 Robert Millan <rmh@aybabtu.com>
44435
44436 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
44437 only setup gfxterm when `font' command has succeeded.
44438
d42b3672 444392008-02-03 Robert Millan <rmh@aybabtu.com>
44440
44441 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
44442 (grub_rescue_cmd_multiboot_loader)
44443 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
44444
fa370ea6 444452008-02-03 Pavel Roskin <proski@gnu.org>
44446
e0c5dacb 44447 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 44448 %edx and %esi from stack only after grub_gate_a20() is called.
44449 grub_gate_a20() clobbers %edx.
44450
f2a76e1d 444512008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
44452
44453 * configure.ac (AC_INIT): Bumped to 1.96.
44454
44455 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
44456 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
44457 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
44458 video/readers/png.c.
44459
90fd32d1 444602008-02-03 Bean <bean123ch@gmail.com>
9be665dd 44461
44462 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
44463 (cdboot_img_SOURCES): New variable.
44464 (cdboot_img_ASFLAGS): New variable.
44465 (cdboot_img_LDFLAGS): New variable.
44466
44467 * boot/i386/pc/cdboot.S: New file.
44468
44469 * disk/i386/pc/biosdisk.c (cd_start): New variable.
44470 (cd_count): Likewise.
44471 (grub_biosdisk_get_drive): Add support for cd device.
44472 (grub_biosdisk_call_hook): Likewise.
44473 (grub_biosdisk_iterate): Likewise.
44474 (grub_biosdisk_open): Likewise.
44475 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
44476 (grub_biosdisk_rw): Support reading from cd device.
44477 (GRUB_MOD_INIT): Iterate cd devices.
44478
44479 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
44480 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
44481 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
44482
44483 * kern/i386/pc/init.c (make_install_device): Check for cd device.
44484
4020aa53 444852008-02-02 Robert Millan <rmh@aybabtu.com>
44486
44487 * commands/read.c: New file.
44488 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
44489 (read_mod_SOURCES): New variable.
44490 (read_mod_CFLAGS): Likewise.
44491 (read_mod_LDFLAGS): Likewise.
44492
e03a1132 444932008-02-02 Robert Millan <rmh@aybabtu.com>
44494
44495 * normal/main.c (grub_normal_execute): Check for `menu->size' when
44496 determining whether menu has to be displayed.
44497
58c69220 444982008-02-02 Marco Gerards <marco@gnu.org>
44499
44500 * bus/pci.c: New file.
44501
44502 * include/grub/pci.h: Likewise.
44503
44504 * include/grub/i386/pc/pci.h: Likewise.
44505
44506 * commands/lspci.c: Likewise.
44507
44508 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
44509 `lspci.mod'.
44510 (pci_mod_SOURCES): New variable.
44511 (pci_mod_CFLAGS): Likewise.
44512 (pci_mod_LDFLAGS): Likewise.
44513 (lspci_mod_SOURCES): Likewise.
44514 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 44515 (lspci_mod_LDFLAGS): Likewise.
58c69220 44516
c004e1b4 445172008-02-02 Bean <bean123ch@gmail.com>
44518
44519 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
44520 (grub_ufs_get_file_block): Fix indirect block calculation problem.
44521
44522 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
44523 (grub_xfs_btree_node): New structure.
44524 (grub_xfs_btree_root): New structure.
44525 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
44526 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
44527 (GRUB_XFS_EXTENT_BLOCK): Likewise.
44528 (GRUB_XFS_EXTENT_SIZE): Likewise.
44529 (grub_xfs_read_block): Support btree format type.
44530 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
44531 Use directory block as basic unit.
44532
44533 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
44534
44535 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
44536 __attribute__ ((__regparm__ (1))).
44537
f95562bf 445382008-02-01 Robert Millan <rmh@aybabtu.com>
44539
44540 Correct a mistake in previous commit.
44541
44542 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
44543 top.
44544 (normal/command.c_DEPENDENCIES): New variable.
44545
7d31f41f 445462008-02-01 Robert Millan <rmh@aybabtu.com>
44547
44548 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
44549 top.
44550 (normal/command.c_DEPENDENCIES): New variable.
44551 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
44552 * conf/i386-ieee1275.rmk: Likewise.
44553 * conf/i386-linuxbios.rmk: Likewise.
44554 * conf/i386-pc.rmk: Likewise.
44555 * conf/sparc64-ieee1275.rmk: Likewise.
44556 * conf/powerpc-ieee1275.rmk: Likewise.
44557 (grub_emu_SOURCES): Add `fs/fshelp.c'.
44558
44559 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
44560
60b6be74 445612008-02-01 Robert Millan <rmh@aybabtu.com>
44562
44563 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
44564 call at beginning of function.
44565
078522ab 445662008-01-31 Pavel Roskin <proski@gnu.org>
44567
44568 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 44569 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
44570 (grub_mkrescue_SOURCES): Likewise.
078522ab 44571 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
44572
ccaa8a5f 445732008-01-30 Robert Millan <rmh@aybabtu.com>
44574
44575 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
44576 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
44577 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
44578 (grub_probe_SOURCES): ... to here.
44579
44580 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
44581 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
44582 * conf/i386-ieee1275.rmk: Likewise.
44583 * conf/i386-linuxbios.rmk: Likewise.
44584 * conf/powerpc-ieee1275.rmk: Likewise.
44585
ae5a9cd7 445862008-01-30 Tristan Gingold <gingold@free.fr>
44587
44588 * kern/rescue.c: Silently accept empty lines.
44589
70bc2ef2 445902008-01-29 Bean <bean123ch@gmail.com>
44591
44592 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
44593 (real_code_2): Code cleanup and change comment style.
44594 (move_memory): Avoid using 32-bit address mode.
44595
6a4d50ea 445962008-01-29 Bean <bean123ch@gmail.com>
44597
44598 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
44599 (png_mod_SOURCES): New variable.
44600 (png_mod_CFLAGS): Likewise.
44601 (png_mod_LDFLAGS): Likewise.
44602
44603 * video/readers/png.c: New file.
44604
11cc30ac 446052008-01-28 Robert Millan <rmh@aybabtu.com>
44606
44607 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
44608 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
44609 `ifndef GRUB_MOD_GAP' hack.
44610 * util/elf/grub-mkimage.c (add_segments): Likewise.
44611
3abc589f 446122008-01-27 Robert Millan <rmh@aybabtu.com>
44613
44614 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
44615 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 44616 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 44617
e1907778 446182008-01-27 Robert Millan <rmh@aybabtu.com>
44619
44620 Get grub-emu to build again (including parallel builds).
44621
44622 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
44623 Split into ...
44624 (util/grub-emu.c_DEPENDENCIES): ... this, ...
44625 (normal/execute.c_DEPENDENCIES): ... this, ...
44626 (grub-emu_DEPENDENCIES): ... and this.
44627
44628 * conf/i386-efi.rmk: Likewise.
44629 * conf/i386-linuxbios.rmk: Likewise.
44630 * conf/i386-ieee1275.rmk: Likewise.
44631 * conf/powerpc-ieee1275.rmk: Likewise.
44632 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
44633
2216b101 446342008-01-27 Robert Millan <rmh@aybabtu.com>
44635
44636 * NEWS: Add a few items.
44637
f75172d9 446382008-01-27 Robert Millan <rmh@aybabtu.com>
44639
44640 Fix parallel builds with grub-emu. Based on earlier commit for
44641 grub-probe and grub-setup.
44642
44643 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44644 (util/grub-emu.c_DEPENDENCIES): ... this.
44645 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44646 (util/grub-emu.c_DEPENDENCIES): ... this.
44647 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44648 (util/grub-emu.c_DEPENDENCIES): ... this.
44649 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44650 (util/grub-emu.c_DEPENDENCIES): ... this.
44651 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
44652 (util/grub-emu.c_DEPENDENCIES): ... this.
44653
3f51de77 446542008-01-27 Pavel Roskin <proski@gnu.org>
44655
44656 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
44657 to create a gap between _end and the modules added to the image
44658 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
44659 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
44660 * util/elf/grub-mkimage.c (add_segments): Likewise.
44661
2033f53e 446622008-01-26 Pavel Roskin <proski@gnu.org>
44663
44664 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
44665 just return an error.
44666
22da1f6f 446672008-01-26 Bean <bean123ch@gmail.com>
44668
44669 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
44670 (grub_reiserfs_get_item): Save offset of the next item.
44671 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
44672
2a9525e6 446732008-01-25 Robert Millan <rmh@aybabtu.com>
44674
44675 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
44676 make all filesystem sources appear together (possibly fixing omissions
44677 while at it).
44678 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44679 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44680 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44681 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44682
44683 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
44684 add `kern/file.c'.
44685 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
44686 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
44687 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
44688 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
44689
44690 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
44691 (probe): Add a sanity check to make sure of our ability to read
44692 requested files when probing for filesystem type.
44693
44694 * genmk.rb: Update copyright year (2007).
44695
44696 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
44697 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
44698 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
44699 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
44700 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
44701 : Remove function prototypes.
44702
b95f71b5 447032008-01-25 Robert Millan <rmh@aybabtu.com>
44704
44705 Revert my previous commits (based on wrong assumption of how grub_errno
44706 works).
44707
fe6b695a 44708 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 44709 * kern/file.c (grub_file_open): Likewise.
44710
d08bbb49 447112008-01-24 Pavel Roskin <proski@gnu.org>
44712
44713 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
44714 that hang if GRUB tries to setup colors.
44715 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
44716 colors for firmwares that don't support it.
44717 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
44718 Recognize Open Hack'Ware, set flags to work around its
44719 limitations.
44720
605e36ed 447212008-01-24 Robert Millan <rmh@aybabtu.com>
44722
44723 * kern/file.c (grub_file_open): Do not account previous failures of
44724 unrelated functions when grub_errno is checked for.
44725 Reported by Oleg Strikov.
44726
bac332a1 447272008-01-24 Bean <bean123ch@gmail.com>
44728
44729 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
44730 (grub_ufs_sblock): New member volume name.
44731 (grub_ufs_find_file): Fix string copy bug.
44732 (grub_ufs_label): Implement this function properly.
44733
44734 * fs/hfs.c (grub_hfs_cnid_type): New enum.
44735 (grub_hfs_iterate_records): Use the correct file number for extents
44736 and catalog file. Fix problem in next index calculation.
44737 (grub_hfs_find_node): Replace recursive function call with loop.
44738 (grub_hfs_iterate_dir): Replace recursive function call with loop.
44739
15c80c09 447402008-01-23 Robert Millan <rmh@aybabtu.com>
44741
44742 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
44743 `<grub/symbol.h>' and `<grub/multiboot.h>'.
44744 (grub_multiboot2_real_boot): New function prototype.
44745
44746 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
44747 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
44748
44749 * kern/i386/ieee1275/init.c (grub_os_area_addr)
44750 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
44751
305338fd 447522008-01-23 Robert Millan <rmh@aybabtu.com>
44753
44754 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
44755 #ifdef'ed out grub_printf().
44756
3ea52685 447572008-01-23 Robert Millan <rmh@aybabtu.com>
44758
44759 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
44760 grub_dprintf calls, since they make "debug=all" mode unusable.
44761 (grub_console_checkkey): Likewise.
44762
5882ae4b 447632008-01-23 Robert Millan <rmh@aybabtu.com>
44764
44765 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
44766 `term/i386/pc/at_keyboard.c'.
44767 (pkglib_MODULES): Add `serial.mod'.
44768 (serial_mod_SOURCES): New variable.
44769 (serial_mod_CFLAGS): Likewise.
44770 (serial_mod_LDFLAGS): Likewise.
44771
44772 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
44773 `<grub/powerpc/ieee1275/console.h>'.
44774 (grub_keyboard_controller_init): New function prototype.
44775 (grub_console_checkkey): Likewise.
44776 (grub_console_getkey): Likewise.
44777
44778 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
44779 keyboard on i386.
44780
44781 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
44782 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
44783
06ab5303 447842008-01-23 Robert Millan <rmh@aybabtu.com>
44785
44786 * kern/i386/pc/init.c (make_install_device): When memdisk image is
44787 present, "(memdisk)/boot/grub" becomes the default prefix.
44788
44789 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
44790 a memdisk tarball with all the modules. Add --overlay=DIR option that
44791 allows users to overlay additional files into the image.
44792
dbb475a4 447932008-01-23 Robert Millan <rmh@aybabtu.com>
44794
44795 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
44796 and `machine/memory.h'.
44797 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
44798 (_multiboot_mod_SOURCES): New variable.
44799 (_multiboot_mod_CFLAGS): Likewise.
44800 (_multiboot_mod_LDFLAGS): Likewise.
44801 (multiboot_mod_SOURCES): Likewise.
44802 (multiboot_mod_CFLAGS): Likewise.
44803 (multiboot_mod_LDFLAGS): Likewise.
44804
44805 * include/grub/i386/ieee1275/loader.h: New file.
44806
44807 * include/grub/i386/ieee1275/machine.h: Likewise.
44808
44809 * include/grub/i386/ieee1275/memory.h: Likewise.
44810
44811 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
44812 variable declaration.
44813 (grub_os_area_size): Likewise.
44814
44815 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
44816 (grub_lower_mem, grub_upper_mem): New variables.
44817 (grub_stop_floppy): New function (just to make
44818 grub_multiboot2_real_boot() happy).
44819
44820 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
44821 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
44822 (grub_stop): New function.
44823 Include `"../realmode.S"' and `"../loader.S"'.
44824
44825 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
44826 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
44827
44828 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
44829 rely on grub_multiboot2_real_boot() for final boot.
44830
25638629 448312008-01-22 Robert Millan <rmh@aybabtu.com>
44832
44833 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
44834 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
44835 device that doesn't look like an SD card.
44836 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
44837 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
44838 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
44839 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
44840 found.
44841
9dad816d 448422008-01-22 Robert Millan <rmh@aybabtu.com>
44843
44844 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
44845 avoid claiming over our own code.
44846
34842f2d 448472008-01-22 Bean <bean123ch@gmail.com>
44848
44849 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
44850 (jpeg_mod_SOURCES): New variable.
44851 (jpeg_mod_CFLAGS): Likewise.
44852 (jpeg_mod_LDFLAGS): Likewise.
44853
44854 * video/readers/jpeg.c : New file.
44855
44023a28 448562008-01-22 Bean <bean123ch@gmail.com>
44857
44858 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
44859 there are no more items.
44860
bc2d8ac6 448612008-01-21 Robert Millan <rmh@aybabtu.com>
44862
44863 * kern/mm.c (grub_mm_init_region): Improve debug message.
44864
261bd4bc 448652008-01-21 Robert Millan <rmh@aybabtu.com>
44866
44867 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
44868 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
44869 address.
44870 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
44871 a C macro.
44872 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
44873 Indicates start of upper memory.
44874 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
44875 (generate_image): Abort when image size is big enough to corrupt
44876 upper memory.
44877
44878 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
44879 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
44880 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
44881 instead of hardcoding 0xA0000.
44882 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
44883 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
44884 instead of hardcoding 0xA0000.
44885
f970b55e 448862008-01-21 Robert Millan <rmh@aybabtu.com>
44887
44888 * disk/memdisk.c (memdisk_size): New variable.
44889 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
44890 `memdisk_size'.
44891 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
44892 image to dynamic memory.
44893 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
44894 `memdisk_size'. Free memdisk block.
44895
1a8b0526 448962008-01-21 Robert Millan <rmh@aybabtu.com>
44897
44898 Fix detection of very small filesystems (like tar).
44899
44900 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
44901 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
44902 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
44903 a problem with this disk).
44904
6e9b4aab 449052008-01-21 Robert Millan <rmh@aybabtu.com>
44906
44907 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
44908 on grub_biosdisk_rw_standard() error.
44909
0d8837b2 449102008-01-21 Robert Millan <rmh@aybabtu.com>
44911
44912 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
44913 recent changes.
44914 * kern/elf.c: Likewise.
44915 * kern/ieee1275/ieee1275.c: Likewise.
44916 * kern/powerpc/ieee1275/openfw.c: Likewise.
44917 * term/ieee1275/ofconsole.c: Likewise.
44918
ffd36e34 449192008-01-21 Robert Millan <rmh@aybabtu.com>
44920
44921 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
44922
3f0093d0 44923 * include/grub/kernel.h (grub_arch_memdisk_addr)
44924 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 44925
3f0093d0 44926 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
44927 (grub_arch_memdisk_size): ... to here.
ffd36e34 44928
6c391b21 449292008-01-21 Robert Millan <rmh@aybabtu.com>
44930
44931 Mostly based on bugfix from Bean.
44932
44933 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
44934 attribute with hook() parameter.
44935 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
44936 declaration.
44937 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
44938 attribute with hook() parameter.
44939 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
44940 declaration.
44941
55a581dc 449422008-01-21 Robert Millan <rmh@aybabtu.com>
44943
44944 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
44945 (pkglib_MODULES): Add `memdisk.mod'.
44946 (memdisk_mod_SOURCES): New variable.
44947 (memdisk_mod_CFLAGS): Likewise.
44948 (memdisk_mod_LDFLAGS): Likewise.
44949
44950 * disk/memdisk.c: New file.
44951
44952 * include/grub/disk.h (grub_disk_dev_id): Add
44953 `GRUB_DISK_DEVICE_MEMDISK_ID'.
44954
44955 * include/grub/i386/pc/kernel.h
44956 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
44957 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
44958 (grub_kernel_image_size): New variable declaration.
44959 (grub_total_module_size): Likewise.
44960 (grub_memdisk_image_size): Likewise.
44961
44962 * include/grub/i386/pc/memory.h
44963 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
44964
44965 * include/grub/kernel.h: Include `<grub/symbol.h>'.
44966 (grub_arch_memdisk_addr): New variable declaration.
44967 (grub_arch_memdisk_size): Likewise.
44968
44969 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
44970 (grub_arch_memdisk_size): Likewise.
44971
44972 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
44973 (codestart): Replace hardcoded `0x100000' with
44974 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
44975
44976 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
44977 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
44978 not NULL, append the contents of the file it refers to, at the end of
44979 the compressed kernel image. Initialize `grub_memdisk_image_size'
44980 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
44981 (options): Add "memdisk"|'m' option.
44982 (main): Parse --memdisk|-m option, and pass user-provided path as
44983 parameter to generate_image().
44984
3d7f54c9 449852008-01-20 Robert Millan <rmh@aybabtu.com>
44986
44987 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
44988 grub_dprintf() calls from here ...
44989 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
44990
0bf74728 449912008-01-20 Robert Millan <rmh@aybabtu.com>
44992
44993 Fix detection of "real mode" when /options/real-mode? doesn't exist.
44994
44995 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
44996 declaration.
44997 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
44998 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
44999 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 45000 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 45001 property).
45002 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
45003 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
45004
33bf70a7 450052008-01-19 Robert Millan <rmh@aybabtu.com>
45006
fe6b695a 45007 Get rid of confusing function (superseded by
33bf70a7 45008 `grub_ieee1275_get_integer_property')
45009 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
45010 prototype.
45011 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
45012 function.
45013 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
45014 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 45015 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 45016
e2da7d26 450172008-01-19 Robert Millan <rmh@aybabtu.com>
45018
45019 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
45020 command after "shut-down", since implementations differ on which
45021 the command for halt is.
45022
59f1fd8d 450232008-01-19 Robert Millan <rmh@aybabtu.com>
45024
45025 * include/grub/i386/linuxbios/console.h: Add header protection.
45026 (grub_keyboard_controller_init): New function prototype.
45027 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
45028 (KEYBOARD_COMMAND_READ): Likewise.
45029 (KEYBOARD_COMMAND_WRITE): Likewise.
45030 (KEYBOARD_SCANCODE_SET1): Likewise.
45031 (grub_keyboard_controller_write): New function.
45032 (grub_keyboard_controller_read): Likewise.
45033 (grub_keyboard_controller_init): Likewise.
45034
45035 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
45036 (grub_console_init): On coreboot/LinuxBIOS, call
45037 grub_keyboard_controller_init().
45038
5f5a7c15 450392008-01-19 Robert Millan <rmh@aybabtu.com>
45040
45041 PowerPC changes provided by Pavel Roskin.
45042
45043 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
45044 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
45045 don't rely on cmain() doing it.
45046 * kern/i386/ieee1275/startup.S (_start): Store %eax in
45047 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
45048
1210e168 450492008-01-16 Robert Millan <rmh@aybabtu.com>
45050
45051 * include/grub/i386/linuxbios/memory.h
45052 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
45053 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
45054 receive `table_header' as argument. Instead, probe for it in the
45055 known memory ranges where it can be present.
45056 (grub_available_iterate): Do not pass a fixed `table_header' address
45057 to grub_linuxbios_table_iterate().
45058
3d04eab8 450592008-01-15 Robert Millan <rmh@aybabtu.com>
45060
45061 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
45062 * conf/i386-ieee1275.rmk: New file.
45063 * include/grub/i386/ieee1275/console.h: Likewise.
45064 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
45065 * include/grub/i386/ieee1275/kernel.h: Likewise.
45066 * include/grub/i386/ieee1275/time.h: Likewise.
45067 * kern/i386/ieee1275/init.c: Likewise.
45068 * kern/i386/ieee1275/startup.S: Likewise.
45069
d1bc1b73 450702008-01-15 Robert Millan <rmh@aybabtu.com>
45071
45072 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
45073 when pointers are 32-bit (but still do set it to one when they are
45074 64-bit).
45075
66a65807 450762008-01-15 Robert Millan <rmh@aybabtu.com>
45077
45078 * include/grub/ieee1275/ieee1275.h
45079 (grub_ieee1275_get_integer_property): New function prototype.
45080
45081 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
45082 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 45083 grub_ieee1275_get_property() to handle endianness.
66a65807 45084
45085 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
45086 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 45087 where appropriate.
66a65807 45088 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
45089 (grub_map): Likewise.
45090 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
45091
a83ccafd 450922008-01-15 Bean <bean123ch@gmail.com>
45093
45094 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
45095 (grub_script_execute_cmdline): Reset grub_errno.
45096
45097 * normal/main.c (read_config_file): Reset grub_errno.
45098
45099 * normal/parse.y (script_init): New.
45100 (script): Move function and menuentry here.
45101 (delimiter): New.
45102 (command): Add delimiter at the end of command.
45103 (commands): Adjust to match the new command.
45104 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 45105 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 45106 (if): Use the new commands.
45107
45108 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
45109
df6ecfc6 451102008-01-15 Robert Millan <rmh@aybabtu.com>
45111
45112 * normal/menu.c (run_menu): Move timeout message from here ...
45113 (print_timeout): ... to here.
45114 (run_menu): Use print_timeout() once during initial draw to print
45115 the whole message, and again in every clock tick to update only
45116 the number of seconds.
45117
87ae25eb 451182008-01-15 Robert Millan <rmh@aybabtu.com>
45119
45120 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
45121 actual size of `available' from grub_ieee1275_get_property(), and
45122 restrict parsing to that bound.
45123
47bf09a4 451242008-01-15 Christian Franke <franke@computer.org>
45125
45126 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
45127 (argp_program_version): Remove variable.
45128 (argp_program_bug_address): Likewise.
45129 (options): Convert from struct argp_option to struct option.
45130 (struct arguments): Remove.
45131 (parse_opt): Remove.
45132 (usage): New function.
45133 (main): Replace struct args members by simple variables.
45134 Replace argp_parse() by getopt_long().
45135 Add switch to evaluate options.
45136 Add missing "(...)" around root_dev in prefix string.
45137
c86f1469 451382008-01-14 Robert Millan <rmh@aybabtu.com>
45139
45140 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
45141 for grub_ieee1275_exit(), in order to improve portability.
45142
e622c559 451432008-01-14 Robert Millan <rmh@aybabtu.com>
45144
45145 * util/grub.d/10_linux.in (prefix): Define.
45146 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
45147
44cb1ec8 451482008-01-13 Pavel Roskin <proski@gnu.org>
45149
45150 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
45151 grub_errno if no errors have been detected.
45152
1eb8c802 451532008-01-12 Robert Millan <rmh@aybabtu.com>
45154
45155 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
45156 (grub_util_get_dev_abstraction): New function prototype.
45157
45158 * util/getroot.c: Include `<grub/util/getroot.h>'
45159 (grub_util_get_grub_dev): Move detection of abstraction type to ...
45160 (grub_util_get_dev_abstraction): ... here (new function).
45161
45162 * util/grub-probe.c: Convert PRINT_* to an enum. Add
45163 `PRINT_ABSTRACTION'.
45164 (probe): Probe for abstraction type when requested.
45165 (main): Understand `--target=abstraction'.
45166
45167 * util/i386/efi/grub-install.in: Add abstraction module to core
45168 image when it is found to be necessary.
45169 * util/i386/pc/grub-install.in: Likewise.
45170 * util/powerpc/ieee1275/grub-install.in: Likewise.
45171
45172 * util/update-grub_lib.in (font_path): Return system path without
45173 converting to GRUB path.
45174 * util/update-grub.in: Convert system path returned by font_path()
45175 to a GRUB path. Use `grub-probe -t abstraction' to determine what
45176 abstraction module is needed for loading fonts (if any). Export
45177 that as `GRUB_PRELOAD_MODULES'.
45178 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
45179 insmod commands).
45180
52bd3de9 451812008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
45182
45183 Remove some unused code from reiserfs.
f19dbdb7 45184
52bd3de9 45185 * fs/reiserfs.c (struct grub_reiserfs_key)
45186 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
45187 (struct grub_reiserfs_node_body): Removed.
45188 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45189 Likewise.
45190 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45191 Likewise.
45192 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45193 Likewise.
45194 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
45195 Likewise.
45196 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
45197 Likewise.
45198 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
45199 Likewise.
45200 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45201 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45202 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
45203
2f80039d 452042008-01-10 Robert Millan <rmh@aybabtu.com>
45205
45206 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
45207 Determines if a file is garbage left by packaging systems, etc.
45208 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
45209 for processing /etc/grub.d scripts.
45210 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
45211 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
45212 as a condition for processing Linux images.
45213
87888032 452142008-01-10 Pavel Roskin <proski@gnu.org>
45215
45216 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
45217 to compile reiserfs.c on PowerPC.
45218
7e54fced 452192008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 45220
45221 * kern/device.c (grub_device_iterate): Do not abort device iteration
45222 when one of the devices cannot be opened.
45223 * kern/disk.c (grub_disk_open): Do not account previous failures of
45224 unrelated functions when grub_errno is checked for.
45225
5aa541e6 452262008-01-08 Robert Millan <rmh@aybabtu.com>
45227
45228 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
45229 `! grub_linux_is_bzimage', change order of address comparison to make
45230 it more intuitive, and improve "too big zImage" error message.
45231
7076340d 452322008-01-08 Robert Millan <rmh@aybabtu.com>
45233
45234 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
45235 `$(update-grub_DATA)'.
45236 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
45237 targets.
45238
9ca70333 452392008-01-07 Robert Millan <rmh@aybabtu.com>
45240
45241 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
45242 which instruction is modified by grub-setup during installation
45243 (since it wasn't obvious by only looking at this file).
45244
38ccf575 452452008-01-07 Robert Millan <rmh@aybabtu.com>
45246
45247 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
45248 listing actual TODO items.
45249
f5db4291 452502008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
45251
868967cf 45252 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
45253 correctly.
45254 (grub_reiserfs_get_key_offset): Likewise.
45255 (grub_reiserfs_set_key_offset): Likewise.
45256 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 45257 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 45258
45259 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
45260 better to remove the bitfield version completely.
f19dbdb7 45261
868967cf 452622008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 45263
f5db4291 45264 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
45265 allocated from the heap, due to the fshelp implementation.
45266 (grub_reiserfs_dir): Free NODE, due to the same reason.
45267
492e6d9d 452682008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
45269
45270 Mostly from Vincent Pelletier:
f19dbdb7 45271
492e6d9d 45272 * fs/reiserfs.c: New file.
f19dbdb7 45273
492e6d9d 45274 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
45275 (reiserfs_mod_SOURCES): New variable.
45276 (reiserfs_mod_CFLAGS): Likewise.
45277 (reiserfs_mod_LDFLAGS): Likewise.
45278
45279 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
45280 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
45281 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
45282 normal/color.c.
45283
9ce3e7c1 452842008-01-06 Robert Millan <rmh@aybabtu.com>
45285
45286 * normal/color.c: Remove `<grub/env.h>'.
45287
f3b58148 452882008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
45289
45290 * include/grub/normal.h: Include <grub/env.h>.
45291
7ac3bcfa 452922008-01-05 Robert Millan <rmh@aybabtu.com>
45293
45294 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
45295 usage example with `(hd0,1)'.
fb358190 45296 Reported by Samuel Thibault.
7ac3bcfa 45297
c8ee99d7 452982008-01-05 Robert Millan <rmh@aybabtu.com>
45299
45300 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
45301 (grub_linux_boot_zimage): Rename to ...
45302 (grub_linux_boot): ... this.
45303 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
45304 (grub_linux_boot_zimage): Conditionalize zImage copy.
45305
45306 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
45307 (grub_linux_boot_bzimage): Remove prototype.
45308 (grub_linux_boot_zimage): Rename to ...
45309 (grub_linux_boot): ... this.
45310
45311 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
45312 (grub_linux_boot): Remove function.
45313
0ece25b1 453142008-01-05 Robert Millan <rmh@aybabtu.com>
45315
45316 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
45317 (grub_env_write_color_highlight): Likewise.
45318 (grub_wait_after_message): Likewise.
45319
45320 * normal/color.c: New file.
45321
45322 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45323 (normal_mod_DEPENDENCIES): Likewise.
45324
45325 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45326 (normal_mod_DEPENDENCIES): Likewise.
45327
45328 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45329 (normal_mod_DEPENDENCIES): Likewise.
45330
45331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
45332 (normal_mod_DEPENDENCIES): Likewise.
45333
45334 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
45335 for waiting after a message is printed.
45336 * normal/main.c (read_config_file): Likewise.
45337 (grub_normal_init): Register grub_env_write_color_normal() and
45338 grub_env_write_color_highlight() hooks. Mark `color_normal' and
45339 `color_highlight' variables as global.
45340
45341 * normal/menu.c (grub_wait_after_message): New function.
45342 (grub_color_menu_normal): New variable. Replaces ...
45343 (GRUB_COLOR_MENU_NORMAL): ... this macro.
45344 (grub_color_menu_highlight): New variable. Replaces ...
45345 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
45346 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
45347 `GRUB_TERM_COLOR_STANDARD'.
45348 (print_message): Use `grub_setcolorstate' to reload colors. Rename
45349 `normal_code' and `highlight_code' to `old_color_normal' and
45350 `old_color_highlight', respectively.
45351 (grub_menu_init_page): Update colors when drawing the menu, based on
45352 `menu_color_normal' and `menu_color_highlight' variables.
45353 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
45354 a message is printed.
45355
182dd4e5 453562008-01-05 Robert Millan <rmh@aybabtu.com>
45357
45358 * kern/env.c (grub_env_context_open): Propagate hooks for global
45359 variables to new context.
45360
45361 * kern/main.c (grub_set_root_dev): Export `root' variable.
45362
ddf8f6ad 453632008-01-05 Robert Millan <rmh@aybabtu.com>
45364
45365 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 45366 discs unconditionally, since udev and others have options to provide
ddf8f6ad 45367 them.
45368
d8b43d9b 453692008-01-05 Robert Millan <rmh@aybabtu.com>
45370
45371 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
45372
2bff2de3 453732008-01-04 Christian Franke <franke@computer.org>
45374
45375 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
45376 of eisa_mmap.
45377
97eab917 453782008-01-03 Pavel Roskin <proski@gnu.org>
45379
45380 * kern/i386/linuxbios/init.c: Put "void" to all function
45381 declarations with no arguments.
45382 * kern/powerpc/ieee1275/init.c: Likewise.
45383 * term/i386/pc/at_keyboard.c: Likewise.
45384 * term/i386/pc/vga_text.c: Likewise.
45385 * util/grub-mkdevicemap.c: Likewise.
45386
b9416d00 453872008-01-02 Robert Millan <rmh@aybabtu.com>
45388
45389 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
45390 message when loaded image is out of bounds.
45391 (grub_multiboot_load_elf64): Likewise.
45392
92695df9 453932008-01-02 Pavel Roskin <proski@gnu.org>
45394
45395 * util/grub.d/10_linux.in: Try version without ".old" when
45396 looking for initrd. It's better to use initrd from the newer
45397 kernel of the same version than no initrd at all.
45398
d98d9cad 453992008-01-01 Robert Millan <rmh@aybabtu.com>
45400
45401 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
45402
dbfdce36 454032008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
45404
f19dbdb7 45405 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 45406 grub_video_get_active_render_target.
45407 (grub_video_adapter): Added unmap_color and get_active_render_target.
45408
f19dbdb7 45409 * video/video.c: Added grub_video_unmap_color and
dbfdce36 45410 grub_video_get_active_render_target.
45411 (grub_video_get_info): Changed method to accept NULL pointer as an
45412 argument to allow detection of active video adapter.
45413
45414 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
45415 grub_video_vbe_unmap_color_int.
45416 Added grub_video_vbe_unmap_color and
45417 grub_video_vbe_get_active_render_target.
45418 (grub_video_vbe_adapter): Added unmap_color and
45419 get_active_render_target.
45420
f19dbdb7 45421 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 45422 with grub_video_vbe_unmap_color_int.
45423
45424 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
45425 (DEFAULT_NORMAL_COLOR): Likewise.
45426 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
45427 (DEFAULT_FG_COLOR): Removed.
45428 (DEFAULT_BG_COLOR): Likewise.
45429 (DEFAULT_CURSOR_COLOR): Changed value.
45430 (grub_virtual_screen): Added standard_color_setting,
45431 normal_color_setting, highlight_color_setting and term_color.
45432 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
45433 (bitmap_width): Added.
45434 (bitmap_height): Likewise.
45435 (bitmap): Likewise.
45436 (set_term_color): Likewise.
45437 (grub_virtual_screen_setup): Changed to use new terminal coloring
45438 settings.
45439 (grub_gfxterm_init): Added init for bitmap.
45440 (grub_gfxterm_fini): Added destroy for bitmap.
45441 (redraw_screen_rect): Updated to use background bitmap and new
45442 terminal coloring.
45443 (scroll_up): Added optimization for case when there is no bitmap.
45444 (grub_gfxterm_cls): Fixed to use correct background color.
45445 (grub_virtual_screen_setcolorstate): Changed to use new terminal
45446 coloring.
45447 (grub_virtual_screen_setcolor): Likewise.
45448 (grub_virtual_screen_getcolor): Added.
45449 (grub_gfxterm_background_image_cmd): Likewise.
45450 (grub_video_term): Added setcolor and getcolor.
45451 (MOD_INIT): Added registration of background_image command.
45452 (MOD_TERM): Added unregistration for background_image command.
45453
c3c20931 454542007-12-30 Pavel Roskin <proski@gnu.org>
45455
45456 * loader/multiboot_loader.c: Fix multiboot command
45457 unregistration. Fix all typos in the word "multiboot".
45458
df266716 454592007-12-29 Pavel Roskin <proski@gnu.org>
94239199 45460
45461 * util/grub.d/10_linux.in: Refactor search for initrd. Add
45462 support for initrd names used in Fedora.
45463
fc6e896c 454642007-12-26 Bean <bean123ch@gmail.com>
45465
45466 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
45467 (cpio_mod_SOURCES): New variable.
45468 (cpio_mod_CFLAGS): Likewise.
45469 (cpio_mod_LDFLAGS): Likewise.
45470
45471 * fs/cpio.c: New file.
45472
45473 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
45474
45475 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45476
45477 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45478
45479 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45480
533110ad 454812007-12-25 Robert Millan <rmh@aybabtu.com>
45482
45483 * include/grub/term.h (struct grub_term): Add `getcolor' function.
45484 (grub_getcolor): New function.
45485
45486 * kern/term.c (grub_getcolor): New function.
45487 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
45488 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
45489 (print_entry): Set normal and highlight colors to
45490 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
45491 respectively, before printing and restore them to old
45492 values afterwards.
45493 (grub_menu_init_page): Likewise. Fill an additional colored space
45494 that would otherwise be left blank.
45495
45496 * term/efi/console.c (grub_console_getcolor): New function.
45497 (struct grub_console_term.getcolor): New variable.
45498 * term/i386/pc/console.c (grub_console_getcolor): New function.
45499 (struct grub_console_term.getcolor): New variable.
45500 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
45501 (struct grub_console_term.getcolor): New variable.
45502
45503 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
45504 (struct grub_console_term.setcolor): Remove variable.
45505 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
45506 (struct grub_console_term.setcolor): Remove variable.
45507 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
45508 (struct grub_console_term.setcolor): Remove variable.
45509 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
45510 (struct grub_console_term.setcolor): Remove variable.
45511
4931827f 455122007-12-25 Robert Millan <rmh@aybabtu.com>
45513
45514 * configure.ac: Search for possible unifont.hex locations, and
45515 define UNIFONT_HEX if found.
45516
45517 * Makefile.in (UNIFONT_HEX): Define variable.
45518 (DATA): Rename to ...
45519 (PKGLIB): ... this. Update all users.
45520 (PKGDATA): New variable.
45521 (pkgdata_IMAGES): Rename to ...
45522 (pkglib_IMAGES): ... this. Update all users.
45523 (pkgdata_MODULES): Rename to ...
45524 (pkglib_MODULES): ... this. Update all users.
45525 (pkgdata_PROGRAMS): Rename to ...
45526 (pkglib_PROGRAMS): ... this. Update all users.
45527 (pkgdata_DATA): Rename to ...
45528 (pkglib_DATA): ... this. Update all users.
45529 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
45530 (unicode.pff, ascii.pff): New rules.
45531 (all-local): Add `$(PKGDATA)' dependency.
45532 (install-local): Process `$(PKGDATA)'.
45533
45534 * util/update-grub_lib.in (font_path): Search for *.pff files in
45535 a few more locations, including `${pkgdata}'.
45536
57e57e31 455372007-12-23 Robert Millan <rmh@aybabtu.com>
45538
45539 Patch from Bean <bean123ch@gmail.com>:
45540 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
45541 `size'.
45542
4bc72aa9 455432007-12-21 Bean <bean123ch@gmail.com>
45544
45545 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
45546 (ntfscomp_mod_SOURCES): New variable.
45547 (ntfscomp_mod_CFLAGS): Likewise.
45548 (ntfscomp_mod_LDFLAGS): Likewise.
45549
45550 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
45551 (grub_probe_SOURCES): Likewise.
45552 (grub_emu_SOURCES): Likewise.
45553
45554 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45555 (grub_emu_SOURCES): Likewise.
45556
45557 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45558 (grub_emu_SOURCES): Likewise.
45559
45560 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
45561 (grub_emu_SOURCES): Likewise.
45562
45563 * fs/ntfs.c (grub_ntfscomp_func): New variable.
45564 (read_run_list): Renamed to grub_ntfs_read_run_list.
45565 (decomp_nextvcn): Moved to ntfscomp.c.
45566 (decomp_getch): Likewise.
45567 (decomp_get16): Likewise.
45568 (decomp_block): Likewise.
45569 (read_block): Likewise.
45570 (read_data): Partially moved to ntfscomp.c.
45571 (fixup): Change unsigned to grub_uint16_t.
45572 (read_mft): Change unsigned long to grub_uint32_t.
45573 (read_attr): Likewise.
45574 (read_data): Likewise.
45575 (read_run_data): Likewise.
45576 (read_run_list): Likewise.
45577 (read_mft): Likewise.
45578
45579 * fs/ntfscomp.c: New file.
45580
45581 * include/grub/ntfs.h: New file.
45582
af680a87 455832007-12-16 Robert Millan <rmh@aybabtu.com>
45584
45585 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
45586 IDE disk check, since Linux is known to support 20 IDE disks.
45587 Reported by Colin Watson.
45588
84be7599 455892007-12-15 Bean <bean123ch@gmail.com>
45590
45591 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
45592 (lnxboot_img_SOURCES): New variable.
45593 (lnxboot_img_ASFLAGS): Likewise.
45594 (lnxboot_img_LDFLAGS): Likewise.
45595
45596 * boot/i386/pc/lnxboot.S: New file.
45597
6af9db01 455982007-11-24 Pavel Roskin <proski@gnu.org>
45599
45600 * configure.ac: Test if '--build-id=none' is supported by the
45601 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
45602 objcopy to generate incorrect binary files (binutils
45603 2.17.50.0.18-1 as shipped by Fedora 8).
45604 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
45605 linking, so that build ID doesn't break the test.
45606
7361cfe6 456072007-11-24 Pavel Roskin <proski@gnu.org>
45608
45609 * include/grub/i386/time.h: use "void" in the argument list
45610 of grub_cpu_idle().
45611 * include/grub/powerpc/time.h: Likewise.
45612 * include/grub/sparc64/time.h: Likewise.
45613
1593e10c 456142007-11-18 Christian Franke <franke@computer.org>
45615
45616 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
45617 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
45618 This fixes the problem that function keys did not work in grub-emu.
45619
3b8db1a8 456202007-11-18 Christian Franke <franke@computer.org>
45621
45622 * disk/host.c (grub_host_open): Remove attribute unused from
45623 name parameter. Add check for "host". This fixes the problem
45624 that grub-emu does not find partitions.
45625
2e29408d 456262007-11-18 Christian Franke <franke@computer.org>
45627
45628 * util/hostfs.c (is_dir): New function.
45629 (grub_hostfs_dir): Handle missing dirent.d_type case.
45630 (grub_hostfs_read): Add missing fseek().
45631 (grub_hostfs_label): Clear label pointer. This fixes a crash
45632 of grub-emu on "ls (host)".
45633
398cd047 456342007-11-18 Christian Franke <franke@computer.org>
45635
45636 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
45637 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
45638 to 64 bit boundary by default.
45639
c405c391 456402007-11-18 Bean <bean123ch@gmail.com>
45641
45642 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
45643 (hexdump_mod_SOURCES): New variable.
45644 (hexdump_mod_CFLAGS): Likewise.
45645 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 45646
c405c391 45647 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45648
45649 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45650
45651 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45652
45653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
45654
45655 * include/grub/hexdump.h: New file.
45656
45657 * commands/hexdump.c: New file.
45658
5cced7fd 456592007-11-10 Robert Millan <rmh@aybabtu.com>
45660
45661 * commands/i386/pc/play.c (beep_off): Switch order of arguments
45662 in grub_outb() calls.
45663 (beep_on): Likewise.
45664
8b714eb0 456652007-11-10 Christian Franke <franke@computer.org>
45666
45667 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
45668 (grub_menu_run): Likewise.
45669
ce0f1839 456702007-11-10 Robert Millan <rmh@aybabtu.com>
45671
45672 * include/grub/i386/efi/machine.h: New file.
45673 * include/grub/i386/linuxbios/machine.h: Likewise.
45674 * include/grub/i386/pc/machine.h: Likewise.
45675 * include/grub/powerpc/ieee1275/machine.h: Likewise.
45676 * include/grub/sparc64/ieee1275/machine.h: Likewise.
45677
45678 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
45679 (serial_hw_io_addr): New variable.
45680 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
45681 instead of `(unsigned short *) 0x400'.
45682
270c237d 456832007-11-10 Bean <bean123ch@gmail.com>
45684
45685 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
45686
a87783bf 456872007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
45688
45689 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
45690 (vga_mod_SOURCES): Added.
45691 (vga_mod_CFLAGS): Likewise.
45692 (vga_mod_LDFLAGS): Likewise.
45693
45694 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
45695 grub_outb() calls.
45696 (set_map_mask): Likewise.
45697 (set_read_map): Likewise.
45698 (set_read_address): Likewise.
45699 (vga_font): Removed variable.
45700 (get_vga_glyph): Removed function.
45701 (invalidate_char): Likewise.
45702 (write_char): Changed to use grub_font_get_glyph() for font
45703 information.
45704 (grub_vga_putchar): Likewise.
45705 (grub_vga_getcharwidth): Likewise.
45706
6433b448 457072007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
45708
45709 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
45710 flags.
45711 (pxeboot_img_LDFLAGS): Likewise.
45712 (diskboot_img_LDFLAGS): Likewise.
45713 (kernel_img_LDFLAGS): Likewise.
45714
49178511 457152007-11-06 Robert Millan <rmh@aybabtu.com>
45716
45717 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
45718 in grub_outb() calls.
45719 (serial_hw_init): Likewise.
45720
53b052de 457212007-11-05 Robert Millan <rmh@aybabtu.com>
45722
45723 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
45724 spaces. Skip non-regular files.
45725
5ab33bba 457262007-11-05 Robert Millan <rmh@aybabtu.com>
45727
45728 * kern/disk.c (grub_disk_firmware_fini)
45729 (grub_disk_firmware_is_tainted): New variables.
45730
45731 * include/grub/disk.h (grub_disk_firmware_fini)
45732 (grub_disk_firmware_is_tainted): Likewise.
45733
45734 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
45735 (grub_disk_biosdisk_fini): ... to here.
45736 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
45737 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
45738 is set. Register grub_disk_biosdisk_fini() in
45739 `grub_disk_firmware_fini'.
45740
45741 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
45742 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
45743 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
45744 to finish existing firmware disk interface.
45745
45746 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
45747 (ata_mod_SOURCES): New variable.
45748 (ata_mod_CFLAGS): Likewise.
45749 (ata_mod_LDFLAGS): Likewise.
45750
0149ab7c 457512007-11-05 Robert Millan <rmh@aybabtu.com>
45752
45753 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
45754 (grub_ata_wait): Reimplement using grub_millisleep().
45755
45756 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
45757 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
45758
be7ac41e 457592007-11-03 Marco Gerards <marco@gnu.org>
45760
45761 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
45762 (CRTC_ADDR_PORT): New macro.
45763 (CRTC_DATA_PORT): Likewise.
45764 (CRTC_CURSOR): Likewise.
45765 (CRTC_CURSOR_ADDR_HIGH): Likewise.
45766 (CRTC_CURSOR_ADDR_LOW): Likewise.
45767 (update_cursor): New function.
45768 (grub_console_real_putchar): Call `update_cursor'.
45769 (grub_console_gotoxy): Likewise.
45770 (grub_console_cls): Set the default color when clearing the
45771 screen.
45772 (grub_console_setcursor): Implemented.
45773
bb06ab2e 457742007-11-03 Marco Gerards <marco@gnu.org>
45775
45776 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
45777 become activate.
45778 (grub_ata_pio_write): Likewise.
45779
45780 (grub_atapi_identify): Wait after issuing an ATA command.
45781 (grub_atapi_packet): Likewise.
45782 (grub_ata_identify): Likewise.
45783 (grub_ata_readwrite): Likewise.
45784
cf8f780b 457852007-11-03 Marco Gerards <marco@gnu.org>
45786
45787 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
45788 (grub_ata_pio_write): Likewise.
45789 (grub_ata_readwrite): Use `grub_error', instead of
45790 returning `grub_errno'.
45791
ed649e54 457922007-11-03 Marco Gerards <marco@gnu.org>
45793
45794 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
45795 grub_ata_pio_write once for every single sector, instead of for
45796 multiple sectors.
45797
ca25d8f0 457982007-10-31 Robert Millan <rmh@aybabtu.com>
45799
45800 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
45801
45802 * conf/i386-linuxbios.rmk: New file.
45803
45804 * kern/i386/pc/hardware.c: Likewise.
45805 * term/i386/pc/at_keyboard.c: Likewise.
45806 * term/i386/pc/vga_text.c: Likewise.
45807
45808 * include/grub/i386/linuxbios/boot.h: Likewise.
45809 * include/grub/i386/linuxbios/console.h: Likewise.
45810 * include/grub/i386/linuxbios/init.h: Likewise.
45811 * include/grub/i386/linuxbios/kernel.h: Likewise.
45812 * include/grub/i386/linuxbios/loader.h: Likewise.
45813 * include/grub/i386/linuxbios/memory.h: Likewise.
45814 * include/grub/i386/linuxbios/serial.h: Likewise.
45815 * include/grub/i386/linuxbios/time.h: Likewise.
45816
45817 * kern/i386/linuxbios/init.c: Likewise.
45818 * kern/i386/linuxbios/startup.S: Likewise.
45819 * kern/i386/linuxbios/table.c: Likewise.
45820
e911ecc1 458212007-10-31 Marco Gerards <marco@gnu.org>
45822
45823 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
45824 (ata_mod_SOURCES): New variable.
45825 (ata_mod_CFLAGS): Likewise.
45826 (ata_mod_LDFLAGS): Likewise.
45827
45828 * disk/ata.c: New file.
45829
45830 * include/grub/disk.h (grub_disk_dev_id): Add
45831 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 45832
7f66d0e0 458332007-10-31 Robert Millan <rmh@aybabtu.com>
45834
45835 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
45836 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
45837
45838 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
45839 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
45840
45841 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
45842 `<grub/types.h>'.
45843
45844 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
45845
5cd7dd46 458462007-10-27 Robert Millan <rmh@aybabtu.com>
45847
3236ca65 45848 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 45849
2ebfc90f 458502007-10-22 Robert Millan <rmh@aybabtu.com>
45851
45852 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
45853 `"../realmode.S"'.
45854 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
45855
73fcb0f3 458562007-10-22 Robert Millan <rmh@aybabtu.com>
45857
45858 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
45859 (pkgdata_MODULES): Add `biosdisk.mod'.
45860 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
45861 variables.
45862
45863 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
45864 (grub_biosdisk_init): Replace with ...
45865 (GRUB_MOD_INIT(biosdisk)): ... this.
45866 (grub_biosdisk_fini): Replace with ...
45867 (GRUB_MOD_FINI(biosdisk)): ... this.
45868
45869 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
45870 (grub_machine_init): Remove call to grub_biosdisk_init().
45871 (grub_machine_fini): Remove call to grub_machine_fini().
45872
45873 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
45874
3381d274 458752007-10-22 Robert Millan <rmh@aybabtu.com>
45876
45877 * include/grub/time.h: New file.
45878 * include/grub/i386/time.h: Likewise.
45879 * include/grub/powerpc/time.h: Likewise.
45880 * include/grub/sparc64/time.h: Likewise.
45881
45882 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
45883 instances to ...
45884 (KERNEL_MACHINE_TIME_HEADER): ... this.
45885 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
45886 instances to ...
45887 (KERNEL_MACHINE_TIME_HEADER): ... this.
45888 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
45889 instances to ...
45890 (KERNEL_MACHINE_TIME_HEADER): ... this.
45891
45892 * kern/i386/efi/init.c: Include `<grub/time.h>'.
45893 (grub_millisleep): New function.
45894 * kern/i386/pc/init.c: Include `<grub/time.h>'.
45895 (grub_millisleep): New function.
45896 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
45897 Remove `grub/machine/time.h' include.
45898 (grub_millisleep): New function.
45899 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
45900 Remove `grub/machine/time.h' include.
45901 (grub_millisleep): New function.
45902
45903 * include/grub/misc.h (grub_div_roundup): New function.
45904
45905 * kern/misc.c: Include `<grub/time.h>'.
45906 (grub_millisleep_generic): New function.
45907
45908 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
45909 Add `time.h'.
45910 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
45911 Add `time.h'.
45912 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
45913 `machine/time.h'. Add `time.h'.
45914 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45915
a39a0312 459162007-10-21 Robert Millan <rmh@aybabtu.com>
45917
45918 * include/grub/misc.h (grub_max): New function.
45919
2aad70e2 459202007-10-21 Robert Millan <rmh@aybabtu.com>
45921
45922 * util/misc.c (grub_util_info): Call fflush() before returning.
45923
54b71c4b 459242007-10-20 Robert Millan <rmh@aybabtu.com>
45925
45926 * genmk.rb (Image): Copy `extra_flags' from here ...
45927 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
45928
45929 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
45930 to `argc' and `args' arguments.
45931
a979f513 459322007-10-17 Robert Millan <rmh@aybabtu.com>
45933
45934 * kern/i386/loader.S: New file.
45935
45936 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
45937 * kern/i386/loader.S (grub_linux_prot_size)... to here.
45938 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
45939 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
45940 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
45941 * kern/i386/loader.S (grub_linux_real_addr)... to here.
45942 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
45943 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
45944 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
45945 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
45946 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
45947 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
45948 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
45949 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
45950
45951 * kern/i386/realmode.S: New file.
45952
45953 * kern/i386/pc/startup.S (protstack): Moved from here ...
45954 * kern/i386/realmode.S (protstack)... to here.
45955 * kern/i386/pc/startup.S (gdt): Moved from here ...
45956 * kern/i386/realmode.S (gdt)... to here.
45957 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
45958 * kern/i386/realmode.S (prot_to_real)... to here.
45959
45960 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
45961 `kern/i386/realmode.S'.
45962
825fc8fd 459632007-10-17 Robert Millan <rmh@aybabtu.com>
45964
45965 * include/grub/i386/loader.h: New file.
45966
45967 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
45968 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
45969 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
45970 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
45971 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
45972 * include/grub/i386/loader.h (grub_linux_prot_size)
45973 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
45974 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
45975 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
45976 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
45977
45978 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
45979
e179b2f4 459802007-10-15 Robert Millan <rmh@aybabtu.com>
45981
45982 * normal/misc.c (grub_normal_print_device_info): Do not probe for
45983 filesystem when dev->disk is unset.
45984 Do probe for filesystem even when dev->disk->has_partitions is set.
45985 In case a filesystem is found, always report it.
45986 In case it isn't, if dev->disk->has_partitions is set, report that
45987 a partition table was found instead of reporting that no filesystem
45988 could be identified.
45989
5db82af6 459902007-10-12 Robert Millan <rmh@aybabtu.com>
45991
45992 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
45993 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
45994
68f6ac74 45995 * include/grub/types.h (grub_host_to_target16): New macro.
45996 (grub_host_to_target32): Likewise.
45997 (grub_host_to_target64): Likewise.
45998 (grub_target_to_host16): Likewise.
45999 (grub_target_to_host32): Likewise.
46000 (grub_target_to_host64): Likewise.
5db82af6 46001
46002 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
46003 Renamed from to ...
46004 (GRUB_MOD_ALIGN): ...this. Update all users.
46005
68f6ac74 46006 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
46007 grub_host_to_target32.
46008 Replace grub_be_to_cpu32 with grub_target_to_host32.
46009 (load_modules): Likewise.
46010 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
46011 Replace grub_be_to_cpu32 with grub_target_to_host32.
46012 Replace grub_cpu_to_be16 with grub_host_to_target16.
46013 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 46014
3cf497cc 460152007-10-12 Robert Millan <rmh@aybabtu.com>
46016
46017 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
46018 * util/elf/grub-mkimage.c: ... here.
46019
46020 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
46021 `util/powerpc/ieee1275/grub-mkimage.c'.
46022
c8cc3692 460232007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 46024
c8cc3692 46025 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
46026 and make it easier to figure out.
46027 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
46028 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
46029 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
46030 leave us with less than HEAP_MIN_SIZE total heap.
46031 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 46032
5c58b791 460332007-10-03 Robert Millan <rmh@aybabtu.com>
46034
46035 * include/grub/i386/io.h: New file.
46036 * commands/i386/pc/play.c (inb): Removed.
46037 (outb): Removed.
46038 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46039 with grub_outb().
afcd2ef8 46040 * term/i386/pc/serial.c (inb): Removed.
46041 (outb): Removed.
46042 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46043 with grub_outb().
46044 * term/i386/pc/vga.c (inb): Removed.
46045 (outb): Removed.
46046 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
46047 with grub_outb().
5c58b791 46048
1a477ed6 460492007-10-02 Robert Millan <rmh@aybabtu.com>
46050
46051 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
46052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46053 Reported by Marcin Kurek.
46054
6b5d80fa 460552007-09-07 Robert Millan <rmh@aybabtu.com>
46056
46057 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
46058 SmartFirmware version updates (as released by Sven Luther), and avoid
46059 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
46060 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
46061 known broken.
46062
5618afbf 460632007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46064
46065 From Hitoshi Ozeki:
46066 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
46067 when merging two regions.
46068
6139dcd9 460692007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46070
508e39ee 46071 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
46072 * normal/completion.c (grub_normal_do_completion): Likewise.
46073 Reported by Hitoshi Ozeki.
46074
460752007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46076
6139dcd9 46077 Do not use devices at boot in chainloading.
f19dbdb7 46078
6139dcd9 46079 * loader/i386/pc/chainloader.c (boot_drive): New variable.
46080 (boot_part_addr): Likewise.
46081 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
46082 with BOOT_DRIVE and BOOT_PART_ADDR.
46083 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
46084 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
46085
38da6516 460862007-08-29 Robert Millan <rmh@aybabtu.com>
46087
46088 Patch from Simon Peter <dn.tlp@gmx.net>:
46089 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
46090 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
46091 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
46092 util/i386/pc/grub-setup.c_DEPENDENCIES.
46093 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
46094 util/grub-probe.c_DEPENDENCIES.
46095 * conf/powerpc-ieee1275.rmk: Likewise.
46096
29d0928c 460972007-08-28 Robert Millan <rmh@aybabtu.com>
46098
46099 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
46100 to tell grub-mkdevicemap how to name devices.
46101 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
46102 feature).
46103
46104 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
46105 util/i386/get_disk_name.c.
46106 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
46107 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
46108 util/ieee1275/get_disk_name.c.
46109
46110 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
46111
46112 * DISTLIST: Add util/i386/get_disk_name.c and
46113 util/ieee1275/get_disk_name.c.
46114
46115 * util/grub-mkdevicemap.c: Replace device naming logic with
46116 grub_util_get_disk_name() calls.
46117
5a0d3cca 461182007-08-20 Robert Millan <rmh@aybabtu.com>
46119
46120 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
46121 (so that it works for both plural and singular quantities).
46122
8b72db2f 461232007-08-05 Robert Millan <rmh@aybabtu.com>
46124
46125 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
46126 so that [xz] isn't taken into account when determining order.
46127
352466bf 461282007-08-02 Marco Gerards <marco@gnu.org>
46129
46130 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
46131 `include/multiboot2.h', `include/grub/elfload.h',
46132 `include/multiboot.h', `include/grub/multiboot.h',
46133 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
46134 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
46135 `kern/elf.c', `loader/multiboot_loader.c',
46136 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
46137 `loader/i386/pc/multiboot2.c',
46138 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
46139 `util/i386/pc/grub-mkrescue.in'. Remove
46140 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
46141 `include/grub/i386/pc/util/biosdisk.h' and
46142 `include/grub/powerpc/ieee1275/multiboot.h'.
46143
8f096014 461442007-08-02 Bean <bean123ch@gmail.com>
46145
46146 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
46147 (ntfs_mod_SOURCES): New variable.
46148 (ntfs_mod_CFLAGS): Likewise.
46149 (ntfs_mod_LDFLAGS): Likewise.
46150
46151 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
46152 (grub_probe_SOURCES): Likewise.
46153 (grub_emu_SOURCES): Likewise.
46154
46155 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46156 (grub_emu_SOURCES): Likewise.
46157
46158 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
46159 (grub_emu_SOURCES): Likewise.
f19dbdb7 46160
8f096014 46161 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
46162
46163 * fs/ntfs.c: New file.
46164
9959f7db 461652007-08-02 Bean <bean123ch@gmail.com>
46166
46167 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
46168
46169 * file.h (grub_file): Likewise.
46170
46171 * fshelp.h (grub_fshelp_read_file): Likewise.
46172
46173 * util/i386/pc/grub-setup.c (setup): Likewise.
46174 (save_first_sector): Likewise.
46175 (save_blocklists): Likewise.
f19dbdb7 46176
9959f7db 46177 * fs/affs.c (grub_affs_read_file): Likewise.
46178
46179 * fs/ext2.c (grub_ext2_read_file): Likewise.
46180
46181 * fs/fat.c (grub_fat_read_data): Likewise.
46182
46183 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
46184
46185 * fs/hfs.c (grub_hfs_read_file): Likewise.
46186
46187 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
46188
46189 * fs/jfs.c (grub_jfs_read_file): Likewise.
46190
46191 * fs/minix.c (grub_minix_read_file): Likewise.
46192
46193 * fs/sfs.c (grub_sfs_read_file): Likewise.
46194
46195 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 46196
9959f7db 46197 * fs/xfs.c (grub_xfs_read_file): Likewise.
46198
46199 * command/blocklist.c (read_blocklist): Likewise.
46200 (print_blocklist): Likewise.
46201
0a203f83 462022007-08-02 Marco Gerards <marco@gnu.org>
46203
46204 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
46205 `util/hostfs.c'.
46206
46207 * disk/host.c: New file.
46208
46209 * util/hostfs.c: Likewise.
46210
46211 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
46212 return `GRUB_ERR_BAD_FS'.
46213 * fs/sfs.c (grub_sfs_mount): Likewise.
46214 * fs/xfs.c (grub_xfs_mount): Likewise.
46215
46216 * include/grub/disk.h (enum grub_disk_dev_id): Add
46217 `GRUB_DISK_DEVICE_HOST_ID'.
46218
46219 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
46220
e5dfe777 462212007-07-24 Jerone Young <jerone@gmail.com>
46222
f19dbdb7 46223 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 46224 modules for compilation.
46225 * conf/powerpc-ieee1275.rmk: Likewise.
46226
46227 * include/multiboot.h: Move multiboot definitions to one file. Rename
46228 many definitions to not get grub specific.
46229 * include/multiboot2.h: Create header with multiboot 2 definitions.
46230 * include/grub/multiboot.h: Header for grub specific function
46231 prototypes and definitions.
46232 * include/grub/multiboot2.h: Likewise.
46233 * include/grub/multiboot_loader.h: Likewise.
46234 * include/grub/i386/pc/multiboot.h: Removed.
46235 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
46236
46237 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
46238 and 2 to allow for one multiboot and module commands.
46239 * loader/multiboot2.c: Add multiboot2 functionality.
46240 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
46241 and definition names.
46242 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
46243 2 functions.
46244 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
46245 ieee1275 specific multiboot2 code.
46246
46247 * kern/i386/pc/startup.S: Change headers and definition names for
46248 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
46249
daf0f0ba 462502007-07-22 Robert Millan <rmh@aybabtu.com>
46251
46252 * geninitheader.sh: Process file specified in first parameter rather
46253 than hardcoding grub_modules_init.lst.
fe6b695a 46254 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 46255 than hardcoding grub_modules_init.h.
46256
46257 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
46258 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
46259 grub_probe_init.[ch] and grub_setup_init.[ch].
46260
46261 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
46262 grub_modules_init.h with grub_emu_init.h.
46263 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
46264 grub_probe_init.[ch] files.
46265 * conf/i386-efi.rmk: Likewise.
46266 * conf/i386-pc.rmk: Likewise.
46267 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
46268 grub_setup_init.[ch] files.
46269
46270 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
46271 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
46272 to initialize modules rather than a list of hardcoded functions.
46273 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
46274 grub_init_all() to initialize modules rather than a list of hardcoded
46275 functions.
46276
54cdc1cc 462772007-07-22 Robert Millan <rmh@aybabtu.com>
46278
46279 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
46280 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
46281
ad0686cc 462822007-07-22 Robert Millan <rmh@aybabtu.com>
46283
46284 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46285 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
46286 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
46287 flag when running on SmartFirmware.
46288 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
46289 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
46290 was set.
46291
46292 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
46293 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
46294 rather than decreasing it.
46295
46296 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
46297 there's not enough space to do it, fail in the same way as when it
46298 can't be done because there are no partitions.
46299
46300 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
46301 when nvsetenv failed.
46302
969c02ec 463032007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
46304
46305 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
46306 because this rule is automatically generated.
46307 (grub-mkrescue): Removed for the same reason as above.
46308
5a79f472 463092007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
46310
46311 Migrate to GNU General Public License Version 3.
f19dbdb7 46312
5a79f472 46313 * COPYING: Replaced with the plain text version of GPLv3.
46314
46315 * config.guess: Updated from gnulib.
46316 * config.sub: Likewise.
46317
46318 * geninit.sh: Output a GPLv3 copyright notice.
46319 * geninitheader.sh: Likewise.
46320 * genmodsrc.sh: Likewise.
46321 * gensymlist.sh.in: Likewise.
46322
46323 * boot/i386/pc/boot.S: Upgraded to GPLv3.
46324 * boot/i386/pc/diskboot.S: Likewise.
46325 * boot/i386/pc/pxeboot.S: Likewise.
46326 * commands/blocklist.c: Likewise.
46327 * commands/boot.c: Likewise.
46328 * commands/cat.c: Likewise.
46329 * commands/cmp.c: Likewise.
46330 * commands/configfile.c: Likewise.
46331 * commands/echo.c: Likewise.
46332 * commands/help.c: Likewise.
46333 * commands/ls.c: Likewise.
46334 * commands/search.c: Likewise.
46335 * commands/terminal.c: Likewise.
46336 * commands/test.c: Likewise.
46337 * commands/videotest.c: Likewise.
46338 * commands/i386/cpuid.c: Likewise.
46339 * commands/i386/pc/halt.c: Likewise.
46340 * commands/i386/pc/play.c: Likewise.
46341 * commands/i386/pc/reboot.c: Likewise.
46342 * commands/i386/pc/vbeinfo.c: Likewise.
46343 * commands/i386/pc/vbetest.c: Likewise.
46344 * commands/ieee1275/halt.c: Likewise.
46345 * commands/ieee1275/reboot.c: Likewise.
46346 * commands/ieee1275/suspend.c: Likewise.
46347 * disk/loopback.c: Likewise.
46348 * disk/lvm.c: Likewise.
46349 * disk/raid.c: Likewise.
46350 * disk/efi/efidisk.c: Likewise.
46351 * disk/i386/pc/biosdisk.c: Likewise.
46352 * disk/ieee1275/ofdisk.c: Likewise.
46353 * font/manager.c: Likewise.
46354 * fs/affs.c: Likewise.
46355 * fs/ext2.c: Likewise.
46356 * fs/fat.c: Likewise.
46357 * fs/fshelp.c: Likewise.
46358 * fs/hfs.c: Likewise.
46359 * fs/hfsplus.c: Likewise.
46360 * fs/iso9660.c: Likewise.
46361 * fs/jfs.c: Likewise.
46362 * fs/minix.c: Likewise.
46363 * fs/sfs.c: Likewise.
46364 * fs/ufs.c: Likewise.
46365 * fs/xfs.c: Likewise.
46366 * hello/hello.c: Likewise.
46367 * include/grub/acorn_filecore.h: Likewise.
46368 * include/grub/arg.h: Likewise.
46369 * include/grub/bitmap.h: Likewise.
46370 * include/grub/boot.h: Likewise.
46371 * include/grub/cache.h: Likewise.
46372 * include/grub/device.h: Likewise.
46373 * include/grub/disk.h: Likewise.
46374 * include/grub/dl.h: Likewise.
46375 * include/grub/elfload.h: Likewise.
46376 * include/grub/env.h: Likewise.
46377 * include/grub/err.h: Likewise.
46378 * include/grub/file.h: Likewise.
46379 * include/grub/font.h: Likewise.
46380 * include/grub/fs.h: Likewise.
46381 * include/grub/fshelp.h: Likewise.
46382 * include/grub/gzio.h: Likewise.
46383 * include/grub/hfs.h: Likewise.
46384 * include/grub/kernel.h: Likewise.
46385 * include/grub/loader.h: Likewise.
46386 * include/grub/lvm.h: Likewise.
46387 * include/grub/misc.h: Likewise.
46388 * include/grub/mm.h: Likewise.
46389 * include/grub/net.h: Likewise.
46390 * include/grub/normal.h: Likewise.
46391 * include/grub/parser.h: Likewise.
46392 * include/grub/partition.h: Likewise.
46393 * include/grub/pc_partition.h: Likewise.
46394 * include/grub/raid.h: Likewise.
46395 * include/grub/rescue.h: Likewise.
46396 * include/grub/script.h: Likewise.
46397 * include/grub/setjmp.h: Likewise.
46398 * include/grub/symbol.h: Likewise.
46399 * include/grub/term.h: Likewise.
46400 * include/grub/terminfo.h: Likewise.
46401 * include/grub/tparm.h: Likewise.
46402 * include/grub/types.h: Likewise.
46403 * include/grub/video.h: Likewise.
46404 * include/grub/efi/api.h: Likewise.
46405 * include/grub/efi/chainloader.h: Likewise.
46406 * include/grub/efi/console.h: Likewise.
46407 * include/grub/efi/console_control.h: Likewise.
46408 * include/grub/efi/disk.h: Likewise.
46409 * include/grub/efi/efi.h: Likewise.
46410 * include/grub/efi/pe32.h: Likewise.
46411 * include/grub/efi/time.h: Likewise.
46412 * include/grub/i386/linux.h: Likewise.
46413 * include/grub/i386/setjmp.h: Likewise.
46414 * include/grub/i386/types.h: Likewise.
46415 * include/grub/i386/efi/kernel.h: Likewise.
46416 * include/grub/i386/efi/loader.h: Likewise.
46417 * include/grub/i386/efi/time.h: Likewise.
46418 * include/grub/i386/pc/biosdisk.h: Likewise.
46419 * include/grub/i386/pc/boot.h: Likewise.
46420 * include/grub/i386/pc/chainloader.h: Likewise.
46421 * include/grub/i386/pc/console.h: Likewise.
46422 * include/grub/i386/pc/init.h: Likewise.
46423 * include/grub/i386/pc/kernel.h: Likewise.
46424 * include/grub/i386/pc/loader.h: Likewise.
46425 * include/grub/i386/pc/memory.h: Likewise.
46426 * include/grub/i386/pc/multiboot.h: Likewise.
46427 * include/grub/i386/pc/serial.h: Likewise.
46428 * include/grub/i386/pc/time.h: Likewise.
46429 * include/grub/i386/pc/vbe.h: Likewise.
46430 * include/grub/i386/pc/vbeblit.h: Likewise.
46431 * include/grub/i386/pc/vbefill.h: Likewise.
46432 * include/grub/i386/pc/vbeutil.h: Likewise.
46433 * include/grub/i386/pc/vga.h: Likewise.
46434 * include/grub/ieee1275/ieee1275.h: Likewise.
46435 * include/grub/ieee1275/ofdisk.h: Likewise.
46436 * include/grub/powerpc/libgcc.h: Likewise.
46437 * include/grub/powerpc/setjmp.h: Likewise.
46438 * include/grub/powerpc/types.h: Likewise.
46439 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
46440 * include/grub/powerpc/ieee1275/console.h: Likewise.
46441 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
46442 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
46443 * include/grub/powerpc/ieee1275/loader.h: Likewise.
46444 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
46445 * include/grub/powerpc/ieee1275/time.h: Likewise.
46446 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
46447 * include/grub/sparc64/libgcc.h: Likewise.
46448 * include/grub/sparc64/setjmp.h: Likewise.
46449 * include/grub/sparc64/types.h: Likewise.
46450 * include/grub/sparc64/ieee1275/console.h: Likewise.
46451 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
46452 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
46453 * include/grub/sparc64/ieee1275/time.h: Likewise.
46454 * include/grub/util/biosdisk.h: Likewise.
46455 * include/grub/util/getroot.h: Likewise.
46456 * include/grub/util/lvm.h: Likewise.
46457 * include/grub/util/misc.h: Likewise.
46458 * include/grub/util/raid.h: Likewise.
46459 * include/grub/util/resolve.h: Likewise.
46460 * io/gzio.c: Likewise.
46461 * kern/device.c: Likewise.
46462 * kern/disk.c: Likewise.
46463 * kern/dl.c: Likewise.
46464 * kern/elf.c: Likewise.
46465 * kern/env.c: Likewise.
46466 * kern/err.c: Likewise.
46467 * kern/file.c: Likewise.
46468 * kern/fs.c: Likewise.
46469 * kern/loader.c: Likewise.
46470 * kern/main.c: Likewise.
46471 * kern/misc.c: Likewise.
46472 * kern/mm.c: Likewise.
46473 * kern/parser.c: Likewise.
46474 * kern/partition.c: Likewise.
46475 * kern/rescue.c: Likewise.
46476 * kern/term.c: Likewise.
46477 * kern/efi/efi.c: Likewise.
46478 * kern/efi/init.c: Likewise.
46479 * kern/efi/mm.c: Likewise.
46480 * kern/i386/dl.c: Likewise.
46481 * kern/i386/efi/init.c: Likewise.
46482 * kern/i386/efi/startup.S: Likewise.
46483 * kern/i386/pc/init.c: Likewise.
46484 * kern/i386/pc/lzo1x.S: Likewise.
46485 * kern/i386/pc/startup.S: Likewise.
46486 * kern/ieee1275/ieee1275.c: Likewise.
46487 * kern/powerpc/cache.S: Likewise.
46488 * kern/powerpc/dl.c: Likewise.
46489 * kern/powerpc/ieee1275/cmain.c: Likewise.
46490 * kern/powerpc/ieee1275/crt0.S: Likewise.
46491 * kern/powerpc/ieee1275/init.c: Likewise.
46492 * kern/powerpc/ieee1275/openfw.c: Likewise.
46493 * kern/sparc64/cache.S: Likewise.
46494 * kern/sparc64/dl.c: Likewise.
46495 * kern/sparc64/ieee1275/init.c: Likewise.
46496 * kern/sparc64/ieee1275/openfw.c: Likewise.
46497 * loader/efi/chainloader.c: Likewise.
46498 * loader/efi/chainloader_normal.c: Likewise.
46499 * loader/i386/efi/linux.c: Likewise.
46500 * loader/i386/efi/linux_normal.c: Likewise.
46501 * loader/i386/pc/chainloader.c: Likewise.
46502 * loader/i386/pc/chainloader_normal.c: Likewise.
46503 * loader/i386/pc/linux.c: Likewise.
46504 * loader/i386/pc/linux_normal.c: Likewise.
46505 * loader/i386/pc/multiboot.c: Likewise.
46506 * loader/i386/pc/multiboot_normal.c: Likewise.
46507 * loader/powerpc/ieee1275/linux.c: Likewise.
46508 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46509 * normal/arg.c: Likewise.
46510 * normal/cmdline.c: Likewise.
46511 * normal/command.c: Likewise.
46512 * normal/completion.c: Likewise.
46513 * normal/execute.c: Likewise.
46514 * normal/function.c: Likewise.
46515 * normal/lexer.c: Likewise.
46516 * normal/main.c: Likewise.
46517 * normal/menu.c: Likewise.
46518 * normal/menu_entry.c: Likewise.
46519 * normal/misc.c: Likewise.
46520 * normal/parser.y: Likewise.
46521 * normal/script.c: Likewise.
46522 * normal/i386/setjmp.S: Likewise.
46523 * normal/powerpc/setjmp.S: Likewise.
46524 * normal/sparc64/setjmp.S: Likewise.
46525 * partmap/acorn.c: Likewise.
46526 * partmap/amiga.c: Likewise.
46527 * partmap/apple.c: Likewise.
46528 * partmap/gpt.c: Likewise.
46529 * partmap/pc.c: Likewise.
46530 * partmap/sun.c: Likewise.
46531 * term/gfxterm.c: Likewise.
46532 * term/terminfo.c: Likewise.
46533 * term/efi/console.c: Likewise.
46534 * term/i386/pc/console.c: Likewise.
46535 * term/i386/pc/serial.c: Likewise.
46536 * term/i386/pc/vesafb.c: Likewise.
46537 * term/i386/pc/vga.c: Likewise.
46538 * term/ieee1275/ofconsole.c: Likewise.
46539 * util/biosdisk.c: Likewise.
46540 * util/console.c: Likewise.
46541 * util/genmoddep.c: Likewise.
46542 * util/getroot.c: Likewise.
46543 * util/grub-emu.c: Likewise.
46544 * util/grub-mkdevicemap.c: Likewise.
46545 * util/grub-probe.c: Likewise.
46546 * util/lvm.c: Likewise.
46547 * util/misc.c: Likewise.
46548 * util/raid.c: Likewise.
46549 * util/resolve.c: Likewise.
46550 * util/update-grub.in: Likewise.
46551 * util/update-grub_lib.in: Likewise.
46552 * util/grub.d/00_header.in: Likewise.
46553 * util/grub.d/10_hurd.in: Likewise.
46554 * util/grub.d/10_linux.in: Likewise.
46555 * util/i386/efi/grub-install.in: Likewise.
46556 * util/i386/efi/grub-mkimage.c: Likewise.
46557 * util/i386/pc/grub-install.in: Likewise.
46558 * util/i386/pc/grub-mkimage.c: Likewise.
46559 * util/i386/pc/grub-mkrescue.in: Likewise.
46560 * util/i386/pc/grub-setup.c: Likewise.
46561 * util/i386/pc/misc.c: Likewise.
46562 * util/powerpc/ieee1275/grub-install.in: Likewise.
46563 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
46564 * util/powerpc/ieee1275/misc.c: Likewise.
46565 * video/bitmap.c: Likewise.
46566 * video/video.c: Likewise.
46567 * video/i386/pc/vbe.c: Likewise.
46568 * video/i386/pc/vbeblit.c: Likewise.
46569 * video/i386/pc/vbefill.c: Likewise.
46570 * video/i386/pc/vbeutil.c: Likewise.
46571 * video/readers/tga.c: Likewise.
46572
3572d015 465732007-07-02 Robert Millan <rmh@aybabtu.com>
46574
46575 * conf/i386-efi.rmk: Replace obsolete reference to
46576 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
46577 with util/getroot.c.
46578 * conf/powerpc-ieee1275.rmk: Likewise.
46579 * conf/sparc64-ieee1275.rmk: Likewise.
46580
46581 * util/grub-emu.c (main): Fix unchecked pointer handling.
46582
2c2a681b 465832007-07-02 Robert Millan <rmh@aybabtu.com>
46584
46585 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
46586 invocation to fail, in order to support partition-less media.
46587
46588 * util/i386/pc/grub-install.in: Likewise.
46589
46590 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
46591 which fs or partmap modules are needed (akin to its sister scripts).
46592
46593 Also use grub-probe to get rid of unportable /proc/mounts check.
46594
46595 Print the same informational message that the other scripts do, before
fe6b695a 46596 exiting.
2c2a681b 46597
6193defe 465982007-06-23 Robert Millan <rmh@aybabtu.com>
46599
fe6b695a 46600 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 46601 a font file can be found and, if so, echo the GRUB path to it.
46602
46603 * util/update-grub.in: Handle multiple terminals depending on user
46604 input, platform availability and font file presence. Propagate
46605 variables of our findings to /etc/grub.d/ children.
46606
46607 * util/grub.d/00_header.in: Handle multiple terminals, based on
46608 environment setup by update-grub.
46609
eface1dc 466102007-06-23 Robert Millan <rmh@aybabtu.com>
46611
ba50d28f 46612 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 46613
bf697e28 466142007-06-21 Robert Millan <rmh@aybabtu.com>
46615
46616 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
46617 indicate end of data section in kernel image.
46618 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
46619 GRUB_KERNEL_MACHINE_DATA_END.
46620
46621 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
46622 space for it.
46623 * kern/i386/efi/startup.S: Likewise.
46624
46625 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
46626 during image generation. Implement --prefix option to override this
46627 patch.
46628 * util/i386/efi/grub-mkimage.c: Likewise.
46629
46630 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
46631 code to make path relative to its root into a separate function.
46632
46633 * util/i386/pc/grub-install.in: Use newly provided
46634 make_system_path_relative_to_its_root() to convert ${grubdir}, then
46635 pass the result to grub-install --prefix.
46636
baa574b4 466372007-06-13 Robert Millan <rmh@aybabtu.com>
46638
46639 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
46640 DEFAULT_DEVICE_MAP.
46641 * util/grub-emu.c: Use above definitions from misc.h instead of
46642 defining them.
46643 * util/grub-mkdevicemap.c: Likewise.
46644 * util/i386/pc/grub-setup.c: Likewise.
46645 * util/grub-probe.c: Likewise.
46646 (probe): Abort with grub_util_error() when either
46647 grub_guess_root_device or grub_util_get_grub_dev fails.
46648
0215dcbf 466492007-06-12 Robert Millan <rmh@aybabtu.com>
46650
46651 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
46652 "pager" assignment.
46653 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
46654 "pcdata".
46655 * util/grub-probe.c (probe): Likewise for "drive_name".
46656
8af2ab7b 466572007-06-11 Robert Millan <rmh@aybabtu.com>
46658
46659 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
46660 not just the cdrom one.
46661
59d31694 466622007-06-11 Robert Millan <rmh@aybabtu.com>
46663
46664 * util/i386/pc/grub-mkrescue.in: Add "set -e".
46665 Add --pkglibdir=DIR option to override pkglibdir.
46666 Mention --image-type=TYPE in help output.
46667 Fix --grub-mkimage (it was a no-op).
fe6b695a 46668 Abort gracefully when no parameter is given.
59d31694 46669
7ee367e4 466702007-06-11 Robert Millan <rmh@aybabtu.com>
46671
46672 * util/i386/pc/grub-mkrescue.in: New file.
46673 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
46674 * Makefile.in: Handle bin_SCRIPTS.
46675
29b0ed46 466762007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
46677
46678 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
46679 list of video modes.
46680
c0f90770 466812007-06-06 Robert Millan <rmh@aybabtu.com>
46682
46683 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
46684 file doesn't exist, or if it is in a filesystem grub can't read.
46685
46686 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
46687 not abort if GRUB_DRIVE could not be defined. Rearrange generated
46688 header comment to fit in 80 columns when the variables are resolved.
46689
46690 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
46691 could be identified by update-grub. Remove redundant check for
fe6b695a 46692 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 46693 handles that).
46694
fb36dc26 466952007-06-04 Robert Millan <rmh@aybabtu.com>
46696
46697 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
46698
46699 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
46700
46701 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
46702
0c68c93e 467032007-06-04 Robert Millan <rmh@aybabtu.com>
46704
46705 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
46706
46707 * include/grub/partition.h: Declare grub_apple_partition_map_init and
46708 grub_apple_partition_map_fini.
46709
46710 * util/biosdisk.c
46711 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
46712 to access >2 TiB disks).
46713
46714 Print disk->total_sectors with %llu instead of %lu, since this
46715 variable is always 64-bit (prevents wrong disk size from being displayed
46716 on either >2 TiB disk or big-endian CPU).
46717
46718 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
46719 into a generic case that supports all (sane) partition maps.
46720
46721 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
46722 breaks big-endian.
46723
46724 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
46725 and grub_apple_partition_map_fini() after that.
46726
0f23eb74 467272007-06-01 Robert Millan <rmh@aybabtu.com>
46728
46729 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
46730
46731 * util/grub.d/00_header.in: Only enable gfxterm when
46732 convert_system_path_to_grub_path() succeeds.
46733
42c71976 467342007-05-20 Robert Millan <rmh@aybabtu.com>
46735
46736 * util/update-grub_lib.in: New file.
46737 * DISTLIST: Add update-grub_lib.in.
46738 * conf/common.rmk: Generate update-grub_lib and install it in
46739 $(lib_DATA).
46740 * Makefile.in: Add install routine for $(lib_DATA).
46741
46742 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
46743 function provided by update-grub_lib to support arbitrary paths of
46744 unifont.pff.
46745 * util/update-grub.in: Use convert_system_path_to_grub_path() to
46746 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
46747
5beb2291 467482007-05-19 Robert Millan <rmh@aybabtu.com>
46749
46750 * commands/i386/cpuid.c: New module.
46751 * DISTLIST: Add it.
46752 * conf/i386-efi.rmk: Enable cpuid.mod.
46753 * conf/i386-pc.rmk: Likewise.
46754
7262eca1 467552007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
46756
46757 * kern/disk.c (grub_disk_read): Check return value of
46758 grub_realloc().
46759
260ba823 467602007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
46761
46762 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
46763 arrays.
46764 * disk/raid.c (grub_raid_open): Likewise.
46765
1ecb6cf2 467662007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
46767
46768 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
46769 stack instead of on the heap.
46770
46771 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
46772 before doing a read on it.
46773
46774 * configure.ac: Only use -fno-stack-protector for the target
46775 environment.
f19dbdb7 46776
21c8cbb1 467772007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
46778
46779 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
46780 __attribute_ ((unused)) to mode_type argument.
46781
46782 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 46783
21c8cbb1 46784 * kern/misc.c (memcmp): Fix prototype.
46785
46786 * include/grub/partition.h [GRUB_UTIL]
46787 (grub_gpt_partition_map_init): Add prototype.
46788 (grub_gpt_partition_map_fini): Likewise.
46789
46790 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
46791 at the right place.
46792
46793 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
46794 (grub_fat_read_data): Likewise.
46795 (grub_fat_find_dir): Likewise.
46796
46797 * font/manager.c (find_glyph): Make table a const.
46798 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 46799
849d55d3 468002007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
46801
46802 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
46803 code, first search for device in /dev/mapper, then in /dev.
46804 (grub_util_get_grub_dev): New function.
46805 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
46806 prototype.
46807 * util/grub-probe.c (probe): Remove check for RAID, call
46808 grub_util_get_grub_dev() instead of
46809 grub_util_biosdisk_get_grub_dev().
46810 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
46811 grub_util_biosdisk_get_grub_dev().
46812 * util/i386/pc/grub-setup.c (main): Likewise.
46813
8fff7c2f 468142007-05-16 Robert Millan <rmh@aybabtu.com>
46815
46816 * DISTLIST: Update for the latest changes.
46817 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
46818 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
46819 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
46820 grub/util/biosdisk.h.
46821 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
46822 grub/util/biosdisk.h.
46823
48e12b52 468242007-05-16 Robert Millan <rmh@aybabtu.com>
46825
46826 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
46827
46b9d128 468282007-05-16 Robert Millan <rmh@aybabtu.com>
46829
46830 * util/i386/efi/grub-install.in: New.
46831 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
46832 newly added grub-install.
46833 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
46834 include.
46835 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
46836 grub/util/biosdisk.h.
46837 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
46838 grub/util/biosdisk.h.
46839
2d1a40a9 468402007-05-16 Robert Millan <rmh@aybabtu.com>
46841
46842 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
46843 * include/grub/util/biosdisk.h: ... here.
46844 * util/i386/pc/biosdisk.c: Moved to ...
46845 * util/biosdisk.c: ... here.
46846 * util/i386/pc/getroot.c: Moved to ...
46847 * util/getroot.c: ... here.
46848 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
46849 * util/grub-mkdevicemap.c: ... here.
46850 * util/i386/pc/grub-probe.c: Moved to ...
46851 * util/grub-probe.c: ... here.
46852
9e26e3bc 468532007-05-15 Robert Millan <rmh@aybabtu.com>
46854
46855 * util/update-grub.in: Remove duplicated line in grub.cfg header
46856 message.
46857
57f96397 468582007-05-13 Robert Millan <rmh@aybabtu.com>
46859
46860 * util/update-grub.in: Fix a few assumptions about the devices holding
46861 /, /boot and /boot/grub being the same.
46862 * util/grub.d/00_header.in: Likewise.
46863 * util/grub.d/10_hurd.in: Likewise.
46864 * util/grub.d/10_linux.in: Likewise.
46865
46866 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
46867 patterns. Use that to define the `.old' suffix as older than `'.
46868
46869 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
46870
46871 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
46872 the grub.cfg header message.
46873
2e610d62 468742007-05-11 Robert Millan <rmh@aybabtu.com>
46875
46876 * util/update-grub.in: Create device.map if it doesn't already exist,
46877 before attempting to run grub-probe.
46878 Check for grub-probe and grub-mkdevicemap with the same code
46879 grub-install is using.
46880 Remove test mode.
46881
3f6a10ef 468822007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
46883
46884 * Makefile.in: Add the datarootdir autoconf variable.
46885
02e7b75e 468862007-05-09 Robert Millan <rmh@aybabtu.com>
46887
46888 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 46889 fail gracefully if dev->disk->partition == NULL.
02e7b75e 46890
75f396cc 468912007-05-07 Robert Millan <rmh@aybabtu.com>
46892
46893 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
46894 determine partition map module.
46895 * util/i386/pc/grub-install.in: Use this feature to decide which
46896 partition module to load, instead of hardcoding pc and gpt.
46897
da65cb36 468982007-05-07 Robert Millan <rmh@aybabtu.com>
46899
46900 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
46901 source directory differs from build directory.
46902
b57d6a91 469032007-05-05 Robert Millan <rmh@aybabtu.com>
46904
46905 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
46906 initialisation.
46907
509d00f1 469082007-05-05 Robert Millan <rmh@aybabtu.com>
46909
46910 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
46911
c48f23ef 469122007-05-05 Robert Millan <rmh@aybabtu.com>
46913
46914 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
46915 command-line arguments via ${GRUB_CMDLINE_LINUX}.
46916
20b97658 469172007-05-05 Robert Millan <rmh@aybabtu.com>
46918
46919 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
46920 (grub_probe_SOURCES): Likewise.
46921 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
46922 GPT and initialize dos_part and bsd_part accordingly.
46923 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
46924 install_bsd_part.
46925 (main): Activate gpt module for use during partition identification,
46926 and deactivate it afterwards.
46927 * util/i386/pc/grub-install.in: Add gpt module to core.img.
46928 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
46929 partition identification, and deactivate it afterwards.
46930
99123174 469312007-05-05 Robert Millan <rmh@aybabtu.com>
46932
46933 * term/i386/pc/console.c (grub_console_fini): Call
46934 grub_term_set_current() before grub_term_unregister().
46935
ebd97f6e 469362007-05-04 Robert Millan <rmh@aybabtu.com>
46937
46938 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
46939 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
46940 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
46941 and update-grub_DATA.
46942 * conf/common.rmk: Build and install update-grub components.
46943 * conf/common.mk: Regenerate.
46944 * util/update-grub.in: New. Core of update-grub.
46945 * util/grub.d/00_header.in: New. Generates grub.cfg header.
46946 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
46947 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
46948 * util/grub.d/README: New. Document grub.d directory layout.
46949
b06a264d 469502007-05-01 Robert Millan <rmh@aybabtu.com>
46951
46952 * util/grub-emu.c: Move initialization functions
46953 grub_util_biosdisk_init() and grub_init_all() before
46954 grub_util_biosdisk_get_grub_dev(), which relies on them.
46955
41f0050e 469562007-04-19 Robert Millan <rmh@aybabtu.com>
46957
46958 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
46959 it is used later.
46960
04582bb3 469612007-04-18 Jerone Young <jerone@gmail.com>
46962
f19dbdb7 46963 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 46964 stanza.
46965
08db4632 469662007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 46967
08db4632 46968 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
46969 continue on and look for device node with real device name.
46970
801b76be 469712007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 46972
fe6b695a 46973 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 46974 ability.
46975 * Makefile.in: Add autoconf package transformation code.
46976 * util/i386/pc/grub-install.in: Likewise.
46977 * util/powerpc/ieee1275/grub-install.in: Likewise.
46978
6795c4e1 469792007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
46980
46981 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
46982 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
46983 (EXT2_REVISION): Likewise.
46984 (EXT2_INODE_SIZE): Likewise.
46985 (struct grub_ext2_block_group): Added a missing member
46986 "used_dirs".
46987 (grub_ext2_read_inode): Divide by the inode size in a superblock
46988 instead of 128 to obtain INODES_PER_BLOCK.
46989 Use the macro EXT2_INODE_SIZE instead of directly using
46990 SBLOCK->INODE_SIZE.
46991
d70af616 469922007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
46993
46994 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
46995 superblock instead of the structure size to compute an
46996 offset. This fixes the problem that GRUB could not read a
46997 filesystem when inode size is different from 128-byte.
46998
3b801603 469992007-03-05 Marco Gerards <marco@gnu.org>
47000
47001 * normal/main.c (read_config_file): When "menu" is not set, create
47002 an initial context.
47003
4785bfe4 470042007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47005
47006 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
47007 (HEAP_LIMIT): New macro.
47008 (grub_claim_heap): Claim memory up to `heaplimit'.
47009
a0cbb023 470102007-02-21 Hollis Blanchard <hollis@penguinppc.org>
47011
47012 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
47013 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
47014 (_start): Likewise.
47015 (grub_arch_modules_addr): Return address after `_end'.
47016 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
47017 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
47018 (add_segments): Calculate `_end' from phdr size and location.
47019 (ALIGN_UP): Moved to ...
47020 * include/grub/misc.h: here.
47021 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47022 New macro.
47023 (GRUB_IEEE1275_MODULE_BASE): Removed.
47024
fd7d8eba 470252007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47026
47027 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
47028 loop boundary.
47029
9b09e6fc 470302007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47031
47032 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
47033 All users updated.
47034 (grub_elf64_load_hook_t): Likewise.
47035 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
47036 debug output.
47037
3ce27299 470382007-02-20 Hollis Blanchard <hollis@penguinppc.org>
47039
47040 * kern/mm.c: Update copyright.
47041 (grub_mm_debug): Correct syntax error.
47042 (grub_mm_dump_free): New function.
47043 (grub_debug_free): Call `grub_free'.
47044 * include/grub/mm.h: Update copyright.
47045 (grub_mm_dump_free): Add declaration.
47046
077d5fee 470472007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47048
47049 * include/grub/ieee1275/ieee1275.h: Update copyright.
47050 * kern/powerpc/ieee1275/init.c: Likewise.
47051 * kern/powerpc/ieee1275/openfw.c: Likewise.
47052
47053 * loader/powerpc/ieee1275/linux.c: Likewise.
47054 * include/grub/elfload.h: Likewise.
47055 * kern/elf.c: Likewise.
47056 (grub_elf32_load): Pass `base' and `size' parameters. Update all
47057 callers.
47058 (grub_elf64_load): Likewise.
47059 (grub_elf32_load_segment): Move to a nested function.
47060 (grub_elf64_load_segment): Likewise.
47061
dc946850 470622007-02-12 Hollis Blanchard <hollis@penguinppc.org>
47063
47064 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
47065 prototype.
47066 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
47067 (grub_heap_len): Likewise.
47068 (HEAP_SIZE): New macro.
47069 (grub_claim_heap): New function.
47070 (grub_machine_init): Don't claim heap directly. Call
47071 `grub_claim_heap'.
47072 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
47073 (grub_available_iterate): New function.
47074
baa2a121 470752007-02-03 Thomas Schwinge <tschwinge@gnu.org>
47076
47077 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
47078 * configure.ac: Use it for testing the HOST and TARGET compilers.
47079
4fe9862e 470802006-12-13 Thomas Schwinge <tschwinge@gnu.org>
47081
47082 * Makefile.in (enable_grub_emu): New variable.
47083 * configure.ac (--enable-grub-emu): New option.
47084 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
47085 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
47086 * conf/i386-pc.rmk: Likewise.
47087 * conf/powerpc-ieee1275.rmk: Likewise.
47088 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
47089
a8aa5762 470902006-12-12 Marco Gerards <marco@gnu.org>
47091
47092 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
47093
47094 * kern/env.c (grub_env_unset): Don't free the member `value' when
47095 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
47096 pointer.
47097
47098 * normal/main.c (current_menu): Removed.
47099 (free_menu): Unset the `menu' environment variable.
47100 (grub_normal_menu_addentry): Make use of the environment variable
47101 `menu', instead of using the global `current_menu'. Allocate
47102 memory for the sourcecode of this entry.
47103 (read_config_file): New argument `nested', changed all callers.
47104 Only in the case of a new context, initialize a new menu. Set the
47105 `menu' environment variable.
47106 (grub_normal_execute): Don't set and unset the environment
47107 variable `menu' here anymore. Only free the menu when leaving the
47108 context.
47109
47110 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
47111 leak.
47112
957b3a3e 471132006-12-11 Marco Gerards <marco@gnu.org>
47114
47115 * normal/menu_entry.c (run): Fix off by one bug so the last line
47116 is executed. Move the loader check to outside the loop.
47117
ef875714 471182006-12-08 Hollis Blanchard <hollis@penguinppc.org>
47119
47120 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
47121
4e739985 471222006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
47123
47124 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
47125 the number of sectors. Reported by Andrey Shuvikov
47126 <mr_hyro@yahoo.com>.
f19dbdb7 47127
790707f2 471282006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
47129
47130 * kern/disk.c (grub_disk_read): When there is a read error, always
47131 try to read only the necessary data.
f19dbdb7 47132
790707f2 47133 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
47134 disk/raid.c.
47135 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
47136 prototype.
47137 [GRUB_UTIL] (grub_raid_fini): Likewise.
47138 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 47139 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 47140 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
47141 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
47142 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
47143 and grub_raid_fini().
f19dbdb7 47144
03e58196 471452006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47146
47147 * include/grub/types.h (__unused): Rename to UNUSED.
47148 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
47149 (grub_elf64_size): Likewise.
f19dbdb7 47150
ae4f23bf 471512006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47152
47153 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
47154 grub_error_push and grub_error_pop in the error-handling path.
47155 (grub_elf32_load_segment): Only call grub_file_read with non-zero
47156 length.
47157
2166cc83 471582006-11-03 Hollis Blanchard <hollis@penguinppc.org>
47159
47160 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
47161 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
47162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47163 (kernel_elf_SOURCES): Likewise.
47164 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
47165 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
47166 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47167 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47168 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
47169 (elf_mod_SOURCES): New variable.
47170 (elf_mod_CFLAGS): Likewise.
47171 (elf_mod_LDFLAGS): Likewise.
47172 * include/grub/types.h (__unused): New macro.
47173 * include/grub/elfload.h: New file.
47174 * kern/elf.c: Likewise.
47175 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
47176 (ELF32_LOADMASK): New macro.
47177 (ELF64_LOADMASK): Likewise.
47178 (vmlinux): Removed.
47179 (grub_linux_load32): New function.
47180 (grub_linux_load64): Likewise.
47181 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
47182 Use grub_elf_t instead of grub_file_t.
47183
a09d5aa5 471842006-11-02 Hollis Blanchard <hollis@penguinppc.org>
47185
47186 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
47187 `catch_result' to struct set_color_args.
47188
d976fc51 471892006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
47190
47191 * normal/menu.c: Include grub/script.h.
47192 * normal/menu_entry.c: Likewise.
47193 * include/grub/normal.h: Do not include grub/script.h.
47194
67507549 471952006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47196
47197 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
47198
69203a99 471992006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47200
47201 * kern/disk.c (grub_disk_open): Print debug messages when opening a
47202 disk.
47203 (grub_disk_close): Print debug messages when closing a disk.
47204 (grub_disk_read): Print debug messages when disk read fails.
47205 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
47206 filesystem type.
47207 * kern/partition.c: Include misc.h.
47208 (grub_partition_iterate): Print debug messages when detecting
47209 partition type.
47210
e2b8278c 472112006-10-27 Hollis Blanchard <hollis@penguinppc.org>
47212
47213 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
47214 is negative.
47215 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
47216
97b2f2ff 472172006-10-26 Hollis Blanchard <hollis@penguinppc.org>
47218
47219 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47220 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
47221
6555d655 472222006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
47223
47224 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
47225 instead of sizeof(lv). Patch by Michael Guntsche.
47226
4d42b77f 472272006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
47228
47229 * disk/lvm.c: Rename VGS to VG_LIST.
47230 (grub_lvm_iterate): Change VGS->LV to VG-LV.
47231 (grub_lvm_open): Likewise.
47232 Thanks to Michael Guntsche for finding this bug.
47233
5d74d927 472342006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47235
47236 * configure.ac (AC_INIT): Bumped to 1.95.
47237
a1bb27e4 472382006-10-14 Robert Millan <rmh@aybabtu.com>
47239
47240 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
47241 with "/dev/.static/dev/md".
47242
e0994b8b 472432006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
47244
47245 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
47246 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
47247 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
47248 DRIVE_NAME are always freed.
47249
47250 * util/i386/pc/biosdisk.c (make_device_name): Add one into
47251 DOS_PART, as a DOS partition is counted from one instead of zero
47252 now. Reported by Robert Millan.
47253
ddd5cee9 472542006-10-14 Robert Millan <rmh@aybabtu.com>
47255
47256 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
47257 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
47258 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
47259 string returned by grub_guess_root_device.
47260 * util/i386/pc/grub-setup.c: Likewise.
47261 * util/i386/pc/grub-probefs.c: Likewise.
47262
47263 * util/i386/pc/grub-probefs.c: Rename to ...
47264 * util/i386/pc/grub-probe.c: ... this.
47265 * DISTLIST: Remove grub-probefs, add grub-probe.
47266 * conf/i386-efi.rmk: Likewise.
47267 * conf/i386-pc.rmk: Likewise.
47268 * util/i386/pc/grub-install.in: Likewise.
47269
47270 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
47271 choose which information we want to print.
47272
2b002173 472732006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
47274
47275 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
47276 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
47277 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
47278 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
47279 video/readers/tga.c and video/i386/pc/vbeutil.c.
47280
472812006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
47282
47283 Added support for RAID and LVM.
f19dbdb7 47284
2b002173 47285 * disk/lvm.c: New file.
47286 * disk/raid.c: Likewise.
47287 * include/grub/lvm.h: Likewise.
f19dbdb7 47288 * include/grub/raid.h: Likewise.
2b002173 47289 * include/grub/util/lvm.h: Likewise.
47290 * include/grub/util/raid.h: Likewise.
47291 * util/lvm.c: Likewise.
47292 * util/raid.c: Likewise.
47293
47294 * include/grub/disk.h (grub_disk_dev_id): Add
47295 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
47296 (grub_disk_get_size): New prototype.
47297 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
47298 returns a partition.
47299 (grub_disk_get_size): New function.
f19dbdb7 47300
2b002173 47301 * kern/i386/pc/init.c (make_install_device): Copy the prefix
47302 verbatim if grub_install_dos_part is -2.
47303
47304 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
47305 and LVM devices.
47306
47307 * util/i386/pc/grub-setup.c (setup): New argument
47308 MUST_EMBED. Force embedding of GRUB when the argument is
47309 true. Close FILE before returning.
47310 (main): Add support for RAID and LVM.
f19dbdb7 47311
2b002173 47312 * conf/common.rmk: Add RAID and LVM modules.
47313 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
47314 util/lvm.c.
47315 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
47316
47317 * kern/misc.c (grub_strstr): New function.
47318 * include/grub/misc.h (grub_strstr): New prototype.
47319
050548d0 473202006-10-10 Tristan Gingold <tristan.gingold@bull.net>
47321
47322 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
47323
da849d2d 473242006-10-05 Tristan Gingold <tristan.gingold@bull.net>
47325
47326 * kern/misc.c (grub_strtoull): Guess the base only if not
47327 specified.
47328
97b2f2ff 473292006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 47330
47331 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
47332 PowerMac support.
47333
97b2f2ff 473342006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 47335
47336 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
47337
47338 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
47339 Remove `flags' argument. All callers changed.
47340 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
47341 (IEEE1275_IHANDLE_INVALID): New variable.
47342 (IEEE1275_CELL_INVALID): New variable.
47343 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
47344 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
47345 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
47346 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
47347 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
47348 codes from Open Firmware. All callers updated.
47349 (grub_ieee1275_next_property): Directly return Open Firmware return
47350 code.
47351 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
47352 Standardize error checking from `grub_ieee1275_get_property'.
47353 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
47354 `devalias' to `aliases'. Correct comments. Consolidate error paths.
47355
97b2f2ff 473562006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 47357
47358 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
47359 `instance_to_package_args' to `instance_to_path_args'.
47360
47361 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
47362 `grub_ieee1275_chosen'.
47363
47364 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
47365 `grub_ieee1275_interpret'.
47366
97b2f2ff 473672006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 47368
47369 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
47370
97b2f2ff 473712006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 47372
47373 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
47374 (__cmpdi): Likewise.
47375
47376 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
47377 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
47378 `grub_ssize_t'.
47379
02bb8acc 47380 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 47381
47382 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
47383 to type `grub_ssize_t'.
47384 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
47385
7f9a8531 473862006-09-22 Marco Gerards <marco@gnu.org>
47387
47388 * normal/script.c (grub_script_create_cmdmenu): Skip leading
47389 newlines.
47390
b5ef1102 473912006-09-22 Marco Gerards <marco@gnu.org>
47392
47393 * commands/echo.c: New file.
47394
47395 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
47396
47397 * conf/common.rmk (echo_mod_SOURCES): New variable.
47398 (echo_mod_CFLAGS): Likewise.
47399 (echo_mod_LDFLAGS): Likewise.
47400
2cff3677 474012006-09-22 Marco Gerards <marco@gnu.org>
47402
47403 * normal/main.c (get_line): Malloc memory instead of using
47404 preallocated memory. Removed the arguments `cmdline' and
47405 `max_len'. Updated all callers.
47406
6ba4688b 474072006-09-22 Marco Gerards <marco@gnu.org>
47408
47409 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
47410 (normal_mod_DEPENDENCIES): Likewise.
47411
47412 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
47413 (normal_mod_DEPENDENCIES): Likewise.
47414
47415 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
47416
e02ac02c 474172006-09-22 Johan Rydberg <jrydberg@gnu.org>
47418
47419 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
47420 programs.
47421 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
47422 (normal_mod_DEPENDENCIES): Likewise.
47423 * conf/i386-pc.mk: Regenerate.
47424 * conf/i386-efi.mk: Likewise
47425 * conf/common.mk: Likewise.
47426 * conf/powerpc-ieee1275.mk: Likewise.
47427 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 47428
8d252e44 474292006-09-22 Robert Millan <rmh@aybabtu.com>
47430
47431 Sync with i386 version.
47432 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
47433 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
47434
209bf7ac 474352006-09-21 Robert Millan <rmh@aybabtu.com>
47436
47437 Import from GRUB Legacy (lib/device.c):
47438 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
47439 (init_device_map) [__linux__]: Add support for I2O devices.
47440
6b146090 474412006-09-14 Marco Gerards <marco@gnu.org>
47442
47443 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
47444 `-melf_i386'.
47445
e38600a8 474462006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 47447
47448 * util/i386/pc/grub-install.in: Skip menu.lst when removing
47449 /boot/grub/*.lst.
78fa1790 47450
2952da5d 47451 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 47452
2952da5d 47453 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
47454 before adding it to device.map.
47455
01b82a64 474562006-08-15 Johan Rydberg <jrydberg@gnu.org>
47457
fe6b695a 47458 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 47459 compiles a file; using the -MD option.
47460 * conf/common.mk: Regenerate.
47461 * conf/i386-pc.mk: Likewise.
47462 * conf/i386-efi.mk: Likewise.
47463 * conf/powerpc-ieee1275.mk: Likewise.
47464 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 47465
1064790d 474662006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
47467
47468 Move the prototypes of grub_setjmp and grub_longjmp to
47469 cpu/setjmp.h, so that each architecture may specify different
47470 attributes.
f19dbdb7 47471
1064790d 47472 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
47473 (grub_longjmp): Likewise.
47474 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
47475 (grub_longjmp): Likewise.
47476 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
47477 (grub_longjmp): Likewise.
47478
47479 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
47480 [!GRUB_UTIL] (grub_longjmp): Removed.
47481
29dda3ed 474822006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
47483
47484 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
47485 "color!" method does not return any value.
47486
ad2a06ed 474872006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47488
47489 * include/grub/bitmap.h: New file.
47490
47491 * include/grub/i386/pc/vbeutil.h: Likewise.
47492
47493 * video/bitmap.c: Likewise.
47494
47495 * video/readers/tga.c: Likewise.
47496
47497 * video/i386/pc/vbeutil.c: Likewise.
47498
47499 * commands/videotest.c: Code cleanup and updated to reflect to new
47500 video API.
47501
47502 * term/gfxterm.c: Likewise.
47503
47504 * video/video.c: Likewise.
47505
47506 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
47507 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
47508 (bitmap_mod_SOURCES): New entry.
47509 (bitmap_mod_CFLAGS): Likewise.
47510 (bitmap_mod_LDFLAGS): Likewise.
47511 (tga_mod_SOURCES): Likewise.
47512 (tga_mod_CFLAGS): Likewise.
47513 (tga_mod_LDFLAGS): Likewise.
47514
47515 * include/grub/video.h (grub_video_blit_operators): New enum type.
47516 (grub_video_render_target): Changed as forward declaration and moved
47517 actual definition to be video driver specific.
47518 (grub_video_adapter.blit_bitmap): Added blitting operator.
47519 (grub_video_adapter.blit_render_target): Likewise.
47520 (grub_video_blit_bitmap): Likewise.
47521 (grub_video_blit_render_target): Likewise.
47522
47523 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
47524 driver specific render target definition.
47525 (grub_video_vbe_map_rgba): Added driver internal helper.
47526 (grub_video_vbe_unmap_color): Updated to use
47527 grub_video_i386_vbeblit_info.
47528 (grub_video_vbe_get_video_ptr): Likewise.
47529
47530 * include/grub/i386/pc/vbeblit.h
47531 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
47532 grub_video_i386_vbeblit_info.
47533 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
47534 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
47535 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
47536 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
47537 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
47538 (grub_video_i386_vbeblit_index_index): Likewise.
47539 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
47540 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
47541 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
47542 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
47543 operator.
47544 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
47545 operator.
47546
47547 * video/i386/pc/vbeblit.c: Updated to reflect changes on
47548 include/grub/i386/pc/vbeblit.h.
47549
47550 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
47551 Updated to use grub_video_i386_vbeblit_info.
47552 (grub_video_i386_vbefill_R8G8B8): Likewise.
47553 (grub_video_i386_vbefill_index): Likewise.
47554 (grub_video_i386_vbefill): Added generic filler.
47555
47556 * video/i386/pc/vbefill.c: Updated to reflect changes on
47557 include/grub/i386/pc/vbefill.h.
47558
47559 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
47560 grub_video_i386_vbeblit_info.
47561 (grub_video_vbe_unmap_color): Likewise.
47562 (grub_video_vbe_blit_glyph): Likewise.
47563 (grub_video_vbe_scroll): Likewise.
47564 (grub_video_vbe_draw_pixel): Removed function.
47565 (grub_video_vbe_get_pixel): Likewise.
47566 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
47567 updated code to use it.
47568 (common_blitter): Added common blitter for render target and bitmap.
47569 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
47570 (grub_video_vbe_blit_render_target): Likewise.
47571
bc8c036d 475722006-07-30 Johan Rydberg <jrydberg@gnu.org>
47573
47574 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
47575 is in text mode if there is no console control protocol instance
47576 available.
47577
684a8eff 475782006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47579
47580 * include/grub/video.h: Code cleanup.
47581
47582 * include/grub/i386/pc/vbe.h: Likewise.
47583
47584 * video/i386/pc/vbe.c: Likewise.
47585
47586 * video/i386/pc/vbeblit.c: Likewise.
47587
47588 * video/i386/pc/vbefill.c: Likewise.
47589
47590 * video/video.c: Likewise. Also added more comments.
47591
5915059b 475922006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
47593
47594 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
47595 (struct grub_biosdisk_dap): Likewise.
47596
47597 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
47598 linkage settings for all functions.
47599
90ce5d56 476002006-07-12 Marco Gerards <marco@gnu.org>
47601
47602 * configure.ac (--enable-mm-debug): Fix typo.
47603
47604 * genkernsyms.sh.in: Use proper quoting for `CC'.
47605
43e7f879 476062006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
47607
47608 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
47609 (normal_mod_ASFLAGS): Remove "-m32".
47610
4889bdec 476112006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
47612
47613 * util/misc.c: Include config.h.
47614 [!HAVE_MEMALIGN]: Do not include malloc.h.
47615 (grub_memalign): Use posix_memalign, if present. Then, use
47616 memalign, if present. Otherwise, emit an error.
47617
47618 * util/grub-emu.c: Do not include malloc.h.
47619
47620 * include/grub/util/misc.h: Include unistd.h. This is required for
47621 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
47622 D. Eades III <hde@foobar-qux.org>.
47623
47624 * configure.ac (AC_GNU_SOURCE): Added.
47625 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
47626 type.
47627
fd39d4da 476282006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
47629
47630 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
47631 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
47632
b786f3b5 476332006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
47634
47635 * include/grub/types.h (grub_host_addr_t): Rename to
47636 grub_target_addr_t.
47637 (grub_host_off_t): Rename to grub_target_off_t.
47638 (grub_host_size_t): Rename to grub_target_size_t.
47639 (grub_host_ssize_t): Rename to grub_target_ssize_t.
47640 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
47641
47642 * include/grub/kernel.h (struct grub_module_header): Change type
47643 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
47644 (grub_module_info): Likewise.
f19dbdb7 47645
051988bb 476462006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
47647
47648 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
47649 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
47650 Velazquez <jesus.velazquez@gmail.com>.
47651
deae281b 476522006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
47653
47654 Count partitions from 1 instead of 0 in the string representation
47655 of partitions. Still use 0-based internally.
f19dbdb7 47656
deae281b 47657 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
47658 (sun_partition_map_iterate): Use grub_partition_t instead of
47659 struct grub_partition *. Cast DESC->START_CYLINDER to
47660 grub_uint64_t after converting the endian.
47661 (sun_partition_map_probe): Subtract 1 for PARTNUM.
47662 (sun_partition_map_get_name): Add 1 to P->INDEX.
47663
47664 * partmap/pc.c (grub_partition_parse): Subtract 1 for
47665 PCDATA->DOS_PART.
47666 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
47667
47668 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
47669 zero instead of one.
47670 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
47671 (gpt_partition_map_get_name): Add 1 into P->INDEX.
47672
47673 * partmap/apple.c (apple_partition_map_iterate): Change the type
47674 of POS to unsigned.
47675 (apple_partition_map_probe): Subtract 1 for PARTNUM.
47676 (apple_partition_map_get_name): Add 1 into P->INDEX.
47677
47678 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
47679 of POS to unsigned.
47680 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
47681 calculate the offset of a partition.
47682 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
47683 (amiga_partition_map_get_name): Add 1 into P->INDEX.
47684
47685 * partmap/acorn.c (acorn_partition_map_find): Change the type of
47686 SECTOR to grub_disk_addr_t.
47687 (acorn_partition_map_iterate): Likewise.
47688 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
47689 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
47690 top.
47691 (acorn_partition_map_get_name): Add 1 into P->INDEX.
47692
47693 * kern/i386/pc/init.c (make_install_device): Add 1 into
47694 GRUB_INSTALL_DOS_PART.
47695
47696 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
47697 conditional.
47698
524a1e6a 476992006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
47700
47701 Clean up the code to support 64-bit addressing in disks and
47702 files. This change is not enough for filesystems yet.
f19dbdb7 47703
524a1e6a 47704 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
47705 type of "start" to grub_uint64_t.
47706 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
47707 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
47708 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
47709 convert addresses.
47710
47711 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
47712 to grub_disk_addr_t.
47713
47714 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
47715 string.
47716
47717 * partmap/pc.c (pc_partition_map_iterate): Likewise.
47718
47719 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
47720 to char *.
47721
47722 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
47723
47724 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
47725
47726 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
47727
47728 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
47729 to grub_off_t, to detect an error from grub_file_seek.
47730 (grub_multiboot_load_elf32): Likewise.
47731
47732 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
47733 maximum unsigned long value when an overflow is detected.
47734 (grub_strtoull): New function.
47735 (grub_divmod64): Likewise.
47736 (grub_lltoa): use grub_divmod64.
47737
47738 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
47739 grub_disk_addr_t.
47740 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
47741 the pointer to next character. Use grub_strtoull instead of
47742 grub_strtoul.
47743 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
47744 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
47745 respectively.
47746
fe6b695a 47747 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 47748 return value is signed.
47749 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
47750 test if OFFSET is less than zero, as OFFSET is unsigned now.
47751
47752 * kern/disk.c (struct grub_disk_cache): Change the type of
47753 "sector" to grub_disk_addr_t.
47754 (grub_disk_cache_get_index): Change the type of SECTOR to
47755 grub_disk_addr_t. Calculate the hash with SECTOR casted to
47756 unsigned after shifting.
47757 (grub_disk_cache_invalidate): Change the type of SECTOR to
47758 grub_disk_addr_t.
47759 (grub_disk_cache_unlock): Likewise.
47760 (grub_disk_cache_store): Likewise.
47761 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
47762 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
47763 grub_disk_addr_t and grub_uint64_t, respectively.
47764 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
47765 body, as the value of OFFSET is tweaked by
47766 grub_disk_check_range. Change the types of START_SECTOR, LEN and
47767 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
47768 respectively.
47769 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
47770 body, as the value of OFFSET is tweaked by
47771 grub_disk_check_range. Change the types of LEN and N to
47772 grub_size_t.
47773
47774 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
47775 and "saved_offset" to grub_off_t.
47776 (test_header): Cast BUF to char *.
47777 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
47778 to char *.
47779 (grub_gzio_read): Change the types of OFFSET and SIZE to
47780 grub_off_t and grub_size_t, respectively.
47781
47782 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
47783 Removed.
47784 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
47785 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
47786 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
47787 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
47788 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
47789
47790 * include/grub/types.h (grub_off_t): Unconditionally set to
47791 grub_uint64_t.
47792 (grub_disk_addr_t): Changed to grub_uint64_t.
47793
47794 * include/grub/partition.h (struct grub_partition): Change the
47795 types of "start", "len" and "offset" to grub_disk_addr_t,
47796 grub_uint64_t and grub_disk_addr_t, respectively.
47797 (grub_partition_get_start): Return grub_disk_addr_t.
47798 (grub_partition_get_len): Return grub_uint64_t.
47799
47800 * include/grub/misc.h (grub_strtoull): New prototype.
47801 (grub_divmod64): Likewise.
47802
47803 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
47804 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
47805 grub_off_t, respectively.
47806 All callers and references changed.
47807
47808 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
47809 grub_size_t in "read".
47810 All callers and references changed.
47811
47812 * include/grub/file.h (struct grub_file): Change the types of
47813 "offset" and "size" to grub_off_t and grub_off_t,
47814 respectively. Change the type of SECTOR to grub_disk_addr_t in
47815 "read_hook".
47816 (grub_file_read): Change the type of LEN to grub_size_t.
47817 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
47818 grub_off_t.
47819 (grub_file_size): Return grub_off_t.
47820 (grub_file_tell): Likewise.
47821 All callers and references changed.
47822
47823 * include/grub/disk.h (struct grub_disk_dev): Change the types of
47824 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
47825 "write".
47826 (struct grub_disk): Change the type of "total_sectors" to
47827 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 47828 "read_hook".
524a1e6a 47829 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
47830 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
47831 (grub_disk_write): Likewise.
47832 All callers and references changed.
47833
47834 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
47835 char * for grub_strncmp to silence gcc.
47836 (grub_iso9660_mount): Likewise.
47837 (grub_iso9660_mount): Likewise.
47838 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
47839 return statement.
47840 (grub_iso9660_iterate_dir): Likewise.
47841 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
47842
47843 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
47844 LEN to grub_disk_addr_t and grub_size_t, respectively.
47845
47846 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47847
47848 * fs/jfs.c (grub_jfs_read_file): Likewise.
47849
47850 * fs/minix.c (grub_jfs_read_file): Likewise.
47851
47852 * fs/sfs.c (grub_jfs_read_file): Likewise.
47853
47854 * fs/ufs.c (grub_jfs_read_file): Likewise.
47855
47856 * fs/xfs.c (grub_jfs_read_file): Likewise.
47857
47858 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
47859 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
47860 respectively.
47861
47862 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
47863 BLKNR to -1 instead of returning GRUB_ERRNO.
47864 (grub_ext2_read_file): Change the types of SECTOR and
47865 LEN to grub_disk_addr_t and grub_size_t, respectively.
47866
47867 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
47868 LEN to grub_disk_addr_t and grub_size_t, respectively.
47869
47870 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
47871 grub_file_read.
47872
47873 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
47874 string. Do not cast SECTOR explicitly.
47875
47876 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
47877 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
47878 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
47879 grub_disk_addr_t and grub_size_t, respectively. If the sector is
47880 over 2TB and LBA mode is not supported, raise an error.
47881 (get_safe_sectors): New function.
47882 (grub_biosdisk_read): Use get_safe_sectors.
47883 (grub_biosdisk_write): Likewise.
47884
47885 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
47886 (grub_efidisk_write): Likewise.
47887
47888 * disk/loopback.c (delete_loopback): Cosmetic changes.
47889 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
47890 correctly.
47891 (grub_loopback_open): Likewise.
47892 (grub_loopback_read): Likewise. Also, change the type of POS to
47893 grub_off_t, and fix the usage of grub_memset.
47894
47895 * commands/i386/pc/play.c: Include grub/machine/time.h.
47896
47897 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
47898 print FILE->SIZE.
47899
47900 * commands/configfile.c: Include grub/env.h.
47901
47902 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
47903 GRUB_ERRNO directly instead. Change the type of POS to
47904 grub_off_t. Follow the coding standard.
47905
47906 * commands/blocklist.c: Include grub/partition.h.
47907 (grub_cmd_blocklist): Return an error if the underlying device is
47908 not a disk. Take the starting sector of a partition into account,
47909 if a partition is used.
47910
47911 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
47912 a length field.
47913 (lba_mode): Support 64-bit addresses.
47914 (chs_mode): Likewise.
47915 (copy_buffer): Adapted to the new offsets of a length field and a
47916 segment field.
47917 (blocklist_default_start): Allocate 64-bit space.
47918
47919 * boot/i386/pc/boot.S (force_lba): Removed.
47920 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 47921 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 47922 space.
47923 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
47924 is useless.
47925 (lba_mode): Refactored to support a 64-bit address. More size
47926 optimization.
47927 (setup_sectors): Likewise.
47928
53af98ad 479292006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
47930
47931 * DISTLIST: Added include/grub/i386/linux.h. Removed
47932 include/grub/i386/pc/linux.h
47933
47934 * configure.ac (AC_INIT): Bumped to 1.94.
47935
47936 * config.guess: Updated from gnulib.
47937 * config.sub: Likewise.
47938 * install-sh: Likewise.
47939 * mkinstalldirs: Likewise.
47940
b4c1940a 479412006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
47942
47943 * conf/common.rmk (grub_modules_init.lst): Depended on
47944 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
47945 MODSRCFILES.
47946
47947 * genmk.rb (PModule::rule): Reverted the previous change.
47948
cfca1cfd 479492006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
47950
47951 * conf/common.rmk (grub_modules_init.lst): Depends on
47952 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
47953 that the target does not exist before producing.
47954 (grub_modules_init.h): Remove the target before generating.
47955 (grub_emu_init.c): Likewise.
47956
47957 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
47958
aa6d7826 479592006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
47960
47961 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
47962 for the target-specific tests. Make sure that we also have the
47963 up-to-date target variables for those tests.
47964
26c607b9 479652006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
47966
47967 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
47968 (PModule::rule): Likewise.
47969
0162321a 479702006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
47971
47972 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
47973 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
47974 target-specific flags should be prefixed.
47975 (PModule::rule): Likewise.
47976
6c826348 479772006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
47978
47979 * configure.ac (CMP): Check if cmp is available explicitly.
47980
b977bf01 479812006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
47982
47983 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
47984 (target_cpu): New variable.
47985 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 47986
b977bf01 47987 * util/i386/pc/grub-install.in (host_cpu): Removed.
47988 (target_cpu): New variable.
47989 (pkglibdir): Use target_cpu instead of host_cpu.
47990
47991 * util/genmoddep.c: Removed.
f19dbdb7 47992
b977bf01 47993 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
47994 instead of GRUB_HOST_SIZEOF_VOID_P.
47995 * kern/dl.c: Likewise.
47996
47997 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
47998 ...
47999 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48000 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48001 (GRUB_TARGET_SIZEOF_LONG): ... this.
48002 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48003 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48004 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48005 to ...
48006 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48007 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48008 (GRUB_TARGET_SIZEOF_LONG): ... this.
48009 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48010 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48011 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
48012 to ...
48013 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
48014 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
48015 (GRUB_TARGET_SIZEOF_LONG): ... this.
48016 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
48017 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
48018
48019 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
48020 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
48021 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
48022 instead of GRUB_HOST_SIZEOF_LONG.
48023 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
48024 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
48025 GRUB_CPU_WORDS_BIGENDIAN.
48026 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
48027 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
48028 grub_host_ssize_t.
48029
48030 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
48031 (genmoddep_SOURCES): Likewise.
48032 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
48033 (genmoddep_SOURCES): Likewise.
48034 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
48035 (genmoddep_SOURCES): Likewise.
48036 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
48037 Likewise.
48038 (genmoddep_SOURCES): Likewise.
48039
48040 * genmoddep.awk: New file.
48041
48042 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
48043 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
48044 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
48045 (PModule::rule): Likewise.
48046 (Program::rule): Likewise.
48047 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
48048 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
48049 respectively.
48050
48051 * configure.ac: Rewritten intensively to use host and target
48052 instead of build and host, respectively.
48053
48054 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
48055 (host_cpu): Removed.
48056 (target_cpu): New variable.
48057 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
48058 (BUILD_CC): Removed.
48059 (BUILD_CFLAGS): Likewise.
48060 (BUILD_CPPFLAGS): Likewise.
48061 (TARGET_CC): New variable.
48062 (TARGET_CFLAGS): Likewise.
48063 (TARGET_CPPFLAGS): Likewise.
48064 (TARGET_LDFLAGS): Likewise.
48065 (AWK): Likewise.
48066 (include): Use target_cpu instead of host_cpu.
48067 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 48068
b977bf01 48069 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
48070
f09771a1 480712006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
48072
48073 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
48074 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
48075 field 'false' to 'exec_on_false'.
48076 (grub_script_create_cmdif): Renamed argument names to reflect above
48077 changes.
48078
48079 * normal/execute.c (grub_script_execute_cmdif): Likewise.
48080
48081 * normal/script.c (grub_script_create_cmdif): Likewise.
48082
118f4fb3 480832006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
48084
48085 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
48086 top.
48087 (grub_hfsplus_btree_recptr): Likewise.
48088 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
48089 FILEBLOCK both to pass a block number and store next block
48090 number.
48091 (grub_hfsplus_read_block): Rewritten heavily to support an extent
48092 overflow file correctly. Specify errors appropriately, because
48093 fshelp expects that GRUB_ERRNO is set when fails. Reuse
48094 grub_hfsplus_btree_recptr to get the pointer to a found key.
48095 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
48096 is found.
48097
48098 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
48099 linux.mod.
48100 (_linux_mod_SOURCES): New variable.
48101 (_linux_mod_CFLAGS): Likewise.
48102 (_linux_mod_LDFLAGS): Likewise.
48103 (linux_mod_SOURCES): Likewise.
48104 (linux_mod_CFLAGS): Likewise.
48105 (linux_mod_LDFLAGS): Likewise.
48106
48107 * DISTLIST: Added loader/i386/efi/linux.c,
48108 loader/i386/efi/linux_normal.c and
48109 include/grub/i386/efi/loader.h.
48110
48111 * loader/i386/efi/linux.c: New file.
48112 * loader/i386/efi/linux_normal.c: Likewise.
48113 * include/grub/i386/efi/loader.h: Likewise.
48114
89a7d726 481152006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
48116
48117 * commands/blocklist.c: New file.
48118
48119 * DISTLIST: Added commands/blocklist.c.
48120
48121 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 48122 color for the background, and a darker color for the foreground.
89a7d726 48123 (grub_console_checkkey): Return READ_KEY.
48124 (grub_console_cls): Set the background to
48125 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
48126
48127 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
48128
48129 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
48130 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
48131
48132 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
48133 prototype.
48134
48135 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
48136 BG. The spec is wrong again.
48137
48138 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
48139 prototype.
48140 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
48141
48142 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48143 commands/blocklist.c.
48144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 48145
89a7d726 48146 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
48147 (blocklist_mod_SOURCES): New variable.
48148 (blocklist_mod_CFLAGS): Likewise.
48149 (blocklist_mod_LDFLAGS): Likewise.
48150
75c8f258 481512006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
48152
48153 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
48154 duplication.
48155 (lba_mode): Use %eax more intensively to reduce the code size.
48156
da2eb181 481572006-05-20 Marco Gerards <marco@gnu.org>
48158
48159 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
48160
48161 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
48162 for `menuentry'.
48163 (script): Accept leading newlines.
48164 (newlines): New rule to describe 0 or more newlines.
48165 (commands): Accept `command' with trailing newline. Fixed the
48166 order in which arguments were passed to `grub_script_add_cmd'.
48167 Accept commands separated by newlines.
48168 (function): Changed to accept newlines.
48169 (menuentry) Rewritten.
48170
48171 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
48172 front of the list, instead of to the end.
48173
577b4050 481742006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
48175
48176 * util/i386/pc/grub-install.in (bindir): New variable.
48177 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
48178 Shaver <lbgwjl@gmail.com>.
48179
0d6e1189 481802006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
48181
48182 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
48183 grub/machine/linux.h
48184 * loader/i386/pc/linux.c: Likewise.
48185
48186 * include/grub/i386/pc/linux.h: Moved to ...
48187 * include/grub/i386/linux.h: ... here.
48188
48189 * include/grub/i386/linux.h (struct linux_kernel_params): New
48190 struct.
f19dbdb7 48191
31b86e9f 481922006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
48193
48194 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
48195 checking.
48196 (grub_video_vbe_blit_glyph): Likewise.
48197 (grub_video_vbe_blit_bitmap): Likewise.
48198 (grub_video_vbe_blit_render_target): Likewise.
48199
83b984de 482002006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
48201
48202 * configure.ac (--with-platform): Properly quote the square
48203 brackets.
48204
5f0413bd 482052006-05-08 Marco Gerards <marco@gnu.org>
48206
48207 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
48208 this...
48209 (kernel_elf_HEADERS): ...to this. Updated all users.
48210 (grubof_symlist.c): Renamed from this...
48211 (kernel_elf_symlist.c): ...to this. Updated all users.
48212 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
48213 (grubof_SOURCES): Renamed from this...
48214 (kernel_elf_SOURCES): ...to this.
48215 (grubof_HEADERS): Renamed from this...
48216 (kernel_elf_HEADERS): ...to this.
48217 (grubof_CFLAGS): Renamed from this...
48218 (kernel_elf_CFLAGS): ...to this.
48219 (grubof_ASFLAGS): Renamed from this...
48220 (kernel_elf_ASFLAGS): ...to this.
48221 (grubof_LDFLAGS): Renamed from this...
48222 (kernel_elf_LDFLAGS): ...to this.
48223
48224 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
48225 this...
48226 (kernel_elf_HEADERS): ...to this. Updated all users.
48227 (grubof_symlist.c): Renamed from this...
48228 (kernel_elf_symlist.c): ...to this. Updated all users.
48229 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
48230 (grubof_SOURCES): Renamed from this...
48231 (kernel_elf_SOURCES): ...to this.
48232 (grubof_HEADERS): Renamed from this...
48233 (kernel_elf_HEADERS): ...to this.
48234 (grubof_CFLAGS): Renamed from this...
48235 (kernel_elf_CFLAGS): ...to this.
48236 (grubof_ASFLAGS): Renamed from this...
48237 (kernel_elf_ASFLAGS): ...to this.
48238 (grubof_LDFLAGS): Renamed from this...
48239 (kernel_elf_LDFLAGS): ...to this.
48240
48241 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
48242 `kernel.elf' instead of `grubof'.
48243
05568c2e 482442006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
48245
48246 Add --with-platform to configure. Use pkglibdir instead of
48247 pkgdatadir. This is reported by Roger Leigh.
48248
48249 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
48250 (host_vendor): Likewise.
48251 (host_os): Likewise.
48252 (pkgdatadir): Likewise.
48253 (platform): New variable.
48254 (pkglibdir): Likewise.
48255 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 48256
05568c2e 48257 * util/i386/pc/grub-install.in (datadir): Removed.
48258 (host_vendor): Likewise.
48259 (host_os): Likewise.
48260 (pkgdatadir): Likewise.
48261 (platform): New variable.
48262 (pkglibdir): Likewise.
48263 Use PKGLIBDIR instead of PKGDATADIR.
48264
48265 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
48266 instead of GRUB_DATADIR.
48267 (main): Likewise.
48268 * util/i386/pc/grub-mkimage.c (usage): Likewise.
48269 (main): Likewise.
48270 * util/i386/efi/grub-mkimage.c (usage): Likewise.
48271 (main): Likewise.
48272
48273 * configure.ac (--with-platform): New option.
48274 Use PLATFORM instead of HOST_VENDOR to specify a platform.
48275
48276 * Makefile.in: Include a makefile based on PLATFORM instead of
48277 HOST_VENDOR.
48278 (pkgdatadir): Not appended by the machine type.
48279 (pkglibdir): Appended by the machine type.
48280 (host_vendor): Removed.
48281 (platform): New variable.
48282 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
48283 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
48284 (uninstall): Likewise.
48285
4e93851c 482862006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
48287
48288 Use the environment context in the menu. Remove the commands
48289 "default" and "timeout", and use variables instead.
f19dbdb7 48290
4e93851c 48291 * normal/menu.c: Include grub/env.h.
48292 (print_entry): Cast TITLE to silence gcc.
48293 (get_timeout): New function.
48294 (set_timeout): Likewise.
48295 (get_entry_number): Likewise.
48296 (run_menu): Use a default entry, a fallback entry and a timeout
48297 in the environment variables "default", "fallback" and
48298 "timeout". Also, tweak the default entry if it is not within the
48299 current menu entries.
48300 (grub_menu_run): Use a fallback entry in the environment variable
48301 "fallback".
48302
48303 * normal/main.c (read_config_file): Do not initialize
48304 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
48305 NEWMENU->TIMEOUT.
48306 (grub_normal_execute): Use a data slot to store the menu.
48307
48308 * include/grub/normal.h (struct grub_menu): Removed default_entry,
48309 fallback_entry and timeout.
48310 (struct grub_menu_list): Removed.
48311 (grub_menu_list_t): Likewise.
48312 (struct grub_context): Likewise.
48313 (grub_context_t): Likewise.
48314 (grub_context_get): Likewise.
48315 (grub_context_get_current_menu): Likewise.
48316 (grub_context_push_menu): Likewise.
48317 (grub_context_pop_menu): Likewise.
48318 (grub_default_init): Likewise.
48319 (grub_default_fini): Likewise.
48320 (grub_timeout_init): Likewise.
48321 (grub_timeout_fini): Likewise.
48322
48323 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
48324 and timeout.mod.
48325 (normal_mod_SOURCES): Removed normal/context.c.
48326
48327 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
48328 commands/default.c, commands/timeout.c and normal/context.c.
48329 (normal_mod_SOURCES): Removed normal/context.c.
48330
48331 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
48332 commands/timeout.c and normal/context.c.
48333 (normal_mod_SOURCES): Removed normal/context.c.
48334
48335 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
48336 commands/default.c, commands/timeout.c and normal/context.c.
48337 (normal_mod_SOURCES): Removed normal/context.c.
48338
48339 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
48340 timeout.mod.
48341 (default_mod_SOURCES): Removed.
48342 (default_mod_CFLAGS): Likewise.
48343 (default_mod_LDFLAGS): Likewise.
48344 (timeout_mod_SOURCES): Removed.
48345 (timeout_mod_CFLAGS): Likewise.
48346 (timeout_mod_LDFLAGS): Likewise.
48347
48348 * DISTLIST: Removed commands/default.c, commands/timeout.c and
48349 normal/context.c.
48350
48351 * commands/default.c: Removed.
48352 * commands/timeout.c: Likewise.
48353 * normal/context.c: Likewise.
48354
1eb9cc1d 483552006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
48356
48357 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
48358
385bd9c1 483592006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
48360
48361 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
48362 "next" to "prev" for readability.
48363 (struct grub_env_sorted_var): New struct.
48364 (grub_env_context): Renamed to ...
48365 (initial_context): ... this.
48366 (grub_env_var_context): Renamed to ...
48367 (current_context): ... this.
48368 (grub_env_find): Look only at CURRENT_CONTEXT.
48369 (grub_env_context_open): Rewritten to copy exported variables from
48370 previous context.
48371 (grub_env_context_close): Rewritten according to the new
48372 scheme. Also, add an assertion to prevent the initial context from
48373 removed.
48374 (grub_env_insert): Removed the code for the sorted list.
48375 (grub_env_remove): Likewise.
48376 (grub_env_export): Simply mark the variable with
48377 GRUB_ENV_VAR_GLOBAL.
48378 (grub_env_set): A cosmetic change for naming consistency.
48379 (grub_env_get): Likewise.
48380 (grub_env_unset): Likewise.
48381 (grub_env_iterate): Rewritten to sort variables within this
48382 function.
48383 (grub_register_variable_hook): Fixed for naming consistency. Call
48384 grub_env_find again, only if NAME is not found at the first time.
48385 (mangle_data_slot_name): New function.
48386 (grub_env_set_data_slot): Likewise.
48387 (grub_env_get_data_slot): Likewise.
48388 (grub_env_unset_data_slot): Likewise.
48389
48390 * include/grub/env.h (grub_env_var_type): New enum.
48391 (GRUB_ENV_VAR_LOCAL): New constant.
48392 (GRUB_ENV_VAR_GLOBAL): Likewise.
48393 (GRUB_ENV_VAR_DATA): Likewise.
48394 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
48395 "type".
48396 (grub_env_set): Replace VAR with NAME for consistency.
48397 (grub_register_variable_hook): Likewise.
48398 (grub_env_export): Specify the name of the argument.
48399 (grub_env_set_data_slot): New prototype.
48400 (grub_env_get_data_slot): Likewise.
48401 (grub_env_unset_data_slot): Likewise.
48402
7f362539 484032006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
48404
48405 Extend the loader so that GRUB can accept a loader which comes
48406 back to GRUB when a loaded image exits. Also, this change adds
48407 support for a chainloader on EFI.
f19dbdb7 48408
7f362539 48409 * term/efi/console.c: Include grub/misc.h.
48410 (grub_console_checkkey): Display a scan code on the top for
48411 debugging. This will be removed once the EFI port gets stable.
48412 Correct the scan code mapping.
48413
48414 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
48415 allocate memory from larger regions, in order to reduce the number
48416 of allocated regions. Otherwise, the MacOSX loader panics.
48417 (filter_memory_map): Avoid less than 1MB for compatibility with
48418 other loaders.
48419 (add_memory_regions): Allocate from the tail of a region, if
48420 possible, to avoid allocating a region near to 1MB, for the MacOSX
48421 loader.
48422
48423 * kern/efi/init.c (grub_efi_set_prefix): Specify
48424 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
48425
48426 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
48427 argument IMAGE_HANDLE and specify it to get a loaded image.
48428 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
48429 grub_efi_get_loaded_image.
fe6b695a 48430 (grub_efi_get_filename): Divide the length by the size of
7f362539 48431 grub_efi_char16_t.
48432 (grub_efi_get_device_path): New function.
48433 (grub_efi_print_device_path): Print End Device Path nodes. Divide
48434 the length by the size of grub_efi_char16_t for a file path device
48435 path node.
48436
48437 * kern/loader.c (grub_loader_noreturn): New variable.
48438 (grub_loader_set): Accept a new argument NORETURN. Set
48439 GRUB_LOADER_NORETURN to NORETURN.
48440 All callers changed.
48441 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
48442 grub_machine_fini.
48443
48444 * include/grub/efi/efi.h (grub_efi_get_device_path): New
48445 prototype.
48446 (grub_efi_get_loaded_image): Take an argument to specify an image
48447 handle.
48448
48449 * include/grub/loader.h (grub_loader_set): Added one more argument
48450 NORETURN.
48451
48452 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
48453 instead of grub_efi_open_protocol.
48454 (grub_efidisk_get_device_name): Likewise.
48455 (grub_efidisk_close): Print a newline.
48456 (grub_efidisk_get_device_handle): Fixed to use
48457 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
48458 GRUB_EFI_DEVICE_PATH_TYPE.
48459
48460 * disk/efi/efidisk.c (device_path_guid): Moved to ...
48461 * kern/efi/efi.c (device_path_guid): ... here.
48462
48463 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
48464 chain.mod.
48465 (kernel_mod_HEADERS): Added efi/disk.h.
48466 (_chain_mod_SOURCES): New variable.
48467 (_chain_mod_CFLAGS): Likewise.
48468 (_chain_mod_LDFLAGS): Likewise.
48469 (chain_mod_SOURCES): Likewise.
48470 (chain_mod_CFLAGS): Likewise.
48471 (chain_mod_LDFLAGS): Likewise.
48472
48473 * DISTLIST: Added include/grub/efi/chainloader.h,
48474 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
48475
48476 * include/grub/efi/chainloader.h: New file.
48477 * loader/efi/chainloader.c: Likewise.
48478 * loader/efi/chainloader_normal.c: Likewise.
48479
c0111d6e 484802006-04-30 Marco Gerards <marco@gnu.org>
48481
48482 * commands/configfile.c (grub_cmd_source): New function.
48483 (GRUB_MOD_INIT): Register the commands `source' and `.'.
48484 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
48485
df5341da 484862006-04-30 Marco Gerards <marco@gnu.org>
48487
48488 * normal/execute.c (grub_script_execute_cmd): Change the return
48489 type to `grub_err_t'. Correctly return the error.
48490 (grub_script_execute_cmdline): In case a command line is not a
48491 command or a function, try to interpret it as an assignment.
48492
f85934bd 484932006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
48494
48495 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
48496 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
48497 skip a node whose name is obviously invalid as UTF-16,
48498 i.e. contains a NUL character. Stop the iteration when the last
48499 directory entry is found. Instead of using the return value of
48500 grub_hfsplus_btree_iterate_node, store the value in RET and use
48501 it, because the iterator can be stopped by the last directory
48502 entry.
48503
8f8a2cf8 485042006-04-30 Marco Gerards <marco@gnu.org>
48505
48506 * include/grub/env.h (grub_env_export): New prototype. Reported
48507 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
48508
a27e84ce 485092006-04-30 Marco Gerards <marco@gnu.org>
48510
48511 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
48512 size of the extents in a catalog file record.
48513
eaef0553 485142006-04-29 Marco Gerards <marco@gnu.org>
48515
48516 * commands/configfile.c (grub_cmd_configfile): Execute the
48517 configfile within its own context.
48518
48519 * include/grub/env.h (grub_env_context_open): New prototype.
48520 (grub_env_context_close): Likewise.
48521
48522 * kern/env.c (grub_env): Removed.
48523 (grub_env_sorted): Likewise.
48524 (grub_env_context): New variable.
48525 (grub_env_var_context): Likewise.
48526 (grub_env_find): Search both the active context and the global
48527 context.
48528 (grub_env_context_open): New function.
48529 (grub_env_context_close): Likewise.
48530 (grub_env_insert): Likewise.
48531 (grub_env_remove): Likewise.
48532 (grub_env_export): Likewise.
48533 (grub_env_set): Changed to use helper functions to avoid code
48534 duplication.
48535 (grub_env_iterate): Rewritten so both the current context and the
48536 global context are being used.
48537
48538 * normal/command.c (export_command): New function.
48539 (grub_command_init): Register the `export' function.
48540
7b455f4d 485412006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
48542
48543 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
48544 explicitly to suppress gcc's warnings.
48545 * fs/fat.c (grub_fat_find_dir): Likewise.
48546 (grub_fat_label): Likewise.
48547 * fs/xfs.c (grub_xfs_read_inode): Likewise.
48548 (grub_xfs_mount): Likewise.
48549 (grub_xfs_label): Likewise.
48550 * fs/affs.c (grub_affs_mount): Likewise.
48551 (grub_affs_label): Likewise.
48552 (grub_affs_iterate_dir): Likewise.
48553 * fs/sfs.c (grub_sfs_mount): Likewise.
48554 (grub_sfs_iterate_dir): Likewise.
48555 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
48556 * fs/hfs.c (grub_hfs_mount): Likewise.
48557 (grub_hfs_cmp_catkeys): Likewise.
48558 (grub_hfs_find_dir): Likewise.
48559 (grub_hfs_dir): Likewise.
48560 (grub_hfs_label): Likewise.
48561 * fs/jfs.c (grub_jfs_mount): Likewise.
48562 (grub_jfs_opendir): Likewise.
48563 (grub_jfs_getent): Likewise.
48564 (grub_jfs_lookup_symlink): Likewise.
48565 (grub_jfs_label): Likewise.
48566 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
48567 (grub_hfsplus_iterate_dir): Likewise.
48568 (grub_hfsplus_btree_iterate_node): Made static.
48569
48570 * util/grub-emu.c (prefix): New variable.
48571 (grub_machine_set_prefix): New function.
48572 (main): Do not set the environment variable "prefix" here. Only
48573 set PREFIX, which is used later by grub_machine_set_prefix.
48574
48575 * include/grub/video.h: Do not include grub/symbol.h.
48576 (grub_video_register): Not exported. This symbol is not defined in
48577 the kernel.
48578 (grub_video_unregister): Likewise.
48579 (grub_video_iterate): Likewise.
48580 (grub_video_setup): Likewise.
48581 (grub_video_restore): Likewise.
48582 (grub_video_get_info): Likewise.
48583 (grub_video_get_blit_format): Likewise.
48584 (grub_video_set_palette): Likewise.
48585 (grub_video_get_palette): Likewise.
48586 (grub_video_set_viewport): Likewise.
48587 (grub_video_get_viewport): Likewise.
48588 (grub_video_map_color): Likewise.
48589 (grub_video_map_rgb): Likewise.
48590 (grub_video_map_rgba): Likewise.
48591 (grub_video_fill_rect): Likewise.
48592 (grub_video_blit_glyph): Likewise.
48593 (grub_video_blit_bitmap): Likewise.
48594 (grub_video_blit_render_target): Likewise.
48595 (grub_video_scroll): Likewise.
48596 (grub_video_swap_buffers): Likewise.
48597 (grub_video_create_render_target): Likewise.
48598 (grub_video_delete_render_target): Likewise.
48599 (grub_video_set_active_render_target): Likewise.
48600
48601 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
48602 Undefined.
48603 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
48604
48605 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
48606 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48607 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48608 instead of $(srcdir)/genkernsyms.sh.
48609
48610 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
48611 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48612 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48613 instead of $(srcdir)/genkernsyms.sh.
48614
48615 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
48616 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48617 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48618 instead of $(srcdir)/genkernsyms.sh.
48619
48620 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
48621 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
48622 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
48623 instead of $(srcdir)/genkernsyms.sh.
48624
48625 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
48626 genkernsyms.sh.
48627
48628 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
48629 genkernsyms.sh.
48630 (gensymlist.sh): New target.
48631 (genkernsyms.sh): Likewise.
48632
48633 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
48634 genkernsyms.sh.in and gensymlist.sh.in.
48635
48636 * genkernsyms.sh: Removed.
48637 * gensymlist.sh: Likewise.
f19dbdb7 48638
7b455f4d 48639 * genkernsyms.sh.in: New file.
48640 * gensymlist.sh.in: Likewise.
48641
1885bb27 486422006-04-25 Hollis Blanchard <hollis@penguinppc.org>
48643
48644 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
48645 clobber "prefix", since we may have already set it manually.
48646
71538dff 486472006-04-25 Hollis Blanchard <hollis@penguinppc.org>
48648
48649 * kern/misc.c (abort): New alias for grub_abort.
48650
2965c7cc 486512006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
48652
48653 A new machine-specific function "grub_machine_set_prefix" is
48654 defined. This is called after loading modules, so that a prefix
48655 initialization can use modules. Also, this change adds an
48656 intensive debugging feature for the memory manager via the
48657 configure option "--enable-mm-debug".
f19dbdb7 48658
2965c7cc 48659 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
48660 PART.LEN.
48661
48662 * kern/sparc64/ieee1275/init.c (abort): Removed.
48663 (grub_stop): Likewise.
48664 (grub_exit): New function.
48665 (grub_set_prefix): Renamed to ...
48666 (grub_machine_set_prefix): ... this.
48667 (grub_machine_init): Do not call grub_set_prefix.
48668
48669 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
48670 (grub_machine_set_prefix): ... this.
48671 (grub_machine_init): Do not call grub_set_prefix.
48672
48673 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
48674 (grub_machine_init): Do not set the prefix here.
48675
48676 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
48677
48678 * kern/efi/init.c: Include grub/mm.h.
48679 (grub_efi_set_prefix): New function.
48680
48681 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
48682 (grub_efi_get_filename): New function.
48683 (grub_print_device_path): Renamed to ...
48684 (grub_efi_print_device_path): ... this.
48685
48686 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
48687 [MM_DEBUG] (grub_realloc): Likewise.
48688 [MM_DEBUG] (grub_free): Likewise.
48689 [MM_DEBUG] (grub_memalign): Likewise.
48690 [MM_DEBUG] (grub_mm_debug): New variable.
48691 [MM_DEBUG] (grub_debug_malloc): New function.
48692 [MM_DEBUG] (grub_debug_free): New function.
48693 [MM_DEBUG] (grub_debug_realloc): New function.
48694 [MM_DEBUG] (grub_debug_memalign): New function.
48695
48696 * kern/misc.c (grub_abort): Print a newline to distinguish
48697 the message.
48698
48699 * kern/main.c (grub_main): Call grub_machine_set_prefix and
48700 grub_set_root_dev after loading modules. This is necessary when
48701 setting a prefix depends on modules.
48702
48703 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
48704 (grub_efi_print_device_path): ... this.
48705 (grub_efi_get_filename): New prototype.
48706 (grub_efi_set_prefix): Likewise.
48707
48708 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
48709 and grub/disk.h.
48710 (grub_efidisk_get_device_handle): New prototype.
48711 (grub_efidisk_get_device_name): Likewise.
48712
48713 * include/grub/mm.h: Include config.h.
48714 (MM_DEBUG): Removed.
48715 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
48716 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
48717 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
48718 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
48719 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
48720 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
48721 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
48722 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
48723 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
48724
48725 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
48726
48727 * disk/efi/efidisk.c: Include grub/partition.h.
48728 (iterate_child_devices): New function.
48729 (add_device): First, compare only last device path nodes, so that
48730 devices are sorted by the types.
48731 (grub_efidisk_get_device_handle): New function.
48732 (grub_efidisk_get_device_name): Likewise.
48733
48734 * configure.ac (--enable-mm-debug): New option to enable the
48735 memory manager debugging feature. This makes the binary much
48736 bigger, so is disabled by default.
48737
9cacaa17 487382006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
48739
48740 Use grub_abort instead of grub_stop, and grub_exit must be
48741 define in each architecture now. Also, this change adds support
48742 for EFI disks.
f19dbdb7 48743
9cacaa17 48744 * util/i386/pc/grub-probefs.c: Include grub/term.h.
48745 (grub_getkey): New function.
48746 (grub_term_get_current): Likewise.
48747
48748 * util/i386/pc/grub-setup.c: Include grub/term.h.
48749 (grub_getkey): New function.
48750 (grub_term_get_current): Likewise.
48751
48752 * util/misc.c (grub_stop): Renamed to ...
48753 (grub_exit): ... this.
48754
48755 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
48756 (grub_exit): ... this.
48757 (grub_machine_init): Use grub_abort instead of abort.
48758 (grub_stop): Removed.
48759
48760 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
48761 abort.
48762
48763 * kern/i386/pc/startup.S (grub_exit): New function.
48764 (cold_reboot): New label.
48765
48766 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
48767 (grub_efi_init): Call grub_efidisk_init.
48768 (grub_efi_fini): Call grub_efidisk_fini.
48769
48770 * kern/efi/efi.c: Include grub/mm.h.
48771 (grub_efi_console_control_guid): Renamed to ...
48772 (console_control_guid): ... this.
48773 (grub_efi_loaded_image_guid): Renamed to ...
48774 (loaded_image_guid): ... this.
48775 (grub_efi_locate_handle): New function.
48776 (grub_efi_open_protocol): Likewise.
48777 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
48778 GRUB_EFI_CONSOLE_CONTROL_GUID.
48779 (grub_efi_exit): Removed.
48780 (grub_stop): Likewise.
48781 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
48782 (grub_exit): New function.
48783 (grub_print_device_path): Likewise.
48784
48785 * kern/rescue.c (grub_rescue_cmd_exit): New function.
48786 (grub_enter_rescue_mode): Register "exit".
48787
48788 * kern/misc.c (grub_real_dprintf): A cosmetic change.
48789 (grub_abort): New function.
48790
48791 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
48792
48793 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
48794
48795 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
48796
48797 * include/grub/efi/efi.h (grub_efi_exit): Removed.
48798 (grub_print_device_path): New prototype.
48799 (grub_efi_locate_handle): Likewise.
48800 (grub_efi_open_protocol): Likewise.
48801
48802 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
48803 * disk/efi/efidisk.c: Likewise.
48804
48805 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
48806
48807 * include/grub/efi/console_control.h
48808 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
48809
48810 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
48811 last 8 bytes as an array.
48812 (GRUB_EFI_DISK_IO_GUID): New macro.
48813 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
48814 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
48815 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
48816 grub_uint8_t.
48817 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
48818 (struct grub_efi_device_path): Rename the member "sub_type" to
48819 "subtype".
48820 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
48821 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
48822 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
48823 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
48824 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
48825 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
48826 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
48827 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
48828 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
48829 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
48830 (struct grub_efi_pci_device_path): New structure.
48831 (grub_efi_pci_device_path_t): New type.
48832 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
48833 (struct grub_efi_pccard_device_path): New structure.
48834 (grub_efi_pccard_device_path_t): New type.
48835 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
48836 (struct grub_efi_memory_mapped_device_path): New structure.
48837 (grub_efi_memory_mapped_device_path_t): New type.
48838 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
48839 (struct grub_efi_vendor_device_path): New structure.
48840 (grub_efi_vendor_device_path_t): New type.
48841 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
48842 (struct grub_efi_controller_device_path): New structure.
48843 (grub_efi_controller_device_path_t): New type.
48844 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
48845 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
48846 (struct grub_efi_acpi_device_path): New structure.
48847 (grub_efi_acpi_device_path_t): New type.
48848 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
48849 (struct grub_efi_expanded_acpi_device_path): New structure.
48850 (grub_efi_expanded_acpi_device_path_t): New type.
48851 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
48852 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
48853 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
48854 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
48855 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
48856 (struct grub_efi_atapi_device_path): New structure.
48857 (grub_efi_atapi_device_path_t): New type.
48858 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
48859 (struct grub_efi_fibre_channel_device_path): New structure.
48860 (grub_efi_fibre_channel_device_path_t): New type.
48861 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
48862 (struct grub_efi_1394_device_path): New structure.
48863 (grub_efi_1394_device_path_t): New type.
48864 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
48865 (struct grub_efi_usb_device_path): New structure.
48866 (grub_efi_usb_device_path_t): New type.
48867 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
48868 (struct grub_efi_usb_class_device_path): New structure.
48869 (grub_efi_usb_class_device_path_t): New type.
48870 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
48871 (struct grub_efi_i2o_device_path): New structure.
48872 (grub_efi_i2o_device_path_t): New type.
48873 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
48874 (struct grub_efi_mac_address_device_path): New structure.
48875 (grub_efi_mac_address_device_path_t): New type.
48876 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
48877 (struct grub_efi_ipv4_device_path): New structure.
48878 (grub_efi_ipv4_device_path_t): New type.
48879 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
48880 (struct grub_efi_ipv6_device_path): New structure.
48881 (grub_efi_ipv6_device_path_t): New type.
48882 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
48883 (struct grub_efi_infiniband_device_path): New structure.
48884 (grub_efi_infiniband_device_path_t): New type.
48885 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
48886 (struct grub_efi_uart_device_path): New structure.
48887 (grub_efi_uart_device_path_t): New type.
48888 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
48889 (struct grub_efi_vendor_messaging_device_path): New structure.
48890 (grub_efi_vendor_messaging_device_path_t): New type.
48891 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
48892 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
48893 (struct grub_efi_hard_drive_device_path): New structure.
48894 (grub_efi_hard_drive_device_path_t): New type.
48895 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
48896 (struct grub_efi_cdrom_device_path): New structure.
48897 (grub_efi_cdrom_device_path_t): New type.
48898 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
48899 (struct grub_efi_vendor_media_device_path): New structure.
48900 (grub_efi_vendor_media_device_path_t): New type.
48901 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
48902 (struct grub_efi_file_path_device_path): New structure.
48903 (grub_efi_file_path_device_path_t): New type.
48904 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
48905 (struct grub_efi_protocol_device_path): New structure.
48906 (grub_efi_protocol_device_path_t): New type.
48907 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
48908 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
48909 (struct grub_efi_bios_device_path): New structure.
48910 (grub_efi_bios_device_path_t): New type.
48911 (struct grub_efi_disk_io): New structure.
48912 (grub_efi_disk_io_t): New type.
48913 (struct grub_efi_block_io_media): New structure.
48914 (grub_efi_block_io_media_t): New type.
48915 (struct grub_efi_block_io): New structure.
48916 (grub_efi_block_io_t): New type.
48917
48918 * include/grub/misc.h (grub_stop): Removed.
48919 (grub_exit): New prototype.
48920 (grub_abort): Likewise.
48921
48922 * include/grub/disk.h (enum grub_disk_dev_id): Added
48923 GRUB_DISK_DEVICE_EFIDISK_ID.
48924
48925 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
48926 disk/efi/efidisk.c.
48927 (kernel_syms.lst): Remove the target if an error occurs.
48928
49986a9f 489292006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
48930
48931 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
48932 as it was simply too buggy.
48933
970d3b8a 489342006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
48935
48936 * kern/misc.c (grub_lltoa): New function.
48937 (grub_vsprintf): Added support for the long long suffix,
48938 i.e. "ll".
48939
ff04ec24 489402006-04-20 Hollis Blanchard <hollis@penguinppc.org>
48941
48942 * Makefile.in (LDFLAGS): Add variable.
48943 (LD): Remove variable.
48944 * configure.ac: Add -m32 to LDFLAGS.
48945 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
48946 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
48947 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
48948 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
48949 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
48950 variables.
48951 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
48952 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
48953 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
48954
37e5e1a4 489552006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
48956
48957 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
48958 length for unknown glyph.
48959
c352d8dd 489602006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
48961
2eab1c0d 48962 Add support for pre-loaded modules into the EFI port.
f19dbdb7 48963
2eab1c0d 48964 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
48965 completely. Accept one more argument DIR. The caller has changed.
48966
48967 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
48968
48969 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
48970 (grub_efi_loaded_image_guid): New variable.
48971 (grub_efi_get_loaded_image): New function.
48972 (grub_arch_modules_addr): Likewise.
48973
48974 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
48975 prototype.
48976
48977 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
48978 (struct grub_efi_loaded_image): New structure.
48979 (grub_efi_loaded_image_t): New type.
48980
489812006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 48982
c352d8dd 48983 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
48984 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
48985 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
48986
6d01d6b4 489872006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
48988
48989 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
48990
976a4ea0 489912006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
48992
48993 * DISTLIST: Added include/grub/efi/console.h,
48994 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
48995 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
48996
48997 * include/grub/efi/console.h: New file.
48998 * include/grub/efi/time.h: Likewise.
48999 * include/grub/i386/efi/kernel.h: Likewise.
49000 * kern/efi/init.c: Likewise.
49001 * kern/efi/mm.c: Likewise.
49002 * term/efi/console.c: Likewise.
f19dbdb7 49003
976a4ea0 49004 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
49005 (grub_stop): Removed.
49006 (grub_get_rtc): Likewise.
49007 (grub_machine_init): Simply call grub_efi_init.
49008 (grub_machine_fini): Call grub_efi_fini.
49009
49010 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
49011 (grub_efi_output_string): Removed.
49012 (grub_efi_stall): New function.
49013 (grub_stop): Likewise.
49014 (grub_get_rtc): Likewise.
49015
49016 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
49017 (grub_efi_stall): New prototype.
49018 (grub_efi_allocate_pages): Likewise.
49019 (grub_efi_free_pages): Likewise.
49020 (grub_efi_get_memory_map): Likewise.
49021 (grub_efi_mm_init): Likewise.
49022 (grub_efi_mm_fini): Likewise.
49023 (grub_efi_init): Likewise.
49024 (grub_efi_fini): Likewise.
49025
49026 * include/grub/i386/efi/time.h: Do not include
49027 grub/symbol.h. Include grub/efi/time.h.
49028 (GRUB_TICKS_PER_SECOND): Removed.
49029 (grub_get_rtc): Likewise.
49030
49031 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
49032 Added padding. The EFI spec is buggy.
49033 (GRUB_EFI_BLACK): New macro.
49034 (GRUB_EFI_BLUE): Likewise.
49035 (GRUB_EFI_GREEN): Likewise.
49036 (GRUB_EFI_CYAN): Likewise.
49037 (GRUB_EFI_RED): Likewise.
49038 (GRUB_EFI_MAGENTA): Likewise.
49039 (GRUB_EFI_BROWN): Likewise.
49040 (GRUB_EFI_LIGHTGRAY): Likewise.
49041 (GRUB_EFI_BRIGHT): Likewise.
49042 (GRUB_EFI_DARKGRAY): Likewise.
49043 (GRUB_EFI_LIGHTBLUE): Likewise.
49044 (GRUB_EFI_LIGHTGREEN): Likewise.
49045 (GRUB_EFI_LIGHTCYAN): Likewise.
49046 (GRUB_EFI_LIGHTRED): Likewise.
49047 (GRUB_EFI_LIGHTMAGENTA): Likewise.
49048 (GRUB_EFI_YELLOW): Likewise.
49049 (GRUB_EFI_WHITE): Likewise.
49050 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
49051 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
49052 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
49053 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
49054 (GRUB_EFI_BACKGROUND_RED): Likewise.
49055 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
49056 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
49057 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
49058 (GRUB_EFI_TEXT_ATTR): Likewise.
49059
49060 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
49061 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
49062 (kernel_mod_HEADERS): Added efi/time.h.
49063
83709125 490642006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
49065
49066 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
49067 include/grub/efi/api.h, include/grub/efi/console_control.h,
49068 include/grub/efi/efi.h, include/grub/efi/pe32.h,
49069 include/grub/i386/efi/time.h, kern/efi/efi.c,
49070 kern/i386/efi/init.c, kern/i386/efi/startup.S,
49071 and util/i386/efi/grub-mkimage.c.
49072
49073 * Makefile.in (RMKFILES): Added i386-efi.rmk.
49074
49075 * genmk.rb (PModule#rule): Do not export symbols if
49076 #{prefix}_EXPORTS is set to "no".
49077
49078 * conf/i386-efi.mk: New file.
49079 * conf/i386-efi.rmk: Likewise.
49080 * include/grub/efi/api.h: Likewise.
49081 * include/grub/efi/console_control.h: Likewise.
49082 * include/grub/efi/efi.h: Likewise.
49083 * include/grub/efi/pe32.h: Likewise.
49084 * include/grub/i386/efi/time.h: Likewise.
49085 * kern/efi/efi.c: Likewise.
49086 * kern/i386/efi/init.c: Likewise.
49087 * kern/i386/efi/startup.S: Likewise.
49088 * util/i386/efi/grub-mkimage.c: Likewise.
49089
490902006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 49091
49092 * include/grub/script.h: Include <grub/parser.h> and
49093 "grub_script.tab.h".
49094 (struct grub_lexer_param): New struct.
49095 (struct grub_parser_param): Likewise.
49096 (grub_script_create_arglist): Pass the state in an argument.
49097 (grub_script_add_arglist): Likewise.
49098 (grub_script_create_cmdline): Likewise.
49099 (grub_script_create_cmdblock): Likewise.
49100 (grub_script_create_cmdif): Likewise.
49101 (grub_script_create_cmdmenu): Likewise.
49102 (grub_script_add_cmd): Likewise.
49103 (grub_script_arg_add): Likewise.
49104 (grub_script_lexer_ref): Likewise.
49105 (grub_script_lexer_deref): Likewise.
49106 (grub_script_lexer_record_start): Likewise.
49107 (grub_script_lexer_record_stop): Likewise.
49108 (grub_script_mem_record): Likewise.
49109 (grub_script_mem_record_stop): Likewise.
49110 (grub_script_malloc): Likewise.
49111 (grub_script_yylex): Likewise.
49112 (grub_script_yyparse): Likewise.
49113 (grub_script_yyerror): Likewise.
49114 (grub_script_yylex): Likewise.
49115 (grub_script_lexer_init): Return the state.
49116
49117 * normal/lexer.c (grub_script_lexer_state): Removed variable.
49118 (grub_script_lexer_done): Likewise.
49119 (grub_script_lexer_getline): Likewise.
49120 (grub_script_lexer_refs): Likewise.
49121 (script): Likewise.
49122 (newscript): Likewise.
49123 (record): Likewise.
49124 (recording): Likewise.
49125 (recordpos): Likewise.
49126 (recordlen): Likewise.
49127 (grub_script_lexer_init): Return the state instead of setting
49128 global variables.
49129 (grub_script_lexer_ref): Use the newly added argument for state
49130 instead of globals.
49131 (grub_script_lexer_deref): Likewise.
49132 (grub_script_lexer_record_start): Likewise.
49133 (grub_script_lexer_record_stop): Likewise.
49134 (recordchar): Likewise.
49135 (nextchar): Likewise.
49136 (grub_script_yylex2): Likewise.
49137 (grub_script_yylex): Likewise.
49138 (grub_script_yyerror): Likewise.
49139
49140 * normal/parser.y (func_mem): Removed variable.
49141 (menu_entry): Likewise.
49142 (err): Likewise.
49143 (%lex-param): New parser option.
49144 (%parse-param): Likewise.
49145 (script): Always return the AST.
49146 (argument): Pass the state around.
49147 (arguments): Likewise.
49148 (grubcmd): Likewise.
49149 (commands): Likewise.
49150 (function): Likewise.
49151 (menuentry): Likewise.
49152 (if_statement): Likewise.
49153 (if): Likewise.
49154
49155 * normal/script.c (grub_script_memused): Removed variable.
49156 (grub_script_parsed): Likewise.
49157 (grub_script_malloc): Added a state argument. Use that instead of
49158 global variables.
49159 (grub_script_mem_record): Likewise.
49160 (grub_script_mem_record_stop): Likewise.
49161 (grub_script_arg_add): Likewise.
49162 (grub_script_add_arglist): Likewise.
49163 (grub_script_create_cmdline): Likewise.
49164 (grub_script_create_cmdif): Likewise.
49165 (grub_script_create_cmdmenu): Likewise.
49166 (grub_script_add_cmd): Likewise.
49167 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 49168
e2a8c904 491692006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 49170
49171 * normal/command.c (grub_command_init): Remove the title command.
49172
49173 * normal/lexer.c (grub_script_yylex): Renamed from this...
49174 (grub_script_yylex2): ... to this.
49175 (grub_script_yylex): New function. Temporary
49176 introduced to filter some tokens.
49177 (grub_script_yyerror): Print a newline.
49178
49179 * normal/main.c (read_config_file): Output information about the
49180 lines that contain errors. Wait for a key after all lines have
49181 been processed. Don't return an empty menu.
49182
49183 * normal/parser.y (func_mem): Don't initialize.
49184 (menu_entry): Likewise.
49185 (err): New variable.
49186 (script): Don't return anything when an error was encountered.
49187 (ws, returns): Removed rules.
49188 (argument): Disabled concatenated variable support.
49189 (arguments): Remove explicit separators.
49190 (grubcmd): Likewise.
49191 (function): Likewise.
49192 (menuentry): Likewise.
49193 (if): Likewise.
49194 (commands): Likewise. Add error handling.
49195
49196 * normal/script.c (grub_script_create_cmdline): If
49197 `grub_script_parsed' is 0, assume the parser encountered an error.
49198
c9a86192 491992006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
49200
49201 * configure.ac: Add support for EFI. Fix the typo
49202 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
49203
70f3b243 492042006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49205
49206 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
49207 foreign multibyte characters should be shown correctly.
49208
65f201ad 492092006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
49210
49211 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
49212 calculation.
49213 (read_config_file): Made it to close file before returning.
49214
b4b93674 492152006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
49216
49217 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
49218 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
49219 video/i386/pc/vbefill.c.
49220
49221 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
49222 video/i386/pc/vbefill.c.
49223
49224 * include/grub/video.h (grub_video_blit_format): New enum.
49225 (grub_video_mode_info): Added new member blit_format.
49226 (grub_video_get_blit_format): New function prototype.
49227
49228 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
49229 function prototype.
49230 (grub_video_vbe_map_rgb): Likewise.
49231 (grub_video_vbe_unmap_color): Likewise.
49232
49233 * include/grub/i386/pc/vbeblit.h: New file.
49234
49235 * include/grub/i386/pc/vbefill.h: New file.
49236
49237 * video/video.c (grub_video_get_blit_format): New function.
49238 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
49239 (grub_video_vbe_map_rgb): Likewise.
49240 (grub_video_vbe_unmap_color): Likewise.
49241
49242 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
49243 optimized fills.
49244 (grub_video_vbe_blit_render_target): Changed to use more optimized
49245 blits.
49246 (grub_video_vbe_setup): Added detection for optimized settings.
49247 (grub_video_vbe_create_render_target): Likewise.
49248
49249 * video/i386/pc/vbeblit.c: New file.
49250
49251 * video/i386/pc/vbefill.c: New file.
49252
c2379b9c 492532006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
49254
49255 * font/manager.c (grub_font_get_glyph): Removed font fixup from
49256 here...
49257
49258 * util/unifont2pff.rb: ... and moved it to here. Improved argument
49259 parsing to support both hex and dec ranges. If filename was missing
49260 show usage information.
49261
bd0d7896 492622006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
49263
49264 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
49265 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
49266
49267 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
49268 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
49269 (video_mod_SOURCES): Added.
49270 (video_mod_CFLAGS): Likewise.
49271 (video_mod_LDFLAGS): Likewise.
49272 (gfxterm_mod_SOURCES): Likewise.
49273 (gfxterm_mod_CFLAGS): Likewise.
49274 (gfxterm_mod_LDFLAGS): Likewise.
49275 (videotest_mod_SOURCES): Likewise.
49276 (videotest_mod_CFLAGS): Likewise.
49277 (videotest_mod_LDFLAGS): Likewise.
49278 (vesafb_mod_SOURCES): Removed.
49279 (vesafb_mod_CFLAGS): Likewise.
49280 (vesafb_mod_LDFLAGS): Likewise.
49281 (vga_mod_SOURCES): Likewise.
49282 (vga_mod_CFLAGS): Likewise.
49283 (vga_mod_LDFLAGS): Likewise.
49284
49285 * commands/videotest.c: New file.
49286
49287 * font/manager.c (fill_with_default_glyph): Modified to use
49288 grub_font_glyph.
49289 (grub_font_get_glyph): Likewise.
49290 (fontmanager): Renamed from this...
49291 (font_manager): ... to this.
49292
49293 * include/grub/font.h (grub_font_glyph): Added new structure.
49294 (grub_font_get_glyph): Modified to use grub_font_glyph.
49295
49296 * include/grub/misc.h (grub_abs): Added as inline function.
49297
49298 * include/grub/video.h: New file.
49299
49300 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
49301 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
49302 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
49303 (grub_vbe_get_controller_info): Renamed from this...
49304 (grub_vbe_bios_get_controller_info): ... to this.
49305 (grub_vbe_get_mode_info): Renamed from this...
49306 (grub_vbe_bios_get_mode_info): ... to this.
49307 (grub_vbe_set_mode): Renamed from this...
49308 (grub_vbe_bios_set_mode): ... to this.
49309 (grub_vbe_get_mode): Renamed from this...
49310 (grub_vbe_bios_get_mode): ... to this.
49311 (grub_vbe_set_memory_window): Renamed from this...
49312 (grub_vbe_bios_set_memory_window): ... to this.
49313 (grub_vbe_get_memory_window): Renamed from this...
49314 (grub_vbe_bios_get_memory_window): ... to this.
49315 (grub_vbe_set_scanline_length): Renamed from this...
49316 (grub_vbe_set_scanline_length): ... to this.
49317 (grub_vbe_get_scanline_length): Renamed from this...
49318 (grub_vbe_bios_get_scanline_length): ... to this.
49319 (grub_vbe_set_display_start): Renamed from this...
49320 (grub_vbe_bios_set_display_start): ... to this.
49321 (grub_vbe_get_display_start): Renamed from this...
49322 (grub_vbe_bios_get_display_start): ... to this.
49323 (grub_vbe_set_palette_data): Renamed from this...
49324 (grub_vbe_bios_set_palette_data): ... to this.
49325 (grub_vbe_set_pixel_rgb): Removed.
49326 (grub_vbe_set_pixel_index): Likewise.
49327
49328 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
49329 from this...
49330 (grub_vbe_bios_get_controller_info): ... to this.
49331 (grub_vbe_get_mode_info): Renamed from this...
49332 (grub_vbe_bios_get_mode_info): ... to this.
49333 (grub_vbe_set_mode): Renamed from this...
49334 (grub_vbe_bios_set_mode): ... to this.
49335 (grub_vbe_get_mode): Renamed from this...
49336 (grub_vbe_bios_get_mode): ... to this.
49337 (grub_vbe_set_memory_window): Renamed from this...
49338 (grub_vbe_bios_set_memory_window): ... to this.
49339 (grub_vbe_get_memory_window): Renamed from this...
49340 (grub_vbe_bios_get_memory_window): ... to this.
49341 (grub_vbe_set_scanline_length): Renamed from this...
49342 (grub_vbe_set_scanline_length): ... to this.
49343 (grub_vbe_get_scanline_length): Renamed from this...
49344 (grub_vbe_bios_get_scanline_length): ... to this.
49345 (grub_vbe_set_display_start): Renamed from this...
49346 (grub_vbe_bios_set_display_start): ... to this.
49347 (grub_vbe_get_display_start): Renamed from this...
49348 (grub_vbe_bios_get_display_start): ... to this.
49349 (grub_vbe_set_palette_data): Renamed from this...
49350 (grub_vbe_bios_set_palette_data): ... to this.
49351 (grub_vbe_bios_get_controller_info): Fixed problem with registers
49352 getting corrupted after calling it. Added more pushes and pops.
49353 (grub_vbe_bios_set_mode): Likewise.
49354 (grub_vbe_bios_get_mode): Likewise.
49355 (grub_vbe_bios_get_memory_window): Likewise.
49356 (grub_vbe_bios_set_scanline_length): Likewise.
49357 (grub_vbe_bios_get_scanline_length): Likewise.
49358 (grub_vbe_bios_get_display_start): Likewise.
49359 (grub_vbe_bios_set_palette_data): Likewise.
49360
49361 * normal/cmdline.c (cl_set_pos): Refresh the screen.
49362 (cl_insert): Likewise.
49363 (cl_delete): Likewise.
49364
49365 * term/gfxterm.c: New file.
49366
49367 * term/i386/pc/vesafb.c: Removed file.
49368
49369 * video/video.c: New file.
49370
49371 * video/i386/pc/vbe.c (real2pm): Added new function.
49372 (grub_video_vbe_draw_pixel): Likewise.
49373 (grub_video_vbe_get_video_ptr): Likewise.
49374 (grub_video_vbe_get_pixel): Likewise
49375 (grub_video_vbe_init): Likewise.
49376 (grub_video_vbe_fini): Likewise.
49377 (grub_video_vbe_setup): Likewise.
49378 (grub_video_vbe_get_info): Likewise.
49379 (grub_video_vbe_set_palette): Likewise.
49380 (grub_video_vbe_get_palette): Likewise.
49381 (grub_video_vbe_set_viewport): Likewise.
49382 (grub_video_vbe_get_viewport): Likewise.
49383 (grub_video_vbe_map_color): Likewise.
49384 (grub_video_vbe_map_rgb): Likewise.
49385 (grub_video_vbe_map_rgba): Likewise.
49386 (grub_video_vbe_unmap_color): Likewise.
49387 (grub_video_vbe_fill_rect): Likewise.
49388 (grub_video_vbe_blit_glyph): Likewise.
49389 (grub_video_vbe_blit_bitmap): Likewise.
49390 (grub_video_vbe_blit_render_target): Likewise.
49391 (grub_video_vbe_scroll): Likewise.
49392 (grub_video_vbe_swap_buffers): Likewise.
49393 (grub_video_vbe_create_render_target): Likewise.
49394 (grub_video_vbe_delete_render_target): Likewise.
49395 (grub_video_vbe_set_active_render_target): Likewise.
49396 (grub_vbe_set_pixel_rgb): Remove function.
49397 (grub_vbe_set_pixel_index): Likewise.
49398 (index_color_mode): Remove static variable.
49399 (active_mode): Likewise.
49400 (framebuffer): Likewise.
49401 (bytes_per_scan_line): Likewise.
49402 (grub_video_vbe_adapter): Added new static variable.
49403 (framebuffer): Likewise.
49404 (render_target): Likewise.
49405 (initial_mode): Likewise.
49406 (mode_in_use): Likewise.
49407 (mode_list): Likewise.
49408
5f97350b 494092006-03-10 Marco Gerards <marco@gnu.org>
49410
49411 * configure.ac (AC_INIT): Bumped to 1.93.
49412
49413 * DISTLIST: Added `include/grub/hfs.h'.
49414
a3c5c6f8 494152006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
49416
49417 * boot/i386/pc/boot.S (general_error): Before looping, try INT
49418 18H, which might help the BIOS falling back to next boot media.
49419
6de53d26 494202006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
49421
49422 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
49423 Poe Chen <poe.poechen@gmail.com>.
49424
77c4a393 494252006-01-17 Marco Gerards <marco@gnu.org>
49426
49427 * include/grub/normal.h: Include <grub/script.h>.
49428 (grub_command_list): Removed struct.
49429 (grub_command_list_t): Removed type.
49430 (grub_menu_entry): Remove members `num' and `command_list'. Add
49431 members `commands' and `sourcecode'.
49432 * include/grub/script.h: Add inclusion guards.
49433 (grub_script_cmd_menuentry): New struct.
49434 (grub_script_execute_menuentry): New prototype.
49435 (grub_script_lexer_record_start): Likewise.
49436 (grub_script_lexer_record_stop): Likewise.
49437 * normal/execute.c (grub_script_execute_menuentry): New function.
49438 * normal/lexer.c (record, recording, recordpos, recordlen): New
49439 variables.
49440 (grub_script_lexer_record_start): New function.
49441 (grub_script_lexer_record_stop): Likewise.
49442 (recordchar): Likewise.
49443 (nextchar): Likewise.
49444 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
49445 2048 as the buffer size. Add the tokens `menuentry' and `@'.
49446 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
49447 (current_menu): New variable.
49448 (free_menu): Mainly rewritten.
49449 (grub_normal_menu_addentry): New function.
49450 (read_config_file): Rewritten.
49451 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 49452 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 49453 the menu entry.
49454 (run): Mainly rewritten.
49455 * normal/parser.y (menu_entry): New variable.
49456 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
49457 (menuentry): New rule.
49458 (command): Add `menuentry'.
49459 (if_statement): Allow additional returns before `fi'.
49460 * normal/script.c (grub_script_create_cmdmenu): New function.
49461
144f1f98 494622006-01-03 Marco Gerards <marco@gnu.org>
49463
49464 * INSTALL: GNU Bison is required.
49465 * configure.ac: Rewritten the test to detect Bison.
49466 * Makefile.in (YACC): New variable. Reported by Xun Sun
49467 <xun.sun.cn@gmail.com>.
49468
af4b2d89 494692006-01-03 Marco Gerards <marco@gnu.org>
49470
49471 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
49472 the HFS+ filesystem to filesystem blocks.
49473 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
49474 GCC warning is silenced.
49475
15643b71 494762006-01-03 Marco Gerards <marco@gnu.org>
49477
49478 * partmap/apple.c (apple_partition_map_iterate): Convert the data
49479 read from disk from big endian to host byte order.
49480
00905879 494812006-01-03 Hollis Blanchard <hollis@penguinppc.org>
49482
49483 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
49484 documentation.
49485 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
49486 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
49487 embedded HFS+ filesystem.
49488 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
49489 (grub_hfs_sblock): Move from here...
49490 * include/grub/hfs.h: To here... New file.
49491 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
49492 documentation.
49493 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
49494 New macros.
49495 (grub_hfsplus_volheader): Change type of member `magic' to
49496 `grub_uint16_t'.
49497 (grub_hfsplus_data): Add new member `embedded_offset'.
49498 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
49499 returned block.
49500 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
49501 Calculate the offset.
49502
8899bc3e 495032005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49504
49505 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
49506 Removed.
49507 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
49508
ae8c0277 495092005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49510
49511 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
49512 ENV->NAME is NULL after allocating ENV->VALUE.
49513
07084456 495142005-12-25 Marco Gerards <marco@gnu.org>
49515
49516 * kern/env.c (grub_env_set): Rewritten the error handling code.
49517
4750f5f1 495182005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49519
49520 * geninit.sh: Made more robust, and more portable.
49521
50214199 495222005-12-25 Marco Gerards <marco@gnu.org>
49523
49524 Add support for Apple HFS+ filesystems.
f19dbdb7 49525
50214199 49526 * fs/hfsplus.c: New file.
49527
49528 * DISTLIST: Added `fs/hfsplus.c'.
49529
49530 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
49531 (hfsplus_mod_SOURCES): New variable.
49532 (hfsplus_mod_CFLAGS): Likewise.
49533 (hfsplus_mod_LDFLAGS): Likewise.
49534 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
49535 (grub_setup_SOURCES): Likewise.
49536 (grub_mkdevicemap_SOURCES): Likewise.
49537 (grub_emu_SOURCES): Likewise.
49538 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49539
49540 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
49541
49542 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
49543
befaed6c 495442005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
49545
49546 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
49547 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
49548 include/grub/parser.h, include/grub/script.h, kern/parser.c,
49549 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
49550 normal/lexer.c, normal/parser.y, normal/script.c, and
49551 partmap/gpt.c.
49552 Removed kern/sparc64/cache.c.
49553
49554 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
49555 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
49556 grub_emu_init.c.
49557
49558 * configure.ac (AC_INIT): Bumped to 1.92.
49559
6a124103 495602005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
49561
49562 * kern/err.c (grub_error_push): Added new function to support error
49563 stacks.
49564 (grub_error_pop): Likewise.
49565 (grub_error_stack_items): New local variable to support error stacks.
49566 (grub_error_stack_pos): Likewise.
49567 (grub_error_stack_assert): Likewise.
49568 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
49569 stack depth.
49570 (grub_print_error): Added support to print errors from error stack.
49571
49572 * include/grub/err.h (grub_error_push): Added function prototype.
49573 (grub_error_pop): Likewise.
49574
be973c1b 495752005-12-09 Hollis Blanchard <hollis@penguinppc.org>
49576
49577 * configure.ac: Accept `powerpc64' as host_cpu.
49578 (amd64): Rename to `biarch32'.
49579
49580 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
49581 non-cacheline-aligned addresses.
49582
49583 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
49584 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
49585 if `size' is non-zero.
49586
b04216ab 495872005-12-03 Marco Gerards <mgerards@xs4all.nl>
49588
49589 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
49590 and `cd' to make sure the filename is not prefixed with a
49591 directory name.
49592 (pkgdata_MODULES): Add `gpt.mod'.
49593 (gpt_mod_SOURCES): New variable.
49594 (gpt_mod_CFLAGS): Likewise.
49595 (gpt_mod_LDFLAGS): Likewise.
49596
49597 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
49598
49599 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
49600 New macro.
49601
49602 * partmap/gpt.c: New file.
49603
49604 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
49605 GPT partition map is detected.
49606
41730ed9 496072005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
49608
49609 * commands/i386/pc/play.c: New file.
49610 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
49611 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
49612 macros.
f19dbdb7 49613
95dc3643 496142005-11-27 Marco Gerards <mgerards@xs4all.nl>
49615
49616 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
49617 ((unused))' to silence gcc warning.
49618
1569ec51 496192005-11-26 Hollis Blanchard <hollis@penguinppc.org>
49620
49621 * configure.ac: Correct `AC_PROG_YACC' test.
49622
9abde152 496232005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49624
49625 * util/powerpc/ieee1275/grub-install.in: Run the mount point
49626 check before installing files.
49627
44b83271 496282005-11-22 Mike Small <smallm@panix.com>
49629
49630 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
49631 number regex so multidigit numbers are recognized correctly.
49632
496332005-11-22 Mike Small <smallm@panix.com>
49634
49635 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
49636 debugging message before attempting to claim memory.
49637 (grub_rescue_cmd_initrd): Add a claim debugging message and try
49638 multiple addresses in case of failure.
49639
9c12956b 496402005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49641
49642 * term/tparm.c (get_space): Remove empty `if' statement.
49643
49644 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
49645
49646 * kern/parser.c (check_varstate): Rename `state' to 's'.
49647
aeaf81d9 496482005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49649
49650 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
49651 variable definitions to the beginning of each function. Sort stack
49652 variables by size.
49653 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
49654 `buf' argument to `char *'.
49655
79bbb63f 496562005-11-22 Hollis Blanchard <hollis@penguinppc.org>
49657
49658 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
49659 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 49660 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 49661 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
49662 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
49663 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
49664 configfile.mod, search.mod, gzio.mod and test.mod.
49665 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
49666 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
49667 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
49668 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
49669 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
49670 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
49671 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
49672 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
49673 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
49674 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
49675 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
49676 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
49677 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
49678 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
49679 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
49680 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
49681 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
49682 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
49683 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
49684 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
49685 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
49686 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
49687 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
49688
49689 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
49690 `grep --include'.
49691 (pkgdata_MODULES): Add test.mod.
49692
233b1628 496932005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49694
49695 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
49696 appending to variables with "+=".
49697 (PModule): Use full pathname to generate *.lst filenames.
49698
49699 * Makefile.in: Fixed list rules moved from genmk.rb.
49700 (.DELETE_ON_ERROR): New special target.
49701 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
49702
49703 * conf/i386-pc.rmk: Include conf/common.mk.
49704 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 49705 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 49706 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
49707 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
49708 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
49709 configfile.mod, search.mod, gzio.mod and test.mod.
49710 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
49711 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
49712 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
49713 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
49714 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
49715 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
49716 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
49717 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
49718 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
49719 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
49720 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
49721 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
49722 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
49723 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
49724 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
49725 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
49726 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
49727 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
49728 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
49729 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
49730 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
49731 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
49732 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
49733 here...
49734 * conf/common.rmk: ... to here. New file.
49735
49736 * conf/common.mk: New file.
49737
16f820c8 497382005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
49739
49740 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
49741 (grub_script.tab.c): ... here.
49742
49743 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
49744 (grub_script.tab.c): ... here.
49745
49746 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
49747 (grub_script.tab.c): ... here.
49748
49749 * normal/command.c (grub_command_find): Fixed a memory leak of
49750 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
49751
63ba1554 497522005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49753
49754 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
49755 "@" which marks the start of a comment on ARM.
49756 (VARIABLE): Likewise.
49757
7f67dc13 497582005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49759
79bbb63f 49760 Add support for Linux/ADFS partition tables.
7f67dc13 49761
49762 * partmap/acorn.c: New file.
49763
49764 * include/grub/acorn_filecore.h: Likewise.
49765
49766 * DISTLIST: Added `partmap/acorn.c' and
49767 `include/grub/acorn_filecore.h'.
f19dbdb7 49768
7f67dc13 49769 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49770 `partmap/acorn.c'.
49771 (pkgdata_MODULES): Add `acorn.mod'.
49772 (acorn_mod_SOURCES): New variable.
49773 (acorn_mod_CFLAGS): Likewise.
49774
49775 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
49776 `partmap/acorn.c'.
49777 (pkgdata_MODULES): Add `acorn.mod'.
49778 (acorn_mod_SOURCES): New variable.
49779 (acorn_mod_CFLAGS): Likewise.
49780
49781 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
49782 (pkgdata_MODULES): Add `acorn.mod'.
49783 (acorn_mod_SOURCES): New variable.
49784 (acorn_mod_CFLAGS): Likewise.
49785 (acorn_mod_LDFLAGS): Likewise.
49786
49787 * include/types.h (grub_disk_addr_t): New typedef.
49788
6d099807 497892005-11-13 Marco Gerards <mgerards@xs4all.nl>
49790
49791 * geninit.sh: New file.
49792
49793 * geninitheader.sh: Likewise.
49794
49795 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
49796 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
49797 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
49798 * commands/configfile.c (grub_configfile_init)
49799 (grub_configfile_fini): Likewise.
49800 * commands/default.c (grub_default_init, grub_default_fini):
49801 Likewise.
49802 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
49803 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
49804 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
49805 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
49806 Likewise.
49807 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
49808 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
49809 Likewise.
49810 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 49811 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 49812 Likewise.
49813 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
49814 Likewise.
fe6b695a 49815 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 49816 Likewise.
49817 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
49818 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
49819 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
49820 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
49821 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
49822 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
49823 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
49824 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
49825 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
49826 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
49827 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
49828 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
49829 * partmap/amiga.c (grub_amiga_partition_map_init)
49830 (grub_amiga_partition_map_fini): Likewise.
49831 * partmap/apple.c (grub_apple_partition_map_init)
49832 (grub_apple_partition_map_fini): Likewise.
49833 * partmap/pc.c (grub_pc_partition_map_init)
49834 (grub_pc_partition_map_fini): Likewise.
49835 * partmap/sun.c (grub_sun_partition_map_init,
49836 grub_sun_partition_map_fini): Likewise.
49837 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
49838 Likewise.
49839
49840 * util/grub-emu.c: Include <grub_modules_init.h>.
49841 (main): Don't initialize and de-initialize any modules directly,
49842 use `grub_init_all' and `grub_fini_all' instead.
49843
49844 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
49845 `grub_vesafb_mod_init'.
49846 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
49847 all users.
49848 * term/i386/pc/vga.c (grub_vga_init): Renamed to
49849 `grub_vga_mod_init'. Updated all users.
49850 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 49851
6d099807 49852 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
49853 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
49854 rules.
49855
49856 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
49857 Generate a function to initialize the module in utilities.
49858 Updated all callers.
49859 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
49860 initialize the module in utilities. Updated all callers.
49861
9046bcf0 498622005-11-09 Hollis Blanchard <hollis@penguinppc.org>
49863
49864 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
49865 escape sequence and a literal ^L to clear the screen.
49866
49867 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
49868 when returning from Open Firmware.
49869
d13ea639 498702005-11-09 Hollis Blanchard <hollis@penguinppc.org>
49871
49872 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
49873 (grub_ofconsole_height): Likewise.
49874 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
49875 manually insert a '\n'.
49876 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
49877 `grub_ofconsole_height'. Return early if these are already set.
49878
a8fcf206 498792005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
49880
49881 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
49882 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
49883 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
49884 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
49885 and `normal/script.c'.
49886 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
49887 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
49888 (test_mod_SOURCES): New variable.
49889 (test_mod_CFLAGS): Likewise.
49890 (test_mod_LDFLAGS): Likewise.
49891 (pkgdata_MODULES): Add `test.mod'.
49892 (grub_script.tab.c): New rule.
49893 (grub_script.tab.h): Likewise.
49894
b6b32745 498952005-11-07 Marco Gerards <mgerards@xs4all.nl>
49896
49897 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49898 `commands/test.c', `normal/execute.c', `normal/lexer.c',
49899 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
49900 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
49901 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
49902 (test_mod_SOURCES): New variable.
49903 (test_mod_CFLAGS): Likewise.
49904 (pkgdata_MODULES): Add `test.mod'.
49905 (grub_script.tab.c): New rule.
49906 (grub_script.tab.h): Likewise.
49907
daac212a 499082005-11-06 Marco Gerards <mgerards@xs4all.nl>
49909
49910 Add initial scripting support.
49911
49912 * commands/test.c: New file.
49913 * include/grub/script.h: Likewise.
49914 * normal/execute.c: Likewise.
49915 * normal/function.c: Likewise.
49916 * normal/lexer.c: Likewise.
49917 * normal/parser.y: Likewise.
49918 * normal/script.c: Likewise.
49919
49920 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 49921
daac212a 49922 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
49923 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
49924 `normal/function.c' and `normal/script.c'.
49925 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
49926 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 49927 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
49928 variables.
daac212a 49929 (pkgdata_MODULES): Add `test.mod'.
49930 (grub_script.tab.c): New rule.
49931 (grub_script.tab.h): Likewise.
49932
49933 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
49934
49935 * include/grub/normal.h (grub_test_init): New prototype.
49936 (grub_test_fini): Likewise.
f19dbdb7 49937
daac212a 49938 * normal/command.c: Include <grub/script.h>.
49939 (grub_command_execute): Rewritten.
f19dbdb7 49940
daac212a 49941 * util/grub-emu.c (main): Call `grub_test_init' and
49942 `grub_test_fini'.
49943
77500b2b 499442005-11-03 Hollis Blanchard <hollis@penguinppc.org>
49945
49946 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
49947 to 0.
49948 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
49949 there are no pending characters.
49950
e45deb9e 499512005-11-03 Hollis Blanchard <hollis@penguinppc.org>
49952
49953 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
49954 `grub_strndup' to drop device arguments. Replace unnecessary
49955 `grub_strndup' with `grub_strdup'.
49956
4ce32619 499572005-11-03 Hollis Blanchard <hollis@penguinppc.org>
49958
49959 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
49960 `debug' environment variable has been set.
49961
499622005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 49963
4ce32619 49964 * Makefile.in (install-local): Use $(DATA).
49965 (uninstall): Likewise.
49966 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
49967 (sbin_UTILITIES): ... to here.
49968 (sbin_SCRIPTS): New variable.
49969 (grub_install_SOURCES): New variable.
49970 * util/powerpc/ieee1275/grub-install.in: New file.
49971 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
49972 variable.
49973 (add_segments): Call `grub_util_get_path'.
49974
25fe6f03 499752005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
49976
49977 From Timothy Baldwin:
49978 * commands/ls.c (grub_ls_list_files): Close FILE with
49979 grub_file_close.
49980 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
49981
04ccf3ec 499822005-10-24 Marco Gerards <mgerards@xs4all.nl>
49983
49984 * include/grub/parser.h: New file.
49985
49986 * kern/parser.c: Likewise.
49987
49988 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
49989 (grub_setup_SOURCES): Likewise.
49990 (grub_probefs_SOURCES): Likewise.
49991 (grub_emu_SOURCES): Likewise.
49992 (kernel_img_HEADERS): Add `parser.h'.
49993
49994 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
49995 (grub_emu_SOURCES): Add `kern/parser.c'.
49996 (grubof_SOURCES): Likewise.
49997
49998 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
49999 (grubof_SOURCES): Add `kern/parser.c'.
50000
50001 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
50002
50003 * kern/misc.c (grub_split_cmdline): Removed function.
50004
50005 * kern/rescue.c: Include <grub/parser.h>.
50006 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
50007 of `grub_split_cmdline'.
50008
50009 * normal/command.c: Include <grub/parser.h>.
50010 (grub_command_execute): Use `grub_parser_split_cmdline' instead
50011 of `grub_split_cmdline'.
50012
50013 * normal/completion.c: Include <grub/parser.h>.
50014 (cmdline_state): New variable.
50015 (iterate_dir): End the filename with a quote depending on the
50016 command line state.
50017 (get_state): new function.
50018 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
50019 split the arguments and determine the current argument. When the
50020 argument string is not quoted, escape all spaces.
50021
6d8f4b0e 500222005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50023
50024 * normal/sparc64/setjmp.S: New file.
50025
15cf03ed 500262005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50027
50028 * include/grub/sparc64/libgcc.h: New file.
50029 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
50030 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
50031 normal/sparc64/setjmp.c.
50032
03e8661a 500332005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
50034
50035 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
50036 * kern/sparc64/cache.S: New file.
50037 * kern/sparc64/cache.c: Removed.
50038 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
50039 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
50040 -mtune=ultrasparc.
50041 (COMMON_LDFLAGS): Add -melf64_sparc.
50042 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
50043 (grubof_SOURCES): Use cache.S instead of cache.c.
50044 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
50045 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
50046 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
50047 commented though.
50048 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
50049 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
50050 (linux_mod_CFLAGS): Commented out.
50051 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
50052 out because module isn't built.
50053 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
50054 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
50055 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
50056 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
50057 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
50058 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50059 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50060 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
50061 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
50062 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
50063 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
50064 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
50065 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
50066 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
50067
34eeec8a 500682005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
50069
50070 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
50071 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
50072 longer, because HFS should not be used on PC.
50073
708367a3 500742005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50075
50076 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
50077 consistently within the loop.
50078
6fa1251a 500792005-10-15 Marco Gerards <mgerards@xs4all.nl>
50080
50081 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
50082 directory can not be read.
50083
4801580b 500842005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50085
50086 * configure.ac (AC_INIT): Increase the version number to 1.91.
50087
50088 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
50089 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
50090 term/i386/pc/serial.c.
50091
219ad426 500922005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50093
50094 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
50095 file size must be permitted.
50096
50097 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
50098 between %ah and %al.
50099
688e5699 501002005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
50101
50102 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
50103 grub_uint64_t.
50104 Call the hook with a NUL-terminated filename.
50105 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
50106 grub_cpu_to_be32.
50107
50108 * kern/term.c (cursor_state): New variable.
50109 (grub_term_set_current): Reset the cursor state on a new
50110 terminal.
50111 (grub_setcursor): Rewritten to use CURSOR_STATE.
50112 (grub_getcursor): New function.
50113
50114 * include/grub/term.h (grub_getcursor): New prototype.
50115
50116 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
50117 integers on ARM. Reported by Timothy Baldwin
50118 <T.E.Baldwin99@members.leeds.ac.uk>.
50119
bb34586c 501202005-10-11 Marco Gerards <mgerards@xs4all.nl>
50121
50122 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
50123 allocated.
50124 (grub_sfs_dir): Likewise.
50125
9a909877 501262005-10-09 Marco Gerards <mgerards@xs4all.nl>
50127
50128 Add support for the SFS filesystem.
50129
50130 * fs/sfs.c: New file.
50131
50132 * DISTLIST: Added `fs/sfs.c'.
50133
50134 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
50135 (grub_probefs_SOURCES): Likewise.
50136 (grub_emu_SOURCES): Likewise.
50137 (pkgdata_MODULES): Add `sfs.mod'.
50138 (sfs_mod_SOURCES): New variable.
50139 (sfs_mod_CFLAGS): Likewise.
50140 (sfs_mod_LDFLAGS): Likewise.
50141
50142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
50143 (pkgdata_MODULES): Add `sfs.mod'.
50144 (sfs_mod_SOURCES): New variable.
50145 (sfs_mod_CFLAGS): Likewise.
50146
50147 * util/grub-emu.c (main): Call `grub_sfs_init' and
50148 `grub_sfs_fini'.
50149
50150 * include/grub/fs.h (grub_sfs_init): New prototype.
50151 (grub_sfs_fini): Likewise.
50152
57bdbde3 501532005-10-07 Marco Gerards <mgerards@xs4all.nl>
50154
50155 Add support for the AFFS filesystem.
50156
50157 * fs/affs.c: New file.
50158
50159 * DISTLIST: Added `fs/affs.c'.
50160
50161 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
50162 (grub_probefs_SOURCES): Likewise.
50163 (grub_emu_SOURCES): Likewise.
50164 (pkgdata_MODULES): Add `affs.mod'.
50165 (affs_mod_SOURCES): New variable.
50166 (affs_mod_CFLAGS): Likewise.
50167 (affs_mod_LDFLAGS): Likewise.
50168
50169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
50170 (pkgdata_MODULES): Add `affs.mod'.
50171 (affs_mod_SOURCES): New variable.
50172 (affs_mod_CFLAGS): Likewise.
50173
50174 * util/grub-emu.c (main): Call `grub_affs_init' and
50175 `grub_affs_fini'.
50176
50177 * include/grub/fs.h (grub_affs_init): New prototype.
50178 (grub_affs_fini): Likewise.
50179
047b67e0 501802005-10-01 Marco Gerards <mgerards@xs4all.nl>
50181
50182 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
50183
59b8208a 501842005-10-01 Marco Gerards <mgerards@xs4all.nl>
50185
50186 * configure.ac: Accept `x86_64' as host_cpu. In that case add
50187 `-m32' to CFLAGS.
50188
50189 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
50190 linking.
f19dbdb7 50191
59b8208a 50192 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
50193 (COMMON_LDFLAGS): New variable.
50194 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
50195 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
50196 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
50197 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
50198 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
50199 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
50200 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
50201 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
50202 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
50203 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
50204 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
50205 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
50206 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
50207 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
50208 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
50209 variables.
50210 (normal_mod_ASFLAGS): Add `-m32'.
50211
50212 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
50213 (grub_host_size_t, grub_host_ssize_t): New types.
50214 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 50215 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 50216 `GRUB_HOST_SIZEOF_VOID_P'.
50217
50218 * include/grub/kernel.h (struct grub_module_header): Type of
50219 member offset changed to `grub_host_off_t'. Type of member size
50220 changed to `grub_host_size_t'.
50221 (struct grub_module_info): Type of member offset changed to
50222 `grub_host_off_t'. Type of member size changed to
50223 `grub_host_size_t'.
50224
b4093103 502252005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
50226
50227 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 50228
b4093103 50229 * kern/i386/pc/startup.S (multiboot_header): New label.
50230 (multiboot_entry): Likewise.
50231 (multiboot_trampoline): Likewise.
50232
50233 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
50234 Increased to 0x4A0.
50235
50236 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
50237 put parentheses after a question mark.
50238 [!GRUB_UTIL] (my_mod): New variable.
50239
50240 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
50241
b2499b29 502422005-09-28 Marco Gerards <mgerards@xs4all.nl>
50243
50244 Adds support for the XFS filesystem. Btrees are not supported
50245 yet.
50246
50247 * fs/xfs.c: New file.
50248
50249 * DISTLIST: Added `fs/xfs.c'.
50250
50251 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
50252 (grub_probefs_SOURCES): Likewise.
50253 (grub_emu_SOURCES): Likewise.
50254 (pkgdata_MODULES): Add `xfs.mod'.
50255 (xfs_mod_SOURCES): New variable.
50256 (xfs_mod_CFLAGS): Likewise.
50257
50258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
50259 (pkgdata_MODULES): Add `xfs.mod'.
50260 (xfs_mod_SOURCES): New variable.
50261 (xfs_mod_CFLAGS): Likewise.
50262
50263 * util/grub-emu.c (main): Call `grub_xfs_init' and
50264 `grub_xfs_fini'.
50265
50266 * include/grub/fs.h (grub_xfs_init): New prototype.
50267 (grub_xfs_fini): Likewise.
50268
f19dbdb7 50269
83d37a62 502702005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
50271
50272 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
50273 color modes, allow greater than 16 colors to be configured as
50274 a default palette.
50275
47d2d65e 502762005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
50277
50278 * normal/completion.c (complete_arguments): Add the qualifier
50279 const into OPTIONS.
50280
50281 From Omniflux <omniflux+lists@omniflux.com>:
50282 * include/grub/terminfo.h: New file.
50283 * include/grub/tparm.h: Likewise.
50284 * include/grub/i386/pc/serial.h: Likewise.
50285 * term/terminfo.c: Likewise.
50286 * term/tparm.c: Likewise.
50287 * term/i386/pc/serial.c: Likewise.
50288 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
50289 serial.mod.
50290 (terminfo_mod_SOURCES): New variable.
50291 (terminfo_mod_CFLAGS): Likewise.
50292 (serial_mod_SOURCES): Likewise.
50293 (serial_mod_CFLAGS): Likewise.
50294
48b671ff 502952005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
50296
50297 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
50298 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
50299 and kern/powerpc/ieee1275/cmain.c, respectively.
50300
50301 * boot/powerpc/ieee1275/crt0.S: Moved to ...
50302 * kern/powerpc/ieee1275/crt0.S: ... here.
50303
50304 * boot/powerpc/ieee1275/cmain.c: Moved to ...
50305 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 50306
48b671ff 50307 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
50308 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
50309 instead of boot/powerpc/ieee1275/crt0.S and
50310 boot/powerpc/ieee1275/cmain.c, respectively.
50311
50312 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
50313 sectors. It was not used anyway.
50314
09fc77a7 503152005-08-30 Hollis Blanchard <hollis@penguinppc.org>
50316
50317 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
50318 `unused parameter' warning.
50319
003789c7 503202005-08-30 Hollis Blanchard <hollis@penguinppc.org>
50321
50322 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
50323 function.
50324 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
50325 getcharwidth.
50326
67f44c86 503272005-08-28 Marco Gerards <metgerards@student.han.nl>
50328
50329 * include/grub/normal.h (enum grub_completion_type): Added
50330 `GRUB_COMPLETION_TYPE_ARGUMENT'.
50331
50332 * normal/cmdline.c (print_completion): Handle
50333 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
50334 * normal/menu_entry.c (store_completion): Likewise.
50335
50336 * normal/completion.c (complete_arguments): New function.
50337 (grub_normal_do_completion): Call `complete_arguments' when the
50338 current words start with a dash.
50339
0b5abe02 503402005-08-27 Marco Gerards <metgerards@student.han.nl>
50341
50342 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
50343 `gzio.mod' instead of `io.mod').
50344
d9864ee1 503452005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
50346
50347 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
50348 (DISTDIRS): Added io and video.
50349 Rewrite the search routine to make an output consistently.
50350
50351 * DISTLIST: Added conf/sparc64-ieee1275.mk,
50352 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
50353 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
50354 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
50355 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
50356 util/powerpc/ieee1275/misc.c.
f19dbdb7 50357
d9864ee1 50358 * include/grub/gzio.h: New file.
50359 * io/gzio.c: Likewise.
f19dbdb7 50360
d9864ee1 50361 * kern/file.c (grub_file_close): Call grub_device_close only if
50362 FILE->DEVICE is not NULL.
50363
50364 * include/grub/mm.h [!NULL] (NULL): New macro.
50365
50366 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
50367
50368 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
50369 (pkgdata_MODULES): Added gzio.mod.
50370 (gzio_mod_SOURCES): New variable.
50371 (gzio_mod_CFLAGS): Likewise.
50372
50373 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
50374 (pkgdata_MODULES): Added gzio.mod.
50375 (gzio_mod_SOURCES): New variable.
50376 (gzio_mod_CFLAGS): Likewise.
50377
50378 * commands/cat.c: Include grub/gzio.h.
50379 (grub_cmd_cat): Use grub_gzfile_open instead of
50380 grub_file_open.
f19dbdb7 50381
d9864ee1 50382 * commands/cmp.c: Include grub/gzio.h.
50383 (grub_cmd_cmp): Use grub_gzfile_open instead of
50384 grub_file_open.
50385
50386 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
50387 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
50388 grub_file_open.
50389 (grub_rescue_cmd_module): Likewise.
50390
fa46f4b5 503912005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
50392
50393 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
50394 kern/sparc64/ieee1275/init.c because it contains _start.
50395 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
50396
e9211b5d 503972005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
50398
50399 * configure.ac: Add support for sparc64 host with ieee1275
50400 firmware.
50401 * configure: Generated from configure.ac.
50402 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
50403 instead of int.
50404 (grub_ofdisk_read): Likewise.
50405 (grub_ofdisk_open): Use %p to print pointer values, and cast the
50406 pointers as (void *) to remove a warning.
50407 (grub_ofdisk_close): Likewise.
50408 (grub_ofdisk_read): Likewise.
50409 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
50410 returns, so make it return void to remove a warning.
50411 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
50412 Corresponding prototype change.
50413 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
50414 values, and cast the pointers as (void *) to remove a warning.
50415 (grub_mm_dump): Likewise.
50416 * conf/sparc64-ieee1275.mk: New file.
50417 * conf/sparc64-ieee1275.rmk: Likewise.
50418 * include/grub/sparc64/setjmp.h: Likewise.
50419 * include/grub/sparc64/types.h: Likewise.
50420 * include/grub/sparc64/ieee1275/console.h: Likewise.
50421 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
50422 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
50423 * include/grub/sparc64/ieee1275/time.h: Likewise.
50424 * kern/sparc64/cache.c: Likewise.
50425 * kern/sparc64/dl.c: Likewise.
50426 * kern/sparc64/ieee1275/init.c: Likewise.
50427 * kern/sparc64/ieee1275/openfw.c: Likewise.
50428
385c6a92 504292005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
50430
50431 * util/console.c (grub_ncurses_putchar): If C is greater than
50432 0x7f, set C to a question mark.
50433 (grub_ncurses_getcharwidth): New function.
50434 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
50435 getcharwidth.
50436
50437 * normal/menu.c (print_entry): Made aware of Unicode. First,
50438 convert TITLE to UCS-4, and predict the cursor position by
50439 grub_getcharwidth.
50440
50441 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
50442 const to SRC.
50443 * kern/misc.c (grub_utf16_to_utf8): Likewise.
50444
16ccb8b1 504452005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50446
50447 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
50448 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
50449 grub_strcat.
50450
50451 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
50452 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
50453 grub_strcpy and grub_strlen. Take it into account that a space
50454 character is inserted as a delimiter.
50455
6a85ce79 504562005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50457
50458 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 50459 invalid magic in the error.
6a85ce79 50460
50461 * commands/search.c: New file.
f19dbdb7 50462
6a85ce79 50463 * util/grub-emu.c (main): Call grub_search_init and
50464 grub_search_fini.
50465
50466 * kern/rescue.c (grub_rescue_print_disks): Removed.
50467 (grub_rescue_print_devices): New function.
50468 (grub_rescue_cmd_ls): Use grub_device_iterate with
50469 grub_rescue_print_devices instead of grub_disk_dev_iterate with
50470 grub_rescue_print_disks.
50471
50472 * kern/partition.c (grub_partition_iterate): Return the result of
50473 PARTMAP->ITERATE instead of GRUB_ERRNO.
50474
50475 * kern/device.c: Include grub/partition.h.
50476 (grub_device_iterate): New function.
50477
50478 * include/grub/partition.h (grub_partition_iterate): Return int
50479 instead of grub_err_t.
50480
50481 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
50482 prototype.
50483 [GRUB_UTIL] (grub_search_fini): Likewise.
50484
50485 * include/grub/device.h (grub_device_iterate): New prototype.
50486
50487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
50488 commands/search.c.
50489 (pkgdata_MODULES): Added search.mod.
50490 (search_mod_SOURCES): New variable.
50491 (search_mod_CFLAGS): Likewise.
50492
50493 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
50494 (pkgdata_MODULES): Added search.mod.
50495 (search_mod_SOURCES): New variable.
50496 (search_mod_CFLAGS): Likewise.
50497
50498 * commands/ls.c (grub_ls_list_disks): Renamed to ...
50499 (grub_ls_list_devices): ... this, and use grub_device_iterate.
50500 All callers changed.
50501
50502 * DISTLIST: Added commands/search.c.
50503
ef095434 505042005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
50505
50506 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
50507 conversion.
50508 (grub_getcharwidth): New function.
50509
50510 * kern/misc.c (grub_utf8_to_ucs4): New function.
50511
50512 * include/grub/term.h (struct grub_term): Added a new member
50513 "getcharwidth".
50514 (grub_getcharwidth): New prototype.
50515
50516 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
50517
50518 * term/i386/pc/console.c (map_char): New function. Segregated from
50519 grub_console_putchar.
50520 (grub_console_putchar): Use map_char.
50521 (grub_console_getcharwidth): New function.
50522 (grub_console_term): Specified grub_console_getcharwidth as
50523 getcharwidth.
50524
50525 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
50526 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
50527
50528 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
50529 GRUB_ERRNO.
50530 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
50531 on grub_strtoul completely.
50532 (write_char): Declare local variables in the beginning of the
50533 function.
50534 (grub_vesafb_getcharwidth): New function.
50535 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
50536 getcharwidth.
50537
1f0a95e4 505382005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
50539
50540 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
50541 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
50542 commands/i386/pc/vbetest.c.
50543
50544 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
50545 call grub_vbe_get_controller_info again, because the returned
50546 information is volatile.
50547 (grub_vbe_set_video_mode): Mostly rewritten.
50548 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
50549 grub_vbe_status_t correctly.
50550 (grub_vbe_get_video_mode_info): Likewise.
50551 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
50552 several if statements.
50553
50554 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
50555 * commands/i386/pc/vbeinfo.c: ... this.
50556
50557 * commands/i386/pc/vbe_test.c: Renamed to ...
50558 * commands/i386/pc/vbetest.c: ... this.
50559
50560 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
50561 ...
50562 (grub_cmd_vbeinfo): ... this. Save video modes before
50563 iterating. Skip a video mode, if it is not available, not enough
50564 information is given or it is monochrome. Show the memory
50565 model. Leave the interpretation of MODEVAR to grub_strtoul
50566 completely.
50567 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
50568 (GRUB_MOD_FINI): Likewise.
50569
50570 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
50571 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
50572 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
50573 duplicated grub_env_get. Leave the interpretation of MODEVAR to
50574 grub_strtoul completely.
50575 (real2pm): Removed.
50576 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
50577 (GRUB_MOD_FINI): Likewise.
50578
50579 * normal/misc.c: Include grub/mm.h.
50580
50581 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
50582 vbe_list_modes with vbetest.mod and vbeinfo.mod.
50583 (vbe_list_modes_mod_SOURCES): Removed.
50584 (vbe_list_modes_mod_CFLAGS): Likewise.
50585 (vbe_test_mod_SOURCES): Likewise.
50586 (vbe_test_mod_CFLAGS): Likewise.
50587 (vbeinfo_mod_SOURCES): New variable.
50588 (vbeinfo_mod_CFLAGS): Likewise.
50589 (vbetest_mod_SOURCES): Likewise.
50590 (vbetest_mod_CFLAGS): Likewise.
50591
992ffbbe 505922005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
50593
50594 * normal/misc.c: New file.
50595
50596 * DISTLIST: Added normal/misc.c.
f19dbdb7 50597
992ffbbe 50598 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
50599 DISK to HOOK. Call HOOK with DISK.
50600 * partmap/apple.c (apple_partition_map_iterate): Likewise.
50601 * partmap/pc.c (pc_partition_map_iterate): Likewise.
50602 * partmap/sun.c (sun_partition_map_iterate): Likewise.
50603
50604 * normal/menu_entry.c (struct screen): Added a new member
50605 "completion_shown".
50606 (completion_buffer): New global variable.
50607 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
50608 (store_completion): New function.
50609 (complete): Likewise.
50610 (clear_completions): Likewise.
50611 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
50612 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
50613 a tab, call complete.
50614
50615 * normal/completion.c (disk_dev): Removed.
50616 (print_simple_completion): Likewise.
50617 (print_partition_completion): Likewise.
50618 (print_func): New global variable.
50619 (add_completion): Do not take the arguments WHAT or PRINT any
50620 longer. Added a new argument TYPE. Instead of printing directly,
50621 call PRINT_FUNC if not NULL.
50622 All callers changed.
50623 (complete_device): Use a local variable DEV instead of
50624 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
50625 (grub_normal_do_completion): Take a new argument HOOK. Do not
50626 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
50627 empty string, return NULL instead.
50628 All callers changed.
50629
50630 * normal/cmdline.c (print_completion): New function.
50631
50632 * kern/partition.c (grub_partition_iterate): Add an argument DISK
50633 to HOOK.
50634 All callers changed.
50635
50636 * kern/disk.c (grub_print_partinfo): Removed.
50637
50638 * include/grub/partition.h (struct grub_partition_map): Add a new
50639 argument DISK into HOOK of ITERATE.
50640 (grub_partition_iterate): Add a new argument DISK to HOOK.
50641
50642 * include/grub/normal.h (enum grub_completion_type): New enum.
50643 (grub_completion_type_t): New type.
50644 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
50645 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
50646 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
50647 (GRUB_COMPLETION_TYPE_FILE): Likewise.
50648 (grub_normal_do_completion): Added a new argument HOOK.
50649 (grub_normal_print_device_info): New prototype.
50650
50651 * include/grub/disk.h (grub_print_partinfo): Removed.
50652
50653 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
50654 (normal_mod_SOURCES): Likewise.
50655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50656 (normal_mod_SOURCES): Likewise.
50657
50658 * commands/ls.c (grub_ls_list_disks): Use
50659 grub_normal_print_device_info instead of grub_print_partinfo. Free
50660 PNAME.
50661 (grub_ls_list_files): Use grub_normal_print_device_info instead of
50662 duplicating the code.
50663
0bd41162 506642005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
50665
50666 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 50667 follow GCS more precisely.
50668 * commands/i386/pc/vbe_test.c: Likewise.
50669 * include/grub/i386/pc/vbe.h: Likewise.
50670 * term/i386/pc/vesafb.c: Likewise.
50671 * video/i386/pc/vbe.c: Likewise.
0bd41162 50672
6323696a 506732005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
50674
50675 * DISTLIST: Added term/i386/pc/vesafb.c
50676 DISTLIST: Added video/i386/pc/vbe.c
50677 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
50678 DISTLIST: Added commands/i386/pc/vbe_test.c.
50679 * commands/i386/pc/vbe_list_modes.c: New file.
50680 * commands/i386/pc/vbe_test.c: Likewise.
50681 * term/i386/pc/vesafb.c: Likewise.
50682 * video/i386/pc/vbe.c: Likewise.
50683 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
50684 (grub_vbe_probe) Added prototype.
50685 (grub_vbe_set_video_mode) Likewise.
50686 (grub_vbe_get_video_mode) Likewise.
50687 (grub_vbe_get_video_mode_info) Likewise.
50688 (grub_vbe_set_pixel_rgb) Likewise.
50689 (grub_vbe_set_pixel_index) Likewise.
50690 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
50691 (pkgdata_MODULES): Added vesafb.mod.
50692 (pkgdata_MODULES): Added vbe_list_modes.mod.
50693 (pkgdata_MODULES): Added vbe_test.mod.
50694 (vbe_mod_SOURCES): Added.
50695 (vbe_mod_CFLAGS): Likewise.
50696 (vesafb_mod_SOURCES): Likewise.
50697 (vesafb_mod_CFLAGS): Likewise.
50698 (vbe_list_modes_mod_SOURCES): Likewise.
50699 (vbe_list_modes_mod_CFLAGS): Likewise.
50700 (vbe_test_mod_SOURCES): Likewise.
50701 (vbe_test_mod_CFLAGS): Likewise.
50702
0a74e62f 507032005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
50704
0a74e62f 50705 * normal/command.c (grub_command_execute): If INTERACTIVE is
50706 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
50707 CMDLINE. Disable the pager if INTERACTIVE is true.
50708 All callers are changed.
50709
50710 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
50711 before reading a config file.
50712 * normal/main.c (read_config_file): Even if a command is not
50713 found, register it if it is within an entry.
50714
50715 * util/grub-emu.c: Include sys/types.h and unistd.h.
50716 (options): Added --hold.
50717 (struct arguments): Added a new member "hold".
50718 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
50719 missing.
50720 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
50721 cleared by a debugger, if it is not zero.
50722
50723 * include/grub/normal.h (grub_command_execute): Add an argument
50724 INTERACTIVE.
50725
e51f85ae 507262005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
50727
50728 * DISTLIST: Added include/grub/i386/pc/vbe.h.
50729
e9c6f39b 507302005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
50731
50732 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
50733 program with another one, because the old one didn't detect a bug
50734 in gcc-3.4. Always use regparm 2, because the new test is still
50735 not enough for gcc-4.0. Someone must investigate a simple test
50736 case which detects a bug in gcc-4.0.
50737
8de3495c 507382005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
50739
50740 * DISTLIST: Added normal/completion.c.
50741
50742 * normal/completion.c: New file.
f19dbdb7 50743
8de3495c 50744 * term/i386/pc/console.c (grub_console_getwh): New function.
50745 (grub_console_term): Assign grub_console_getwh to getwh.
50746
50747 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
50748 function is defined in normal/completion.c as
50749 grub_normal_do_completion.
50750 (grub_cmdline_get): Use grub_normal_do_completion instead of
50751 grub_tab_complete.
50752
50753 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
50754 returns non-zero, otherwise return 0.
50755 (grub_partition_iterate): First, probe the partition map. Then,
50756 call ITERATE only for this partition map.
50757
50758 * kern/misc.c (grub_strncmp): Rewritten.
50759
50760 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
50761 returns non-zero. Otherwise return 0.
50762
50763 * include/grub/partition.h (grub_partition_map_iterate): Return
50764 int instead of void.
50765
50766 * include/grub/normal.h (grub_normal_do_completion): New prototype.
50767
50768 * include/grub/misc.h (grub_strncmp): Change the type of N to
50769 grub_size_t.
50770
50771 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
50772 of void.
50773
50774 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 50775 unsigned explicitly before comparing it with I.
8de3495c 50776
50777 * kern/main.c (grub_env_write_root): Add the attribute unused into
50778 VAR.
50779
50780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
50781 normal/completion.c.
50782 (normal_mod_SOURCES): Likewise.
50783 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
50784 (normal_mod_SOURCES): Likewise.
50785
50786 * normal/command.c (grub_iterate_commands): If ITERATE returns
50787 non-zero, return one immediately.
50788
e85e144b 507892005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
50790
50791 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
50792 * kern/i386/pc/startup.S: Updated Global Descriptor table's
50793 descriptions.
50794 (grub_vbe_get_controller_info): New function.
50795 (grub_vbe_get_mode_info): Likewise.
50796 (grub_vbe_set_mode): Likewise.
50797 (grub_vbe_get_mode): Likewise.
50798 (grub_vbe_set_memory_window): Likewise.
50799 (grub_vbe_get_memory_window): Likewise.
50800 (grub_vbe_set_scanline_length): Likewise.
50801 (grub_vbe_get_scanline_length): Likewise.
50802 (grub_vbe_set_display_start): Likewise.
50803 (grub_vbe_get_display_start): Likewise.
50804 (grub_vbe_set_palette_data): Likewise.
50805 * include/grub/i386/pc/vbe.h: New file.
50806
c46153d2 508072005-08-08 Hollis Blanchard <hollis@penguinppc.org>
50808
50809 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
50810 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
50811 * DISTLIST: Likewise.
50812 * kern/ieee1275/of.c: Moved to ...
50813 * kern/ieee1275/ieee1275.c: ... here.
50814
0cb90c45 508152005-08-08 Hollis Blanchard <hollis@penguinppc.org>
50816
50817 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
50818 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
50819 Pass 0 as `end' parameter to grub_strtoul().
50820
a19fb360 508212005-08-08 Hollis Blanchard <hollis@penguinppc.org>
50822
50823 * include/grub/powerpc/ieee1275/console.h: Do not include
50824 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
50825 ifdef.
50826 (grub_console_cur_color): Remove i386-specific prototype.
50827 (grub_console_real_putchar): Likewise.
50828 (grub_console_checkkey): Likewise.
50829 (grub_console_getkey): Likewise.
50830 (grub_console_getxy): Likewise.
50831 (grub_console_gotoxy): Likewise.
50832 (grub_console_cls): Likewise.
50833 (grub_console_setcursor): Likewise.
50834 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
50835 Include <grub/machine/console.h>.
50836 * term/ieee1275/ofconsole.c: Likewise.
50837
4ac9bd04 508382005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
50839
50840 * Makefile.in (LIBLZO): New variable.
50841
50842 * configure.ac: Check for LZO version 2.
50843
50844 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
50845 lzo/lzo1x.h instead of lzo1x.h.
50846
50847 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
50848 of -llzo.
50849
50850 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
50851 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
50852
50853 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
50854 copying the data from PARTITION to P.
50855
f4917dfd 508562005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
50857
50858 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
50859 negative, unload the module.
50860
50861 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
50862 map is "pc_partition_map" but not "pc".
50863 (usage): Fix the description. The options are --boot-image and
50864 --core-image but not --boot-file or --core-file.
50865 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
50866 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
50867 DEFAULT_DIRECTORY.
50868
50869 * util/i386/pc/grub-install.in: Do not specify --boot-file or
50870 --core-file. Specify INSTALL_DEVICE as an argument.
50871
50872 * util/console.c: Include config.h.
50873 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
50874 [HAVE_NCURSES_H]: Include ncurses.h.
50875 [HAVE_CURSES_H]: Include curses.h.
50876 [!A_NORMAL] (A_NORMAL): Defined as zero.
50877 [!A_STANDOUT] (A_STANDOUT): Likewise.
50878
50879 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
50880 -lncurses.
50881 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
50882
50883 * configure.ac: Check for curses libraries and headers.
50884
50885 * Makefile.in (LIBCURSES): New variable.
50886
50887 * genmk.rb (Script::rule): Set the executable bits.
50888
50889 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
50890 name of the PC partition map is "pc_partition_map" but not "pc".
50891
0e143073 508922005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
50893
50894 * util/i386/pc/grub-install.in (grub_probefs): New variable.
50895 (modules): Likewise.
50896 (usage): Added descriptions for --modules and --grub-probefs.
50897 Handle --modules and --grub-probefs. Save the arguments in MODULES
50898 and GRUB_PROBEFS, respectively.
50899 Auto-detect a filesystem module against GRUBDIR. If the result is
50900 empty and modules are not specified explicitly, abort the
50901 installation. Add the result to MODULES.
50902
50903 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
50904 disk/powerpc/ieee1275/ofdisk.c,
50905 include/grub/powerpc/ieee1275/init.h and
50906 term/powerpc/ieee1275/ofconsole.c.
50907 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
50908 term/ieee1275/ofconsole.c.
50909
50910 * include/grub/powerpc/ieee1275/console.h: Resurrected.
50911
50912 * COPYING: Upgraded to the latest version. Only the address of the
50913 FSF office has changed.
f19dbdb7 50914
efd6e6d5 509152005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
50916
50917 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
50918 kern/ieee1275.c with kern/ieee1275/of.c.
50919
50920 * kern/ieee1275.c: Moved to ...
50921 * kern/ieee1275/of.c: ... here.
50922
8ceafda2 509232005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
50924
50925 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 50926 readability.
8ceafda2 50927
50928 * config.guess: Updated to the latest version from gnulib.
50929 * config.sub: Likewise.
50930 * install.sh: Likewise.
50931 * mkinstalldirs: Likewise.
50932
50933 * include/grub/console.h: Removed. This file is arch-specific. Do
50934 not put this in include/grub.
50935
50936 * include/grub/i386/pc/console.h: Resurrected.
50937
50938 * util/console.c: Include grub/machine/console.h instead of
50939 grub/console.h.
50940 * util/grub-emu.c: Likewise.
50941
267f6cd9 509422005-08-04 Marco Gerards <metgerards@student.han.nl>
50943
50944 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
50945 hardcoded value.
f19dbdb7 50946
267f6cd9 50947 From Vincent Pelletier <subdino2004@yahoo.fr>
50948 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
50949 Redefined to use grub_getwh.
50950 (grub_term): New member named getwh.
50951 (grub_getwh): New prototype.
50952 * kern/term.c (grub_getwh): New function.
50953 * term/i386/pc/console.c (grub_console_getwh): New function.
50954 (grub_console_term): New member `getwh'.
50955 * term/i386/pc/vga.c (grub_vga_getwh): New function.
50956 (grub_vga_term): New member `getwh'.
0b5abe02 50957 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 50958 grub_ssize_t.
50959 (grub_ofconsole_getw): New function.
50960 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
50961 (grub_ofconsole_term): New field named getwh and new initial
50962 value.
50963
3be7266d 509642005-08-03 Hollis Blanchard <hollis@penguinppc.org>
50965
50966 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
50967 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
50968 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
50969 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
50970 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
50971 of <grub/machine/ieee1275.h>.
50972 * commands/ieee1275/reboot.c: Likewise.
50973 * boot/powerpc/ieee1275/ieee1275.c: Move ...
50974 * kern/ieee1275.c: ... to here. All users updated. Change all
50975 parameter structs to use new type `grub_ieee1275_cell_t'.
50976 * term/powerpc/ieee1275/ofconsole.c: Move ...
50977 * term/ieee1275/ofconsole.c: ... to here. All users updated.
50978 * disk/powerpc/ieee1275/ofdisk.c: Move ...
50979 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
50980 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
50981 to return int.
50982 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
50983 Remove unused prototypes. All users updated.
50984 * include/grub/powerpc/ieee1275/console.h: Removed.
50985 * include/grub/powerpc/ieee1275/ieee1275.h: Define
50986 `grub_ieee1275_cell_t'.
50987 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
50988 Cast comparisons with -1 to the correct type.
50989 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
50990 type to match `grub_ieee1275_entry_fn'.
50991
8b5f3938 509922005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
50993
50994 * DISTLIST: Added util/i386/pc/grub-probefs.c.
50995
50996 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
50997 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
50998 partmap/sun.c.
50999 (grub_probefs_SOURCES): New variable.
51000
51001 * util/i386/pc/grub-probefs.c: New file.
51002
51003 * util/i386/pc/grub-setup.c (main): Call
51004 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
51005 grub_hfs_init and grub_jfs_init to initialize the system. Call
51006 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
51007 grub_pc_partition_map_fini to finish the system.
51008
ea409713 510092005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
51010
51011 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
51012 function.
51013 (grub_multiboot_load_elf32): Likewise.
51014 (grub_multiboot_is_elf64): Likewise.
51015 (grub_multiboot_load_elf64): Likewise.
51016 (grub_multiboot_load_elf): Likewise.
51017 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
51018 an ELF32 or ELF64 file.
51019 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
51020
51021 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
51022 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
51023 NULL before calling FS->LABEL.
51024 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
51025 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
51026 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
51027 before calling FS->LABEL.
51028
141a288b 510292005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
51030
51031 * util/i386/pc/grub-install.in (datadir): New variable.
51032 (libdir): Removed.
51033 (pkgdatadir): New variable.
51034 (pkglibdir): Removed.
51035
0d5f8a54 510362005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
51037
51038 * DISTLIST: Added util/i386/pc/grub-install.in.
51039
51040 * util/i386/pc/grub-install.in: New file.
51041
51042 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
51043 (grub_install_SOURCES): Likewise.
51044
51045 * genmk.rb: Added support for scripts.
51046 (Script): New class.
51047 (scripts): New variable.
51048
51049 * Makefile.in (install-local): Install sbin_SCRIPTS by
51050 INSTALL_SCRIPT.
51051 (uninstall): Remove sbin_SCRIPTS.
51052
51053 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
51054 device, try to get a GRUB device by
51055 grub_util_biosdisk_get_grub_dev.
51056 Free DEST_DEV.
51057
51058 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
51059 description for --device-map.
51060
5f968e1e 510612005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51062
51063 Change the semantics of variable hooks. They now return strings
51064 instead of error values.
f19dbdb7 51065
5f968e1e 51066 * util/i386/pc/grub-setup.c: Include grub/env.h.
51067 (setup): Use grub_device_set_root instead of grub_env_set.
51068
51069 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
51070 grub_env_get instead of grub_device_set_root and
51071 grub_device_get_root, respectively.
51072
51073 * kern/main.c (grub_env_write_root): New function.
51074 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
51075 grub_env_set instead of grub_device_set_root.
51076
51077 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
51078 many variables.
51079 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
51080 rather than calling ENV->WRITE_HOOK afterwards.
51081 (grub_env_get): Return the result of ENV->READ_HOOK rather than
51082 passing a pointer of a pointer.
51083 (grub_register_variable_hook): Change the types of "read_hook" and
51084 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
51085 respectively.
51086 Allocate the default empty string on the heap, because this string
51087 may be freed later.
51088
51089 * kern/device.c: Include grub/env.h.
51090 (grub_device_set_root): Removed.
51091 (grub_device_get_root): Likewise.
51092 (grub_device_open): Use grub_env_get instead of
51093 grub_device_get_root.
51094
51095 * include/grub/env.h (grub_env_read_hook_t): New type.
51096 (grub_env_write_hook_t): Likewise.
51097 (grub_env_var): Change the types of "read_hook" and "write_hook"
51098 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
51099 (grub_register_variable_hook): Likewise.
51100
51101 * include/grub/device.h (grub_device_set_root): Removed.
51102 (grub_device_set_root): Likewise.
51103
51104 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
51105 make sure that DIRNAME terminates with '/', so that
51106 grub_fat_find_dir will fail if PATH is not a directory.
51107
51108 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
51109 from DIRNAME.
51110 Use the qualifier auto for print_files and print_files_long.
51111 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
51112 as a regular file.
51113 Put a newline only if there is no error.
51114 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
51115 used.
51116
896f0afd 511172005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
51118
51119 * kern/partition.c (grub_partition_probe): Initialize PART to
51120 NULL. Otherwise, when no partition map is registered, this returns
51121 a garbage.
51122
b28b81b2 511232005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
51124
51125 * partmap/apple.c (apple_partition_map_iterate): Check if POS
51126 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
51127 valid.
51128
5f3607e0 511292005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
51130
51131 * commands/ls.c (grub_ls_list_disks): Print the filesystem
51132 information on each device, if it does not have partitions. Print
51133 "Device" instead of "Disk", because this function is not specific
51134 to disk devices.
51135
51136 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
51137 static to ensure that it is put on the memory rather than a
51138 register.
51139
502c87e8 511402005-07-17 Yoshinori Okuji <okuji@enbug.org>
51141
51142 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
51143 (grub_cat_init): Likewise.
51144 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
51145 (options): Likewise.
51146 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
51147 (grub_configfile_init): Likewise.
51148 * font/manager.c (GRUB_MOD_INIT): Likewise.
51149 * commands/help.c (GRUB_MOD_INIT): Likewise.
51150 (grub_help_init): Likewise.
51151 * normal/command.c (grub_command_init): Likewise.
51152 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
51153 * disk/loopback.c (grub_loop_init): Likewise.
51154 (GRUB_MOD_INIT): Likewise.
51155 * commands/ls.c (grub_ls_init): Likewise.
51156 (GRUB_MOD_INIT): Likewise.
51157 (options): Likewise.
51158 * commands/boot.c (grub_boot_init): Likewise.
51159 (GRUB_MOD_INIT): Likewise.
51160 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
51161 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
51162 (GRUB_MOD_INIT): Likewise.
51163 * commands/cmp.c (grub_cmp_init): Likewise.
51164 (GRUB_MOD_INIT): Likewise.
51165
51166 * normal/arg.c: Use <> instead of "" to include header files.
51167 (SHORT_ARG_HELP): New macro.
51168 (SHORT_ARG_USAGE): Likewise.
51169 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
51170 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
51171 descriptions.
51172 (find_short): Check if C is 'h' or 'u' explicitly.
51173 (grub_arg_show_help): Use space characters instead of tabs. Treat
51174 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
51175 are shown with --help and --usage only if they are not used for
51176 the command itself.
51177 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
51178 'h' and 'u'.
51179
51180 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
51181 const into "longarg". Change the type of "shortarg" to int.
51182
f806d18e 511832005-07-17 Yoshinori Okuji <okuji@enbug.org>
51184
51185 * boot/i386/pc/boot.S (boot_drive_check): New label.
51186
51187 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
51188 macro.
51189
51190 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
51191 which do not pass a boot drive correctly. Copied from GRUB Legacy.
51192
e293232b 511932005-07-17 Yoshinori Okuji <okuji@enbug.org>
51194
51195 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
51196 When turning off Gate A20, skip the check and return immediately,
51197 because this is not fatal usually.
51198
ebedfd00 511992005-07-17 Yoshinori Okuji <okuji@enbug.org>
51200
51201 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
51202 be 0x7C00 instead of 0x8000.
51203
51204 * boot/i386/pc/pxeboot.S: Rewritten.
51205
51206 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
51207 EXT_C.
51208 (gate_a20_check_state): Read a byte from 0x108000. Invert the
51209 result.
51210
654fc59f 512112005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
51212
51213 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
51214 robustness. This routine now supports a BIOS call and System
51215 Control Port A to modify the gate A20.
51216
51217 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51218 Increased to 0x440.
51219
09f9923f 512202005-07-12 Hollis Blanchard <hollis@penguinppc.org>
51221
51222 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
51223 device path and resulting ihandle.
51224 (grub_ofdisk_close): dprintf the ihandle being closed.
51225 (grub_ofdisk_read): dprintf function parameters.
51226 * kern/mm.c (grub_mm_init_region): Likewise.
51227 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
51228 (grub_linux_boot): dprintf the Linux entry point, initrd address and
51229 size, and boot arguments.
51230 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
51231 before loading into memory.
51232 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
51233 before loading into memory.
51234
7ef504d8 512352005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
51236
51237 * kern/mm.c: Added much documentation.
51238 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
51239 8, set to 5 instead of 8.
51240
e0f050c2 512412005-07-10 Yoshinori Okuji <okuji@enbug.org>
51242
51243 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
51244
51245 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
51246 (grub_mkdevicemap_SOURCES): New variable.
51247
51248 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
51249 lib/device.c of GRUB Legacy.
51250
7224189a 512512005-07-10 Yoshinori Okuji <okuji@enbug.org>
51252
51253 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
51254 instead of PATH is NULL.
51255
68c864eb 512562005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
51257
51258 * commands/cmp.c (BUFFER_SIZE): New macro.
51259 (grub_cmd_cmp): Close the right file at the right time. Compare
51260 only data just read. Don't report files of different size as
51261 identical. Dynamically allocate buffers. Move variable
51262 declarations at the beginning of function.
51263
e6f3e614 512642005-07-09 Yoshinori Okuji <okuji@enbug.org>
51265
51266 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
51267 reverse.
51268
f8f1559a 512692004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
51270
51271 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
51272 when backspace is pressed at beginning of line.
51273
39c9d41d 512742005-07-03 Yoshinori Okuji <okuji@enbug.org>
51275
51276 * DISTLIST: Added genfslist.sh.
51277
51278 * normal/main.c (fs_module_list): New variable.
51279 (autoload_fs_module): New function.
51280 (read_fs_list): Likewise.
51281 (grub_normal_execute): Call read_fs_list.
51282
51283 * kern/fs.c (grub_fs_autoload_hook): New variable.
51284 (grub_fs_probe): Added support for auto-loading.
51285
51286 * include/grub/normal.h (struct grub_fs_module_list): New struct.
51287 (grub_fs_module_list_t): New type.
51288
51289 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
51290 (grub_fs_autoload_hook): New prototype.
51291
51292 * genfslist.sh: New file.
f19dbdb7 51293
39c9d41d 51294 * genmk.rb: Added a rule to generate a filesystem list.
51295
121c1d83 512962005-06-30 Marco Gerards <metgerards@student.han.nl>
51297
51298 * configure.ac: Fix the test for cross-compiling.
51299
51300 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
51301 define GRUB_UTIL anymore.
51302
51303 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
51304 so this function works on other systems than just big endian.
51305 (load_modules): Likewise.
51306 (add_segments): Likewise.
51307
e75d76e1 513082005-06-23 Hollis Blanchard <hollis@penguinppc.org>
51309
51310 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
51311 contains `l' modifier, get a long from va_arg().
51312
50b5a0a7 513132005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
51314
51315 * kern/mm.c (grub_free): If the next free block which is being
51316 merged is the first free block, set the first block to the block
51317 being freed.
51318 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
51319
89371b20 513202005-05-08 Hollis Blanchard <hollis@penguinppc.org>
51321
51322 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
51323 `grub_ieee1275_chosen'.
51324
168d6e58 513252005-05-08 Hollis Blanchard <hollis@penguinppc.org>
51326
51327 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
51328 (grub_ieee1275_chosen): New variable.
51329 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
51330 `chosen'.
51331 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
51332 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
51333 Rename first argument to `phandle' for consistency.
51334 (grub_ieee1275_get_property_length): Likewise.
51335 (grub_ieee1275_next_property): Likewise. Change type of first argument
51336 to grub_ieee1275_phandle_t.
51337 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
51338 Move export next to declaration.
51339 (grub_ieee1275_chosen): New variable.
51340 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
51341 Correct cosmetic typo.
51342 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
51343 `grub_ieee1275_chosen'.
51344 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
51345 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
51346 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
51347 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
51348 `grub_ieee1275_chosen'.
51349
ca5baa3f 513502005-05-10 Hollis Blanchard <hollis@penguinppc.org>
51351
51352 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
51353 /chosen/bootargs.
51354 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
51355 /chosen/bootargs as "variable=value" pairs.
51356
708b345f 513572005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
51358
51359 * include/grub/misc.h (grub_dprintf): New macro.
51360 (grub_real_dprintf): New prototype.
51361 (grub_strword): Likewise.
51362 (grub_iswordseparator): Likewise.
51363 * kern/misc.c (grub_real_dprintf): New function.
51364 (grub_strword): Likewise.
51365 (grub_iswordseparator): Likewise.
51366
f4c5e67c 513672005-04-30 Hollis Blanchard <hollis@penguinppc.org>
51368
51369 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
51370 (roundup): Remove macro.
51371 (grub_ieee1275_flags): Make static.
51372 (grub_ieee1275_realmode): Remove.
51373 (grub_ieee1275_test_flag): New function.
51374 (grub_ieee1275_set_flag): Likewise.
51375 (find_options): Rename to `grub_ieee1275_find_options'; update
51376 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
51377 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
51378 (cmain): New prototype.
51379 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
51380 `grub_ieee1275_flags' directly.
51381 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
51382 machine/biosdisk.h.
51383 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
51384 Don't include grub/machine/init.h.
51385 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
51386 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
51387 Remove prototype.
51388 (grub_ieee1275_realmode): Likewise.
51389 (grub_ieee1275_flag): New enum.
51390 (grub_ieee1275_test_flag): New prototype.
51391 (grub_ieee1275_set_flag): New prototype.
51392 * include/grub/powerpc/ieee1275/init.h: Remove file.
51393 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
51394 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
51395 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
51396 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
51397 comment.
51398 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
51399 `grub_ieee1275_test_flag'.
51400 (grub_ieee1275_encode_devname): Likewise.
51401
ed16607e 514022005-04-21 Hollis Blanchard <hollis@penguinppc.org>
51403
51404 * include/grub/powerpc/ieee1275/ieee1275.h
51405 (grub_ieee1275_encode_devname): New prototype.
51406 (grub_ieee1275_get_filename): Likewise.
51407 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
51408 function.
51409 (grub_set_prefix): Likewise.
51410 (grub_machine_init): Call grub_set_prefix.
51411 * kern/powerpc/ieee1275/openfw.c: Fix typos.
51412 (grub_parse_type): New enum.
51413 (grub_ieee1275_get_devargs): New function.
51414 (grub_ieee1275_get_devname): Likewise.
51415 (grub_ieee1275_parse_args): Likewise.
51416 (grub_ieee1275_get_filename): Likewise.
51417 (grub_ieee1275_encode_devname): Likewise.
51418
be369920 514192005-03-30 Marco Gerards <metgerards@student.han.nl>
51420
51421 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
51422 `grub_loader_unset'.
51423
a5ce3a4a 514242005-03-26 Hollis Blanchard <hollis@penguinppc.org>
51425
51426 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
51427 instead of grub_ieee1275_interpret.
51428 (grub_halt_init): New function.
51429 (grub_halt_fini): Likewise.
51430 (GRUB_MOD_INIT): Correct message grammar.
51431 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
51432 instead of grub_ieee1275_interpret.
51433 (grub_reboot_init): New function.
51434 (grub_reboot_fini): Likewise.
51435 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
51436 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
51437 util/i386/pc/misc.c with commands/ieee1275/halt.c,
51438 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
51439 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
51440 function.
51441 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
51442 Add prototype.
51443 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
51444 prototype.
51445 (grub_halt): Likewise.
51446 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
51447 (cmain): Remove __attribute__((unused)).
51448 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
51449 (grub_heap_len): Likewise.
51450 (grub_machine_fini): New function.
51451 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
51452 (grub_halt): Likewise.
51453 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
51454 function.
51455 * util/powerpc/ieee1275/misc.c: New file.
51456
0058f771 514572005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
51458
51459 * DISTLIST: New file.
51460 * gendistlist.sh: Likewise.
f19dbdb7 51461
0058f771 51462 * Makefile.in (COMMON_DISTFILES): Removed.
51463 (BOOT_DISTFILES): Likewise.
51464 (CONF_DISTFILES): Likewise.
51465 (DISK_DISTFILES): Likewise.
51466 (FS_DISTFILES): Likewise.
51467 (INCLUDE_DISTFILES): Likewise.
51468 (KERN_DISTFILES): Likewise.
51469 (LOADER_DISTFILES): Likewise.
51470 (TERM_DISTFILES): Likewise.
51471 (UTIL_DISTFILES): Likewise.
51472 (DISTFILES): Likewise.
51473 (uninstall): Uninstall files in $(pkgdata_DATA).
51474 (DISTLIST): New target.
51475 (distdir): Use the contents of the file DISTLIST to get a list of
51476 distributed files.
51477
46b3b8a5 514782005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
51479
51480 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
51481 descriptor. This is ported from GRUB Legacy.
51482
51483 * gencmdlist.sh: Added an extra semicolon to make it work with
51484 old sed versions. Reported by Robert Bihlmeyer
51485 <robbe@orcus.priv.at>.
51486
5822ff87 514872005-03-08 Yoshinori Okuji <okuji@enbug.org>
51488
51489 Automatic loading of commands is supported.
f19dbdb7 51490
5822ff87 51491 * normal/main.c (read_command_list): New function.
51492 (grub_normal_execute): Call read_command_list.
51493
51494 * normal/command.c (grub_register_command): Return zero or CMD.
51495 Allocate CMD->NAME from the heap.
51496 Initialize CMD->MODULE_NAME to zero.
51497 Find the same name as well. If the same command is found and it is
51498 a dummy command, overwrite members. If it is not a dummy command,
51499 return zero.
51500 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
51501 (grub_command_find): If a dummy command is found, load a module
51502 and retry to find a command only once.
51503
51504 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
51505 make sure that each command is loaded.
51506
51507 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
51508 macro.
51509 (struct grub_command): Remove const from the member `name'.
51510 Add a new member `module_name'.
51511 (grub_register_command): Return grub_command_t.
51512
51513 * commands/help.c (grub_cmd_help): Call grub_command_find to make
51514 sure that each command is loaded.
51515
51516 * genmk.rb (PModule::rule): Specify a module name without the
51517 suffix ".mod" to gencmdlist.sh.
51518
7b1f4b57 515192005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
51520
51521 * gencmdlist.sh: New file.
f19dbdb7 51522
7b1f4b57 51523 * genmk.rb (PModule::rule): Generate a rule for a command list.
51524 Clean command.lst.
51525 Generate command.lst from $(COMMANDFILES).
51526
51527 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
51528 (DATA): Added $(pkgdata_DATA).
51529 (install-local): Install files in $(pkgdata_DATA).
51530
062aaf39 515312005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
51532
51533 * term/i386/pc/vga.c (debug_command): Removed.
51534 (GRUB_MOD_INIT): Do not register the command "debug".
51535
51536 From Hollis Blanchard:
51537 * commands/configfile.c: New file.
51538 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
51539 commands/configfile.c.
51540 (pkgdata_MODULES): Added configfile.mod.
51541 (configfile_mod_SOURCES): New variable.
51542 (configfile_mod_CFLAGS): Likewise.
51543 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51544 commands/configfile.c.
51545 (pkgdata_MODULES): Added configfile.mod.
51546 (configfile_mod_SOURCES): New variable.
51547 (configfile_mod_CFLAGS): Likewise.
51548 * util/grub-emu.c (main): Call grub_configfile_init and
51549 grub_configfile_fini.
51550 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
51551 prototype.
51552 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 51553
cee01aa6 515542005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
51555
51556 * normal/arg.c (grub_arg_show_help): Do not show the bug report
51557 address.
51558
51559 * commands/help.c (grub_cmd_help): Do not print newlines after
51560 the last command in print_command_help.
51561
93f3a1d8 515622005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
51563
51564 * commands/default.h: New file.
51565 * commands/timeout.h: Likewise.
51566 * normal/context.c: Likewise.
f19dbdb7 51567
93f3a1d8 51568 * util/misc.c: Do not include sys/times.h.
51569 Include sys/time.h and grub/machine/time.h.
51570 (grub_get_rtc): Rewritten with gettimeofday.
51571
51572 * util/grub-emu.c (main): Call grub_default_init and
51573 grub_timeout_init before grub_normal_init, and call
51574 grub_timeout_fini and grub_default_fini after grub_main.
51575
51576 * util/console.c (grub_ncurses_checkkey): Return the read
51577 character or -1.
51578
51579 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
51580 timeouts.
51581
51582 * normal/main.c (read_config_file): Push MENU. If this fails,
51583 print an error and wait for a user input.
51584 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
51585 If a menu is empty or an error occurs, pop MENU.
51586 (grub_normal_execute): Pop and free MENU after grub_menu_run
51587 returns.
51588
51589 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
51590
51591 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
51592 include time.h.
51593 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
51594 without GRUB_UTIL.
51595 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
51596 time.h.
51597 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
51598 without GRUB_UTIL.
51599
51600 * include/grub/normal.h (struct grub_menu_list): New struct.
51601 (grub_menu_list_t): New type.
51602 (struct grub_context): New struct.
51603 (grub_context_t): New type.
51604 (grub_register_command): Got rid of EXPORT_FUNC.
51605 (grub_unregister_command): Likewise.
51606 (grub_context_get): New prototype.
51607 (grub_context_get_current_menu): Likewise.
51608 (grub_context_push_menu): Likewise.
51609 (grub_context_pop_menu): Likewise.
51610 [GRUB_UTIL] (grub_default_init): Likewise.
51611 [GRUB_UTIL] (grub_default_fini): Likewise.
51612 [GRUB_UTIL] (grub_timeout_init): Likewise.
51613 [GRUB_UTIL] (grub_timeout_fini): Likewise.
51614
51615 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
51616 commands/timeout.c and normal/context.c.
51617 (pkgdata_MODULES): Added default.mod and timeout.mod.
51618 (normal_mod_SOURCES): Added normal/context.c.
51619 (default_mod_SOURCES): New variable.
51620 (default_mod_CFLAGS): Likewise.
51621 (timeout_mod_SOURCES): Likewise.
51622 (timeout_mod_CFLAGS): Likewise.
51623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
51624 conf/i386-pc.rmk.
51625 (pkgdata_MODULES): Added default.mod and timeout.mod.
51626 (normal_mod_SOURCES): Added normal/context.c.
51627 (default_mod_SOURCES): New variable.
51628 (default_mod_CFLAGS): Likewise.
51629 (timeout_mod_SOURCES): Likewise.
51630 (timeout_mod_CFLAGS): Likewise.
51631
51632 * Makefile.in (all-local): Added $(MKFILES).
51633
4ed2e1dd 516342005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
51635
51636 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
51637 (grub_emu_SOURCES): Likewise.
51638 (pkgdata_MODULES): Add `sun.mod'.
51639 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
51640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51641 `partmap/sun.c'.
51642 (pkgdata_MODULES): Add `sun.mod'.
51643 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
51644 * include/grub/partition.h (grub_sun_partition_map_init): New
51645 prototype.
51646 (grub_sun_partition_map_fini): Likewise.
51647 * partmap/sun.c: New file.
51648 * util/grub-emu.c (main): Initialize and de-initialize the sun
51649 partitionmap support.
51650
4d4e372e 516512005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
51652
51653 This implements an Emacs-like menu entry editor.
f19dbdb7 51654
4d4e372e 51655 * normal/menu_entry.c: New file.
f19dbdb7 51656
4d4e372e 51657 * util/console.c (grub_ncurses_putchar): Translate some Unicode
51658 characters to ASCII.
51659 (saved_char): New variable.
51660 (grub_ncurses_checkkey): Rewritten completely.
51661 (grub_ncurses_getkey): Likewise.
51662 (grub_ncurses_init): Call raw instead of cbreak.
51663
51664 * normal/menu.c (print_entry): Do not put a space.
51665 (init_page): Renamed to ...
51666 (grub_menu_init_page): ... this. All callers changed.
51667 (edit_menu_entry): Removed.
51668 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
51669
51670 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
51671
51672 * kern/misc.c (grub_vprintf): Call grub_refresh.
51673
51674 * normal/menu.c (DISP_LEFT): Renamed to ...
51675 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
51676 * normal/menu.c (DISP_UP): Renamed to ...
51677 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
51678 * normal/menu.c (DISP_RIGHT): Renamed to ...
51679 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
51680 * normal/menu.c (DISP_DOWN): Renamed to ...
51681 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
51682 * normal/menu.c (DISP_HLINE): Renamed to ...
51683 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
51684 * normal/menu.c (DISP_VLINE): Renamed to ...
51685 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
51686 * normal/menu.c (DISP_UL): Renamed to ...
51687 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
51688 * normal/menu.c (DISP_UR): Renamed to ...
51689 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
51690 * normal/menu.c (DISP_LL): Renamed to ...
51691 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
51692 * normal/menu.c (DISP_LR): Renamed to ...
51693 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
51694 * normal/menu.c (TERM_WIDTH): Renamed to ...
51695 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
51696 * normal/menu.c (TERM_HEIGHT): Renamed to ...
51697 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
51698 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
51699 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
51700 * normal/menu.c (TERM_MARGIN): Renamed to ...
51701 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
51702 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
51703 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
51704 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
51705 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
51706 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
51707 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
51708 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
51709 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
51710 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
51711 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
51712 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
51713 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
51714 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
51715 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
51716 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
51717 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
51718 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
51719 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
51720 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
51721 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
51722 All callers changed.
51723
51724 * include/grub/normal.h: New prototype.
51725
51726 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
51727 normal/menu_entry.c.
51728 (normal_mod_SOURCES): Likewise.
51729 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51730 (normal_mod_SOURCES): Likewise.
51731
e6b92c8a 517322005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
51733
51734 * include/grub/normal.h (grub_halt_init): New prototype.
51735 (grub_halt_fini): Likewise.
51736 (grub_reboot_init): Likewise.
51737 (grub_reboot_fini): Likewise.
51738
51739 * util/grub-emu.c: Include signal.h.
51740 (main_env): New global variable.
51741 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
51742 catch C-c.
51743 (grub_machine_fini): New function.
51744 (main): Call grub_halt_init and grub_reboot_init before
51745 grub_main, and grub_reboot_fini and grub_halt_fini after it.
51746 Call setjmp with MAIN_ENV to go back afterwards.
51747 Call grub_machine_fini right before return.
51748
51749 * include/grub/util/misc.h: Include setjmp.h.
51750 (main_env): New prototype.
51751
51752 * include/grub/kernel.h (grub_machine_fini): New prototype.
51753 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
51754 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
51755
51756 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
51757 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
51758 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 51759
e6b92c8a 51760 * util/i386/pc/misc.c: New file.
f19dbdb7 51761
e6b92c8a 51762 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
51763 util/i386/pc/misc.c, commands/i386/pc/halt.c and
51764 commands/i386/pc/reboot.c.
51765
c642636f 517662005-02-14 Guillem Jover <guillem@hadrons.org>
51767
51768 * include/grub/dl.h (grub_dl_check_header): New prototype.
51769 (grub_arch_dl_check_header): Change return type to grub_err_t,
51770 remove size parameter and export function. Update all callers.
51771 * kern/dl.c (grub_dl_check_header): New function.
51772 (grub_dl_load_core): Use `grub_dl_check_header' instead of
51773 `grub_arch_dl_check_header'. Check ELF type. Check if sections
51774 are inside the core.
51775 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
51776 independent ELF header checks.
51777 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
51778 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
51779 `grub_dl_check_header' instead of explicit checks. Check for the
51780 ELF type.
51781 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
51782 `grub_dl_check_header' instead of explicit checks. Remove arch
51783 specific ELF header checks.
51784
e6b92c8a 51785 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
51786 argument SIZE.
51787
5eabe94b 517882005-02-13 Hollis Blanchard <hollis@penguinppc.org>
51789
51790 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
51791 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
51792
1b14a681 517932005-02-12 Hollis Blanchard <hollis@penguinppc.org>
51794
51795 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 51796 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 51797 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 51798 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 51799 * partmap/amiga.c (amiga_partition_map_iterate): Return
51800 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
51801 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51802
aca108aa 518032005-02-01 Guillem Jover <guillem@hadrons.org>
51804
51805 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
51806 help info.
51807
c9f9c556 518082005-01-31 Marco Gerards <metgerards@student.han.nl>
51809
51810 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
51811 Removed prototype.
51812 (grub_rescue_cmd_linux): New prototype.
51813 (grub_rescue_cmd_initrd): Likewise.
51814 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
51815 `bi_rec'.
51816 (grub_linux_release_mem): Release the memory for the initrd.
51817 (grub_load_linux): Renamed from this...
51818 (grub_rescue_cmd_linux): ...To this. Changed all callers.
51819 Changed `entry' not to be static. Loop over memory regions to
51820 find another one when the default fails.
51821 (grub_rescue_cmd_initrd): New function.
51822 (grub_linux_init): Remove function.
51823 (grub_linux_fini): Likewise.
51824 (GRUB_MOD_INIT): Register `initrd'.
51825 (GRUB_MOD_FINI): Unregister `initrd'.
51826 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
51827 Function removed.
51828 (grub_linux_normal_fini): Likewise.
51829 (GRUB_MOD_INIT): Register `initrd'.
51830 (GRUB_MOD_FINI): Unregister `initrd'.
51831
990cf3aa 518322005-01-31 Marco Gerards <metgerards@student.han.nl>
51833
51834 * commands/help.c: New file.
51835 * normal/arg.c (show_help): Renamed to...
51836 (grub_arg_show_help): ... this.
51837 * commands/i386/pc/halt.c: New file.
51838 * commands/i386/pc/reboot.c: Likewise.
51839 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
51840 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
51841 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
51842 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
51843 variables.
51844 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51845 `commands/help.c'.
51846 (pkgdata_MODULES): Add `help.mod'.
51847 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
51848 * grub/i386/pc/init.h (grub_reboot): New prototype.
51849 (grub_halt): Likewise.
51850 * include/grub/normal.h (grub_arg_show_help): New prototype.
51851 (grub_help_init): Likewise.
51852 (grub_help_fini): Likewise.
51853 * util/grub-emu.c (main): Initialize and deinitialize the help
51854 command.
51855
51856 * normal/cmdline.c (grub_cmdline_get): Doc fix.
51857
51858 * normal/command.c (grub_command_init): Fixed the description of
51859 the `set' and `unset' commands.
51860
518612005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 51862
51863 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
51864 function.
51865 * commands/ieee1275/halt.c: New file.
51866 * commands/ieee1275/reboot.c: Likewise.
51867 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
51868 `__attribute__ ((unused))'. Some GCS related fixed.
51869 (grub_suspend_init) [GRUB_UTIL]: Function removed.
51870 (grub_suspend_fini): Likewise.
51871 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
51872 and `halt.mod'.
51873 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
51874 (halt_mod_CFLAGS): New variables.
51875 * include/grub/powerpc/ieee1275/ieee1275.h
51876 (grub_ieee1275_interpret): New prototype.
51877
1ab09cc7 518782005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
51879
51880 * include/grub/misc.h (memmove): New prototype.
51881 (memcpy): Likewise.
51882
8b8cbdb2 518832005-01-22 Hollis Blanchard <hollis@penguinppc.org>
51884
51885 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
51886 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
51887
e3741a27 518882005-01-22 Marco Gerards <metgerards@student.han.nl>
51889
51890 * kern/misc.c (grub_strndup): Function rewritten.
51891
776bd780 518922005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
51893
51894 * normal/menu.c (TERM_WIDTH): Macro redefined.
51895 (TERM_TOP_BORDER_Y): Likewise.
51896 (draw_border): Replaced while-loop by a for-loop. Make the number
51897 of lines consistent with the number of lines displayed in
51898 print_entries. Added a margin below the rectangle.
51899 (print_entry): Make the entry fit in the rectangle.
51900 (print_entries): Display the scroll arrows next to the right
51901 border.
51902
78026bce 519032005-01-21 Marco Gerards <metgerards@student.han.nl>
51904
51905 * fs/minix.c (grub_minix_find_file): Reserve more space for
51906 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
51907 `grub_strncpy' to copy `path' into it.
51908
67bbaf0f 519092005-01-21 Marco Gerards <metgerards@student.han.nl>
51910
51911 Add the loopback device, a device via which files can be accessed
51912 as devices.
f19dbdb7 51913
67bbaf0f 51914 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
51915 (pkgdata_MODULES): Add loopback.mod.
51916 (loopback_mod_SOURCES): New variable.
51917 (loopback_mod_CFLAGS): Likewise.
51918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51919 `disk/loopback.c'.
51920 (pkgdata_MODULES): Add loopback.mod.
51921 (loopback_mod_SOURCES): New variable.
51922 (loopback_mod_CFLAGS): Likewise.
51923 * disk/loopback.c: new file.
51924 * include/grub/normal.h (grub_loop_init): New prototype.
51925 (grub_loop_fini): New prototype.
51926 * util/grub-emu.c (main): Initialize and de-initialize loopback
51927 support.
51928 * include/grub/disk.h (grub_disk_dev_id): Add
51929 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
51930
6f1c18bd 519312005-01-20 Hollis Blanchard <hollis@penguinppc.org>
51932
51933 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
51934 function.
51935 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
51936 (suspend_mod_SOURCES): New variable.
51937 (suspend_mod_CFLAGS): Likewise.
51938 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
51939 New prototype.
51940 * commands/ieee1275/suspend.c: New file.
51941
b38551da 519422005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51943
51944 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 51945 ((unused))' to `__attribute__ ((used))'.
b38551da 51946 (GRUB_MOD_FINI): Likewise.
51947 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
51948 * genmk.rb (PModule): Assign space to common symbols when linking
51949 modules.
51950
777aff39 519512005-01-20 Marco Gerards <metgerards@student.han.nl>
51952
51953 * include/grub/mm.h (grub_mm_init_region): Change the type of the
51954 `unsigned' arguments to `grub_size_t'.
51955 (grub_malloc): Likewise.
51956 (grub_realloc): Likewise.
51957 (grub_memalign): Likewise.
51958 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
51959 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
51960 * util/misc.c (grub_malloc): Likewise.
51961 (grub_realloc): Likewise.
51962 * kern/mm.c (get_header_from_pointer): Change the casts to
51963 `unsigned' into a cast to `grub_size_t'.
51964
51965 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
51966 point to `currnode' when `currnode' is changed.
51967
51968 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
51969 Schottelius <nico-linux@schottelius.org>.
51970
d0ff18e1 519712005-01-09 Hollis Blanchard <hollis@penguinppc.org>
51972
51973 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
51974 (note_path): Remove variable.
51975 (GRUB_IEEE1275_NOTE_NAME): New macro.
51976 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
51977 (grub_ieee1275_note_hdr): New structure.
51978 (grub_ieee1275_note_desc): Likewise.
51979 (grub_ieee1275_note): Likewise.
51980 (load_note): Remove `dir' argument. All callers updated. Remove
51981 `note_img' and `path'. Do not load a file from `note_path'.
51982 Initialize a struct grub_ieee1275_note and write that to `out'.
51983 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
51984
4ca7004c 519852005-01-05 Marco Gerards <metgerards@student.han.nl>
51986
51987 * util/misc.c (grub_util_read_image): Revert last change. It
51988 called `grub_util_read_at', which seeks from the beginning of the
51989 file.
51990
0b412211 519912005-01-04 Hollis Blanchard <hollis@penguinppc.org>
51992
51993 * TODO: Add note about endianness in grub-mkimage.
51994 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
51995 section.
51996 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
51997 (grub_mkimage_SOURCES): New target.
51998 * include/grub/kernel.h (grub_start_addr): Remove variable.
51999 (grub_end_addr): Likewise.
52000 (grub_total_module_size): Likewise.
52001 (grub_kernel_image_size): Likewise.
52002 (GRUB_MODULE_MAGIC): New constant.
52003 (grub_module_info): New structure.
52004 (grub_arch_modules_addr): New prototype.
52005 (grub_get_end_addr): Remove prototype.
52006 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
52007 * include/grub/powerpc/ieee1275/kernel.h: New file.
52008 * include/grub/util/misc.h (grub_util_get_fp_size): New
52009 prototype.
52010 (grub_util_read_at): Likewise.
52011 (grub_util_write_image_at): Likewise.
52012 * kern/main.c (grub_get_end_addr): Remove function.
52013 (grub_load_modules): Call grub_arch_modules_addr instead of using
52014 grub_end_addr. Look for a grub_module_info struct in memory. Use
52015 the grub_module_info fields instead of calling grub_get_end_addr
52016 as loop conditions. Move grub_add_unused_region code here.
52017 (grub_add_unused_region): Remove function.
52018 * kern/i386/pc/init.c: Include grub/cache.h.
52019 (grub_machine_init): Remove call to grub_get_end_addr. Remove
52020 one call to add_mem_region.
52021 (grub_arch_modules_addr): New function.
52022 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
52023 (grub_total_module_size): Likewise.
52024 Include grub/machine/kernel.h.
52025 (grub_arch_modules_addr): New function.
52026 * util/grub-emu.c (grub_end_addr): Remove variable.
52027 (grub_total_module_size): Likewise.
52028 (grub_arch_modules_addr): New function.
52029 * util/misc.c: Include unistd.h.
52030 (grub_util_get_fp_size): New function.
52031 (grub_util_read_at): Likewise.
52032 (grub_util_write_image_at): Likewise.
52033 (grub_util_read_image): Call grub_util_read_at.
52034 (grub_util_write_image): Call grub_util_write_image_at.
52035 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
52036 additional memory in kernel_img for a struct grub_module_info.
52037 Fill in that grub_module_info.
52038 * util/powerpc/ieee1275/grub-mkimage.c: New file.
52039
458786f8 520402005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52041
52042 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
52043 New function.
52044 * include/grub/powerpc/ieee1275/ieee1275.h
52045 (grub_ieee1275_milliseconds): New prototype.
52046 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
52047 Change to 1000.
52048 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
52049 grub_ieee1275_milliseconds.
52050
ac507d1b 520512005-01-03 Hollis Blanchard <hollis@penguinppc.org>
52052
52053 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
52054 variable.
52055 (find_options): New function.
52056 (cmain): Call find_options.
52057 * include/grub/powerpc/ieee1275/ieee1275.h
52058 (grub_ieee1275_realmode): New extern variable.
52059 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
52060 grub_map if grub_ieee1275_realmode is false.
52061
6b8fd1c4 520622004-12-29 Marco Gerards <metgerards@student.han.nl>
52063
52064 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
52065 lines are inserted and make it work like readline. Reported by
52066 Vincent Pelletier <subdino2004@yahoo.fr>.
52067
8514a1e0 520682004-12-28 Marco Gerards <metgerards@student.han.nl>
52069
52070 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
52071
52072 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
52073 `kern/powerpc/cache.S'.
52074
924b6140 520752004-12-27 Marco Gerards <metgerards@student.han.nl>
52076
52077 * genmk.rb: Handle the `Program' class in the main loop. Written
52078 by Johan Rydberg <jrydberg@gnu.org>.
52079 (Program): New class.
52080 (programs): New variable.
52081 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
52082 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
52083 instead of "grub/kernel.h". Include <grub/machine/init.h>.
52084 (help_arch): Function removed.
52085 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
52086 `powerpc/libgcc.h' and `loader.h'.
52087 (pkgdata_PROGRAMS): New variable.
52088 (sbin_UTILITIES): Variable removed.
52089 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
52090 (grubof_SOURCES): Variable re-defined so it only includes the
52091 core functionality.
52092 (grubof_CFLAGS): Remove `-DGRUBOF'.
52093 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
52094 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
52095 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
52096 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
52097 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
52098 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
52099 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
52100 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
52101 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
52102 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
52103 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
52104 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
52105 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
52106 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
52107 (pc_mod_CFLAGS): New variables.
52108 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
52109 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
52110 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
52111 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
52112 Moved from here...
52113 * include/grub/i386/pc/init.h (grub_os_area_addr)
52114 (rub_os_area_size): ... to here.
52115 * include/grub/powerpc/ieee1275/ieee1275.h
52116 (grub_ieee1275_entry_fn): Export symbol.
52117 * include/grub/powerpc/ieee1275/init.h: New file.
52118 * include/grub/powerpc/libgcc.h: Likewise.
52119 * include/grub/cache.h: Likewise.
52120 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
52121 <hollis@penguinppc.org>.
52122 * kern/dl.c: Include <grub/cache.h>.
52123 (grub_dl_flush_cache): New function.
52124 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
52125 for this module.
52126 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
52127 (grub_console_init): Removed prototypes.
52128 (grub_machine_init): Don't initialize the modules anymore.
52129 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
52130 static.
52131 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
52132 Macro undef removed.
52133 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
52134 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
52135 relocation `R_PPC_REL32'. Return an error when the relocation is
52136 unknown.
52137 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
52138 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
52139 * util/misc.c (grub_arch_sync_caches): Likewise.
52140
e4b47e0c 521412004-12-19 Marco Gerards <metgerards@student.han.nl>
52142
52143 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
52144 `symlist.c', add `grubof_symlist.c'.
52145 (symlist.c): Variable removed.
52146 (grubof_HEADERS): Variable added.
52147 (grubof_symlist.c): New target.
52148 (kernel_syms.lst): Use `grubof_HEADERS' instead of
52149 `kernel_img_HEADERS'.
52150 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
52151 * kern/powerpc/dl.c: New file.
52152 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
52153 Function removed.
52154 (grub_arch_dl_relocate_symbols): Likewise.
52155 (grub_register_exported_symbols): Likewise.
52156
4ceb3636 521572004-12-13 Marco Gerards <metgerards@student.han.nl>
52158
52159 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
52160 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
52161 to fail instead. Reported by Vincent Pelletier
52162 <subdino2004@yahoo.fr>.
52163
52164 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
52165 it is not allocated. Reported by Vincent Pelletier
52166 <subdino2004@yahoo.fr>.
52167
52168 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
52169 output so the output looks better.
f19dbdb7 52170
3f1578fe 521712004-12-04 Marco Gerards <metgerards@student.han.nl>
52172
52173 Modulize the partition map support and add support for the amiga
52174 partition map.
f19dbdb7 52175
3f1578fe 52176 * commands/ls.c: Include <grub/partition.h> instead of
52177 <grub/machine/partition.h>.
52178 * kern/disk.c: Likewise.
52179 * kern/rescue.c: Likewise.
52180 * loader/i386/pc/chainloader.c: Likewise.
52181 * normal/cmdline.c: Likewise.
52182 * kern/powerpc/ieee1275/init.c: Likewise.
52183 (grub_machine_init): Call `grub_pc_partition_map_init',
52184 `grub_amiga_partition_map_init' and
52185 `grub_apple_partition_map_init'.
52186 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
52187 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
52188 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
52189 `partition.h' and `pc_partition.h'.
52190 (grub_setup_SOURCES): Remove
52191 `disk/i386/pc/partition.c'. Add `kern/partition.c',
52192 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52193 (grub_emu_SOURCES): Likewise.
52194 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
52195 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
52196 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
52197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
52198 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
52199 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
52200 (grubof_SOURCES): Likewise.
52201 * disk/i386/pc/partition.c: File removed.
52202 * disk/powerpc/ieee1275/partition.c: Likewise.
52203 * include/grub/powerpc/ieee1275/partition.h: Likewise.
52204 * include/grub/i386/pc/partition.h: Likewise.
52205 * kern/partition.c: New file.
52206 * partmap/amiga.c: Likewise.
52207 * partmap/apple.c: Likewise.
52208 * partmap/pc.c: Likewise.
52209 * include/grub/partition.h: Likewise..
52210 * include/grub/pc_partition.h: Likewise.
52211 * util/grub-emu.c: Include <grub/partition.h> instead of
52212 <grub/machine/partition.h>.
52213 (main): Call `grub_pc_partition_map_init',
52214 `grub_amiga_partition_map_init' and
52215 `grub_apple_partition_map_init' and deinitialize afterwards.
52216 * util/i386/pc/biosdisk.c: Include `#include
52217 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
52218 `<grub/machine/partition.h>'.
52219 * util/i386/pc/grub-setup.c: Likewise.
52220 * util/i386/pc/biosdisk.c: Likewise.
52221 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
52222 partition information in case of a PC partition.
52223 * util/i386/pc/grub-setup.c: Include `#include
52224 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
52225 `<grub/machine/partition.h>'.
52226 (setup): Only access the PC specific partition information in case
52227 of a PC partition.
52228
0ef4ced9 522292004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 52230
0ef4ced9 52231 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
52232 (grub_longjmp): Likewise.
52233 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
52234 20.
52235 * normal/powerpc/setjmp.S: New file.
52236 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
52237 `normal/powerpc/setjmp.S'.
52238 (grubof_CFLAGS): Add `-DGRUBOF'.
52239 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
52240 [GRUB_UTIL && !GRUBOF].
f19dbdb7 52241
19950e29 522422004-11-16 Marco Gerards <metgerards@student.han.nl>
52243
52244 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
52245 property named `name'. Correctly handle the error returned by
52246 `grub_ieee1275_finddevice' if a device can not be opened.
52247
a2fea427 522482004-11-02 Hollis Blanchard <hollis@penguinppc.org>
52249
52250 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
52251 `actual' for negativity.
52252 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
52253 kern/fshelp.c.
52254
41ea0ea3 522552004-11-01 Marco Gerards <metgerards@student.han.nl>
52256
52257 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
52258 (PAGE_OFFSET): New macro.
52259 (CRTC_ADDR_PORT): Likewise.
52260 (CRTC_DATA_PORT): Likewise.
52261 (START_ADDR_HIGH_REGISTER): Likewise.
52262 (START_ADDR_LOW_REGISTER): Likewise.
52263 (GRAPHICS_ADDR_PORT): Likewise.
52264 (GRAPHICS_DATA_PORT): Likewise.
52265 (READ_MAP_REGISTER): Likewise.
52266 (INPUT_STATUS1_REGISTER): Likewise.
52267 (INPUT_STATUS1_VERTR_BIT): Likewise.
52268 (page): New variable.
52269 (wait_vretrace): New function.
52270 (set_read_map): Likewise.
52271 (set_start_address): Likewise.
52272 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
52273 the right page.
52274 (check_vga_mem): Take the page into account.
52275 (write_char): Likewise.
52276 (write_cursor): Likewise.
52277 (scroll_up): Likewise. Copy the page to the page that is not
52278 shown and switch between both pages.
52279 (grub_vga_putchar): Fix off by one error.
52280 (grub_vga_cls): Wait for the vertical retrace. Take the page into
52281 account.
52282
ad0bd20b 522832004-11-01 Marco Gerards <metgerards@student.han.nl>
52284
52285 Add support for iso9660 (including rockridge).
f19dbdb7 52286
ad0bd20b 52287 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
52288 (iso9660_mod_SOURCES): New variable.
52289 (iso9660_mod_CFLAGS): Likewise.
52290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
52291 * include/grub/fs.h (grub_iso9660_init): New prototype.
52292 * util/grub-emu.c (main): Call `grub_iso9660_init'.
52293 * fs/iso9660.c: New file.
52294
52295 * include/grub/misc.h (grub_strncat): New prototype.
52296 * kern/misc.c (grub_strncat): New function.
f19dbdb7 52297
ad0bd20b 52298 * fs/hfs.c (grub_hfs_mount): Translate the error
52299 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
52300 * fs/jfs.c (grub_jfs_mount): Likewise.
52301 * fs/ufs.c (grub_ufs_mount): Likewise.
52302
a5477a59 523032004-10-28 Hollis Blanchard <hollis@penguinppc.org>
52304
52305 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
52306 which initialized BAT registers.
52307 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
52308 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
52309 Move from here...
52310 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
52311 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
52312 ... to here.
52313 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
52314 (grub_mapclaim): Likewise.
52315 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
52316 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
52317 hand.
52318
9304c1f8 523192004-10-19 Hollis Blanchard <hollis@penguinppc.org>
52320
52321 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
52322 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
52323 -ffreestanding and -msoft-float.
52324
86f4ae25 523252004-10-15 Hollis Blanchard <hollis@penguinppc.org>
52326
52327 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
52328 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
52329 set in grub_ieee1275_flags.
52330
38912228 523312004-10-14 Hollis Blanchard <hollis@penguinppc.org>
52332
52333 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
52334 prototype.
52335 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
52336 grub_console_init first.
52337 Change the memory range used for grub_ieee1275_claim and
52338 grub_mm_init_region.
52339 Print an error message if the claim fails.
52340 Include <grub/misc.h>.
52341
d1923dc8 523422004-10-13 Hollis Blanchard <hollis@penguinppc.org>
52343
52344 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
52345 Call grub_children_iterate for device nodes of type `scsi',
52346 `ide', or `ata'.
52347 (grub_ofdisk_open): Remove manual device alias resolution.
52348 Fix memory leak when device cannot be opened.
f19dbdb7 52349 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 52350 (grub_children_iterate): New prototype.
52351 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
52352 New function.
52353 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52354 Return -1 if args.size was -1.
52355
4512e4f3 523562004-10-11 Hollis Blanchard <hollis@penguinppc.org>
52357
52358 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
52359 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
52360 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
52361 Open Firmware's memory for it; claim memory from _start to _end.
52362 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
52363 (_end): New extern.
52364 (_start): Zero BSS from __bss_start to _end.
52365 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52366 New extern.
52367 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
52368
4d61feb0 523692004-10-11 Hollis Blanchard <hollis@penguinppc.org>
52370
ad0bd20b 52371 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
52372 -1 if args.base was -1.
4d61feb0 52373
026fa2f9 523742004-10-08 Hollis Blanchard <hollis@penguinppc.org>
52375
52376 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
52377 escape sequence instead of a literal ^L. Also call
52378 grub_ofconsole_gotoxy.
52379
9f2220ef 523802004-10-03 Hollis Blanchard <hollis@penguinppc.org>
52381
52382 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
52383 void * arguments to grub_addr_t. All callers updated. Also make
52384 the `result' argument optional.
52385 (grub_ieee1275_release): change void * arguments to grub_addr_t.
52386 All callers updated.
52387
8a572cd7 523882004-09-22 Hollis Blanchard <hollis@penguinppc.org>
52389
52390 * commands/ls.c (grub_ls_list_files): Use the string following the
52391 initial ')', if present, as the filesystem path.
52392 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
52393
52394 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
52395
18aa81f2 523962004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
52397
52398 Make the source code of the menu interface more readable.
f19dbdb7 52399
18aa81f2 52400 * normal/menu.c: Include grub/mm.h.
52401 (TERM_WIDTH): New macro.
52402 (TERM_HEIGHT): Likewise.
52403 (TERM_INFO_HEIGHT): Likewise.
52404 (TERM_MARGIN): Likewise.
52405 (TERM_SCROLL_WIDTH): Likewise.
52406 (TERM_TOP_BORDER_Y): Likewise.
52407 (TERM_LEFT_BORDER_X): Likewise.
52408 (TERM_BORDER_WIDTH): Likewise.
52409 (TERM_MESSAGE_HEIGHT): Likewise.
52410 (TERM_BORDER_HEIGHT): Likewise.
52411 (TERM_NUM_ENTRIES): Likewise.
52412 (TERM_FIRST_ENTRY_Y): Likewise.
52413 (TERM_ENTRY_WIDTH): Likewise.
52414 (TERM_CURSOR_X): Likewise.
52415 (draw_border): Use macros instead of magic numbers.
52416 (print_entry): Likewise.
52417 (print_entries): Likewise.
52418 (run_menu): Likewise. Also, handle the key 'e'.
52419 (run_menu_entry): Ignore empty command lines.
52420 (print_message): Added a new argument EDIT. If EDIT is true,
52421 print a different message.
52422 (init_page): Likewise.
52423 (edit_menu_entry): New function. Not implemented yet.
52424
b47efe30 524252004-09-17 Marco Gerards <metgerards@student.han.nl>
52426
52427 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
52428 can be loaded from normal mode.
f19dbdb7 52429
b47efe30 52430 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
52431 `multiboot.mod'.
52432 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
52433 (multiboot_mod_CFLAGS): New variables.
52434 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 52435 * loader/i386/pc/multiboot_normal.c: Likewise.
52436
b47efe30 52437 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
52438 attribute `unused'.
f19dbdb7 52439
b47efe30 52440 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
52441 `fdiro' to read the mode information from instead of `diro'.
52442
52443 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
52444 looking up a symlink.
52445
52446 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
52447 macro.
52448 * normal/command.c (grub_command_execute): Don't parse the
52449 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
52450 flags of the command.
52451
52452 * normal/menu.c (grub_menu_run): Fix typo.
52453
da75ac71 524542004-09-14 Hollis Blanchard <hollis@penguinppc.org>
52455
52456 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
52457
52458 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
52459 `y + 1' instead of `y - 1'.
52460
52461 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 52462
062b24c2 524632004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
52464
52465 From Hollis Blanchard <hollis@penguinppc.org>:
52466 * kern/misc.c (memmove): New alias for grub_memmove.
52467 (memcmp): New alias for grub_memcmp.
52468 (memset): New alias for grub_memset.
f19dbdb7 52469 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 52470 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 52471 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 52472 (grub_ieee1275_get_property): Likewise.
f19dbdb7 52473
8ddad845 524742004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
52475
52476 Added normal mode command `chainloader' as module chain.mod, which
52477 depends on normal.mod and _chain.mod.
f19dbdb7 52478
8ddad845 52479 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
52480 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
52481 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
52482 Deleted prototype.
52483 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
52484 but arguments parsing moved to ...
52485 (grub_chainloader_cmd): ... here. New function.
52486 * include/grub/i386/pc/chainloader.h: New file.
52487 * loader/i386/pc/chainloader_normal.c: Likewise.
52488
2c1f4ce3 524892004-09-11 Marco Gerards <metgerards@student.han.nl>
52490
52491 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
52492 (grub_mkimage_LDFLAGS): Likewise.
52493 (grub_emu_SOURCES): Likewise.
52494 (kernel_img_HEADERS): Added fshelp.h.
52495 * fs/ext2.c: Include <grub/fshelp.h>.
52496 (FILETYPE_REG): New macro.
52497 (FILETYPE_INO_REG): Likewise.
52498 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
52499 Changed all users.
52500 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
52501 all users.
52502 (grub_fshelp_node): New struct.
52503 (grub_ext2_data): Added member `diropen'. Changed member `inode'
52504 to a pointer.
52505 (grub_ext2_get_file_block): Removed function.
52506 (grub_ext2_read_block): New function.
52507 (grub_ext2_read_file): Replaced parameter `data' by `node'.
52508 This function was written.
52509 (grub_ext2_mount): Read the root inode. Create a diropen struct.
52510 (grub_ext2_find_file): Removed function.
52511 (grub_ext2_read_symlink): New function.
52512 (grub_ext2_iterate_dir): Likewise.
52513 (grub_ext2_open): Rewritten.
52514 (grub_ext2_dir): Rewritten.
52515 * include/grub/fshelp.h: New file.
52516 * fs/fshelp.c: Likewise.
52517
3c52136a 525182004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
52519
52520 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
52521 (print_message): Add a missing newline.
52522 (run_menu): Added timeout support.
52523 (run_menu_entry): New local function.
52524 (grub_menu_run): Added support for booting.
52525
52526 * kern/loader.c (grub_loader_is_loaded): New function.
52527
52528 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
52529 (grub_get_rtc): Exported.
52530
52531 * include/grub/i386/pc/time.h: Include grub/symbol.h.
52532 (grub_get_rtc): Exported.
52533
52534 * include/grub/normal.h (struct grub_command_list): Remove
52535 constant from the member `command'.
52536
52537 * include/grub/loader.h (grub_loader_is_loaded): Declared.
52538
52539 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
52540
52541 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
52542
aa033560 525432004-08-28 Marco Gerards <metgerards@student.han.nl>
52544
52545 Add support for the JFS filesystem.
52546
52547 * fs/jfs.c: New file.
52548 * include/grub/fs.h (grub_jfs_init): New prototype.
52549 (grub_jfs_fini): New prototype.
52550 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
52551 (grub_emu_SOURCES): Likewise.
52552 (pkgdata_MODULES): Add jfs.mod.
52553 (jfs_mod_SOURCES): New variable.
52554 (jfs_mod_CFLAGS): Likewise.
52555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
52556 (grubof_SOURCES): Likewise.
52557 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
52558
52559 * fs/fat.c (grub_fat_find_dir): Convert the filename little
52560 endian to the host endian.
52561 (grub_fat_utf16_to_utf8): Move function from there...
52562 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 52563 the endianness of the source string anymore.
aa033560 52564 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
52565
94bc45af 525662004-08-24 Marco Gerards <metgerards@student.han.nl>
52567
52568 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
52569 (grub_boot_fini) [GRUB_UTIL]: Likewise.
52570 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
52571 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 52572
94bc45af 52573 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
52574 (grub_hfs_iterate_dir): Make the function static. Add prototypes
52575 for `node_found' and `it_dir'.
52576 (grub_hfs_dir): Add prototype for `dir_hook'.
52577
52578 * fs/minix.c (grub_minix_get_file_block): Add prototype for
52579 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
52580 and `indir32' to silence a gcc warning.
52581
52582 * include/grub/fs.h (grub_hfs_init): New prototype.
52583 (grub_hfs_fini): Likewise.
f19dbdb7 52584
52585
97543f08 525862004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52587
52588 Each disk device has its own id now. This is useful to make use
52589 of multiple disk devices.
f19dbdb7 52590
97543f08 52591 * include/grub/disk.h (grub_disk_dev_id): New enum.
52592 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
52593 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
52594
52595 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
52596 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
52597
52598 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
52599 GRUB_DISK_DEVICE_OFDISK_ID as an id.
52600
52601 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
52602 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
52603
52604 * include/grub/disk.h (struct grub_disk_dev): Added a new member
52605 "id" which is used by the cache manager.
52606
52607 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
52608 of just "GRUB".
52609
64372eb4 526102004-08-18 Marco Gerards <metgerards@student.han.nl>
52611
52612 * fs/hfs.c: New file.
52613 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
52614 (grub_emu_SOURCES): Likewise.
52615 (pkgdata_MODULES): Add hfs.mod.
52616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
52617 (grubof_SOURCES): Likewise.
52618 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
52619
52620 * include/grub/misc.h (grub_strncasecmp): Add prototype.
52621 * kern/misc.c (grub_strncasecmp): Add function.
52622
cc61b58f 526232004-08-14 Marco Gerards <metgerards@student.han.nl>
52624
52625 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
52626 with parentheses.
52627
52628 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
52629 (grub_ext2_dir): In case the directory entry type is unknown, read
52630 it from the inode.
52631
0ef123f6 526322004-08-02 Peter Bruin <pjbruin@dds.nl>
52633
52634 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
52635 grub_load_linux instead of grub_rescue_cmd_linux as second
52636 argument of grub_rescue_register_command.
52637
52638 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
52639
a447c5df 526402004-07-27 Marco Gerards <metgerards@student.han.nl>
52641
52642 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
52643 function.
52644 * commands/boot.c: Remove the check for `GRUB_UTIL'.
52645 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
52646 `loader/powerpc/ieee1275/linux.c',
52647 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
52648 * include/grub/powerpc/ieee1275/ieee1275.h
52649 (grub_ieee1275_release): New prototype.
52650 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
52651 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
52652 normal, boot, linux and linux_normal.
52653 * loader/powerpc/ieee1275/linux.c: New file.
52654 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
52655
5a9e3546 526562004-07-12 Marco Gerards <metgerards@student.han.nl>
52657
52658 * normal/arg.c (grub_arg_parse): Correct error handling after
52659 reallocating the argumentlist (check if `argl' is not null instead
52660 of checking if `args' is not null).
52661 * kern/mm.c (grub_realloc): Return the same pointer when using the
52662 same region, instead of returning the header address.
52663
e15199cb 526642004-07-11 Marco Gerards <metgerards@student.han.nl>
52665
52666 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
52667 one block instead of two when looking for the initial partition.
52668 (grub_partition_probe): Initialize the local variable `p' with 0.
52669 Use base 10 for the grub_strtoul call.
52670 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
52671 need for one local variable.
52672 (grub_strtoul): Don't add the new value to `num', instead of that
52673 just assign it.
52674
020616c2 526752004-07-11 Marco Gerards <metgerards@student.han.nl>
52676
52677 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
52678 (pxeboot_img_SOURCES): New variable.
52679 (pxeboot_img_ASFLAGS): Likewise.
52680 (pxeboot_img_LDFLAGS): Likewise.
52681 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
52682 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
52683 <lode_leroy@hotmail.com>.
52684
6c51eb64 526852004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
52686
52687 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
52688 there was no input.
52689
cfb12aff 526902004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
52691
52692 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
52693 the history buffer logic.
52694
6eabba74 526952004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
52696
52697 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
52698 (FILETYPE_INO_SYMLINK): New macros.
52699 (grub_ext2_find_file): Check if the node is a directory using the
52700 inode stat information instead of using the filetype in the
52701 dirent. Exclude the first character of an absolute symlink.
52702 (grub_ext2_dir): Mask out the filetype part of the mode member of
52703 the inode.
52704
66e19ef8 527052004-05-24 Marco Gerards <metgerards@student.han.nl>
52706
52707 Add support for UFS version 1 and 2. Add support for the minix
52708 filesystem version 1 and 2, both the variants with 14 and 30 long
52709 filenames.
f19dbdb7 52710
66e19ef8 52711 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
52712 fs/minix.c.
52713 (grub_emu_SOURCES): Likewise.
52714 (pkgdata_MODULES): Add ufs.mod and minix.mod.
52715 (ufs_mod_SOURCES): New variable.
52716 (ufs_mod_CFLAGS): Likewise.
52717 (minix_mod_SOURCES): Likewise.
52718 (minix_mod_CFLAGS): Likewise.
52719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
52720 fs/minix.c.
52721 (grubof_SOURCES): Likewise.
52722 * fs/ufs.c: New file.
52723 * fs/minix.c: New file.
52724 * include/grub/fs.h (grub_ufs_init): New prototype.
52725 (grub_ufs_fini): Likewise.
52726 (grub_minix_init): Likewise.
52727 (grub_minix_fini): Likewise.
52728 * util/grub-emu.c (main): Initialize and deinitialize UFS and
52729 minix fs.
52730
cc2e748a 527312004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
52732
52733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
52734 commands/ls.c, commands/terminal.c, commands/boot.c,
52735 commands/cmp.c and commands/cat.c.
52736 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
52737
52738 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
52739 "env.h"
52740
4b13b216 527412004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
52742
52743 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
52744 and grub_, respectively. Because the conversion is trivial and
52745 mechanical, I omit the details here. Please refer to the CVS
52746 if you need more information.
52747
6a142551 527482004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
52749
52750 * include/pupa: Renamed to ...
52751 * include/grub: ... this.
52752 * util/i386/pc/pupa-mkimage.c: Renamed to ...
52753 * util/i386/pc/grub-mkimage.c: ... this.
52754 * util/i386/pc/pupa-setup.c: Renamed to ...
52755 * util/i386/pc/grub-setup.c: ... this.
52756 * util/pupa-emu.c: Renamed to ...
52757 * util/grub-emu.c: ... this.
52758
e56cdf21 527592004-03-29 Marco Gerards <metgerards@student.han.nl>
52760
52761 Add support for the newworld apple macintosh (PPC). This has been
52762 tested on the powerbook 2000 only. It only adds support for
52763 generic ieee1275 functions, console and disk support. This should
52764 be easy to port to other architectures with support for Open
52765 Firmware.
f19dbdb7 52766
e56cdf21 52767 * configure.ac: Accept the powerpc as host_cpu. In the case of
52768 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
52769 specific tests are only executed while building for the i386.
52770 Inverse test for crosscompile.
52771 * genmk.rb (Utility): Allow assembler files.
52772 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
52773 * conf/powerpc-ieee1275.rmk: New file.
52774 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
52775 * disk/powerpc/ieee1275/partition.c: Likewise.
52776 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
52777 * include/pupa/powerpc/ieee1275/console.h: Likewise.
52778 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
52779 * include/pupa/powerpc/ieee1275/time.h: Likewise.
52780 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
52781 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
52782 * include/pupa/powerpc/ieee1275/loader.h
52783 * include/pupa/powerpc/setjmp.h: Likewise.
52784 * include/pupa/powerpc/types.h: Likewise.
52785 * kern/powerpc/ieee1275/init.c: Likewise.
52786 * kern/powerpc/ieee1275/openfw.c: Likewise.
52787 * term/powerpc/ieee1275/ofconsole.c: Likewise.
52788
52789 These files were written by Johan Rydberg
52790 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 52791
e56cdf21 52792 * boot/powerpc/ieee1275/cmain.c: New file.
52793 * boot/powerpc/ieee1275/crt0.S: Likewise.
52794 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
52795 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
52796
8c8cc205 527972004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
52798
52799 * Makefile.in: Update copyright.
52800 * genmodsrc.sh: Likewise.
52801 * gensymlist.sh: Likewise.
52802 * term/i386/pc/vga.c: Indent correctly.
52803
52804 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
52805 bugreporting address.
52806 * util/i386/pc/pupa-setup.c (usage): Likewise,
52807 (main): Call pupa_ext2_init and pupa_ext2_fini.
52808
f19dbdb7 52809 * fs/fat.c (log2): Renamed to ...
8c8cc205 52810 (fat_log2): ... this.
52811 All callers changed.
52812 * kern/misc.c (memcpy): Alias to pupa_memmove.
52813 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
52814 lvalue cast.
52815 * util/console.c (pupa_ncurses_fini): Return 0.
52816
52817 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
52818 Move fail label here.
52819 [__GNU__]: Don't warn when using stat.
52820 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
52821 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
52822 long int. Use strtol instead of strtoul.
f19dbdb7 52823
db1771cf 528242004-03-14 Marco Gerards <metgerards@student.han.nl>
52825
52826 * commands/boot.c: New file.
52827 * commands/cat.c: Likewise.
52828 * commands/cmp.c: Likewise.
52829 * commands/ls.c: Likewise.
52830 * commands/terminal.c: Likewise.
52831 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
52832 (pupa_register_command): Changed interface to match the new
52833 argument parser.
52834 (pupa_command_execute): Changed (almost rewritten) so it uses
52835 pupa_split_command. Added support for setting variables using the
52836 syntax `foo=bar'.
52837 (rescue_command): Changed to work with the new argument parser.
52838 (terminal_command): Moved from here to commands/terminal.c.
52839 (set_command): New function.
52840 (unset_command): New function.
52841 (insmod_command): New function.
52842 (rmmod_command): New function.
52843 (lsmod_command): New function.
52844 (pupa_command_init): Don't initialize the command terminal
52845 anymore. Initialize the commands set, unset, insmod, rmmod and
52846 lsmod.
52847 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
52848 (kernel_img_HEADERS): Add arg.h and env.h.
52849 (pupa_mkimage_LDFLAGS): Add kern/env.c.
52850 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
52851 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
52852 normal/arg.c.
52853 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
52854 terminal.mod.
52855 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
52856 (boot_mod_SOURCES): New variable.
52857 (terminal_mod_SOURCES): Likewise.
52858 (ls_mod_SOURCES): Likewise.
52859 (cmp_mod_SOURCES): Likewise.
52860 (cat_mod_SOURCES): Likewise.
52861
52862 * normal/arg.c: New file.
52863 * kern/env.c: Likewise.
52864 * include/pupa/arg.h: Likewise.
52865 * include/pupa/env.h: Likewise.
52866 * font/manager.c (font_command): Changed to match argument parsing
52867 interface changes.
52868 (PUPA_MOD_INIT): Likewise.
52869 * hello/hello.c (pupa_cmd_hello): Likewise.
52870 (PUPA_MOD_INIT): Likewise.
52871 * include/pupa/disk.h: Include <pupa/device.h>.
52872 (pupa_print_partinfo): New prototype.
52873 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
52874 (pupa_dl_get_prefix): Likewise.
52875 * include/pupa/misc.h: Include <pupa/err.h>.
52876 (pupa_isgraph): New prototype.
52877 (pupa_isdigit): Likewise.
52878 (pupa_split_cmdline): Likewise.
52879 * include/pupa/normal.h: Include <pupa/arg.h>.
52880 (pupa_command): Changed the prototype of the member `func' to
52881 match the argument parsing interface. Added member `options'.
52882 (pupa_register_command): Updated to match function.
52883 (pupa_arg_parse): New prototype.
52884 (pupa_hello_init) [PUPA_UTIL]: New prototype.
52885 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
52886 (pupa_ls_init) [PUPA_UTIL]: Likewise.
52887 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
52888 (pupa_cat_init) [PUPA_UTIL]: Likewise.
52889 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
52890 (pupa_boot_init) [PUPA_UTIL]: Likewise.
52891 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
52892 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
52893 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
52894 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
52895 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
52896 * kern/disk.c: Include <pupa/file.h>.
52897 (pupa_print_partinfo): New function.
52898 * kern/dl.c: Include <pupa/env.h>.
52899 (pupa_dl_dir): Variable removed.
52900 (pupa_dl_load): Use the environment variable `prefix' instead of
52901 the variable pupa_dl_dir.
52902 (pupa_dl_set_prefix): Function removed.
52903 (pupa_dl_get_prefix): Likewise.
52904 * kern/i386/pc/init.c: Include <pupa/env.h>.
52905 (pupa_machine_init): Use the environment variable `prefix' instead of
52906 using pupa_dl_set_prefix to set the prefix.
52907 * kern/main.c: Include <pupa/env.h>.
52908 (pupa_set_root_dev): Use the environment variable `prefix' instead of
52909 using pupa_dl_get_prefix to get the prefix.
52910 * kern/misc.c: Include <pupa/env.h>.
52911 (pupa_isdigit): New function.
52912 (pupa_isgraph): Likewise.
52913 (pupa_ftoa): Likewise.
52914 (pupa_vsprintf): Added support for printing values of the type
52915 `double'. Make it possible to format variable output when using
52916 formatting like `%1.2%f'.
52917 (pupa_split_cmdline): New function.
52918 * kern/rescue.c: Include <pupa/env.h>.
52919 (next_word): Removed function.
52920 (pupa_rescue_cmd_prefix): Likewise.
52921 (pupa_rescue_cmd_set): New function.
52922 (pupa_rescue_cmd_unset): New function.
52923 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
52924 split the command line instead of splitting it here. Added
52925 support for setting variables using the syntax `foo=bar'. Don't
52926 initialize the prefix command anymore. Initialized the set and
52927 unset commands.
52928 * normal/cmdline.c: Include <pupa/env.h>.
52929 (pupa_tab_complete): Added prototypes for print_simple_completion,
52930 print_partition_completion, add_completion, iterate_commands,
52931 iterate_dev, iterate_part and iterate_dir. Moved code to print
52932 partition information from here to kern/disk.c.
fe6b695a 52933 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 52934 * normal/main.c: Include <pupa/env.h>.
52935 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
52936 instead of using pupa_dl_get_prefix to get the prefix.
52937 * term/i386/pc/vga.c: Include <pupa/arg.h>.
52938 (check_vga_mem): Cast pointers to `void *' to silence a gcc
52939 warning.
52940 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
52941 (pupa_vga_setcolor): Declare unused variables with `__attribute__
52942 ((unused))' to silence a gcc warning.
52943 (pupa_vga_setcolor): Likewise.
52944 (debug_command): Changed to match argument parsing
52945 interface changes.
52946 * util/pupa-emu.c: Include <pupa/env.h>.
52947 (options): Added 0's for unused fields to silence a gcc warning.
52948 (argp): Likewise.
52949 (main): Use the environment variable `prefix' instead of using
52950 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
52951 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
52952 and terminal.
52953
52954 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
52955 * util/misc.c: Include <malloc.h>.
52956 (pupa_malloc): Rewritten so errors are correctly reported.
52957 (pupa_realloc): Likewise.
52958 (pupa_memalign): Likewise.
52959 (pupa_mm_init_region): Declare unused variables with
52960 `__attribute__ ((unused))' to silence a gcc warning.
52961 * normal/i386/setjmp.S: Remove tab at the end of the file to
52962 silence a gcc warning.
52963 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
52964 variables with `__attribute__ ((unused))' to silence a gcc
52965 warning.
52966 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
52967 local variable i unsigned to silence a gcc warning.
52968
52969 * kern/term.c: Include <pupa/misc.h>.
52970 (pupa_more_lines): New variable.
52971 (pupa_more): Likewise.
52972 (pupa_putcode): When the pager is active pause at the end of every
52973 screen.
52974 (pupa_set_more): New function.
52975 * include/pupa/term.h (pupa_set_more): New prototype.
52976
52977
3b1139cb 529782004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
52979
52980 Now this project is GRUB 2 rather than PUPA. The location of
52981 the CVS repository was moved to GRUB's.
f19dbdb7 52982
3b1139cb 52983 * configure.ac: Use bug-grub as the reporting address.
52984 Use GRUB instead of PUPA.
52985 Change the version number to 1.90.
52986
8367695c 529872004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
52988
52989 * genkernsyms.sh: Updated copyright information.
52990 * genmk.rb: Likewise.
52991 * genmodsrc.sh: Likewise.
52992 * gensymlist.sh: Likewise.
52993 * boot/i386/pc/boot.S: Likewise.
52994 * boot/i386/pc/diskboot.S: Likewise.
52995 * disk/i386/pc/biosdisk.c: Likewise.
52996 * disk/i386/pc/partition.c: Likewise.
52997 * font/manager.c: Likewise.
52998 * fs/ext2.c: Likewise.
52999 * fs/fat.c: Likewise.
53000 * include/pupa/boot.h: Likewise.
53001 * include/pupa/device.h: Likewise.
53002 * include/pupa/disk.h: Likewise.
53003 * include/pupa/dl.h: Likewise.
53004 * include/pupa/elf.h: Likewise.
53005 * include/pupa/err.h: Likewise.
53006 * include/pupa/file.h: Likewise.
53007 * include/pupa/font.h: Likewise.
53008 * include/pupa/fs.h: Likewise.
53009 * include/pupa/kernel.h: Likewise.
53010 * include/pupa/loader.h: Likewise.
53011 * include/pupa/misc.h: Likewise.
53012 * include/pupa/mm.h: Likewise.
53013 * include/pupa/net.h: Likewise.
53014 * include/pupa/normal.h: Likewise.
53015 * include/pupa/rescue.h: Likewise.
53016 * include/pupa/setjmp.h: Likewise.
53017 * include/pupa/symbol.h: Likewise.
53018 * include/pupa/term.h: Likewise.
53019 * include/pupa/types.h: Likewise.
53020 * include/pupa/i386/setjmp.h: Likewise.
53021 * include/pupa/i386/types.h: Likewise.
53022 * include/pupa/i386/pc/biosdisk.h: Likewise.
53023 * include/pupa/i386/pc/boot.h: Likewise.
53024 * include/pupa/i386/pc/console.h: Likewise.
53025 * include/pupa/i386/pc/init.h: Likewise.
53026 * include/pupa/i386/pc/kernel.h: Likewise.
53027 * include/pupa/i386/pc/linux.h: Likewise.
53028 * include/pupa/i386/pc/loader.h: Likewise.
53029 * include/pupa/i386/pc/memory.h: Likewise.
53030 * include/pupa/i386/pc/multiboot.h: Likewise.
53031 * include/pupa/i386/pc/partition.h: Likewise.
53032 * include/pupa/i386/pc/time.h: Likewise.
53033 * include/pupa/i386/pc/vga.h: Likewise.
53034 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
53035 * include/pupa/util/getroot.h: Likewise.
53036 * include/pupa/util/misc.h: Likewise.
53037 * include/pupa/util/resolve.h: Likewise.
53038 * kern/device.c: Likewise.
53039 * kern/disk.c: Likewise.
53040 * kern/dl.c: Likewise.
53041 * kern/err.c: Likewise.
53042 * kern/file.c: Likewise.
53043 * kern/fs.c: Likewise.
53044 * kern/loader.c: Likewise.
53045 * kern/main.c: Likewise.
53046 * kern/misc.c: Likewise.
53047 * kern/mm.c: Likewise.
53048 * kern/rescue.c: Likewise.
53049 * kern/term.c: Likewise.
53050 * kern/i386/dl.c: Likewise.
53051 * kern/i386/pc/init.c: Likewise.
53052 * kern/i386/pc/lzo1x.S: Likewise.
53053 * kern/i386/pc/startup.S: Likewise.
53054 * loader/i386/pc/chainloader.c: Likewise.
53055 * loader/i386/pc/linux.c: Likewise.
53056 * loader/i386/pc/multiboot.c: Likewise.
53057 * normal/cmdline.c: Likewise.
53058 * normal/command.c: Likewise.
53059 * normal/main.c: Likewise.
53060 * normal/menu.c: Likewise.
53061 * normal/i386/setjmp.S: Likewise.
53062 * term/i386/pc/console.c: Likewise.
53063 * term/i386/pc/vga.c: Likewise.
53064 * util/console.c: Likewise.
53065 * util/genmoddep.c: Likewise.
53066 * util/misc.c: Likewise.
53067 * util/pupa-emu.c: Likewise.
53068 * util/resolve.c: Likewise.
53069 * util/unifont2pff.rb: Likewise.
53070 * util/i386/pc/biosdisk.c: Likewise.
53071 * util/i386/pc/getroot.c: Likewise.
53072 * util/i386/pc/pupa-mkimage.c: Likewise.
53073 * util/i386/pc/pupa-setup.c: Likewise.
53074
e6eced71 530752004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
53076
53077 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
53078 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
53079 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
53080 reading and reset it after reading.
53081 (pupa_ext2_close): Return PUPA_ERR_NONE.
53082
53083 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
53084 Correct value.
53085 (struct linux_kernel_header): Add kernel_version and
53086 initrd_addr_max.
53087 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
53088 pupa_file_read succeeds.
53089 (pupa_rescue_cmd_initrd): Implement.
53090
5aded270 530912003-12-03 Marco Gerards <metgerards@student.han.nl>
53092
53093 * fs/ext2.c (pupa_ext2_label): New function.
53094 (pupa_ext2_fs): Added label.
53095 * fs/fat.c (pupa_fat_label): New function.
53096 (pupa_fat_fs): Added label.
53097 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
53098
53099 * kern/misc.c (pupa_strndup): New function.
53100 * include/pupa/misc.h (pupa_strndup): New prototype.
53101
53102 * include/pupa/normal.h: Include <pupa/err.h>.
53103 (pupa_set_history): New prototype.
53104 (pupa_iterate_commands): New prototype.
53105 * normal/cmdline.c: Include <pupa/machine/partition.h>,
53106 <pupa/disk.h>, <pupa/file.h>.
53107 (hist_size): New variable.
53108 (hist_lines): Likewise.
53109 (hist_end): Likewise.
53110 (hist_used): Likewise.
53111 (pupa_set_history): New function.
53112 (pupa_history_get): Likewise.
53113 (pupa_history_add): Likewise.
53114 (pupa_history_replace): Likewise.
53115 (pupa_tab_complete): Likewise.
53116 (pupa_cmdline_run): Added tab completion and history buffer. Tab
53117 completion shows partitionnames while completing partitions, this
53118 feature was suggested by Jeff Bailey.
53119 * normal/command.c (pupa_iterate_commands): New function.
53120 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
53121 (pupa_normal_init): Initialize history buffer.
53122 (PUPA_MOD_INIT): Likewise.
53123 (pupa_normal_fini): Free the history buffer.
53124 (PUPA_MOD_FINI): Likewise.
53125
53126 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
53127 key.
53128
53129 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
53130 * configure.ac [i386]: Check for regparam bug.
53131 (NESTED_FUNC_ATTR) [! i386]: Defined.
53132
1f7315a3 531332003-11-17 Marco Gerards <metgerards@student.han.nl>
53134
53135 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
53136 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
53137 (pupa_emu_SOURCES): New variable.
53138 (pupa_emu_LDFLAGS): Likewise.
53139 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
53140 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
53141 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
53142 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53143 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
53144 (pupa_jmp_buf): New typedef.
53145 (pupa_setjmp) [PUPA_UTIL]: New macro.
53146 (pupa_longjmp) [PUPA_UTIL]: Likewise.
53147 * include/pupa/term.h (struct pupa_term): New member `refresh'.
53148 (pupa_refresh): New prototype.
53149 * include/pupa/util/getroot.h: New file.
53150 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
53151 it.
53152 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
53153 (pupa_rescue_cmd_cat): Likewise.
53154 (pupa_rescue_cmd_ls): Likewise.
53155 (pupa_rescue_cmd_testload): Likewise.
53156 (pupa_rescue_cmd_lsmod): Likewise.
53157 * normal/cmdline.c (pupa_cmdline_get): Likewise.
53158 * normal/menu.c (run_menu): Likewise.
53159 * kern/term.c (pupa_cls): Likewise.
53160 (pupa_refresh): New function.
53161 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
53162 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
53163 * util/console.c: New file.
f19dbdb7 53164
1f7315a3 53165 * util/i386/pc/getroot.c: New file.
53166 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
53167 (pupa_putchar): New function.
53168 (pupa_refresh): Likewise.
53169 (xgetcwd): Function moved to ...
53170 (strip_extra_slashes): Likewise.
53171 (get_prefix): Likewise.
f19dbdb7 53172 * util/i386/pc/getroot.c: ... here.
1f7315a3 53173 (find_root_device): Function moved and renamed to...
53174 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
53175 Changed all callers.
53176 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
53177 and renamed to...
53178 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
53179 Changed all callers.
53180 * util/misc.c (pupa_memalign): New function.
53181 (pupa_mm_init_region): Likewise.
53182 (pupa_register_exported_symbols): Likewise.
53183 (pupa_putchar): Function removed.
53184 * util/pupa-emu.c: New file.
53185
9a5c1ade 531862003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
53187
53188 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
53189 (_multiboot_mod_SOURCES): New variable.
53190 (_multiboot_mod_CFLAGS): Likewise.
53191 * loader/i386/pc/multiboot.c: New file.
53192 * include/pupa/i386/pc/multiboot.h: Likewise.
53193 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
53194 (pupa_multiboot_real_boot): New function.
53195 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
53196 (pupa_multiboot_real_boot): New prototype.
53197 (pupa_rescue_cmd_multiboot): Likewise
53198 (pupa_rescue_cmd_module): Likewise.
53199
53200 * kern/loader.c (pupa_loader_set): Continue when
53201 pupa_loader_unload_func() fails.
53202 (pupa_loader_unset): New function.
53203 * include/pupa/loader.h (pupa_loader_unset): New prototype.
53204
53205 * kern/misc.c (pupa_stpcpy): New function.
53206 * include/pupa/misc.h (pupa_stpcpy): New prototype.
53207
8e72a9c0 532082003-11-12 Marco Gerards <metgerards@student.han.nl>
53209
53210 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
53211 for available extensions.
53212
53213 * include/pupa/i386/pc/time.h: New file.
53214 * kern/disk.c: Include <pupa/machine/time.h>.
53215 (PUPA_CACHE_TIMEOUT): New macro.
53216 (pupa_last_time): New variable.
53217 (pupa_disk_open): Flush the cache when there was a timeout.
53218 (pupa_disk_close): Reset the timer.
53219 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
53220 pupa_currticks.
53221 * util/misc.c: Include <sys/times.h>
53222 (pupa_get_rtc): New function.
53223
c4adbd32 532242003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
53225
53226 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
53227 as blocks.
53228 (pupa_ext2_get_file_block): Use blocks member.
53229
53230 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
53231 first block. Return -1 instead of pupa_errno on error.
53232
bfd30f06 532332003-10-27 Marco Gerards <metgerards@student.han.nl>
53234
53235 * README: In the pupa-mkimage example use _chain instead of chain
53236 and ext2 instead of fat.
53237 * TODO: Replace ext2fs with jfs as an example. Add an item for
53238 adding journal playback for ext2fs.
53239 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
53240 (pkgdata_MODULES): Added ext2.mod.
53241 (ext2_mod_SOURCES): New variable.
53242 (ext2_mod_CFLAGS): Likewise.
53243 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
53244 * include/pupa/misc.h (pupa_strncpy): New prototype.
53245 (pupa_strcat): Likewise.
53246 (pupa_strncmp): Likewise.
53247 * kern/misc.c (pupa_strcat): Enable function.
53248 (pupa_strncpy): New function.
53249 (pupa_strncmp): Likewise.
53250 * fs/ext2.c: New file.
f19dbdb7 53251
bfd30f06 53252 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
53253 when the read failed before retrying.
53254 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
53255 (_FILE_OFFSET_BITS): Likewise.
53256 * configure.ac: Added AC_SYS_LARGEFILE.
53257
98d15063 532582003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
53259
53260 * genmk.rb (PModule#rule): Make sure to get only symbol names
53261 from the output of nm.
59cad637 53262 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 53263
18d9c7cd 532642003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
53265
53266 I forgot to check in these changes for a long time. This adds
53267 incomplete support for VGA console, and this is still very
53268 buggy. Also, a lot of consideration is required for I18N,
53269 UNICODE, and VGA font issues. Therefore, assume that this is
53270 such that "better than nothing".
f19dbdb7 53271
18d9c7cd 53272 * font/manager.c: New file.
53273 * include/pupa/font.h: Likewise.
53274 * include/pupa/i386/pc/vga.h: Likewise.
53275 * term/i386/pc/vga.c: Likewise.
53276 * util/unifont2pff.rb: Likewise.
53277
53278 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
53279 (pkgdata_MODULES): Added vga.mod and font.mod.
53280 (vga_mod_SOURCES): New variables.
53281 (vga_mod_CFLAGS): Likewise.
53282 (font_mod_SOURCES): Likewise.
53283 (font_mod_CFLAGS): Likewise.
53284
53285 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
53286
53287 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 53288 (struct pupa_term): Added init and fini.
18d9c7cd 53289 Changed the argument of putchar to pupa_uint32_t.
53290
53291 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
53292 (pupa_console_real_putchar): New prototype.
53293 (pupa_console_putchar): Removed.
53294 (pupa_console_checkkey): Exported.
53295 (pupa_console_getkey): Likewise.
53296
53297 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
53298 characters.
53299
53300 * kern/term.c (pupa_term_set_current): Rewritten.
53301 (pupa_putchar): Likewise.
53302 (pupa_putcode): New function.
53303
53304 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
53305 (pupa_console_real_putchar): ... this.
53306 (pupa_vga_set_mode): New function.
53307 (pupa_vga_get_font): Likewise.
53308
53309 * normal/command.c: Include pupa/term.h.
53310 (terminal_command): New function.
53311 (pupa_command_init): Register the command "terminal".
53312
53313 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
53314 (DISP_UP): Likewise.
53315 (DISP_RIGHT): Likewise.
53316 (DISP_DOWN): Likewise.
53317 (DISP_HLINE): Likewise.
53318 (DISP_VLINE): Likewise.
53319 (DISP_UL): Likewise.
53320 (DISP_UR): Likewise.
53321 (DISP_LL): Likewise.
53322 (DISP_LR): Likewise.
53323
53324 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 53325
977329f5 533262003-02-08 NIIBE Yutaka <gniibe@m17n.org>
53327
53328 * util/resolve.c (pupa_util_resolve_dependencies): BUG
53329 FIX. Reverse the path_list.
53330
53331 * include/pupa/normal.h: Export pupa_register_command and
53332 pupa_unregister_command.
53333
53334 * hello/hello.c (pupa_cmd_hello): New module.
53335 * conf/i386-pc.rmk: Added hello.mod.
53336
1f5ab428 533372003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
53338
53339 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 53340
1f5ab428 53341 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
53342 (compress_kernel): New variable.
53343 (generate_image): Heavily modified to support compressing a
53344 large part of the core image.
53345
53346 * util/misc.c (pupa_util_read_image): Fix a file descriptor
53347 leak.
53348 (pupa_util_load_image): New function.
53349
53350 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
53351 (pupa_compressed_size): New variable.
53352 (codestart): Enable Gate A20 here.
53353 Decompress the compressed part of the core image.
53354 Rearrange the code to put functions and variables which are
53355 required for initialization in the non-compressed part.
53356 Include lzo1x.S.
53357
53358 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
53359 here.
53360
53361 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
53362
f19dbdb7 53363 * include/pupa/i386/pc/kernel.h
1f5ab428 53364 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
53365 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
53366 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
53367 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
53368 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
53369
53370 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
53371
53372 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
53373 (Utility#rule): Likewise.
53374
53375 * configure.ac: Check if LZO is available.
53376
ce5bf700 533772003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
53378
53379 * include/pupa/normal.h: New file.
53380 * include/pupa/setjmp.h: Likewise.
53381 * include/pupa/i386/setjmp.h: Likewise.
53382 * normal/cmdline.c: Likewise.
53383 * normal/command.c: Likewise.
53384 * normal/main.c: Likewise.
53385 * normal/menu.c: Likewise.
53386 * normal/i386/setjmp.S: Likewise.
f19dbdb7 53387
ce5bf700 53388 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
53389 (pupa_rescue_cmd_initrd): Likewise.
53390
53391 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
53392 Likewise.
53393
53394 * kern/i386/pc/startup.S (translation_table): New variable.
53395 (translate_keycode): New function.
53396 (pupa_console_getkey): Call translate_keycode.
53397
53398 * kern/rescue.c (attempt_normal_mode): New function.
53399 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
53400 it failed, print a message.
53401
53402 * kern/mm.c (pupa_real_malloc): Print more information when a
53403 free magic is broken.
53404 (pupa_free): If the first free header is not free actually, set
53405 it to P.
53406
53407 * kern/main.c (pupa_load_normal_mode): Just load the module
53408 "normal".
53409 (pupa_main): Don't print the message
53410 "Entering into rescue mode..." here.
53411
53412 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
53413 Declared.
53414 (pupa_rescue_cmd_initrd): Likewise.
53415 (pupa_rescue_cmd_initrd): Likewise.
53416
53417 * include/pupa/symbol.h (FUNCTION): Specify the type.
53418 (VARIABLE): Likewise.
53419
53420 * include/pupa/err.h (pupa_err_t): Added
53421 PUPA_ERR_UNKNOWN_COMMAND.
53422
53423 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
53424 (pupa_dl_get_prefix): Likewise.
53425
53426 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
53427 Added _chain.mod and _linux.mod instead of chain.mod and
53428 linux.mod.
53429 (chain_mod_SOURCES): Renamed to ...
53430 (_chain_mod_SOURCES): ... this.
53431 (chain_mod_CFLAGS): Renamed to ...
53432 (_chain_mod_CFLAGS): ... this.
53433 (linux_mod_SOURCES): Renamed to ...
53434 (_linux_mod_SOURCES): ... this.
53435 (linux_mod_CFLAGS): Renamed to ...
53436 (_linux_mod_CFLAGS): ... this.
53437 (normal_mod_SOURCES): New variable.
53438 (normal_mod_CFLAGS): Likewise.
53439 (normal_mod_ASFLAGS): Likewise.
53440
534412003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
53442
53443 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
53444 possible.
53445
fe6b695a 53446 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 53447 recursively.
53448 (pupa_dl_unref): Unrefer depending modules recursively.
53449 Don't call pupa_dl_unload implicitly, because PUPA can crash if
53450 a module is unloaded before one depending on that module is
53451 unloaded.
53452 (pupa_dl_unload): Unload depending modules explicitly,
53453 if possible.
53454
c04da074 534552003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
53456
53457 * include/pupa/i386/pc/linux.h: New file.
53458 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 53459
c04da074 53460 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
53461 Removed.
53462 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
53463 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
53464 of PUPA_CHAINLOADER_BOOT_SECTOR.
53465
53466 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
53467 (pupa_linux_prot_size): New variable.
53468 (pupa_linux_tmp_addr): Likewise.
53469 (pupa_linux_real_addr): Likewise.
53470 (pupa_linux_boot_zimage): New function.
53471 (pupa_linux_boot_bzimage): Likewise.
53472
53473 * kern/i386/pc/init.c (struct mem_region): New structure.
53474 (MAX_REGIONS): New macro.
53475 (mem_regions): New variable.
53476 (num_regions): Likewise.
53477 (pupa_os_area_addr): Likewise.
53478 (pupa_os_area_size): Likewise.
53479 (pupa_lower_mem): Likewise.
53480 (pupa_upper_mem): Likewise.
53481 (add_mem_region): New function.
53482 (compact_mem_regions): Likewise.
53483 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
53484 the size of the conventional memory and that of so-called upper
53485 memory (before the first memory hole).
53486 Instead of adding each found region to free memory, use
53487 add_mem_region and add them after removing overlaps.
53488 Also, add only 1/4 of the upper memory to free memory. The rest
53489 is used for loading OS images. Maybe this is ad hoc, but this
53490 makes it much easier to relocate OS images when booting.
53491
53492 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
53493 (pupa_enter_rescue_mode): Don't register initrd and module.
53494
53495 * kern/mm.c: Include pupa/dl.h.
53496
53497 * kern/main.c: Include pupa/file.h and pupa/device.h.
53498
53499 * kern/loader.c (pupa_loader_load_module_func): Removed.
53500 (pupa_loader_load_module): Likewise.
53501
53502 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
53503 ``.o''.
53504
53505 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
53506 (pupa_linux_tmp_addr): Likewise.
53507 (pupa_linux_real_addr): Likewise.
53508 (pupa_linux_boot_zimage): Likewise.
53509 (pupa_linux_boot_bzimage): Likewise.
53510
53511 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
53512 (pupa_upper_mem): Likewise.
53513 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
53514 module is too dangerous.
53515
53516 * include/pupa/loader.h (pupa_os_area_addr): Declared.
53517 (pupa_os_area_size): Likewise.
53518 (pupa_loader_set): Remove the first argument. Loader doesn't
53519 manage modules or initrd any longer.
53520 (pupa_loader_load_module): Removed.
53521
53522 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
53523 (linux_mod_SOURCES): New variable.
53524 (linux_mod_CFLAGS): Likewise.
53525
a13f9237 535262003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
53527
53528 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
53529 the length of a blocklist correctly.
53530
53531 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
53532 Use ioctl only if the OS file is a block device.
53533 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
53534 not very useful for normal files.
53535
53536 * kern/main.c (pupa_set_root_dev): New function.
53537 (pupa_load_normal_mode): Likewise.
53538 (pupa_main): Call those above.
53539
53540 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
53541 pupa_uint16_t.
53542
53543 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
53544
a5ffe966 535452003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
53546
53547 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
53548 (setup): Configure the installed partition information and the
53549 dl prefix.
53550
53551 * loader/i386/pc/chainloader.c (my_mod): New variable.
53552 (pupa_chainloader_unload): New function.
53553 (pupa_rescue_cmd_chainloader): Refer itself.
53554 (PUPA_MOD_INIT): Save its own module in MY_MOD.
53555
53556 * kern/i386/pc/startup.S (install_partition): Removed.
53557 (version_string): Likewise.
53558 (config_file): Likewise.
53559 (pupa_install_dos_part): New variable.
53560 (pupa_install_bsd_part): Likewise.
53561 (pupa_prefix): Likewise.
53562 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
53563
53564 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
53565 and pupa/misc.h.
53566 (make_install_device): New function.
53567 (pupa_machine_init): Set the dl prefix.
53568
53569 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
53570 (buf): Renamed to ...
53571 (linebuf): ... this.
53572 (pupa_rescue_cmd_prefix): New function.
53573 (pupa_rescue_cmd_insmod): Likewise.
53574 (pupa_rescue_cmd_rmmod): Likewise.
53575 (pupa_rescue_cmd_lsmod): Likewise.
53576 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
53577 rmmod and lsmod.
53578
53579 * kern/mm.c (pupa_memalign): If failed even after invalidating
53580 disk caches, unload unneeded modules and retry.
53581
53582 * kern/misc.c (pupa_memmove): New function.
53583 (pupa_memcpy): Removed.
53584 (pupa_strcpy): New function.
53585 (pupa_itoa): Made static.
53586
53587 * kern/dl.c (pupa_dl_iterate): New function.
53588 (pupa_dl_ref): Likewise.
53589 (pupa_dl_unref): Likewise.
53590 (pupa_dl_unload): Return if succeeded or not.
53591 (pupa_dl_unload_unneeded): New function.
53592 (pupa_dl_unload_all): Likewise.
53593 (pupa_dl_init): Renamed to ...
53594 (pupa_dl_set_prefix): ... this.
53595 (pupa_dl_get_prefix): New function.
53596
53597 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
53598 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
53599 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
53600 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
53601 (pupa_install_dos_part): Declared.
53602 (pupa_install_bsd_part): Likewise.
53603 (pupa_prefix): Likewise.
53604 (pupa_boot_drive): Likewise.
53605
53606 * include/pupa/types.h: Fix a typo.
53607
53608 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
53609 pupa_memmove.
53610 (pupa_memmove): Declared.
53611 (pupa_strcpy): Likewise.
53612
53613 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
53614 pupa_mod_init takes one argument, its own module.
53615 (pupa_dl_unload_unneeded): Declared.
53616 (pupa_dl_unload_all): Likewise.
53617 (pupa_dl_ref): Likewise.
53618 (pupa_dl_unref): Likewise.
53619 (pupa_dl_iterate): Likewise.
53620 (pupa_dl_init): Renamed to ...
53621 (pupa_dl_set_prefix): ... this.
53622 (pupa_dl_get_prefix): Declared.
53623
53624 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 53625 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 53626 unloaded.
53627 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
53628 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
53629
53630 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
53631 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
53632
012d7999 536332003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
53634
53635 * util/i386/pc/pupa-setup.c (setup): Define the internal
53636 function find_first_partition_start at the top level, because GCC
53637 3.0.x cannot compile internal functions in deeper scopes
53638 correctly.
53639 (find_root_device): Use lstat instead of stat.
53640 Don't follow symbolic links.
53641 Fix the path-constructing code.
53642
53643 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
53644 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
53645 by a BLKGETSIZE ioctl first, because block devices don't fill
53646 the member st_mode of the structure stat on Linux.
53647 [__linux__] (linux_find_partition): Use a temporary buffer
53648 REAL_DEV for the working space. Copy it to DEV before returning.
53649 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
53650 buffer cache consistent.
53651 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
53652 strncmp. The previous value was merely wrong.
53653 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
53654
53655 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
53656 FAT size is 12. The previous value was merely wrong.
53657
53658 * kern/main.c (pupa_main): Don't split the starting message from
53659 newlines.
53660
53661 * kern/term.c (pupa_putchar): Put CR after LF instead of before
53662 LF, because BIOS goes crazy about character attributes in this
53663 case.
53664
1cc73a62 536652003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
53666
53667 * include/i386/pc/util/biosdisk.h: New file.
53668 * util/i386/pc/biosdisk.c: Likewise.
53669 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 53670
1cc73a62 53671 * Makefile.in (INCLUDE_DISTFILES): Added
53672 include/pupa/i386/pc/util/biosdisk.h.
53673 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
53674 directory util/i386/pc.
53675 (install-local): Added a rule for sbin_UTILITIES.
53676 (uninstall): Likewise.
53677
53678 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
53679
53680 * util/misc.c (xrealloc): New function.
53681 (pupa_malloc): Likewise.
53682 (pupa_free): Likewise.
53683 (pupa_realloc): Likewise.
53684 (pupa_stop): Likewise.
53685 (pupa_putchar): Likewise.
53686
53687 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
53688
53689 * include/pupa/util/misc.h (xrealloc): Declared.
53690
53691 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
53692 macro.
53693 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
53694 (PUPA_BOOT_MACHINE_BPB_END): ... this.
53695
53696 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
53697 [PUPA_UTIL] (pupa_fat_fini): Likewise.
53698
53699 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
53700 way should be implemented.
53701 [PUPA_UTIL] (pupa_fat_fini): Likewise.
53702
53703 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
53704 the size of NAME for safety.
53705 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
53706 0x88.
53707
53708 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
53709 (pupa_setup_SOURCES): Likewise.
53710
53711 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
53712
08b70fe8 537132002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
53714
53715 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
53716 bunch of pushl's from pusha, because this destroys the return
53717 value.
53718
62ddcc8f 537192002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
53720
53721 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
53722 This means that any missing prototypes could be fatal. Also, you
53723 must take care when writing assembly code. See the comments at
53724 the beginning of startup.S, for more details.
f19dbdb7 53725
62ddcc8f 53726 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
53727 compilation mechanism.
53728 (pupa_chainloader_real_boot): Likewise.
53729 (pupa_biosdisk_rw_int13_extensions): Likewise.
53730 (pupa_biosdisk_rw_standard): Likewise.
53731 (pupa_biosdisk_check_int13_extensions): Likewise.
53732 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
53733 (pupa_biosdisk_get_diskinfo_standard): Likewise.
53734 (pupa_get_memsize): Likewise.
53735 (pupa_get_mmap_entry): Likewise.
53736 (pupa_console_putchar): Likewise.
53737 (pupa_console_setcursor): Likewise.
53738 (pupa_getrtsecs): Use pushl instead of push.
53739
53740 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
53741 memory instead of the stack for a mmap entry, because some
53742 BIOSes may ignore the maximum size and overflow.
53743
53744 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
53745
53746 * genmk.rb (PModule#rule): Compile automatically generated
53747 sources with module-specific CFLAGS as well as other sources.
53748
9962ed99 537492002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
53750
53751 * configure.ac: Check ld.
53752 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
53753 respectively, before checking endianness and sizes.
53754
53755 * Makefile.in (LD): New variable.
f19dbdb7 53756
abdfc3c5 537572002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
53758
53759 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
53760
6a161fa9 537612002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
53762
53763 * Changelog: New file.
53764