]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
[grub2.git] / ChangeLog
CommitLineData
b193e100
VS
12013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
4 It improves performance in qemu.
5
a0f8f3ac
VS
62013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * build-aux/snippet: Add missing gnulib files.
9
284df0e2
AB
102013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
11
12 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
13
740201f3
AB
142013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
15
16 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
17
a7e03923
PJ
182013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
192013-04-15 Peter Jones <pjones@redhat.com>
20
21 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
22 sectors.
23 Based on patch by Peter Jones.
24
25fc51a8
VS
252013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
26
27 Fix DMRAID partition handling.
28
88017d47
VS
292013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * tests/grub_cmd_date.in: Skip on sparc64.
32
fa7d914e
VS
332013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34
35 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
36 firmware error messages.
37
cbe57a48
VS
382013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
41 source and destination differ.
42
21aecce0
VS
432013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
44
45 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
46 detection.
47
25092d29
VS
482013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
49
50 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
51 match config-util.h to avoid warnings and increase compatibility.
52
79451522 532013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 542013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
55
56 Add option to compress files on install/image creation.
57
78b7d77b
VS
582013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
59
60 * docs/grub-dev.texi: Rearrange menu to match the section order.
61 Reported by: Bryan Hundven.
62
cc2fa5ec
VS
632013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
64
65 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
66
b49fe879
VS
672013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
68
69 Move GRUB out of system area when using xorriso 1.2.9 or later.
70
5351da81
VS
712013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
72
73 * tests/grub_cmd_date.in: Add missing exit 1.
74
c9d586ea
VS
752013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * tests/partmap_test.in: Skip on sparc64.
78
3f729741
VS
792013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
80
81 Support grub-shell on sparc64.
82
8ca86b3a
VS
832013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
84
85 Support mkrescue on sparc64.
86
aa1af9bb
VS
872013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
88
89 Allow IEEE1275 ports on path even if it wasn't detected automatically.
90 Needed on OpenBIOS due to incomplete device tree.
91
ac4fea79
VS
922013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
93
94 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
95 would be otherwise excluded.
96
972013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
98
99 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
100 Inline name defines used only once.
101
fe22b071
VS
1022013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
103
104 Fix memory leaks in ofnet.
105 Reported by: Francesco Lavra.
106
9d21381b
VS
1072013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
108
109 * docs/man/grub-glue-efi.h2m: Add missing file.
110
07aec23c
VS
1112013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
112
113 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
114
67ab8353
VS
1152013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
116
117 Better support Apple Intel Macs on CD.
118
ba44ca6d
VS
1192013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
120
121 Replace stpcpy with grub_stpcpy in tools.
122
bbdd6305
VS
1232013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
124
125 Handle Japanese special keys.
126 Reported by: Hiroyuki YAMAMORI.
127 Codes supplied by: Hiroyuki YAMAMORI.
128
8573d302
VS
1292013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
130
131 * util/grub-mkimage.c: Document memdisk implying --prefix.
132
d70dbab7
VS
1332013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
134
135 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
136 much we can do about it anyway.
137
51a4c3e3
AN
1382013-04-12 Aleš Nesrsta <starous@volny.cz>
139
140 Fix handling of split transfers.
141
92c8f58d
VS
1422013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
143
144 * grub-core/net/http.c: Fix bad free.
145
b7d17a49
VS
1462013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
147
148 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
149 than buffer size.
150
a3d566d4
VS
1512013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
152
153 Disable partmap check on i386-ieee1275 due to openfirmware issues.
154
a936af56
VS
1552013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * tests/util/grub-shell.in: Fix it on powerpc.
158
51212234
VS
1592013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
160
161 Turn off QEMU ACPI-way since new releases don't have shutdown port
162 anymore.
163
a21eec9e
VS
1642013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
165
166 * docs/grub.texi: Update coreboot status info.
167
e3734b84
VS
1682013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
169
170 * tests/grub_cmd_date.in: New test for datetime.
171
f9d40055
VS
1722013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
173
174 * tests/partmap_test.in: Fix missing qemudisk setting.
175
dbc56d8f
VS
1762013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
177
178 Support i386-ieee1275 grub-mkrescue and make check on it.
179
a79b8a15
VS
1802013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
181
182 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
183 feature for it.
184
48f39bb4
VS
1852013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
186
187 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
188 GRUB_CMDLINE_XEN_DEFAULT.
189 Reported by: Marc Warne (GigaTux) <gigatux>
190
053cfcdd
VS
1912013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
192
193 Import new gnulib.
194
93cd84df
VS
1952013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
196
197 Use ACPI shutdown intests as traditional port was removed.
198
f4b1fa4f
AB
1992013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
200
201 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
202 distinction.
203
49818a59
VS
2042013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
205
206 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
207 Fix few warining messages and leaks while on it.
208
9277a306
AB
2092013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
210
211 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
212 links under grub-core/lib/libgcrypt-grub/mpi.
213
d5e2a158
VS
2142013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
215
216 Fix ia64-efi image generation on big-endian machines. Deduplicate
217 some code while on it.
218 Reported by: Leif Lindholm.
219
18866643
AB
2202013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
221
222 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
223 as extra_dist.
224
ca53deb8
AB
2252013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
226
227 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
228
d4c4b8e1
BH
2292013-04-08 Bryan Hundven <bryanhundven@gmail.com>
230
231 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
232 texinfo-5.1.
233
47043f95
VS
2342013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
235
236 * grub-core/normal/term.c: Few more fixes for menu entry editor
237 rendering.
238 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
239
a3216068
VS
2402013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * grub-core/normal/term.c: Few more fixes for menu entry editor
243 rendering.
244 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
245
21026747
AB
2462013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
247
248 * conf/Makefile.extra-dist (EXTRA_DIST): Add
249 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
250
59624ca8
AB
2512013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
252
253 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
254 instead of hardcoding grub.mo.
255
1f44478c
FN
2562013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
257
258 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
259
eeada7b1
VS
2602013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
261
262 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
263 grub-core/disk/geli.c.
264
132867de
VS
2652013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
266
267 * util/grub-mkfont.c: Prefer enum to #define.
268
de73de17
VS
2692013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
270
271 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
272
1865baa7
VS
2732013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
274
275 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
276
ce7d92a9
VS
2772013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
278
279 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
280
52eab656
VS
2812013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
282
283 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
284
98b23b95
VS
2852013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * include/grub/bsdlabel.h: Use enums.
288
0467a5dd
VS
2892013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
290
291 Move GRUB_CHAR_BIT to types.h.
292
16cc9f03
AB
2932013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
294
295 * docs/grub.texi: Document more user commands.
296
3152aecb
AB
2972013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
298
299 * docs/grub.texi: Document menuentry --id option.
300
c506fc30
FL
3012013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
302
303 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
304
aa428238
VS
3052013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
306
307 Unify file copying setup across different install scripts. Add
308 options for performing partial install.
309
efe0cdda
PJ
3102013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3112013-04-04 Peter Jones <pjones@redhat.com>
312
313 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
314
f75835bd
VS
3152013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
316
317 Use TSC as a possible time source on i386-ieee1275.
318
2cd5ce6c
VS
3192013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
320
321 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
322 Init err.
323
c9625630
VS
3242013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
325
326 * util/grub-setup.c (setup): Handle some corner cases.
327
be008941
VS
3282013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
329
330 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
331
1a78d573
VS
3322013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
333
334 * grub-core/commands/verify.c: Save verified file to avoid it being
335 tampered with after verification was done.
336
db8ff59f
VS
3372013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
338
339 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
340 reported width by one to compensate for curesor algorithm problem.
341
91bf46b1
VS
3422013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
343
344 Fix screen corruption in menu entry editor and simplify the code
345 flow while on it.
346
a7b1d693
AB
3472013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
348
349 * util/grub-mount.c (fuse_init): Return error if fuse_main
350 failed.
351
31df9ad8
FL
3522013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
353
354 * include/grub/elf.h: Add missing ARM relocation codes and fix
355 existing ones.
356
07f392eb
VT
3572013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
358
359 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
360
9efd73ec 3612013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
3622013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
363
364 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
365 into account when calculating radius.
366
3672013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
368
369 * grub-core/gfxmenu/view.c: Fix off-by-one error.
370
4985ddaa
VT
3712013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
372
373 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
374
8c3635ff
RS
3752013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
376
377 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
378 missing closing bracket.
379
74a35e69
RS
3802013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
381
382 * INSTALL: Mention xorriso requirement.
383
40f1c000
AB
3842013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
385
386 * grub-core/commands/verify.c: Fix hash algorithms values for
387 the first three hashes - they start with 1, not with 0.
388
e75fdee4
VS
3892013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
390
391 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
392 Try terminating EFI services several times due to quirks in some
393 implementations.
394
33028f4c
CW
3952013-03-26 Colin Watson <cjwatson@ubuntu.com>
396
397 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
398 skipping Event, Device, Processor, PowerRes, ThermalZone, and
399 BankField extended opcodes.
400 (get_sleep_type): Add minimal scope handling (just enough to
401 handle setting the scope to the root path).
402 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
403 * include/grub/acpi.h: Add enumeration values for Event, Device,
404 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
405
33871a10
VT
4062013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
407
408 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
409 memory leak.
410
8990963a
VS
4112013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
412
413 * grub-core/disk/ahci.c: Give more time for AHCI request.
414
daae8f9e
VS
4152013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
418 command.
419
6a7fb94b
VS
4202013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
421
422 Replace the region at 0 from coreboot tables to available in BSD
423 memory map.
424
ff99babd
VS
4252013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
428 non-BIOS platforms.
429
30d6b1b2
VS
4302013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
431
432 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
433 platforms.
434
6ccd0b31
VS
4352013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
436
437 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
438 handling of multi-device filesystems.
439
23c9cc04
VS
4402013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
441
442 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
443 platforms.
444
ce50dbd7
VS
4452013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
446
447 Add new 'proc' filesystem framework and put luks_script into it.
448
d975e8d5
VS
4492013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
450
451 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
452 and qemu.
453
e73ba5e8
VS
4542013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
455
456 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
457
92750e4c
VS
4582013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
459
460 Add ability to generate newc additions on runtime.
461
0ec45a68
VS
4622013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
463
464 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
465 description.
466
320abd43
VS
4672013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
468
469 * po/POTFILES.in: Regenerate.
470
d7a6506e
VS
4712013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
472
473 * grub-core/commands/verify.c (hashes): Add several hashes
474 from the spec.
475
8fe05def
VS
4762013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
477
478 Slight improve in USB-related boot-time checkpoints.
479
524e2766
VS
4802013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
481
482 * grub-core/commands/boottime.c: Fix copyright header.
483
cc19857a
VS
4842013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
485
486 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
487 coreboot tables content. Support for cbmemc.
488
ef8810e9
VS
4892013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
490
491 Fix a conflict between ports structures with 2 controllers of
492 same kind.
493
e9dabdfa
VS
4942013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
495
496 * include/grub/boottime.h: Add missing file.
497
f6df57d2
VS
4982013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
499
500 Initialize USB ports in parallel to speed-up boot.
501
d745dda7
VS
5022013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
503
504 Fix USB devices not being detected when requested
505 due to delayed attach.
506
e5a2dd7b
VS
5072013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
508
e744219b
VS
509 Implement boot time analysis framework.
510
5112013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
512
513 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
514 descriptor to just receive it as argument rather than endpoint
515 address.
516
5dd6f587
VS
5172013-03-19 Aleš Nesrsta <starous@volny.cz>
518
519 Better estimate the maximum USB transfer size.
520
2f1071d5
VS
5212013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
522
523 Resend a packet if we got the wrong buffer in status.
524
46ecfc49
VS
5252013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
526
527 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
528 multiplication rather than division.
529
ea811130
VS
5302013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
531
532 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
533 than divisions.
534
d2789cf0
VS
5352013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
536
537 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
538 operations to have intended shifts and not divisions.
539
a9c94590
VS
5402013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
541
542 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
543 intended shifts rather than division.
544
84cfe81b
VS
5452013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
546
547 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
548 computation for some years before epoch. Avode confusing division
549 while on it.
550
21344ef6
VS
5512013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
552
553 * grub-core/video/i386/pc/vbe.c
554 (grub_video_vbe_print_adapter_specific_info): Replace division by
555 shifts.
556
3f2b4d1a
VS
5572013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
558
559 Adjust types in gdb module to have intended unsigned shifts rather than
560 signed divisions.
561
3dac5878
VS
5622013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
563
564 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
565 maximum size is 4G - 1 on hfs
566
5341c0fb
VS
5672013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
568
569 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
570
fc3ff2a2
VS
5712013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
572
573 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
574 function.
575
81455e8e
AB
5762013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
577
578 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
579 causing gcc error with gcc 4.7.1.
580
efd4f117
NZ
5812013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
582
583 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
584 dereference null pointer. While the code is technically correct, gcc
585 may eliminate a null check if pointer is already dereferenced.
586
e11645f4
NZ
5872013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
588
589 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
590 OOM check.
591 * grub-core/normal/term.c (read_terminal_list): Likewise.
592
77468368
VS
5932013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
594
595 Lift up core size limits on some platforms. Fix potential memory
596 corruption with big core on small memory systems. Document remaining
597 limits.
598
f6b58fe5
VS
5992013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
600
601 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
602 gotoxy to 0,0.
603
19ce697d
VS
6042013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
605
606 Remove all trampoline support. Add -Wtrampolines when
607 present. Remove symbols used for trampolines to make
608 link fail if trampolines are present.
609
73b5d90f
VS
6102013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
611
612 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
613 append out of its parent.
614
cb758e96
VS
6152013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
618 parent.
619
3188131f
VS
6202013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
623 all vars to a macro. All users updated.
624
e42b2514
VS
6252013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
626
627 * grub-core/disk/ieee1275/nand.c: Fix compilation on
628 i386-ieee1275.
629
83e1a1a1
VS
6302013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
631
632 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
633
1d5a880f
VS
6342013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
635
636 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
637
6e4146c4
VS
6382013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
639
640 Move to more hookless approach in IEEE1275 devices handling.
641
99fcda8a
VS
6422013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
643
644 * grub-core/kern/term.c (grub_term_normal_color),
645 (grub_term_highlight_color): Add back lost defaults.
646
73bf57e2
VS
6472013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
648
649 Make elfload not use hooks. Opt for flags and iterators instead.
650
7f8c105f
VS
6512013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
652
653 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
654 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
655
396d4091
VS
6562013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * grub-core/script/execute.c (gettext_append): Remove nested functions.
659
6602013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
661
662 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
663 hook pass-through parameter. All users updated and unnested.
664
74a27421
VS
6652013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
666
667 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
668 out of its parent.
669
b46d4213
VS
6702013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * grub-core/fs/hfs.c: Remove nested functions.
673
e114c3cc
VS
6742013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
675
676 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
677 the context through.
678 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
679
f9b7d780
VS
6802013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * util/grub-editenv.c (list_variables): Move print_var out of its
683 parent.
684
ca9c2608
VS
6852013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
686
687 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
688 function.
689
5d983f5f
VS
6902013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
691
692 * grub-core/gentrigtables.c: Make tables const.
693
3056d3e7
VS
6942013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
695
696 Remove nested functions from videoinfo iterators.
697
e2303774
VS
6982013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
699
700 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
701 for 64-bit platforms.
702
f42e3a2f
VS
7032013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
706 a FOR_CHILDREN macro.
707
be174e5e
VS
7082013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
711 platform from firmware path.
712
0789b672
VS
7132013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
714
715 Enable linux16 on non-BIOS systems for i.a. memtest.
716
717 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
718 correctly.
719 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
720
005a9c32
VS
7212013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
722
723 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
724 Fix end of table condition.
725
ff2b3cd9
VS
7262013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
727
728 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
729 out of its parent.
730
4fc40ff8
VS
7312013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
732
733 * grub-core/fs/jfs.c: Remove nested functions.
734
be42d97a
VS
7352013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
736
737 * grub-core/fs/minix.c: Remove nested functions.
738
99373ce4
VS
7392013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
740
741 * grub-core/fs/iso9660.c: Remove nested functions.
742
5aec2afe
VS
7432013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
744
745 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
746 of parent function.
747
6c69e691
VS
7482013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
749
750 * util/grub-fstest.c: Remove nested functions.
751
43c91882
VS
7522013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
753
754 * grub-core/loader/machoXX.c: Remove nested functions.
755
4eb8b756
CW
7562013-02-27 Colin Watson <cjwatson@ubuntu.com>
757
758 Remove nested functions from disk and file read hooks.
759
760 * include/grub/disk.h (grub_disk_read_hook_t): New type.
761 (struct grub_disk): Add read_hook_data member.
762 * include/grub/file.h (struct grub_file): Likewise.
763 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
764 argument.
765
766 Update all callers.
767
df6da5a5
AB
7682012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
769
770 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
771 Fix off by one error in enumerating extended partitions.
772
21aecde5
AB
7732013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
774
775 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
776 memory leak if device name is not found.
777
f1a19118
AB
7782013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
779
780 * grub-core/normal/menu_entry.c (update_screen): remove
781 unused variable `off' which caused scroll down arrow to be always shown.
782
958bfd20
AB
7832013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
784
785 * grub-core/normal/menu_entry.c (insert_string): fix off by one
786 access to unallocated memory.
787
b7b78edb
AB
7882013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
789
790 * Makefile.util.def: Add partmap/msdos.c to common library.
791 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
792 * grub-core/disk/ldm.c: Check for existence of
793 GRUB_PC_PARTITION_TYPE_LDM.
794
28d468d6
VS
7952013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
796
797 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
798 sizes and display sector size.
799
d55ffb02
VS
8002013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
801
802 Implement new command cmosdump.
803
b5ea6ce0
VS
8042013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
805
806 Support Openfirmware disks with non-512B sectors.
807
808 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
809 size of the disk.
810 * (grub_ofdisk_get_block_size): New function.
811 * (grub_ofdisk_prepare): Use the correct block size.
812 * (grub_ofdisk_read): Likewise.
813 * (grub_ofdisk_write): Likewise.
814 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
815 New proto.
816
cc0e476f
VS
8172013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
820
c5dbdc33
VS
8212013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
822
823 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
824 on first error.
825
3f078c0f
VS
8262013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
827
828 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
829 freeing it.
830
66a93674
VS
8312013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
832
833 Implement USBDebug (full USB stack variant).
834
c9f0c134
VS
8352013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
836
837 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
838 unless they have unexpected values.
839
cfe1288b
VS
8402013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
841
842 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
843 grub_print_error.
844
e42b9969
VS
8452013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
846
847 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
848 zero-out of port structure.
849
cf94fd62
VS
8502013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
851
852 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
853 of extended attributes.
854
f81ef4b5
AB
8552013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
856
857 * util/grub-install.in: change misleading comment about
858 device.map creation
859
af18fdb4
VS
8602013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
861
862 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
863 when menu highlight color isn't set.
864
08bcec50
M
8652013-01-27 C. Masloch <pushbx@38.de>
866
867 Improve FreeDOS direct loading support compatibility.
868
869 * include/grub/i386/relocator.h (grub_relocator16_state):
870 New member ebp.
871 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
872 variable.
873 (grub_relocator16_boot): Handle %ebp.
874 * grub-core/lib/i386/relocator16.S: Likewise.
875 * grub-core/loader/i386/pc/freedos.c:
876 Load BPB to pass kernel which partition to load from.
877 Check that kernel file is not too large.
878 Set register dl to BIOS unit number as well.
879
7782b8a6
CW
8802013-01-22 Colin Watson <cjwatson@ubuntu.com>
881
882 * util/grub-reboot.in (usage): Document the need for
883 GRUB_DEFAULT=saved.
884 * util/grub-set-default.in (usage): Likewise.
885 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
886
e661c180
VS
8872013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
888
889 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
890 than defining WORDS_BIGENDIAN manually.
891
1c22ca9a
VS
8922013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
895 invariants.
896
d44892fe
CW
8972013-01-21 Colin Watson <cjwatson@ubuntu.com>
898
899 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
900 nested.
901 (blit_comb: add_device_width): Likewise.
902
5fdbaed1
CW
9032013-01-21 Colin Watson <cjwatson@ubuntu.com>
904
905 Remove nested functions from USB iterators.
906
907 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
908 (grub_usb_controller_iterate_hook_t): Likewise.
909 (grub_usb_iterate): Add hook_data argument.
910 (grub_usb_controller_iterate): Likewise.
911 (struct grub_usb_controller_dev.iterate): Likewise.
912
913 Update all implementations and callers.
914
4250985a
VS
9152013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
916
917 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
918 margin when not needed.
919
7d8848f3
VS
9202013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
921
bc136973 922 Make color variables global instead of it being per-terminal.
7d8848f3
VS
923
9242013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
925
bc136973
VS
926 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
927 asterisk.
7d8848f3 928
ed12a003
CW
9292013-01-21 Colin Watson <cjwatson@ubuntu.com>
930
931 Fix powerpc and sparc64 build failures caused by un-nesting memory
932 map iterators.
933
6a0db449
CW
9342013-01-21 Colin Watson <cjwatson@ubuntu.com>
935
936 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
937 parameter declarations.
938
ccd86b21
VS
9392013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
940
941 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
942
822b726b
VS
9432013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
944
945 Improve spkmomdem reliability by adding a separator between bytes.
946
115c2cc1
CW
9472013-01-21 Colin Watson <cjwatson@ubuntu.com>
948
949 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
950 an Acer registration utility with several sightings in the wild.
951 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
952
fc524edf
CW
9532013-01-21 Colin Watson <cjwatson@ubuntu.com>
954
955 Remove nested functions from filesystem directory iterators.
956
957 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
958 (struct grub_fs.dir): Add hook_data argument.
959
960 Update all implementations and callers.
961
53d3e4e3
CW
9622013-01-21 Colin Watson <cjwatson@ubuntu.com>
963
964 * docs/grub.texi (Multi-boot manual config): Fix typo for
965 "recommended".
966
c821711f
LL
9672013-01-20 Leif Lindholm <leif.lindholm@arm.com>
968
969 * util/grub-mkimage.c (main): Postpone freeing arguments.output
970 until after its use in generate_image.
971
6a0debbd
CW
9722013-01-20 Colin Watson <cjwatson@ubuntu.com>
973
974 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
975 initrd size to addr_min, since the initrd will be allocated after
976 this address.
977
f41e08db
AB
9782013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
979
980 * conf/Makefile.common: Fix autogen rules to pass definition
981 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
982
77529e0f
LL
9832013-01-20 Leif Lindholm <leif.lindholm@arm.com>
984
985 * include/grub/elf.h: Update ARM definitions based on binutils.
986
b879aa7b
VS
9872013-01-20 Aleš Nesrsta <starous@volny.cz>
988
989 Split long USB transfers into short ones.
990
8eb8284d
AB
9912013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
992
993 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
994 is interrupted by ESC.
995
08dad2dc
VS
9962013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
997
998 * util/grub-script-check.c (main): Uniform the error message.
999
6c724b85
CW
10002013-01-20 Colin Watson <cjwatson@ubuntu.com>
1001
1002 Remove nested functions from ELF iterators.
1003
25239370
CW
10042013-01-20 Colin Watson <cjwatson@ubuntu.com>
1005
1006 Remove nested functions from device iterators.
1007
1008 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
1009 (grub_arc_iterate_devs): Add hook_data argument.
1010 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
1011 (struct grub_ata_dev.iterate): Add hook_data argument.
1012 * include/grub/device.h (grub_device_iterate_hook_t): New type.
1013 (grub_device_iterate): Add hook_data argument.
1014 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
1015 (struct grub_disk_dev.iterate): Add hook_data argument.
1016 (grub_disk_dev_iterate): Likewise.
1017 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
1018 Likewise.
1019 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
1020 Likewise.
1021 * include/grub/partition.h (grub_partition_iterate_hook_t): New
1022 type.
1023 (struct grub_partition_map.iterate): Add hook_data argument.
1024 (grub_partition_iterate): Likewise.
1025 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
1026 (struct grub_scsi_dev.iterate): Add hook_data argument.
1027
1028 Update all callers.
1029
6c0314d6
CW
10302013-01-20 Colin Watson <cjwatson@ubuntu.com>
1031
1032 Fix typos for "developer" and "development".
1033
600dc5f1
VS
10342013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1035
1036 Add license header to spkmodem-recv.c.
1037
17334a6b
VS
10382013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 Rewrite spkmodem to use PIT for timing. Double the speed.
1041
7d462559
VS
10422013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 Add new command pcidump.
1045
b78d6c32
VS
10462013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 New terminal outputs using serial: morse and spkmodem.
1049
34f71cb8
VS
10502013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 Improve bidi handling in entry editor.
1053
4542e71b
VS
10542013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
1057 argument to prevent name collision.
1058
09fd6d82
CW
10592013-01-15 Colin Watson <cjwatson@ubuntu.com>
1060
1061 Remove nested functions from script reading and parsing.
1062
1063 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
1064 getline_data argument, passed to getline.
1065 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
1066 getline_data argument, passed to grub_parser_split_cmdline.
1067 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
1068 lexerstate->getline_data to lexerstate->getline.
1069 (grub_script_lexer_init): Add getline_data argument, saved in
1070 lexerstate->getline_data.
1071 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
1072 argument, passed to grub_script_parse.
1073 * grub-core/script/script.c (grub_script_parse): Add getline_data
1074 argument, passed to grub_script_lexer_init.
1075 * include/grub/parser.h (grub_parser_split_cmdline): Update
1076 prototype. Update all callers to pass appropriate getline data.
1077 (struct grub_parser.parse_line): Likewise.
1078 (grub_rescue_parse_line): Likewise.
1079 * include/grub/reader.h (grub_reader_getline_t): Add void *
1080 argument.
1081 * include/grub/script_sh.h (struct grub_lexer_param): Add
1082 getline_data member.
1083 (grub_script_parse): Update prototype. Update all callers to pass
1084 appropriate getline data.
1085 (grub_script_lexer_init): Likewise.
1086 (grub_normal_parse_line): Likewise.
1087
1088 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
1089 data argument.
1090 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
1091 static instead of nested. Rename to ...
1092 (grub_parser_execute_getline): ... this.
1093 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
1094 data argument.
1095 * grub-core/normal/main.c (read_config_file: getline): Make static
1096 instead of nested. Rename to ...
1097 (read_config_file_getline): ... this.
1098 (grub_normal_read_line): Add unused data argument.
1099 * grub-core/script/execute.c (grub_script_execute_sourcecode:
1100 getline): Make static instead of nested. Rename to ...
1101 (grub_script_execute_sourcecode_getline): ... this.
1102 * util/grub-script-check.c (main: get_config_line): Make static
1103 instead of nested.
1104
d0d4b8a0
CW
11052013-01-15 Colin Watson <cjwatson@ubuntu.com>
1106
1107 Remove nested functions from memory map iterators.
1108
1109 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
1110 argument, passed to hook.
1111 * grub-core/kern/i386/coreboot/mmap.c
1112 (grub_linuxbios_table_iterate): Likewise.
1113 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
1114 instead of nested.
1115 (grub_machine_mmap_iterate): Add hook_data argument.
1116 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
1117 Add hook_data argument, passed to hook.
1118 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
1119 Likewise.
1120 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
1121 Likewise.
1122 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
1123 Likewise.
1124 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
1125 Likewise.
1126 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
1127 Likewise.
1128 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
1129 Likewise.
1130 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
1131 (grub_machine_mmap_iterate): Likewise.
1132 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
1133 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
1134 prototype.
1135 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
1136 Remove NESTED_FUNC_ATTR from here and from all users.
1137 (grub_mmap_iterate): Update prototype.
1138 (grub_efi_mmap_iterate): Update prototype. Update all callers to
1139 pass appropriate hook data.
1140 (grub_machine_mmap_iterate): Likewise.
1141
1142 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
1143 static instead of nested.
1144 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
1145 Rename to ...
1146 (lsmmap_hook): ... this.
1147 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
1148 Likewise.
1149 (grub_efiemu_mmap_fill: fill_hook): Likewise.
1150 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
1151 heap_init): Likewise.
1152 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
1153 Rename to ...
1154 (mmap_iterate_hook): ... this.
1155 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
1156 Likewise.
1157 * grub-core/lib/ieee1275/relocator.c
1158 (grub_relocator_firmware_get_max_events: count): Likewise.
1159 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
1160 to ...
1161 (grub_relocator_firmware_fill_events_iter): ... this.
1162 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
1163 hook): Likewise. Rename to ...
1164 (grub_relocator_alloc_chunk_align_iter): ... this.
1165 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
1166 Rename to ...
1167 (generate_e820_mmap_iter): ... this.
1168 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
1169 Rename to ...
1170 (count_hook): ... this.
1171 (grub_linux_boot: hook): Likewise. Rename to ...
1172 (grub_linux_boot_mmap_find): ... this.
1173 (grub_linux_boot: hook_fill): Likewise. Rename to ...
1174 (grub_linux_boot_mmap_fill): ... this.
1175 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
1176 hook): Likewise. Rename to ...
1177 (grub_fill_multiboot_mmap_iter): ... this.
1178 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
1179 hook): Likewise. Rename to ...
1180 (count_hook): ... this.
1181 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
1182 hook): Likewise. Rename to ...
1183 (grub_fill_multiboot_mmap_iter): ... this.
1184 * grub-core/loader/powerpc/ieee1275/linux.c
1185 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
1186 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
1187 Likewise. Rename to ...
1188 (alloc_phys_choose): ... this.
1189 (determine_phys_base: get_physbase): Likewise.
1190 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
1191 find_hook): Likewise.
1192 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
1193 (malloc_hook: count_hook): Likewise.
1194 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
1195 Likewise. Rename to ...
1196 (lower_hook): ... this.
1197 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1198 (upper_hook): ... this.
1199 (grub_mmap_get_post64: hook): Likewise. Rename to ...
1200 (post64_hook): ... this.
1201 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
1202 Likewise. Rename to ...
1203 (lower_hook): ... this.
1204 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1205 (upper_hook): ... this.
1206 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
1207 (grub_mmap_iterate: fill_hook): Likewise.
1208 (fill_mask): Pass addr and mask within a single struct.
1209 (grub_cmd_badram: hook): Make static instead of nested. Rename
1210 to ...
1211 (badram_iter): ... this.
1212 (grub_cmd_cutmem: hook): Likewise. Rename to ...
1213 (cutmem_iter): ... this.
1214
22099030
VS
12152013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
1218 delimit path in strings using quotes.
1219 * util/getroot.c (grub_guess_root_devices): Likewise.
1220 (grub_make_system_path_relative_to_its_root): Likewise.
1221 * util/grub-probe.c (probe): Likewise.
1222 * util/ieee1275/ofpath.c (find_obppath): Likewise.
1223 (xrealpath): Likewise.
1224
4a9950ec
VS
12252013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1226
1227 Fix compilation with older compilers.
1228
1229 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
1230 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
1231 declarations.
1232 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
1233 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
1234 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
1235 identifier with b.
1236 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
1237 * include/grub/crypto.h: Add type defines.
1238 * util/import_gcrypth.sed: Remove duplicate type defines.
1239
adcc6020
VS
12402013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1241
1242 New command list_trusted.
1243
1244 * grub-core/commands/verify.c (grub_cmd_list): New function.
1245
a4528937
CW
12462013-01-13 Colin Watson <cjwatson@ubuntu.com>
1247
1248 * util/grub-mkimage.c (generate_image): Fix "size of public key"
1249 info message.
1250
ca3a7446
CW
12512013-01-13 Colin Watson <cjwatson@ubuntu.com>
1252
1253 Remove nested functions from PCI iterators.
1254
1255 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
1256 passed to hook. Update all callers to pass appropriate hook data.
1257 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
1258 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
1259 Remove NESTED_FUNC_ATTR from here and from all users.
1260 (grub_pci_iterate): Update prototype.
1261 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
1262 instead of nested. Rename to ...
1263 (grub_cs5536_find_iter): ... this.
1264 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
1265 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
1266 Likewise.
1267 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1268 Likewise.
1269 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1270 Likewise.
1271 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1272 Likewise.
1273 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1274 * grub-core/video/radeon_fuloong2e.c
1275 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1276 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1277 find_card): Likewise.
1278 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1279 Likewise.
1280
f8e98fee
VS
12812013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1282
1283 * grub-core/commands/verify.c: Mark messages for translating.
1284
055b36b6
VS
12852013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1286
1287 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1288 fatal.
1289
f7ff879b
VS
12902013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1291
1292 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1293 fatal.
1294
12952013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
1296
1297 * autogen.sh: Do not try to delete nonexistant files.
1298 * util/import_gcrypth.sed: Add some missing header removals.
1299
01323d49
CW
13002013-01-12 Colin Watson <cjwatson@ubuntu.com>
1301
1302 Clean up dangling references to grub-setup.
1303 Fixes Ubuntu bug #1082045.
1304
1305 * docs/grub.texi (Images): Refer generally to grub-install rather
1306 than directly to grub-setup.
1307 (Installing GRUB using grub-install): Remove direct reference to
1308 grub-setup.
1309 (Device map) Likewise.
1310 (Invoking grub-install): Likewise.
1311 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1312 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1313 * util/grub-install.in (usage): Likewise.
1314
1315 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1316 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1317 grub-setup.
1318 * configure.ac: Remove grub_setup output variable.
1319
1320 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1321 to grub-bios-setup.
1322 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1323 grub-setup to grub-sparc64-setup.
1324
5e3b8dcb
VS
13252013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 Import gcrypt public-key cryptography and implement signature checking.
1328
535714bd
VS
13292013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 * grub-core/fs/ntfs.c: Ue more appropriate types.
1332 * grub-core/fs/ntfscomp.c: Likewise.
1333 * include/grub/ntfs.h: Likewise.
1334
3e4f3566
VS
13352013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1336
1337 Support Apple FAT binaries on non-Apple platforms.
1338
1339 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1340 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1341 Likewise.
1342 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1343 Apple FAT binaries.
1344
4dedb13f
VS
13452013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1348 sector devices.
1349
f8861eaf
CW
13502013-01-07 Colin Watson <cjwatson@ubuntu.com>
1351
1352 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1353 explicitly zeroing elements.
1354 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1355 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1356 of elements in a structure already allocated using grub_zalloc.
1357 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1358
86065b0a
CW
13592013-01-07 Colin Watson <cjwatson@ubuntu.com>
1360
1361 * docs/grub.texi (grub_cpu): New subsection.
1362 (grub_platform): Likewise.
1363
c6f1e92f
VS
13642013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1365
1366 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1367
f797ec85
VS
13682013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1371 divisions.
1372
033d0b4b
VS
13732013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1376 * grub-core/fs/ntfscomp.c: Likewise.
1377 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1378 (grub_ntfs_comp): Likewise.
1379
21d1b9a0
VS
13802013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1383 Rename to ...
1384 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1385 of groups_per_block. All users updated.
1386
10ca8645
VS
13872013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1390 grub_error properly.
1391 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1392 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1393
a4c3ed4c
VS
13942013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1395
1396 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1397 always in /boot/zfs.
1398 Reported by: Yuta Satoh.
1399
0b716507
YS
14002013-01-03 Yuta Satoh <nigoro>
1401
1402 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1403 ${grub_probe}
1404
00c05e22
VS
14052013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1406
1407 * configure.ac: Extend -Wno-trampolines to host.
1408
dadddb76
VS
14092013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1412 entry->len = 0.
1413
54ce53ca
CW
14142013-01-03 Colin Watson <cjwatson@ubuntu.com>
1415
1416 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1417 (Invoking grub-script-check): Likewise.
1418
8912efca
CW
14192013-01-03 Colin Watson <cjwatson@ubuntu.com>
1420
1421 * docs/grub.texi (Invoking grub-mount): New section.
1422 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1423
c3fc8394
CW
14242013-01-02 Colin Watson <cjwatson@ubuntu.com>
1425
1426 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1427 test failures, so that a failing unit test correctly causes 'make
1428 check' to fail.
1429
45d26abb
CW
14302013-01-02 Colin Watson <cjwatson@ubuntu.com>
1431
1432 Fix failing printf test.
1433
1434 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1435 '$' in the correct order when collecting type information.
1436
971dd2c6
CW
14372013-01-02 Colin Watson <cjwatson@ubuntu.com>
1438
1439 * docs/grub.texi (configfile): Explain environment variable
1440 handling.
1441 (source): New section.
1442 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1443
5c67ea6c
CW
14442012-12-31 Colin Watson <cjwatson@ubuntu.com>
1445
1446 Remove several trivially-unnecessary uses of nested functions.
1447
1448 * grub-core/commands/i386/pc/sendkey.c
1449 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1450 instead of nested.
1451 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1452 Rename to ...
1453 (legacy_file_getline): ... this.
1454 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1455 Likewise.
1456 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1457 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1458 to ...
1459 (probe_dummy_iter): ... this.
1460 * grub-core/kern/i386/coreboot/mmap.c
1461 (grub_linuxbios_table_iterate: check_signature): Likewise.
1462 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1463 check_varstate): Likewise. Mark inline.
1464 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1465 an additional parameter.
1466 (find_long: fnd_long): Likewise. Pass two additional parameters.
1467 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1468 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1469 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1470 Likewise. Rename to ...
1471 (grub_cmos_find_port_iter): ... this.
1472 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1473 Rename to ...
1474 (find_rtc_iter): ... this.
1475
1476 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1477 function directly into the function body, since it is only called
1478 once.
1479
33a68ac6
CW
14802012-12-30 Colin Watson <cjwatson@ubuntu.com>
1481
1482 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1483 __attribute__ ((unused)).
1484 * grub-core/video/bochs.c (find_card): Likewise.
1485 * grub-core/video/cirrus.c (find_card): Likewise.
1486 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1487 * grub-core/video/sis315pro.c (find_card): Likewise.
1488 * grub-core/video/sm712.c (find_card): Likewise.
1489
608b647a
CW
14902012-12-28 Colin Watson <cjwatson@ubuntu.com>
1491
1492 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1493 Fixes Savannah bug #37821.
1494
fd49ceb3
CW
14952012-12-28 Colin Watson <cjwatson@ubuntu.com>
1496
1497 Apply program name transformations at build-time rather than at
1498 run-time. Fixes Debian bug #696465.
1499
1500 * acinclude.m4 (grub_TRANSFORM): New macro.
1501 * configure.ac: Create output variables with transformed names for
1502 most programs.
1503 * util/bash-completion.d/grub-completion.bash.in: Use
1504 pre-transformed variables for program names.
1505 * util/grub-install.in: Likewise.
1506 * util/grub-kbdcomp.in: Likewise.
1507 * util/grub-mkconfig.in: Likewise.
1508 * util/grub-mkconfig_lib.in: Likewise.
1509 * util/grub-mknetdir.in: Likewise.
1510 * util/grub-mkrescue.in: Likewise.
1511 * util/grub-mkstandalone.in: Likewise.
1512 * util/grub-reboot.in: Likewise.
1513 * util/grub-set-default.in: Likewise.
1514 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1515 * tests/util/grub-shell-tester.in: Remove unused assignment.
1516 * tests/util/grub-shell.in: Likewise.
1517 * util/grub.d/00_header.in: Likewise.
1518
7024b3c0
CW
15192012-12-28 Colin Watson <cjwatson@ubuntu.com>
1520
1521 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1522
1523 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1524 HAVE_RAW_DECL_GETS.
1525 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1526
e3501b13
VS
15272012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1530 Reported by: Eriks Latosheks <foresterlv>.
1531
b40c88a9
VS
15322012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * docs/grub.texi (Network): Update instructions on generating netboot
1535 image.
1536
ce96d01c
VS
15372012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1538
1539 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1540 around device name if necessarry.
1541
0f596201
PFS
15422012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1543
1544 * util/grub-install.in: Follow the symbolic link parameter added
1545 to the file command.
1546
600d5bdb
AB
15472012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1548
1549 * util/grub-install.in: Remove stale TODO.
1550
64ebd2f4
PFS
15512012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1552
1553 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1554 dynamic allocation for the bootpath buffer.
1555
74b2fe3e
DTB
15562012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1557
1558 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1559 window too small.
1560
969b804f
VS
15612012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1564 argument rather than font name. All users updated.
1565 (grub_gfxterm_set_window): Likewise.
1566
b9f5ebd6
VT
15672012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1568
1569 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1570 from working.
1571
258f43b7
VS
15722012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1573
1574 * util/getroot.c (convert_system_partition_to_system_disk): Support
1575 nbd disks.
1576
cc1ce5f9
VS
15772012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1578
1579 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1580 infinite loop on corrupted FS.
1581
e77a16ca
VS
15822012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 Fix big-endian mtime.
1585
1586 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1587 together sec and usec.
1588 (grub_ufs_dir): Use correct byteswapping for UFS time.
1589
d9c48c7b
VS
15902012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 Support big-endian UFS1.
1593
1594 * Makefile.util.def (libgrubmods): Add ufs_be.c
1595 * grub-core/Makefile.core.def (ufs1_be): New module.
1596 * grub-core/fs/ufs_be.c: New file.
1597 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1598 the file.
1599
2f9f40ba
LL
16002012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1601
1602 * include/grub/types.h: Fix functionality unaffecting typo in
1603 GRUB_TARGET_WORDSIZE conditional macro.
1604
48ff0889
PFS
16052012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1606
1607 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1608
03711240
GS
16092012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1610
1611 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1612 that /netbsd appears first (when it exists).
1613
a31b11bd
CJ
16142012-10-12 Christoph Junghans <ottxor@gentoo.org>
1615
1616 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1617 Fixes Savannah bug #37558.
1618
e8a5d5d4
CW
16192012-10-12 Colin Watson <cjwatson@ubuntu.com>
1620
1621 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1622 description of extract_entries_configfile.
1623
16242012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
1625
1626 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1627 preferred_address.
1628 (grub_cmd_linux): Likewise.
1629 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1630 preferred_lifetime. Update all users.
1631
288c757d
CW
16322012-09-26 Colin Watson <cjwatson@ubuntu.com>
1633
1634 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1635 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1636
0d35da3f
CW
16372012-09-26 Colin Watson <cjwatson@ubuntu.com>
1638
1639 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1640 errors from grub-probe to /dev/null, not stdout.
1641
b78c3127
VS
16422012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1643
1644 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1645 sector 1.
1646
473959f0
CW
16472012-09-24 Colin Watson <cjwatson@ubuntu.com>
1648
1649 * util/grub-install.in: Make the error message if $source_dir
1650 doesn't exist more useful.
1651
794c8c33
CW
16522012-09-22 Colin Watson <cjwatson@ubuntu.com>
1653
1654 Fix grub-emu build on FreeBSD.
1655
1656 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1657 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1658 headers on Linux.
1659 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1660 implementation is currently Linux-specific.
1661 * util/getroot.c (exec_pipe): Define only on Linux or when either
1662 libzfs or libnvpair is unavailable.
1663 (find_root_devices_from_poolname): Remove unused path variable.
1664
86d08fdb
CW
16652012-09-19 Colin Watson <cjwatson@ubuntu.com>
1666
1667 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1668 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1669 should fit before end == 63.
1670
735abf54
CW
16712012-09-19 Colin Watson <cjwatson@ubuntu.com>
1672
1673 * util/grub-setup.c (write_rootdev): Remove unused core_img
1674 parameter. Update all callers.
1675 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1676 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1677 GRUB_SETUP_BIOS.
1678
140acd3c
VS
16792012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1682 (grub_add_tab): New function.
1683 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1684 * util/grub.d/10_illumos.in: Likewise.
1685 * util/grub.d/10_kfreebsd.in: Likewise.
1686 * util/grub.d/10_linux.in: Likewise.
1687 * util/grub.d/10_netbsd.in: Likewise.
1688 * util/grub.d/10_windows.in: Likewise.
1689 * util/grub.d/10_xnu.in: Likewise.
1690 * util/grub.d/20_linux_xen.in: Likewise.
1691 * util/grub.d/30_os-prober.in: Likewise.
1692
7ddffdad
VS
16932012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1696 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1697 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1698 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1699 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1700 ieee1275-nocursor.
1701 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1702 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1703
4e092454
VS
17042012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1707 le-conversion.
1708 Reported by: BURETTE, Bernard.
1709
735abf54 17102012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
1711
1712 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1713 from comment.
1714
dfd39dbd
CW
17152012-09-14 Colin Watson <cjwatson@ubuntu.com>
1716
1717 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1718 IEEE1275 machines. Fixes powerpc-emu compilation.
1719 * include/grub/terminfo.h: Likewise.
1720
3bfa763c
VS
17212012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1722
1723 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1724 a const pointer.
1725 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1726 const pointer.
1727 (efiemu_set_variable): Make vendor_guid a const pointer.
1728
250e475b
VS
17292012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 Don't require grub-mkconfig_lib to generate manpages for programs.
1732
1733 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1734 dependencies, don't add grub-mkconfig_lib.
1735 (program): Pass empty adddeps.
1736 (script): Pass grub-mkconfig_lib as adddeps.
1737
592fd0e4
VS
17382012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1739
1740 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1741 * util/getroot.c (grub_find_device): Likewise.
1742 (get_mdadm_uuid): Likewise.
1743 (grub_util_is_imsm): Likewise.
1744 (grub_util_pull_device): Likewise.
1745 * util/grub-probe.c (probe): Likewise.
1746
801a3027
BG
17472012-09-10 Benoit Gschwind <gschwind>
1748
1749 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1750 (devs): Add devpath_8.
1751
c5052c81
PJ
17522012-09-08 Peter Jones <pjones@redhat.com>
1753
1754 * grub-core/Makefile.core.def (efifwsetup): New module.
1755 * grub-core/commands/efi/efifwsetup.c: New file.
1756 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1757 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1758 New define.
1759 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1760
8e832f71
JS
17612012-09-05 Jiri Slaby <jslaby@suse.cz>
1762
1763 * configure.ac: Add SuSe path.
1764
f0f55752
CW
17652012-09-05 Colin Watson <cjwatson@ubuntu.com>
1766
1767 * NEWS: Fix typo.
1768
ecadc4c2
CW
17692012-09-05 Colin Watson <cjwatson@ubuntu.com>
1770
1771 * util/import_gcry.py: Sort cipher_files, to make build system
1772 generation more deterministic.
1773
64498f25
VS
17742012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1775
1776 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1777 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1778 (grub_set_datetime): Likewise.
1779
9cc836a2
VS
17802012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1781
1782 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1783 warnings.
1784
bcfcea01
VS
17852012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1788
a4099485
VS
17892012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1790
1791 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1792
265c162a
CW
17932012-09-04 Colin Watson <cjwatson@ubuntu.com>
1794
1795 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1796 required for checkouts from bzr, but it may be useful for users or
1797 distributors wishing to update translations against a tarball
1798 distribution, and it can be helpful for the tarball to be a superset
1799 of what's in bzr.
1800
3d171e95
CW
18012012-09-04 Colin Watson <cjwatson@ubuntu.com>
1802
1803 * Makefile.am (EXTRA_DIST): Add
1804 grub-core/tests/boot/linux.init-mips.S,
1805 grub-core/tests/boot/linux.init-ppc.S, and
1806 grub-core/tests/boot/linux-ppc.cfg.
1807
f2c2503e
CW
18082012-09-04 Colin Watson <cjwatson@ubuntu.com>
1809
1810 * grub-core/mmap/mips/loongson: Remove empty directory.
1811
18122012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
1813
1814 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1815 gone.
1816
ab2163d5
CW
18172012-09-04 Colin Watson <cjwatson@ubuntu.com>
1818
1819 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1820 grub-sparc64-setup.
1821
ce938140
GS
18222012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1823
1824 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1825
529f58a5
GS
18262012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1827
1828 * po/POTFILES.in: Regenerated.
1829
16cf79e9
GS
18302012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1831
1832 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1833 (NetBSD): New subsection.
1834
39b27f1e 18352012-07-22 Ales Nesrsta <starous@volny.cz>
1836
1837 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1838 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1839
a885261b
VS
18402012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1843 * util/grub.d/10_hurd.in: Add missing quoting.
1844 * util/grub.d/10_illumos.in: Likewise.
1845 * util/grub.d/10_kfreebsd.in: Likewise.
1846 * util/grub.d/10_linux.in: Likewise.
1847 * util/grub.d/20_linux_xen.in: Likewise.
1848
7bd29c01
VS
18492012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 New command `lsefi'.
1852
1853 * grub-core/Makefile.core.def (lsefi): New module.
1854 * grub-core/commands/efi/lsefi.c: New file.
1855 * include/grub/efi/api.h: Add more GUIDs.
1856
ac625d8f
VS
18572012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1860 (grub_bsd_elf32_hook): Likewise.
1861 (grub_bsd_elf64_size_hook): Likewise.
1862 (grub_bsd_elf64_hook): Likewise.
1863 (grub_bsd_load_elf): Likewise.
1864
e73bb801
VS
18652012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1868 if hash function is unavailable.
1869 (dec_stream_header): Likewise.
1870
e81db8b5
VS
18712012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1874 filter state.
1875
d187a1c3
VS
18762012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1877
1878 Fix coreboot compilation.
1879
1880 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1881 (grub_vga_text_init_real): ... this.
1882 (grub_vga_text_fini): Rename to ...
1883 (grub_vga_text_fini_real): ... this.
1884
91a05f64
VS
18852012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1888
6af96df7
VS
18892012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1890
1891 * grub-core/lib/legacy_parse.c: Support clear and testload.
1892
4d569e12
VS
18932012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1894
1895 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1896
073b57bb
VS
18972012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1898
1899 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1900
a706f4cc
VS
19012012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1902
1903 * grub-core/net/tftp.c (ack): Fix endianness problem.
1904 (tftp_receive): Likewise.
1905 Reported by: Michael Davidsaver.
1906
e7850aa9
VS
19072012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1910
19112012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1912
1913 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1914 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1915 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1916
35692881
VS
19172012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1920 efi_mmap_size.
1921 Reported by: Stuart Hayes.
1922
c35fc5bd
VS
19232012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1926
1927 * grub-core/Makefile.core.def (mda_text): New module.
1928 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1929 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1930 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1931 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1932 here.
1933 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1934 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1935 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1936 here.
1937 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1938 to ..
1939 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1940 ... here
1941 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1942 here.
1943 * grub-core/term/i386/vga_common.c: Removed.
1944 * include/grub/i386/vga_common.h: Likewise.
1945 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1946 (grub_vga_cr_bw_read): Likewise.
1947 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1948 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1949 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1950 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1951 grub_vga_cr_read/grub_vga_cr_write.
1952 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1953
5f91f701
VS
19542012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * configure.ac: Bump version to 2.00.
1957 * grub-core/normal/main.c (features): Add feature_200_final.
1958
0c4f85f6
VS
19592012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
19602012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1961
1962 * NEWS: Fix unclarity and language mistakes.
1963
f923ad22
VS
19642012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1967 additional size to 3 pages.
1968 Reported by: Stuart Hayes.
1969
d22029ba
VS
19702012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * NEWS: Add 2.00 entry.
1973
58eee08f
VS
19742012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1975
1976 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1977 put explicit "/" for empty path.
1978 (wildcard_expand): Improve dprintf.
1979
c59bdff7
VS
19802012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1983 it's equal to currnode. This can happen with "" symlink.
1984
5e6a440a
YB
19852012-06-27 Yves Blusseau <blusseau@zetam.org>
1986
1987 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1988 echo shell command by printf command.
1989
73a68bcb
VS
19902012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1993 the value returned by firmware is the maximal position, not diumension.
1994 (grub_terminfo_output_state): Use a more sane fallback.
1995
392a603b
VS
19962012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1997
1998 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1999
42d0867f
VS
20002012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2001
2002 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
2003 frequency to 150 MHz.
2004
489509f4
VS
20052012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2006
2007 Apple fixes.
2008
2009 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
2010 __APPLE_
2011 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
2012 definition.
2013 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
2014
9f3fc883
VS
20152012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 Handle slash in HFS label.
2018
2019 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
2020 (grub_hfs_dir): Tanslate slash.
2021 (grub_hfs_label): Don't translate slash.
2022
54853fd7
VS
20232012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2024
2025 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
2026 network protocol listing since it introduces problematic dependency on
2027 net module.
2028
4dc02ddf
VS
20292012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
2032
c50c867d
VS
20332012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 Init video early on yeeloong to avoid being rebooted by watchdog.
2036
2037 * grub-core/Makefile.am (gensm712): New target.
2038 (sm712_start.S): Likewise.
2039 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
2040 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
2041 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
2042 description.
2043 * include/grub/vga.h: Move registry definitions to...
2044 * include/grub/vgaregs.h: ... here.
2045
5f92c8a1
VS
20462012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
2049 signedness.
2050
e9e6f111
VS
20512012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2052
2053 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
2054 platforms with firmware disk drivers in the core.
2055
754ad9eb
VS
20562012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2057
2058 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
2059 informative verbose message.
2060 (read_lv): Handle 64-bit segment size.
2061
315654c2
VS
20622012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
2065
fb022c79
VS
20662012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
2069 character but still remove trainling spaces.
2070 (grub_fat_label): Ignore archive flag.
2071
8645f72c
VS
20722012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2073
2074 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
2075 cast between linux_kernel_header and linux_kernel_params.
2076
36498496
VS
20772012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
2080 type for size.
2081 (grub_raid6_recover_func_t): Likewise.
2082 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
2083 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2084
0b5ea6b8
VS
20852012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
2088
650cfcfe
GS
20892012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
2090
2091 Fix overflow.
2092
2093 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
2094 [__NetBSD__]: Add explicit cast before bitshift.
2095
8a4d6a44
VS
20962012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 * configure.ac: Bump to 2.00~rc1.
2099
2fb97ed3
VS
21002012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
2103 half of $a0.
2104
1fa097dc
VS
21052012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
21062012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
2107
2108 * docs/grub.texi: Fix search syntax.
2109 (Multi-boot manual config): Put msdos rather than GPT example.
2110 Grammar corrections.
2111
c890ba78
VS
21122012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
2115
0f92dca7
VS
21162012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
2119
3988c4a0
VS
21202012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
2123 message on double free. Put the value of magic in case of mismatch.
2124
9e86d4c5
VS
21252012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 Speed-up video on yeeloong.
2128
2129 * grub-core/video/sm712.c (framebuffer): Remove render_target and
2130 add cached_ptr.
2131 (grub_video_sm712_video_fini): Unmap cached_ptr.
2132 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
2133 (grub_video_sm712_set_active_render_target): Removed.
2134 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2135 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
2136 sync caches.
2137
ed24c312
VS
21382012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 Avoid flushing the same line multiple times on loongson.
2141
2142 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
2143 Step in 32 bytes and not 1 byte.
2144 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
2145 Likewise.
2146
d1718e7d
VS
21472012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2148
2149 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
2150 subvolumes.
2151
982f1909
VS
21522012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2153
2154 Implement flow control for http.
2155
2156 * grub-core/net/http.c (parse_line): Handle response 206.
2157 (http_receive): Stall if too many packets are in the queue.
2158 (http_establish): Fix range header.
2159 (http_seek): Fix double free.
2160 (http_close): Likewise.
2161 (http_packets_pulled): New function.
2162 (grub_http_protocol): Set http_seek
2163 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
2164 (ack_real): Set window depending on i_stall.
2165 (grub_net_send_tcp_packet): Likewise.
2166 (grub_net_tcp_stall): New function.
2167 (grub_net_tcp_unstall): Likewise.
2168 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
2169 (grub_net_tcp_unstall): Likewise.
2170
bd407d6e
VS
21712012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 * grub-core/net/tftp.c: Decrease stall to 50 packets.
2174
c7564b8e
VS
21752012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2176
2177 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
2178
a3706162
VS
21792012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 * tests/util/grub-shell.in: Fix a typo.
2182
b27069e0
VS
21832012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 Implement flow control for tftp.
2186
2187 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
2188 packets but stop only if stop condition is satisfied.
2189 (grub_net_fs_read_real): Call packets_pulled after real read. Use
2190 `stall' instead of `eof' as stop condition.
2191 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
2192 (http_err): Likewise.
2193 * grub-core/net/tftp.c (ack): Replace the first argument with data
2194 instead of socket.
2195 (tftp_receive): Stall if too many packets are in wait queue.
2196 (tftp_packets_pulled): New function.
2197 (grub_tftp_protocol): Set packets_pulled.
2198 * include/grub/net.h (grub_net_packets): New field count.
2199 (grub_net_put_packet): Increment count.
2200 (grub_net_remove_packet): Likewise.
2201 (grub_net_app_protocol): New field `packets_pulled'.
2202 (grub_net): New field `stall'.
2203
6b9cfac6
VS
22042012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
2207 sync part to handle them.
2208
f35abd81
VS
22092012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2210
2211 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
2212 * grub-core/net/drivers/ieee1275/ofnet.c
2213 (grub_ieee1275_net_config_real): Likewise.
2214
0e7ec820
VS
22152012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2216
2217 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
2218 the direct route for server/gateway.
2219
9d611a31
VS
22202012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2221
2222 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
2223 IP address to server name since we may not hame the DNS.
2224
418f45ab
VS
22252012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
2228 freeing random buffer on failure.
2229 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
2230
44a0efc1
VS
22312012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
2234
531e2241
VS
22352012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
2238 reserved bytes.
2239 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
2240 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
2241 Handle malloc error correctly.
2242
cde393c9
VS
22432012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
2246 blocks.
2247
538478d0
VS
22482012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
2251 increment.
2252
9b55efe0
VS
22532012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2254
2255 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
2256 none is explicitly specified.
2257
9eb832c3
VS
22582012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
2261 while reallocating.
2262
d6b7c7c9
VS
22632012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 Respect netmask from bootp/dhcp.
2266
2267 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2268 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2269 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2270 into ...
2271 (grub_net_add_ipv4_local): ... this.
2272 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2273 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2274 (grub_net_add_ipv4_local): New proto.
2275
67caf9eb
VS
22762012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2279 determining EFI memory map size.
2280
43657558
VS
22812012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2284
eb6d0dd3
VS
22852012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2286
2287 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2288 when looking for partition separator.
2289
31230544
VS
22902012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2293 Escape commas.
2294
918a2517
VS
22952012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2296
2297 Restructure FAT driver to avoid hook in label reading as it hits a
2298 GCC bug.
2299
2300 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2301 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2302 (grub_fat_iterate_dir): Split into ...
2303 (grub_fat_iterate_init): ... this, ...
2304 (grub_fat_iterate_fini): ... this, ...
2305 (grub_fat_iterate_dir_next): ... and this. All users updated.
2306
9f1d654e
VS
23072012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2308
2309 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2310 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2311 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2312 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2313 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2314 New fields last_key and last_key_time.
2315 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2316 extended key-esc into extended key-extended key.
2317
52f0f643
VS
23182012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2319
2320 Avoid unnecessary memcpy of whole video buffer.
2321
2322 * grub-core/video/fb/video_fb.c (dirty): New struct.
2323 (framebuffer): Add members current_dirty and previous_dirty.
2324 (dirty): New function.
2325 (grub_video_fb_fill_rect): Update dirty.
2326 (common_blitter): Likewise.
2327 (grub_video_fb_scroll): Likewise.
2328 (doublebuf_blit_update_screen): Copy only dirty part.
2329 (doublebuf_pageflipping_update_screen): Likewise.
2330 (grub_video_fb_doublebuf_blit_init): Init dirty.
2331 (doublebuf_pageflipping_init): Likewise.
2332 (grub_video_fb_setup): Likewise.
2333
e169a180
VS
23342012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2335
2336 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2337 poll rate.
2338
48556879
VS
23392012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 Fix wildcard regexp dot and other special characters handling.
2342 Reported by: Robert Mabee.
2343
2344 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2345 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2346 (split_path): Trigger expansion on '?'.
2347 (unescape): New function.
2348 (wildcard_expand): Unescape parts copied without globbing.
2349 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2350 (grub_script_arglist_to_argv): Don't unescape expansions.
2351
0494408e
VS
23522012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 * include/grub/net.h (grub_net_card): New member txbufsize.
2355 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2356 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2357 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2358 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2359 txbufsize.
2360 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2361 compatible property to check for macs. Set
2362 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2363 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2364 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2365 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2366 (send_card_buffer): Use txbuf.
2367 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2368 nested function out of the parent while on it.
2369
cc35fe8f
VS
23702012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2373 presence check.
2374 (grub_ieee1275_net_config_real): Fix config pointer.
2375
970a0a09
VS
23762012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2379 filename parsing to non-block devices.
2380
3e19bf87
VS
23812012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2384
c62d1a0c
VS
23852012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2386
2387 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2388 All users updated.
2389
ef76bec3
VS
23902012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2391
2392 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2393 UUID search command even if hints probing failed.
2394
23952012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
2396
2397 * po/POTFILES.in: Regenerated.
2398
70aaf305
VS
23992012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2400
2401 Speed-up video on fuloong.
2402
2403 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2404 New function.
2405 (grub_pci_device_unmap_range): Handle non-cached address.
2406 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2407 add direct_ptr.
2408 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2409 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2410 (grub_video_sis315pro_set_active_render_target): Removed.
2411 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2412 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2413 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2414 sync caches.
2415 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2416 New proto.
2417
10400f0b
VS
24182012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * docs/grub.texi (Multi-boot manual config): New section.
2421
ba67e2c6
VS
24222012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2423
2424 Avoid slow read-back from VRAM.
2425
2426 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2427 Move from here ...
2428 * grub-core/video/fb/video_fb.c
2429 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2430 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2431 (front_target): Remove front_target. Add pages.
2432 (grub_video_fb_init): Skip setting front_pages.
2433 (grub_video_fb_fini): Likewise.
2434 (doublebuf_blit_update_screen): Use pages.
2435 (grub_video_fb_doublebuf_blit_init): Likewise.
2436 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2437 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2438 (grub_video_fb_setup): Prefer doublebuffing.
2439
377c98cb
VS
24402012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2441
2442 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2443 gzio.
2444
eac49cff
VS
24452012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2446
2447 Add loongson tests.
2448
2449 * tests/util/grub-shell.in: Handle loongson.
2450 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2451 drivers.
2452 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2453 Reboot instead of shutdown if REBOOT is defined.
2454
0321415e
VS
24552012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2458 sized ports since unlike on real hardware qemu supports only 32-bit
2459 regs.
2460
3f2bdd8f
VS
24612012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2464 * util/grub-mkrescue.in: Handle loongson.
2465
29a049c9
VS
24662012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2469 Set is_part appropriately.
2470 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2471 names. Canonicalize partition without full disk.
2472
4abde346
VS
24732012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 Revert usb-quiesce since it's wrong.
2476
2477 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2478 (grub_ofdisk_init): Don't do quiesce.
2479
61f1d93b
VS
24802012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2483 PowerMac workaround to Xserves as well.
2484 Information supplied by: Benjamin Herrenschmidt.
2485
a09eb541
VS
24862012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2487
2488 Don't assume that beginning address is also the entry point on ppc.
2489
2490 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2491 (grub_linux_boot): Use linux_entry.
2492 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2493 (grub_linux_load64): Likewise.
2494
505b3c9b
VS
24952012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2498
cbe0b4ef
VS
24992012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2502 needlessly lose the console.
2503
3006e981
VS
25042012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2505
2506 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2507 space.
2508
4e5a96b0
VS
25092012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2510
7da036bb
VS
2511 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2512 than current grub_get_rtc() not implemented when booted with
2513 coreboot without TSC.
2514
2515 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2516 Add machine/time.h to kernel headers on loongson.
2517 * grub-core/Makefile.core.def (kernel): Remove
2518 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2519 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2520 (grub_get_rtc): Likewise.
2521 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2522 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2523 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2524 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2525 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2526 rather than installing known non-working time source.
2527 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2528 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2529 * include/grub/time.h: Don't include machine/time.h.
2530 * include/grub/efi/time.h: Removed.
2531 * include/grub/i386/efi/time.h: Likewise.
2532 * include/grub/i386/ieee1275/time.h: Likewise.
2533 * include/grub/powerpc/ieee1275/time.h: Likewise.
2534 * include/grub/sparc64/ieee1275/time.h: Likewise.
2535 * include/grub/x86_64/efi/time.h: Likewise.
2536
25372012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2538
2539 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
2540
2541 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2542 value.
2543 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2544 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2545 with dotless variants when any combining above is present.
2546
5561c22d
VS
25472012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2550 text and not binary.
2551
96f7e60e
VS
25522012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 Stop polling as soon as we have the packet we were waiting for.
2555
2556 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2557 All users updated.
2558 * grub-core/net/arp.c (have_pending): New var.
2559 (pending_req): Likewise.
2560 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2561 stop indicator.
2562 (grub_net_arp_receive): Set have_pending.
2563 * grub-core/net/dns.c (recv_data): New field stop.
2564 (recv_hook): Set stop.
2565 (grub_net_dns_lookup): Init stop and use as stop condition.
2566 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2567 condition.
2568 * grub-core/net/net.c (grub_net_poll_cards): New argument
2569 stop_condition. Stop when it goes true.
2570 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2571 indicator.
2572 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2573
3e747239
VS
25742012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 Keep TX and RX buffers on EFI rather than always allocate new ones.
2577
2578 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2579 card. All users updated.
2580 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2581 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2582 (get_card_packet): Likewise.
2583 (grub_efinet_findcards): Init new fields.
2584
f695e99a
VS
25852012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2586
2587 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2588 compilation error on sparc64.
2589
9e5e66d1
VS
25902012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 Use ITC on IA64 rather than broken routine based on daytime.
2593
2594 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2595 ia64.
2596 (grub_get_rtc) [__ia64__]: Likewise.
2597 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2598 (get_itc): New function.
2599 (grub_rtc_get_time_ms): Likewise.
2600 (grub_machine_init): Calibrate ITC.
2601 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2602 Keep only on non-ia64. Don't export since it's broken and used only
2603 if TSC is unavailable.
2604
a1767404
VS
26052012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2606
2607 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2608 even if it's used.
2609 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2610 Skip if parent is unused.
2611
34b2bced
VS
26122012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2615
5e619f40
VS
26162012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 Fix wildcard escaping.
2619
2620 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2621 * grub-core/script/execute.c (wildcard_escape): .. to here.
2622 Don't escape dot.
2623 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2624 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2625 Don't escape dot.
2626 * grub-core/script/execute.c (gettext_append): Always escape.
2627 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2628 * grub-core/script/yylex.l: Don't cut away the escaping.
2629 * tests/grub_script_echo1.in: Add tests with wildcard.
2630
c8ca5855
VS
26312012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2632
2633 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2634 (ftdi_hw_configure): Likewise.
2635 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2636 define.
2637 (real_config): Handle 1.5 stop bits.
2638 (pl2303_hw_configure): Likewise.
2639
7183452c
VS
26402012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2641
2642 * Makefile.am: Add ppc linux bootcheck.
2643 * grub-core/tests/boot/linux-ppc.cfg: New file.
2644 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2645
f57c84cd
VS
26462012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2647
2648 * tests/grub_script_expansion.in: Skip network protocols.
2649
ecfc6207
VS
26502012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2653
8d03d284
VS
26542012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2657 --rom-directory.
2658 Add -graft-points.
2659
61c42af0
VS
26602012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2661
2662 ESCC serial driver for conducting sautomated tests in qemu.
2663 Not tested on real hardware.
2664
2665 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2666 * grub-core/term/ieee1275/escc.c: New file.
2667 * grub-core/Makefile.core.def (escc): New module.
2668
08fd1291
VS
26692012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2672 invalid on error.
2673 (serial_hw_fetch): Don't read invalid handle.
2674 (serial_hw_put): Don't write into invalid handle.
2675
08dafeea
VS
26762012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 Add a 1.5 stop bits value.
2679
2680 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2681 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2682 GRUB_SERIAL_STOP_BITS_1_5.
2683
9068fdcf
VS
26842012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2687 value rather than let it uninited.
2688
f4d5820f
VS
26892012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * grub-core/commands/wildcard.c (+check_file): New function.
2692 (wildcard_expand): Don't expand to non-existing files, expand with
2693 suffix and not attempt to expand if not needed.
2694
3d2de9a7
VS
26952012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2696
2697 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2698 out of partitions containing other partitions.
2699
c5c81ff9
VS
27002012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2701
2702 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2703 on some qemu versions with GRUB.
2704
2705 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2706 define.
2707 (grub_openbsd_bootarg_pcibios): New struct.
2708 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2709 Add PCIINFO.
2710
08a14e0b
VS
27112012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * tests/util/grub-shell.in: Trim firmware output on EFI.
2714
cede3ca3
VS
27152012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2718 and coreboot since it's already in kernel.
2719
558d3a60
VS
27202012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2723 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2724 to here. New return value start. All users updated.
2725 Recursively scan linear mappings.
2726 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2727 proto.
2728 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2729 Use grub_util_get_dm_node_linear_info.
2730 * util/getroot.c (convert_system_partition_to_system_disk): Use
2731 grub_util_info rather than grub_dprintf.
2732 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2733
60fde14d
VS
27342012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2735
2736 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2737
2738 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2739 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2740
24bd8838
VS
27412012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 * include/grub/types.h (grub_set_unaligned64): New function.
2744 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2745 (setup): Likewise.
2746
7bc06a49
VS
27472012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2748
2749 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2750 (grub_ofdisk_fini): Quiesce USB devices.
2751
49cea015
VS
27522012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2753
2754 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2755 caches.
2756
8dcbe03b
VS
27572012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2760
5b258735
VS
27612012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2762
2763 * grub-core/disk/pata.c (grub_pata_pio_read)
2764 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2765 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2766
37ba07eb
VS
27672012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 Extend automated tests to qemu-mips.
2770
2771 * Makefile.am: reorganise tests and enable qemu-mips.
2772 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2773 * grub-core/tests/boot/linux.init-mips.S: New file.
2774 * tests/partmap_test.in: Handle ata0 disks.
2775 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2776 non-pc i386.
2777
070038f8
VS
27782012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2779
2780 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2781 ia64.
2782 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2783 quotes while on it.
2784
004be2cd
VS
27852012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2786
2787 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2788 (grub_halt): Likewise.
2789 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2790
b1622487
VS
27912012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 * grub-core/term/serial.c (grub_serial_register)
2794 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2795 the behaviour in line with x86 platforms.
2796
b7b4ab33
VS
27972012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2798
2799 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2800 (grub_ata_strncpy): Likewise.
2801 (grub_ata_identify): Add missing byteswaps.
2802
5e3535ae
VS
28032012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2804
2805 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2806 byte-swap.
2807 (screen_read_char): Likewise.
2808 (grub_vga_text_cls): Likewise.
2809
c21b17e6
VS
28102012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2811
2812 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2813 filenames.
2814 (make_file_path): Likewise.
2815
bf293dec
VS
28162012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2817
2818 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2819 machines.
2820 Tested by: Paulo Flabiano Smorigo.
2821 Crucial information about API supplied by: Coleen <Last name unknown>.
2822 Reviewed by: Coleen <Last name unknown>.
2823
81f6ef0e
VS
28242012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2825
2826 * util/grub-mkimage.c: Disable -Wcast-align.
2827
7284143a
VS
28282012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2831 as they are fatal.
2832
b99f3e00
VS
28332012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2834
2835 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2836
944f752d
VS
28372012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * util/grub-probe.c (escape_of_path): Fix double free.
2840
6cce6f38
VS
28412012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/commands/videoinfo.c (hook): Show pitch.
2844
1e1eb50e
VS
28452012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2846
2847 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2848
1c715b5a
VS
28492012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2852 (probe): Add ieee1275 to OFW devices.
2853
007ae52d
VS
28542012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2855
2856 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2857
4557a36d
VS
28582012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 Handle IBM OFW path.
2861
2862 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2863 available.
2864 (of_path_of_scsi): Handle vdevice.
2865
efbeefe9
VS
28662012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2869 Allocate in multiples of 16 to avoid adding a few bytes free region the
2870 windows bugs upon.
2871
15a940bb
VS
28722012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2875 Allocate in multiples of 16 to avoid adding a few bytes free region the
2876 windows bugs upon.
2877 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2878
6e5efd60
VS
28792012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2880
2881 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2882 resolutions.
2883 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2884 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2885
0d3d137e
IS
28862012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2887
2888 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2889
45dbe300
VS
28902012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2891
2892 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2893 resulted in \\ at the end of the line.
2894
6d8db947
VS
28952012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2896
2897 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2898 (grub_parser_cmdline_state): Likewise.
2899 (grub_parser_split_cmdline): Likewise.
2900
de89d338
VS
29012012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2902
2903 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2904 /dev/root and /dev/dm-*.
2905
00d41dee
VS
29062012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2909 fix partially stale display.
2910
f95d1f11
VS
29112012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2914 substraction.
2915
6297e197
VS
29162012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2917
2918 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2919 Fix MBR remapping workaround.
2920 (grub_util_biosdisk_read) [__linux__]: Likewise.
2921
8a7ecad3
VS
29222012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2923
2924 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2925
2b34f944
VS
29262012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * configure.ac: Bump to beta6.
2929
684aef11
CW
29302012-05-31 Christer Weinigel <christer@weinigel.se>
2931
2932 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2933
05b0bb91
VS
29342012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2935
2936 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2937 (grub_cmd_linux): Likewise.
2938
bda36bfa
CW
29392012-05-31 Christer Weinigel <christer@weinigel.se>
2940
2941 Fix EHCI low-speed.
2942
2943 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2944 (GRUB_EHCI_MULT_TWO): Likewise.
2945 (GRUB_EHCI_MULT_THREE): Likewise.
2946 (GRUB_EHCI_CMASK_MASK): New enum value.
2947 (GRUB_EHCI_SMASK_MASK): Likewise.
2948 (GRUB_EHCI_CMASK_OFF): Likewise.
2949 (GRUB_EHCI_SMASK_OFF): Likewise.
2950 (grub_ehci_pci_iter): Enable periodic schedule.
2951 (grub_ehci_parse_notrun): Likewise.
2952 (grub_ehci_restore_hw): Likewise.
2953 (grub_ehci_setup_qh): Set flags for low speed transfers.
2954 (grub_ehci_find_qh): Use periodic list for low speed.
2955 (grub_ehci_setup_transfer): Check periodic queue as well.
2956 (grub_ehci_check_transfer): Likewise.
2957 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2958
e12bcb1c
PFS
29592012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2960
2961 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2962 parameter is used.
2963
bcc75fb3
PJ
29642012-05-31 Peter Jones <pjones@redhat.com>
2965
2966 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2967 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2968 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2969
f19cb95e
VS
29702012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2971
2972 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2973 uninited variable. Allocate at least setup_sects.
2974
a4e5ca80
VS
29752012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2976
2977 Fix handling of EFI with big memory maps.
2978
2979 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2980 (real_mode_mem): Likewise.
2981 (real_mode_target): Likewise.
2982 (real_mode_pages): Likewise.
2983 (prot_mode_pages): Likewise.
2984 (linux_params): New var.
2985 (linux_cmdline): Likewise.
2986 (free_pages): Don't set real mode variables.
2987 (allocate_pages): Don't allocate real mode memory.
2988 (grub_e820_add_region): Remove the limit.
2989 (grub_linux_boot): Allocate and copy real mode memory.
2990 (grub_linux_unload): Free linux_cmdline.
2991 (grub_cmd_linux): Use temporary storage for parameters.
2992 (grub_cmd_initrd): Likewise.
2993 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2994 (linux_kernel_params): Make it 1K big.
2995
ddb73558
VS
29962012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * Makefile.util.def: Remove -Wno-format.
2999 * grub-core/Makefile.core.def: Likewise.
3000
1c4afb60
VS
30012012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * tests/cmp_unit_test.c: Add missing failure message.
3004 * tests/example_unit_test.c: Likewise.
3005 * tests/printf_unit_test.c: Likewise.
3006
941e3a6d
VS
30072012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3008
3009 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
3010 relaxation of protective MBR requirements.
3011
b105df76
VS
30122012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3013
3014 * configure.ac: Add condition for COND_HOST_XNU.
3015 * Makefile.util.def (10_xnu): New script.
3016 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
3017
84e1569e
VS
30182012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
3021 objconv bug.
3022
130c0f77
VS
30232012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
3026 Binary on other platforms stays identical.
3027
6fd0b143
VS
30282012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3029
3030 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
3031 Apple.
3032
0af1751d
VS
30332012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
3036
176d5f7d
VS
30372012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3038
3039 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
3040 rather than defining size_t ourselves to avoid conflict.
3041
7de5e20a
VS
30422012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
3045 initialisation to avoid __bzero reference.
3046
f7143efe
VS
30472012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
3050 version.
3051 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
3052 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
3053 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
3054 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
3055 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
3056
e6ad0555
VS
30572012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
3060 * grub-core/kern/misc.c: Likewise.
3061 * grub-core/loader/i386/xnu.c: Likewise.
3062 * include/grub/i386/tsc.h: Likewise.
3063 * include/grub/symbol.h: Likewise.
3064
4a5a3c4a
VS
30652012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
3068 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
3069 on older compiler.
3070
037f6d90
VS
30712012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3072
3073 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3074 Implement Apple flavour.
3075 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
3076
f7194551
VS
30772012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
3080 (memmove) [__APPLE__]: Likewise.
3081 (memcpy) [__APPLE__]: Likewise.
3082 (memset) [__APPLE__]: Likewise.
3083 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
3084 (memmove) [__APPLE__]: Likewise.
3085 (memcpy) [__APPLE__]: Likewise.
3086 (memset) [__APPLE__]: Likewise.
3087
85a730ca
VS
30882012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
3091 dependency discard.
3092
40e80b94
VS
30932012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * grub-core/normal/main.c (read_config_file): Provide config_file and
3096 config_directory.
3097 * util/grub.d/41_custom.in: Use config_directoy when available.
3098
9da59c32
VS
30992012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
3102 (grub_bfs_dir): Likewise.
3103
2787ae53
PJ
31042012-05-27 Peter Jones <pjones@redhat.com>
3105
3106 The old code gives arguments to a printf function which can't work
3107 correctly, and the compiler complains.
3108
3109 * grub-core/tests/example_functional_test.c (example_test): Add
3110 missing text.
3111 * grub-core/tests/lib/test.c (add_failure): Rewrite.
3112 * include/grub/test.h (grub_test_assert_helper): New declaration.
3113 (grub_test_assert): Use grub_test_assert_helper.
3114
526ef13d
VS
31152012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
3118 (exfctest): ... this to avoid overlong filenames.
3119 All users updated.
3120
20dd511c
VS
31212012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 Handle "." and ".." on squashfs.
3124
3125 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
3126 Make inode numbers into stack.
3127 (grub_squash_read_symlink): Use stack.
3128 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
3129 (make_root_node): Fill stack.
3130 (grub_squash_open): Use stack.
3131
1d80c62a
VS
31322012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3133
3134 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
3135 freeing.
3136
d336f652
VS
31372012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3138
3139 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
3140 stderr on test calls.
3141
8b43f587
VS
31422012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
3145
80a3dc3f
VS
31462012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
3149
47e297d4
VS
31502012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3151
3152 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
3153 "..".
3154
df042ccb
VS
31552012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
3158 (grub_hfsplus_iterate_dir): Add "." and "..".
3159
fc977f48
VS
31602012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * grub-core/fs/cpio.c (canonicalize): Handle "..".
3163 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
3164
f3250e5f
VS
31652012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3166
3167 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
3168 (find_path): Handle "." and "..".
3169
fd8ed4c5
VS
31702012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3171
3172 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
3173 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
3174 (grub_affs_iterate_dir): Handle hardlinks.
3175
4ce776d2
MG
31762012-05-26 Matthew Garrett <mjg@redhat.com>
3177
3178 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
3179 (grub_efi_console_fini): Likewise.
3180 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
3181 (grub_video_gop_fill_mode_info): Rename to ...
3182 (grub_video_gop_fill_real_mode_info): ... this.
3183 (grub_video_gop_fill_mode_info): New function.
3184 (grub_video_gop_setup): Setup double framebuffer.
3185 (grub_video_gop_get_info_and_fini): Use original framebuffer.
3186 Free offscreen.
3187 (grub_video_gop_swap_buffers): Copy framebuffer.
3188 (grub_video_gop_fini): Free offscreen buffer.
3189 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
3190 New enum.
3191 (grub_efi_gop_blt_pixel): New struct.
3192
683031ba
VS
31932012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 * gentpl.py: Remove error disabling for objconv.
3196
c2deb798
VS
31972012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3198
3199 * configure.ac: Remove -Wunitialized as it's not available on older
3200 compilers.
3201
32022012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
3203
3204 Fix extent overflow comparator.
3205
3206 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
3207 (grub_hfsplus_read_block): Set type.
3208 (grub_hfsplus_cmp_extkey): Compare type.
3209
d6b1fd36
VS
32102012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
3211
3212 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
3213
0a9aa0f6
VS
32142012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3215
3216 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
3217 than 0.
3218
8360e159
VS
32192012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3220
3221 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
3222 (dejavu_bold_14.pf2): New target.
3223
501b9e4b
VS
32242012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * configure.ac: Fix djvu font detection.
3227
7026b0e2
VS
32282012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
3231 ext* instead of ext2.
3232
c2a51ade
VS
32332012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
3236 name with \0.
3237
8f803a5d
JU
32382012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
3239
3240 * docs/grub-dev.texi: Remove dot from .png.
3241
13c6353f
VS
32422012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
3245 protective entry in any slot.
3246 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
3247 if protective entry is found in any slot.
3248
3249 Protective entry in non-first slot make no sense but is a widespread
3250 brain damage.
3251
4cf6be1b
VS
32522012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3253
3254 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
3255
937d1c44
VS
32562012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
3259 with old reiserfs.
3260 (grub_reiserfs_open): Don't free root.
3261
021d90ec
VS
32622012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3263
3264 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
3265 after freeing for safety.
3266
967b2b64
VS
32672012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3270 Reported by: Jordan Uggla.
3271
34274d02
JU
32722012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3273
967b2b64
VS
3274 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3275 actual implementation. Specifically, clarify that the grub menu will
3276 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3277 passed.
34274d02 3278
dcaaae9d
BH
32792012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3280
3281 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3282 of r0.
3283
7086ad52
VS
32842012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3285
3286 Remove unjustified hard dependency of normal.mod on gfxterm.
3287
3288 * include/grub/term.h (grub_term_output): New member fullscreen.
3289 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3290 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3291 (grub_gfxterm): Set .fullscreen.
3292 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3293 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3294
37ed2c9b
VS
32952012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3298 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 3299 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 3300
a4469c88
VS
33012012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3304
4e461486
VS
33052012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3308 a bad FS.
3309
aa78f5c4
VS
33102012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3313 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3314
197626b5
VS
33152012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3316
3317 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3318 (grub_jfs_mount): Fill caseins.
3319 (grub_jfs_find_file): Respect caseins.
3320
8ad3f28c
VS
33212012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3322
3323 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3324 through UTF-16.
3325
0c6c324e
VS
33262012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3327
3328 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3329 New argument origpath. All users updated.
3330
c6666ba6
VS
33312012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3334 (read_attr): Ensure that we read start of possibly compressed block.
3335
e28e5fe5
VS
33362012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3337
3338 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3339 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3340 All users updated.
3341
5fc23ab2
VS
33422012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3343
3344 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3345 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3346 (dejavu.pf2): Replace with ...
3347 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3348 this.
3349
79dbc21c
VS
33502012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 * util/grub.d/20_linux_xen.in: Add missing line.
3353
d2fcfb0c
VS
33542012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3357 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3358 (grub_utf16_to_utf8): Likewise.
3359
5560e9d6
VS
33602012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3363 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3364 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3365 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3366 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3367 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3368
33692012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
3370
3371 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3372 a bad FS.
3373
5560e9d6 33742012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
3375
3376 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3377 (grub_udf_read_symlink): Handle read_string failure.
3378
5eae3175
VS
33792012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3380
3381 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3382 comment.
3383
c1ad82db
VS
33842012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3385
3386 Fix handling of UDF symlinks.
3387
3388 * grub-core/fs/udf.c (read_string): New argument outbuf.
3389 All users updated.
3390 (grub_ufs_read_symlink): Rename to ...
3391 (grub_udf_read_symlink): ... this. All users updated.
3392 Handle symlinks with more than one component.
3393
33eca6e0
VS
33942012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3395
3396 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3397 symlinks. Replace leading colon with a slash.
3398
57f4a70b
VS
33992012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3402 filename.
3403
38c8ee20
VS
34042012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3407 match in inner node.
3408
2e57f28f
VS
34092012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3412 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3413 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3414 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3415 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3416 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3417 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3418 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3419 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3420
fe8c2f11
VS
34212012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3422
3423 Use grub-probe and not cmp to check that disk is empty.
3424
3425 * util/grub-install.in: Use grub-probe for zero-check.
3426 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3427 (probe): Handle PRINT_ZERO_CHECK.
3428 (argp_parser): Handle -t zero_check.
3429
34302012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
3431
3432 Flush block cache on adding disk to device map.
3433
3434 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3435 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3436 adding.
3437 (read_device_map): Likewise.
3438 (open_device): Flush on opening.
3439
690434e8
VS
34402012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3443 (handle_symlink): Fix off-by-one error.
3444 Canonicalize the target.
3445 (grub_cpio_dir): Canonicalize the name.
3446 Fix memory leak.
3447 Set directory.
3448 (grub_cpio_open): Canonicalize the name.
3449
742d2be6
VS
34502012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3453 handling.
3454
3244fe96
VS
34552012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3458 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3459
8aeb1837
VS
34602012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3463 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 3464 All users updated.
8aeb1837 3465
9133fd05
VS
34662012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3467
3468 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3469 counterpart.
3470
6d521c5b
VS
34712012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3472
3473 Fix UFS1 big file support.
3474
3475 * grub-core/fs/ufs.c (INODE): Removed.
3476 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3477 64-bit.
3478 (INODE_MODE): Simplify.
3479 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3480 (grub_ufs_lookup_symlink): Don't use INODE.
3481
21b82e17
VS
34822012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3485
3486 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3487 (grub_minix_data): Replace log_block_size with block_size.
3488 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3489 (grub_minix_mount): Fill block_size.
3490
34912012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
3492
3493 * configure.ac: Bump to beta5.
3494
f417ed04
VS
34952012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3496
3497 Fix wrapped HFS+ handling.
3498
3499 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3500 blocks_start. All users updated.
3501 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3502 wrapping offset.
3503 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3504
607d282b
VS
35052012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 Fix long symlinks on reiserfs.
3508
3509 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3510 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3511 (grub_reiserfs_iterate_dir): Save size for non-directories.
3512 (grub_reiserfs_open): Don't reread stat block as we already know the
3513 size.
3514 (grub_reiserfs_read): Split into...
3515 (grub_reiserfs_read_real): ... and ...
3516 (grub_reiserfs_read): ...this.
3517
ae16024d
VS
35182012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 Fix non-indexed JFS.
3521
3522 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3523 (grub_jfs_data): New field namecomponentlen.
3524 (grub_jfs_mount): Fill namecomponentlen.
3525 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3526
eea1e26e
VS
35272012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3530 * tests/grub_script_echo1.in: Add tests.
3531
df760f77
VS
35322012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * util/grub-install.in: Ignore empty devicetree directory.
3535
5efb817d
B
35362012-05-08 Bean <bean123ch@gmail.com>
3537
3538 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3539 All users updated.
3540 (free_rsm): Free header as well.
3541 (free_old_fragments): Fix memory leak.
3542 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3543 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3544 (destroy_pq): Likewise.
3545 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3546
668ea6d2
VS
35472012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3550 resulting hash as a precaution.
3551
1739b1fe
VS
35522012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3553
3554 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3555 '_' in variable names.
3556 * grub-core/net/net.c (grub_net_network_level_interface_register):
3557 Likewise.
3558
6ae485aa
VS
35592012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3560
3561 Fix AFFS with non-512B blocks.
3562
3563 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3564 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3565 (grub_affs_data): Replace blocksize with log_blocksize.
3566 (grub_affs_read_block): Fix non-512B blocks.
3567 (grub_affs_read_symlink): Likewise.
3568 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3569 (grub_affs_read): Fix non-512B blocks.
3570 (grub_affs_label): Likewise.
3571 (grub_affs_mtime): Likewise.
3572 (grub_affs_mount): Fix block detection routine.
3573
d20fab84
VS
35742012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 Add filesystem mtime to AFFS.
3577
3578 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3579 (aftime2ctime): New function.
3580 (grub_affs_dir): Use aftime2ctime.
3581 (grub_affs_label): Fix return value.
3582 (grub_affs_mtime): New function.
3583 (grub_affs_fs): Add mtime.
3584
e87b10f5
VS
35852012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3586
3587 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3588 UTF-8.
3589
7dceec9b
VS
35902012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3591
3592 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3593 UTF-8.
3594
2f48221f
VS
35952012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3596
3597 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3598
dacd85cf
VS
35992012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3600
3601 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3602 flags.
3603 (FLAGS_CASE_SENSITIVE): New enum value.
3604 (cache_entry): New struct.
3605 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3606 cache_size and cache.
3607 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3608 Add log_blocksize and fshelp_flags.
3609 (grub_sfs_read_extent): Handle non-512 blocks.
3610 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3611 (grub_sfs_read_file): Handle non-512 blocks.
3612 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3613 fshelp_flags.
3614 (grub_sfs_read_symlink): Handle non-512 blocks.
3615 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3616 (grub_sfs_dir): Free cache.
3617 (grub_sfs_close): Likewise.
3618
24e9a854
VS
36192012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3622 filesystems.
3623
62ace64d
VS
36242012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3625
3626 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3627
83b2e89c
VS
36282012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3631
75ccaea3
VS
36322012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3635 (grub_sfs_read_extent): Likewise.
3636 (grub_sfs_read_block): Likewise.
3637 (grub_sfs_mount): Likewise.
3638 (grub_sfs_iterate_dir): Likewise.
3639 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3640 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3641
1b8463f2
VS
36422012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 Fix errors on compressed NTFS with 512B clusters.
3645
3646 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3647 types.
3648 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3649 not 0.
3650 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3651 Relax check for inline extents.
3652 (ntfscomp): Return correct -1 on error and not 0.
3653
4f8e368f
VS
36542012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * util/grub-install.in: Fix handling of prefix containing spaces.
3657
6f5d5ee8
VS
36582012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3659
3660 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3661 (grub_squash_read_data): Fix offset byte-swapping.
3662
ce41ab7a
VS
36632012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3666 per common usage and preffered in several parts of code.
3667 (grub_memcmp): Likewise.
3668 (grub_strncmp): Likewise.
3669 * include/grub/misc.h (grub_strcasecmp): Likewise.
3670 (grub_strncasecmp): Likewise.
3671 * Makefile.util.def (cmp_test): New test.
3672 (grub_script_strcmp): Likewise.
3673 * tests/cmp_unit_test.c: New file.
3674 * tests/grub_script_strcmp.in: Likewise.
3675 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3676
49717bf4
VS
36772012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * include/grub/pci.h: Move enums into no-asm part.
3680
0a308f64
VS
36812012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3684
1796965f
ST
36852012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3686
3687 * util/getroot.c (find_hurd_root_device): Try to make error message
3688 and comments to translators clearer.
3689
4e9b2819
VS
36902012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3693
076aeb50
VS
36942012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3697 btrfs.
3698
19424d94
VS
36992012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 * docs/grub.cfg: Update.
3702
ebb73076
VS
37032012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * docs/grub.texi (PXE): Remove not present variables.
3706
9a1b669c
VS
37072012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * grub-core/net/net.c (defserver_set_env): New function.
3710 (defserver_get_env): Likewise.
3711 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3712
d38bf7d3
VS
37132012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3714
3715 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3716 entries.
3717
37182012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
3719
3720 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3721 * grub-core/kern/emu/hostdisk.c: Likewise.
3722
e5e4ca48
ST
37232012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3724
3725 Handle hurd userspace partitions.
3726
3727 * util/getroot.c (find_hurd_root_device): New function.
3728 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3729
56bb5dd5
VS
37302012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3733 names.
3734 Reported by: Bastian Blank.
3735
9e8bc27a
VS
37362012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3739 crossing page boundary.
3740
aa01499d
VS
37412012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 Fix B-tree search in BFS, especially in presence of non-ASCII
3744 characters.
3745
3746 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3747 (find_in_b_tree): Use standard bsearch + btree algorithm.
3748
57006035
VS
37492012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3750
3751 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3752 and so on.
3753
9d34bb85
MG
37542012-05-03 Matthew Garrett <mjg@redhat.com>
37552012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 Suspend broadcom cards in order to stop their DMA.
3758
3759 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3760 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3761 (pci): Don't build on x86 EFI.
3762 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3763 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3764 New function.
3765 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3766 stop_broadcom if running on EFI.
3767 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3768 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3769 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3770 (grub_pci_find_capability): New proto.
3771
01aab997
VS
37722012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * docs/grub.texi: Remove dot from the extension as it apparently
3775 doesn't work with some makeinfo versions.
3776
fbd8dca6
VS
37772012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3780 with GRUB expectance.
3781
dab797f4
VS
37822012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3785
1516bfb4
VS
37862012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3789 zero after directory block since last entry may be not 0-terminated if
3790 it ends on block boundary. Use continue instead of if spanning whole
3791 loop.
3792
a3a0eace
VS
37932012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3794
3795 Support 4K sectors UDF inline files.
3796
3797 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3798 (grub_udf_extended_file_entry): Likewise.
3799 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3800 All users updated.
3801 (get_fshelp_size): New function.
3802 (grub_udf_read_icb): Read whole block.
3803 (grub_udf_iterate_dir): Likewise.
3804 (grub_udf_dir): Likewise.
3805 (grub_udf_open): Likewise.
3806
c82f16c1
VS
38072012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3808
3809 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3810
59fd2aac
VS
38112012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3812
3813 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3814 inline symlinks in addition to workaround.
3815
3b4afb4d
VS
38162012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3817
3818 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3819
f45c794a
VS
38202012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3823
f25cecbd
VS
38242012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3827
bb9a34e8
VS
38282012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 Fix reiserfs big seek times.
3831
3832 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3833 exact. All users updated.
3834 (grub_reiserfs_read): Use nearest btree search for seeking.
3835 Fix return value on error.
3836
dc478aea
VS
38372012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3840 entries.
3841 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3842 * docs/grub.texi: Update menuentry description.
3843
8db10f47
VS
38442012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3847 crash when embedding onto filesystem.
3848
bcb288ed
VS
38492012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3852 name.
3853
a626fdd7
VS
38542012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3857
b2f68477
VS
38582012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3859
3860 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3861 commit.
3862
ba15b2af
B
38632012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
38642012-05-01 Bean <bean123ch@gmail.com>
3865
3866 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3867
a188012e
VS
38682012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3871 Special behaviour for len = 0 to read whole file isn't used anywhere and
3872 can cause buffer ovewrflows in several places.
3873
f0a53ed2
VS
38742012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3877
5ed554f0
VS
38782012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3879
3880 Handle RAIDZ on non-512B sectors.
3881
3882 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3883 max_children_ashift.
3884 (fill_vdev_info_real): Fill max_children_ashift.
3885 (read_device): Use max_children_ashift.
3886
ddc58357
VS
38872012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3890
e3282399
VS
38912012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3894 disk names.
3895 * docs/grub.texi: Update device.map parts.
3896
ee618bd4
VS
38972012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3898
3899 Don't scan into non-diskfilter devices having diskfilter names.
3900
3901 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3902 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3903 handling.
3904 (scan_disk_hook): New function.
3905
bdf88864
B
39062012-04-29 Bean <bean123ch@gmail.com>
3907
3908 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3909 allocation.
3910
32745f51
MK
39112012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3912
3913 * configure.ac: Detect starfield theme font path
3914 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3915
bc95c8c0
VS
39162012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3917
3918 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3919 geometry on serial consoles.
3920
147fbcab
VS
39212012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3922
3923 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3924 because of network consoles.
3925
0f42c889
VS
39262012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3929 handling.
3930
4a3594c9
VS
39312012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3932
3933 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3934 falls on Q syndrom.
3935
5cb53879
VS
39362012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3937
3938 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3939 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3940
b282dfe5
VS
39412012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3944 Allocate at lest 8192 for temporary buffer as required for lzo.
3945
daa59f47
VS
39462012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3949 to cluster_bits, since it's already added in.
3950 (grub_fat_read_data): Likewise.
3951
986748ce
VS
39522012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3955 as long as cluster size is multiple of 512 bytes.
3956
a20f6ad0
VS
39572012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3958
3959 * util/grub-mkrescue.in: Fix locale directory.
3960
385f9abb
VS
39612012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3962
3963 * grub-core/kern/emu/hostdisk.c (map): Make static.
3964
1c557d30
B
39652012-04-23 Bean <bean123ch@gmail.com>
3966
3967 * util/grub-fstest.c (fstest): Add missing break.
3968
524b5d3a
ST
39692012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3970
3971 Fix hurd build.
3972
3973 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3974 not define nr variable.
fe4824e9 3975 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3976 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3977 grub_find_device): Do not define.
524b5d3a 3978
9a06490c
VS
39792012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 Fix kfreebsd compile and behaviour.
3982
3983 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3984 format-security.
3985 * util/getroot.c: Fix wait.h include.
3986 (grub_guess_root_devices): Error if grub_find_device fails.
3987 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3988 (grub_util_get_dev_abstraction): Likewise.
3989 (grub_util_pull_device): Likewise.
3990 (grub_util_get_grub_dev): Likewise.
3991 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3992
48143d96
VS
39932012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 Fix and unify wholedisk detection.
3996
3997 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3998 is_part. All users updated.
3999 (device_is_wholedisk): Removed.
4000 (grub_util_biosdisk_get_grub_dev): Use is_part.
4001
ebbd24f3
VS
40022012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
4005 mode.
4006
56f7aa1e
VS
40072012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * configure.ac: Bump to beta4.
4010
9c815e01
VS
40112012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
4014 --fs-uuid --set UUID syntax.
4015
59e2651a
VS
40162012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
4019 disunification.
4020
54e03cfc
VS
40212012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4022
4023 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
4024
81092a75
MK
40252012-04-18 Mads Kiilerich <mads@kiilerich.com>
4026
4027 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
4028
f8315e14
MG
40292012-04-18 Mike Gilbert <floppym@gentoo.org>
4030
4031 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
4032
1501ac21
B
40332012-04-18 Bean <bean123ch@gmail.com>
4034
4035 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
4036 place.
4037
cb7f944e
VS
40382012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4039
4040 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
4041 users updated.
4042 (grub_util_biosdisk_read): Handle Linux partitions not exactly
4043 corresponding to GRUB partitions.
4044 (grub_util_biosdisk_write): Likewise.
4045
b72d44a1
VS
40462012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 Scan mdraid before LVM.
4049
4050 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
4051 (grub_diskfilter_register_front): ... this.
4052 (grub_diskfilter_register_back): New function.
4053 All users of grub_diskfilter_register updated.
4054
33d918b8
VS
40552012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4056
4057 * util/grub-install.in: Fix an automatic target detection bug.
4058
c6ca973d
VS
40592012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4060
4061 * util/grub-install.in: New option --efi-directory.
4062
b41be562
VS
40632012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4064
4065 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
4066 boot services if we have no other choice.
4067
40682012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4069
4070 * util/grub-mknetdir.in: Rename --override-directory to --directory and
4071 document it.
4072 * tests/util/grub-shell.in: Update to --directory.
4073
e0595a73
VS
40742012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4075
4076 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
4077
4ed80652
VS
40782012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4079
4080 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
4081 (grub_minix_read_file): Likewise.
4082 (grub_minix_read_inode): Likewise.
4083 (grub_minix_find_file): Likewise.
4084 (grub_minix_dir): Likewise.
4085
56008077
VS
40862012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4087
4088 * util/grub-setup.c (setup): Fix partition handling and blocklist
4089 check.
4090
ee520775
VS
40912012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
4094 redundant buggy overlap check.
4095
16fc9293
VS
40962012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
4099 and grub-mknetdir.
4100
9bab65c4
VS
41012012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4102
4103 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
4104 kh.loadflags on pre-2.00 kernels.
4105
3c491b47
VS
41062012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 Terminate UNDI and PXE before launching the payload to avoid problems
4109 with DMA.
4110
4111 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
4112 (grub_loader_flags): ... this. All users updated.
4113 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
4114 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
4115 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
4116 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
4117 function.
4118 (grub_pxe_restore): Likewise.
4119 (fini_hnd): New var.
4120 (GRUB_MOD_INIT): Register shutdown hook.
4121 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
4122 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
4123 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
4124 (grub_loader_set): Rename second argument to flags.
4125
851ffada
VS
41262012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4127
4128 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
4129 written bytes.
4130 (grub_get_num_of_utf8_bytes): New function.
4131 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
4132 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
4133 executing it.
4134 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
4135 (grub_ucs4_to_utf8): Change return type.
4136
491c57a8
VS
41372012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
4140 warning.
851ffada
VS
4141 * grub-core/fs/bfs.c (hop_level): Likewise.
4142 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 4143
756773df
VS
41442012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4145
4146 * grub-core/lib/adler32.c: Recode due to license unclearness.
4147
fd556a96
VS
41482012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
4151 (test_header): Likewise.
4152
9f9d3f69
VS
41532012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 Fix --help formatting.
4156
4157 * util/grub-mkconfig_lib.in (print_option_help): New function.
4158 (grub_fmt): Likewise.
4159 * util/grub-install.in: Use print_option_help and grub_fmt.
4160 * util/grub-kbdcomp.in: Likewise.
4161 * util/grub-mkconfig.in: Likewise.
4162 * util/grub-mknetdir.in: Likewise.
4163 * util/grub-mkrescue.in: Likewise.
4164 * util/grub-mkstandalone.in: Likewise.
4165 * util/grub-reboot.in: Likewise.
4166 * util/grub-set-default.in: Likewise.
4167 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4168
561ec77e
VS
41692012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4170
4171 * linguas.sh: Remove autogenerated *.po.
4172
7ec2b021
VS
41732012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4174
4175 * po/README: Move language fetcing to ...
4176 * linguas.sh: ... here.
4177 * po/README: Point to linguas.sh.
4178
a88f3270
VS
41792012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4180
4181 * po/README: Exclude ko.po due to disclaimer problems.
4182
d61357ce
VS
41832012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
4186 len = 0.
4187 (grub_gettext_translate_real): Handle 0th string.
4188 (grub_gettext_translate): Ensure that "" isn't translated.
4189
505e41dc
VS
41902012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4191
4192 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
4193 TRANSLATORS comment.
4194 (grub_diskfilter_print_partmap): Propagate changing of error into
4195 warning.
4196
e44092db
VS
41972012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4198
4199 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
4200 to uint64_t to prevent overflow.
4201 (grub_diskfilter_lv): Increase start_extent and extent_count
4202 to uint64_t to prevent overflow.
4203
9b83956a
VS
42042012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4205
4206 * configure.ac: Increase version.
4207
da0d5b3f
VS
42082012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4209
4210 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
4211
4212 * po/Rules-translit: New file.
4213 * po/arabic.sed: Likewise.
4214 * po/cyrillic.sed: Likewise.
4215 * po/greek.sed: Likewise.
4216 * po/hebrew.sed: Likewise.
4217 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
4218 * po/Makefile.in.in: Add extra_dist4.
4219
ac66b453
VS
42202012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 Handle big-endian minixfs (fixes minixfs tests on bigendian).
4223
4224 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
4225 modify names. Introduce MODE_BIGENDIAN.
4226 * grub-core/fs/minix_be.c: New file.
4227 * grub-core/fs/minix2_be.c: Likewise
4228 * grub-core/fs/minix3_be.c: Likewise.
4229 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
4230 minix3_be.
4231 * grub-core/Makefile.core.def (minix_be): New module.
4232 (minix2_be): Likewise.
4233 (minix3_be): Likewise.
4234
42352012-04-01 Felix <email@hamburg.de>
4236
4237 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
4238 (devs): Add MBP 2011.
4239
0a2d5a82
VS
42402012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
4243
d1625889
VS
42442012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4245
4246 * grub-core/normal/cmdline.c (print_completion): New field
4247 prompt_len.
4248 (grub_cmdline_get): Handle width properly.
4249
6d36a236
VS
42502012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4251
4252 * grub-core/commands/lsacpi.c (options): Add missing terminator.
4253
9576977e
VS
42542012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4255
4256 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 4257 after 29th of February.
9576977e 4258
d73ff15d
VS
42592012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4260
4261 Fix exfat endianness handling.
4262
4263 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
4264 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
4265 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
4266 Byte-swap utf16 when necessary.
4267 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4268
bbb39a45
AB
42692012-03-31 Anton Blanchard <anton@samba.org>
42702012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 Fix btrfs endianness handling.
4273
4274 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4275 (lower_bound): Make root uint64_t. Use root in le.
4276 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4277 (find_path): Fix template key init.
4278 (grub_btrfs_dir): Fix mtime byteswap.
4279 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4280
354e0af7
VS
42812012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4284 recursion_depth. Break infinite resursions. All users updated.
4285
4e75f21c
VS
42862012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4287
4288 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4289 after free.
4290 Reported by: Peter Jones.
4291
25581802
AB
42922012-03-31 Anton Blanchard <anton@samba.org>
4293
4294 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4295 8 bit values.
4296
08fbf92e
VS
42972012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4298
4299 * util/grub-install.in: Fix nvram call for PreP.
4300
5d1182a6
VS
43012012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4304 the error when some elements are missing into a warning.
4305
3f8cdd90
VS
43062012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4307
4308 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4309
51006716
CW
43102012-03-28 Colin Watson <cjwatson@ubuntu.com>
4311
4312 * docs/grub.texi (Invoking grub-probe): New section.
4313 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4314
e1bd676b
VS
43152012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 Fix tab and wide character handling in editor and menu.
4318
4319 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4320 agglomerate control characters with combining marks.
4321 (bidi_line_wrap): Allow break on tab.
4322 (grub_unicode_get_comb_start): New function.
4323 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4324 and tab correctly.
4325 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4326 with a space.
4327 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4328 fixed_tab_size. All users updated.
4329 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4330 (grub_term_getcharwidth): Handle \t.
4331 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4332 and copy.
4333
22e6a774
VS
43342012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4335
4336 Handle big-endian mdraid.
4337
4338 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4339 * grub-core/Makefile.core.def (mdraid09_be): New module.
4340 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4341 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4342 * grub-core/disk/mdraid_linux_be.c: New file.
4343
3c0eae66
VS
43442012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4345
4346 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4347
b6cf74c9
VS
43482012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4349
4350 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4351 missing quotes which caused confusion among translators.
4352
83c93b9c
VS
43532012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 * util/grub-mkconfig_lib.in: Fix typo.
4356
ac6fd218
VS
43572012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4358
4359 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4360 spaces.
4361 * tests/grub_script_leading_whitespace.in: New file.
4362 * Makefile.util.def (grub_script_leading_whitespace): New test.
4363
ba287dd8
VS
43642012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4367 to work.
4368
d2d58d0a
VS
43692012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4370
4371 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4372 starts with control character.
4373
0382d9bb
VS
43742012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4375
4376 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4377 overflow.
4378 (grub_gdb_outbuf): Likewise.
4379
d83ff9f9
VS
43802012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4381
4382 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4383 zero terminator. Fixes a crash.
4384
2282da4a
VS
43852012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4386
4387 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4388 beyond 4 GiB.
4389 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4390 images independently of preffered adderss field.
4391
0ae4f0bd
VS
43922012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4393
4394 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4395 * grub-core/commands/regexp.c: Likewise.
4396 * grub-core/loader/i386/linux.c: Likewise.
4397 * grub-core/partmap/msdos.c: Likewise.
4398 * grub-core/script/execute.c: Likewise.
4399 * grub-core/term/gfxterm.c: Likewise.
4400
546fbe9b
VS
44012012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4402
4403 Add variable parsing in $"..." and fix several mismatches with bash.
4404
4405 * Makefile.util.def (grub_script_gettext): New test.
4406 * grub-core/script/execute.c (parse_string): New function.
4407 (gettext_append): Likewise.
4408 (grub_script_arglist_to_argv): Use gettext_append.
4409 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4410 * tests/grub_script_gettext.in: New file.
4411
9fdb2d7b
VS
44122012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 Fix handling of leading spaces in scripts.
4415
4416 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4417 spaces.
4418 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4419 other than skipping \r. All users updated.
4420 * tests/grub_script_echo1.in: Add space-related tests.
4421 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4422
1a1ac4f6
VS
44232012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4424
4425 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4426
b63d89b6
VS
44272012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4428
4429 * configure.ac: Bump up the version to beta2.
4430
17f38c0f
VS
44312012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4432
4433 Fix gettext reload bugs (e.g. inability to disable gettext
4434 once enabled).
4435
4436 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4437 main_context and secondary_context. All functions updated.
4438 (grub_gettext_translate): Rename to ...
4439 (grub_gettext_translate_real): ... this. Return NULL on failed
4440 translate.
4441 (grub_gettext_translate): Handle secondary context.
4442 (grub_gettext_delete_list): Close file and zero-out the context.
4443 (grub_mofile_open): Don't call grub_gettext_delete_list.
4444 Don't close file.
4445 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4446 if locale="" to avoid pointless error message.
4447 (grub_gettext_env_write_lang): Update lang even if load fails.
4448 Handle secondary context.
4449 (grub_gettext_reread_prefix): New function.
4450 (read_main): Likewise.
4451 (read_secondary): Likewise.
4452 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4453 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4454 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4455 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4456
8e56f870
VS
44572012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4458
4459 * configure.ac: Decrease warning level to avoid spurious warnings and
4460 to be able to compile with GCC 4.2.
4461 * Makefile.util.def: Remove -Wno-error=logical-op.
4462
82f6d455
WB
44632012-03-10 William Bittner <william.bittner@gmail.com>
4464
4465 * util/import_unicode.py: Add missing brackets around string for
4466 python 3 support.
4467
1ecd61a4
VS
44682012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4469
4470 Fix efi chainloader on network root.
4471
4472 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4473 network devices.
4474 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4475 New function.
4476
14361ee8
VS
44772012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4480 unused show_text member.
4481 * docs/grub.texi: Document "text" property.
4482
922aabf3
VS
44832012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4484
4485 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4486 in dprintf.
4487
ec316771
VS
44882012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4489
4490 Fix IMSM handling on Fedora.
4491
4492 * util/getroot.c (grub_util_is_imsm): New function.
4493 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4494
0f021838
VS
44952012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4496
4497 * Makefile.am: Strip gold section.
4498 * conf/Makefile.common: Likewise.
4499 * gentpl.py: Likewise.
4500 * grub-core/Makefile.core.def: Likewise.
4501 * grub-core/genmod.sh.in: Likewise.
4502
1039c8eb
VS
45032012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4504
4505 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4506 * util/grub.d/20_linux_xen.in: Likewise.
4507 Based on Debian patch.
4508
6dd412cd
VS
45092012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 * util/grub.d/10_linux.in: Fix syntax error resulting in
4512 Richard Laager's patch.
4513 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4514
3fd8bae5
VS
45152012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4518 dependencies.
4519
7eea1671
RL
45202012-03-10 Richard Laager <rlaager@wiktel.com>
4521
4522 * util/grub.d/10_linux.in: Fix ZFS root passing.
4523
e8e0566b
VS
45242012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4525
4526 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4527 * grub-core/commands/xnu_uuid.c: Likewise.
4528 * grub-core/loader/efi/appleloader.c: Likewise.
4529 * grub-core/script/execute.c: Likewise.
4530 * grub-core/script/main.c: Likewise.
4531 * util/grub-mkfont.c: Likewise.
4532
1acc5b1f
VS
45332012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4534
4535 * util/grub-mkfont.c (options): Use more appropriate "select" that
4536 "set" for face index.
4537
35d70620
VS
45382012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * util/grub-editenv.c (options): Gettextize command summaries.
4541
c9eb96b5
VS
45422012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4545 "out of memory" error messagge.
4546
1f493136
VS
45472012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4550 of diskfilter for diskfilter on diskfilter support.
4551
6d790129
VS
45522012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4553
4554 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4555
005f46c9
VS
45562012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4557
4558 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4559 themes/starfield.
4560
c8f778a0
VS
45612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4562
4563 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4564
de1e64eb
VS
45652012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4568
c6d54211
VS
45692012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4572 of error message.
4573
dd390777
VS
45742012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4577
5fd1c522
VS
45782012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4579
4580 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4581 message.
c6d54211 4582 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 4583
fae01f6c
VS
45842012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4587 Gettextize.
4588 * util/grub-mount.c (options): Likewise.
4589
292fdaff
VS
45902012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4591
4592 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4593 gettextize.
4594 * grub-core/commands/search_wrap.c (options): Likewise.
4595
ecdbae77
VS
45962012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4597
4598 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4599
52bfedfa
VS
46002012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4601
4602 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4603 size calculation.
4604 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4605 none is known.
4606
55b20e58
VS
46072012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4608
4609 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4610 "temporary" since it's used in identifier and is limited in space.
4611
fda9d101
VS
46122012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4613
4614 * po/POTFILES.in: Regenerate. Include *.h since they contain
4615 translatable strings as well.
4616
6a0295e2
VS
46172012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4618
4619 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4620 byte-swap on big-endian.
4621 Reported by: Lennart Sorensen
4622
807fb77c
VS
46232012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4626 (allocate_pages): Improve dprintf.
4627 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4628 code32_start. Fill code32_start and kernel_alignment in params.
4629 (grub_cmd_initrd): Use prot_init_space.
4630
61ac50ba
VS
46312012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4634
abdd26dd
VS
46352012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4636
4637 * util/grub-install.in: Add missing dot at the end of sentence.
4638
6e69da9c
VS
46392012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4640
4641 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4642 * grub-core/commands/videotest.c: Likewise.
4643 * grub-core/loader/i386/linux.c: Likewise.
4644
4a929343
VS
46452012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4646
4647 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4648 sentence.
4649 Reported by: Milo Casagrande.
4650
bb51c6c6
VS
46512012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4652
4653 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4654 * grub-core/commands/gptsync.c: Likewise.
4655 * grub-core/commands/hashsum.c: Likewise.
4656 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4657 * grub-core/commands/legacycfg.c: Likewise.
4658 * grub-core/io/gzio.c: Likewise.
4659 * grub-core/net/net.c: Likewise.
4660 * grub-core/term/gfxterm.c: Likewise.
4661 * grub-core/term/terminfo.c: Likewise.
4662 * grub-core/tests/test_blockarg.c: Likewise.
4663 * grub-core/video/video.c: Likewise.
4664 * util/grub-install.in: Likewise.
4665 * util/grub-mkfont.c: Likewise.
4666
b2b149cb
VS
46672012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4668
4669 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4670
c7c080ad
VS
46712012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 4674 Reported by: David Prévot.
c7c080ad 4675
f2e243c0
VS
46762012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4677
4678 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4679 description.
4680
09963c76
VS
46812012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 * util/grub-script-check.c (main): Fix a syntax error message which was
4684 unclear.
4685
a50514a8
VS
46862012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4687
4688 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4689
4650daec
VS
46902012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4693 messages.
4694
46952012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
4696
4697 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4698 without argument.
4699 * util/grub-mount.c (options): Likewise.
4700
bbc5a342
VS
47012012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4702
4703 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4704
ef292a87
VS
47052012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 * grub-core/net/http.c: Add TRANSLATORS comments.
4708 * grub-core/normal/cmdline.c: Likewise.
4709 * grub-core/normal/misc.c: Likewise.
4710 * grub-core/partmap/msdos.c: Likewise.
4711 * grub-core/parttool/msdospart.c: Likewise.
4712 * grub-core/script/execute.c: Likewise.
4713 * grub-core/script/main.c: Likewise.
4714 * grub-core/term/terminfo.c: Likewise.
4715 * grub-core/video/bitmap.c: Likewise.
4716 * util/grub-install.in: Likewise.
4717 * util/grub-mkimage.c: Likewise.
4718 * util/grub-mklayout.c: Likewise.
4719 * util/grub-setup.c: Likewise.
4720
0fc19bd0
VS
47212012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4724 with similar messages in grub-fstest.
4725
d95862ef
VS
47262012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 * util/grub-install.in: Unify "option requires an argument" message
4729 with similar messages in other files.
4730 * util/grub-mkconfig.in: Likewise.
4731
b7308f90
VS
47322012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 * util/grub-set-default.in: Replace printf with gettext_printf (the
4735 string in in question is already translated from grub-reboot)
4736
559dc587
VS
47372012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * configure.ac: Bump up the version to beta1.
4740
1a11761f
VS
47412012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4744 case when min_align = 0.
4745
24539abd
VS
47462012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4749 and fix a case when line_start overflows.
4750
32bd735b
VS
47512012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4752
4753 * util/grub-reboot.in (usage): Mention id posibility.
4754 * util/grub-set-default.in (usage): Likewise.
4755
1a2fd1e6
VS
47562012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4757
4758 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4759 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4760 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4761 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4762 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4763 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4764 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4765
90eeab76
VS
47662012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4767
4768 * grub-core/commands/menuentry.c (options): Remove
4769 GRUB_ARG_OPTION_REPEATABLE.
4770 Reported by: Andreas Vogel
4771
5ad1be82
AV
47722012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4773
4774 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4775
cb055286
HE
47762012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4777
4778 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4779 error.
4780
93b1cd79
VS
47812012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 Use sort -V by the idea of Georgi Georgiev.
4784
4785 * util/grub-mkconfig_lib.in (version_sort): New function.
4786 (version_test_numeric): Use version_sort.
4787
0cdc126c
VS
47882012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4789
4790 Use submenus in grub-mkconfig.
4791
4792 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4793 * util/grub-mkconfig_lib.in (grub_quote): New function.
4794 (gettext_printf): Use gettext and not gettext_quoted to fix several
4795 messages.
4796 * util/grub.d/10_hurd.in: Use submenus.
4797 * util/grub.d/10_kfreebsd.in: Likewise.
4798 * util/grub.d/10_linux.in: Likewise.
4799 * util/grub.d/10_netbsd.in: Likewise.
4800 * util/grub.d/20_linux_xen.in: Likewise.
4801 * util/grub.d/30_os-prober.in: Likewise.
4802 * util/grub.d/10_illumos.in: Add missing quoting.
4803 * util/grub.d/10_windows.in: Likewise.
4804
d9bef9bc
VS
48052012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 Fix menu title instability bug.
4808
4809 * grub-core/commands/menuentry.c (options): New option --id.
4810 (grub_normal_add_menu_entry): New argument id. All users updated.
4811 (grub_cmd_menuentry): Handle --id.
4812 (grub_menu_init): Accept unknown arguments.
4813 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4814 feature_menuentry_options.
4815 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4816 saved_entry.
4817 (get_entry_number): Match with id as well.
4818 * include/grub/menu.h (grub_menu_entry): New member id.
4819 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4820 * util/grub.d/00_header.in: Define menuentry_id_option.
4821 * util/grub.d/10_hurd.in: Define id.
4822 * util/grub.d/10_illumos.in: Likewise.
4823 * util/grub.d/10_kfreebsd.in: Likewise.
4824 * util/grub.d/10_linux.in: Likewise.
4825 * util/grub.d/10_netbsd.in: Likewise.
4826 * util/grub.d/10_windows.in: Likewise.
4827 * util/grub.d/20_linux_xen.in: Likewise.
4828 * util/grub.d/30_os-prober.in: Likewise.
4829
48302012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
4831
4832 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4833 "scope" with "body".
4834
7c8d0ce7
VS
48352012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4836
4837 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4838 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4839 prot_size and prot_file_size.
4840
49de079b
VS
48412012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4844 All users updated. If easily=1 require raid-5/-6 to be full.
4845 (is_node_readable): Likewise.
4846 (scan_devices): Scan incomplete but readable LVs at the end.
4847 (grub_diskfilter_memberlist): Pull missing devices.
4848 (insert_array): Skip scanning until device is complete or scan is
4849 done otherwise.
4850 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4851 check.
4852 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4853 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4854
aff05d45
MG
48552012-03-03 Matthew Garrett <mjg@redhat.com>
48562012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4857
4858 Avoid EFI boot services when loading Linux.
4859
4860 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4861 avoid_efi_bootservices. All users updated.
4862 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4863 argument avoid_efi_bootservices. All users updated.
4864 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4865 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4866 align, min_align, relocatable, prefered_address. All users updated.
4867 Allocate avoiding boot services if kernel is relocatable.
4868 (grub_cmd_linux): Check if kernel is relocatable.
4869 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4870 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4871 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4872 avoid_efi_boot_services.
4873 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4874 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4875 (linux_kernel_params): Likewise.
4876
3935dde2
MG
48772012-03-03 Matthew Garrett <mjg@redhat.com>
48782012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4879
4880 Use EDID on EFI.
4881
4882 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4883 datasize_out.
4884 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4885 modes. Set gop_handle.
4886 (grub_video_gop_get_edid): New function.
4887 (grub_gop_get_preferred_mode): Likewise.
4888 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4889 (grub_video_efi_gop_adapter): Set .get_edid.
4890 * include/grub/efi/edid.h: New file.
4891 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4892
32107ec0
VS
48932012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 * util/grub-install.in: Load efivars unconditionally.
4896
e70a2c50
VS
48972012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 * po/Rules-piglatin: Change suffix from .po-update-en to
4900 .po-update-en-piglatin.
4901
8f9cace1
VS
49022012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4903
4904 Add a pig farm.
4905
4906 * po/piglatin.sed: New file.
4907 * po/en@piglatin.header: Likewise.
4908 * po/Rules-piglatin: Likewise.
4909 * po/README: Add en@piglatin to autogenerated languages.
4910
8f95d002
VS
49112012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4912
4913 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4914 "Command for ...".
4915 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4916 "Check" since we don't check anything.
4917 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4918 is 64-bit one.
4919 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4920 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4921 (grub_md_sha512_real): Likewise.
4922
805a8dcc
VS
49232012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * grub-core/commands/gptsync.c: Fix typographic quoting.
4926 * grub-core/commands/ieee1275/suspend.c: Likewise.
4927 * grub-core/commands/parttool.c: Likewise.
4928 * grub-core/commands/search_wrap.c: Likewise.
4929 * grub-core/commands/videoinfo.c: Likewise.
4930 * grub-core/gfxmenu/gui_label.c: Likewise.
4931 * grub-core/hello/hello.c: Likewise.
4932 * grub-core/kern/emu/main.c: Likewise.
4933 * grub-core/net/net.c: Likewise.
4934 * grub-core/normal/menu.c: Likewise.
4935 * grub-core/normal/menu_text.c: Likewise.
4936 * grub-core/normal/misc.c: Likewise.
4937 * util/grub-editenv.c: Likewise.
4938 * util/grub-install.in: Likewise.
4939 * util/grub-kbdcomp.in: Likewise.
4940 * util/grub-mkconfig.in: Likewise.
4941 * util/grub-mknetdir.in: Likewise.
4942 * util/grub-mkrescue.in: Likewise.
4943 * util/grub-mkstandalone.in: Likewise.
4944 * util/grub-reboot.in: Likewise.
4945 * util/grub-set-default.in: Likewise.
4946 * util/grub-setup.c: Likewise.
4947 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4948
40211ab8
VS
49492012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4952 * grub-core/commands/keystatus.c: Likewise.
4953 * grub-core/commands/loadenv.c: Likewise.
4954 * grub-core/commands/probe.c: Likewise.
4955 * grub-core/commands/regexp.c: Likewise.
4956 * grub-core/commands/true.c: Likewise.
4957 * grub-core/commands/videoinfo.c: Likewise.
4958 * grub-core/disk/cryptodisk.c: Likewise.
4959 * grub-core/disk/ldm.c: Likewise.
4960 * grub-core/disk/loopback.c: Likewise.
4961 * grub-core/disk/luks.c: Likewise.
4962 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4963 * grub-core/kern/disk.c: Likewise.
4964 * grub-core/kern/emu/hostdisk.c: Likewise.
4965
0c7d99c7
VS
49662012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4969 * util/grub-install.in: Add missing quote in the comment.
4970
e7d2559b
VS
49712012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4974 * grub-core/commands/lsmmap.c: Likewise.
4975 * grub-core/commands/minicmd.c: Likewise.
4976 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4977 * grub-core/commands/regexp.c: Likewise.
4978 * grub-core/gdb/gdb.c: Likewise.
4979 * grub-core/term/gfxterm.c: Likewise.
4980 * util/grub-mkconfig.in: Likewise.
4981 * util/grub-mkfont.c: Likewise.
4982 * util/grub-mklayout.c: Likewise.
4983 * util/grub-mknetdir.in: Likewise.
4984 * util/grub-mkrescue.in: Likewise.
4985 * util/grub.d/30_os-prober.in: Likewise.
4986
49ce9e50
VS
49872012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4990 with "Direct color" and "Packed" with "Packed pixel".
4991 (grub_cmd_videoinfo): Simplify legend.
4992
e4b791fa
VS
49932012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4994
4995 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4996 absolutely unclear error message.
4997
fd1265cb
VS
49982012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4999
5000 * util/grub-mkstandalone.in: Remove confusing leftover print.
5001
8822a8a0
VS
50022012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
5005 comments.
5006 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
5007 (GRUB_MOD_INIT): Likewise.
5008 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
5009 VGA mode.
5010 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
5011 comments.
5012 * util/grub-install.in (usage): Likewise.
5013 Spell ID in whole letters.
5014 Add missing ending dot.
5015 Quote variables.
5016 * util/grub-reboot.in: Fix capitalisation.
5017 * util/grub-set-default.in: Likewise.
5018
937fd0cc
VS
50192012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
5022 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
5023 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
5024 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
5025 Disable -Werror for -Wdeprecated-declarations.
5026 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
5027 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
5028 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
5029 (grub_util_get_grub_dev): Make luks handling dependent on
5030 HAVE_DEVICE_MAPPER and not __linux__.
5031 (get_win32_path): Fix format security.
5032 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
5033 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
5034 Don't try grub_find_zpool_from_dir.
5035 (grub_make_system_path_relative_to_its_root) [!__linux__]:
5036 #ifdef-out paresdir.
5037
1bab1ae3
VS
50382012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5039
5040 * util/grub-pe2elf.c (usage): Add missing noreturn.
5041 (write_section_data): Rename name to shname to avoid shadowing.
5042 (write_symbol_table): Rename name to symname to avoid shadowing.
5043 Fix write_reloc_section call.
5044
ef023e42
VS
50452012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
5048 to ensure that it's after the last byte of .text.
5049
48afcb75
VS
50502012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * util/ieee1275/ofpath.c (my_isdigit): New function.
5053 (trailing_digits): Use my_isdigit.
5054 (strip_trailing_digits): Likewise.
5055
88d51eff
VS
50562012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
5059 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
5060
17edc2ba
VS
50612012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5062
5063 * grub-core/kern/i386/pc/startup.S: Define __start.
5064
ad5518d7
VS
50652012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5066
5067 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
5068 strip already transforms he format.
5069
9e95e1bf
VS
50702012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5071
5072 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
5073
9cc3ee5c
VS
50742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5075
5076 * util/grub-install.in: Add missing gettext init.
5077 * util/grub-kbdcomp.in: Likewise.
5078 * util/grub-mkconfig.in: Likewise.
5079 * util/grub-mknetdir.in: Likewise.
5080 * util/grub-mkrescue.in: Likewise.
5081 * util/grub-mkstandalone.in: Likewise.
5082 * util/grub-reboot.in: Likewise.
5083 * util/grub-set-default.in: Likewise.
5084 * util/grub.d/00_header.in: Likewise.
5085 * util/grub.d/10_hurd.in: Likewise.
5086 * util/grub.d/10_windows.in: Likewise.
5087 * util/grub.d/30_os-prober.in: Likewise.
5088 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5089
49e08a06
VS
50902012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * po/Rules-swiss: Fix header comment.
5093
3809cb41
AV
50942012-02-29 Andreas Vogel <anvoit>
5095
5096 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
5097 resulted in leak of arguments.
5098
fa6ec573
VS
50992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 * grub-core/boot/i386/pc/startup_raw.S: Use separate
5102 reed_solomon_size const definition instead of computing it since
5103 Apple assembler doesn't support the later.
5104
22899b9c
VS
51052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5106
5107 * gentpl.py (kernel): Rewrite Apple part.
5108
a132afc3
VS
51092012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5110
5111 * include/grub/kernel.h (FOR_MODULES): Check module magic.
5112
9d742bd4
VS
51132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 * util/grub-mkimagexx.c (locate_sections): Support non-standard
5116 ELF section gap.
5117 (load_image): Likewise.
5118
f04a9a21
VS
51192012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 * configure.ac: Fix a typo in previous commit.
5122
46cf439c
VS
51232012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5124
5125 Don't add -Wl,-N on Apple platform.
5126
5127 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
5128 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
5129
c4c48c54
VS
51302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5131
5132 * grub-core/Makefile.core.def (lzma_decompress): Use
5133 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
5134
31a12124
VS
51352012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * grub-core/genmod.sh.in: Rewrite the Apple part.
5138
4f3aa1af
VS
51392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5140
5141 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
5142 comparison.
5143
7bd8b0c7
VS
51442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5145
5146 * acinclude.m4 (grub_CHECK_PIC): New test.
5147 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
5148
97304d7c
VS
51492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5150
5151 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
5152 to avoid the warning.
5153
fb883812
VS
51542012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5155
5156 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
5157 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
5158 after. All users updated.
5159
a121c964
VS
51602012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 Use the common size routine in hostfs so we can read disks as well.
5163
5164 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
5165 (grub_util_get_fd_size): ... this. Return size in bytes.
5166 All users updated.
5167 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
5168 grub_util_get_fd_size.
5169
c66d6410
VS
51702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5171
5172 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
5173 Add blocksize retrieval.
5174
dfc8aeb0
VS
51752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5176
5177 * configure.ac: Restore CFLAGS after efiemu check.
5178
403e25a5
VS
51792012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5180
5181 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
5182 Apple bug.
5183
382775d1
VS
51842012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
5187
6fd4e6e4
VS
51882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5189
5190 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
5191 (grub_cmd_halt): Likewise.
5192
bea359d6
VS
51932012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
5196 for local arithmetics.
5197 Break %sp init into 2 instructions.
5198 Add 0 byte at the end.
5199
32eb6ee1
VS
52002012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5201
5202 * grub-core/disk/diskfilter.c (read_segment): Initialise err
5203 before loops.
5204
e8377389
VS
52052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5206
5207 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
5208 for context.
5209
8cb17de7
VS
52102012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5211
5212 * grub-core/disk/ldm.c (make_vg): Init part.name.
5213 (grub_ldm_detect): Silence spurious warning.
5214 (grub_util_is_ldm): Likewise.
5215
595717e6
VS
52162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5217
5218 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
5219 sane value to avoid a spurious warning.
5220
c4b7e588
VS
52212012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5222
5223 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
5224 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
5225
59824957
VS
52262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5227
5228 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
5229 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
5230
70115b99
VS
52312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5232
5233 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
5234 hardcoding the relevant info.
5235
56733740
VS
52362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5237
5238 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
5239 missing const qualifiers.
5240 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
5241
43481481
VS
52422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5243
5244 * util/getroot.c [__APPLE__]: Add missing includes.
5245 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
5246
3cb38f01
VS
52472012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5248
5249 * util/grub-mkimage.c (generate_image): Silence spurious warning.
5250
d9dbf11e
VS
52512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
5254 avoid conflicts.
5255
0c42a45d
VS
52562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5257
5258 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
5259
46c34eb0
VS
52602012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5261
5262 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
5263 and grub_file_close call.
5264
99ce1597
VS
52652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5266
5267 Add LZSS Mach-O support (needed for new xnu kernelcache).
5268
5269 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5270 * grub-core/loader/lzss.c: New file.
5271 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5272 on Mach-O open failure.
5273 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5274 Don't free cmdsXX in uncompressedXX is set.
5275 (grub_macho_file): Init new fields.
5276 New argument is_64bit. All users updated.
5277 Handle compressed. Error out if no suitable architecture is found.
5278 Don't close file.
5279 (grub_macho_open): New argument is_64bit. All users updated.
5280 * grub-core/loader/macho32.c: Add defines for new fields.
5281 * grub-core/loader/macho64.c: Likewise.
5282 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5283 (grub_macho_parse): Handle compressed.
5284 Defer actual processing if compressed.
5285 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5286 "filename". All users updated.
5287 (grub_macho_size): New argument "filename". All users updated.
5288 (grub_macho_get_entry_point): Likewise.
5289 (grub_macho_load): Handle compressed.
5290 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5291 (GRUB_MACHO_LZSS_OFFSET): New define.
5292 (grub_decompress_lzss): New proto.
5293 * include/grub/machoload.h (grub_macho_file): New fields to handle
5294 compressed.
5295 (grub_macho_contains_macho64): Remove proto.
5296 (grub_macho_contains_macho32): Likewise.
5297 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5298
ebd17d6f
VS
52992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5302
2702b4e4
VS
53032012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5304
5305 Fix make dist.
5306
5307 * Makefile.am (starfield_theme_files): New var.
5308 (starfield_DATA): Use starfield_theme_files.
5309 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5310 Add bootcheck-related files.
5311 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5312 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5313 and font_char_metrics.txt.
5314 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5315 (setjmp): Add lib/ia64/longjmp.S.
5316 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5317 * po/POTFILES.in: Regenerate.
5318 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5319 DISTFILES.common.extra1.
5320 * util/devicemap.c: Removed.
5321 * grub-core/lib/i386/relocator_backward.S: Likewise.
5322 * util/import_gcry.py: Remove unused files. Add extra_dist for
5323 ChangeLog.
5324
cf1adfdf
VS
53252012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5326
5327 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5328 grub_gettext_delete_list before changing grub_gettext_max to avoid
5329 running out of array bounds.
5330
53312012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
5332
5333 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5334 grub_vga_text_init/grub_vga_text_fini.
5335
cf1adfdf 53362012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
5337
5338 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5339
541d92e9
VS
53402012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5341
5342 * configure.ac: Bump to 2.00~beta0.
5343
7931dddf
VS
53442012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5345
5346 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5347 missing initialisation.
5348
f1b16fa3
VS
53492012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5350
5351 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5352
83ddae23
VS
53532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5354
5355 Support v2 xnu boot arguments.
5356
5357 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5358 New argument fsbfreq_out.
5359 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5360 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5361 be used.
5362 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5363 darwin_version.
5364 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5365 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5366 (grub_xnu_boot_params): Rename to ...
5367 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5368 (grub_xnu_boot_params_v2): New struct.
5369
dc693fe6
VS
53702012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5371
5372 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5373 zeroing of CRC field before computing CRC.
5374
5a6e39c2
VS
53752012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5378 Change order of allocations to decrease fragmentation.
5379
6c21f5d7
VS
53802012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5381
5382 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5383
cfe456dc
CW
53842012-02-27 Colin Watson <cjwatson@ubuntu.com>
5385
5386 Use write-combining MTRR to speed up video with buggy BIOSes.
5387
5388 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5389 (cpuid): New define.
5390 (rdmsr): Likewise.
5391 (wrmsr): Likewise.
5392 (mtrr_base): Likewise.
5393 (mtrr_mask): Likewise.
5394 (grub_vbe_enable_mtrr_entry): New function.
5395 (grub_vbe_enable_mtrr): Likewise.
5396 (grub_vbe_disable_mtrr): Likewise.
5397 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5398 control off to BIOS.
5399 (grub_video_vbe_init): Fill mtrr.
5400 (grub_video_vbe_fini): Disable mtrr.
5401 (grub_video_vbe_get_info_and_fini): Likewise.
5402 (grub_video_vbe_setup): Enable mtrr.
5403
e3c78337
CW
54042012-02-27 Colin Watson <cjwatson@ubuntu.com>
5405
5406 * include/grub/partition.h (grub_partition_map): Change prototype of
5407 embed to take a maximum value for nsectors.
5408 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5409 * include/grub/fs.h (grub_fs): Likewise.
5410 * grub-core/partmap/msdos.c (embed_signatures): New array.
5411 (pc_partition_map_embed): Check for and avoid sectors matching any
5412 of the signatures in embed_signatures, up to max_nsectors.
5413 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5414 returned sector map to max_nsectors.
5415 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5416 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5417 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5418 * util/grub-setup.c (setup): Allow for the embedding area being
5419 split into multiple blocklists. Tell dest_partmap->embed the
5420 maximum number of sectors we care about.
5421
54222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5425 Specify blocklist_install and reserver_first_sector for all fs.
5426 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5427 blocklists.
5428
984b973f
VS
54292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5430
5431 * util/grub-install.in: Clarify strings.
5432 Fix source dir check.
5433
f122e0d6
RL
54342012-02-27 Richard Laager <rlaager@wiktel.com>
5435
5436 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5437 "zfs" and "fuse.zfs" as synonyms.
5438
071114bb
VS
54392012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5440
5441 * configure.ac: Put platform and target_cpu substitutions back since
5442 they are used for directories.
5443
817e6abc
RL
54442012-02-27 Richard Laager <rlaager@wiktel.com>
54452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5448 * util/grub.d/20_linux_xen.in: Likewise.
5449
897b7419
RL
54502012-02-27 Richard Laager <rlaager@wiktel.com>
5451
5452 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5453 with full paths.
5454
a414bd15
RL
54552012-02-27 Richard Laager <rlaager@wiktel.com>
5456
5457 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5458 unescape.
5459
30ac48c4
VS
54602012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 Don't use insecure popen in getroot.
5463
5464 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5465 (exec_pipe): ... here.
5466 (find_root_devices_from_poolname): Use exec_pipe.
5467
53f13848
VS
54682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 Remove platform and target_cpu replacement.
5471
5472 * configure.ac: Remove platform and target_cpu substitutions.
5473 * tests/util/grub-shell.in: Use modinfo.
5474 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5475 explicitly.
5476
90cb2803
VS
54772012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5478
5479 Autodetect platform in grub-install but allow override.
5480
5481 * util/grub-install.in: Autodetect platform. Support --target and
5482 --directory. Read platform from modinfo.sh.
5483
b9136427
VS
54842012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5485
5486 Support btrfs multi-volume probe.
5487
5488 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5489 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5490 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5491 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5492 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5493 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5494 grub_find_root_devices_from_btrfs if on btrfs.
5495
c36e5cd1
VS
54962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5497
5498 Remove any awareness of *.c util files about target.
5499
5500 * Makefile.util.def (grub-setup): Split to ...
5501 (grub-bios-setup): ... and this.
5502 (grub-sparc64-setup): ... and this.
5503 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5504 * docs/man/grub-setup.h2m: Split into ...
5505 * docs/man/grub-sparc64-setup.h2m: ... this.
5506 * docs/man/grub-bios-setup.h2m: ... and this.
5507 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5508 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5509 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5510 (grub_target_addr_t): Remove.
5511 (grub_target_size_t): Remove.
5512 (grub_target_ssize_t): Remove.
5513 * util/grub-install.in: Use new grub-*-setup.
5514 * util/grub-mkimagexx.c (Elf_Word): New define.
5515 (Elf_Half): Likewise.
5516 (Elf_Section): Likewise.
5517 (ELF_ST_TYPE): Likewise.
5518 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5519 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5520
584b2f8a
VS
55212012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5522
5523 Replace grub_target_addr with more appropriate types.
5524
5525 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5526 grub_target_addr with grub_addr.
5527 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5528 grub_target_addr with grub_port.
5529 (grub_cmd_write): Likewise.
5530 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5531 grub_target_addr with grub_addr.
5532 (grub_cmd_write): Likewise.
5533 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5534
5a0dc6fb
VS
55352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5536
5537 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5538 const qualifier for vendor_guid.
5539
786aff6e
VS
55402012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5541
5542 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5543 const qualifier.
5544 (efiemu_memequal): Likewise.
5545 (find_variable): Likewise.
5546
49017b17
VS
55472012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5548
5549 Fix missing console prototype on qemu-mips.
5550
5551 * include/grub/mips/qemu_mips/console.h: New file.
5552
c5988629
MG
55532012-02-27 Matthew Garrett <mjg@redhat.com>
55542012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5555
5556 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5557 * include/grub/efi/efi.h: Likewise.
5558 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5559 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5560 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5561 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5562 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5563 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5564
e33f8d69
MG
55652012-02-27 Matthew Garrett <mjg@redhat.com>
5566
5567 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5568
fb312cd9
VS
55692012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5570
5571 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5572 error.
5573
7134247c
VS
55742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5575
5576 * configure.ac: Remove inappropriate use of program_transform_name
5577 on grubdir and bootdir but allow explicit specification of those
5578 variables.
5579
6a313124
VS
55802012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5581
5582 * util/grub-mknetdir.in (grub_prefix): Removed.
5583 (subdir): Use @bootdirname@ and @grubdirname@.
5584
2311c5ca
VS
55852012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5586
5587 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5588
7d5d60f7
VS
55892012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5590
5591 * po/POTFILES.in: Regenerated.
5592
8151bc82
VS
55932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5594
5595 Remove improper use of program_transform_name on pkglibrootdir.
5596
5597 * configure.ac (pkglibrootdir): Removed.
5598 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5599 * util/grub-mkimage.c: Likewise.
5600
b4a6a533
VS
56012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5602
5603 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5604 warning.
5605
668f304f
VS
56062012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * util/grub-install.in: Use file identifier if no UUID is available
5609 or user explicitly prompted for it.
5610
665f2341
NP
56112012-02-27 Navdeep Parhar <nparhar@gmail.com>
5612
5613 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5614 (freebsd_get_zfs): New function.
5615 (grub_freebsd_boot): Pass zfs UUID.
5616 (grub_cmd_freebsd): Set zfs UUID.
5617
8151bc82 56182012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
5619
5620 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5621 pkglibrootdir.
5622
e4c498a1
MG
56232012-02-27 Mike Gilbert <floppym@gentoo.org>
5624
5625 Add configure flag to control libzfs integration.
5626
5627 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5628
1e9a9a3f
VS
56292012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5630
5631 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5632 device.
5633 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5634 small devices.
5635
036985b8
VS
56362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5637
5638 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5639 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5640 be used on non-modules.
5641
5642 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5643 Rename to grub_boot_init.
5644 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5645 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5646 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5647 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5648 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5649 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5650 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5651 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5652 includes.
5653 (grub_machine_init): Remove empty inits.
5654 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5655 includes.
5656 (grub_machine_init): Remove empty inits.
5657 * grub-core/term/arc/console.c: Remove explicit proto.
5658 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5659 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5660 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5661 grub_at_keyboard_fini.
5662 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5663 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5664 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5665 grub_gfxterm_fini.
5666 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5667 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5668 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5669 grub_vgatext_fini.
5670 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5671 * grub-core/term/serial.c (GRUB_MOD_INIT)
5672 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5673 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5674 grub_serial_fini.
5675 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5676 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5677 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5678 grub_terminfo_fini.
5679 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5680 (GRUB_MOD_FINI): Likewise.
5681 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5682 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5683 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5684 grub_video_radeon_fuloong2e_fini.
5685 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5686 [LOONGSON]: Rename to grub_video_sis315pro_init.
5687 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5688 grub_video_sis315pro_fini.
5689 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5690 [LOONGSON]: Rename to grub_video_sm712_init.
5691 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5692 grub_video_sm712_fini.
5693 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5694 (grub_at_keyboard_fini): Likewise.
5695 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5696 Don't declare grub_{modname}_init.
5697 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5698 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5699 New proto.
5700 (grub_keylayouts_fini) [!EMU]: Likewise.
5701 * include/grub/serial.h (grub_serial_init) [!EMU]:
5702 New proto.
5703 (grub_serial_fini) [!EMU]: Likewise.
5704 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5705 New proto.
5706 (grub_terminfo_fini) [!EMU]: Likewise.
5707 * include/grub/video.h (grub_font_init) [!EMU]:
5708 New proto.
5709 (grub_font_fini) [!EMU]: Likewise.
5710 (grub_gfxterm_init) [!EMU]: Likewise.
5711 (grub_gfxterm_fini) [!EMU]: Likewise.
5712 (grub_video_sm712_init) [!EMU]: Likewise.
5713 (grub_video_sm712_fini) [!EMU]: Likewise.
5714 (grub_video_sis315pro_init) [!EMU]: Likewise.
5715 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5716 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5717 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5718
d5534665
VS
57192012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 Make nand a prefix for nand devices.
5722
5723 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5724
10133b5f
VS
57252012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5726
5727 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5728 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5729
8e307a62
VS
57302012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 * include/grub/env.h (grub_env_find): Remove prototype.
5733 * grub-core/kern/env.c (grub_env_find): Make static.
5734 (grub_env_set): Remove useless set.
5735
a4c65f34
VS
57362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5737
5738 * grub-core/kern/i386/realmode.S: Remove useless align.
5739
d87893d5
VS
57402012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5741
5742 * include/grub/dl.h (grub_dl_load_file): Don't export.
5743
50159add
VS
57442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5745
5746 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5747 grub_dprintf.
5748
b2582b84
VS
57492012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5750
5751 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5752 grub_errors.
5753 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5754 not reloading whole superblock but only the part which is really needed.
5755 Remove useless grub_errors.
5756 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5757 grub_errors.
5758
e2a83395
VS
57592012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5760
5761 Don't export grub_get_rtc.
5762
5763 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5764 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5765
e7d2a906
VS
57662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5769
6cf1363b
VS
57702012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 5773 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 5774
eece3349
VS
57752012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 Remove prio_list.
5778
5779 * include/grub/list.h (grub_prio_list): Removed.
5780 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5781 GRUB_COMMAND_PRIO_MASK.
5782 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5783 GRUB_COMMAND_FLAG_ACTIVE.
5784 (grub_prio_list_insert): Removed.
5785 (grub_prio_list_remove): Likewise.
5786 (GRUB_AS_PRIO_LIST): Likewise.
5787 (GRUB_AS_PRIO_LIST_P): Likewise.
5788 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5789 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5790 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5791 * grub-core/kern/command.c (grub_register_command_prio): Inline
5792 the prio_list code.
5793 (grub_unregister_command): Likewise.
5794
94f064b4
VS
57952012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 Fix interrupt mixup from previous commit.
5798
5799 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5800 (grub_realidt): New var.
5801 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5802 Load idt.
5803 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5804 New declaration.
5805 (grub_relocator16_boot): Set grub_relocator16_idt.
5806 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5807 (LOCAL(realidt)): ... this.
5808 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5809 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5810 (grub_realidt): New variable.
5811
27317084
VS
58122012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5813
5814 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5815 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5816 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5817 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5818 Gettextize.
5819 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5820 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5821 * po/POTFILES.in: Regenerate.
5822
47b40053
VS
58232012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5824
5825 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5826 errors.
5827
2b343101
VS
58282012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5831 \0.
5832 (add_length): Likewise.
5833
ff27c3dd
LK
58342012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
58352012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5836
5837 GDB serial and backtrace support.
5838
5839 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5840 (prot_to_real): Likewise.
5841 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5842 * grub-core/Makefile.core.def (backtrace): New module.
5843 (gdb): Likewise.
5844 * grub-core/gdb/cstub.c: New file.
5845 * grub-core/gdb/gdb.c: Likewise.
5846 * grub-core/gdb/i386/idt.c: Likewise.
5847 * grub-core/gdb/i386/machdep.S: Likewise.
5848 * grub-core/gdb/i386/signal.c: Likewise.
5849 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 5850 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
5851 * include/grub/backtrace.h: Likewise.
5852 * include/grub/gdb.h: Likewise.
5853 * include/grub/i386/gdb.h: Likewise.
5854
58552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
5856
5857 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5858 New function.
5859 (add_length): Likewise.
5860 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5861 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5862 proto.
5863 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5864 __argp_get_display_len.
5865
ff27c3dd 58662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
5867
5868 $"..." support in scripts.
5869
5870 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5871 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5872 * grub-core/script/yylex.l: Likewise.
5873 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5874 value.
5875
ff27c3dd 58762012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
5877
5878 * gentpl.py: Remove obsolete pkglib_DATA handling.
5879
ff27c3dd 58802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
5881
5882 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5883 mailing list.
5884
5885 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5886 * util/grub-kbdcomp.in: Likewise.
5887 * util/grub-mkconfig.in: Likewise.
5888 * util/grub-mkconfig_lib.in: Likewise.
5889 * util/grub-mknetdir.in: Likewise.
5890 * util/grub-mkrescue.in: Likewise.
5891 * util/grub-mkstandalone.in: Likewise.
5892 * util/grub-reboot.in: Likewise.
5893 * util/grub-set-default.in: Likewise.
5894 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5895
ff27c3dd 58962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
5897
5898 Remove GRUB_PREFIX.
5899
5900 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5901 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5902 used for backward compatibility.
5903
ff27c3dd 59042012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
5905
5906 Add new all_video module.
5907
5908 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5909 * grub-core/Makefile.core.def (all_video): New module.
5910 * grub-core/genmoddep.awk: Generate dependency of all_video from
5911 video.lst.
5912 * grub-core/lib/fake_module.c: New file.
5913 * grub-core/normal/main.c (features): Add feature_all_video_module.
5914 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5915 don't do explicit search again.
47454da5 5916 insmod all_video in load_video if available.
22c7ce85 5917
ff27c3dd 59182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
5919
5920 Another round of string clarification and adding TRANSLATORS comments.
5921
ff27c3dd 59222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
5923
5924 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5925
ff27c3dd 59262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
5927
5928 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5929 to grub_ssize_t.
5930 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5931 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5932
ff27c3dd 59332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
5934
5935 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5936 trailing newline implicitly. All users updated.
5937
ff27c3dd 59382012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
5939
5940 Implement serial on IEEE1275 and EFI.
5941
5942 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5943 on emu. Mention arc and emu as the only platforms without serial
5944 support.
5945 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5946 ieee1275 platforms.
5947 * grub-core/term/efi/serial.c: New file.
5948 * grub-core/term/ieee1275/serial.c: Likewise.
5949 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5950 specification if no ns8250 driver is available.
5951 (grub_cmd_serial): Likewise.
5952 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5953 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5954 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5955 (grub_efi_parity_type_t): New type.
5956 (grub_efi_stop_bits_t): Likewise.
5957 (grub_efi_serial_io_interface): New struct.
5958 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5959 available for all interfaces.
5960 Add EFI and IEEE1275 fields.
5961 (grub_ofserial_init): New proto.
5962 (grub_efiserial_init): Likeiwse.
5963 * util/grub.d/00_header.in: Don't check for the presence of serial
5964 module.
5965
ff27c3dd 59662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
5967
5968 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5969 name as if it was an alias.
5970
114076ef
VS
59712012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5972
5973 * grub-core/commands/lsacpi.c (options): Fix typo.
5974
6a656b0e
VS
59752012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5976
5977 Convert grub-emu to argp.
5978
5979 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5980 emu.
5981 * util/argp_common.c: Rename to ...
5982 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5983 Add missing includes.
5984 * grub-core/kern/emu/main.c: Convert to argp.
5985 * po/POTFILES.in: Regenerate.
5986 * util/grub-install.in (usage): Make first letter lowcase in messages
5987 for uniformity.
5988 * util/grub-setup.c (options): Likewise.
5989
1e3f8ae8
VS
59902012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5991
5992 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5993 Put back accidently commented-out code.
5994
ed167a80
VS
59952012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5998 loop check using Brent algorithm.
5999 (grub_hfsplus_btree_search): Likewise.
6000
6753c0ec
VS
60012012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 * util/grub-install.in: Fix usage of wrong device for PreP install.
6004
4e27343f
VS
60052012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6006
6007 * conf/Makefile.common (CFLAGS_GNULIB): Add
6008 -Wno-unsafe-loop-optimizations.
6009 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
6010 on tools.
6011 * grub-core/commands/legacycfg.c: Add pragma to skip
6012 -Wunsafe-loop-optimizations.
6013 (check_password_md5_real): Fix loop counter type.
6014 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
6015 reading.
6016 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
6017 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
6018 loop condition.
6019 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
6020 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
6021 * grub-core/net/net.c (grub_net_route_address): Add safety loop
6022 condition.
6023 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
6024 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
6025 avoid possible infinite loops.
6026 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
6027 and -Wunsafe-loop-optimizations.
6028 * grub-core/script/yylex.l: Likewise.
6029 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
6030 (print_glyphs): Avoid infinite loops.
6031 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
6032
697f18b0
GS
60332012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
6034
6035 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
6036 to avoid infinite loop.
6037 (disp_acpi_rsdt_table): Likewise.
6038
274416e8
VS
60392012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6040
6041 * grub-core/font/font.c (grub_font_load): Add support for default
6042 path for fonts ($prefix/fonts).
6043 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
6044 for checking if string is a path.
6045 * grub-core/normal/main.c (features): Add feature_default_font_path.
6046 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
6047 * util/grub.d/00_header.in: Use default directory if possible.
6048 * util/grub-install.in: Install unicode.pf2.
6049
b3e08622
VS
60502012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6051
6052 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
6053 * po/Rules-swiss: New file.
6054 * po/swiss.sed: Likewise.
6055
fe42ce09
VS
60562012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6057
6058 * grub-core/fs/btrfs.c (find_device): Fix typos.
6059 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
6060 * util/grub-mkrelpath.c (argp_parser): Likewise.
6061 Reported by: Yuri Chornoivan.
6062
72f1d065
DO
60632012-02-23 Dalet Omega <daletomega@gmail.com>
6064
6065 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
6066 for usual informative messages.
6067
c5884973
DO
60682012-02-23 Dalet Omega <daletomega@gmail.com>
6069
6070 Starfield theme.
6071
6072 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
6073 * conf/Makefile.common: Define starfielddir.
6074 * configure.ac: Configure starfield.
6075 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
6076 * themes/starfield/README: Likewise.
6077 * themes/starfield/blob_w.png: Likewise.
6078 * themes/starfield/boot_menu_c.png: Likewise.
6079 * themes/starfield/boot_menu_e.png: Likewise.
6080 * themes/starfield/boot_menu_n.png: Likewise.
6081 * themes/starfield/boot_menu_ne.png: Likewise.
6082 * themes/starfield/boot_menu_nw.png: Likewise.
6083 * themes/starfield/boot_menu_s.png: Likewise.
6084 * themes/starfield/boot_menu_se.png: Likewise.
6085 * themes/starfield/boot_menu_sw.png: Likewise.
6086 * themes/starfield/boot_menu_w.png: Likewise.
6087 * themes/starfield/slider_c.png: Likewise.
6088 * themes/starfield/slider_n.png: Likewise.
6089 * themes/starfield/slider_s.png: Likewise.
6090 * themes/starfield/src/blob_nw.xcf: Likewise.
6091 * themes/starfield/src/bootmenu/: Likewise.
6092 * themes/starfield/src/bootmenu/center.xcf: Likewise.
6093 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
6094 * themes/starfield/src/bootmenu/side.xcf: Likewise.
6095 * themes/starfield/src/slider_c.xcf: Likewise.
6096 * themes/starfield/src/slider_n.xcf: Likewise.
6097 * themes/starfield/src/slider_s.xcf: Likewise.
6098 * themes/starfield/src/terminalbox/: Likewise.
6099 * themes/starfield/src/terminalbox/center.xcf: Likewise.
6100 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
6101 * themes/starfield/src/terminalbox/side.xcf: Likewise.
6102 * themes/starfield/starfield.png: Likewise.
6103 * themes/starfield/terminal_box_c.png: Likewise.
6104 * themes/starfield/terminal_box_e.png: Likewise.
6105 * themes/starfield/terminal_box_n.png: Likewise.
6106 * themes/starfield/terminal_box_ne.png: Likewise.
6107 * themes/starfield/terminal_box_nw.png: Likewise.
6108 * themes/starfield/terminal_box_s.png: Likewise.
6109 * themes/starfield/terminal_box_se.png: Likewise.
6110 * themes/starfield/terminal_box_sw.png: Likewise.
6111 * themes/starfield/terminal_box_w.png: Likewise.
6112 * themes/starfield/theme.txt: Likewise.
6113
17d73325
VS
61142012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6115
6116 * util/grub.d/00_header.in: Add missing export theme.
6117
dbebaf92
VS
61182012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6119
6120 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
6121 already included.
6122 Reported by: Eren D.
6123
3d68bffb
VS
61242012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 * conf/Makefile.common (grubdatadir): Removed.
6127 (Makefile.am): Move eveything grubdata to pkgdata.
6128
4b59234d
VS
61292012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * grub-core/commands/acpihalt.c (get_sleep_type):
6132 Remove unused variable.
6133
463dcadc
VS
61342012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6135
6136 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
6137 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
6138 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
6139 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
6140 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
6141 i18n with gettext no-op.
6142 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
6143 GRUB_ACPI_OPCODE_STRING_CONST.
6144 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
6145 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
6146
e5b90c82
VS
61472012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6148
6149 * po/POTFILES.in: Regenerate.
6150
2a704ca9
VS
61512012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6152
6153 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
6154 -Wno-error=missing-noreturn.
6155
84f9d341
VS
61562012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6157
6158 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
6159 condition to avoid possibly infinite loops.
6160 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
6161 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
6162
d46683f9
VS
61632012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6164
6165 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
6166 condition to avoid possibly infinite loops.
6167
c44866b2
VS
61682012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
6171 on show_error.
6172
96790539
VS
61732012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6174
6175 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
6176
1ba7e295
VS
61772012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6178
6179 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
6180
21ffe8f1
VS
61812012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6182
6183 * util/bin2h.c (usage): Add missing attribute noreturn.
6184
0ccb6b3c
VS
61852012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
6188 if the size isn't divisible by 512.
6189
b00d7fb6
VS
61902012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6191
6192 Make list_push and list_remove functions rather than inline functions
6193 to decrease size and avoid aliasing violations.
6194
6195 * include/grub/list.h (grub_list_push): Move to ...
6196 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
6197 * include/grub/list.h (grub_list_remove): Move to ...
6198 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
6199
9d369087
VS
62002012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6201
6202 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
6203 and -Wunused-result.
6204
af0250d9
VS
62052012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
6208 Reported by: Seth Goldberg
6209
aad32b14
VS
62102012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
6213
ac96441c
ST
62142012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6215
6216 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
6217 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
6218 command line.
6219 * docs/grub.texi (Simple configuration): Document
6220 GRUB_CMDLINE_GNUMACH.
6221
62222012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
6223
6224 * conf/Makefile.common (platform_SCRIPTS): New variable.
6225 (platform_PROGRAMS): Likewise.
6226 * gentpl.py: Mark *,module and *.image for install.
6227 * grub-core/gdb_grub.in: Add a notice of expected environment.
6228 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
6229 (gmodule.pl): Likewise.
6230
ac96441c 62312012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
6232
6233 Replace grub_checkkey with grub_getkey_noblock.
6234
6235 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
6236 (grub_getkey_noblock): ... this. All users updated.
6237
ac96441c 62382012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
6239
6240 * grub-core/kern/emu/console.c: Move to ...
6241 * grub-core/term/emu/console.c: ...here.
6242 (grub_ncurses_getkey): Fix return value if no key is detected.
6243
e51b5666
VS
62442012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6245
6246 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
6247 (grub_unit_test_fini): Likewise.
6248 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
6249
62502012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6251
6252 * include/grub/test.h (GRUB_UNIT_TEST)
6253
d9a62292
VS
62542012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * grub-core/script/execute.c (grub_script_break): Clarify logic.
6257 Better error handling.
6258 (grub_script_return): Likewise.
6259 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6260
77c9182f
VS
62612012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6262
6263 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
6264 rimplicit redifinition.
6265
edb13cf9
VS
62662012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6267
6268 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6269 GRUB.
6270
a9e9dc7c
VS
62712012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6274 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6275 prompt here.
6276
b4ba8e02
VS
62772012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6280 as GRUB_ERR_BUG. Don't malloc if no device is available.
6281
dded5540
VS
62822012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6285 Mark calling with invalid term as GRUB_ERR_BUG.
6286
0cf69874
VS
62872012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6290 packets rather than raising an error.
6291
59bfe502
VS
62922012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6293
6294 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6295 in if.
6296
db5fc596
VS
62972012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6300 diagnostic to dprintf.
6301 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6302
e4b7f404
VS
63032012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6306 device name.
6307
e7b02f9e
VS
63082012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6311 (grub_ntfs_iterate_dir): Likewise.
6312
0331e102
VS
63132012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6314
6315 Efiemu stylistic fixes and gettext.
6316
6317 * grub-core/efiemu/i386/loadcore32.c
6318 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6319 * grub-core/efiemu/i386/loadcore64.c
6320 (grub_arch_efiemu_relocate_symbols64): Likewise.
6321 * grub-core/efiemu/i386/pc/cfgtables.c
6322 (grub_machine_efiemu_init_tables): Likewise.
6323 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6324 (grub_efiemu_loadcore_initXX): Add a filename argument.
6325 All users updated.
6326 Improved error message.
6327 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6328 Add a filename argument.
6329 All users updated.
6330 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6331 Reclassify double relocation as GRUB_ERR_BUG.
6332
306fc074
VS
63332012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6334
6335 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6336 handling.
6337
794d8ef2
VS
63382012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6341 on partition.
6342
63432012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
6344
6345 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6346
794d8ef2 63472012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
6348
6349 Improve string. Gettextize.
6350
78dde88e
VS
63512012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6352
6353 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6354 utils.
6355 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6356
4786a90f
VS
63572012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6360 [GRUB_UTIL]: New function.
6361 (insert_array) [GRUB_UTIL]: Store partmaps.
6362 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6363 partmaps.
6364 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6365 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6366 (probe_abstraction): Print diskfilter and not raid.
6367 Reported by: Lennart Sorensen
6368
0b6225bd
VS
63692012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6370
6371 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6372 * util/grub-mkimagexx.c (MASK3): New define.
6373 (add_value_to_slot_20b): Use MASK3.
6374 (add_value_to_slot_21): Likewise.
6375 (relocate_addresses): Fix format specification.
6376 (load_image): Explicitly init symtab_section.
6377
b055f8f6
VS
63782012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6379
6380 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6381 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6382
b77c2fb7
VS
63832012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6384
6385 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6386 on powerpc.
6387 Reported by: Lennart Sorensen
6388
e3ec28ab
VS
63892012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6390
6391 * gentpl.py: Add missing license header.
6392 * docs/grub.texi: Update copyright year.
6393
c8d9ead6
GS
63942012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6395
6396 Source grub-mkconfig_lib from the build directory at build time.
6397 Suggested by: Vladimir Serbinenko.
6398
6399 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6400 * util/grub-install.in: Define pkgdatadir if not already set, and source
6401 grub-mkconfig_lib from there.
6402 * util/grub-kbdcomp.in: Likewise.
6403 * util/grub-mkconfig.in: Likewise.
6404 * util/grub-mknetdir.in: Likewise.
6405 * util/grub-mkrescue.in: Likewise.
6406 * util/grub-mkstandalone.in: Likewise.
6407 * util/grub-reboot.in: Likewise.
6408 * util/grub-set-default.in: Likewise.
6409 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6410
ebcecdf1
VS
64112012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6412
6413 Increase warning level.
6414
6415 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6416 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6417 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6418 (TARGET_CFLAGS): Likewise.
6419 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6420 * grub-core/Makefile.core.def (decompressor_xz): Add
6421 -Wno-unreachable-code.
6422 (normal): Add -Wno-redundant-decls.
6423 (xzio): Add -Wno-unreachable-code.
6424 (lzopio): Add -Wno-redundant-decls -Wno-error.
6425 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6426 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6427 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6428 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6429 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6430 * grub-core/kern/i386/coreboot/init.c: Add exception to
6431 -Wsuggest-attribute=noreturn.
6432 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6433 * grub-core/kern/ia64/dl_helper.c: Likewise.
6434 * grub-core/kern/mips/dl.c: Likewise.
6435 * grub-core/kern/sparc64/dl.c: Likewise.
6436 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6437 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6438 (memcmp): Likewise.
6439 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6440 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6441 * grub-core/loader/mips/linux.c: Likewise.
6442 * grub-core/loader/multiboot_elfxx.c: Likewise.
6443 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6444 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6445 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6446 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6447 fixme.
6448 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6449 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6450 Fix prototype.
6451
37bb97fe
VS
64522012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6455 address.
6456
29a3550b
VS
64572012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6460 Avoid improper use of strings.
6461 (grub_cmd_legacy_initrdnounzip): Likewise.
6462
dfdffd0d
VS
64632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6464
6465 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6466 attribute.
6467 (grub_util_info): Likewise.
6468 (grub_util_error): Likewise.
6469
102fae4a
VS
64702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6471
6472 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6473 * util/grub-fstest.c (fstest): Likewise.
6474
7e94d044
VS
64752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6476
6477 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6478 (grub_md_sha512_real): Likewise.
6479 (grub_util_get_geli_uuid): Likewise.
6480 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6481 (grub_util_biosdisk_open): Fix format specification.
6482 Respect format security.
6483 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6484 (xrealloc): Likewise.
6485 (xasprintf): Likewise.
6486
5ebd9769
VS
64872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 * util/import_gcry.py: Include grub/crypto.h in init.c.
6490
495fc8c1
VS
64912012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6494 (generate_image): Make prefix a const char *.
6495 Fix format specifications. Respect format security.
6496 Avoid void * arithmetics.
6497 Avoid shadowing.
6498 (argp_parser): Remove unused variable. Respect format security.
6499 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6500 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6501 (count_funcs): Remove unused variable.
6502 (relocate_addresses): Fix format specification.
6503 Disable x86-64 with elf32. Remove unused variables.
6504 (add_fixup_entry): Avoid shadowing.
6505 (make_reloc_section): Fix format specification.
6506 Use assert.
6507 (locate_sections): Fix format specifications.
6508 (load_image): Avoid shadowing.
6509
043c2ea3
VS
65102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6511
6512 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6513 Fix format specifications. Respect format security.
6514 Don't translate already translated grub_errmsg.
6515 (argp_parser): Remove unused variable
6516
3ec65a81
VS
65172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6520
a4d9fe4a
VS
65212012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6524 (main): Likewise. Use xmalloc. Respect format security.
6525
15b81d49
VS
65262012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6527
6528 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6529 a const char *.
6530 (argp_parser): Remove unused variable.
6531
31731fc0
VS
65322012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6535 (add_pixel): Make static.
6536 (add_font): Likewise.
6537 (write_string_section): Make name and str a const char *.
6538 (write_be16_section): Make name a const char *.
6539 (print_glyphs): Make static.
6540 (write_font_ascii_bitmap): Likewise.
6541 (write_font_width_spec): Likewise.
6542 (write_font_pf2): Likewise.
6543 (argp_parser): Remove unused variable.
6544 Respect format security.
6545 (main): Avoid shadowing. Respect format security.
6546
0809527b
VS
65472012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 * util/grub-editenv.c (argp_parser): Make static.
6550 (create_envblk_file): Use xmalloc.
6551 (open_envblk_file): Likewise.
6552 Resepect format security.
6553 (set_variables): Respect format security.
6554
45b0c8b7
VS
65552012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 * util/getroot.c (grub_find_device): Respect format security.
6558 (get_mdadm_uuid): Remove unused variable.
6559 (grub_util_pull_device): Dont call gettext on already translated
6560 grub_errmsg.
6561 (find_system_device): Remove unused variable.
6562 (grub_util_get_grub_dev): Likewise.
6563 (grub_make_system_path_relative_to_its_root): Respect format security.
6564
1b024b4e
VS
65652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 * util/grub-fstest.c (execute_command): Make first argument
6568 a const char *.
6569 (read_file): Avoid shadowing.
6570 Reuse underlying error message if device open fails.
6571 (cmd_cmp): Respect format security.
6572 (root): Make const char *.
6573 (fstest): Remove args argument and use global copy.
6574 Respect format security.
6575 (argp_parser): Make static.
6576 (main): Make default_root const char *.
6577
5d1d4e28
VS
65782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * util/grub-mount.c (root): Make const char *.
6581 (execute_command): Make first argument a const char *.
6582 (fuse_init): Respect format security.
6583 (argp_parser): Make static. Remove unused variable.
6584 (main): Make default_root a const char *.
6585 Respect format security.
6586
36eb7379
VS
65872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6588
6589 * util/grub-probe.c (probe): Don't call gettext on already translated
6590 grub_errmsg.
6591 Remove unused variables.
6592 (argp_parser): Remove unused variable.
6593
76fb2ea9
VS
65942012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 * util/grub-script-check.c (argp_parser): Remove unused variable.
6597 (main): Rename read to curread to avoid shadowing.
6598
56c98584
VS
65992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 * util/misc.c (grub_util_write_image_at): Fix format specification.
6602 (grub_util_write_image): Likewise.
6603 (grub_script_execute_argument_to_string): Removed (unused).
6604 (grub_script_execute_menuentry): Likewise.
6605 (grub_putchar): Likewise.
6606
164ebb48
VS
66072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6610 (FUNCTION) [GRUB_UTIL]: Likewise.
6611 (VARIABLE) [GRUB_UTIL]: Likewise.
6612
44318d61
VS
66132012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6614
6615 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6616 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6617
31a26002
VS
66182012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6621 buffer.
6622
66232012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6624
6625 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6626 (LzmaEnc_SaveState): Removed (unused).
6627 (LzmaEnc_RestoreState): Likewise.
6628 (LzmaEnc_InitPriceTables): Made static.
6629 (LzmaEnc_Construct): Likewise.
6630 (LzmaEnc_FreeLits): Likewise.
6631 (LzmaEnc_Destruct): Likewise.
6632 (LzmaEnc_Init): Likewise.
6633 (LzmaEnc_InitPrices): Likewise.
6634 (LzmaEnc_Finish): Likewise.
6635 (LzmaEnc_PrepareForLzma2): Removed (unused).
6636 (LzmaEnc_MemPrepare): Likewise.
6637 (LzmaEnc_GetNumAvailableBytes): Likewise.
6638 (LzmaEnc_GetCurBuf): Likewise.
6639 (LzmaEnc_CodeOneMemBlock): Likewise.
6640
6fa67967
VS
66412012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6644 (grub_util_ldm_embed): Likewise.
6645
9a7428e6
VS
66462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6647
6648 * util/grub-editenv.c (print_var): Rename name to varname to
6649 avoid shadowing.
6650 (main): Rename index to curindex to avoid shadowing.
31a26002 6651 Make filename a const char *.
9a7428e6 6652
4f96abd1
VS
66532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6654
6655 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6656 to arg_getline to avoid shadowing.
6657
44d10dad
VS
66582012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6661 disk_ to avoid shadowing.
6662
340ba63e
VS
66632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6666 curindex to avoid shadowing.
6667 Make static.
6668 (MatchFinder_GetNumAvailableBytes): Make static.
6669
22965bce
VS
66702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6673 avoid shadowing.
6674
7b5784d4
VS
66752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6678 argument from encrypt to do_encrypt to avoid shadowing.
6679
6f48ca01
VS
66802012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6683 incorrect nesting of #if's.
6684
a4ea2dff
VS
66852012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6686
6687 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6688 checks which are always false on some platforms.
6689 (grub_cmd_lsacpi): Likewise.
6690 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6691 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6692 Likewise.
6693
def9fc1b
VS
66942012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6695
6696 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6697 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6698
a67b2a04
VS
66992012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6700
6701 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6702 re_dfa_t to avoid breaking alignment invariants.
6703 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6704 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6705
44c6828d
VS
67062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6709 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6710
bebe0dd0
VS
67112012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6714 Fix declaration.
6715
a9cdb3cf
VS
67162012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6717
6718 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6719 conserve alignment invariants.
6720 (grub_ehci_ehcc_read16): Likewise.
6721 (grub_ehci_oper_read32): Likewise.
6722 (grub_ehci_oper_write32): Likewise.
6723 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6724 Conserve alignment invariants.
6725
ccc3b1b8
VS
67262012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6729 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6730 declarations.
6731
987fbd95
VS
67322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6735 Remove unused variable.
6736
0df363f3
VS
67372012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6738
6739 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6740 Remove set in if.
6741
b2c0c4a6
VS
67422012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6743
6744 * include/grub/net.h: Remove double declarations.
6745
690c531f
VS
67462012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 Remove "payload" command in ia64 Linux loader since I couldn't
6749 find any evidence of it being used for anything.
6750 Replace "relocate" command with an environment variable
6751
6752 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6753 fields.
6754 (ia64_boot_payload): Removed.
6755 (last_payload): Likewise.
6756 (RELOCATE_OFF): Likewise.
6757 (RELOCATE_ON): Likewise.
6758 (RELOCATE_FORCE): Likewise.
6759 (relocate): Likewise.
6760 (free_pages): Don't free payloads.
6761 (grub_load_elf64): Use common error messages.
6762 Use "linux_relocate" variable.
6763 Increase the space after boot_params.
6764 (grub_cmd_payload): Removed.
6765 (grub_cmd_relocate): Likewise.
6766 (grub_cmd_fpswa): Improve messages.
6767 (cmd_payload): Removed.
6768 (cmd_relocate): Likewise.
6769 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6770 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6771
01783768
VS
67722012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6773
6774 Convert UHCI to DMA framework.
6775
6776 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6777 (grub_uhci_pci_iter): Fill new members
6778 (grub_alloc_td): Use P2V and V2P functions.
6779 (grub_free_queue): Likewise.
6780 (grub_alloc_qh): Likewise.
6781 (grub_uhci_setup_transfer): Likewise.
6782 (grub_uhci_check_transfer): Likewise.
6783
43206939
VS
67842012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6785
6786 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6787 Remove assignment in if while on it.
6788
571e140e
VS
67892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * util/grub-mkstandalone.in: Fix modules directory.
6792
a9d96eeb
VS
67932012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6796 on i386-pc target.
6797 (argp_parser): Accept "auto" as compression specification.
6798
e4e37e8d
VS
67992012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6800
6801 Fix `help' with unloaded modules.
6802
6803 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6804 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6805 (grub_dyncmd_dispatcher): Small stylistic fix.
6806 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6807 explicit help is requested.
6808
e1ea3ade
VS
68092012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6810
6811 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6812 Explicitly init restart while on it.
6813
27556881
VS
68142012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6815
6816 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6817 uninited variable.
6818
d65f6b36
VS
68192012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6820
6821 * util/grub-mknetdir.in: Use . rather than source for POSIX
6822 compatibility.
6823
0a1e473c
VS
68242012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6827
ce6647c8
VS
68282012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6829
6830 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6831 variable.
6832
66747894
VS
68332012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6836 without quotes.
6837
71645f6e
VS
68382012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6841
0e1c1f61
VS
68422012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6845 iteration of partitions.
6846
9c4b5c13
VS
68472012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 Improve gettext support. Stylistic fixes and error handling fixes while
6850 on it.
6851
215c90cb
VS
68522012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6855 part. Instead setup the correct stack in RM.
6856 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6857 for stack.
6858 * include/grub/i386/relocator_private.h: New file.
6859
b5c1f9bf
VS
68602012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6861
6862 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6863 argument.
6864 * util/grub-fstest.c (options): Add missing DEVICE part.
6865
b525fd83
VS
68662012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 Clarify and unify messages.
6869
6870 * grub-core/commands/hashsum.c (options): Unify messages.
6871 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6872 literal-only message as translatable.
6873 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6874 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6875 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6876 commands.
6877 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6878 key, not the key used to unlock. Clarify what it's used for.
6879 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6880 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6881 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6882 * util/grub-editenv.c (options): Unify "verbose" message.
6883 * util/grub-fstest.c (read_file): Unify error message.
6884 (fstest): Add quotes around commands.
6885 (options): Unify "verbose" message.
6886 * util/grub-install.in: Add quotes around variable name.
6887 * util/grub-kbdcomp.in: Unify error message.
6888 * util/grub-mkfont.c (main): Likewise.
6889 * util/grub-mkrescue.in: Likewise.
6890 * util/grub-mklayout.c (options): Unify "verbose" message.
6891 * util/grub-mkstandalone.in: Unify help and verbose messages.
6892 * util/grub-mount.c (options): Unify "verbose" message.
6893 * util/grub-probe.c (options): Likewise.
6894 * util/grub-script-check.c (options): Likewise.
6895 * util/grub-setup.c (setup): Unify no-terminator message.
6896 (options): Use DEVICE and not DEV.
6897 Unify "verbose" message.
6898 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6899
0ae70393
VS
69002012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 Improve and unify messages.
6903
6904 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6905 name. All users updated.
6906 Print filename in error.
6907 (read_device_map): Print filename in error.
6908 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6909 (grub_util_get_os_disk): Likewise.
6910 (grub_util_biosdisk_get_grub_dev): Likewise.
6911 (grub_util_check_block_device): Likewise.
6912 (grub_util_check_char_device): Likewise.
6913 (grub_make_system_path_relative_to_its_root): Likewise.
6914 * util/grub-editenv.c (create_envblk_file): Likewise.
6915 (open_envblk_file): Likewise.
6916 (write_envblk): Likewise.
6917 * util/grub-fstest.c (cmd_cp): Likewise.
6918 (cmd_cat): Likewise.
6919 (cmd_cmp): Likewise.
6920 * util/grub-menulst2cfg.c (main): Likewise.
6921 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6922 (write_font_width_spec): Likewise.
6923 (write_font_pf2): Likewise.
6924 * util/grub-mkimage.c (generate_image): New argument outname.
6925 All users updated.
6926 Remove unreacheable message.
6927 (options): Unify messages.
6928 (help_filter): Likewise.
6929 * util/grub-mklayout.c (usage): Removed (unused).
6930 (main): Print filename in error.
6931 * util/grub-mkrescue.in: Fix wrong quoting.
6932 * util/grub-setup.c (setup): Print filename in error.
6933 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6934 (check_sas): Likewise.
6935 * util/misc.c (grub_util_get_fp_size): Removed.
6936 (grub_util_get_image_size): Print filename in error.
6937 (grub_util_read_at): Removed.
6938 (grub_util_read_image): Print filename in error.
6939 (grub_util_load_image): Likewise.
6940 (grub_util_write_image_at): New argument filename. All users updated.
6941 Print filename in error.
6942 (grub_util_write_image): New argument filename. All users updated.
6943 Print filename in error.
6944 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6945 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6946
0a96117d
VS
69472012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 * grub-core/Makefile.core.def (pxechain): New module.
6950 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6951 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6952 function.
6953 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6954 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6955
aca002f7
VS
69562012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6959 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6960 * include/grub/err.h (grub_error_saved): New struct.
6961 (grub_errmsg): Make array size explicit.
6962 * include/grub/misc.h (grub_error_save): New function.
6963 (grub_error_load): Likewise.
6964 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6965 (grub_error_push): Update `errno' member name.
6966 (grub_error_pop): Likewise
6967 * grub-core/net/tftp.c (tftp_data): New member save_err.
6968 (tftp_receive): Save error.
6969 (tftp_open): Restore error.
6970
a51dab13
VS
69712012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6972
6973 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6974 to real mode down to execute A20-related code in protected mode as
6975 intended.
6976
eb6e6649
GS
69772012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6978
6979 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6980 NULL when the argument `level' has an unexpected value.
6981
92cd0f6e
VS
69822012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6983
6984 Move platform-dependent files from $prefix to $prefix/$platform.
6985
6986 * config.h.in (GRUB_TARGET_CPU): New definition.
6987 (GRUB_PLATFORM): Likewise.
6988 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6989 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6990 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6991 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6992 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6993 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6994 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6995 * grub-core/normal/term.c (read_terminal_list): Likewise.
6996 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6997 $prefix/locale.
6998 (grub_gettext_init_ext): Likewise.
6999 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
7000 grub_platform.
7001 * util/grub-install.in: Update directories.
7002 * util/grub-mknetdir.in: Likewise.
7003 * util/grub-mkrescue.in: Likewise.
7004
db606889
VS
70052012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7006
7007 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
7008 grub_error framework. All users updated.
7009
c39992a4
VS
70102012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
7013 lists (by always binsearching), improve caching (cache strings
7014 used for binsearch, not only results), improve
7015 maintainability (by using more structured binary search) and correct
7016 error handling.
7017
1e5ec32f
VS
70182012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 * grub-core/script/execute.c (grub_script_return): Fix warning.
7021
ac576cde
VS
70222012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7023
7024 * grub-core/script/execute.c (grub_script_return): Fix potential
7025 NULL-dereference.
7026 Reported by: Jim Meyering.
7027
498453f6
VS
70282012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7029
7030 * po/POTFILES.in: Regenerate.
7031 * util/grub-install.in: Gettextize the strings missed in first pass.
7032
8be63f2e
VS
70332012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7034
7035 * Makefile.util.def (grub-mkdevicemap): Removed.
7036 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
7037 * include/grub/util/deviceiter.h: Removed.
7038 * util/deviceiter.c: Likewise.
7039 * util/getroot.c (grub_util_get_os_disk): New function.
7040 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
7041 replacement for EFI.
7042 * util/grub-mkdevicemap.c: Removed.
7043 * util/grub-probe.c (probe): Handle PRINT_DISK.
7044 (argp_parser): Handle -t disk.
7045
8e1e4e39
VS
70462012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 * util/grub-mkfont.c: Migrate to argp.
7049 * util/grub-mklayout.c: Likewise.
7050 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7051 * util/grub-mkrelpath.c: Likewise.
7052 * util/grub-probe.c: Likewise.
7053 * util/grub-script-check.c: Likewise.
7054
4459819a
VS
70552012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 * util/grub-reboot.in: Add missing datarootdir.
7058 Add missing newline.
7059 * util/grub-set-default.in: Add missing datarootdir.
7060 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
7061 * util/grub-mkrescue.in: Likewise.
7062
f65741c7
VS
70632012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7064
7065 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
7066
c1a33466
VS
70672012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7068
7069 * util/grub-kbdcomp.in: Add decent help and gettextize.
7070 * docs/man/grub-kbdcomp.h2m: New file.
7071
c76899a0
VS
70722012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7073
7074 Migrate grub-mkimage.c to argp.
7075
7076 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
7077 (grub-setup): Likewise.
7078 * util/grub-setup.c (print_version): Move to ...
7079 * util/argp_common.c (print_version): ... here.
7080 * util/grub-setup.c (argp_program_version_hook): Move to ...
7081 * util/argp_common.c (argp_program_version_hook): ... here.
7082 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
7083 safety.
7084 * util/grub-mkimage.c (main): Migrate to argp.
7085
57db0757
VS
70862012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7087
7088 * util/grub-mkrescue.in: Use same message as
7089 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
7090 for better translations.
7091
18534ad9
VS
70922012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7093
7094 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
7095 options with generic grub-mkrescue.in with the goal of future
7096 merge.
7097
c84ba308
VS
70982012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7099
7100 * grub-core/kern/mm.c: Add missing include of i18n.h
7101 * grub-core/lib/relocator.c: Likewise.
7102
347998c2
VS
71032012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7104
7105 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
7106 error.
7107 (allocate_pages): Check return value.
7108 Replace fatal with error.
7109 (grub_linux_boot): Replace printf with dprintf.
7110 Check find_mmap_size return value.
7111 Replace fatal with error.
7112 Don't call grub_machine_fini.
7113 (grub_load_elf64): Replace printf with dprintf.
7114 (grub_cmd_linux): Likewise.
7115 (grub_cmd_initrd): Likewise.
7116 (grub_cmd_payload): Likewise.
7117
c779226e
VS
71182012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7119
7120 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
7121 message.
7122 * grub-core/video/radeon_fuloong2e.c
7123 (grub_video_radeon_fuloong2e_setup): Likewise.
7124 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
7125 * grub-core/video/video.c (grub_video_set_mode): Don't override
7126 standard out of memory message.
7127
dc87d45a
GS
71282012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7129
7130 NetBSD disk wedge support.
7131
7132 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
7133 [__NetBSD__]: Handle NetBSD disk wedges.
7134 * util/getroot.c (convert_system_partition_to_system_disk)
7135 [__NetBSD__]: Likewise.
7136
055f856f
MW
71372012-02-03 Mark Wooding <mdw@distorted.org.uk>
7138
7139 * util/grub-mkconfig.in: Use umask rather than chmod to create
7140 grub.cfg.new to avoid insecure grub.cfg.
7141
4a9f8346
VS
71422012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7143
7144 * grub-core/commands/ls.c: Gettextize.
7145 * grub-core/commands/setpci.c: Likewise.
7146 * grub-core/commands/videotest.c: Likewise.
7147 * grub-core/disk/geli.c: Likewise.
7148 * grub-core/kern/mm.c: Likewise.
7149 * grub-core/lib/relocator.c: Likewise.
7150 * grub-core/loader/efi/appleloader.c: Likewise.
7151 * grub-core/loader/i386/xnu.c: Likewise.
7152 * grub-core/loader/ia64/efi/linux.c: Likewise.
7153 * grub-core/loader/xnu.c: Likewise.
7154 * grub-core/net/dns.c: Likewise.
7155 * grub-core/net/net.c: Likewise.
7156 * grub-core/script/lexer.c: Likewise.
7157 * grub-core/script/parser.y: Likewise.
7158 * grub-core/script/yylex.l: Likewise.
7159 * util/getroot.c: Likewise.
7160 * util/grub-setup.c: Likewise.
7161
a646a366
VS
71622012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
7165 number.
7166
54e2be26
VS
71672012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7168
7169 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
7170
f7c71e68
VS
71712012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
7174 macro.
7175 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
7176 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
7177
a32d5c71
VS
71782012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7179
7180 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
7181 * util/grub-install.in: Gettextize.
7182 * util/grub-mkconfig.in: Likewise.
7183 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
7184 if not available.
7185 (grub_warn): Gettextize.
7186 * util/grub-mknetdir.in: Gettextize.
7187 * util/grub-mkrescue.in: Likewise.
7188 * util/grub-mkstandalone.in: Likewise.
7189 * util/grub-reboot.in: Likewise.
7190 * util/grub-set-default.in: Likewise.
7191 * util/grub.d/00_header.in: Likewise.
7192 * util/grub.d/10_hurd.in: Likewise.
7193 * util/grub.d/10_kfreebsd.in: Likewise.
7194 * util/grub.d/10_linux.in: Likewise.
7195 * util/grub.d/10_netbsd.in: Likewise.
7196 * util/grub.d/10_windows.in: Likewise.
7197 * util/grub.d/20_linux_xen.in: Likewise.
7198 * util/grub.d/30_os-prober.in: Likewise.
7199 * po/POTFILES-shell.in: Regenerate.
7200
69edd81a
RL
72012012-02-03 Richard Laager <rlaager@wiktel.com>
7202
7203 * util/grub-mkimage.c (main): Fix format-security warning.
7204 * util/grub-mkrelpath.c (main): Likewise.
7205 * util/grub-probe.c (main): Likewise.
7206
65f08dbf
RL
72072012-02-03 Richard Laager <rlaager@wiktel.com>
7208
7209 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
7210 failure.
7211 Put back lost PRINT_DRIVE.
7212
e9084abe
RL
72132012-02-03 Richard Laager <rlaager@wiktel.com>
7214
7215 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
7216 (grub_guess_root_devices): Replace strlen with sizeof.
7217 Avoid crash.
7218 (find_root_devices_from_poolname): Remove unused variable.
7219 Handle raidzN.
7220
cf5f7ee7
VS
72212012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7222
7223 Support install on multi-device filesystems.
7224
7225 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
7226 (grub_guess_root_devices): ...this. Return char **. All users updated.
7227 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
7228 Removed.
7229 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
7230 (find_root_devices_from_poolname): ... here.
7231 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
7232 Support zfs-fuse.
7233 (grub_guess_root_device): Rename to ...
7234 (grub_guess_root_devices): ... this. Return char **. All users updated.
7235 * util/grub-install.in: Handle multi-device filesystems.
7236 * util/grub-probe.c (probe). Make device_names a char **. Add delim
7237 argument. All users updated.
7238 Handle multi-device filesystems.
7239 Use 'delim' as separator.
7240 Remove device check to allow filesystems on file.
7241 (main): Support -0 argument. Handle multi-device.
7242 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
7243 Fix a cross-device check while on it.
7244 (arguments): Remove root_dev.
7245 (argp_parser): Remove -r.
7246 (main): Remove root_dev.
7247
2f53a9ed
VS
72482012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7249
7250 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
7251
17e1d934
VS
72522012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
7255 symbol.
7256 Reported by: NODA, Kai <nodakai>.
7257
d3e3fab5
VS
72582012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7259
7260 Fix ehci on amd64.
7261
7262 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
7263 pointers.
7264 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
7265 (grub_ehci_setup_qh): Likewise.
7266 (grub_ehci_find_qh): Likewise.
7267 (grub_ehci_transaction): Likewise.
7268 (grub_ehci_setup_transfer): Likewise.
7269 (grub_ehci_check_transfer): Likewise.
7270 (grub_ehci_portstatus): Likewise.
7271 (grub_ehci_detect_dev): Likewise.
7272 (grub_ehci_transfer_controller_data): New field td_last_phys.
7273 (grub_ehci_setup_transfer): Fill td_last_phys.
7274 (grub_ehci_check_transfer): Use td_last_phys.
7275
3008675b
SG
72762012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7277
7278 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7279 if no submenu is present.
7280
fc9b5652
AN
72812012-02-01 Aleš Nesrsta <starous@volny.cz>
7282
7283 CBI support.
7284
7285 * include/grub/usb.h (grub_usbms_protocol_t): New values
7286 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7287 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7288 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7289 (grub_usbms_dev): Add subclass, protocol and intrpt.
7290 Remove in_maxsz and out_maxsz.
7291 (grub_usbms_reset): Rename to ...
7292 (grub_usbms_bo_reset): .. this.
7293 (grub_usbms_cbi_cmd): New function.
7294 (grub_usbms_cbi_reset): Likewise.
7295 (grub_usbms_reset): Likewise.
7296 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7297 (grub_usbms_transfer): Rename to ...
7298 (grub_usbms_transfer_bo): ... this.
7299 (grub_usbms_transfer_cbi): Likewise.
7300 (grub_usbms_transfer): Likewise.
7301
a2b81d53
AN
73022012-02-01 Aleš Nesrsta <starous@volny.cz>
73032012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7304
7305 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7306 the support for the CS5536 modification thereos and few bugfixes.
7307
7308 * grub-core/Makefile.core.def (ehci): New module.
7309 * grub-core/bus/usb/ehci.c: New file.
7310 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7311 port and hubaddr. All users updated.
7312 Save port and hubaddr into dev structure.
7313 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7314 define.
7315 * include/grub/pci.h (grub_dma_phys2virt): New function.
7316 (grub_dma_virt2phys): Likewise.
7317 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7318
b1d51f02
VS
73192012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7320
7321 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7322 check as some mkfs implementations omit it.
7323
fc694106
VS
73242012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7327
6c0920e3
VS
73282012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7329
7330 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7331 Add new member volname2.
7332 (grub_jfs_label): Use volname2 if available.
7333
d1a46f9a
VS
73342012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7337 over last_mounted as seen in image generated by mkfs.nilfs2.
7338 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7339
dec8ed14
VS
73402012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7343 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7344 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7345
7397c69b
VS
73462012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7347
7348 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7349 over the sector.
7350
b3fe42ad
VS
73512012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7352
7353 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7354 subvolume name (by removing a bogus and useless check).
7355
10476bb0
VS
73562012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7359 sizeof while on it.
7360
9c08ad87
VS
73612012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7362
7363 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7364 (grub_scsi_read_capacity10): ... this.
7365 (grub_scsi_read_capacity16): New function.
7366 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7367 0xffffffff.
7368 Fix off-by-one error.
7369 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7370 64-bit unsigned.
7371 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7372 (grub_scsi_read_capacity10): ... this.
7373 (grub_scsi_read_capacity_data): Rename to ...
7374 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7375 (grub_scsi_read_capacity16): New struct.
7376 (grub_scsi_read_capacity16_data): Likewise.
7377 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7378 grub_scsi_cmd_read_capacity10.
7379 New command grub_scsi_cmd_read_capacity16.
7380
bc8d0f45
VS
73812012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7382
7383 SCSI >2TiB support.
7384
7385 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7386 (grub_scsi_write16): Likewise.
7387 (grub_scsi_read): Use read16 when necessary.
7388 (grub_scsi_write): Likewise.
7389 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7390 (grub_scsi_write16): Likewise.
7391 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7392
cc774926
VS
73932012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7394
7395 SCSI write support (for usbms mainly).
7396
7397 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7398 a const pointer.
7399 (grub_scsi_write): Implement.
7400 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7401
67639fd7
VS
74022012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7403
7404 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7405 variable.
7406
9079d3ed
VS
74072012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7408
7409 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7410
c6a6f204
VS
74112012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7412
7413 * po/POTFILES.in: Regenerate.
7414
ecbf8cd1
VS
74152012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7416
7417 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7418 with grub_printf to avoid unnecessary fatal failure.
7419
0b3b3b38
VS
74202012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7421
7422 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7423 (INT_MAX): Likewise.
7424 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7425 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7426 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7427 (strcpy): Likewise.
7428 (strstr): Likewise.
7429 (strchr): Likewise.
7430 (strncpy): Likewise.
7431 (strcat): Likewise.
7432 (strncat): Likewise.
7433 (strcoll): Likewise.
7434 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7435 (GRUB_INT_MAX): Likewise.
7436
db7337a3
VS
74372012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7440 unexpected error.
7441 (optimize_utf8): Likewise.
7442 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7443
f37c87e1
VS
74442012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 * grub-core/boot/i386/pc/lnxboot.S: Use
7447 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7448 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7449 location.
7450 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7451 definition.
7452 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7453
63fe43f3
VS
74542012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7457 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7458 now to avoid double free.
7459 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7460 hostdisk.
7461 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7462 * util/grub-probe.c (escape_of_path): Always return a new copy.
7463 (print_full_name): Escape path.
7464 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7465 Fix hints on abstractions.
7466
ebe2c961
VS
74672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7470 Don't add "root" line if no compatibility hont is available.
7471 Suggested by: Seth Goldberg.
7472
2b5336a2
VS
74732012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7474
7475 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7476 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7477 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7478 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7479
74310bd8
VS
74802012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7481
7482 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7483
c30582ba
VS
74842012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7485
7486 * util/grub-pe2elf.c (ehdr): Make static.
7487 (shdr): Likewise.
7488 (num_sections): Likewise.
7489 (offset): Likewise.
7490
5f47782c
VS
74912012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7492
7493 Eliminate ofpath limits and possible overflows.
7494
7495 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7496 (OF_PATH_MAX): Removed.
7497 (MAX_DISK_CAT): New const.
7498 (find_obppath): Use allocated rather than preallocated buffer.
7499 Return result. Argument of_path removed. All users updated.
7500 Add missing fdstat.
7501 (xrealpath): New function.
7502 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7503 Allocate rather than use preallocated buffer. All users updated.
7504 (__of_path_common): Use allocated rather than preallocatecd buffer.
7505 Return result. Argument of_path removed. All users updated.
7506 (vendor_is_ATA): Read only needed part form the file.
7507 (check_sas): Allocate depending on contents rather than fixed.
7508 (main) [STANDALONE]: Handle NULL result.
7509
f990cbf9
VS
75102012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7513
9c6e84b8
VS
75142012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7515
7516 Cryptodisk write support.
7517
7518 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7519 (grub_cryptodisk_decrypt): Moved logic to ...
7520 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7521 (grub_cryptodisk_write): Implement.
7522 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7523 (grub_util_fd_write): ... this. Make global.
7524 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7525
87cf9744
VS
75262012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7527
7528 * include/grub/list.h (grub_list_remove): Don't crash if element is
7529 removed twice.
7530
ca8c0baf
VS
75312012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 Rename ofconsole to console.
7534
7535 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7536 as sysnonym to console.
7537 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7538 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7539 Rename grub_ofconsole_ to grub_console_. All users updated
7540 (grub_console_term_output): Rename "ofconsole" to "console".
7541 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7542 as "console".
7543
64c8b8f6
VS
75442012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7545
7546 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7547 handling.
7548 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7549 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7550 GRUB_DISK_DEVICE_FILE_ID.
7551
f6c434d5
VS
75522012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7553
7554 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7555 and improve performance.
7556
5858b42d
VS
75572012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7558
7559 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7560 missing ieee1275/ prefix on whole disk.
7561
4ed3c26b
VS
75622012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7565 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7566
df71143e
VS
75672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7568
7569 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7570
076e7c0f
VS
75712012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7572
7573 Merge common RAID and LVM logic to an abstract diskfilter.
7574 Add LDM support using the same framework.
7575
7576 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7577 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7578 (libgrubmods): Remove grub-core/disk/raid.c and
7579 grub-core/partmap/gpt.c.
7580 * grub-core/Makefile.core.def (ldm): New module.
7581 (raid): Renamed to diskfilter. All users updated.
7582 * grub-core/disk/raid.c: Moved to ...
7583 * grub-core/disk/diskfilter.c: ... here.
7584 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7585 (lv_num): New var.
7586 (find_array): Renamed to ...
7587 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7588 (grub_is_array_readable): Renamed to ...
7589 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7590 (insert_array): New argument id.
7591 (is_node_readable): New function.
7592 (scan_device): Rename to ...
7593 (scan_disk): .. this. Restrict to one disk.
7594 (scan_devices): New function.
7595 (grub_diskfilter_iterate): Support multi-LV.
7596 Skip invisible and nameless LVs.
7597 (grub_diskfilter_memberlist): Support multi-LV.
7598 (grub_diskfilter_read_node): New function.
7599 (grub_raid_read): Most of logic moved to ...
7600 (read_segment): ... here
7601 (read_lv): New function.
7602 (grub_diskfilter_get_vg_by_uuid): New function.
7603 (grub_diskfilter_make_raid): Likewise.
7604 * grub-core/disk/ldm.c: New file.
7605 * grub-core/disk/lvm.c (vg_list): Removed.
7606 (lv_count): Likewise.
7607 (scan_depth): Likewise.
7608 (is_lv_readable): Likewise.
7609 (grub_lvm_getvalue): Advance pointer past the number.
7610 (find_lv): Removed.
7611 (do_lvm_scan): Refactored into ...
7612 (grub_lvm_detect): ... this. Support raid.
7613 (grub_lvm_iterate): Removed.
7614 (grub_lvm_memberlist): Likewise.
7615 (grub_lvm_open): Likewise.
7616 (grub_lvm_close): Likewise.
7617 (read_lv): Likewise.
7618 (read_node): Likewise.
7619 (is_node_readable): Likewise.
7620 (is_lv_readable): Likewise.
7621 (grub_lvm_read): Likewise.
7622 (grub_lvm_write): Likewise.
7623 (grub_lvm_dev): Use diskfilter
7624 (GRUB_MOD_INIT): Likewise.
7625 (GRUB_MOD_FINI): Likewise.
7626 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7627 new interface.
7628 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7629 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7630 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7631 grub_diskfilter_read_node.
7632 Fix a bug with xor.
7633 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7634 grub_diskfilter_read_node.
7635 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7636 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7637 (grub_disk_dev_iterate): Move from here...
7638 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7639 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7640 Make global.
7641 (grub_hostdisk_find_partition_start): Likewise.
7642 (grub_hostdisk_os_dev_to_grub_drive): New function.
7643 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7644 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7645 * util/getroot.c (make_device_name): ... here.
7646 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7647 Move to ...
7648 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7649 * grub-core/kern/emu/hostdisk.c
7650 (convert_system_partition_to_system_disk): Move to ...
7651 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7652 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7653 * util/getroot.c (device_is_wholedisk): ... here.
7654 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7655 * util/getroot.c (find_system_device): ... here.
7656 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7657 Move to ...
7658 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7659 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7660 Move to ...
7661 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7662 Handle LDM.
7663 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7664 Move to ...
7665 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7666 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7667 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7668 DISKFILTER.
7669 * include/grub/raid.h: Renamed to ...
7670 * include/grub/diskfilter.h: ... this.
7671 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7672 (GRUB_RAID_LAYOUT_*): Make into array.
7673 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7674 (grub_diskfilter_vg): New struct.
7675 (grub_diskfilter_pv_id): Likewise.
7676 (grub_raid_member): Removed.
7677 (grub_raid_array): Likewise.
7678 (grub_diskfilter_pv): New struct.
7679 (grub_diskfilter_lv): Likewise.
7680 (grub_diskfilter_segment): Likewise.
7681 (grub_diskfilter_node): Likewise.
7682 (grub_diskfilter_get_vg_by_uuid): New proto.
7683 (grub_raid_register): Inline.
7684 (grub_diskfilter_unregister): Likewise.
7685 (grub_diskfilter_make_raid): New proto.
7686 (grub_diskfilter_vg_register): Likewise.
7687 (grub_diskfilter_read_node): Likewise.
7688 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7689 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7690 (grub_util_is_ldm): Likewise.
7691 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7692 (grub_hostdisk_find_partition_start): Likewise.
7693 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7694 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7695 New definition.
7696 (grub_gpt_partition_map_iterate): New proto.
7697 * include/grub/lvm.h (grub_lvm_vg): Removed.
7698 (grub_lvm_pv): Likewise.
7699 (grub_lvm_lv): Likewise.
7700 (grub_lvm_segment): Likewise.
7701 (grub_lvm_node): Likewise.
7702 * util/getroot.c [...]
7703 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7704 (probe_abstraction): Likewise.
7705 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7706 (main): Remove dead logic.
7707
8a7f9b9c
VS
77082012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 Simplify root device discover and don't fail when trying to open
7711 incorrect devices.
7712
7713 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7714 function.
7715 (get_diskname_from_path): Likewise.
7716 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7717 of iterating.
7718
30545b85
VS
77192012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7722
28ea58cf
VS
77232012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7724
7725 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7726 pastthe end.
7727
692dabca
VS
77282012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * util/grub-install.in: Add missing \.
7731 Reported by: gentoofan
7732
f6e4ea70
VS
77332012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7734
7735 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7736 (direct_read): Use correct compressed size.
7737 (grub_squash_read_data): Likewise.
7738
77392012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
7740
7741 * docs/grub.texi (Platform limitations): New section.
7742 (Platform-specific operations): Likewise.
7743 * docs/grub-dev.texi (Porting): Likewise.
7744
76261110
VS
77452012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7746
7747 IEEE1275 disk write support.
7748
7749 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7750 const void *.
7751 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7752 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7753 and seek loginc to ...
7754 (grub_ofdisk_prepare): ... here.
7755 (grub_ofdisk_write): Implement.
7756
fc36d603
VS
77572012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7758
7759 ARC disk write support.
7760
7761 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7762 (reopen): New argument writable. All users updated.
7763 Handle required access mode.
7764 (grub_arcdisk_write): Implement.
7765 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7766 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7767
e06c2e7a
VS
77682012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7769
7770 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7771 (read_sblock): Don't attempt to read superblocks outside the disk size.
7772
ff447958
VS
77732012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7774
7775 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7776 first superblock to find the second one when possible.
7777
9e88df39
VS
77782012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7779
7780 * util/grub-install.in: Fix an ARC bug.
7781 Print a warning if no platform-specific setup is available.
7782
bb26e4ff
VS
77832012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7784
7785 Use static allocation rather than scratch pointer in reed_solomon.
7786 It decreases its size significantly and avoids a variable in .text.
7787
7788 * grub-core/lib/reed_solomon.c (scratch): Removed.
7789 (chosenstat): New const or static array.
7790 (sigma): Likewise.
7791 (errpot): Likewise.
7792 (errpos): Likewise.
7793 (sy): Likewise.
7794 (mstat): Likewise.
7795 (errvals): Likewise.
7796 (eqstat): Likewise.
7797 (pol_evaluate): Replace x with log_x argument. All users updated.
7798 (syndroms): Removed.
7799 (gauss_solve): Use statically allocated arrays.
7800 (rs_recover): Likewise.
7801 Calculate syndroms directly.
7802 (decode_block): Use statically allocated arrays.
7803 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7804 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7805
2e13ede5
VS
78062012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7807
7808 Eliminate fixed limit on reed solomon decoder length.
7809
7810 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7811 rather than hardcoding the address.
7812 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7813 no_reed_solomon_length.
7814 Move gate_a20 to no-reed-solomon part.
7815 Don't force a particular size of no reed-solomon part.
7816 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7817 Removed.
7818 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7819 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7820
f8a9ab12
VS
78212012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7822
7823 * grub-core/commands/wildcard.c (match_files): Handle filenames
7824 without explicit device.
7825 (wildcard_expand): Don't add explicit device if not already present.
7826 * tests/grub_script_echo1.in: Add a new expansion test.
7827
87edb894
VS
78282012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7829
7830 Replace single-linked with double-linked lists. It results in more
7831 compact and more efficient code.
7832
7833 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7834 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7835 (grub_list_remove): Moved from here ...
7836 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7837 (grub_prio_list_insert): Set prev.
7838 * include/grub/list.h (grub_list): Add prev. All users updated.
7839
48b391e9
VS
78402012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7841
7842 Handle newer autotools. Add some missing quotes while on it.
7843
7844 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7845 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7846 (pkgdata_DATA): ... here.
7847 * Makefile.util.def (update-grub_lib): Removed.
7848 * conf/Makefile.common (pkglib_DATA): Removed.
7849 (pkglib_SCRIPTS): Likewise.
7850 (pkgdata_DATA): New variable.
7851 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7852 needed.
7853 Add missing quotes.
7854 Remove unused variable while on it.
7855 * tests/util/grub-shell.in: Likewise.
7856 * util/grub-install.in: Likewise.
7857 * util/grub-mkconfig.in: Likewise.
7858 * util/grub-mknetdir.in: Likewise.
7859 * util/grub-mkrescue.in: Likewise.
7860 * util/grub-mkstandalone.in: Likewise.
7861 * util/grub.d/00_header.in: Likewise.
7862 * util/grub.d/10_hurd.in: Likewise.
7863 * util/grub.d/10_illumos.in: Likewise.
7864 * util/grub.d/10_kfreebsd.in: Likewise.
7865 * util/grub.d/10_linux.in: Likewise.
7866 * util/grub.d/10_netbsd.in: Likewise.
7867 * util/grub.d/10_windows.in: Likewise.
7868 * util/grub.d/20_linux_xen.in: Likewise.
7869 * util/grub.d/30_os-prober.in: Likewise.
7870 * util/update-grub_lib.in: Removed.
7871
78722012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
7873
7874 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7875 a workaround for intel problem.
7876
66832792
PRP
78772012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
78782012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
78792012-01-23 pfsmorigo
7880
7881 * util/grub-install.in: Support dd'in into PreP partition.
7882 * util/grub-probe.c (probe): Support discovering partition type.
7883 (main): Support -t msdos_parttype.
7884
7816a17e
VS
78852012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7886
7887 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7888 infinite recursion using counter.
7889 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7890 init to skip it if the magic check fails.
7891 (dec_stream_header): Init s->crc32.
7892
8f9d3a8c
ZB
78932012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
78942012-01-22 Zachary Bedell <pendorbound@gmail.com>
78952012-01-22 Richard Laager <rlaager@wiktel.com>
7896
7897 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7898 All users updated.
7899 (find_bestub): Determine correct size.
7900 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7901 (scan_disk): Align the size down.
7902 Call check pool before find_bestub to have ashift.
7903
b055dd32
VS
79042012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7905
7906 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7907 dprintf in no-malloc zone.
7908
d779e9bd
ML
79092012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7910
7911 * configure.ac: Add back in test for limits.h.
7912
b508af69
VS
79132012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 Support 4K-sector NTFS.
7916
7917 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7918 (grub_ntfs_data): Remove blocksize.
7919 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7920 Remove data argument. All users updated.
7921
dad9c8b5
VS
79222012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7923
7924 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7925 being in .text to avoid dprel references.
7926 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7927 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7928 (grub_arch_highmemsize): Likewise.
7929 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7930 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7931 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7932
d43a777e
VS
79332012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7934
7935 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7936
7937 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7938 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7939
34e4208f
VS
79402012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7941
7942 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7943 GRUB_UTIL.
7944 (grub_set_datetime_cmos): Likewise.
7945
3ec0fc1c
VS
79462012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7947
7948 Make XZ compression parameters dependent on target and not host CPU.
7949
7950 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7951 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7952
22489834
VS
79532012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7954
7955 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7956 set but not used variable.
7957
8502fbca
VS
79582012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7959
7960 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7961 created when no uuid support is compiled into mkfs.reiser.
7962
76df2068
VS
79632012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7964
7965 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7966 (utf8_to_macroman): Do the opposite.
7967 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7968
64e3f8f6
VS
79692012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7970
7971 * configure.ac: Refise build qemu_mips w/o unifont.
7972
9c271078
VS
79732012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7974
7975 Eliminate grub_min/grub_max prone to overflow usage.
7976
7977 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7978 (poll_nonroot_hub): Likewise.
7979 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7980 (grub_affs_label): Likewise.
7981 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7982 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7983 (grub_hfs_label): Likewise.
7984 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7985 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7986 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7987 (zap_leaf_array_get): Likewise.
7988 (dnode_get_path): Likewise.
7989 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7990 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7991 * grub-core/script/execute.c (grub_script_break): Likewise.
7992 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7993 grub_max.
7994 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7995 * include/grub/misc.h (grub_min): Removed.
7996 (grub_max): Likewise.
7997
80662dbc
VS
79982012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7999
8000 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
8001 direct.inode = 0.
8002
e6da1467
VS
80032012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8004
8005 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
8006
b1ac4cb1
VS
80072012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8008
8009 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
8010
b4bf7c3b
VS
80112012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8012
8013 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
8014 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
8015
8ee1101a
VS
80162012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8017
8018 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
8019 rather than a hack for grub_strncasemap.
8020
80212012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8022
8023 Support multiple initrds
8024 Note: part of this was accidently committed in r3739.
8025
8026 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
8027 initrd.
8028 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8029 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8030 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8031 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8032 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8033
4d1e2bc9
VS
80342012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8035
8036 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
8037 disks with unknown size.
8038 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
8039
75b49ebe
VS
80402012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8041
8042 Remove defines pertaining to arbitrary limits not affecting GRUB
8043 anymore.
8044
8045 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
8046 (EXT2_MAX_SYMLINKCNT): Likewise.
8047 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
8048 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
8049 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
8050 (GRUB_PXE_MAX_BLKSIZE): Likewise.
8051 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
8052 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
8053 (DN_MAX_OBJECT_SHIFT): Likewise.
8054 (DN_MAX_OFFSET_SHIFT): Likewise.
8055 (DN_MAX_OBJECT): Likewise.
8056 (DNODES_PER_LEVEL_SHIFT): Likewise.
8057 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
8058 (SPA_MAXBLOCKSIZE): Likewise.
8059 (SPA_BLOCKSIZES): Likewise.
8060 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
8061 (MZAP_MAX_BLKSZ): Likewise.
8062
74a1dce7
VS
80632012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8064
8065 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
8066 handle NULL appropriately.
8067 Remove MIN.
8068
30c7d3ce
VS
80692012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8070
8071 Fix efiemu.
8072
8073 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
8074 cpu/types.h.
8075 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
8076 * configure.ac: Fix efiemu check.
8077
3c76ea0c
VS
80782012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8079
8080 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
8081 grub_probe.
8082 Reported by: adamwill
8083
7e532280
SG
80842012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
8085
8086 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
8087
30492374
VS
80882012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8089
8090 Fix handling of wide characters in gfxterm.
8091
8092 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
8093 (clear_char): Likewise.
8094 (paint_char): Skip code == NULL chars.
8095 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
8096
e70cb72f
VS
80972012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8098
8099 * grub-core/normal/charset.c: Move comment to right place.
8100
5c827cf9
VS
81012012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8102
8103 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
8104 (GRUB_AFFS_FLAG_FFS): Put back where it was.
8105 (grub_affs_mount): Revert the correct version checking.
8106
53603892
VS
81072012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 * docs/grub.texi (Unicode): Mention several other unsupported features.
8110
ff094b9b
VS
81112011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8112
8113 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
8114 case statements as compile-time one.
8115 (direct_read): Prevent spurious warnings.
8116 (grub_squash_read_data): Likewise.
8117
c029da8a
VS
81182011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8119
8120 Various squash4 fixes and LZO and XZ support.
8121
8122 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
8123 Add xzembed source files.
8124 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
8125 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
8126 (grub_squash_inode): New subtype long_dir.
8127 (SQUASH_TYPE_LONG_DIR): New inode type.
8128 (COMPRESSION): New enum.
8129 (XZBUFSIZ): New const.
8130 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
8131 (read_chunk): Use data->decompress.
8132 (zlib_decompress): New function.
8133 (lzo_decompress): Likewise.
8134 (xz_decompress): Likewise.
8135 (squash_mount): Set new data fields.
8136 (grub_squash_iterate_dir): Handle long dir.
8137 (squash_unmount): Free xzdec and xzbuf.
8138 (grub_squash_open): Check ino type.
8139 (direct_read): Stylistic fixes. Use data->decompress.
8140 (grub_squash_read_data): Likewise.
8141 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
8142 (get_byte): Likewise.
8143 (grub_zlib_disk_read): Removed.
8144 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
8145 (GRUB_POSIX_BOOL_DEFINED): New define.
8146 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
8147 * grub-core/lib/xzembed/xz.h: Addmissing includes.
8148 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
8149 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
8150
7a45a539
VS
81512011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8152
8153 Don't override more informative errors.
8154
8155 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
8156 * grub-core/font/font.c (open_section): Likewise.
8157 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
8158 filename. Don't override errors.
8159 (grub_cmd_openbsd_ramdisk): Don't override errors.
8160 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
8161 (grub_cmd_initrd): Likewise.
8162 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8163 (grub_cmd_initrd): Likewise.
8164 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
8165 (grub_cmd_linux): Likewise.
8166 (grub_cmd_initrd): Likewise.
8167 (grub_cmd_payload): Likewise.
8168 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8169 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
8170 (grub_cmd_module): Likewise.
8171 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8172 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8173 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
8174 (grub_cmd_xnu_mkext): Likewise.
8175 (grub_cmd_xnu_ramdisk): Likewise.
8176 (grub_xnu_check_os_bundle_required): Likewise.
8177 (grub_xnu_load_kext_from_dir): Likewise.
8178 (grub_cmd_xnu_kextdir): Likewise.
8179 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
8180
b2d004db
VS
81812011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8182
8183 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
8184 as 1024 in block size field. Found on one of my test images.
8185 Small optimisation while on it.
8186
ec000eac
VS
81872011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
8190 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
8191 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
8192 performance fixes while on it.
8193 (grub_sfs_close): Fix memory leak while on it.
8194 (grub_sfs_label): Convert Latin1 to UTF-8.
8195
f50e1165
VS
81962011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8197
8198 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
8199 space to avoid overflows.
8200 (grub_hfs_label): Convert from macroman to UTF-8.
8201
2ae254de
VS
82022011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8203
8204 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
8205
0108f491
VS
82062011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
8209
f45f5f89
VS
82102011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8211
8212 * unicode: Import Unicode 6.0 data.
8213
4d8c4765
VS
82142011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8215
63fa8ef9
VS
8216 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
8217 outside of range.
8218
82192011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
8222
8223 * include/grub/charset.h (grub_getend): New function.
8224 * grub-core/script/function.c (grub_script_function_find): Use
8225 grub_getend.
8226 * grub-core/normal/completion.c (add_completion): Likewise.
8227
f3cb4a4e
VS
82282011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8229
8230 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
8231 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
8232 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
8233 (GRUB_UNICODE_TAG_END): Likewise.
8234 (GRUB_UNICODE_LAST_VALID): Likewise.
8235
5da8dbc5
VS
82362011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8237
8238 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
8239 len and make it smaller. All users updated.
8240 * util/import_unicode.py: Put length and not end character.
8241 Check length.
8242
8569f13d
VS
82432011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 Make better Unicode-compliant and unify some UTF-8 code pathes.
8246
8247 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
8248 valid character.
8249 (grub_is_valid_utf8): Use grub_utf8_process.
8250 Check resulting code range.
8251 (grub_utf8_to_ucs4): Use grub_utf8_process.
8252 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
8253 valid character.
8254
cc4fddf5
VS
82552011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8256
8257 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
8258
bbc47747
VS
82592011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8260
8261 * docs/grub.texi (Filesystems): Mention AFS.
8262
f63d6bf4
VS
82632011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8264
8265 * docs/grub.texi (Filesystems): Clarify restrictions.
8266 (Regexp): Mention non-Unicode regexp behaviour.
8267 (Other): Mention non-Unicode matching behaviour.
8268
74bbf0db
VS
82692011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8270
f63d6bf4 8271 Make HFS implementation use MacRoman.
74bbf0db
VS
8272
8273 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8274 (macroman): New const array.
8275 (macroman_to_utf8): New function.
8276 (utf8_to_macroman): Likewise.
8277 (grub_hfs_find_dir): Use utf8_to_macroman.
8278 (grub_hfs_dir): Use macroman_to_utf8.
8279 Set case_insensitive.
8280
4ea0316e
VS
82812011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8282
8283 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8284
d3c13cbd
VS
82852011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8286
8287 Integrate hints into autogeneration scripts.
8288
8289 * docs/grub.texi (Filesystems): Add a hostdisk example.
8290 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8291 (grub-probe): Add ofpath.
8292 * gentpl.py: Remove group nosparc64.
8293 * grub-core/commands/search.c (cache_entry): New struct.
8294 (cache): New var.
8295 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8296 * grub-core/commands/search_wrap.c (options): Add platform-specific
8297 hint options.
8298 (grub_cmd_search): Handle platform-specific hints.
8299 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8300 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8301 (grub_util_biosdisk_data): Likewise.
8302 (grub_util_biosdisk_open): Set device_map.
8303 (read_device_map): Handle "" as indication of no map.
8304 Set device_map.
8305 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8306 (grub_util_biosdisk_get_compatibility_hint): New function.
8307 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8308 * include/grub/emu/hostdisk.h
8309 (grub_util_biosdisk_get_compatibility_hint): New proto.
8310 * util/grub-install.in: Don't call grub-mkdevicemap.
8311 Add platform-specific hint to load.cfg.
8312 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8313 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8314 hints. Set root preliminary to compatibility hint, not to OS name.
8315 * util/grub-probe.c (PRINT_*): Add hints.
8316 (print): Make static.
8317 (escape_of_path): New function.
8318 (guess_bios_drive): Likewise.
8319 (guess_efi_drive): Likewise.
8320 (guess_baremetal_drive): Likewise.
8321 (print_full_name): Likewise.
8322 (probe): Handle hints.
8323 (main): Likewise.
8324 * util/ieee1275/devicemap.c: Removed.
8325 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8326 updated.
8327 (grub_util_devname_to_ofpath): Return NULL on failure.
8328
8329 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8330 resource leak.
8331 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8332
8333 * po/POTFILES.in: Regenerated.
8334
8335 Allow purely long options
8336
8337 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8338 (SHORT_ARG_USAGE): Likewise.
8339 (grub_arg_show_help): Compare opt with help_options.
8340 (parse_option): Receive opt as argument. If makes big simplificatons.
8341 All users updated
8342
00ce2df3
VS
83432011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8344
8345 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8346 Restructure to avoid warning.
8347
e77e325f
VS
83482011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8349
8350 * util/grub-install.in: Account for possible escaped comma in device
8351 name.
8352
165099ea
VS
83532011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8354
8355 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8356 channel.
8357
ce4a999d
VS
83582011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8361 allocation and zero-setting.
8362 (grub_ieee1275_get_devname): Check that alias is complete.
8363
379586ad
VS
83642011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8365
8366 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8367 unaligned segments.
8368
9197b0ad
VS
83692011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8370
8371 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8372 prefix.
8373 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8374 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8375 Add ieee1275 prefix.
8376
edddb7f9
VS
83772011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8378
8379 * docs/grub.texi (Filesystems): Update.
8380
a1a8b1b9
VS
83812011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8382
8383 Support odc, newc and bigendian cpio formats.
8384
8385 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8386 * grub-core/Makefile.core.def (newc): New module.
8387 (odc): Likewise.
8388 (cpio_be): Likewise.
8389 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8390 (MAGIC): Likewise.
8391 (MAGIC2): Likewise.
8392 (head) [MODE_ODC]: Adapt for the format.
8393 (head) [MODE_NEWC]: Likewise.
8394 (head) [!MODE_*]: Write fields of interest as arrays.
8395 (MAGIC_USTAR): Removed.
8396 (read_number) [MODE_NEWC]: Change to hex.
8397 (read_number) [!MODE_*]: Parse binary arrays.
8398 (grub_cpio_find_file): Factor out the code for better structure and
8399 always use read_number.
8400 (grub_cpio_mount): Use MAGIC and MAGIC2.
8401 (grub_cpio_dir): Exit on first hook non-0 return.
8402 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8403 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8404 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8405 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8406 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8407 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8408 * grub-core/fs/newc.c: New file.
8409 * grub-core/fs/odc.c: Likewise.
8410 * grub-core/fs/cpio_be.c: Likewise.
8411
58eba9ee
VS
84122011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8413
8414 Fix handling of tar numbers occupying the whole field.
8415
8416 * grub-core/fs/cpio.c (read_number): New function.
8417 (grub_cpio_find_file): Use read_number instead of strtoull.
8418
a54a0e12
VS
84192011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8420
8421 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8422 occupying the whole field size.
8423
a6120aca
LA
84242011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8425
8426 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8427
a93964ce
VS
84282011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8429
8430 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8431
3ea1ca46
SG
84322011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8433
8434 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8435 TARGET_IMG_LDFLAGS.
8436
b87f7ef2
VS
84372011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8438
8439 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8440 (mountinfo_entry): Increase the field size to take escaping into
8441 account.
8442 (find_root_device_from_libzfs): Add one byte to size of strings for
8443 security.
8444
62092395
VS
84452011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8446
8447 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8448 an assert.
8449 * util/grub-setup.c (setup): Likewise.
8450
1f0b1a77
VS
84512011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8452
8453 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8454 _LzmaDecodeA.
8455
8eba9997
VS
84562011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8457
8458 * docs/grub.texi (Internationalisation): New section.
8459
dd0c91e9
VS
84602011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8461
8462 * docs/grub.texi (Loopback booting): New section.
8463
84642011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
8465
8466 * util/grub-mkstandalone.in: Fix minor typo errors.
8467
198e150a
VS
84682011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8469
8470 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8471
8472 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8473 net/icmp.c and net/icmp6.c.
8474 (http): New module.
8475 (priority_queue): Likewise.
8476 * grub-core/io/bufio.c: Rewritten.
8477 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8478 TYPE_WITH_CONFIGFILE_OPTION.
8479 (legacy_commands): Add bootp and dhcp.
8480 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8481 (grub_legacy_parse): Likewise.
8482 * grub-core/lib/priority_queue.c: New file.
8483 * grub-core/net/arp.c: Add missing license header.
8484 (arp_find_entry): Removed.
8485 (arp_find_entry): Likewise.
8486 (grub_net_arp_resolve): Rename to ...
8487 (grub_net_arp_send_request): ...this.
8488 (grub_net_arp_receive): New card argument.
8489 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8490 Set router and DNS server.
8491 (grub_net_configure_by_dhcp_ack): Handle routing information.
8492 (grub_cmd_bootp): Set checksum.
8493 (grub_bootp_init): Remove net_dhcp.
8494 * grub-core/net/dns.c: New file.
8495 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8496 completion.
8497 (get_card_packet): Handle allocation.
8498 (grub_efinet_findcards): Set mtu.
8499 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8500 (get_card_packet): Handle allocation.
8501 (emucard): Set mtu.
8502 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8503 (GRUB_MOD_INIT): Set mtu.
8504 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8505 mtu.
8506 (get_card_packet): Handle allocation.
8507 (grub_ofnet_findcards): Set mtu.
8508 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8509 assert.
8510 (grub_net_recv_ethernet_packet): Handle IPv6.
8511 * grub-core/net/http.c: New file.
8512 * grub-core/net/icmp.c: Likewise.
8513 * grub-core/net/icmp6.c: Likewise.
8514 * grub-core/net/ip.c (ip6addr): New type.
8515 (ip6hdr): Likewise.
8516 (reassemble): Likewise.
8517 (cmp): New function.
8518 (reassembles): New variable.
8519 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8520 (id): New variable.
8521 (send_fragmented): New function.
8522 (grub_net_send_ip_packet): Rename to ...
8523 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8524 Handle non-UDP.
8525 (grub_net_recv_ip_packets): Rename to ...
8526 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8527 (free_rsm): New function.
8528 (free_old_fragments): Likewise.
8529 (grub_net_recv_ip4_packets): New function.
8530 (grub_net_send_ip6_packet): Likewise.
8531 (grub_net_send_ip_packet): Likewise.
8532 (grub_net_recv_ip6_packets): Likewise.
8533 (grub_net_recv_ip_packets): Likewise.
8534 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8535 (LINK_LAYER_CACHE_SIZE): New const.
8536 (link_layer_find_entry): New function.
8537 (grub_net_link_layer_add_address): Likewise.
8538 (grub_net_link_layer_resolve_check): Likewise.
8539 (grub_net_link_layer_resolve): Likewise.
8540 (grub_net_ipv6_get_slaac): Likewise.
8541 (grub_net_ipv6_get_link_local): Likewise.
8542 (grub_cmd_ipv6_autoconf): Likewise.
8543 (parse_ip): Handle one number representation.
8544 (parse_ip6): New functoion.
8545 (match_net): Handle IPv6.
8546 (grub_net_resolve_address): Handle IPv6 and DNS.
8547 (grub_net_resolve_net_address): Handle IPv6.
8548 (route_cmp): New function.
8549 (grub_net_route_address): Find best route.
8550 (grub_net_addr_to_str): Handle IPv6.
8551 (grub_net_addr_cmp): New function.
8552 (grub_net_add_addr): Register local route.
8553 (print_net_address): Handle net address.
8554 (grub_net_poll_cards): Retransmit TCP.
8555 (grub_net_poll_cards_idle_real): Likewise.
8556 (have_ahead): New function.
8557 (grub_net_seek_real): Use underlying seek.
8558 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8559 * grub-core/net/tcp.c: New file.
8560 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8561 (cmp): New function.
8562 (ack): Likewise.
8563 (tftp_receive): Handle unordered input.
8564 (destroy_pq): New function.
8565 (tftp_close): Close pq.
8566 * grub-core/net/udp.c: Put missing license header.
8567 (grub_net_udp_socket): New function.
8568 (udp_socket_register): Likewise.
8569 (grub_net_udp_close): Likewise.
8570 (grub_net_recv_udp_packet): Check checksum.
8571 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8572 * include/grub/misc.h (grub_memchr): New function.
8573 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8574 (grub_net_card_driver): Return buf in recv.
8575 (grub_net_slaac_mac_list): New struct.
8576 (grub_network_level_protocol_id): Add ipv6.
8577 (grub_net_network_level_addr): Likewise.
8578 (grub_net_network_level_net_addr): Likewise.
8579 (grub_net_app_protocol): Add seek.
8580 (grub_net_socket): Removed.
8581 (grub_net_sockets): Likewise.
8582 (grub_net_socket_register): Likewise.
8583 (grub_net_socket_unregister): Likewise.
8584 (FOR_NET_SOCKETS): Likewise.
8585 (grub_net_add_addr): Add const.
8586 (GRUB_NET_BOOTP_*): New enum.
8587 (grub_net_addr_cmp): New proto.
8588 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8589 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8590 (grub_net_hwaddr_to_str): NEw proto.
8591 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8592 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8593 (grub_dns_init): New proto.
8594 (grub_dns_fini): Likewise.
8595 (grub_net_tcp_retransmit): Likewise.
8596 (grub_net_link_layer_add_address): Likewise.
8597 (grub_net_link_layer_resolve_check): Likewise.
8598 (grub_net_link_layer_resolve): Likewise.
8599 (grub_net_dns_lookup): Likewise.
8600 (grub_net_add_dns_server): Likewise.
8601 (grub_net_remove_dns_server): Likewise.
8602 (GRUB_NET_TRIES): New const.
8603 (GRUB_NET_INTERVAL): Likewise.
8604 * include/grub/net/arp.h: Mostly rewritten.
8605 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8606 * include/grub/net/ip.h: Mostly rewritten.
8607 * include/grub/net/netbuff.h: Indent.
8608 * include/grub/net/tcp.h: New file.
8609 * include/grub/net/udp.h: Mostly rewritten.
8610 * include/grub/priority_queue.h: New file.
8611 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8612 (grub_swap_bytes64_compile_time): Likewise.
8613 (grub_cpu_to_be16_compile_time): Likewise.
8614 (grub_cpu_to_be32_compile_time): Likewise.
8615 (grub_cpu_to_be64_compile_time): Likewise.
8616 (grub_be_to_cpu64_compile_time): Likewise.
8617
215c1800
VS
86182011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8619
8620 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8621 UINT_TO_PTR with cast.
8622
c17e546c
VS
86232011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8624
8625 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8626 don't use them.
8627
ff6b18b6
VS
86282011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8629
8630 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8631 already there.
8632
70ffcc93
VS
86332011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8634
8635 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8636 confusing ipxe.
8637
e5f4d260
VS
86382011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8639
8640 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8641 Add missing const attribute.
8642 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8643 Likewise.
8644 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8645 Likewise.
8646
8e54b4b7
VS
86472011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8648
8649 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8650 misaligned access.
8651 (serpent_setkey): Likewise.
8652 (serpent_encrypt_internal): Likewise.
8653 (serpent_decrypt_internal): Likewise.
8654 (serpent_encrypt): Don't put an alignment-increasing cast.
8655 (serpent_decrypt): Likewise.
8656 (serpent_test): Likewise.
8657
813c0a2b
VS
86582011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8659
8660 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8661
f2b60fbd
VS
86622011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8663
8664 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8665
8666 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8667 grub_addr_t casts.
8668 (PTR_TO_UINT64): Likewise.
8669 (PTR_TO_UINT32): Likewise.
8670
5ef5c511
VS
86712011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8672
8673 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8674 because of stack.
8675 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8676 limit.
8677
c476e6df
VS
86782011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8679
8680 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8681 text_width > available width a bit more gracefully.
8682
384ad7cc
VS
86832011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8684
8685 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8686 current address calculation.
8687
96f8caf8
VS
86882011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8689
8690 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8691 stack.
8692 (encode_block): Likewise.
8693
276b7a8b
VS
86942011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8695
8696 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8697 certainety.
8698
e3fd394a
VS
86992011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8702 non-RS part to avoid RS messing with GDT.
8703 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8704 Increase to suit in realmode routines.
8705
87062011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8707
8708 * grub-core/kern/i386/realmode.S: Increase alignment.
8709 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8710
ee9c2e7a
VS
87112011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8714 be deterministic.
8715 (syndroms): Compute 0 syndrom.
8716 (rs_recover): Use 0 syndrom.
8717
7a7f7cc9
VS
87182011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8721
a14b16d1
VS
87222011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8723
8724 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8725 brackets.
8726
9f59e9fc
VS
87272011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8728
ca1b552c
VS
8729 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8730 account.
8731 (get_top_pad): Likewise.
8732 (get_right_pad): Likewise.
8733 (get_bottom_pad): Likewise.
8734
87352011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8736
8737 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 8738
e739d698
VS
87392011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8740
8741 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8742 attribute as the structure isn't guaranteed to be properly aligned.
8743 (grub_efi_pci_device_path): Likewise.
8744 (grub_efi_pccard_device_path): Likewise.
8745 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8746 specify the size of `memory_type'.
8747 (grub_efi_vendor_device_path): Likewise.
8748 (grub_efi_controller_device_path): Likewise.
8749 (grub_efi_acpi_device_path): Likewise.
8750 (grub_efi_expanded_acpi_device_path): Likewise.
8751 (grub_efi_atapi_device_path): Likewise.
8752 (grub_efi_scsi_device_path): Likewise.
8753 (grub_efi_fibre_channel_device_path): Likewise.
8754 (grub_efi_1394_device_path): Likewise.
8755 (grub_efi_usb_device_path): Likewise.
8756 (grub_efi_usb_class_device_path): Likewise.
8757 (grub_efi_i2o_device_path): Likewise.
8758 (grub_efi_mac_address_device_path): Likewise.
8759 (grub_efi_ipv4_device_path): Likewise.
8760 (grub_efi_ipv6_device_path): Likewise.
8761 (grub_efi_infiniband_device_path): Likewise.
8762 (grub_efi_uart_device_path): Likewise.
8763 (grub_efi_vendor_messaging_device_path): Likewise.
8764 (grub_efi_hard_drive_device_path): Likewise.
8765 (grub_efi_cdrom_device_path): Likewise.
8766 (grub_efi_vendor_media_device_path): Likewise.
8767 (grub_efi_file_path_device_path): Likewise.
8768 (grub_efi_protocol_device_path): Likewise.
8769 (grub_efi_piwg_device_path): Likewise.
8770 (grub_efi_bios_device_path): Likewise.
8771
cb8f88ea
VS
87722011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8773
8774 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8775 (grub_ucs4_to_utf8_alloc): Likewise.
8776 (grub_ucs4_to_utf8): Likewise.
8777 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8778 (grub_ucs4_to_utf8_alloc): Likewise.
8779
309e5352
VS
87802011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8781
8782 AFFS never uses unicode.
8783
8784 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8785 (grub_latin1_to_utf8): New inline function.
8786 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8787
e7987e1b
VS
87882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8791 overflow.
8792
efc2616e
VS
87932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8794
8795 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8796 (grub_squash_dirent_header): Likewise.
8797 (read_chunk): Don't double swap.
8798 (grub_squash_iterate_dir): Fix swap sizes.
8799
3c349f5a
VS
88002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8801
8802 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8803
b453412d
VS
88042011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8807 (grub_hfs_iterate_dir): Likewise.
8808
12e9d4d1
VS
88092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 Fix video on platforms where unaligned access is forbidden.
8812 Make several optimisations while on it.
8813
8814 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8815 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8816 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8817 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8818 Disable.
8819 (grub_video_fbblit_replace_16bit_1bit):
8820 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8821 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8822 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8823 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8824 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8825 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8826 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8827 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8828 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8829 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8830 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8831 (grub_video_fbblit_replace_index_RGB888): Likewise.
8832 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8833 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8834 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8835 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8836 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8837 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8838 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8839 Disable.
8840 (grub_video_fbblit_blend_XXX565_1bit):
8841 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8842 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8843 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8844 void *.
8845 * grub-core/video/fb/video_fb.c (common_blitter)
8846 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8847 (grub_video_fb_create_render_target_from_pointer)
8848 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8849 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8850 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8851 definition.
8852 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8853
ace96609
VS
88542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8855
8856 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8857 HH22 and HM10 relocations.
8858
fd261d73
VS
88592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8862
e59b7857
VS
88632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8864
8865 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8866 allocation succeeded.
8867
9b4baaa4
VS
88682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8869
8870 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8871 argument a u8 pointer. All users updated.
8872 Handle unaligned buffers.
8873
dc713193
VS
88742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8875
8876 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8877 add_part to workaround compiler bug.
8878
30dd48c2
VS
88792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8880
8881 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8882
0c6087a8
VS
88832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8884
8885 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8886 Reserve alignment invariants.
8887 (grub_multiboot_load): Likewise.
8888 (retrieve_video_parameters): Likewise.
8889 (grub_multiboot_make_mbi): Likewise.
8890
c2e77777
VS
88912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8894 incorrect pointer.
8895
b70b6d11
VS
88962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8897
8898 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8899 (grub_pata_pio_write): Likewise.
8900
02a2bf83
VS
89012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8902
8903 Add noreturn attributes and remove unreachable code.
8904
8905 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8906 code.
8907 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8908 code. Mark as noreturn.
8909 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8910 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8911 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8912 unreachable code.
8913 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8914 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8915 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8916 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8917 * include/grub/kernel.h (grub_main): Mark as noreturn.
8918 * include/grub/reader.h (grub_rescue_run): Likewise.
8919
2019d09e
VS
89202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8921
8922 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8923 redundant declaration.
8924
d1c501ee
VS
89252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8926
8927 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8928 redundant declaration.
8929 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8930
61664420
VS
89312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8932
8933 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8934 to ensure alignment.
8935 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8936 alignment. Ensure tmp alignment.
8937 (grub_cmd_hdparm): Ensure buf alignment.
8938 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8939 to ensure alignment.
8940 (grub_ata_dumpinfo): Ensure text alignment.
8941 (grub_atapi_identify): Preserve alignment invariant.
8942 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8943
0d51ee20
VS
89442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8945
8946 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8947 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8948 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8949 * include/grub/misc.h (grub_reboot)
8950 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8951 (grub_halt) [__mips__]: Likewise.
8952
753ef8c1
VS
89532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8956 Remove redundant declaration.
8957 (grub_mmap_get_post64): Likewise.
8958 (grub_mmap_get_upper): Likewise.
8959 (grub_mmap_get_lower): Likewise.
8960
85c85365
VS
89612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8964 uint32_t * to ensure alignment.
8965 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8966
a23f2cc4
VS
89672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8968
93018f64
VS
8969 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8970 uint16_t * to ensure alignment.
8971 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8972 alignment.
8973
89742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8975
8976 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
8977 to ensure alignment.
8978 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8979
58acccd6
VS
89802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8983 Handle unaligned pointers.
8984 (u32at): Likewise.
8985 (u64at): Likewise.
8986 (fixup): Use byte access instead of v16at.
8987 (find_attr): Fix imporper usage of v32at.
8988 (read_data): Likewise.
8989 (list_file): Handle byte-swapping and unaligned strings.
8990 (grub_ntfs_label): Likewise.
8991
9b05cad7
VS
89922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8993
8994 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8995 as it's not necessarily aligned.
8996
b3950b84
VS
89972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8998
8999 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
9000 redundant declaration.
9001 (grub_serial_init): Likewise.
9002 (grub_terminfo_init): Likewise.
9003
fcd232b7
VS
90042011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
9007 function.
9008 (ZAP_HASH_IDX): Likewise.
9009 (ZAP_LEAF_HASH_SHIFT): Likewise.
9010 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
9011 (LEAF_HASH): Likewise.
9012 (ZAP_LEAF_NUMCHUNKS): Likewise.
9013 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
9014 alignment invariants. Return pointer. All users updated.
9015 (ZAP_LEAF_ENTRY): Make into inline function.
9016 (NBBY): Removed.
9017 (xor): LIkewise.
9018 (xor_out): Use grub_crypto_xor.
9019 (dnode_get_path): Use grub_get_unaligned.
9020 (nvlist_find_value): Likewise.
9021 (grub_zfs_nvlist_lookup_uint64): Likewise.
9022 (grub_zfs_nvlist_lookup_string): Likewise.
9023 (get_nvlist_size): Likewise.
9024 (grub_zfs_open): Likewise.
9025 (fill_fs_info): Likewise.
9026 (grub_zfs_dir): Likewise.
9027 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
9028 alignment invariants.
9029 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
9030 necessarily aligned.
9031
f138623a
VS
90322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
9035
564840dc
VS
90362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9037
9038 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
9039 arithmetic to conserve alignment invariants.
9040
9b40df20
VS
90412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9042
9043 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
9044 redundant declaration.
9045 (grub_efiemu_mm_obtain_request): Likewise.
9046 (grub_efiemu_prepare): Likewise.
9047
d1c930f9
VS
90482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9049
9050 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
9051 to match types.
9052
4c5f3056
VS
90532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
9056 case of aunaligned recptr.
9057 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
9058 alignment.
9059 (grub_hfsplus_btree_search): Handle unaligned index.
9060
728cba91
VS
90612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9062
9063 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
9064 to get freetag and skip.
9065
eb561f31
VS
90662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
9069 array.
9070 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
9071 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
9072
20993fbb
VS
90732011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9074
9075 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
9076 name for checksum and fix allocation algorithm.
9077
1f313b94
VS
90782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 * include/grub/types.h (grub_properly_aligned_t): New type.
9081 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
9082 (grub_get_unaligned16): Add explicit casts.
9083 (grub_get_unaligned32): Likewise.
9084 (grub_get_unaligned64): Likewise.
9085 (grub_set_unaligned16): New function.
9086 (grub_set_unaligned32): Likewise.
9087
47ae27ec
VS
90882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9091
78c2cd1c
VS
90922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9093
9094 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
9095 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
9096 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
9097
53072f9b
VS
90982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9099
9100 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
9101 conditionals.
9102
055dc239
VS
91032011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9104
9105 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
9106 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
9107
496bd074
VS
91082011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9109
9110 Unify and improve RAID and crypto xor.
9111
9112 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
9113 changed to grub_crypto_xor
9114 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
9115 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
9116 Use bigger types when possible.
9117
ef6e4335
VS
91182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 * grub-core/disk/raid.c (scan_devices): Fix condition.
9121
5d048bf2
VS
91222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9123
9124 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
9125 Make name a const ptr.
9126
ee533335
VS
91272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
9130 first argument a const pointer.
9131 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
9132 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
9133 proto.
9134 (grub_children_iterate): Likewise.
9135 (grub_machine_mmap_iterate): Remove redundant declaration.
9136
cc8f3668
VS
91372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9138
9139 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
9140 (grub_cmd_acpi) [!x86]: Disable EBDA.
9141
c5fc563a
VS
91422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9143
9144 Enable UTF8 in gnulib regexp.
9145
9146 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
9147 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
9148 (isupper): Use grub_isupper.
9149 (isascii): New inline function.
9150 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
9151 * grub-core/lib/posix_wrap/wctype.h: Likewise.
9152 * grub-core/normal/charset.c (grub_utf8_process): New function.
9153 (grub_utf8_to_utf16): Use grub_utf8_process.
9154 (grub_encode_utf8_character): New function.
9155 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
9156 * include/grub/charset.h (grub_utf8_process): New declaration.
9157 (grub_encode_utf8_character): Likewise.
9158 * include/grub/misc.h (grub_islower): New inline function.
9159 (grub_isupper): Likewise.
9160 (grub_strchrsub): Moved down to fix the definitions.
9161
0af2346f
VS
91622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9163
9164 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
9165 specification.
9166
74dbd244
VS
91672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9168
9169 * include/grub/loader.h (grub_loader_register_preboot_hook):
9170 Use struct preboot * and not void * for handle. All users updated.
9171 (grub_loader_unregister_preboot_hook): Likewise.
9172
1bc8f60d
VS
91732011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
9174
9175 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
9176 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
9177 UTF-16-BE. All users updated.
9178 (grub_hfsplus_cmp_catkey): Fix unicode handling.
9179 (grub_hfsplus_iterate_dir): Likewise.
9180 (grub_hfsplus_label): Likewise.
9181
48d6e456
VS
91822011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
9183
9184 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
9185
bf3a3857
VS
91862011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
9187
9188 Add missing const qualifiers.
9189
9190 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
9191 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
9192 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
9193 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
9194 (grub_lvm_check_flag): Likewise.
9195 * grub-core/efiemu/i386/coredetect.c
9196 (grub_efiemu_get_default_core_name): Likewise
9197 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9198 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
9199 * grub-core/fs/ntfs.c (fixup): Likewise.
9200 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
9201 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
9202 (fzap_lookup): Likewise.
9203 (zap_lookup): Likewise.
9204 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
9205 * grub-core/lib/legacy_parse.c (check_option): Likewise.
9206 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
9207 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
9208 (grub_freebsd_add_meta_module): Likewise.
9209 (grub_cmd_freebsd_module): Likewise.
9210 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
9211 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
9212 (grub_xnu_writetree_get_size): Likewise.
9213 (grub_xnu_writetree_toheap_real): Likewise.
9214 (grub_xnu_find_key): Likewise.
9215 (grub_xnu_create_key): Likewise.
9216 (grub_xnu_create_value): Likewise.
9217 (grub_xnu_register_memory): Likewise.
9218 (grub_xnu_check_os_bundle_required): Likewise.
9219 (grub_xnu_scan_dir_for_kexts): Likewise.
9220 (grub_xnu_load_kext_from_dir): Likewise.
9221 * grub-core/normal/color.c (color_list): Likewise.
9222 * grub-core/normal/completion.c (current_word): Likewise.
9223 * grub-core/normal/menu_entry.c (insert_string): Likewise.
9224 * grub-core/term/serial.c (grub_serial_find): Likewise.
9225 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
9226 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
9227 Likewise.
9228 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
9229 (grub_freebsd_add_meta_module): Likewise.
9230 * include/grub/lib/arg.h (grub_arg_option): Likewise.
9231 * include/grub/net.h (grub_net_card_driver): Likewise.
9232 (grub_net_card): Likewise.
9233 (grub_net_app_protocol): Likewise.
9234 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
9235 * include/grub/serial.h (grub_serial_find): Likewise.
9236 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
9237 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
9238 (grub_xnu_create_value): Likewise.
9239 (grub_xnu_find_key): Likewise.
9240 (grub_xnu_scan_dir_for_kexts): Likewise.
9241 (grub_xnu_load_kext_from_dir): Likewise.
9242
9243 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
9244 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
9245 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
9246 Moved from here ...
9247 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
9248
112b4837
CW
92492011-11-28 Colin Watson <cjwatson@ubuntu.com>
9250
9251 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
9252
49e891ac
VS
92532011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
9254
9255 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
9256 (read_device): Fix size calculation.
9257
fd258e5c
RM
92582011-11-25 Robert Millan <rmh@gnu.org>
9259
9260 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
9261 (find_root_device_from_libzfs): Add zpool output parser to be used
9262 as fallback when libzfs isn't available.
9263
78845dc2
SG
92642011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
9265
9266 * po/Makefile.in.in: Add missing escape-continuation.
9267
adac5211
VS
92682011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9269
9270 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9271
10b64f1c
VS
92722011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9273
9274 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9275
bb416954
VS
92762011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9277
9278 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9279
bdfe9eeb
VS
92802011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9281
9282 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9283
581ffa8a
VS
92842011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9285
9286 * grub-core/lib/adler32.c: Add missing license specification.
9287 * grub-core/lib/crc64.c: Likewise.
9288 * grub-core/loader/i386/pc/plan9.c: Likewise.
9289 * grub-core/partmap/plan.c: Likewise.
9290
2536cf64
LK
92912011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9292
9293 Add facility to debug GRUB with gdb under qemu.
9294
9295 * grub-core/gdb_grub.in: New file.
9296 * grub-core/gmodule.pl.in: Likewise.
9297 * grub-core/Makefile.core.def (gmodule.pl): New script.
9298 (gdb_grub): Likewise.
9299
bc108a4a
VS
93002011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9301
9302 * util/grub-mount.c (argp_parser): Accept relative pathes.
9303 * util/grub-fstest.c (argp_parser): Likewise.
9304
111c1778
VS
93052011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9306
9307 Plan9 support.
9308
9309 * Makefile.util.def (libgrubmods): Add
9310 grub-core/partmap/plan.c.
9311 * docs/grub.texi: Notice Plan9 support.
9312 * grub-core/Makefile.core.def (plan9): New module.
9313 (part_plan): Likewise.
9314 * grub-core/loader/i386/pc/plan9.c: New file.
9315 * grub-core/partmap/plan.c: Likewise.
9316 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9317 define.
9318 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9319 * include/grub/mm.h (grub_extend_alloc): New inline function.
9320
c30be3b6
VS
93212011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9322
9323 Make Reed-Solomon faster by using power of generator representation of
9324 GF(256)*.
9325
9326 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9327 (gf_double_t): Likewise.
9328 (gf_invert): Removed.
9329 (gf_powx): New array.
9330 (gf_powx_inv): Likewise.
9331 (scratch): Move higher.
9332 (gf_reduce): Removed.
9333 (gf_mul): Use powx.
9334 (gf_invert): Likewise.
9335 (init_inverts): Replaced with ...
9336 (init_powx): ...this. All users updated.
9337 (pol_evaluate): Replace multiplications with additions.
9338 (rs_encode): Likewise.
9339 (gauss_eliminate): Call gf_invert.
9340 (grub_reed_solomon_add_redundancy): Call init_powx.
9341 (grub_reed_solomon_recover): Call init_powx unconditionally.
9342
fa5aeffc
VS
93432011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9344
9345 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9346
a346b81c
VS
93472011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9348
9349 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9350 disk->partiton for safety.
9351
d89ee414
VS
93522011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9353
9354 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9355 Fix a memory leak.
9356 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9357
91ee7b6d
VS
93582011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9359
9360 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9361
91e5a33d
VS
93622011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9363
9364 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9365
9edd7be2
VS
93662011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9367
9368 Fix spaces handling in proc/self/mountinfo.
9369
9370 * util/getroot.c (unescape): New function.
9371 (grub_find_root_device_from_mountinfo): Use unescape.
9372
ba102053
VS
93732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9374
9375 Support ZFS embedding.
9376
9377 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9378 (grub_zfs_fs): Register grub_zfs_embed.
9379
aa94b870
VS
93802011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9381
9382 Fix MIPS compilation.
9383
9384 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9385 * include/grub/offsets.h: Rename decompressor fields from
9386 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9387 * util/grub-mkimage.c (image_targets): Use new names.
9388
5fbdac14
VS
93892011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9390
9391 Defer multiboot device parsing until we're in compressed part.
9392
9393 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9394 bsd_part. setdevice has fallen into disuse.
9395 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9396 (bsd_part): Likewise.
9397 (boot_dev): New variable.
9398 (multiboot_trampoline): Don't parse multiboot device.
9399 Pass multiboot device in %edx.
9400 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9401 grub_boot_device.
9402 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9403 Likewise.
9404 * grub-core/kern/i386/pc/startup.S: Save edx.
9405 (grub_boot_drive): Removed.
9406 (grub_install_dos_part): Likewise.
9407 (grub_install_bsd_part): Likewise.
9408 (grub_boot_device): New variable.
9409 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9410 (grub_install_bsd_part): Likewise.
9411 (grub_boot_drive): Likewise.
9412 (grub_boot_device): New variable.
9413 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9414 Removed.
9415 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9416 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9417 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9418 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9419 * util/grub-install.in: Remove redundant condition.
9420
691cbb58
VS
94212011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9422
9423 Fix bug introduced by previous commit.
9424
9425 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9426
60240b8b
VS
94272011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9428
9429 Use decompressors framework on i386-pc. It increases core size
9430 by 46 bytes but improves compatibility and maintainability.
9431
9432 * grub-core/Makefile.core.def (lzma_decompress): New image.
9433 (kernel): Add i386_pc_ldflags.
9434 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9435 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9436 to real_to_prot, prot_to_real and device info.
9437 * include/grub/offsets.h: Renamed decompressor offsets.
9438 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9439 (image_target_desc): Remove raw_size and rename decompressor fields.
9440 (compress_kernel): Handle lzma.
9441 (generate_image): Handle decompressors on i386-pc.
9442
e9d3421c
VS
94432011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 * configure.ac: Add -fno-asynchronous-unwind-tables.
9446
2b23074a
VS
94472011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9448
9449 Move assembly code to C by using intwrap. It increases core size
9450 by 88 bytes but improves compatibility and maintainability.
9451
9452 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9453 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9454 ... here. Translated to C.
9455 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9456 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9457 ... here. Translated to C.
9458 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9459 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9460 ... here. Translated to C.
9461 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9462 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9463 ... here. Translated to C.
9464 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9465 * grub-core/term/i386/pc/console.c (grub_console_cls):
9466 ... here. Translated to C.
9467 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9468 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9469 ... here. Translated to C.
9470 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9471 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9472 Translated to C.
9473 * grub-core/term/i386/pc/console.c (int10_9): New function.
9474 (grub_console_putchar): Likewise.
9475 * include/grub/i386/pc/console.h: Removed the not anymore shared
9476 functions.
9477
678f4b67
VS
94782011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9479
9480 Move grub_chainloader_real_boot out of the kernel.
9481
9482 * grub-core/Makefile.am: Remove machine/loader.h.
9483 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9484 Removed.
9485 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9486 variable.
9487 (grub_relocator16_keep_a20_enabled): Likewise.
9488 (grub_relocator16_boot): Fill new variables.
9489 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9490 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9491 relocator.
9492 (grub_chainloader_unload): Likewise.
9493 (grub_chainloader_cmd): Likewise.
9494 * include/grub/i386/pc/loader.h: Removed.
9495 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9496 and esi. All initialisers updated.
9497
4626edf6
VS
94982011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
94992011-11-12 Colin Watson <cjwatson@ubuntu.com>
9500
9501 * Makefile.util.def (grub-mount): New util.
9502 * .bzrignore: Add grub-mount.
9503 * configure.ac: Check for fuse and enable grub-mount if available.
9504 * docs/man/grub-mount.h2m: New file.
9505 * util/grub-mount.c: Likewise.
9506
10f0117b
VS
95072011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9508
9509 * grub-core/commands/efi/fixvideo.c: Gettextize.
9510 * grub-core/commands/hashsum.c: Likewise.
9511 * grub-core/commands/i386/cmostest.c: Likewise.
9512 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9513 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9514 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9515 * grub-core/commands/lsmmap.c: Likewise.
9516 * grub-core/commands/menuentry.c: Likewise.
9517 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9518 * grub-core/commands/setpci.c: Likewise.
9519 * grub-core/loader/i386/bsd.c: Likewise.
9520 * grub-core/loader/i386/linux.c: Likewise.
9521 * util/getroot.c: Likewise.
9522 * util/grub-editenv.c: Likewise.
9523 * util/grub-fstest.c: Likewise.
9524 * util/grub-mkfont.c: Likewise.
9525 * util/grub-mkimage.c: Likewise.
9526 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9527 * util/grub-pe2elf.c: Likewise.
9528 * util/grub-probe.c: Likewise.
9529 * util/grub-setup.c: Likewise.
9530 * util/ieee1275/ofpath.c: Likewise.
9531 * util/misc.c: Likewise.
9532 * util/raid.c: Likewise.
9533
566f779b
RM
95342011-11-11 Robert Millan <rmh@gnu.org>
9535
9536 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9537 __attribute__((unused)) from `os_dev', which *is* being used.
9538
b50787de
VS
95392011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9540
9541 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9542 forgotten define.
9543 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9544 GRUB_IA64_DL_GOT_ALIGN.
9545 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9546 GRUB_IA64_DL_TRAMP_ALIGN.
9547
119d11c8
VS
95482011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9549
9550 Replace grub_fatal with normal errors in i386 linux loader.
9551
9552 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9553 (allocate_pages): Check find_efi_mmap_size return value.
9554 (grub_e820_add_region): Return error.
9555 (grub_linux_boot): Check mmap return value.
9556
6e0632e2
VS
95572011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9558
9559 * grub-core/commands/acpihalt.c: Gettextized.
9560 * grub-core/commands/cacheinfo.c: Likewise.
9561 * grub-core/commands/cmp.c: Likewise.
9562 * grub-core/commands/efi/loadbios.c: Likewise.
9563 * grub-core/commands/gptsync.c: Likewise.
9564 * grub-core/commands/ieee1275/suspend.c: Likewise.
9565 * grub-core/commands/legacycfg.c: Likewise.
9566 * grub-core/commands/memrw.c: Likewise.
9567 * grub-core/commands/minicmd.c: Likewise.
9568 * grub-core/commands/parttool.c: Likewise.
9569 * grub-core/commands/time.c: Likewise.
9570 * grub-core/commands/videoinfo.c: Likewise.
9571 * grub-core/disk/geli.c: Likewise.
9572 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9573 * grub-core/disk/luks.c: Likewise.
9574 * grub-core/disk/lvm.c: Likewise.
9575 * grub-core/font/font_cmd.c: Likewise.
9576 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9577 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9578 * grub-core/gfxmenu/view.c: Likewise.
9579 * grub-core/kern/emu/hostdisk.c: Likewise.
9580 * grub-core/kern/emu/main.c: Likewise.
9581 * grub-core/kern/emu/misc.c: Likewise.
9582 * grub-core/kern/emu/mm.c: Likewise.
9583 * grub-core/kern/mips/arc/init.c: Likewise.
9584 * grub-core/kern/mips/loongson/init.c: Likewise.
9585 * grub-core/kern/partition.c: Likewise.
9586 * grub-core/lib/i386/halt.c: Likewise.
9587 * grub-core/lib/mips/arc/reboot.c: Likewise.
9588 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9589 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9590 * grub-core/loader/i386/xnu.c: Likewise.
9591 * grub-core/loader/multiboot.c: Likewise.
9592 * grub-core/net/bootp.c: Likewise.
9593 * grub-core/net/net.c: Likewise.
9594 * grub-core/normal/term.c: Likewise.
9595 * grub-core/partmap/bsdlabel.c: Likewise.
9596 * grub-core/parttool/msdospart.c: Likewise.
9597 * grub-core/term/gfxterm.c: Likewise.
9598 * grub-core/term/terminfo.c: Likewise.
9599 * grub-core/video/i386/pc/vbe.c: Likewise.
9600 * util/grub-menulst2cfg.c: Likewise.
9601 * util/grub-mkdevicemap.c: Likewise.
9602 * util/grub-mklayout.c: Likewise.
9603 * util/grub-mkrelpath.c: Likewise.
9604 * util/grub-script-check.c: Likewise.
9605 * util/ieee1275/grub-ofpathname.c: Likewise.
9606 * util/resolve.c: Likewise.
9607
073aa7a9
VS
96082011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9609
9610 Support %1$d syntax.
9611
9612 * tests/printf_unit_test.c: New file.
9613 * Makefile.util.def (printf_test): New test.
9614 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9615
c76b5417
VS
96162011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9617
9618 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9619 fix.
9620
df067ad1
VS
96212011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9622
9623 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9624 dprintf.
9625 * grub-core/font/font.c (grub_font_load): Likewise.
9626
5b289bc5
VS
96272011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9628
9629 * util/grub-macho2img.c: Add comment concerning gettext.
9630 * grub-core/lib/legacy_parse.c: Likewise.
9631
c1860f87
VS
96322011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9633
9634 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9635 (grub_xvasprintf): Likewise.
9636
d35d0d37
VS
96372011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9638
9639 Add const keyword to grub_env_get and gettextize week days.
9640
9641 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9642 (grub_read_hook_datetime): Return const char *.
9643 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9644 updated.
9645 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9646 Mark for gettext.
9647 (grub_get_weekday_name): Return const char *. Call gettext.
9648 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9649 char * and len as the argument. All users updated.
9650 (grub_script_argv_split_append): Receive const char *.
9651 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9652 * include/grub/env.h (grub_env_get): Likewise.
9653 (grub_env_read_hook_t): Return const char *.
9654 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9655 (grub_script_argv_split_append): Likewise.
9656
9aed8a71
VS
96572011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9658
9659 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9660
067fdf00
VS
96612011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9664 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9665
a8bd9d39
VS
96662011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9667
9668 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9669 Fix prototype.
9670
f7ce5baf
VS
96712011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9672
9673 Fix mips compilation.
9674
9675 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9676 normal decoder.
9677 (hashes): Use in embed decoder as well (for sizes).
9678 (dec_stream_header): Fix embed decompressor logic.
9679 (dec_stream_footer): Likewise.
9680
9bb182f3
VS
96812011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9682
9683 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9684 an error and not a fatal on unrecognised relocation types.
9685
63a9e6f6
VS
96862011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9689 Issue error rather than printf on unknown arguments.
9690
4c458569
VS
96912011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9692
9693 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9694 Make buf a const.
9695
e2d22baf
VS
96962011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9697
9698 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9699 Fix module name.
9700
53dc8590
VS
97012011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9702
9703 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9704 leftover debug printf.
9705
6c189294
VS
97062011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9707
9708 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9709
f7688369
VS
97102011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9711
9712 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9713 A stylistic fix.
9714
11a775a3
VS
97152011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9718
33f784e8
SL
97192011-11-10 Shea Levy <slevy@tieronedesign.com>
9720
9721 Allow all modules to perform serial IO
9722
9723 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9724 * include/grub/serial.h (grub_serial_port_configure): New inline
9725 function.
9726 (grub_serial_port_fetch): Likewise.
9727 (grub_serial_port_put): Likewise.
9728 (grub_serial_port_fini): Likewise.
9729 (grub_serial_find): New proto.
9730
f6276525
VS
97312011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9732
9733 Put symlink at the end of the node and fix a potential
9734 memory corruption.
9735
9736 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9737 Make symlink into an array.
9738 (set_rockridge): Set have_symlink and alloc_dirents.
9739 (grub_iso9660_read_symlink): Use new layout.
9740 (grub_iso9660_iterate_dir): Fix memory corruption.
9741 Use new layout.
9742 (grub_iso9660_dir): Set have_symlink.
9743 (grub_iso9660_open): Likewise.
9744
c3591189
VS
97452011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9746
9747 Remove local keyword.
9748
9749 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9750 (version_test_gt): Likewise.
9751 (version_find_latest): Likewise.
9752 (gettext_printf): Likewise.
9753 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9754
cb544caa
VS
97552011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9756
9757 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9758
45bd824d
VS
97592011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 Fix ZFS memory and resource leaks.
9762
9763 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9764 All users updated.
9765 Free type on exit.
9766 (fill_vdev_info): New parameter inserted. All users updated.
9767 (check_pool_label): Likewise.
9768 (scan_disk): Likewise.
9769 (scan_devices): Close non-inserted disks.
9770 (fzap_iterate): Free l.
9771 (unmount_device): Free children descripto memory.
9772
ad9a2f44
VS
97732011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9774
9775 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9776 argument (access out of bounds).
9777
6b68db81
VS
97782011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9779
9780 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9781 >= 6 drives.
9782
28840fda
VS
97832011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9784
9785 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9786 Fix declaration.
9787
8a5a3a5b
VS
97882011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9789
9790 Fix several memory leaks.
9791
9792 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9793 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9794 (grub_cpio_dir): Likewise.
9795 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9796 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9797 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9798 (grub_romfs_label): Likewise.
9799 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9800 (squash_unmount): New function.
9801 (grub_squash_dir): Fix memory leak.
9802 (grub_squash_open): Likewise.
9803 (grub_squash_read): Likewise.
9804 (grub_squash_mtime): Likewise.
9805 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9806 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9807 * util/grub-fstest.c (fstest): Likewise.
9808
57b01250
VS
98092011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9812 avoid accessing beyond the array.
9813
19e81ba7
VS
98142011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9815
9816 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9817
52b656c0
VS
98182011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9819
9820 Several AFFS fixes.
9821
9822 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9823 (GRUB_AFFS_FLAG_FFS): Removed.
9824 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9825 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9826 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9827 (grub_fshelp_node): Make block 32-bit.
9828 Add block_cache and last_block_cache.
9829 (grub_affs_read_block): Fill and use block cache.
9830 (grub_affs_read_file): Removed.
9831 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9832 boot block.
9833 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9834 safety.
9835 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9836 space.
9837 (grub_affs_close): Free block cache.
9838 (grub_affs_read): Use grub_fshelp_read_file directly.
9839
438a746a
VS
98402011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9841
9842 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9843 with no error set.
9844
49a45021
VS
98452011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9846
9847 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9848 used variable.
9849 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9850 Likewise.
9851
3ae17eb8
VS
98522011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9853
9854 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9855
9856 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9857 byteswap when needed.
9858
27610c38
VS
98592011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9860
9861 Fix FreeBSD compilation.
9862
9863 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9864 to avoid circular dependency.
9865 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9866 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9867 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9868
4a19b601
VS
98692011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 Fix ZFS crypto error types.
9872
9873 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9874 (grub_gcm_decrypt): Likewise.
9875 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9876 from PBKDF2.
9877
958ee221
VS
98782011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9879
9880 Illumos support.
9881
9882 * Makefile.util.def (10_illumos): New script.
9883 * configure.ac: Set COND_HOST_ILLUMOS.
9884 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9885 Support Illumos calls.
9886 (find_partition_start) [__sun__]: Likewise.
9887 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9888 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9889 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9890 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9891 device.
9892 * util/grub-probe.c (probe) [__sun__]: Do character check.
9893 * util/grub.d/10_illumos.in: New file.
9894
cac14fb6
VS
98952011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9896
9897 Support escaped commas in hostdisk.
9898
9899 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9900 (find_grub_drive): Use unescape_cmp.
9901 (make_device_name): Escape commas.
9902
78e08dc3
VS
99032011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9904
9905 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9906
9f421dd1
VS
99072011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9910 variable.
9911
ed64e9e2
VS
99122011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 Support trampoline jumps on powerpc.
9915
9916 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9917 __ia64__ path.
9918 (grub_dl_load_segments): Set mod->sz.
9919 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9920 segments.
9921 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9922 (jump): Likewise.
9923 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9924 function.
9925 (trampoline): New struct.
9926 (trampoline_template): New const.
9927 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9928 * include/grub/dl.h (grub_dl): Add sz element.
9929 [__powerpc__]: Follow __ia64__.
9930 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9931 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9932 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9933 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9934
3084ede4
VS
99352011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9936
9937 ZFS crypto support.
9938
9939 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9940 * grub-core/Makefile.core.def (zfscrypt): New module.
9941 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9942 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9943 it. All users updated.
9944 (grub_zfs_decrypt): New var.
9945 (grub_zfs_load_key): Likewise.
9946 (zio_checksum_functions): Add SHA256+MAC.
9947 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9948 (zio_read): Handle encrypted blocks.
9949 (zap_verify): Remove incorrect check.
9950 (fzap_iterate): Handle non-standard fzap.
9951 (zap_iterate): Likewise.
9952 (zap_iterate_u64): New function.
9953 (dnode_get_fullpath): Load keys.
9954 * grub-core/fs/zfs/zfscrypt.c: New file.
9955 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9956 (grub_crypto_ecb_encrypt): Make input const.
9957 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9958 (grub_crypto_ecb_encrypt): Make input const.
9959 (GRUB_CIPHER_AES): New macro.
9960 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9961 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9962 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9963 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9964 prefix. All users updated.
9965 (grub_zfs_add_key): New proto.
9966 (grub_zfs_decrypt): Likewise.
9967 (grub_zfs_load_key): Likewise.
9968 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9969 * util/grub-fstest.c (options): Add -K option.
9970 (argp_parser): Likewise.
9971
b632b404
VS
99722011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9973
9974 Support zle compression on ZFS.
9975
9976 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9977 (decomp_table): Add zle.
9978 * include/grub/zfs/zio.h (zio_compress): Add zle.
9979
c7ba4f69
VS
99802011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9981
9982 Support BtrFS embedding.
9983
9984 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9985 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9986 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9987 * util/grub-setup.c (setup): Use fs embedding if available.
9988 Add additional sanity check.
9989
455377d9
VS
99902011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9991
9992 * util/grub-install.in: Fix condition for config_opt.
9993
c2fd16ca
VS
99942011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9995
9996 Support third redundancy strip on raidz3.
9997
9998 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9999 Return error on singularity. All users updated.
10000 (read_device): Don't stop on 3rd failure on raidz3.
10001
8622923b
VS
100022011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10003
10004 Support case-insensitive ZFS subvolumes.
10005
10006 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
10007 All users updated.
10008 (zap_hash): Likewise.
10009 (name_cmp): New function.
10010 (zap_leaf_array_equal): New parameter case_insensitive.
10011 All users updated.
10012 (zap_leaf_lookup): Likewise.
10013 (fzap_lookup): Likewise.
10014 (zap_lookup): Likewise.
10015 (dnode_get_path): New parameter case_insensitive. Retrieve case
10016 sensitiviness of a volume. All users updated.
10017 (dnode_get_fullpath): New parameter case_insensitive.
10018 All users updated.
10019 (grub_zfs_dir): Set info.case_insensitiveness.
10020
95f2e860
VS
100212011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10022
10023 Support second redundancy strip on raidz(2,3).
10024
10025 * grub-core/fs/zfs/zfs.c (powx): New array.
10026 (powx_inv): Likewise.
10027 (poly): New const.
10028 (xor_out): New function.
10029 (gf_mul): Likewise.
10030 (recovery): Likewise.
10031 (read_device): Use second redundancy strip.
10032
11ee4389
VS
100332011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 Use a power of generator representation of GF(256) multiplication group
10036 to save space time and complexity.
10037
10038 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
10039 (raid6_table2): Likewise.
10040 (powx): New array.
10041 (powx_inv): Likewise.
10042 (poly): New const.
10043 (grub_raid_block_mul): Replace with ...
10044 (grub_raid_block_mulx): ...this.
10045 (grub_raid6_init_table): Rewritten.
10046 (grub_raid6_recover): Use power of generator representation.
10047
09e2763f
VS
100482011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10049
10050 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
10051 for the right device.
10052
8bec9a28
VS
100532011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10054
10055 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
10056 expected by grub-mkimage and it's more clear since there is no implicit
10057 padding.
10058
dbd3a32e
VS
100592011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10060
10061 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
10062 disk.
10063 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10064
182c872a
PMH
100652011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
10066
10067 * util/grub-mkrescue.in: Fix handling xorriso option.
10068
1e51cabd
VS
100692011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10070
10071 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
10072 NULL.
10073
9cc3581d 100742011-11-03 crocket <crockabiscuit@gmail.com>
10075
10076 * util/grub.d/10_linux.in: Add Slackware initrd naming.
10077
158dc1ea
VS
100782011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10079
10080 XZ CRC64 and SHA256 support.
10081
10082 * Makefile.util.def (libgrubmods): Add crc64.c.
10083 * grub-core/Makefile.core.def (crc64): New module.
10084 * grub-core/lib/crc64.c: New file.
10085 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
10086 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
10087 Fix the type.
10088 (MAX_HASH_SIZE): New define.
10089 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
10090 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
10091 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10092 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10093 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
10094 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
10095 Handle non-crc32 hashes.
10096 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
10097 (dec_stream_header): Handle non-crc32 hashes.
10098 (dec_stream_footer): Likewise.
10099 (dec_block_header): Likewise.
10100 (dec_main): Likewise.
10101 (xz_dec_init): Likewise.
10102 (xz_dec_reset): Likewise.
10103 (xz_dec_end): Likewise.
10104 * util/import_gcry.py: Add CRC64 line.
10105
9d9b3d2f
VS
101062011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10107
10108 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
10109 as well.
10110
7d0ac931
VS
101112011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10112
10113 Make reiserfs label retrieval similar to other *_label functions.
10114
10115 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
10116 (REISERFS_MAX_LABEL_LENGTH): Removed.
10117 (REISERFS_LABEL_OFFSET): Likewise.
10118 (grub_reiserfs_label): Rewritten.
10119
101202011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10121
10122 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
10123 field.
10124
cf5ba824
VS
101252011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10126
10127 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
10128
17744004
VS
101292011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
10130
10131 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
10132 drive failure on both raidz and raidz2.
10133
aca5aefc
VS
101342011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
10135
10136 Fix RAIDZ(2) for >= 5 devices.
10137
10138 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
10139 asize argument. All users updated.
10140
ce8ca56e
VS
101412011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10142
10143 Fix RAIDZ(2).
10144
10145 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
10146 (fill_vdev_info_real): Set ashift.
10147 (read_device): Rewrite RAIDZ part based on reverse engineering.
10148
7c01e783
VS
101492011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10150
10151 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
10152 don't report potentially unavialiable fields in debug output.
10153 (find_path): Fix double-free and memory leak.
10154
ce109e84
VS
101552011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10156
10157 Read label on UFS1.
10158
10159 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
10160 (grub_ufs_fs): Always set .label.
10161
87661123
VS
101622011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10163
10164 Use shifts in UFS.
10165
10166 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
10167 (grub_ufs_data): New field log2_blksz.
10168 (grub_ufs_read_file): Use shifts.
10169 (grub_ufs_mount): Check block size and logarithm it.
10170
46bc1dc2
VS
101712011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10172
10173 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
10174 long symlinks.
10175
19ee2987
VS
101762011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 Handle symlinks and long names on tar and cpio.
10179
10180 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
10181 (ATTR_FILE): Likewise.
10182 (ATTR_DIR): Likewise.
10183 (ATTR_LNK): Likewise.
10184 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
10185 (grub_cpio_find_file): Fill mode, handle linkname field as well as
10186 L and K entries.
10187 (grub_cpio_mount): Zero-fill data.
10188 (handle_symlink): New function.
46bc1dc2
VS
10189 (grub_cpio_dir): Handle symlinks.
10190 (grub_cpio_open): Likewise.
10191 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 10192
c83a08d8
VS
101932011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10194
10195 Fix iso9660 filename limitations and fix memory leaks.
10196
10197 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
10198 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
10199
45cdd3ea
VS
102002011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10201
10202 Fix JFS file name length limitations.
10203
10204 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
10205 (grub_jfs_diropen): Fix maximum filename length.
10206 (grub_jfs_getent): Fix filename length.
10207 (grub_jfs_lookup_symlink): Fix size checks.
10208
94ef05c2
VS
102092011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
10212 string.
10213
785ab8c7
VS
102142011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10215
eb0b6b45
VS
10216 Leverage BFS implementation to read AFS.
10217
10218 * Makefile.util.def (libgrubmods): Add afs.c.
10219 * grub-core/Makefile.core.def (afs): New module
10220 * grub-core/fs/afs.c: New file.
10221 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
10222
102232011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10224
10225 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 10226
c4a1628f
VS
102272011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10228
10229 * grub-core/fs/bfs.c: Run indent.
10230
5825b379
VS
102312011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10232
10233 BFS implementation based on the specification.
10234
10235 * grub-core/fs/bfs.c: New file.
10236 * Makefile.util.def (libgrubmods): Add bfs.c.
10237 * grub-core/Makefile.core.def (bfs): New module.
10238
42b2a706
VS
102392011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10240
10241 * util/grub-fstest.c (cmd_cp): Clarify error message.
10242 (cmd_cmp): Likewise.
10243
61b99bfc
YB
102442011-10-30 Yves Blusseau <blusseau@zetam.org>
10245
10246 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
10247 and befs_be.
10248
faba3d16
VS
102492011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
10250
10251 Remove afs and befs because of copyright problem.
10252
10253 * grub-core/fs/afs.c: Removed.
10254 * grub-core/fs/afs_be.c: Removed.
10255 * grub-core/fs/befs.c: Removed.
10256 * grub-core/fs/befs_be.c: Removed.
10257 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
10258 * grub-core/Makefile.core.def (afs): Removed.
10259 (afs_be): Likewise.
10260 (befs): Likewise.
10261 (befs_be): Likewise.
10262
c39224b0
VS
102632011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10264
10265 Prefer rockridge over Joliet.
10266
10267 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10268 to ...
10269 (set_rockridge): ... here.
10270 (grub_iso9660_mount): Check rockridge on the primary label when
10271 discovering. Ignore Joliet if Rockridge is present.
10272
e551115a
VS
102732011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10274
10275 Use shifts in nilfs2.
10276
10277 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10278 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10279 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10280 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10281 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10282 (grub_nilfs2_entries_per_block): Replaced with ...
10283 (grub_nilfs2_log_entries_per_block_log): ... this.
10284 (grub_nilfs2_blocks_per_group): Replaced with ...
10285 (grub_nilfs2_blocks_per_group_log): ... this.
10286 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10287 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10288 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10289 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10290 (grub_nilfs2_palloc_entry_offset): Replaced ...
10291 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10292 (grub_nilfs2_dat_translate): Use shifts.
10293 (grub_nilfs2_read_inode): Likewise.
10294 (GRUB_MOD_INIT): Ensure that logs are correct.
10295
564dd58c
VS
102962011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10297
10298 Use shifts in minix filesystem.
10299
10300 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10301 (GRUB_MINIX_ZONE2SECT): Likewise.
10302 (grub_minix_data): Replace block_size with log_block_size.
10303 (grub_minix_read_file): Use shifts.
10304 (grub_minix_mount): Check block size and take a logarithm.
10305
ed9ba06d
VS
103062011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10307
10308 Use shifts in squash4.
10309
10310 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10311 (squash_mount): Check block size and take logarithm.
10312 (direct_read): Use shifts.
10313
ad03fe76
VS
103142011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10315
10316 Correct befs block counting logic.
10317
10318 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10319 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10320 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10321 (grub_afs_read_inode): Use block_shift.
10322 (RANGE_SHIFT): New definition.
10323 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10324 unexpected conditions, use shifts and appropriate types.
10325 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10326
6563f63d
VS
103272011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10328
10329 * grub-core/disk/raid.c (scan_devices): Check partition.
10330 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10331
5b1ae25f
VS
103322011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10333
10334 Support BFS (befs) UUID.
10335
10336 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10337 (grub_afs_small_data_element_header): New struct.
10338 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10339 (grub_afs_read_attribute) [MODE_BFS]: New function.
10340 (grub_afs_iterate_dir): Allocate for complete inode.
10341 (grub_afs_mount): Likewise.
10342 (grub_afs_uuid) [MODE_BFS]: New function.
10343 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10344
f8d82408
VS
103452011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10346
10347 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10348 (zfs_unmount): Fix memory leak.
10349
5773fb64
VS
103502011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10351
10352 Support NTFS reparse points.
10353
10354 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10355 (symlink_descriptor): New struct.
10356 (grub_ntfs_read_symlink): New function.
10357 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10358 (grub_ntfs_open): Likewise.
10359
91c3fdde
VS
103602011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10361
10362 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10363
3be82e10
VS
103642011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 fstest xnu_uuid subcommand.
10367
10368 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10369 grub-core/commands/xnu_uuid.c.
10370 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10371 (fstest): Handle xnu_uuid.
10372 (options): Document xnu_uuid.
10373 (argp_parser): Parse xnu_uuid.
10374
8e32442e
VS
103752011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10376
10377 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10378 -l argument. Add newline at the end if printing.
10379 (GRUB_MOD_INIT): Document -l.
10380
52a05075
VS
103812011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10382
10383 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10384
1869edb5
VS
103852011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 ZFS multi-device and version 33 support.
10388
10389 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10390 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10391 (grub_zfs_data): Add multidev-ice-related fields.
10392 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10393 (dva_get_offset): Make dva const.
10394 (zfs_fetch_nvlist): New function.
10395 (fill_vdev_info_real): Likewise.
10396 (fill_vdev_info): Likewise.
10397 (check_pool_label): Likewise.
10398 (scan_disk): Likewise.
10399 (scan_devices): Likewise.
10400 (read_device): Likewise.
10401 (read_dva): Likewise.
10402 (zio_read_gang): Use read_dva.
10403 (zio_read_data): Likewise.
10404 (zap_leaf_lookup): Add missing endian conversion.
10405 (zap_verify): Add missing endian conversion. All users updated.
10406 (fzap_lookup): Likewise.
10407 (fzap_iterate): Likewise.
10408 (dnode_get_path): Handle SA bonus.
10409 (nvlist_find_value): Make input const. All users updated.
10410 (unmount_device): New function.
10411 (zfs_unmount): Use unmount_device.
10412 (zfs_mount): Use scan_disk.
10413 (zfs_mtime): New function.
10414 (grub_zfs_open): Handle system attributes.
10415 (fill_fs_info): Likewise.
10416 (grub_zfs_dir): Likewise.
10417 (grub_zfs_fs): Add mtime.
10418 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10419 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10420 (SA_MTIME_OFFSET): Likewise.
10421 (SA_SYMLINK_OFFSET): Likewise.
10422 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10423 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10424 (fstest): Support zfsinfo.
10425 (argp_parser): Likewise.
10426
186b4028
VS
104272011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10428
10429 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10430 error.
10431
104322011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
10433
10434 ZFS fixes.
10435
10436 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10437 sharing the same block. Iterate over correct number of indices.
10438 (dnode_get_path): Handle symlinks correctly.
10439
c0584900
VS
104402011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10441
10442 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10443
67e2bd71
VS
104442011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10445
10446 Read label on HFS+.
10447
10448 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10449 (grub_hfsplus_btree_search): Fix types.
10450 (grub_hfsplus_label): Implement.
10451
e9cc6b7b
VS
104522011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10453
10454 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10455
19832ddb
VS
104562011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10457
10458 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10459
66b40850
VS
104602011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10461
10462 Fix symlink handling on iso9660.
10463
10464 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10465 All users updated.
10466 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10467 (grub_iso9660_read_symlink): Moved most of code ...
10468 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10469
db821363
VS
104702011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10471
10472 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10473 Use union to avoid breaking strict-aliasing rules.
10474
e1211949
VS
104752011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 Support multi-extent iso files.
10478
10479 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10480 Add node.
10481 (grub_fshelp_node): Revamp. All users updated.
10482 (FLAG_*): New enum.
10483 (read_node): New function.
10484 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10485 All users updated.
10486 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10487 (get_node_size): New function.
10488 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10489 entries.
10490 Fix memory leak on . and ..
10491 (grub_iso9660_read): Use read_node.
10492 (grub_iso9660_close): Free node.
10493
d4888031
VS
104942011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10495
10496 Fix tar 4G limit and handle paths containing dot.
10497
10498 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10499 (canonicalize): New function.
10500 (grub_cpio_find_file): Use canonicalize. Store offs in
10501 grub_disk_addr_t.
10502 (grub_cpio_dir): Use grub_disk_addr_t.
10503 (grub_cpio_open): Likewise.
10504
9f12e664
VS
105052011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10506
10507 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10508
10509 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10510 unused flags.
10511 (grub_squash_inode): Add long_file and block_size.
10512 (grub_squash_cache_inode): New struct.
10513 (grub_squash_dirent): Make types into enum.
10514 (SQUASH_TYPE_LONG_REGULAR): New type.
10515 (grub_squash_frag_desc): Add field size.
10516 (SQUASH_BLOCK_FLAGS): New enum.
10517 (grub_squash_data): Use grub_squash_cache_inode.
10518 (grub_fshelp_node): Make ino_chunk 64-bit.
10519 (read_chunk): Minor argument change. All users updated.
10520 (squash_mount): Use correct le_to_cpu.
10521 (grub_squash_open): Handle LONG_REGULAR.
10522 (direct_read): New function.
10523 (grub_squash_read_data): Handle blocks correctly.
10524
9f326fba
VS
105252011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10526
10527 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10528
f4d9b64b
VS
105292011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10530
10531 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10532
5bbd28b8
VS
105332011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10534
10535 Fix 2G limit on ZFS.
10536
10537 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10538 types.
10539 (uberblock_verify): Likewise.
10540 (dmu_read): Likewise.
10541 (grub_zfs_read): Likewise. Remove invalid cast.
10542
68c72069
VS
105432011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10544
10545 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10546 (grub_jfs_blkno): Fix incorrect shift.
10547 (grub_jfs_read_file): Use more appropriate types.
10548
6e536dc8
VS
105492011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 Support triple indirect on minix2 and minix3.
10552
10553 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10554 Declare triple_indir_zone.
10555 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10556 indirect.
10557
e0864e7a
VS
105582011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10559
10560 Minix FS fixes.
10561
10562 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10563 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10564 Rename ctime to mtime. All users updated.
10565 (grub_minix_get_file_block): Fix types and double indirect computations.
10566
89481cab
VS
105672011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10568
10569 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10570 if no label is found.
10571 (grub_fat_iterate_dir): Fix file size type.
10572 (grub_fat_iterate_dir): Likewise.
10573
f646e143
VS
105742011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10577 save some space.
10578 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10579 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10580
534d769e
VS
105812011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10582
10583 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10584
e084ba18
VS
105852011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10586
10587 * util/import_gcry.py: Accept space between # and include.
10588
3471ecdf
VS
105892011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10590
10591 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10592
124df5f6
VS
105932011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10594
10595 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10596
10597 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10598 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10599 yylex_strncpy.
10600 * grub-core/script/yylex.l: Add fine-grained #pragma.
10601
4defb8d5
VS
106022011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10603
10604 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10605 New inline function.
10606 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10607 Likewise.
10608 (memset) [GRUB_UTIL]: Likewise.
10609 (memcmp) [GRUB_UTIL]: Likewise.
10610
4e94ae65
VS
106112011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10614 inline function rather than a define.
10615
18c575e5
VS
106162011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * util/grub-setup.c: Add missing include.
10619
f8bc22a8
VS
106202011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10621
10622 * util/ieee1275/grub-ofpathname.c: Add missing include.
10623
3ce69fc9
VS
106242011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10625
10626 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10627 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10628 Likewise.
10629
d1e293bb
VS
106302011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10631
10632 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10633 grub_memcmp usage.
10634
7a5c54a4
VS
106352011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10636
10637 * util/grub-install.in: Add datarootdir as per automake manual
10638 suggestion.
10639 * util/grub-mknetdir.in: Likewise.
10640
106412011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
10642
10643 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10644 suggestion.
10645 * util/grub.d/10_kfreebsd.in: Likewise.
10646 * util/grub.d/10_linux.in: Likewise.
10647 * util/grub.d/10_netbsd.in: Likewise.
10648 * util/grub.d/10_windows.in: Likewise.
10649 * util/grub.d/20_linux_xen.in: Likewise.
10650
766f7d08
VS
106512011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10652
10653 Remove redundant grub_kernel_image_size.
10654
10655 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10656 _edata and _start.
10657 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10658 the small code. It moves it only by few bytes but simplifies the code.
10659 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10660 _start.
10661 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10662 (grub_kernel_image_size): Removed.
10663 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10664 (grub_kernel_image_size): Removed.
10665 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10666 compiled with Apple toolchain.
10667 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10668 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10669 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10670 (grub_total_module_size): Likewise.
10671 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10672 Removed.
10673 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10674 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10675 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10676 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10677 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10678 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10679 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10680 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10681 Removed.
10682 (grub_total_module_size): Removed.
10683 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10684 (image_targets): Likewise.
10685 Set .compressed_size to no field on sparc.
10686 (generate_image): Remove kernel_image_size handling.
10687
fcf1d672
SJ
106882011-10-19 Szymon Janc <szymon@janc.net.pl>
10689
10690 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10691 NULL pointer dereference.
10692
de9c615e
VS
106932011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10694
10695 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10696 done with a dedicated section.
10697
10698 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10699 Ensure the correct position of boot_path.
10700 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10701 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10702 other fields.
10703 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10704 * include/grub/boot.h: Removed. All references removed.
10705 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10706 Removed.
10707 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10708
e55599dc
VS
107092011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10710
10711 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10712 name.
10713
36dd20ad
VS
107142011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10715
10716 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10717
f8f72eb8
VS
107182011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10719
10720 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10721 Don't add the bogus brackets.
10722
a374751b
VS
107232011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10724
10725 ExFAT support.
10726
10727 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10728 * grub-core/Makefile.core.def (exfat): New module.
10729 * grub-core/fs/exfat.c: New file.
10730 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10731 (GRUB_FAT_ATTR_*): Make into an enum.
10732 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10733 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10734 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10735 (GRUB_FAT_MAXFILE): Removed.
10736 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10737 (grub_current_fat_bpb_t): New type.
10738 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10739 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10740 (grub_fat_dir_node_t): New type.
10741 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10742 (fat_log2) [MODE_EXFAT]: Removed.
10743 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10744 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10745 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10746 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10747 (grub_fat_label) [MODE_EXFAT]: New function.
10748 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10749 reserved_first_sector to 0.
10750
544c2487
VS
107512011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10752
10753 Move grub_reboot out of the kernel.
10754
10755 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10756 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10757 * grub-core/lib/efi/reboot.c: ... here.
10758 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10759 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10760 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10761 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10762 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10763 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10764 * grub-core/lib/ieee1275/reboot.c: ... here.
10765 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10766 * grub-core/lib/mips/arc/reboot.c: ... here.
10767 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10768 * grub-core/lib/mips/loongson/reboot.c: ...here.
10769 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10770 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10771 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10772 * include/grub/i386/reboot.h: New file.
10773 * include/grub/mips/loongson/ec.h: Fix includes.
10774 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10775 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10776 * grub-core/lib/i386/reboot.c: New file.
10777
a97501d2
VS
107782011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10779
10780 Make grub_prefix into module to fix the arbitrary limit and save
10781 some space.
10782
10783 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10784 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10785 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10786 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10787 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10788 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10789 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10790 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10791 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10792 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10793 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10794 * include/grub/ia64/efi/kernel.h: Removed.
10795 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10796 (grub_prefix): Removed.
10797 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10798 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10799 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10800 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10801 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10802 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10803 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10804 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10805 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10806 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10807 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10808 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10809 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10810 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10811 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10812 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10813 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10814 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10815 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10816 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10817 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10818 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10819 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10820 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10821 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10822 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10823 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10824 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10825 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10826 from module.
10827 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10828 prefix_end.
10829 (image_targets): Likewise.
10830 (generate_image): Put prefix as a module.
10831
39705fad
VS
108322011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10833
10834 Replace grub_module_iterate with FOR_MODULES.
10835
10836 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10837 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10838 (grub_efi_modules_addr): ...this.
10839 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10840 (grub_efi_init): Set grub_modbase.
10841 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10842 (grub_modbase): New variable.
10843 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10844 (grub_modbase): New variable.
10845 (grub_machine_init): Set grub_modbase.
10846 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10847 (grub_modbase): New variable.
10848 (grub_machine_init): Set grub_modbase.
10849 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10850 (grub_modbase): New variable.
10851 (grub_machine_init): Set grub_modbase.
10852 * grub-core/kern/main.c (grub_module_iterate): Remove.
10853 (grub_modules_get_end): Use grub_modbase.
10854 (grub_load_modules): Use FOR_MODULES.
10855 (grub_load_config): Likewise.
10856 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10857 (grub_modbase): New variable.
10858 (grub_machine_init): Set grub_modbase.
10859 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10860 (grub_modbase): New variable.
10861 (grub_machine_init): Set grub_modbase.
10862 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10863 Removed.
10864 (grub_modbase): New variable.
10865 (grub_machine_init): Set grub_modbase.
10866 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10867 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10868 (grub_module_iterate): Likewise.
10869 (grub_modbase): New variable declaration.
10870 (FOR_MODULES): New macro.
10871
2afb7f6c
VS
108722011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10873
10874 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10875 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10876
366e34fa
VS
108772011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10878
10879 Fix few obvious type discrepancies.
10880
10881 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10882 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10883 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10884 variable.
10885 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10886 and connected types.
10887 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10888 offset.
10889 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10890 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10891 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10892 and connected types.
10893
177b960e
VS
108942011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10895
10896 Fix python 3.x incompatibilities.
10897
10898 * gentpl.py: Put brackets around print strings.
10899 * util/import_gcry.py: Open explicitly as utf-8.
10900 Use in instead of has_key.
10901
3b619ae1
VS
109022011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10903
10904 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10905 (GRUB_XFS_INO_AGBITS): Make into inline function.
10906 (GRUB_XFS_INO_INOINAG): Likewise.
10907 (GRUB_XFS_INO_AG): Likewise.
10908 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10909 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10910 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10911 (GRUB_XFS_EXTENT_SIZE): Likewise.
10912 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10913 (GRUB_XFS_NEXT_DIRENT): Likewise.
10914 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10915 (grub_xfs_read_file): Fix offset type.
10916
8bcebcb8
RM
109172011-10-15 Robert Millan <rmh@gnu.org>
10918
10919 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10920
0017e5ef
RM
109212011-10-15 Robert Millan <rmh@gnu.org>
10922
10923 Fix build problem on FreeBSD and GNU/kFreeBSD.
10924
10925 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10926
d8919552
VS
109272011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10930
10931 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10932 types.
10933 (grub_hfsplus_btree_recoffset): Likewise.
10934 (grub_hfsplus_btree_recptr): Likewise.
10935 (grub_hfsplus_find_block): Likewise.
10936 (grub_hfsplus_btree_search): Likewise.
10937 (grub_hfsplus_read_block): Likewise.
10938 (grub_hfsplus_read_file): Likewise.
10939 (grub_hfsplus_mount): Likewise.
10940 (grub_hfsplus_btree_iterate_node): Likewise.
10941 (grub_hfsplus_btree_search): Likewise.
10942 (grub_hfsplus_iterate_dir): Likewise.
10943 (grub_hfsplus_read): A small code simplification.
10944
c81296b6
VS
109452011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10946
10947 * grub-core/kern/emu/hostdisk.c
10948 (convert_system_partition_to_system_disk): Don't assume that children
10949 of mapper nodes are mapper nodes.
10950
0eb8ffb1
VS
109512011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10952
10953 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10954 * include/grub/misc.h (grub_isxdigit): New function.
10955 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10956 switched to grub_isxdigit.
10957 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10958 number starting with a letter.
10959
a98f4a08
RM
109602011-10-09 Robert Millan <rmh@gnu.org>
10961
10962 LVM support for FreeBSD and GNU/kFreeBSD.
10963
10964 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10965 GNU/kFreeBSD.
10966 (LVM_DEV_MAPPER_STRING): Move from here ...
10967 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10968 * util/getroot.c: Include `<grub/util/lvm.h>'.
10969 (grub_util_get_dev_abstraction): Enable
10970 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10971 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10972 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10973 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10974 support it.
10975 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10976 GNU/kFreeBSD.
10977 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10978 when LVM abstraction is required for ${GRUB_DEVICE}.
10979
050e8e90
SJ
109802011-10-06 Szymon Janc <szymon@janc.net.pl>
10981
10982 Add support for LZO compression in GRUB:
10983 - import of minilzo library,
10984 - LZO decompression for btrfs,
10985 - lzop files decompression.
10986
10987 * grub-core/io/lzopio.c: New file.
10988 * grub-core/lib/adler32.c: Likewise.
10989 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10990 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10991 * grub-core/lib/minilzo/minilzo.c: Likewise.
10992 * grub-core/lib/minilzo/minilzo.h: Likewise.
10993 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10994 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10995 grub-core/lib/minilzo/minilzo.c to common.
10996 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10997 cflags in cppflags.
10998 * grub-core/Makefile.core.def (btrfs): Likewise.
10999 * grub-core/Makefile.core.def (lzopio): New module.
11000 (adler32): Likewise.
11001 * grub-core/fs/btrfs.c: Include minilzo.h.
11002 (GRUB_BTRFS_COMPRESSION_LZO): New define.
11003 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
11004 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
11005 (grub_btrfs_lzo_decompress): New function.
11006 (grub_btrfs_extent_read): Add support for LZO compression type.
11007 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
11008 (GRUB_USHRT_MAX): Likewise.
11009 (GRUB_UINT_MAX): Likewise.
11010 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
11011 (UINT_MAX): Likewise.
11012 (CHAR_BIT): Likewise.
11013 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
11014 grub-core/lib/posix_wrap/limits.h
11015 (UCHAR_MAX): Likewise.
11016 * include/grub/file.h (grub_file_filter_id): New compression filter
11017 GRUB_FILE_FILTER_LZOPIO.
11018 * include/grub/file.h (grub_file_filter_id): Set
11019 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
11020 * include/grub/types.h (grub_get_unaligned16): New function.
11021 (grub_get_unaligned32): Likewise.
11022 (grub_get_unaligned64): Likewise.
11023 * util/import_gcry.py (cryptolist): Add adler32.
11024
0eb8ffb1
VS
110252011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
11026
11027 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
11028 in perspective decreases the complexity of build system and fixes
11029 compilation right now.
11030
ce79cc99 110312011-10-01 Ales Nesrsta <starous@volny.cz>
11032
11033 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
11034 (fixed problem related to using UHCI with coreboot).
11035
8667a314
BC
110362011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
11037
11038 * gentpl.py: Use Autogen macros so that the output template file
11039 (Makefile.tpl) size is reduced.
11040
fc5efcc0
MK
110412011-09-29 Mads Kiilerich <mads@kiilerich.com>
11042
11043 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
11044 extra_dist.
11045
d1ab689d
ML
110462011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11047
11048 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
11049 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
11050
c05de032
ML
110512011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11052
11053 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
11054 _fullpath.
11055
cca7ccd8
ML
110562011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11057
11058 Remove extra declaration of sleep for mingw32.
11059
11060 * util/misc.c (sleep) [__MINGW32__]: Removed.
11061 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
11062
e0b0dc83
GS
110632011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
11064
11065 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
11066 type and packname.
11067 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
11068 Resurrected.
11069 (NETBSD_BTINFO_BOOTWEDGE): New definition.
11070 (grub_netbsd_btinfo_bootwedge): New struct.
11071 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11072 New function.
11073 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
11074
91a1a164
TH
110752011-09-28 Thomas Haller <thomas.haller@fen-net.de>
11076
11077 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
11078 loader.
11079
2ded951e
AB
110802011-09-28 Andreas Born <futur.andy@googlemail.com>
11081
11082 Fix incorrect identifiers in bash-completion.
11083
11084 * util/bash-completion.d/grub-completion.bash.in
11085 (_grub_mkpasswd-pbkdf2): Rename to ...
11086 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
11087 (_grub_script-check): Rename to ...
11088 (_grub_script_check): ... this. All users updated.
11089
69915030
VS
110902011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
11091
11092 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11093 Return 0 if disk isn't biosdisk.
11094
20fd15f9
GS
110952011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11096
11097 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
11098 on NetBSD.
11099 * Makefile.util.def (grub-fstest): Likewise.
11100
1a7d7db9
GS
111012011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11102
11103 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
11104 Get sector size from disk label.
11105
2221ab6c
CW
111062011-09-05 Colin Watson <cjwatson@ubuntu.com>
11107
11108 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
11109 */README* as well as README*.
11110 Reported by: Axel Beckert.
11111
ca51c4a0
VS
111122011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11113
11114 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
11115 case of less than 256 MiB of RAM.
11116
ab80f326
VS
111172011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11118
11119 * grub-core/commands/wildcard.c (make_regex): Handle @.
11120
4155e697
VS
111212011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11122
11123 * util/grub-install.in: Move cryptodisk logic to appropriate place.
11124
ab178c08
SJ
111252011-08-21 Szymon Janc <szymon@janc.net.pl>
11126
11127 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
11128 AC_LANG_CONFTEST macros.
11129
7dc3c686
SJ
111302011-08-20 Szymon Janc <szymon@janc.net.pl>
11131
11132 Add grub-fstest option to uncompress data for commands.
11133
11134 * util/grub-fstest.c (uncompress): New var.
11135 (options): New option -u.
11136
fe8d4a7b
SJ
111372011-08-20 Szymon Janc <szymon@janc.net.pl>
11138
11139 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
11140 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
11141
a5219af1
SJ
111422011-08-20 Szymon Janc <szymon@janc.net.pl>
11143
11144 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
11145 file type was not recognized correctly (not gzip or corrupted).
11146
f87abff5
VS
111472011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11148
11149 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
11150 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
11151
d94497ea
VS
111522011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11153
11154 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
11155 loongson.
11156 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
11157 video_radeon_fuloong2e.
11158 * grub-core/video/radeon_fuloong2e.c: New file.
11159 * include/grub/video.h (grub_video_id_t): Add new ID
11160 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
11161
0d1fd011
VS
111622011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11163
11164 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
11165 define.
11166 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
11167 that PRID matches the detected subplatform and reset the subplatform
11168 if it doesn't.
11169
84beb0ee
VS
111702011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
11173
1227c133
VS
111742011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11175
11176 Fix PCI iterating on functions >= 4.
11177
11178 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
11179 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
11180 Removed.
11181 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
11182 (grub_pci_read): Fix bitmask.
11183 (grub_pci_read_word): Likewise.
11184 (grub_pci_read_byte): Likewise.
11185 (grub_pci_write): Likewise.
11186 (grub_pci_write_word): Likewise.
11187 (grub_pci_write_byte): Likewise.
11188
9594c689
VS
111892011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11190
11191 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
11192 can still be specified in TARGET_CFLAGS)
11193
14a2562c
VS
111942011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11195
11196 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
11197
11198 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
11199 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
11200 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
11201 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
11202 (FULOONG): Rename to ...
11203 (FULOONG2F): ... this. All users updated.
11204 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
11205 (machtype_fuloong2f_str): ... this.
11206 (machtype_fuloong2e_str): New string.
11207 Check for machtype_fuloong2e_str.
11208 * grub-core/loader/mips/linux.c (loongson_machtypes)
11209 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
11210 * grub-core/term/serial.c (loongson_defserial)
11211 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
11212 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
11213 loongson_defserial.
11214 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
11215 Rename to ...
11216 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
11217 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
11218 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
11219 to IMAGE_FULOONG2F_FLASH. All users updated.
11220 (image_targets): Rename images.
11221 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
11222
b526cbb6
SJ
112232011-08-19 Szymon Janc <szymon@janc.net.pl>
11224
11225 Make enable of disk cache statistics code configurable.
11226
11227 * configure.ac: --enable-cache-stats added.
11228 * config.h.in (DISK_CACHE_STATS): New define.
11229 * grub-core/Makefile.core.def (cacheinfo): New command.
11230 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
11231 * grub-core/commands/cacheinfo.c: New file.
11232 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
11233 moved to cacheinfo.c.
11234 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
11235 debug code.
11236 * include/grub/disk.h: Likewise.
11237
fb739ccd
SJ
112382011-08-19 Szymon Janc <szymon@janc.net.pl>
11239
11240 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
11241 * grub-core/Makefile.am: Likewise.
11242
2bba8cfd
VS
112432011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11244
11245 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
11246 non-zero pull.
11247
43526629
VS
112482011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11249
11250 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
11251 All users updated.
11252 (grub_jfs_lookup_symlink): Use correct starting inode.
11253
5c144cc8
VS
112542011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11255
11256 * util/grub-setup.c (main): Add missing gcry initialisation.
11257
b1257f65
VS
112582011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11259
11260 Don't accept text modes on EFI when booting Linux.
11261
11262 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
11263 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
11264
828bc390
ML
112652011-08-15 Mario Limonciello <mario_limonciello@dell.com>
112662011-08-15 Colin Watson <cjwatson@ubuntu.com>
11267
11268 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11269 use of "/path/.." as in grub-install for EFI as well as handling
11270 symlinks correctly.
11271 Fixes Debian bug #637768.
11272
5f60ccac
CW
112732011-08-15 Colin Watson <cjwatson@ubuntu.com>
11274
11275 * util/grub-probe.c: Remove duplicate #include.
11276
6dc212f9
RM
112772011-08-10 Robert Millan <rmh@gnu.org>
11278
11279 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11280
11281 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11282 function.
11283 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11284 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11285
66816d85
RM
112862011-08-03 Robert Millan <rmh@gnu.org>
11287
11288 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11289 la_array as packed.
11290 Reported by: Zachary Bedell
11291
20168fca
CW
112922011-07-26 Colin Watson <cjwatson@ubuntu.com>
11293
11294 * configure.ac: The Loongson port requires grub-mkfont due to its
11295 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11296 be built.
11297
303b6246
CW
112982011-07-26 Colin Watson <cjwatson@ubuntu.com>
11299
11300 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11301 processing arguments (otherwise help2man fails when GRUB has not yet
11302 been installed).
11303
6795300e
VS
113042011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11305
41aa28ea
VS
11306 New script grub-mkstandalone.
11307
11308 * Makefile.util.def (grub-mkstandalone): New script.
11309 * docs/man/grub-mkstandalone.h2m: New file.
11310 * util/grub-mkstandalone.in: Likewise.
11311
113122011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11313
11314 Support ATA disks with 4K sectors.
6795300e
VS
11315
11316 * include/grub/ata.h (grub_ata): New member log_sector_size.
11317 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11318 (grub_ata_identify): Read sector size.
11319 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11320
92227597
VS
113212011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 * util/grub-install.in: Don't use uhci outside of x86.
11324
c77069f5
VS
113252011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11326
11327 * util/grub-mkrescue.in: Add missing quotes.
11328
113292011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
11330
11331 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11332 dereference.
11333
583168a2
VS
113342011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11335
11336 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11337
6be1c01f
VS
113382011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 * include/grub/video.h: add missing EXPORT_FUND on
11341 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11342
a1167439
VS
113432011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11344
11345 * include/grub/mips/kernel.h: Fix define conflict.
11346
bf66054f
VS
113472011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11348
11349 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11350 all four ways.
11351
8fc4fa45
CW
113522011-07-21 Colin Watson <cjwatson@ubuntu.com>
11353
11354 Preferred resolution detection for VBE.
11355
11356 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11357 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11358 the Flat Panel extension, in line with the X.org VESA driver.
11359 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11360 New function.
11361 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11362 (grub_vbe_bios_read_edid): Likewise.
11363 (grub_vbe_get_preferred_mode): Likewise.
11364 (grub_video_vbe_setup): When the mode is "auto", try to get the
11365 preferred mode from VBE, and use the largest mode that is no larger
11366 than the preferred mode (some BIOSes expose a preferred mode that is
11367 not in their mode list!). If this fails, fall back to 640x480 as a
11368 safe conservative choice.
11369 (grub_video_vbe_get_edid): New function.
11370 (grub_video_vbe_adapter): Add get_edid.
11371 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11372 (struct grub_video_adapter): Add get_edid.
11373 (grub_video_edid_checksum): Add prototype.
11374 (grub_video_edid_preferred_mode): Likewise.
11375 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11376 structure.
11377
11378 * grub-core/commands/videoinfo.c (print_edid): New function.
11379 (grub_cmd_videoinfo): Print EDID if available.
11380
11381 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11382 is more appropriate on a wider range of platforms than 640x480.
11383 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11384 documentation.
11385
ca5572a9
VS
113862011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11387
11388 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11389
e4bcf625
VS
113902011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11391
11392 * po/POTFILES.in: Regenerate.
11393
c4edd548
VS
113942011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11395
11396 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11397 incorrect memory usage.
11398
16a2bab0
VS
113992011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11400
11401 * util/grub-install.in: Source grub-mkconfig_lib.
11402
2e418de6
VS
114032011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11404
11405 Remove getroot.c from core on emu platform.
11406
11407 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11408 kern/emu/raid.c.
11409 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11410 useless.
11411 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11412 * util/getroot.c (get_win32_path): ... here.
11413 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11414 * util/getroot.c (fini_libzfs): ... here.
11415 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11416 * util/getroot.c (grub_get_libzfs_handle): ... here.
11417 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11418 Moved from here...
11419 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11420 * grub-core/kern/emu/misc.c
11421 (grub_make_system_path_relative_to_its_root): Moved from here...
11422 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11423 * grub-core/kern/emu/getroot.c: Moved from here ...
11424 * util/getroot.c: ... here. All users updated.
11425 * grub-core/kern/emu/raid.c: Moved from here ...
11426 * util/raid.c: ... here. All users updated.
11427
def9832a
VS
114282011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11429
11430 * po/POTFILES.in: Regenerate.
11431
cd8fe79a
VS
114322011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11433
11434 Fix compilation on GNU/Linux.
11435
11436 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11437 Disable geli.
11438 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11439 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11440 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11441
a251b719
VS
114422011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
114432011-07-07 Michael Gorven <michael@gorven.za.net>
114442011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11445
11446 LUKS and GELI support.
11447
11448 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11449 grub-core/disk/luks.c, grub-core/disk/geli.c,
11450 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11451 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11452 grub-core/lib/arg.c.
11453 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11454 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11455 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11456 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11457 (grub-bin2h): Add libgcry.a.
11458 (grub-mkimage): Likewise.
11459 (grub-mkrelpath): Likewise.
11460 (grub-script-check): Likewise.
11461 (grub-editenv): Likewise.
11462 (grub-mkpasswd-pbkdf2): Likewise.
11463 (grub-pe2elf): Likewise.
11464 (grub-fstest): Likewise.
11465 (grub-mkfont): Likewise.
11466 (grub-mkdevicemap): Likewise.
11467 (grub-probe): Likewise.
11468 (grub-ofpath): Likewise.
11469 (grub-mklayout): Likewise.
11470 (example_unit_test): Likewise.
11471 (grub-menulst2cfg): Likewise.
11472 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11473 * grub-core/Makefile.core.def (cryptodisk): New module.
11474 (luks): Likewise.
11475 (geli): Likewise.
11476 * grub-core/disk/AFSplitter.c: New file.
11477 * grub-core/disk/cryptodisk.c: Likewise.
11478 * grub-core/disk/geli.c: Likewise.
11479 * grub-core/disk/luks.c: Likewise.
11480 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11481 grub_util_is_lvm.
11482 (grub_util_get_dm_abstraction): New function.
11483 (grub_util_follow_gpart_up): Likewise.
11484 (grub_util_get_geom_abstraction): Likewise.
11485 (grub_util_get_dev_abstraction): Use new functions.
11486 (grub_util_pull_device): Pull GELI and LUKS.
11487 (grub_util_get_grub_dev): Handle LUKS and GELI.
11488 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11489 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11490 (follow_geom_up): Removed.
11491 (grub_util_fd_seek): New function.
11492 (open_device): Use grub_util_fd_seek.
11493 (nread): Rename to ..
11494 (grub_util_fd_read): ... this. All users updated.
11495 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11496 (grub_crypto_cbc_decrypt): Likewise.
11497 (grub_crypto_hmac_write): Likewise.
11498 (grub_crypto_hmac_buffer): Likewise.
11499 (grub_password_get): Extend to util.
11500 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11501 New member modname.
11502 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11503 * include/grub/cryptodisk.h: New file.
11504 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11505 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11506 LUKS and GELI.
11507 (grub_util_follow_gpart_up): New proto.
11508 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11509 (grub_util_fd_read): Likewise.
11510 (grub_cryptodisk_cheat_mount): Likewise.
11511 (grub_util_cryptodisk_print_uuid): Likewise.
11512 (grub_util_get_fd_sectors): Likewise.
11513 * util/grub-fstest.c (mount_crypt): New var.
11514 (fstest): Mount crypto if requested.
11515 (options): New option -C.
11516 (argp_parser): Parse -C.
11517 (main): Init and fini gcry.
11518 * util/grub-install.in: Support cryptodisk install.
11519 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11520 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11521 cryptodisk.
11522 (prepare_grub_to_access_device): Likewise.
11523 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11524 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11525 (probe_cryptodisk_uuid): New function.
11526 (probe_abstraction): Likewise.
11527 (probe): Use new functions.
11528 * util/import_gcry.py: Create Makefile.utilgcry.def.
11529 Add modname member.
11530
9bfdcbbc
VS
115312011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11532
11533 Lazy device scanning.
11534
11535 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11536 (grub-setup): Remove util/raid.c.
11537 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11538 * grub-core/disk/lvm.c (scan_depth): New variable.
11539 (grub_lvm_iterate): Rescan if necessary.
11540 (find_lv): New function based on grub_lvm_open.
11541 (grub_lvm_open): Use find_lv. Rescan on error.
11542 (is_node_readable): New function.
11543 (is_lv_readable): Likewise.
11544 (grub_lvm_scan_device): Skip already found disks.
11545 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11546 Stop if searched device is found and readable.
11547 * grub-core/disk/raid.c (inscnt): New variable.
11548 (scan_depth): Likewise.
11549 (scan_devices): New function based on grub_raid_register. Abort if
11550 looked for device is found.
11551 (grub_raid_iterate): Rescan if needed.
11552 (find_array): NEw function based on -grub_raid_open.
11553 (grub_raid_open): Use find_array and rescan.
11554 (insert_array): Set became_readable_at.
11555 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11556 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11557 New function.
11558 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11559 (grub_util_pull_device): New function.
11560 (grub_util_get_grub_dev): Call grub_util_pull_device.
11561 * util/raid.c: Moved to ..
11562 * grub-core/kern/emu/raid.c: ... here.
11563 (grub_util_raid_getmembers): New parameter "bootable".
11564 All users updated. Support 1.x.
11565 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11566 All users updated.
11567 * include/grub/disk.h (grub_disk_pull_t): New enum.
11568 (grub_disk_dev): Change iterate prototype.
11569 All users updated.
11570 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11571 New proto.
11572 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11573 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11574 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11575 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11576 All users updated.
11577 * include/grub/util/raid.h: Removed.
11578
1c358e59
VS
115792011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11580
11581 * po/POTFILES.in: Regenerate.
11582
abee94ed
VS
115832011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11584
11585 Unify sparc init with other ieee1275.
11586
11587 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11588 instead of kern/sparc64/ieee1275/init.c.
11589 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11590 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11591 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11592 grub/machine/kernel.h.
11593 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11594 (grub_claim_heap) [__sparc__]: Use sparc version.
11595 (grub_machine_init): Moved args parsing to
11596 (grub_parse_cmdline): ...this.
11597 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11598 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11599 New definition.
11600 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11601
11602 Move BOOTP to separate file.
11603
11604 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11605 * grub-core/net/net.c: Move all BOOTP functions to
11606 * grub-core/net/bootp.c: ... here.
11607
11608 Use frame interface on PXE.
11609
11610 * grub-core/Makefile.core.def (pxecmd): Removed.
11611 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11612 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11613 * grub-core/i386/pc/pxe.c: Moved from here ...
11614 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11615 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11616 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11617
11618 EFI network support.
11619
11620 * grub-core/Makefile.core.def (efinet): New module.
11621 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11622 here...
11623 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11624 All users updated.
11625 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11626 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11627 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11628 * grub-core/net/drivers/efi/efinet.c: New file.
11629 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11630 (grub_efi_net_config): New extern var.
11631
11632 Various cleanups and bugfixes.
11633
11634 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11635 error.
11636 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11637 disk declared as partition.
11638 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11639 leak on failure.
11640 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11641 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11642 (grub_debug_zalloc): Likewise.
11643 (grub_debug_realloc): Likewise.
11644 (grub_debug_memalign): Likewise.
11645 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11646 Check that target is IPv4.
11647 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11648 local-mac-address as fallback.
11649 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11650 memory leak.
11651 * grub-core/net/ip.c (ipchksum): Rename to ...
11652 (grub_net_ip_chksum): ... this. All users updated.
11653 (grub_net_recv_ip_packets): Special handling for DHCP.
11654 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11655
11656 Unify prefix handling
11657
11658 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11659 (grub_machine_get_bootlocation): ... this.
11660 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11661 (grub_machine_get_bootlocation): ... this.
11662 (grub_prefix): New variable.
11663 (prefix): Removed.
11664 (root_dev): New variable.
11665 (dir): Likewise.
11666 (main): Use new variables.
11667 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11668 Revamped into ...
11669 (grub_machine_get_bootlocation): ... this.
11670 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11671 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11672 (grub_machine_get_bootlocation): ... this.
11673 (grub_machine_set_prefix): Removed.
11674 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11675 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11676 Revamped into ...
11677 (grub_machine_get_bootlocation): ... this.
11678 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11679 (grub_set_prefix_and_root): ... this. All users updated.
11680 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11681 Revamped into ...
11682 (grub_machine_get_bootlocation): ... this.
11683 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11684 (grub_machine_get_bootlocation): New proto.
11685 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11686
11687 Less intrusive and more reliable seek on network implementation.
11688
11689 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11690 (grub_file_seek): Don't call grub_file_net_seek.
11691 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11692 (grub_net_fs_read_real): .. this.
11693 (grub_net_seek_real): Use net->offset.
11694 (grub_net_fs_read): Seek if necessary.
11695
11696 Unify IEEE1275 netwotk config with the other platforms.
11697
11698 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11699 New variable.
11700 (grub_machine_get_bootlocation): Support network.
11701 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11702 Support type and device parsing.
11703 (grub_ieee1275_get_device_type): New function.
11704 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11705 into ...
11706 (grub_ieee1275_net_config_real): ... this.
11707 (grub_ofnet_probecards): Removed.
11708 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11709 * include/grub/ieee1275/ofnet.h: Removed.
11710 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11711 extern var.
11712 (grub_ieee1275_get_device_type): New function.
11713
11714 Unify network device closing across platforms and make more robust.
11715
11716 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11717 grub_grubnet_fini.
11718 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11719 already.
11720 * grub-core/net/net.c (grub_net_network_level_interface_register):
11721 Update num_ifaces.
11722 (grub_net_card_unregister): Close all interfaces.
11723 (receive_packets): Don't poll if no iterfaces are registered.
11724 Open if necessary.
11725 (grub_net_fini_hw): New function.
11726 (grub_net_restore_hw): Likewise.
11727 (fini_hnd): New variable.
11728 (GRUB_MOD_INIT): Register preboot hook.
11729 (GRUB_MOD_FINI): Run and unregister preboot hook.
11730
11731 Poll network cards when idle.
11732
11733 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11734 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11735 * grub-core/net/net.c (receive_packets): Save last poll time.
11736 (grub_net_poll_cards_idle_real): New function.
11737 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11738 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11739 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11740
11741 Rename ofnet interfaces.
11742
11743 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11744 (grub_ofnet_findcards): Use ofnet_%s names.
11745
11746 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11747
11748 Cleanup socket opening.
11749
11750 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11751 (grub_net_fs_close): Likewise.
11752 (grub_net_fs_read_real): Use eof member.
11753 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11754 (+grub_net_udp_close): New inline function.
11755
11756 * include/grub/net/tftp.h: Moved to the top of ...
11757 * grub-core/net/tftp.c: ... here.
11758 * include/grub/net/ip.h: Moved mostly to the top of ...
11759 * grub-core/net/ip.c: ... here.
11760 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11761 * grub-core/net/ethernet.c: ... here.
11762
11763 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11764
11765 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11766 FS name.
11767
11768 * include/grub/net/ip.h (ipv4_ini): Removed.
11769 (ipv4_fini): Likewise.
11770
11771 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11772 (grub_net_send_ip_packets): Likewise.
11773
cf1337aa
VS
117742011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11775
11776 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11777 grub_read_cmos prototype.
11778
93c06ff9
VS
117792011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11780
11781 VGA text support in qemu-mips
11782
11783 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11784 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11785 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11786 text.
11787 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11788 * grub-core/kern/vga_init.c: ... this.
11789 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11790 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11791 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11792 Adjust.
11793 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11794 GRUB_MACHINE_PCI_IO_BASE.
11795
748ccabe
VS
117962011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11797
11798 MIPS qemu flash support.
11799
11800 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11801 magic.
11802 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11803 (grub_machine_init): Probe memory if its size isn't known.
11804 * util/grub-mkimage.c (image_targets): Add flash targets.
11805 (generate_image): Handle flash targets.
11806
d7345994
VS
118072011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11808
11809 MIPS qemu at_keyboard support.
11810
11811 * gentpl.py (videoinkernel): Add qemu-mips.
11812 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11813 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11814 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11815 modules.
11816 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11817 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11818 * grub-core/term/serial.c (grub_serial_register)
11819 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11820
a07a81b3
VS
118212011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11822
11823 CMOS support on sparc.
11824
11825 * gentpl.py (cmos): Add powerpc and sparc.
11826 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11827 powerpc and sparc.
11828 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11829 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11830 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11831 grub_set_datetime_cmos.
11832 * grub-core/lib/ieee1275/cmos.c: New file.
11833 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11834 (find_rtc): Set no_ieee1275_rtc on error.
11835 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11836 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11837 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11838 fail. Move value to argument. All users updated
11839 (grub_cmos_write): Likewise.
11840 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11841 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11842 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11843 grub_get_datetime_cmos and grub_set_datetime_cmos.
11844
77546584
GS
118452011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11846
11847 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11848 sourcing grub-mkconfig_lib.
11849 * util/update-grub_lib.in: Likewise.
11850 * util/grub.d/00_header.in: Likewise.
11851 * util/grub.d/10_hurd.in: Likewise.
11852 * util/grub.d/10_kfreebsd.in: Likewise.
11853 * util/grub.d/10_linux.in: Likewise.
11854 * util/grub.d/10_netbsd.in: Likewise.
11855 * util/grub.d/10_windows.in: Likewise.
11856 * util/grub.d/20_linux_xen.in: Likewise.
11857 * util/grub.d/30_os-prober.in: Likewise.
11858
54894791
CW
118592011-06-28 Colin Watson <cjwatson@ubuntu.com>
11860
11861 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11862 default_bg_color rather than black.
11863 (grub_gfxterm_fullscreen): Likewise.
11864 (grub_gfxterm_background_color_cmd): Save new background color in
11865 default_bg_color.
11866
8d5d8444
VS
118672011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11868
11869 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11870
5afeb5bd
VS
118712011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11872
11873 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11874 mismerge.
11875
ba7df45e
VS
118762011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11877
11878 Chainloading on coreboot support.
11879
11880 * grub-core/Makefile.core.def (chain): Add coreboot.
11881 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11882
d0b526b2
VS
118832011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11884
11885 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11886 if it happens.
11887
5ff1d945
VS
118882011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11889
11890 Implement time command.
11891
11892 * grub-core/Makefile.core.def (time): New module.
11893 * grub-core/commands/time.c: New file.
11894 * grub-core/script/parser.y: Remove "time" keyword.
11895 * grub-core/script/yylex.l: Likewise.
11896
5ebaad7e
VS
118972011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11898
11899 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11900
bdea3798
VS
119012011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11902
11903 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11904 when handling leftovers.
11905
b28c5655
VS
119062011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11907
11908 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11909 so that help2man doesn't fail.
11910
b6f945dc
VS
119112011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11912
11913 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11914 type in pointers on sparc64.
11915 (get_card_packet): Likewise.
11916
f9b75e8a
CW
119172011-06-27 Colin Watson <cjwatson@ubuntu.com>
11918
11919 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11920 with `*'.
11921 (grub_cmd_videoinfo): Fetch current video mode.
11922
1e3d9b86
VS
119232011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11924
11925 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11926 because of underlying system restrictions.
11927
efff4b1c
VS
119282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11929
11930 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11931 necessary.
11932
9fc9ce37
VS
119332011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11934
11935 Coreboot video support.
11936
11937 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11938 (vbe): Likewise.
11939 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11940 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11941 here ...
11942 * grub-core/kern/i386/int.S: ... here.
11943 * grub-core/video/i386/pc/vbe.c: Updated includes.
11944 * grub-core/video/i386/pc/vga.c: Likewise.
11945 * include/grub/i386/coreboot/memory.h
11946 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11947 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11948 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11949 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11950 Disable interrupts.
11951 * include/grub/i386/pc/vga.h: Removed. All users updated.
11952
41bec7fe
VS
119532011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11956 definitions for dprintf.
11957 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11958
ca80309d
VS
119592011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11960
11961 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11962 prototype.
11963 (get_card_packet): Likewise.
11964
9e322ce8
YB
119652011-06-26 Yves Blusseau <blusseau@zetam.org>
11966
11967 Display the path of the file when file is not found
11968
11969 * grub-core/fs/fat.c: Display the filename when file is not found.
11970 * grub-core/fs/fshelp.c: Likewise.
11971 * grub-core/fs/hfs.c: Likewise.
11972 * grub-core/fs/jfs.c: Likewise.
11973 * grub-core/fs/minix.c: Likewise.
11974 * grub-core/fs/ufs.c: Likewise.
11975 * grub-core/fs/btrfs.c: Likewise.
11976 * grub-core/commands/i386/pc/play.c: Likewise.
11977
cbf597af
SJ
119782011-06-26 Szymon Janc <szymon@janc.net.pl>
11979
11980 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11981 pointer checks before calling grub_free().
11982 * grub-core/commands/wildcard.c (match_devices): Likewise.
11983 * grub-core/commands/wildcard.c (match_files): Likewise.
11984 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11985 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11986 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11987 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11988 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11989 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11990 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11991 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11992 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11993
6295b32f
P
119942011-06-25 Patrick <p55@mailinator.com>
11995
11996 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11997
77c0840b
VS
119982011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11999
12000 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
12001 (grub_pxe_send): Likewise.
12002 (GRUB_MOD_INIT): Fix types.
12003
40ea05de
SJ
120042011-06-24 Szymon Janc <szymon@janc.net.pl>
12005
12006 * grub-core/io/xzio.c: Fix code style issues
12007
90162423
MRA
120082011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
120092011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
12010
12011 Network infrastructure.
12012 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
12013
12014 * include/grub/net/arp.h: New file.
90162423
MRA
12015 * include/grub/net/device.h: Likewise.
12016 * include/grub/net/ethernet.h: Likewise.
12017 * include/grub/net/ip.h: Likewise.
12018 * include/grub/net/netbuff.h: Likewise.
12019 * include/grub/net/tftp.h: Likewise.
12020 * include/grub/net/udp.h: Likewise.
12021 * include/grub/ieee1275/ofnet.h: Likewise.
12022 * include/grub/emu/export.h: Likewise.
12023 * include/grub/net.h: Likewise.
12024 * grub-core/net/arp.c: Likewise.
12025 * grub-core/net/ethernet.c: Likewise.
12026 * grub-core/net/ip.c: Likewise.
12027 * grub-core/net/udp.c: Likewise.
12028 * grub-core/net/tftp.c: Likewise.
12029 * grub-core/net/netbuff.c: Likewise.
12030 * grub-core/net/net.c: Likewise.
12031 * grub-core/net/drivers/emu/emunet.c: Likewise.
12032 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
12033 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
12034 export.h.
12035 * grub-core/Makefile.core.def (net): New module.
12036 (tftp): Likewise.
12037 (ofnet): Likewise.
12038 (emunet): Likewise.
12039 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
12040 network protocols.
12041 * grub-core/kern/device.c (grub_net_open) : New variable.
12042 (grub_device_open): Handle network device.
12043 (grub_device_close): Likewise.
12044 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
12045 (grub_grubnet_fini): Likewise.
12046 (grub_file_seek): Seek in network device.
12047 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
12048 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
12049 network root.
12050 (grub_machine_fini): Call grub_grubnet_fini.
12051 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
12052 network.
12053 (grub_ieee1275_get_aliasdevname): New function.
12054 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
12055 Add unofficial Solaris network info.
12056 (grub_multiboot_make_mbi): Likewise.
12057 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
12058 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
12059 * include/grub/device.h (grub_fs): Removed.
12060 * include/grub/err.h (grub_err_t): Add network-related values.
12061 * include/grub/i386/pc/pxe.h: Removed bootp parts.
12062 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
12063 (grub_ieee1275_get_aliasdevname): New proto.
12064 * include/grub/net.h: Rewritten.
423a1849 12065
031f22a0
VS
120662011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12067
12068 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
12069 names.
12070
4388ca72
VS
120712011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12072
12073 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
12074 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
12075 it truncates the output.
12076 Reported by: Ximin Luo.
12077
98e2f506
VS
120782011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12079
12080 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
12081
2a5e94d8
VS
120822011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12083
12084 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
12085 partmap before abstraction.
12086
535c1910
AK
120872011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
12088
12089 * util/grub-mkconfig_lib.in: Add missing quotes.
12090
bc09e1a2
VS
120912011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12092
12093 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
12094 old method if mountinfo would return /dev/root and /dev/root doesn't
12095 exist.
12096
290766fb
VS
120972011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12098
12099 ZFS zlib support
12100
12101 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
12102 (decomp_table): Add zlib entries.
12103 (zio_read): USe 8 bits for compression function rather than 3.
12104 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
12105
121062011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12107
12108 * grub-core/disk/ahci.c: Add missing license statements.
12109 * grub-core/fs/romfs.c: Likewise.
12110 * grub-core/lib/ia64/setjmp.S: Likewise.
12111 * grub-core/loader/i386/pc/freedos.c: Likewise.
12112 * grub-core/loader/ia64/efi/linux.c: Likewise.
12113 * grub-core/video/colors.c: Likewise.
12114 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
12115
5ab3f48a
VS
121162011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12117
12118 AHCI support.
12119
12120 * grub-core/Makefile.core.def (ata_pthru): Removed.
12121 (ahci): New module.
12122 (pata): Likewise.
12123 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
12124 on unload.
12125 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
12126 readwrite.
12127 (grub_hdparm_do_check_powermode_cmd): Likewise.
12128 (grub_hdparm_do_smart_cmd): Likewise.
12129 (grub_hdparm_set_val_cmd): Likewise.
12130 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
12131 * grub-core/disk/ahci.c: New file.
12132 * grub-core/disk/ata.c: Factor out the low-level part into ...
12133 * grub-core/disk/pata.c: ... here.
12134 * grub-core/disk/ata_pthru.c: Contents moved to ...
12135 * grub-core/disk/pata.c: ... here.
12136 * grub-core/disk/scsi.c (grub_scsi_names): New array.
12137 (grub_scsi_iterate): Use grub_scsi_names.
12138 (grub_scsi_open): Likewise.
12139 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
12140 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
12141 (grub_ata_regs_t): New struct.
12142 (grub_disk_ata_pass_through_parms): Likewise.
12143 (grub_ata_device): Renamed to ...
12144 (grub_ata): ... this.
12145 (grub_ata_dev): New struct.
12146 Removed all low-level inline functions.
12147 * include/grub/scsi.h: Add PATA and AHCI subsystems.
12148 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
12149 iterate hooks and open. All users updated.
12150 * util/grub-install.in: Handle AHCI disk module.
12151
c31dc5f5
SJ
121522011-06-23 Szymon Janc <szymon@janc.net.pl>
12153
12154 Add support for DRI and RSTn markers in JPEG files.
12155
12156 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
12157 (JPEG_MARKER_RST0): Likewise.
12158 (JPEG_MARKER_RST1): Likewise.
12159 (JPEG_MARKER_RST2): Likewise.
12160 (JPEG_MARKER_RST3): Likewise.
12161 (JPEG_MARKER_RST4): Likewise.
12162 (JPEG_MARKER_RST5): Likewise.
12163 (JPEG_MARKER_RST6): Likewise.
12164 (JPEG_MARKER_RST7): Likewise.
12165 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
12166 (grub_jpeg_decode_dri): New function.
12167 (grub_jpeg_decode_sos): Move image data related part into
12168 grub_jpeg_decode_data function.
12169 (grub_jpeg_decode_data): New function.
12170 (grub_jpeg_reset): New function.
12171 (grub_jpeg_decode_jpeg): Handle new markers.
12172
fe12fd5b
VS
121732011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12174
12175 * util/ieee1275/ofpath.c (check_sas): Close fd.
12176 (main): Free of_path.
12177 Reported by: David Volgyes <dvolgyes>.
12178
03147f46
VS
121792011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12180
12181 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
12182 Reported by: David Volgyes <dvolgyes>.
12183
cad3237f
VS
121842011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12185
12186 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
12187 file after stat.
12188 Reported by: David Volgyes <dvolgyes>.
12189
13548d26
VS
121902011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12191
12192 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
12193
12194 Reported by: David Volgyes <dvolgyes>.
12195
e061a1b5
VS
121962011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12197
12198 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
12199 Prevent memory leak.
12200
1abe47dc
VS
122012011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12202
12203 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
12204 (main): Close file.
e061a1b5 12205 Reported by: David Volgyes <dvolgyes>.
1abe47dc 12206
fbc62666
VS
122072011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12208
12209 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
12210 to continue if allocation is failed.
12211
12212 Reported by: David Volgyes <dvolgyes>.
12213
e98c83e9
DV
122142011-06-23 David Volgyes <dvolgyes>
12215
12216 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
12217 dereference.
12218
a199a8cd
VS
122192011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12220
12221 Fix spurious warning.
12222
12223 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
12224 (acorn_partition_map_find): Use .bin member.
12225
e2d1dba0
VS
122262011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12227
12228 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
12229 /dev/root as a valid device.
12230
8a5d6919
JM
122312011-06-23 Jim Meyering <meyering@redhat.com>
12232
e2d1dba0
VS
12233 Avoid NULL deref in grub_device_open.
12234
8a5d6919
JM
12235 * grub-core/kern/device.c (grub_device_open): Don't dereference
12236 a NULL pointer upon failed grub_env_get.
12237
f7db6f4a
VS
122382011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12239
12240 Support non-512B sectors and agglomerate reads.
12241
12242 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
12243 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
12244 (disk_io_guid): Removed.
12245 (make_devices): Locate solely by BlockIO.
12246 (grub_efidisk_open): Fill log_sector_size and total_sectors.
12247 (grub_efidisk_read): Use read_blocks.
12248 (grub_efidisk_write): Use write_blocks.
12249 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
12250 log_sector_size.
12251 (get_safe_sectors): Handle non-512B sectors.
12252 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
12253 sectors.
12254 (grub_biosdisk_write): Handle non-512B sectors.
12255 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
12256 (grub_scsi_read): Remove special non-512B block handling (now handled
12257 one level up).
12258 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
12259 and do sanity checks.
12260 (grub_disk_adjust_range): Handle non-512B sectors.
12261 (transform_sector): New function.
12262 (grub_disk_read_small): Likewise.
12263 (grub_disk_read): Rewritten.
12264 (grub_disk_write): Handle non-512B sectors.
12265 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
12266 log_sector_size.
12267 (open_device): Use log_sector_size.
12268 (grub_util_biosdisk_read): Likewise.
12269 (grub_util_biosdisk_write): Likewise.
12270 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12271 non-512B sectors.
12272 (pc_partition_map_embed): Likewise.
12273 * include/grub/disk.h (grub_disk): New field log_sector_size.
12274 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12275 (GRUB_DISK_CACHE_BITS): Increased to 6.
12276 * util/grub-fstest.c (fstest): New command testload.
12277 (argp_parser): Likewise.
12278
881ac815
RM
122792011-06-16 Robert Millan <rmh@gnu.org>
12280
12281 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12282 `ata' driver on kernel of FreeBSD 9.
12283
12284 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12285 (get_ataraid_disk_name): New functions.
12286 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12287 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12288 get_ataraid_disk_name() and get_ada_disk_name().
12289
1e9aef7d
CW
122902011-06-13 Colin Watson <cjwatson@ubuntu.com>
12291
12292 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12293 input format.
12294
351c7c8a
CW
122952011-05-29 Colin Watson <cjwatson@ubuntu.com>
12296
12297 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12298 `ftp.gnu.org' for `alpha.gnu.org'.
12299
6b4e6430
CW
123002011-05-27 Colin Watson <cjwatson@ubuntu.com>
12301
12302 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12303 partitions under /dev/disk/by-id/.
12304
c64db050
CW
123052011-05-27 Colin Watson <cjwatson@ubuntu.com>
12306
12307 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12308 after ten consecutive open failures. Scanning all the way up to
12309 10000 is excessive and can cause serious performance problems in
12310 some configurations.
12311 Fixes Ubuntu bug #787461.
12312
245f4aba
VS
123132011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12314
12315 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12316 opening new one.
12317
f767c929
VS
123182011-05-21 Colin Watson <cjwatson@ubuntu.com>
123192011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12320
12321 Don't stat devices unless we have to.
12322
12323 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12324 dir == /dev/mapper.
12325 (grub_guess_root_device): Use already known os_dev if possible.
12326 * grub-core/kern/emu/hostdisk.c
12327 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12328 if device is known to be a dm one.
12329
f35fa3a6
CW
123302011-05-20 Colin Watson <cjwatson@ubuntu.com>
12331
12332 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12333 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12334 Reported by: Pawel Tecza.
12335
9a79fcf2
VS
123362011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12337
12338 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12339 (lsefisystab): Likewise.
12340 (lssal): Likewise.
12341 (lsefimmap): Likewise.
12342 (hdparm): Enable on qemu-mips.
12343 (setjmp): Add ia64 nodist.
12344 (serial): Simplify tags.
12345
63e3eea9
CW
123462011-05-18 Colin Watson <cjwatson@ubuntu.com>
12347
12348 * Makefile.util.def (grub-ofpathname): Install manual page.
12349
09728256
CW
123502011-05-18 Colin Watson <cjwatson@ubuntu.com>
12351
12352 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12353
8b63a142
CW
123542011-05-18 Colin Watson <cjwatson@ubuntu.com>
12355
12356 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12357
e775d8ed
VS
123582011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12359
12360 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12361 into dprintf.
12362
bf947d36
VS
123632011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12364
12365 Use full 64-bit division.
12366
12367 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12368 (grub_divmod64): ... this.
12369 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12370 version.
12371
b84f26c5
CW
123722011-05-18 Colin Watson <cjwatson@ubuntu.com>
12373
12374 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12375 `source'.
12376
5626056f
CW
123772011-05-18 Colin Watson <cjwatson@ubuntu.com>
12378
12379 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12380 to avoid accidents when debugging with 'sh -x'.
12381 * grub-core/gensyminfo.sh.in: Likewise.
12382 * tests/example_scripted_test.in: Likewise.
12383 * tests/grub_cmd_regexp.in: Likewise.
12384 * tests/grub_script_blanklines.in: Likewise.
12385 * tests/grub_script_dollar.in: Likewise.
12386 * tests/grub_script_expansion.in: Likewise.
12387 * tests/grub_script_final_semicolon.in: Likewise.
12388 * tests/partmap_test.in: Likewise.
12389 * tests/util/grub-shell-tester.in: Likewise.
12390 * tests/util/grub-shell.in: Likewise.
12391
e2965f4a
CW
123922011-05-18 Colin Watson <cjwatson@ubuntu.com>
12393
12394 Move gfxmenu color handling to video, so that gfxterm can use it
12395 too.
12396
12397 * grub-core/gfxmenu/named_colors.c: Move to ...
12398 * grub-core/video/colors.c: ... here. Rename
12399 grub_gui_get_named_color to grub_video_get_named_color.
12400 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12401 * grub-core/video/colors.c (my_isxdigit): ... here.
12402 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12403 Move to ...
12404 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12405 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12406 to ...
12407 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12408
12409 * include/grub/gui.h (grub_gui_color_t): Move to ...
12410 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12411 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12412 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12413 * include/grub/gui.h (grub_gui_map_color): Move to ...
12414 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12415 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12416 to ...
12417 * include/grub/video.h (grub_video_get_named_color): ... here.
12418 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12419 * include/grub/video.h (grub_video_parse_color): ... here.
12420
12421 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12422 video/colors.c.
12423 (gfxmenu): Remove gfxmenu/named_colors.c.
12424 (video) [videomodules]: Add video/colors.c.
12425
12426 Add a background_color command.
12427
12428 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12429 function.
12430 (GRUB_MOD_INIT): Register background_color command.
12431 (GRUB_MOD_FINI): Unregister background_color command.
12432 (redraw_screen_rect): Allow blend/replace of text layer to be
12433 controlled independently from whether there is a background bitmap.
12434 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12435 changing bitmap.
12436
1e4b4390
VS
124372011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12438
26618ff0
VS
12439 Patch BPB in ntldr and chainloader --bpb.
12440
1e4b4390
VS
12441 * grub-core/fs/fat.c: Include grub/fat.h.
12442 (grub_fat_bpb): Moved to ...
12443 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12444 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12445 grub/ntfs.h.
12446 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12447 Moved from here...
12448 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12449 here.
12450 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12451 New function.
12452 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12453 (GRUB_MOD_INIT): Show --bpb.
12454 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12455 * grub-core/normal/main.c (features): New variable.
12456 (GRUB_MOD_INIT): Set feature_* variables.
12457 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12458 proto.
12459 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12460
cf02731e
VS
124612011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12462
12463 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12464 for cleanness.
12465
e3a1073f
VS
124662011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12467
12468 FreeDOS direct loading support.
12469
12470 * docs/grub.texi (Supported OS): Add FreeDOS.
12471 * grub-core/Makefile.core.def (freedos): New module.
12472 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12473 variable.
12474 (grub_relocator16_boot): Handle %ebx.
12475 * grub-core/lib/i386/relocator16.S: Likewise.
12476 * grub-core/loader/i386/pc/freedos.c: New file.
12477
05caa461
VS
124782011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12479
12480 Long Linux command line support.
12481
12482 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12483 (maximal_cmdline_size): New variable.
12484 (allocate_pages): Use maximal_cmdline_size.
12485 (grub_cmd_linux): Set and use maximal_cmdline_size.
12486 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12487 (allocate_pages): Use maximal_cmdline_size.
12488 (grub_cmd_linux): Set and use maximal_cmdline_size.
12489 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12490 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12491 and cmdline_size.
12492
a2491e23
VS
124932011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
124942011-05-18 Colin Watson <cjwatson@ubuntu.com>
12495
12496 Improve devmapper support
12497
12498 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12499 (grub_util_is_lvm): New function.
12500 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12501 than lvm if not dmraid.
12502 Handle mapped md nodes.
12503 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12504 (grub_util_device_is_mapped): ... this. Make always available. All users
12505 updated.
12506 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12507 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12508 dmraid nodes.
12509 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12510
6ad6223e
VS
125112011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12512
12513 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12514
12515 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12516 * grub-core/modinfo.sh.in: New file.
12517 * grub-core/Makefile.core.def (modinfo.sh): New script.
12518 * util/grub-mknetdir.in: Use modinfo.sh.
12519 * util/grub-mkrescue.in: Likewise.
12520
543a8f6e
VS
125212011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12522
12523 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12524 Fix potential usage of Elf32 instead of Elf64 when compiling on
12525 32-bit architecture. Add endianness macros while on it.
12526
4959e111
VS
125272011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12528
12529 Use mipsel- rather than mips- in directories involving mipsel ports to
12530 allow both endiannesses coexist.
12531
12532 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12533 mips. All conditions adjusted.
12534 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12535 variable.
12536 * util/grub-install.in: Adjust conditions to take renaming into account.
12537 * util/grub-mkimage.c (image_targets): Likewise. New target
12538 mips-qemu_mips-elf for bigendian mips.
12539
35341bbc
VS
125402011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12541
12542 Avoid unnecessary copying on MIPS.
12543
12544 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12545 early if src == dest.
12546 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12547 compression is none.
12548
b772baed
VS
125492011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12550
12551 Reduce memory footprint on SGI by putting modules before the kernel
12552 as opposed to after.
12553
12554 * grub-core/Makefile.core.def (kernel): Increase linking address.
12555 (none_decompress): Likewise.
12556 (xz_decompress): Likewise.
12557 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12558 address.
12559 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12560 layout change.
12561 (grub_arch_modules_addr): New function.
12562 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12563 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12564 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12565 here.
12566 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12567 (grub_total_modules_size): ... this. Make global.
12568 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12569 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12570 New definition.
12571 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12572 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12573 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12574 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12575 * util/grub-mkimage.c (image_target_desc): New flag
12576 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12577 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12578 (generate_image): Handle images with modules before kernel.
12579
566a1917
VS
125802011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12581
12582 Prevent potential loss of memory map by overwrite on qemu-mips.
12583
12584 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12585 Save ram size in $s4.
12586 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12587 All users changed to grub_arch_memsize.
12588 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12589 Loongson.
12590 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12591 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12592 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12593 external variable.
12594
5d420cd9
CW
125952011-05-17 Colin Watson <cjwatson@ubuntu.com>
12596
12597 * .bzrignore: Remove grub-dumpbios.
12598
d064b830
CW
125992011-05-17 Colin Watson <cjwatson@ubuntu.com>
12600
12601 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12602 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12603 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12604 existing options which append).
12605 * docs/grub.texi (Simple configuration): Document new options.
12606 Reported by: Ian Jackson. Fixes Debian bug #617538.
12607
3ca2b466
CW
126082011-05-17 Colin Watson <cjwatson@ubuntu.com>
12609
12610 * util/grub-fstest.c (cmd_cat): New function.
12611 (fstest): Handle CMD_CAT.
12612 (options): Add cat.
12613 (argp_parser): Handle cat.
12614
24c9143a
CW
126152011-05-17 Colin Watson <cjwatson@ubuntu.com>
12616
12617 * Makefile.util.def (grub-bin2h): Don't install.
12618 * docs/man/grub-bin2h.h2m: Remove.
12619
90f7ac19
VS
126202011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12621
12622 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12623 place.
12624
8d4a5178
VS
126252011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12626
12627 Reenable qemu-mips port.
12628
12629 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12630 Fix small arc bug while on it.
12631 * gentpl.py: Handle qemu_mips.
12632 * grub-core/Makefile.am: Likewise.
12633 * grub-core/Makefile.core.def: Likewise.
12634 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12635 inappropriate includes.
12636 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12637 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12638 * grub-core/kern/main.c (grub_modules_get_end)
12639 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12640 * grub-core/kern/mips/qemu-mips: Moved to ..
12641 * grub-core/kern/mips/qemu_mips: ... this.
12642 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12643 (grub_machine_init): Call terminfo_init and serial_init.
12644 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12645 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12646 New variable.
12647 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12648 parameter passing.
12649 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12650 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12651 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12652 * include/grub/mips/qemu_mips/cmos.h: New file.
12653 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12654 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12655 Removed.
12656 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12657 Use correct mips-style address.
12658 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12659 (GRUB_TICKS_PER_SECOND): Removed.
12660 (grub_get_rtc): Likewise.
12661 (grub_cpu_idle): Likewise.
12662 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12663 New definition.
12664 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12665 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12666 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12667 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12668 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12669 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12670 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12671 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12672
400b9371
VS
126732011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 SGI ARCS port.
12676
12677 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12678 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12679 platforms.
12680 * configure.ac: New target mips-arc.
12681 * gentpl.py: Likewise.
12682 * grub-core/Makefile.am: Likewise.
12683 * grub-core/Makefile.core.def: Likewise.
12684 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12685 (none_decompress): Likewise.
12686 (lsdev): New module.
12687 (datetime): Use lib/arc/datetime.c on ARC.
12688 (part_dvh): New module.
12689 * grub-core/commands/arc/lsdev.c: New file.
12690 * grub-core/disk/arc/arcdisk.c: Likewise.
12691 * grub-core/kern/mips/arc/init.c: Likewise.
12692 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12693 aligned addresses.
12694 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12695 support.
12696 (grub_arch_dl_relocate_symbols): Likewise.
12697 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12698 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12699 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12700 platforms.
12701 * grub-core/lib/arc/datetime.c: New file.
12702 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12703 pci.h on non-loongson.
12704 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12705 (grub_linux_boot): Set unused registers to 0.
12706 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12707 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12708 * grub-core/mmap/mips/uppermem.c: ...here.
12709 * grub-core/partmap/dvh.c: New file.
12710 * grub-core/term/arc/console.c: Likewise.
12711 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12712 (grub_terminfo_set_current): Add terminal "arc".
12713 (grub_terminfo_readkey): Support ARC sequences.
12714 * include/grub/arc/arc.h: New file.
12715 * include/grub/arc/console.h: Likewise.
12716 * include/grub/disk.h (grub_disk_dev_id): Add
12717 GRUB_DISK_DEVICE_ARCDISK_ID.
12718 * include/grub/mips/arc/kernel.h: New file.
12719 * include/grub/mips/arc/memory.h: Likewise.
12720 * include/grub/mips/arc/time.h: Likewise.
12721 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12722 * include/grub/mips/kernel.h (grub_halt): ... here.
12723 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12724 here...
12725 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12726 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12727 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12728 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12729 proto.
12730 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12731 from here ...
12732 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12733 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12734 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12735 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12736 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12737 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12738 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12739 (grub_phys_addr_t): Moved from here ...
12740 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12741 (grub_vtop): Moved from here ...
12742 * include/grub/mips/memory.h (grub_vtop): ... here.
12743 (grub_map_memory): Moved from here ...
12744 * include/grub/mips/memory.h (grub_map_memory): ... here.
12745 (grub_unmap_memory): Moved from here ...
12746 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12747 (grub_machine_mmap_iterate): Moved from here ...
12748 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12749 (grub_mmap_get_lower): Moved from here ...
12750 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12751 (grub_mmap_get_upper): Moved from here ...
12752 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12753 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12754 here ...
12755 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12756 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12757 here ...
12758 * include/grub/mips/time.h (grub_get_rtc): ... here.
12759 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12760 here ...
12761 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12762 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12763 here ...
12764 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12765 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12766 definition.
12767 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12768 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12769 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12770 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12771 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12772 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12773 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12774 (GRUB_MACHINE_LINK_ADDR): Likewise.
12775 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12776 to 6.
12777 * util/grub-install.in: Run dvhtool on ARC.
12778 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 12779 (generate_image): Handle ECOFF output for mips-arc.
400b9371 12780
c8ecc840
VS
127812011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12782
12783 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12784 blocks.
12785
153a4b55
VS
127862011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12787
12788 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12789 after enabling port.
12790
ff44d107
VS
127912011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12792
12793 Skip incorrect USB devices.
12794
12795 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12796 configcnt == 0.
12797 * include/grub/usb.h (grub_usb_err_t): New enum value
12798 GRUB_USB_ERR_BADDEVICE.
12799
638dbe4f
VS
128002011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12801
12802 Fuloong video init support.
12803
12804 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12805 well.
12806 (grub_vga_read_arx): New function.
12807 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12808 definition.
12809 (framebuffer): New members io, mmioptr and mmiobase.
12810 (read_sis_cmd): New function.
12811 (write_sis_cmd): Likewise.
12812 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12813 rather than 640x400.
12814 * grub-core/video/sis315_init.c: New file.
12815
c3fc520c
VS
128162011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12817
12818 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12819 non-loongson.
12820 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12821 to grub_dl_register_symbol.
12822
67b1e5c9
VS
128232011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12824
12825 Fix compilation errors.
12826
12827 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12828 potentially unused.
12829 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12830 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12831 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12832 to loongson machines.
12833
b756f75f
VS
128342011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12835
12836 Several FS mtime support.
12837
12838 * grub-core/fs/affs.c (grub_affs_time): New struct.
12839 (grub_affs_file): New field mtime.
12840 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12841 type. Removed 'size'. New field 'di'. All users updated.
12842 (grub_affs_mount): Simplify checsum checking.
12843 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12844 (grub_affs_dir): Handle mtime.
12845 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12846 (grub_cpio_dir): Likewise.
12847 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12848 (grub_hfs_filerec): New field mtime.
12849 (grub_hfs_dir): Handle mtime.
12850 (grub_hfs_mtime): New function.
12851 (grub_hfs_fs): Register grub_hfs_mtime.
12852 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12853 (grub_iso9660_dir): New field mtime.
12854 (grub_fshelp_node): New field dirent.
12855 (iso9660_to_unixtime): New function.
12856 (iso9660_to_unixtime2): Likewise.
12857 (grub_iso9660_read_symlink): Use node->dirent.
12858 (grub_iso9660_iterate_dir): Likewise.
12859 (grub_iso9660_dir): Set mtime.
12860 (grub_iso9660_mtime): New function.
12861 (grub_iso9660_fs): Register grub_iso9660_mtime.
12862 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12863 (grub_jfs_inode): New fields atime, ctime and mtime.
12864 (grub_jfs_dir): Set mtime.
12865 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12866 * grub-core/fs/ntfs.c (list_file): Set mtime.
12867 (grub_ntfs_dir): Likewise.
12868 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12869 (grub_reiserfs_iterate_dir): Set mtime.
12870 (grub_reiserfs_dir): Likewise.
12871 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12872 (grub_fshelp_node): Likewise.
12873 (grub_sfs_iterate_dir): Set mtime.
12874 (grub_sfs_dir): Likewise.
12875 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12876 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12877 (grub_xfs_inode): New fields atime, mtime, ctime.
12878 (grub_xfs_dir): Set mtime.
12879 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12880 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12881 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12882
12883 Support UDF symlinks.
12884
12885 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12886 (grub_ufs_read_symlink): New function. All users updated.
12887
12888 Check amiga partmap checksum.
12889
12890 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12891 (grub_amiga_partition): Likewise.
12892 (amiga_partition_map_checksum): New function.
12893 (amiga_partition_map_iterate): Check checksum.
12894
5470225d
VS
128952011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12896
12897 ROMFS support.
12898
12899 * Makefile.util.def (libgrubmods.a): Add romfs.
12900 * grub-core/Makefile.core.def (romfs): New module.
12901 * grub-core/fs/romfs.c: New file.
12902
d4680a35
VS
129032011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12904
12905 Squashfs v4 support.
12906
12907 * Makefile.util.def (libgrubmods.a): Add squash4.
12908 * grub-core/Makefile.core.def (squash4): New module.
12909 * grub-core/fs/squash4.c: New file.
12910 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12911 disk_input_start, disk_input.
12912 (get_byte): Handle disk_input.
12913 (grub_zlib_disk_read): New function.
12914 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12915
bcb18e74
FZ
129162011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
129172011-05-15 Feiran Zheng <famcool@gmail.com>
12918
12919 * Makefile.util.def (libgrubmods.a): Add minix3.
12920 * grub-core/Makefile.core.def (minix3): New module.
12921 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12922 (GRUB_MINIX_BSIZE): Removed.
12923 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12924 (grub_minix_ino_t): New type.
12925 (grub_minix_le_to_cpu_ino): New macro.
12926 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12927 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12928 (grub_minix_data): New field block_size.
12929 (grub_minix_read_file): Handle 64-bit correctly.
12930 * grub-core/fs/minix3.c: New file.
12931
32297d5f
TG
129322011-05-15 Tristan Gingold <gingold@free.fr>
129332011-05-15 Robert Millan <rmh.grub@aybabtu.com>
129342011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12935
12936 IA64 support.
12937
12938 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12939 * configure.ac: Add ia64-efi target.
12940 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12941 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12942 * gentpl.py: Add ia64_efi platform.
12943 Rename x86_efi to efi and Add ia64-efi. All users updated.
12944 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12945 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12946 Remove kern/generic/rtc_get_time_ms.c on EFI.
12947 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12948 kern/ia64/dl_helper.c on ia64-efi.
12949 Add kern/emu/cache.c on emu.
12950 (linux): Use on loader/ia64/efi/linux.c on ia64.
12951 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12952 whether symbol is a function.
12953 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12954 (grub_symbol): New field 'isfunc'.
12955 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12956 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12957 (grub_dl_load_segments): Place all sections into the same region.
12958 [__ia64__]: Create trampolines and got.
12959 [GRUB_MACHINE_EMU]: Call mprotect.
12960 (grub_dl_resolve_symbols): Resolve symbol type as well.
12961 [__ia64__]: Create function descriptors.
12962 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12963 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12964 (grub_get_rtc): New function.
12965 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12966 * grub-core/kern/emu/cache.S: Renamed to ...
12967 * grub-core/kern/emu/cache_s.S: ... this.
12968 [__ia64__]: Add a nop.
12969 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12970 [__ia64__]: New function.
12971 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12972 * grub-core/kern/ia64/dl.c: New file.
12973 * grub-core/kern/ia64/dl_helper.c: Likewise.
12974 * grub-core/kern/ia64/efi/init.c: New file.
12975 * grub-core/kern/ia64/efi/startup.S: Likewise.
12976 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12977 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12978 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12979 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12980 * grub-core/loader/ia64/efi/linux.c: New file.
12981 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12982 (GRUB_MOD_DEP): Likewise.
12983 (grub_dl) [__ia64__]: New fields got and tramp.
12984 (grub_dl): New field 'base'.
12985 (grub_dl_register_symbol): New argument isfunc. All users updated.
12986 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12987 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12988 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12989 (grub_ia64_dl_get_tramp_got_size): New proto.
12990 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12991 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12992 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12993 * include/grub/efi/api.h: Skip call wrappers on ia64.
12994 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12995 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12996 * include/grub/elf.h (ELF_ST_INFO): New definition.
12997 * include/grub/ia64/efi/kernel.h: New file.
12998 * include/grub/ia64/efi/memory.h: Likewise.
12999 * include/grub/ia64/efi/time.h: Likewise.
13000 * include/grub/ia64/kernel.h: Likewise.
13001 * include/grub/ia64/setjmp.h: Likewise (from glibc).
13002 * include/grub/ia64/time.h: New file.
13003 * include/grub/ia64/types.h: Likewise.
13004 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
13005 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
13006 New protos.
13007 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
13008 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
13009 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
13010 * util/grub-mkimage.c (image_target_desc): New field pe_target.
13011 All users updated.
13012 (EFI64_HEADER_SIZE): New definition. All users updated.
13013 (image_targets): Add ia64-efi.
13014 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
13015 jumpers_addr. All users updated.
13016 Create function descriptors.
13017 (count_funcs): New function.
13018 (unaligned_uint32): New struct.
13019 (MASK20): New definition.
13020 (MASK19): Likewise.
13021 (MASKF21): Likewise.
13022 (add_value_to_slot_20b): New function.
13023 (add_value_to_slot_21_real): Likewise.
13024 (add_value_to_slot_21): Likewise.
13025 (ia64_kernel_trampoline): New struct.
13026 (nopm): New variable.
13027 (jump): Likewise.
13028 (make_trampoline): New function.
13029 (relocate_addresses): Handle ia64.
13030 (make_reloc_section): Likewise.
13031 (load_image): Likewise.
13032
983b414d
VS
130332011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13034
13035 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
13036 warning. Move variables before code while on it.
13037
5d063cdc
VS
130382011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13039
13040 Fuloong support.
13041
13042 * configure.ac: Rename yeeloong platform to loongson. All users updated.
13043 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
13044 * grub-core/boot/mips/loongson/fuloong.S: New file.
13045 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
13046 Explicitly init CS5536.
13047 [FULOONG]: Don't use serial until CS5536 is available.
13048 Set GPIO based on dumps.
13049 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
13050 [FULOONG]: Handle GPIO and memory controller differences.
13051 Parse machine type in $a2.
13052 * grub-core/boot/mips/startup_raw.S: Determine and save the
13053 architecture.
13054 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
13055 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
13056 init on architecture type.
13057 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
13058 SIS315E. Don't init at_keyboard on fuloong.
13059 (grub_halt): Support Fuloong.
13060 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
13061 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
13062 (loongson_machtypes): New array.
13063 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
13064 type.
13065 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
13066 config. All users updated. Handle CS5536 serial.
13067 * grub-core/term/serial.c (grub_serial_register): Conditionalise
13068 default port on machine type. Register serial as inactive.
13069 * grub-core/video/sis315pro.c: New file.
13070 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
13071 definition.
13072 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
13073 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
13074 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
13075 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
13076 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
13077 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
13078 to ...
13079 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
13080 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
13081 definition.
13082 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
13083 (grub_arch_machine): New extern var.
13084 * include/grub/mips/loongson/serial.h
13085 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
13086 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
13087 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
13088 (GRUB_MACHINE_SERIAL_PORT0): ... this.
13089 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
13090 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
13091 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
13092 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
13093 * include/grub/term.h (grub_term_register_input_inactive): New inline
13094 function.
13095 (grub_term_register_output_inactive): Likewise.
13096 * include/grub/video.h (grub_video_driver_id): New value
13097 GRUB_VIDEO_DRIVER_SIS315PRO.
13098 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
13099 New field "names". All users updated.
13100 New field value IMAGE_FULOONG_FLASH.
13101 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
13102
6ada82d1
JU
131032011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
13104
13105 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
13106 and add some clarification.
13107
90c571a4
VS
131082011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13109
13110 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
13111 platforms if kernel is compressed.
13112
de04eecf
VS
131132011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13114
13115 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
13116 unused modules since currently referrence counter isn't reliable and
13117 there isn't much memory to recover there anyway.
13118
57688121
VS
131192011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13120
13121 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
13122 rather than resetting it to allow modules to reference themselves
13123 in init.
13124
3d2c7e35
VS
131252011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13126
13127 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
13128 counter on dependencies since grub_dl_unref already handles this.
13129
b25db218
VS
131302011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13131
13132 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
13133 on error if not already done.
13134
25a45338
VS
131352011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13136
13137 Fix few potential memory misusage.
13138
13139 * grub-core/font/font.c (load_font_index): Don't free char_index to
13140 avoid double free.
b25db218
VS
13141 (grub_font_load): Zero-fill font at alloc for safety.
13142 Close file on error.
13143 (free_font): Free bmp_idx.
25a45338 13144
0cac83df
VS
131452011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13146
13147 * docs/grub.texi (Installation): Fix several outdated claims.
13148
2217a143
VS
131492011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13150
13151 Handle module_license on windows.
13152
13153 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
13154 sections shifted.
13155 (insert_string): Make argument const char * instead of char *.
13156 (write_section_data): Handle long section names.
13157 Handle module_license.
13158
d4de6b01
VS
131592011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13160
13161 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
13162 handle class-free menuentries.
13163 (grub_normal_add_menu_entry): Add a check to be sure.
13164
4c2a3b43
VS
131652011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13166
13167 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
13168 PgUp and PgDown.
13169
85c6210f
VS
131702011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13171
13172 * configure.ac: Bump version to 1.99.
13173
36084912
VS
131742011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13175
13176 Give ATA device a bit more time on first try in order to allow disks
13177 to spin up.
13178
13179 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
13180 if dev->present is 1. Reset dev->present on failure.
13181 (grub_ata_device_initialize): Set dev->present to 1.
13182 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
13183 (grub_ata_device): New member 'present'.
13184
bda0e219
VS
131852011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13186
13187 * util/grub-mkimage.c (generate_image): Update hash.
13188
19e1c41b
VS
131892011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13190
13191 Flush caches on DMA memory.
13192
13193 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
13194 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
13195 (grub_dma_free): Likewise.
13196 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
13197
91bbcc0c
VS
131982011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13199
13200 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
13201 to avoid asm treating ld and sd as macros.
13202
60ddfad3
VS
132032011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13204
13205 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
13206 decompressor.
13207
a298aa04
VS
132082011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13209
13210 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
13211 grub_decompress_core since later would fail if grub_decompress_core
13212 is too far.
13213
9b44feca
VS
132142011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
13217 R_MIPS_JALR since it's used by newer compiler.
13218
56dbe7b4
VS
132192011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
13220
13221 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
13222
52856af2
VS
132232011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13224
13225 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
13226 file_path to 0 for surety.
13227 (grub_chainloader_boot): Set exit_data to NULL.
13228 Unset the loader once done.
13229 (grub_cmd_chainloader): Fix confusing error message if file is empty.
13230
9c9bfc6d
VS
132312011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13232
13233 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
13234 unknown key into a dprintf.
13235
dd94a3df
VS
132362011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13237
13238 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
13239 on first non-existant partition.
13240
fa68d99c
VS
132412011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13242
13243 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
13244 openning fails.
13245 Reported by: Mark Korenberg.
13246
157effb7
VS
132472011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
13250 overflow.
13251
ea75312f
VS
132522011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13253
13254 * util/grub-mkimage.c (main): Explicitely flush and sync the output
13255 before closing to ensure that it will be readable by grub-setup.
13256
072b5d31
VS
132572011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
13260 (devpath_1): Use MAKE_PIWG_PATH.
13261 (devpath_2): Likewise.
13262 (devpath_3): Likewise.
13263 (devpath_4): Likewise.
13264 (devpath_5): Likewise.
13265 (devpath_6): Likewise.
13266
13267 The appleldr.mod was checked that to be binary identical to previous
13268 version.
13269
7fae0051
Z
132702011-05-05 Zach <mikezackles>
13271
13272 Support 2010 Macbooks.
13273
13274 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13275 (devs): Add devpath_6.
13276
7c515bee
VS
132772011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13278
13279 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13280 /dev/random. /dev/urandom is good enough for our purposes (salting).
13281
ed660bd8
VS
132822011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13283
13284 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13285
ee5614b7
VS
132862011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13287
13288 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13289 hexadecimal.
13290
664889a6
VS
132912011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13292
13293 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13294 and not 0 on failure.
13295
bd405bbc
CW
132962011-05-03 Colin Watson <cjwatson@ubuntu.com>
13297
13298 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13299 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13300 disk; otherwise grub_fs_probe will not fall back to the next
13301 filesystem.
13302 (grub_pxefs_open): Likewise, for consistency.
13303 Reported and tested by: Ezekiel Grave.
13304
4ebff753
CW
133052011-05-03 Colin Watson <cjwatson@ubuntu.com>
13306
13307 * tests/partmap_test.in: Don't hardcode path to parted.
13308 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13309
8f942553
CW
133102011-05-01 Colin Watson <cjwatson@ubuntu.com>
13311
13312 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13313 of `ls' to find out which devices are available.
13314
3c62402d
VS
133152011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13316
13317 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13318 than source address for efi mmap buffer.
13319
723f63f2
VS
133202011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13321
13322 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13323 wrong action on non-detecting the magic.
13324
68797f92
VS
133252011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13326
13327 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13328 already supplied by another part of the module (fixes compilation on
13329 FreeBSD).
13330
6be8715d
VS
133312011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13332
13333 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13334 match the one used by mdadm.
13335
e91dba5b
CW
133362011-04-21 Colin Watson <cjwatson@ubuntu.com>
13337
13338 * po/README: Add instructions for creating po/LINGUAS.
13339
c85140b3
CW
133402011-04-21 Colin Watson <cjwatson@ubuntu.com>
13341
13342 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13343 #551428.
13344
13345 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13346 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13347 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13348 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13349 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13350 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13351 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13352 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13353 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13354 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13355 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13356 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13357 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13358 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13359 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13360 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13361 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13362 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13363 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13364 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13365 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13366 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13367
92051871
CW
133682011-04-21 Colin Watson <cjwatson@ubuntu.com>
13369
13370 * grub-core/kern/emu/getroot.c
13371 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13372 test that was incorrectly reintroduced in r3214.
13373 Reported by: Ian Dall. Fixes Savannah bug #33133.
13374
b13f79a4
CW
133752011-04-21 Colin Watson <cjwatson@ubuntu.com>
13376
13377 Fix stack pointer handling in 16-bit relocator.
13378
13379 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13380 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13381 Fixes Ubuntu bug #683904.
13382
9b710a88
VS
133832011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13384
13385 * configure.ac: Bump version to 1.99~rc2.
13386
d97e7b59
VS
133872011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13388
13389 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13390 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13391 * grub-core/lib/x86_64/setjmp.S: Likewise.
13392 * grub-core/lib/mips/setjmp.S: Likewise.
13393 * grub-core/lib/powerpc/setjmp.S: Likewise.
13394 * grub-core/lib/sparc64/setjmp.S: Likewise.
13395
0624551c
VS
133962011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13397
13398 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13399 * grub-core/lib/efi/datetime.c: Likewise.
13400
e8f28d4c
VS
134012011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13402
13403 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13404 New function.
13405 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13406 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13407 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13408
bba79a15
VS
134092011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13410
13411 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13412 bitmap.
13413 (grub_gfxterm_term_init): Likewise.
13414
abc474ef
VS
134152011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13416
13417 Take into account the decorations the computing menu entry width.
13418
13419 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13420 (grub_gfxmenu_create_box): Register get_border_width.
13421 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13422 if available.
13423 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13424 get_border_width.
13425
e74b3947
EP
134262011-04-18 Endres Puschner <code@e7p.de>
13427
13428 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13429 Don't skip first class.
13430
34faa595
VS
134312011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13432
13433 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13434 chunks.
13435 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13436
93a777e3
VS
134372011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13438
13439 Complete 64-bit division support.
13440
13441 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13442 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13443 * include/grub/misc.h (grub_divmod64): Rename to ...
13444 (grub_divmod64_full): ... this.
13445 (grub_divmod64): New inline function.
13446
a5102d94
VS
134472011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13448
13449 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13450
f3fb7b36
VS
134512011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13452
13453 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13454 performing the necessary test.
13455
9ac718b0
VS
134562011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13457
13458 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13459 (kfreebsd.elf): Likewise.
13460 (pc-chainloader.elf): Likewise.
13461 (ntldr.elf): Likewise.
13462
50d2cc5a
VS
134632011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13464
13465 Identify RAID by its UUID rather than (guessed) name.
13466
13467 * grub-core/disk/raid.c (ascii2hex): New function.
13468 (grub_raid_open): Accept mduuid/%s specification.
13469 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13470 (get_mdadm_uuid): ... this.
13471 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13472
e03f7bea
VS
134732011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13474
13475 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13476 to negative size.
13477
e74c3112
CW
134782011-04-13 Colin Watson <cjwatson@ubuntu.com>
13479
13480 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13481 btrfs subvolume.
13482 * util/grub.d/20_linux_xen.in: Likewise.
13483
78fa584f
CW
134842011-04-13 Colin Watson <cjwatson@ubuntu.com>
13485
13486 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13487 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13488
13489 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13490 Build a list of relevant visible mounts using the mnt_id and
13491 parent_mnt_id fields, and then scan that list at the end.
13492
9d5f8162
CW
134932011-04-12 Colin Watson <cjwatson@ubuntu.com>
13494
13495 * docs/grub.texi (normal): New section.
13496 (normal_exit): New section.
13497 (Embedded configuration): Add reference to normal.
13498 (GRUB only offers a rescue shell): Likewise.
13499 * docs/grub-dev.texi (Error Handling): Fix typo.
13500
09a9d66f
CW
135012011-04-12 Colin Watson <cjwatson@ubuntu.com>
13502
13503 * NEWS: Drop obsolete entry about probe-only btrfs support.
13504
0c676933
CW
135052011-04-12 Colin Watson <cjwatson@ubuntu.com>
13506
13507 * util/import_gcry.py: Fix typo.
13508
ec9f5e0d
VS
135092011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13510
13511 * NEWS: Add btrfs support.
13512
fe6b2cba
VS
135132011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
135142011-04-11 Colin Watson <cjwatson@ubuntu.com>
13515
13516 BtrFS support. Written by me (Vladimir) with important bugfixes and
13517 even more important testing by Colin.
13518
13519 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13520 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13521 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13522 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13523 mem_input_off and mem_input. All users updated to accept in-RAM input.
13524 (gzio_seek): New function.
13525 (test_zlib_header): Likewise.
13526 (grub_gzio_read): Likewise.
13527 (grub_zlib_decompress): Likewise.
13528 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13529 Accept partial and non-virtual mounts.
13530 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13531 avoid receiving /dev/dm-X as device.
13532 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13533 Handle bind and partial mounts.
13534 * grub-core/lib/crc.c: New file.
13535 * include/grub/deflate.h: Likewise.
13536 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13537 proto.
13538 * include/grub/lib/crc.h: New file.
13539
e745cf0c
VS
135402011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13541
13542 Implement automatic module license checking according to new GNU
13543 guidelines.
13544
13545 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13546 (grub_dl_load_core): Use grub_dl_check_license.
13547 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13548 (GRUB_MOD_LICENSE): Likewise.
13549 (GRUB_MOD_DUAL_LICENSE): Likewise.
13550 All modules updated.
13551
2a9bc016
CW
135522011-04-11 Colin Watson <cjwatson@ubuntu.com>
13553
13554 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13555 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13556 loaders.
13557 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13558
8a3bc88e
VS
135592011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13560
13561 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13562
af869a4a
VS
135632011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13564
13565 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13566 failed.
13567
9ee8d94f
VS
135682011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13569
13570 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13571 parenthesis in the middle of the filename.
13572
b01abe3e
VS
135732011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13574
13575 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13576 rather than trying to put initrd way too high.
13577 Reported by: Ryan Lortie <desrt@desrt.ca>
13578
335bda1e
VS
135792011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13580
13581 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13582 improperly removed string.
13583
5ca1a64d
VS
135842011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13585
13586 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13587 is_disk.
13588 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13589 (open_device) Likewise.
13590 (grub_util_biosdisk_close): Likewise.
d8ce9995 13591 Reported by: Mark Korenberg.
5ca1a64d 13592
cbac5b1e
AK
135932011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13594
13595 * util/grub-mkconfig_lib.in: Add missing quotes.
13596
088cdb65
CW
135972011-04-10 Colin Watson <cjwatson@ubuntu.com>
13598
13599 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13600 is NULL.
13601
8b8a81fa
VS
136022011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13603
13604 Dynamically count the number of lines for the lower banner.
13605
13606 * grub-core/normal/menu_entry.c (per_term_screen): New member
13607 num_entries.
13608 (print_down): Use num_entries.
13609 (update_screen): Likewise.
13610 (grub_menu_entry_run): Set num_entries.
13611 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13612 num_entries.
13613 (grub_print_message_indented): Move real part to ...
13614 (grub_print_message_indented_real): ... here. Additional argument
13615 dry_run.
13616 (draw_border): Additional argument num_entries.
13617 (print_message): Additional argument dry_run.
13618 (print_entries): Receive menu viewer data.
13619 (grub_menu_init_page): New argment num_entries.
13620 (menu_text_set_chosen_entry): Use num_entries.
13621 (grub_menu_try_text): Likewise.
13622 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13623 All users updated.
13624 (grub_ucs4_count_lines): New function.
13625 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13626 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13627 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13628 (grub_term_border_height): Likewise.
13629 (grub_term_num_entries): Likewise.
13630
277f955b
VS
136312011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13632
13633 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13634 Remove now unused string.
13635
536ce85a
CW
136362011-04-09 Colin Watson <cjwatson@ubuntu.com>
13637
13638 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13639 build system.
13640 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13641
13642 (Comment): Fix typo.
13643 (Getting started): General copy-editing.
13644 (Typical Development Experience): Likewise.
13645 (Error Handling): Likewise.
13646 (Video API): Likewise.
13647
2cf09e32
CW
136482011-04-09 Colin Watson <cjwatson@ubuntu.com>
13649
13650 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13651 throughout.
13652
1ec652f4
VS
136532011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13654
13655 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13656 directory.
13657
2c583728
CW
136582011-04-08 Colin Watson <cjwatson@ubuntu.com>
13659
13660 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13661 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13662 "development".
13663
d7a565e9
VS
136642011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13665
13666 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13667 grub_strcpy since the lines aren't necessarily 0-terminated.
13668
7c2e4909
VS
136692011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13670
13671 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13672 root on legacy.
13673
34c09785
VS
136742011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13675
13676 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13677 (GRUB_MOD_INIT): DEVICE isn't optional.
13678
6a6f8058
VS
136792011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13680
13681 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13682 word on new line if it's too long anyway. Fixes a hang.
13683
2e335e90
VS
136842011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13685
13686 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13687 const.
13688 * util/grub-setup.c (main): Reuse md device name if available.
13689 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13690 not GRUB name as argument.
13691 Based on patch by: Florian Wagner <fwagner>.
13692
10a7a867
VS
136932011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13694
13695 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13696 Place mbi on low memory for better compatibility.
13697
7a3d6cd9
VS
136982011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13699
13700 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13701
18dd6b47
VS
137022011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
137032011-04-08 Colin Watson <cjwatson@ubuntu.com>
13704
13705 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 13706 * conf/Makefile.common: Likewise.
18dd6b47 13707
3c0e3f14
VS
137082011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13709
f7148863
VS
13710 * grub-core/normal/menu.c: Add missing include.
13711
137122011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13713
13714 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 13715
6d1fa41f
MZ
137162011-04-08 Martin Zuther <mzuther@mzuther.de>
13717
13718 * util/grub-mkconfig.in: Ignore emacsen backup.
13719
478182a8
VS
137202011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13721
13722 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13723 on open.
13724 (grub_util_biosdisk_close): Likewise.
13725
72a89a54
VS
137262011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13727
13728 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13729 const attribute and use grub_isdigit.
13730
b5ebecfa
A
137312011-04-06 Andrey <dev_null@ukr.net>
13732
13733 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13734 gcc warning.
13735
7755f66e
VS
137362011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13737
13738 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13739 useful grub_dprintf's.
13740
461121ff
VS
137412011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13742
13743 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13744
2a961775
VS
137452011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13746
13747 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13748
adf594cc
VS
137492011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13750
13751 Output errors if theme loading failed.
13752
13753 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13754 grub_gfxterm_fullscreen on error paths to ...
13755 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13756 theme loading error.
13757
665900a3
VS
137582011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13759
13760 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13761 space for older compilers.
13762 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13763
a562b479
VS
137642011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13765
13766 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13767 and report them as not RAID members since they are useless for GRUB.
13768 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13769
850e9373
VS
137702011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13771
13772 Increase LVM implementation robustness in order not to crash on
13773 configurations like pvmove. Previously code assumed that in some places
13774 only lvs or only pvs are used whereas it seems that they are used
13775 interchangeably.
13776
13777 * grub-core/disk/lvm.c (read_node): New function.
13778 (read_lv): Use read_node.
13779 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13780 Match volumes only at the end when all lvs are found. Take both
13781 pvs (first) and lvs (second) into account.
13782 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13783 mirror_* into node_*. All users updated.
13784 (grub_lvm_stripe): Merge this ...
13785 (grub_lvm_mirror): ... and this ...
13786 (grub_lvm_node): ... into this. All users updated.
13787
6f332153
VS
137882011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13789
13790 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13791 of function to allow further scanning for LVMs.
13792
829ea451
VS
137932011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13794
13795 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13796 on failed seek as it breaks open fd reusage.
13797
09ceb9a5
VS
137982011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13799
13800 * util/grub-install.in: Add a recommendation to use --recheck before
13801 reporting bugs.
13802
67e11623
VS
138032011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13804
13805 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13806 are obtained.
13807
caee5efd
VS
138082011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13809
13810 GRUB developper manual based on existing Internals section and
13811 contributions by the various authors with active copyright assignment.
13812
13813 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13814 * docs/font_char_metrics.png: New file.
13815 * docs/font_char_metrics.txt: Likewise.
13816 * docs/grub-dev.texi: Likewise.
13817 * docs/grub.texi (Internals): Move from here ...
13818 * docs/grub-dev.texi: ... here.
13819
2cccc747
CW
138202011-04-01 Colin Watson <cjwatson@ubuntu.com>
13821
13822 Store the loopback device as data on loopback grub_disk structures,
13823 rather than the file it points to. This fixes use of freed memory
13824 if an existing loopback device is replaced.
13825
13826 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13827 disk->data, not dev->file.
13828 (grub_loopback_read): Adjust file assignment to match.
13829 Fixes Ubuntu bug #742967.
13830
186ae367
CW
138312011-04-01 Colin Watson <cjwatson@ubuntu.com>
13832
13833 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13834 when replacing an existing device.
13835
cfed2ad0
VS
138362011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13839 memory corruptions.
13840
13841 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13842 unsigned.
13843 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13844 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13845 (grub_jfs_read_inode): Likewise.
13846 (grub_jfs_opendir): Likewise. Remove now useless casts.
13847 (grub_jfs_getent): Likewise.
13848 Make ino a grub_uint32_t rather than int.
13849 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13850 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13851 division and module with bit operations.
13852 (grub_jfs_find_file): Make ino a grub_uint32_t.
13853 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13854
05d2ed32
CW
138552011-04-01 Colin Watson <cjwatson@ubuntu.com>
13856
13857 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13858 warning. (This was in fact always initialised before use, but GCC
13859 wasn't smart enough to prove that.)
13860 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13861
91dc6073
VS
138622011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13863
13864 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13865 stack alignment.
13866 (efi_wrap_1): Likewise.
13867 (efi_wrap_2): Likewise.
13868 (efi_wrap_3): Likewise.
13869 (efi_wrap_4): Likewise.
13870 (efi_wrap_5): Likewise.
13871 (efi_wrap_6): Likewise.
13872 (efi_wrap_10): Likewise.
13873 Based on information by: Red Hat/Peter Jones.
13874
a8afc1d1
CW
138752011-03-31 Colin Watson <cjwatson@ubuntu.com>
13876
13877 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13878 set-but-not-used variable.
13879
a826cc7d
CW
138802011-03-31 Colin Watson <cjwatson@ubuntu.com>
13881
13882 * docs/grub.texi (Simple configuration): Be more explicit about
13883 GRUB_DEFAULT, and add an example.
13884 Reported by: Leslie Rhorer.
13885
875b67ba
CW
138862011-03-30 Colin Watson <cjwatson@ubuntu.com>
13887
13888 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13889 shell".
13890
fd7cd914
AS
138912011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13892
13893 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13894 * util/grub.d/20_linux_xen.in: Likewise.
13895
090b1b6a
VS
138962011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13897
13898 * util/grub.d/10_linux.in: Try alternative config filenames where
13899 we parse config file.
13900 * util/grub.d/20_linux_xen.in: Likewise.
13901
baad885c
AS
139022011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13903
13904 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13905 * util/grub.d/20_linux_xen.in: Likewise.
13906
241e41f5
VS
139072011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13908
13909 * grub-core/disk/raid.c (insert_array): Add few potentially
13910 useful grub_util_info.
13911 (grub_raid_register): Likewise.
13912
56445fb2
VS
139132011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13914
13915 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13916 Preserve partition number in mdadm code path.
13917
c871b1c6
VS
139182011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13919
13920 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13921 few potentially useful grub_util_info.
13922
5e631b4f
CW
139232011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13924
13925 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13926
2d5d0333
CW
139272011-03-30 Colin Watson <cjwatson@ubuntu.com>
13928
13929 * docs/grub.texi (default): Use @example rather than nested
13930 itemized lists to avoid breaking gendocs.
13931
3d7ed04e
CW
139322011-03-30 Colin Watson <cjwatson@ubuntu.com>
13933
13934 * docs/grub.texi (Future): Update.
13935
abf04200 139362011-03-30 Colin Watson <cjwatson@ubuntu.com>
13937
13938 * docs/grub.texi (Environment): New chapter.
13939 (Changes from GRUB Legacy): Link to "Environment block" section for
13940 details of limitations.
13941 (Simple configuration): Likewise. Link to documentation of gfxmode
13942 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13943 respectively.
13944 (Shell-like scripting): Note that normal variables are stored in the
13945 environment.
13946 (gettext): Link to documentation of lang and locale_dir.
13947 (list_env): New section.
13948 (load_env): New section.
13949 (save_env): New section.
13950
13951 (Reporting bugs): Fix typo.
13952
e1ad0edd
VS
139532011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13954
13955 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13956 the example.
13957
5d803174
VS
139582011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13959
13960 * grub-core/term/at_keyboard.c (set_scancodes)
13961 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13962
2a2da1d0
CW
139632011-03-30 Colin Watson <cjwatson@ubuntu.com>
13964
13965 * docs/grub.texi (Menu-specific commands): Remove some semantics
13966 that were true in GRUB Legacy but not in GRUB 2.
13967 (submenu): New section.
13968 (false): New section.
13969 (read): New section.
13970 (true): New section.
13971
a7527639
CW
139722011-03-30 Colin Watson <cjwatson@ubuntu.com>
13973
13974 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13975
139762011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
13977
13978 * docs/grub.texi (Simple configuration): Explain some of the
13979 current limitations of grub-mkconfig.
8a748df2 13980 Reported by: Leslie Rhorer.
e30af029 13981
fc858482
VS
139822011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13983
13984 Old macs search for boot.efi rather than for bootia32.efi.
13985
13986 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13987 * util/grub-mkrescue.in: Likewise.
13988 Suggested by: Peter Jones.
13989
e1eb511d
VS
139902011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13991
13992 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13993
70e75364
VS
139942011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13995
13996 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13997 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13998 (grub_lvm_mirror): New struct.
13999 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
14000 (grub_lvm_iterate): Iterate only visible volumes.
14001 (grub_lvm_read): Factor out to ..
14002 (read_lv): ... this. Support mirrors.
14003 (grub_lvm_read): New wrapper function.
14004 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
14005 stripped or mirrored.
14006
fc18f6a3
VS
140072011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14008
14009 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
14010
5c650f4c
CW
140112011-03-29 Colin Watson <cjwatson@ubuntu.com>
14012
14013 * docs/grub.texi (loopback): New section.
14014
61d7156b
CW
140152011-03-29 Colin Watson <cjwatson@ubuntu.com>
14016
14017 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
14018 removed -p option.
14019
994b8264
CW
140202011-03-29 Colin Watson <cjwatson@ubuntu.com>
14021
14022 * docs/grub.texi (BIOS installation): New section, partly based on
14023 previous text in other sections.
14024 (Installing GRUB using grub-install): Replace BIOS discussion with a
14025 cross-reference.
14026 (Images): Likewise.
14027
9e4d19e0
VS
140282011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14029
14030 * grub-core/kern/emu/hostdisk.c (find_partition_start)
14031 [HAVE_DIOCGDINFO]: Add safety checks.
14032
a307c0b2
VS
140332011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14034
14035 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
14036 per default compiled in kernel and prior to 8.0 isn't shipped at all.
14037
b4db4f39
CW
140382011-03-29 Colin Watson <cjwatson@ubuntu.com>
14039
14040 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
14041 real_sb->size is zero (e.g. RAID-0), get the disk size from
14042 real_sb->data_size instead.
14043 Fixes Ubuntu bug #743136.
14044
35e5f84c
VS
140452011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14046
14047 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
14048 printf clauses for printing size and start.
14049
d2e29d81
VS
140502011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14051
14052 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
14053 Reported and tested by: Timothy Nikkel.
14054
ed5587af
VS
140552011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14056
14057 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
14058 (dirty_region_add_real): ... this.
14059 (dirty_region_add): Don't discard margin refresh when performing
14060 scheduled repaint.
14061
a1dc717c
VS
140622011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14063
14064 * grub-core/lib/relocator.c (allocate_regstart)
14065 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
14066 terminals are capabple of malloc-free operation.
14067 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14068 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14069
9f3677d3
VS
140702011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
14071
14072 * util/grub-setup.c: Copy the partition table zone if floppy support
14073 is disabled, even if no partition table is found.
14074
14075 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
14076 during POST if an invalid partition table is contained in the PBR
14077 of the active partition when GRUB is installed to a partition.
14078
24148725
CW
140792011-03-28 Colin Watson <cjwatson@debian.org>
14080
14081 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
14082 comment.
14083
f329eda7
CW
140842011-03-28 Colin Watson <cjwatson@debian.org>
14085
14086 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
14087 to be specific about what kind of RAID device we're scanning for.
14088
c482ad98
SG
140892011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
14090
14091 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
14092 return freed string.
14093
5ee04984
VS
140942011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14095
14096 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
14097
f4727da9
VS
140982011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14099
14100 Use libgeom on FreeBSD to detect partitions.
14101
14102 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
14103 (grub-mkrelpath): Likewise.
14104 (grub-script-check): Likewise.
14105 (grub-editenv): Likewise.
14106 (grub-mkpasswd-pbkdf2): Likewise.
14107 (grub-fstest): Likewise.
14108 (grub-mkfont): Likewise.
14109 (grub-mkdevicemap): Likewise.
14110 (grub-probe): Likewise.
14111 (grub-setup): Likewise.
14112 (grub-ofpathname): Likewise.
14113 (grub-mklayout): Likewise.
14114 (example_unit_test): Likewise.
14115 (grub-menulst2cfg): Likewise.
14116 * grub-core/Makefile.core.def (grub-emu): Likewise.
14117 (grub-emu-lite): Likewise.
14118 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
14119 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
14120 define HAVE_DIOCGDINFO.
14121 (follow_geom_up) [FreeBSD]: New function.
14122 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
14123 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
14124 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
14125 unconditionally of HAVE_DIOCGDINFO.
14126
82fe6c75
VS
141272011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14128
14129 Fix FreeBSD compilation problem.
14130
14131 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
14132 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
14133
4c6c9431
CW
141342011-03-24 Colin Watson <cjwatson@ubuntu.com>
14135
14136 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
14137 Switch back to page zero before loading a kernel, since some kernel
14138 drivers expect that.
14139 Thanks to: Felix Kuehling.
14140
c7064d94
VS
141412011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14142
14143 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
14144 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
14145 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
14146
3f71cded
VS
141472011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14148
14149 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
14150 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
14151
ef6de21a
VS
141522011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14153
14154 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
14155 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
14156 malloc is disabled.
14157
8bc66a2c
VS
141582011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14159
14160 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
14161 for modules headers when counting the needed allocation size.
14162
5657722c
VS
141632011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14164
14165 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
14166 if no ASCII character is found to prevent crash.
14167
41a85f55
AK
141682011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
14169
14170 * grub-core/video/bitmap.c (match_extension): Ignore case.
14171
59e1e5f1
VS
141722011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14173
14174 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
14175
bd4d051a
VS
141762011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14177
14178 * grub-core/script/parser.y: Declare "time" as valid argument.
14179
bae7fcc1
PJ
141802011-03-23 Peter Jones <pjones@redhat.com>
14181
14182 Fix incorrect assert failure reporting.
14183
14184 * grub-core/tests/example_functional_test.c (example_test): Add
14185 a failure comment.
14186 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
14187 (failure_start): ...this. Check that malloc succeeded.
14188 Don't call xvasprintf. Return failure struct.
14189 (failure_append_vtext): New function.
14190 (failure_append_text): Likewise.
14191 (add_failure): Likewise.
14192 (grub_test_assert_helper): Likewise.
14193 * include/grub/test.h (grub_test_assert_helper): New declaration.
14194 (grub_test_assert): Macro rewritten.
14195
537dc9be
VS
141962011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14197
14198 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
14199
fa3e01bf
VS
142002011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14201
14202 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
14203
b1d28404
VS
142042011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14205
14206 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
14207 into GRUB-style one.
14208
2e3e2e09
VS
142092011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14210
14211 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
14212 error and not grub_errno.
14213 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
14214
ed57e557
VS
142152011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14216
14217 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
14218 GRUB_USB_SPEED_NONE in case of failure and not the error code.
14219
d1611f01
VS
142202011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14221
14222 * grub-core/efiemu/i386/pc/cfgtables.c
14223 (grub_machine_efiemu_init_tables): Make declaration a prototype.
14224 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
14225 (grub_xnu_unlock): Likewise.
14226 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
14227
7d4e39d6
VS
142282011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14229
14230 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
14231 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
14232 * grub-core/commands/hashsum.c (aliases): Likewise.
14233 * grub-core/commands/setpci.c (pci_registers): Likewise.
14234 * grub-core/disk/usbms.c (attach_hook): Likewise.
14235 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
14236 (zio_checksum_table): Likewise.
14237 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
14238 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
14239 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
14240 * grub-core/lib/relocator.c (leftovers): Likewise.
14241 (extra_blocks): Likewise.
14242 * grub-core/loader/i386/bsd.c (relocator): Likewise.
14243 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
14244 (modules_last): Likewise.
14245 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
14246 (devices): Likewise.
14247 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
14248 (modules_last): Likewise.
14249 * grub-core/normal/auth.c (users): Likewise.
14250 * grub-core/normal/context.c (initial_menu): Likewise.
14251 (current_menu): Likewise.
14252 * grub-core/normal/crypto.c (crypto_specs): Likewise.
14253 * grub-core/term/serial.c (grub_serial_ports): Likewise.
14254 (grub_serial_terminfo_input_template): Likewise.
14255 (grub_serial_terminfo_output_template): Likewise.
14256 (grub_serial_terminfo_input): Likewise.
14257 (grub_serial_terminfo_output): Likewise.
14258 (registered): Likewise.
14259 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
14260
40fc4659
VS
142612011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14262
14263 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
14264 grub_video_mode_type_t.
14265 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
14266 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
14267 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14268
2da48d28
VS
142692011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14270
14271 * util/grub-install.in: Correct the x86-64 name as x86_64.
14272
9b43bf39
CW
142732011-03-11 Colin Watson <cjwatson@ubuntu.com>
14274
14275 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14276 initial chunk read from the kernel always includes GRUB's multiboot
14277 header, which is now outside the first sector.
14278
be1a7ce0
CW
142792011-03-09 Colin Watson <cjwatson@ubuntu.com>
14280
14281 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14282 cached mmap_size, so that this works correctly when called multiple
14283 times.
14284 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14285
83a3c48d
CW
142862011-03-09 Colin Watson <cjwatson@ubuntu.com>
14287
14288 * docs/grub.texi (Simple configuration): Tidy up formatting.
14289
57d75699
SJ
142902011-03-07 Szymon Janc <szymon@janc.net.pl>
14291
14292 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14293 Set-but-not-used variable removed.
14294
028501a0
VS
142952011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14296
14297 Workaround yet another IEEE1275 bug.
14298
14299 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14300 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14301 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14302 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14303 is set.
14304 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14305 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14306
d998657d
VS
143072011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14308
14309 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14310 error.
14311
fee7cdd4
CW
143122011-02-11 Colin Watson <cjwatson@ubuntu.com>
14313
14314 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14315 empty, since in that case we can only generate either nothing or a
14316 syntactically invalid configuration file.
14317 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14318
97286eb5
CW
143192011-02-09 Colin Watson <cjwatson@ubuntu.com>
14320
14321 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14322 (Making a GRUB bootable CD-ROM): Likewise.
14323 (Invoking grub-mkrescue): New section.
14324 Reported by: Yann Dirson. Fixes Debian bug #612585.
14325
22b28eb3
CW
143262011-02-09 Colin Watson <cjwatson@ubuntu.com>
14327
14328 * util/grub-install.in: Remove unnecessary brackets from tr
14329 arguments.
14330 * util/grub.d/10_hurd.in: Likewise.
14331 * util/grub.d/10_kfreebsd.in: Likewise.
14332 * util/grub.d/10_linux.in: Likewise.
14333 * util/grub.d/20_linux_xen.in: Likewise.
14334 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14335
7e735e43
CW
143362011-02-08 Colin Watson <cjwatson@ubuntu.com>
14337
14338 * include/grub/file.h (not_easly_seekable): Rename to ...
14339 (not_easily_seekable): ... this. Update all users.
14340
800f1881
CW
143412011-01-28 Colin Watson <cjwatson@ubuntu.com>
14342
14343 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14344 grub-mkrescue.
14345
3281d3d6
VS
143462011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14347
14348 * util/grub-mkimage.c (generate_image): Refuse to create the images
14349 bigger than the actual flash (512K) in Loongson machines. 512K is also
14350 the biggest chip supported by them.
14351
3533413c
VS
143522011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14353
14354 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14355
73ae4f4f
VS
143562011-01-22 Anthony DeRobertis <anthony@derobert.net>
14357
14358 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14359 super_offset field.
14360
37f4f608
VS
143612011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14362
14363 * util/grub-install.in: Ignore install device on platforms
14364 where it doesn't make sense. Always use UUIDs except on pc, efi and
14365 sparc64.
14366 Reported by: Daniel Kahn Gillmor.
14367
03a4ccb5
VS
143682011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14369
14370 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14371
ffc8f4d8
VS
143722011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14373
14374 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14375 (iterate_real): Don't rely on partition being non-NULL.
14376
80f23be7
VS
143772011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14380 supported platforms. Put a compile time assert for this rather than
14381 generate a warning with 32-bit shift.
14382
5d4f4dd5
VS
143832011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14384
14385 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14386 logical expression more readable.
14387
e489601a
VS
143882011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14389
14390 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14391 even if some elements have a name.
14392 Reported by: Alexander GQ Gerasiov.
14393
96e0a6ea
CW
143942011-01-22 Colin Watson <cjwatson@ubuntu.com>
14395
14396 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14397 path unreadable if `grub-probe -t abstraction' fails, for example if
14398 memberlist fails on an LVM volume group.
14399 Reported by: Darius Jahandarie.
14400
81431e2b
CW
144012011-01-22 Colin Watson <cjwatson@ubuntu.com>
14402
14403 * docs/grub.texi (Simple configuration): Document
14404 GRUB_PRELOAD_MODULES.
14405
5e79d66a
CW
144062011-01-17 Colin Watson <cjwatson@ubuntu.com>
14407
14408 * .bzrignore: Remove nonexistent grub-pbkdf2.
14409
646ada34
VS
144102011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14411
14412 * configure.ac: Bump version to 1.99~rc1.
14413
04360337
VS
144142011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14415
14416 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14417 for safety.
14418
46c9db88
VS
144192011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14420
14421 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14422 module.
14423
144242011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
14425
14426 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14427
4fbf1852
VS
144282011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14429
14430 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14431 diskdevid.
14432
f1632d4d
VS
144332011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14434
14435 Fix compilation on cygwin.
14436
14437 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14438 -R .drectve on cygwin.
14439 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14440 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14441 (COND_CYGWIN): New condition.
14442 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14443 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14444 not @TARGET_OBJ2ELF@.
14445 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14446 type to determine whether aux is to be used.
14447
0b5e127b
VS
144482011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14449
14450 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14451 realpath'ed device string.
14452 Handle floppy (somewhat).
14453 Issue error in unknown case rather than garbage.
14454 Reported by: Axel Beckert.
14455
173b71e9
VS
144562011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14457
14458 * util/grub.d/00_header.in (load_video): Handle the case when no video
14459 drivers available.
14460 Thanks to: Axel Beckert.
14461
f8f479db
VS
144622011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14463
14464 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14465 variable. Fixes problem on big endian platforms.
14466
8fc0a245
VS
144672011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14468
14469 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14470 It doesn't work well there.
14471
b8494fbe
VS
144722011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14473
14474 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14475 warning.
14476 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14477 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14478 counter.
14479
b44a558c
VS
144802011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 Use alias->path rather than buggy "canon".
14483
14484 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14485 (ofdisk_hash_add): New argument curcan. All users updated.
14486
51fa856c
CW
144872011-01-11 Colin Watson <cjwatson@ubuntu.com>
14488
14489 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14490
9da068a5
VS
144912011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14492
14493 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14494 loadmask before doing any calculations. Use correct type for offset.
14495 (grub_linux_load64): Likewise.
14496
86205c94
CW
144972011-01-11 Colin Watson <cjwatson@ubuntu.com>
14498
14499 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14500 with NULL.
14501 (console_grub_equivalences_unshift): Likewise.
14502 Reported by: Daniel Dehennin.
14503
4531a206
VS
145042011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14505
14506 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14507 (set_env_limn_ro): Likewise.
14508 (GRUB_MOD_INIT): Likewise.
14509 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14510 ARRAY_SIZE while on it.
14511 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14512 * grub-core/normal/context.c (grub_env_export): Move from here ...
14513 * grub-core/kern/env.c (grub_env_export): ... here.
14514 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14515 prefix.
14516 * grub-core/kern/main.c (grub_main): Export root and prefix.
14517 * include/grub/env.h (grub_env_export): Export.
14518 Reported by: Seth Goldberg.
14519
45146057
VS
145202011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14521
14522 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14523 Take into account space used by ELF sections and multiboot palette.
14524 Reported by: Grégoire Sutre.
14525
f093110b
VS
145262011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14527
14528 * BUGS: New file.
14529
3395fe52
VS
145302011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14531
14532 Pass more appropriate video id to Linux.
14533
14534 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14535 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14536 fill have_vga.
14537 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14538 shift params->lfb_size.
14539 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14540
c2fa6cbb
VS
145412011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14544
b3ff6ff0
VS
145452011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14546
14547 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14548 separator and pass bootpath/devid even if only one of them is available.
14549 Reported by: Seth Goldberg.
14550
ae67942e
VS
145512011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14552
14553 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14554 implementations bug on them.
14555
14556 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14557 memory.
14558 (filter_memory_map): Likewise.
14559
d570097a
VS
145602011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14561
14562 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14563 Reported by: nebuchadnezzar.
14564
a508e776
VS
145652011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14566
14567 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14568 Reported by: nebuchadnezzar.
14569
dcb883b1
VS
145702011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14571
14572 Submenu default support.
14573
14574 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14575 auto_boot. All users updated.
14576 Declared static.
14577 Handle chosen and default with submenus.
14578 (grub_menu_execute_with_fallback): Declared static.
14579 Don't notify failure if autobooted. Upper level does it.
14580 (menuentry_eq): New function.
14581 (get_entry_number): Use menuentry_eq.
14582 (show_menu): New parameter "autobooted". All users updated.
14583 (grub_show_menu): Likewise.
14584 * include/grub/normal.h (grub_show_menu): Likewise.
14585 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14586 (grub_menu_execute_with_fallback): Likewise.
14587
6fef99b4
VS
145882011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14589
14590 * util/grub-mklayout.c (usage): Update help text.
14591
47a77af5
VS
145922011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14593
14594 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14595
ce6bb3ee
VS
145962011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14597
14598 * util/grub-menulst2cfg.c (main): Trim the line.
14599
db87be2a
VS
146002011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14601
14602 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14603 (grub_machine_init): Don't check amount of low memory as reportedly
14604 INT 12h can be broken and if low memory is too low we wouldn't have
14605 gotten into grub_machine_init anyway.
14606
c49849cc
VS
146072011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14608
14609 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14610 (grub_machine_mmap_iterate): Take low memory into account
14611
b1969b30
VS
146122011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14613
14614 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14615 badfs.
14616 Reported by: TiCPU.
14617
cf0eaf13
VS
146182011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14619
14620 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14621 members errors.
14622
1f060f39
GS
146232011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14624
14625 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14626 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14627
a21e5672
GS
146282011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14629
14630 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14631 openbsd and netbsd types being in part_bsd module.
14632
c88172fa
VS
146332011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14636 (_FILE_OFFSET_BITS): Likewise.
14637 Reported by: Seth Goldberg.
14638
53798c4b
GS
146392011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14640
14641 * configure.ac: Check for libdevmapper header.
14642
e7121b69
VS
146432011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14644
14645 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14646 avoid aliasing.
14647 (fzap_lookup): Likewise.
14648 (dnode_get): Likewise.
14649 (make_mdn): Likewise.
14650 (zfs_mount): Likewise.
14651 (fzap_iterate): Use temporary pointer to avoid aliasing.
14652 (grub_zfs_read): Likewise.
14653 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14654 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14655 pointers to avoid aliasing.
14656 (grub_cmd_xnu_kernel64): Likewise.
14657 (grub_xnu_load_driver): Likewise.
14658
fc836af9
VS
146592011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14660
14661 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14662 aliasing warning.
14663 (grub_cmd_terminal_output): Likewise.
14664 Reported and tested by: Grégoire Sutre.
14665
f9f37648
VS
146662011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14667
14668 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14669 warning.
14670 Reported and tested by: Grégoire Sutre.
14671
ec1dfd63
VS
146722011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14673
14674 * configure.ac: Do CPU substitution even if it's specified explicitly.
14675 Reported and tested by: Alain Greppin.
14676
9462775a
VS
146772011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14678
14679 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14680 Reported and tested by: Alain Greppin.
14681
0fd48e35
VS
146822011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14683
14684 Satisfy some bison versions need for inttypes.h.
14685
14686 * grub-core/lib/posix_wrap/inttypes.h: New file.
14687 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14688 (int16_t): Likewise.
14689 (int32_t): Likewise.
14690 (int64_t): Likewise.
14691 Reported and tested by: Alain Greppin.
14692
43f1bc83
VS
146932011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14694
14695 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14696 Silence spurious warning.
14697 Reported and tested by: Alain Greppin.
14698
64d1f041
SJ
146992011-01-07 Szymon Janc <szymon@janc.net.pl>
14700
14701 * docs/grub.texi (Support automatic decompression): Update with xz
14702 decompression support.
14703
25953e10
SJ
147042011-01-07 Szymon Janc <szymon@janc.net.pl>
14705
14706 Improve loaders' kernel command line handling.
14707
14708 * grub-core/lib/cmdline.c: New file.
14709 * include/grub/lib/cmdline.h: Likewise.
14710 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14711 grub_create_loader_cmdline to create kernel command line.
14712 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14713 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14714 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14715 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14716 (linux): Add lib/cmdline.c on common.
14717
e72d259f
VS
147182011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14719
14720 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14721 inopos might be unaligned.
14722
c0cf26da
VS
147232011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14724
14725 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14726 endian transformations.
14727 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14728 Based on report by: Doug Nazar.
14729
0ca09e6c
DN
147302011-01-07 Doug Nazar <nazard.michi@gmail.com>
14731
14732 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14733 array->members[i].start_sector.
14734 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14735
014b6806
VS
147362011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14737
14738 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14739 Reported and tested by: Grégoire Sutre.
14740
415502c2
CW
147412011-01-06 Colin Watson <cjwatson@ubuntu.com>
14742
14743 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14744 avoid causing test failures by clearing the screen.
14745
71b6a2b7
CW
147462011-01-06 Colin Watson <cjwatson@ubuntu.com>
14747
14748 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14749 Fix prefix check to handle the case where dir ends with a slash
14750 (most significantly, "/" itself).
14751 Reported by: Michael Vogt.
14752
b3f8d28a
VS
147532011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14754
14755 Run terminfo_cls on initing terminfo output to clear the screen and
14756 move the cursor to (0,0).
14757
14758 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14759 Call grub_terminfo_output_init.
14760 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14761 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14762 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14763
4c3e4f37
VS
147642011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14765
14766 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14767 only when needed.
14768
488f71f1
VS
147692011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14770
14771 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14772 CTRL.
14773
18a38098
VS
147742011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14775
14776 The E820 type 5 is BADRAM, not EXEC_CODE.
14777
14778 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14779 (GRUB_E820_BADRAM): New define.
14780 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14781 into reserved. Propagate BADRAM.
14782 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14783 (GRUB_E820_BADRAM): New define.
14784
9eae2084
VS
147852011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14786
14787 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14788 Ignore the memory post-4G.
14789 (grub_relocator_firmware_alloc_region): Additional debug statement.
14790
ebc71d28
VS
147912011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14792
14793 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14794 names.
14795 Reported by: David Pravec.
14796
446fa400
VS
147972011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14798
14799 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14800 BIOSes.
14801
a0159f37
VS
148022011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14803
14804 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14805 Prevent overflow.
14806 (grub_reed_solomon_recover): Likewise.
14807
e5146ca1
VS
148082011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14809
14810 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14811
148122011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
14813
14814 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14815 variable.
14816
5b1bdf12
CW
148172011-01-04 Colin Watson <cjwatson@ubuntu.com>
14818
14819 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14820 descriptions of extract_legacy_entries_source and
14821 extract_legacy_entries_configfile.
14822 Reported by: Seung Soo, Ha.
14823
99d925aa
CW
148242011-01-03 Colin Watson <cjwatson@ubuntu.com>
14825
14826 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14827 on devices that do not implement function 0.
14828
4af0504b
DV
148292011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14830
14831 * grub-core/fs/hfsplus.c: Make parent unsigned.
14832 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14833 overflows.
14834 (grub_hfsplus_cmp_extkey): Likewise
14835
469ee10a
VS
148362011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14837
14838 * util/grub-install.in: Correctly use bootloader_id and not
14839 GRUB_DISTRIBUTOR on efibootmgr line.
14840
323a8e9c
VS
148412011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14842
14843 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14844
1b394975
IC
148452010-12-31 Ian Campbell <ijc@hellion.org.uk>
14846
14847 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14848 Xen and reorder menu item wording to make it clearer that this entry
14849 will launch Xen. Print separate messages when loading Xen and
14850 Linux.
14851
275bff5f
VS
148522010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14853
14854 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14855 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14856 loop in case of incorrect amiga partmap.
14857
307806cb
VS
148582010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14859
14860 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14861 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14862 Reported by:EHeM.
14863
b12b923e
VS
148642010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14865
14866 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14867 spurious warning.
14868 Reported by: crocket
14869
14b48a19
VS
148702010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14871
14872 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14873 Preload EFIemu.
14874 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14875
693db2df
VS
148762010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14877
14878 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14879 is loaded
14880 (grub_cmd_xnu_kextdir): Likewise.
14881 (grub_cmd_xnu_splash): Likewise.
14882
c7638645
VS
148832010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14884
14885 Avoid using Reed-Solomon with 0 redundancy.
14886
14887 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14888 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14889 or 0 redundancy.
14890 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14891 (grub_reed_solomon_recover): Likewise.
14892
25dd4780
VS
148932010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14894
14895 Don't use disk subsystem in freebsd_boot.
14896
14897 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14898 (freebsd_biosdev): Likewise.
14899 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14900 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14901
0b2db943
VS
149022010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14903
14904 Handling of files of unknown size is currently limited. They can't be
14905 used e.g. for initrd or modules. Moreover gzip handling of not
14906 easily seekable files is buggy. Disable unknown file size for now. May
14907 be inefficient but works.
14908
14909 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14910 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14911
5c408d0f
MP
149122010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14913
14914 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14915 floppy probe.
14916
190a011a
JD
149172010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14918
14919 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14920
022d01b8
SL
149212010-12-25 Shea Levy <shlevy>
14922
14923 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14924
c4855fdc
VS
149252010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14926
14927 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14928 Windows Server 2008.
14929 Reported by: Devin Giddings.
14930
0354b867
VS
149312010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14932
14933 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14934 writing an error message because of async power management.
14935 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14936 (grub_reboot): Likewise.
14937
ab66c69f
JU
149382010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14939
14940 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14941 keep unit tests from failing when they shouldn't.
14942
1426ef35
CW
149432010-12-21 Colin Watson <cjwatson@ubuntu.com>
14944
14945 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14946 previous patch increased the size of the RS code by 20 bytes (at
14947 least with gcc-4.4), so increase this by 20 bytes to match.
14948 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14949
20641b6b
CW
149502010-12-21 Colin Watson <cjwatson@ubuntu.com>
14951
14952 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14953 scratch area. Make sure to initialise chosen in standalone mode as
14954 well as non-standalone.
14955 Reported by: Robert Hooker and Andy Whitcroft.
14956 Tested by: Andy Whitcroft.
14957
d060ad60
CW
149582010-12-21 Colin Watson <cjwatson@ubuntu.com>
14959
14960 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14961 constructing a new unescaped string and passing it to grub_xputs in
14962 one go, rather than passing characters to grub_printf one at a time.
14963
b889cfad
CW
149642010-12-21 Colin Watson <cjwatson@ubuntu.com>
14965
14966 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14967 initialising utf16.
14968
4e01b6c8
CW
149692010-12-21 Colin Watson <cjwatson@ubuntu.com>
14970
14971 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14972 comment. Add an extra layer of quotation, requiring the output of
14973 this function to be used in a printf format string.
14974 (gettext_printf): New function.
14975 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14976 Extract translatable strings from here-documents and use a temporary
14977 variable instead, so that xgettext can find them.
14978 * util/grub.d/10_kfreebsd.in: Likewise.
14979 * util/grub.d/10_linux.in: Likewise.
14980 * util/grub.d/20_linux_xen.in: Likewise.
14981
14982 * po/grub.d.sed: New file.
14983 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14984 arguments. Set c-format flags on all strings extracted from
14985 util/grub.d/ (xgettext refuses to include these itself for strings
14986 it extracted from a shell file, but these really are c-format).
14987
5318fe98
VS
149882010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14989
14990 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14991 Avoid next pointing to nowhere.
14992
6c85b743
VS
149932010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14994
14995 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14996 rather than assuming than rootblock is exactly in the middle.
14997 (grub_affs_label): Likewise.
14998
a2a08a35
VS
149992010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15000
15001 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
15002 reserved_first_sector to 0.
15003 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
15004 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
15005 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
15006
7059d1ec
VS
150072010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15008
15009 Fix handling of UTF-16 UDF labels.
15010
15011 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
15012 (read_string): .. here.
15013 (grub_udf_label): Use read_string.
15014
30aff4cb
BC
150152010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
15016
15017 * grub-core/normal/menu_entry.c (run): Execute commands from menu
15018 editor under argument scope.
15019 Reported by: Jordan Uggla
15020
5cf86f4b
VS
150212010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15022
15023 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
15024
32570200
CW
150252010-12-18 Colin Watson <cjwatson@ubuntu.com>
15026
15027 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
15028 line, and other keys scroll an entire page (previous handling was
15029 for \r and \n to scroll a page and other keys to scroll two lines).
15030
e1dffcf2
VS
150312010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15032
15033 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15034 Set ptrdest to correct get_physical_target_address rather than
15035 incorrect get_virtual_current_address.
15036
b04298cf 150372010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
15038
15039 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
15040 correct cat to grub_uint8_t * rather than grub_uint32_t *.
15041
5367ecd3
CW
150422010-12-10 Colin Watson <cjwatson@ubuntu.com>
15043
15044 * .bzrignore: Ignore grub-core/rs_decoder.S.
15045
1fb430f8
CW
150462010-12-10 Colin Watson <cjwatson@ubuntu.com>
15047
15048 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
15049 .mo/.mo.gz opening sequence to ...
15050 (grub_mofile_open_lang): ... here.
15051 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
15052 * util/grub.d/00_header.in (grub_lang): Include country part of
15053 locale.
15054 Reported by: Mario Limonciello.
15055
a94a6671
RM
150562010-12-09 Robert Millan <rmh@gnu.org>
15057
15058 * NEWS: Document addition of ZFS support.
15059
24b7938b
CW
150602010-12-04 Colin Watson <cjwatson@ubuntu.com>
15061
15062 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
15063 rather than `/ 2', as the latter requires -Wa,--divide which would
15064 require bumping our minimum binutils version.
15065
bddc3ef6
BC
150662010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
15067
15068 * util/grub-script-check.c (main): Print script line number on
15069 error.
15070
bf78d5b2
RM
150712010-12-01 Robert Millan <rmh@gnu.org>
15072
15073 * grub-core/fs/zfs/zfs.c: New file.
15074 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
15075 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
15076 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
15077 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15078
15079 * include/grub/zfs/dmu.h: Likewise.
15080 * include/grub/zfs/dmu_objset.h: Likewise.
15081 * include/grub/zfs/dnode.h: Likewise.
15082 * include/grub/zfs/dsl_dataset.h: Likewise.
15083 * include/grub/zfs/dsl_dir.h: Likewise.
15084 * include/grub/zfs/sa_impl.h: Likewise.
15085 * include/grub/zfs/spa.h: Likewise.
15086 * include/grub/zfs/uberblock_impl.h: Likewise.
15087 * include/grub/zfs/vdev_impl.h: Likewise.
15088 * include/grub/zfs/zap_impl.h: Likewise.
15089 * include/grub/zfs/zap_leaf.h: Likewise.
15090 * include/grub/zfs/zfs.h: Likewise.
15091 * include/grub/zfs/zfs_acl.h: Likewise.
15092 * include/grub/zfs/zfs_znode.h: Likewise.
15093 * include/grub/zfs/zil.h: Likewise.
15094 * include/grub/zfs/zio.h: Likewise.
15095 * include/grub/zfs/zio_checksum.h: Likewise.
15096
15097 * Makefile.util.def: Build ZFS into libgrubmods.
15098 * grub-core/Makefile.core.def: Build zfs.mod.
15099
3f0f3831
SJ
151002010-11-30 Szymon Janc <szymon@janc.net.pl>
15101
15102 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
15103 variable.
15104 * grub-core/commands/wildcard.c (match_files): Likewise.
15105
3a4253b2
RM
151062010-11-30 Robert Millan <rmh@gnu.org>
15107
15108 * grub-core/loader/i386/bsd.c
15109 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
15110 whether kernel is loaded using grub_loader_is_loaded(), rather
15111 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
15112 certain error conditions.
15113
8c317b27
RM
151142010-11-30 Robert Millan <rmh@gnu.org>
15115
c5c9cd3e
RM
15116 * grub-core/commands/echo.c: Include `<grub/term.h>'.
15117 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 15118
49d3ab46
VS
151192010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15120
15121 Avoid using tricks for initialising endian variables.
15122
15123 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
15124 Make const.
15125 (GRUB_MOD_INIT): Don't byte-swap.
15126 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15127 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
15128 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
15129 (grub_swap_bytes32_compile_time): Likewise.
15130 (grub_cpu_to_le32_compile_time): Likewise.
15131 (grub_cpu_to_le16_compile_time): Likewise.
15132
f420a804
VS
151332010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15134
15135 * util/grub-setup.c (setup): Stop recommending --force. People who
15136 understand the dangers of blocklists are able to find this option
15137 anyway and the ones who don't shouldn't use it anyway.
15138
4e7db17b
RM
151392010-11-26 Robert Millan <rmh@gnu.org>
15140
15141 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
15142 Update all users.
15143
9be57a0d
CW
151442010-11-26 Colin Watson <cjwatson@ubuntu.com>
15145
15146 Fix LVM-on-RAID probing.
15147
15148 * util/grub-probe.c (probe): Remember which disk was detected as
15149 RAID (perhaps an LVM physical volume). Use that disk's raidname
15150 rather than that of the top-level disk.
15151
2c7859b3 151522010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 15153
d7647bb6
BC
15154 Fix cmdline argument quotes for setparams command of menuentry
15155 definitions.
7e623b0d
BC
15156
15157 * grub-core/commands/menuentry.c (setparams_prefix): Use single
15158 quotes for arguments.
f866fe80 15159 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 15160 grub_strchrsub function instead.
f866fe80 15161
7955bea0 15162 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 15163
74f72a64
CW
151642010-11-24 Colin Watson <cjwatson@ubuntu.com>
15165
15166 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
15167 effort by skipping "." and ".." entries up-front.
15168 Suggested by: Michael Lazarev.
15169
5a407278
CW
151702010-11-24 Colin Watson <cjwatson@ubuntu.com>
15171
15172 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
15173 ldflags to ldadd, to fix link line ordering.
15174 (none_decompress): Likewise.
15175
3030d8ec
CW
151762010-11-24 Colin Watson <cjwatson@ubuntu.com>
15177
15178 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
15179 platforms.
15180 (grub-emu-lite): Remove kern/emu/cache.S.
15181
b7fbac12
CW
151822010-11-23 Colin Watson <cjwatson@ubuntu.com>
15183
15184 * util/deviceiter.c (compare_devices): If the by-id link for a
15185 device couldn't be resolved, fall back to sorting by the by-id link
15186 rather than segfaulting.
15187 Reported and tested by: Daniel Mierswa.
15188
5225f328
CW
151892010-11-23 Colin Watson <cjwatson@ubuntu.com>
15190
15191 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
15192 ldflags, to fix link line ordering.
15193
038b3ce8
CW
151942010-11-23 Colin Watson <cjwatson@ubuntu.com>
15195
15196 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
15197 linkers are picky about this.
15198
bf16e98e
CW
151992010-11-23 Colin Watson <cjwatson@ubuntu.com>
15200
15201 * grub-core/Makefile.am (command.lst): Adjust sed expression
15202 ordering so that extended and priority commands aren't treated as
15203 ordinary commands.
15204
7242bab6
CW
152052010-11-23 Colin Watson <cjwatson@ubuntu.com>
15206
15207 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15208 Remove byte-swapping function calls, which are not valid in
15209 structure initialisers.
15210 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
15211 non-const.
15212 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
15213 grub_gpt_partition_type_bios_boot.
15214
14e8b279
CW
152152010-11-22 Colin Watson <cjwatson@ubuntu.com>
15216
15217 Fix test program build on GNU/kFreeBSD.
15218
15219 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
15220 $(LIBNVPAIR)' library dependencies.
15221
e6f63338 152222010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
15223
15224 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
15225
cf8ffc38
CW
152262010-11-22 Colin Watson <cjwatson@ubuntu.com>
15227
15228 * util/grub-install.in: Remove excessive quoting that broke
15229 installations to RAID devices.
15230
7f8b0fd7
VS
152312010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15232
15233 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
15234 bootloader version instead of 0.
15235
dfd240b1
VS
152362010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15237
15238 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
15239 warning.
15240
7b61e609
VS
152412010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15242
15243 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
15244 retrieve the metadat sector if size isn't known.
15245 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15246
9dfe92d0
RM
152472010-11-18 Robert Millan <rmh@gnu.org>
15248
15249 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
15250 with grub_memcmp().
15251
41cc919e
VS
152522010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
15253
15254 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
15255 arrow.
15256 Reported by: Jordan Uggla.
15257
1afcc914
VS
152582010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15259
15260 Make better UTF compliant.
15261
15262 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
15263 sequences as incorrect.
15264 (grub_is_valid_utf8): Likewise.
15265 (grub_utf8_to_ucs4): Likewise.
15266 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
15267 (grub_ucs4_to_utf8_alloc): Likewise.
15268 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15269
f1808884
VS
152702010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15271
15272 Make legacy_source behave like source.
15273
15274 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15275 grub_show_menu.
15276 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15277
24ec575b
CW
152782010-11-16 Colin Watson <cjwatson@debian.org>
15279
15280 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15281 (-Wunused implies -Wunused-parameter, but not vice versa).
15282
72b7c7aa
CW
152832010-11-16 Colin Watson <cjwatson@ubuntu.com>
15284
15285 * configure.ac: Make error messages less confusing by testing for
15286 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15287 accepted, but produces a diagnostic if something else is wrong).
15288
e98937aa
VS
152892010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15290
15291 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15292 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15293 (now unused).
15294 (grub_keyboard_controller_init)
15295 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15296 read the initial state since controller isn't inited yet.
15297
f6bbabc3
VS
152982010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15299
15300 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15301 allocate_regbeg may need to create new chunk header.
15302
22e7dbb2
VS
153032010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15304
15305 Fix quoting in legacy parser.
15306
15307 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15308 single quotes.
15309 (grub_legacy_parse): Likewise.
15310 Reported by: Jordan Uggla.
15311 Tested by: Jordan Uggla.
15312
03f80960
VS
153132010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15314
15315 Don't add -lgcc on i386 and x86_64.
15316
15317 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15318 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15319 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15320
779dc15b
VS
153212010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15322
15323 * configure.ac: Add -Wno-trampolines when supported.
15324
d20a3b37
MV
153252010-11-14 Modestas Vainius <modax@debian.org>
15326
15327 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15328 fakeraid.
15329
e5360933
GC
153302010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15331
15332 Add generic logical block size support for UDF.
15333
15334 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15335 (GRUB_UDF_BLKSZ): Removed.
15336 (struct grub_udf_data): New field "lbshift" to hold the logical block
15337 size of the file system in log2 format. All users updated.
15338 (sblocklist): Change type to unsigned.
15339 (grub_udf_mount): Change type of "sblklist" to unsigned.
15340 Move AVDP search before VRS recognition, because the latter requires
15341 knowledge of the logical block size, which is detected during the
15342 former.
15343 Detect and validate logical block size during AVDP search, adding
15344 support for block sizes 512, 1024 and 4096.
15345 Make VRS recognition independent of block size.
15346
cb0229c5
GC
153472010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15348
15349 Properly handle deleted files on UDF.
15350
15351 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15352 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15353 set.
15354
406858a8
GC
153552010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15356
15357 Support reading files larger than 2 GiB.
15358
15359 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15360 "offset" to grub_off_t.
15361 (grub_udf_read_file): Likewise for parameter "pos".
15362
130da6a7
VS
153632010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15364
15365 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15366 unavailable.
15367 (Simple configuration): Refer to Changes from GRUB Legacy about
15368 save_env availability.
15369
65e93f6b
VS
153702010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15371
15372 * util/grub-install.in: Ignore empty partition table detection
15373 instead of trying to include part_ module.
15374
1fd08bf1
VS
153752010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15376
15377 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15378 LVM on RAID support.
15379
de1a024f
VS
153802010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15381
15382 Properly define WORDS_BIGENDIAN in wrapped environments.
15383
15384 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15385 definition.
15386 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15387
15388 Reported by: Manoel Rebelo Abranches.
15389 Tested by: Manoel Rebelo Abranches.
15390
bc5dd0b9
VS
153912010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15392
15393 * util/grub-mkconfig.in: Fix quoting.
15394
58c184be
VS
153952010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15396
15397 Support big ext2 files.
15398
15399 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15400 (grub_ext2_read_block): Support triple indirect blocks.
15401 (grub_ext2_read_file): Use 64-bit types and read size_high.
15402 (grub_ext2_open): Read size_high.
15403 Reported by: Ximin Luo.
15404 Tested by: Manoel Rebelo Abranches.
15405
5f0c02b3
VS
154062010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15407
15408 * util/grub-install.in: Handle filenames containing spaces.
15409 Reported by: Jordan Uggla.
15410 Tested by: Jordan Uggla.
15411
4417aae6
VS
154122010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15413
15414 * util/grub-mkconfig.in (grub_script_check): New variable.
15415 Use grub_script_check instead of grub-script-check.
15416 Reported by: Barry Jackson.
15417
7625a68e
VS
154182010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15419
15420 * docs/grub.texi (menu): Correct the order.
15421 Reported by: D. Hugh Redelmeier.
15422
10001ac5
VS
154232010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15424
15425 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15426 jump.
15427
9c4cf53b
MRA
154282010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15429
10001ac5
VS
15430 * include/grub/elfload.h (grub_elf32_size): New parameter.
15431 All users updated.
9c4cf53b
MRA
15432 Return maximum segments alignment.
15433 (grub_elf64_size): Likewise.
15434 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15435 Return maximum segments alignment.
15436 (grub_elf64_size): Likewise.
15437 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
15438 (grub_linux_claimmap_iterate): New function. Uses the
15439 "available" property in the "memory" node for memory allocation
15440 for kernel in the PowerPC loader.
9c4cf53b
MRA
15441 (grub_linux_load32): Correctly find linux entry point offset.
15442 (grub_linux_load64): Likewise.
15443
d2bf06bf
RM
154442010-11-07 Robert Millan <rmh@gnu.org>
15445
15446 On mips-yeeloong, build with -march=loongson2f when this flag is
15447 available (GCC >= 4.4).
15448 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15449 `-march=mips3'.
15450 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15451 or otherwise add -march=mips3.
15452
898c99a2
BC
154532010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15454
87220a68
BC
15455 Suppress shell expansion on echo '*' and echo "*" like cases.
15456 Reported by: Jordan Uggla.
898c99a2
BC
15457
15458 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15459 string arguments before shell expansion.
15460 * tests/grub_cmd_echo.in: New testcases.
15461
4f9b406a
RM
154622010-11-07 Robert Millan <rmh@gnu.org>
15463
15464 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15465 transition.
15466
80c6d25e
VS
154672010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15468
15469 * grub-core/kern/emu/hostdisk.c
15470 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15471
4a1a0153
VS
154722010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15473
15474 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15475 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15476 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15477
34706ddc
VS
154782010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15479
15480 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15481
6972dea9
VS
154822010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15483
15484 * util/grub-install.in: Replace useless recomendation to pass
15485 --modules with a recomendation to report a bug.
15486
9c693bd6
VS
154872010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15488
15489 Properly register serial terminfo.
15490 Reported by: Jordan Uggla
15491
15492 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15493 const.
15494 (grub_serial_terminfo_output_template): Likewise.
15495 (grub_cmd_serial): Register "serial" with terminfo.
15496 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15497 grub_serial_terminfo_output.
15498
6c9e4c0c
RM
154992010-11-05 Robert Millan <rmh@gnu.org>
15500
15501 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15502 needed).
15503
b9b3839f
RM
155042010-11-05 Robert Millan <rmh@gnu.org>
15505
15506 On Yeeloong, pass machine type information to Linux.
15507
15508 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15509 (LOONGSON_MACHTYPE): New macro, set to
15510 "machtype=lemote-yeeloong-2f-8.9inches".
15511 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15512 additional argument to Linux.
15513
1a3aaff4
RM
155142010-11-04 Robert Millan <rmh@gnu.org>
15515
15516 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15517 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15518 (its SATA disks are detected as slaveless IDE master drives on
15519 kFreeBSD).
15520 Reported by Carsten Aulbert.
15521
a75f4f62
CW
155222010-11-02 Colin Watson <cjwatson@ubuntu.com>
15523
15524 * util/bin2h.c (main): Fix spelling error in generated output.
15525
33b4b0c6
GS
155262010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15527
15528 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15529
2b36fbf4
VS
155302010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15531
15532 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15533 vga= option is supplied.
15534
74aaf558
VS
155352010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15536
15537 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15538 * util/grub.d/10_kfreebsd.in: Likewise.
15539 * util/grub.d/10_linux.in: Likewise.
15540 * util/grub.d/20_linux_xen.in: Likewise.
15541
6428dec3
VS
155422010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15543
15544 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15545 argument as an argument to no-argument option.
15546
f8729d98
VS
155472010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15548
15549 * util/grub.d/10_linux.in: Add missing load_video with explicit
15550 GRUB_GFXPAYLOAD_LINUX.
15551
89d68fa6
VS
155522010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15553
15554 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15555
3a1197cd
VS
155562010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15557
15558 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15559 elements with invlid index.
15560 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15561 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15562 members.
15563 * include/grub/raid.h (grub_raid_member): New struct.
15564 (grub_raid_array): Transform devices and start_sector into usage of
15565 grub_raid_member. All users updated
15566 (allocated_devs): New member.
15567
71574288
VS
155682010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15569
15570 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15571 is modified
15572
8d40ec65
BC
155732010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15574
15575 NetBSD build fix for getline function conflict from gnulib.
15576
15577 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15578 components that depend on gnulib headers.
15579 (libgrubmods.a): Renamed from earlier libgrub.a.
15580 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15581
95b9257e
VS
155822010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15583
15584 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15585 install rather than creating a broken install.
15586
26c53dc6
VS
155872010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15588
15589 * util/grub-setup.c (argp): Remove misleading example of installing to
15590 a partition.
15591
4171b3c5
VS
155922010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15593
15594 * util/grub-setup.c (setup): Clarify the error message.
15595
18568d18
VS
155962010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15597
15598 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15599
4f6a2e21
VS
156002010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15601
15602 * grub-core/kern/emu/misc.c
15603 (grub_make_system_path_relative_to_its_root)
15604 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15605
156062010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
15607
15608 * grub-core/kern/emu/misc.c
15609 (grub_make_system_path_relative_to_its_root): Revert r2882.
15610
e138c458
VS
156112010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15612
15613 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15614 useless field head. All users updated.
15615 (free_subchunk): Correct handling of IN_REGION subchunk.
15616
0cbcdf0e
CW
156172010-10-22 Colin Watson <cjwatson@ubuntu.com>
15618
15619 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15620 (Supported kernels): Likewise.
15621
b65ea155
GS
156222010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15623
15624 Make mktemp invocations portable.
15625
15626 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15627 exit if mktemp fails.
15628 * tests/grub_script_blockarg.in: Likewise.
15629 * tests/partmap_test.in: Likewise.
15630 * tests/util/grub-shell-tester.in: Likewise.
15631 * tests/util/grub-shell.in: Likewise.
15632 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15633 * Makefile.am: Likewise, and chain shell commands with `&&'
15634 instead of ';'.
15635 * util/grub-mkrescue.in: Use the same explicit template as above, and
15636 exit if mktemp fails.
15637
05f43cdd
BC
156382010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15639
15640 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15641 Linux kernel, reported by Dennis Schridde.
15642
800e6a9b
SJ
156432010-10-17 Szymon Janc <szymon@janc.net.pl>
15644
15645 * grub-core/normal/auth.c (grub_auth_check_authentication):
15646 Set-but-not-used variable removed.
15647
d82df574
VS
156482010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15651 32-bit linux protocol.
15652
7bced458
VS
156532010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15654
15655 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15656 cursor shape for sanity.
15657
5b027690
VS
156582010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15659
15660 * docs/grub.texi (Installation): Document buggy BIOS install.
15661
ba5f65cf
VS
156622010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15663
15664 * docs/grub.texi (Installation): Indent.
15665
fdf2ec9c
VS
156662010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15667
15668 * util/grub-setup.c (setup): New parameter allow_floppy.
15669 (arguments): New member allow_floppy.
15670 (argp_parser): Handle --allow-floppy.
15671 (main): Pass allow_floppy.
15672 * util/grub-install.in: New option --allow-floppy passed though to
15673 grub-setup.
15674
861dfd4c
VS
156752010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15676
15677 * util/grub-install.in: Handle partitionless disks.
15678
f77a8c24
VS
156792010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15680
15681 * util/grub-setup.c (setup): Don't clean blocklists before readability
15682 verfification.
15683
27d9ee32
VS
156842010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15685
15686 * docs/grub.texi (Installation): Document embedding zone. Remove
15687 obsolete grub-install example.
15688
6bdda8f8
SJ
156892010-10-16 Szymon Janc <szymon@janc.net.pl>
15690
15691 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15692 Set-but-not-used variable ifdef'ed.
15693 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15694 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15695 variable removed.
15696 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15697 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15698 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15699 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15700 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15701 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15702 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15703 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15704 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15705 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15706 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15707 Likewise.
15708
e19b016b
VS
157092010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15710
15711 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15712 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15713 enum value.
15714
6c8d3002
VS
157152010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15716
15717 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15718 synonym to _S5_. Needed for some DSDTs.
15719
c32b51c9
VS
157202010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15721
15722 Userspace ACPI parser debugging.
15723
15724 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15725 headers and add relevant defines. Don't include standard headers.
15726 (main) [GRUB_DSDT_TEST]: New function.
15727 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15728 Don't declare functions.
15729
fbfbeb39
VS
157302010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15731
15732 Remove dead grub_efi_mm_fini.
15733
15734 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15735 (ALLOCATED_PAGES_SIZE): Likewise.
15736 (MAX_ALLOCATED_PAGES): Likewise.
15737 (allocated_pages): Likewise.
15738 (grub_efi_allocate_pages): Don't record allocated pages.
15739 (grub_efi_free_pages): Likewise.
15740 (grub_efi_mm_init): Likewise.
15741 (grub_efi_mm_fini): Removed.
15742
65f7ed7c
VS
157432010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15744
15745 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15746 (grub_efi_mm_init): Take into account the memory map size increase.
15747
24977b44
VS
157482010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15749
15750 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15751 (serial_hw_put): Wait based on real time rather than port reads. Don't
15752 roken ports.
15753 * include/grub/serial.h (grub_serial_port): New field broken.
15754
1eb01cd2
RM
157552010-10-16 Robert Millan <rmh@gnu.org>
15756
15757 * grub-core/kern/emu/misc.c
15758 (grub_make_system_path_relative_to_its_root): Fix premature return
15759 when processing non-root ZFS filesystems.
5f8b440b 15760 Reported by Sergio Talens-Oliag.
1eb01cd2 15761
2d5fed60
RM
157622010-10-15 Robert Millan <rmh@gnu.org>
15763
15764 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15765 guarantee compressed ones are processed first.
15766
d0f4c1ea
VS
157672010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15768
15769 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15770 grub_efiemu_autocore.
15771
d87c681f
VS
157722010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15773
15774 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15775 rather than 0x1b.
15776 (grub_console_getkey): Use correct jae opcode rather than ja.
15777
219b3564
RM
157782010-10-12 Robert Millan <rmh@gnu.org>
15779
15780 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15781 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15782 variable. All references updated.
15783
15784 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15785
20c6bb7e
VS
157862010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15787
15788 Correctly distinguish mdraid flavours.
15789
15790 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15791 (insert_array): New argument raid.
15792 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15793 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15794 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15795
74baff84
VS
157962010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15797
15798 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15799 handling of special keys.
15800
3ef068df 158012010-10-02 Aleš Nesrsta <starous@volny.cz>
15802
c7980ad9
VS
15803 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15804 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 15805
a9455194 158062010-10-02 Aleš Nesrsta <starous@volny.cz>
15807
c7980ad9
VS
15808 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15809 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15810 users updated.
a9455194 15811 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 15812 Use right endpoint when querying descriptor.
a9455194 15813
441cfe65
VS
158142010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15815
15816 Clear out 0x80 color bit on EFI.
15817 Tested by: decoder
15818 Reported by: decoder and meta tech.
15819
15820 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15821 (grub_console_setcolorstate): Clear out 0x80 bit.
15822 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15823 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15824 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15825
bf26bcc4
VS
158262010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15827
15828 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15829 Set to "auto".
15830
6e3c515d
VS
158312010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15832
15833 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15834 mo_file after freeing.
15835
e6d983ba
VS
158362010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15837
15838 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15839
74ccb5b5
VS
158402010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15841
15842 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15843 flags.
15844
17821956
VS
158452010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15846
15847 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15848 usage.
15849
ee74fa48
VS
158502010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15851
15852 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15853
15854 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15855 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15856 and terminfo.h when needed.
15857 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15858 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15859 (terminfo): Enable only on terminfokernel.
15860 (extcmd): Likewise.
15861 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15862 * include/grub/lib/arg.h: Likewise.
15863 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15864 incorrect usage of ->.
15865
aa438e68
VS
158662010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15867
15868 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15869 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15870
57994012
VS
158712010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15872
15873 Fix coreboot compilation.
15874
15875 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15876 Take VBE info into account even if only text is supported.
15877 (fill_vbe_info): Take into account the case when only VGA text
15878 is supported.
15879 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15880 on coreboot, multiboot and qemu.
15881
2a406611
VS
158822010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15883
15884 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15885 debug messages.
15886 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15887
d33613fc
VS
158882010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15889
15890 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15891 parameters.
15892
44a1b432
VS
158932010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15894
15895 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15896 if they were BSD-style.
15897
edde54e6
VS
158982010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15899
15900 * grub-core/boot/i386/pc/lnxboot.S: Replace
15901 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15902 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15903
b65830fa
VS
159042010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15905
15906 Write embedding zone using Reed-Solomon.
15907
15908 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15909 * grub-core/Makefile.am (rs_decoder.S): New target.
15910 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15911 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15912 (multiboot): Move to RS part.
15913 (post_reed_solomon): New label.
15914 (grub_boot_drive): Move to non-RS part since it's modified in memory
15915 on boot.
15916 Include rs_decoder.S.
15917 * grub-core/lib/reed_solomon.c: New file.
15918 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15919 New definition.
15920 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15921 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15922 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15923 * include/grub/partition.h (grub_partition_map): Change prototype of
15924 embed to allow returning additional sectors.
15925 * include/grub/reed_solomon.h: New file.
15926 * util/grub-setup.c (setup): Handle Reed-Solomon.
15927
0b4b227f
CW
159282010-09-28 Colin Watson <cjwatson@ubuntu.com>
15929
15930 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15931 i386 and x86-64 definedness tests.
15932
f772623b
YB
159332010-09-27 Yves Blusseau <blusseau@zetam.org>
15934
15935 Fix generation of kernel_syms.lst
15936
15937 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15938 ASM_PREFIX
15939
8e57a6ca
RM
159402010-09-26 Robert Millan <rmh@gnu.org>
15941
15942 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15943
15944 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15945 the pool is an array of devices, iterate through it and return the
15946 first device that passes a stat() test (instead of blindly returning
15947 the first one).
15948
f9130836
RM
159492010-09-26 Robert Millan <rmh@gnu.org>
15950
15951 Build fixes for GNU/kFreeBSD.
15952
15953 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15954 to programs that require ZFS conversion.
15955 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15956 kernels that don't have FLOPPY_MAJOR.
15957
96510faf
BC
159582010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15959
15960 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15961
449333eb
BC
159622010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15963
15964 Fix grub-emu build.
15965
15966 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15967 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15968 mdraid09 and mdraid1x.
15969
e1fd1939
CW
159702010-09-24 Colin Watson <cjwatson@ubuntu.com>
15971
15972 Re-enable grub-extras.
15973
15974 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15975 avoid confusing Automake. Run autogen only twice, once for the top
15976 level and once for grub-core. Add Makefile.util.def and
15977 Makefile.core.def from extra modules to the appropriate autogen
15978 invocations. If Makefile.common exists in an extra module, include
15979 it in both Makefile.util.am and grub-core/Makefile.core.am;
15980 similarly, include any Makefile.util.common file in Makefile.util.am
15981 and any Makefile.core.common file in grub-core/Makefile.core.am.
15982 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15983 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15984 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15985 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15986
15987 * gentpl.py (gvar_add): Turn GVARS into a set.
15988 (global_variable_initializers): Sort global variables on output.
15989 (vars_init): New function.
15990 (first_time): Likewise.
15991 (library): Ensure that non-global variable initialisations are
15992 emitted before the first time we emit code for a library block.
15993 Append to variables rather than setting them. Only emit
15994 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15995 each conditional path.
15996 (program): installdir() emits an Autogen macro, so must be passed to
15997 var_add rather than gvar_add.
15998 (data): Likewise.
15999 (script): Likewise.
16000 (rules): New function, centralising handling for different target
16001 types. Set up Guile association lists for first_time and vars_init,
16002 and send most output to a diversion so that variable initialisations
16003 can be emitted first.
16004 (module_rules): Use new rules function.
16005 (kernel_rules): Likewise.
16006 (image_rules): Likewise.
16007 (library_rules): Likewise.
16008 (program_rules): Likewise.
16009 (script_rules): Likewise.
16010 (data_rules): Likewise.
16011
16012 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
16013
16014 * .bzrignore: Add contrib and grub-core/contrib. Remove
16015 grub-core/Makefile.gcry.am.
16016
1d12cf29
YB
160172010-09-24 Yves Blusseau <blusseau@zetam.org>
16018
16019 * grub-core/lib/LzFind.c: Add missing include.
16020 * grub-core/lib/LzmaEnc.c: Likewise.
16021 * grub-core/script/lexer.c: Likewise.
16022 * grub-core/script/yylex.l: Likewise.
16023 * util/grub-macho2img.c: Likewise.
16024 * util/grub-menulst2cfg.c: Likewise.
16025 * util/grub-mklayout.c: Likewise.
16026 * util/grub-mkpasswd-pbkdf2.c
16027 * util/grub-mkrelpath.c: Likewise.
16028 * util/resolve.c: Likewise.
16029
dd363028
BC
160302010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
16031
16032 * Makefile.util.def (example_unit_test): Add
16033 grub-core/gnulib/libgnu.a.
16034
f5a109e2
GS
160352010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
16036
16037 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
16038
6d0fa83c
VS
160392010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
16040
16041 Support xz compression on yeeloong.
16042
16043 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
16044 * configure.ac: Check for LZMA.
16045 * grub-core/Makefile.core.def (xz_decompress): New target.
16046 (none_decompress): Likewise.
16047 * grub-core/boot/decompressor/minilib.c: New file.
16048 * grub-core/boot/decompressor/none.c: Likewise.
16049 * grub-core/boot/decompressor/xz.c: Likewise.
16050 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
16051 * grub-core/kern/mips/cache_flush.S: Likewise.
16052 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
16053 * grub-core/kern/mips/startup.S: Move first stage to ...
16054 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
16055 nomacro.
16056 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
16057 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
16058 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
16059 Allocate statically.
16060 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
16061 Allocate statically or use scratch. Don't check CRC32.
16062 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
16063 Allocate statically. Don't check CRC32.
16064 * include/grub/decompressor.h: New file.
16065 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
16066 Removed.
16067 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
16068 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
16069 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
16070 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
16071 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
16072 * util/grub-mkimage.c (grub_compression_t): New type.
16073 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
16074 (image_target_desc): New field default_compression.
16075 (image_targets): Adjust yeeloong targets.
16076 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
16077 (compress_kernel): New parameter comp.
16078 (generate_image): Likewise. Handle new compression case.
16079 (options): New option --compression
16080 (help): Likewise.
16081 (main): Handle new option.
16082
1b655af6
GS
160832010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
16084
16085 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
16086
8f03f0b5
CW
160872010-09-22 Colin Watson <cjwatson@ubuntu.com>
16088
16089 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16090 typo in __i386__ conditional.
16091
7835dfd3
VS
160922010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16093
16094 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
16095 include.
16096
e255597e
VS
160972010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16098
6d0fa83c 16099 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
16100
16101 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
16102 new tags as supported.
16103 (acpiv2_size): New function.
16104 (grub_multiboot_get_mbi_size): Take new tags into account.
16105 (grub_multiboot_make_mbi): Add new tags.
16106 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 16107
6cc14051 161082010-09-21 Aleš Nesrsta <starous@volny.cz>
16109
16110 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
16111 Added missing configuration of USB device.
16112
df7769d8
CW
161132010-09-21 Colin Watson <cjwatson@ubuntu.com>
16114
16115 * grub-core/normal/menu_entry.c (run): Make sure we always return
16116 a value.
16117
b031012d
CW
161182010-09-21 Colin Watson <cjwatson@ubuntu.com>
16119
16120 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
16121 NumberOfPages is UINT64 according to the UEFI specification, not
16122 UINTN. Fix printf format.
16123
174de8f3
CW
161242010-09-21 Colin Watson <cjwatson@ubuntu.com>
16125
16126 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
16127 `err' to grub_usb_err_t.
16128 Reported and tested by: KESHAV P.R.
16129
d7dbe923
CW
161302010-09-21 Colin Watson <cjwatson@ubuntu.com>
16131
16132 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
16133 tpart non-const, so that we can assign to it. (Since this is a
16134 typedef, the constness refers to the pointer rather than what it
16135 points to.)
16136
8d5e2af3
CW
161372010-09-21 Colin Watson <cjwatson@ubuntu.com>
16138
16139 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
16140 $(top_srcdir)/grub-core/gnulib as well as
16141 $(top_builddir)/grub-core/gnulib.
16142 Reported by: KESHAV P.R.
16143
5c527783
CW
161442010-09-21 Colin Watson <cjwatson@ubuntu.com>
16145
16146 * util/grub-install.in: Fix the bootloader ID option to be
16147 consistently --bootloader-id, not --bootloader_id.
16148 Reported by: KESHAV P.R.
16149
d309a16e
CW
161502010-09-21 Colin Watson <cjwatson@ubuntu.com>
16151
16152 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
16153 check hash checksum." consistently translatable.
16154
b830cd16
YB
161552010-09-21 Yves Blusseau <blusseau@zetam.org>
16156
16157 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
16158 $(top_builddir).
16159
c4fe27a8
CW
161602010-09-21 Colin Watson <cjwatson@ubuntu.com>
16161
16162 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
16163 (GRUB_MOD_INIT): Register sha1sum command.
16164 (GRUB_MOD_FINI): Unregister sha1sum command.
16165
a4c1d277
YB
161662010-09-21 Yves Blusseau <blusseau@zetam.org>
16167
16168 Keep boot and grub directory names in sync with utils scripts
16169
16170 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
16171 * config.h.in: Add previous macros.
16172 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
16173 * util/grub-install.in: Use $bootdir and $grubdir variables.
16174
4eff79d2
CW
161752010-09-21 Colin Watson <cjwatson@ubuntu.com>
16176
16177 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
16178 convert partition names to disk names if the new `convert' parameter
16179 is set.
16180 (grub_util_biosdisk_get_grub_dev): If opening the disk device
16181 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
16182 disk in its own right. This can happen with Xen disk images.
16183
934d7e44
YB
161842010-09-21 Yves Blusseau <blusseau@zetam.org>
16185
16186 * util/grub-editenv.c: Update strings to avoid warnings when generating
16187 grub.pot file.
16188 * util/grub-setup.c: Likewise.
934d7e44 16189
df3367cc
VS
161902010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16191
16192 * configure.ac: Change version to 1.99~beta0.
16193
77a94e98
VS
161942010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16195
16196 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
16197 Add BADRAM.
16198 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
16199 Likewise.
16200 * include/multiboot.h: Resynced with specification.
16201 * include/multiboot2.h: Likewise.
16202
269004c1
CW
162032010-09-21 Colin Watson <cjwatson@ubuntu.com>
16204
16205 Fix po directory handling.
16206
16207 * configure.ac: Create po/Makefile.in rather than po/Makefile.
16208 * grub-core/gnulib/Makefile.am: Import gettext module.
16209 * m4/gnulib-cache.m4: Likewise.
16210 * m4/gnulib-comp.m4: Likewise.
16211 * m4/gettext.m4: New file, from gnulib.
16212 * m4/glibc2.m4: Likewise.
16213 * m4/iconv.m4: Likewise.
16214 * m4/intdiv0.m4: Likewise.
16215 * m4/intl.m4: Likewise.
16216 * m4/intldir.m4: Likewise.
16217 * m4/intlmacosx.m4: Likewise.
16218 * m4/intmax.m4: Likewise.
16219 * m4/inttypes-pri.m4: Likewise.
16220 * m4/lcmessage.m4: Likewise.
16221 * m4/lib-ld.m4: Likewise.
16222 * m4/lib-link.m4: Likewise.
16223 * m4/lib-prefix.m4: Likewise.
16224 * m4/lock.m4: Likewise.
16225 * m4/nls.m4: Likewise.
16226 * m4/po.m4: Likewise.
16227 * m4/printf-posix.m4: Likewise.
16228 * m4/progtest.m4: Likewise.
16229 * m4/threadlib.m4: Likewise.
16230 * m4/uintmax_t.m4: Likewise.
16231 * m4/visibility.m4: Likewise.
16232 * po/Makefile.am: Remove.
16233 * po/Makefile.in.in: New file, from gettext.
16234 ($(DOMAIN).pot-update): Support POTFILES-shell.
16235 * po/Makevars: New file.
16236 * po/POTFILES-shell: Rename to ...
16237 * po/POTFILES-shell.in: ... this. Update.
16238 * po/POTFILES: Rename to ...
16239 * po/POTFILES.in: ... this. Update.
16240 * po/Rules-quot: New file, from gettext.
16241 * po/boldquot.sed: Likewise.
16242 * po/en@boldquot.header: Likewise.
16243 * po/en@quot.header: Likewise.
16244 * po/insert-header.sin: Likewise.
16245 * po/quot.sed: Likewise.
16246 * po/remove-potcdate.sin: Likewise.
16247
3e0fa5d0
VS
162482010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16249
16250 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
16251
ade9bd66
VS
162522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16253
16254 * util/grub.d/20_linux_xen.in: Use submenus.
16255
fc55cc4c
VS
162562010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16257
16258 Support submenus.
16259
16260 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
16261 parameter submenu. All users updated.
16262 * grub-core/normal/main.c (free_menu): Rename to ...
16263 (grub_normal_free_menu): ... this. Made global.
16264 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
16265 if requested.
16266 * grub-core/normal/menu_entry.c (screen): New field submenu.
16267 (make_screen): Set submenu.
16268 (run): Open new context if requested.
16269 * include/grub/menu.h (grub_menu_entry): New field submenu.
16270 * include/grub/normal.h (grub_normal_free_menu): New proto.
16271
600cedf7
VS
162722010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16273
16274 Menu entries extractor.
16275
16276 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16277 variants.
16278 (GRUB_MOD_INIT): Register new variants.
16279 (GRUB_MOD_FINI): Unregister new variants.
16280 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16281 into grub_cmd_legacy_source.
16282 (grub_cmd_legacy_source): Implement extractor variants.
16283 (GRUB_MOD_INIT): Register new variants.
16284 (GRUB_MOD_FINI): Unregister new variants.
16285 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16286 as an extractor.
16287 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16288 search as an extractor.
16289 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16290 test as an extractor.
16291 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16292 as an extractor.
16293 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16294 (grub_env_new_context): New function.
16295 (grub_env_context_open): Likewise.
16296 (grub_env_extractor_open): Likewise.
16297 (grub_env_extractor_close): Likewise.
16298 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16299 grub_extractor_level.
16300 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16301 * include/grub/env.h (grub_env_extractor_open): New proto.
16302 (grub_env_extractor_close): Likewise.
16303 * include/grub/normal.h (grub_extractor_level): New external variable.
16304
7bda3a87
VS
163052010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16306
16307 Make cutmem accept a region specification.
16308 Suggested by: Samuel Thibault
16309
16310 * grub-core/mmap/mmap.c (parsemem): New function.
16311 (grub_cmd_cutmem): Handle new arguments.
16312
2ea57f88
VS
163132010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16314
16315 New command cutmem.
16316
16317 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16318 (GRUB_MOD_INIT): Register new command.
16319 (GRUB_MOD_FINI): Unregister new command.
16320
74342e31
VS
163212010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16322
16323 Support some annoying BSD and Minix subpartitions.
16324
16325 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16326 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16327 Properly handle concatenation.
16328 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16329 * grub-core/normal/completion.c (iterate_partition): Likewise.
16330 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16331 contain partition. All users updated.
16332 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16333 struct.
16334 (grub_openbsdlabel_partition_map): Likewise.
16335 (bsdlabel_partition_map_iterate): Rename to ..
16336 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16337 (bsdlabel_partition_map_iterate): New function.
16338 (netopenbsdlabel_partition_map_iterate): Likewise.
16339 (netbsdlabel_partition_map_iterate): Likewise.
16340 (openbsdlabel_partition_map_iterate): Likewise.
16341 (GRUB_MOD_INIT): Register new partmaps.
16342 (GRUB_MOD_FINI): Unregister new partmaps.
16343 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16344 (grub_partition_msdos_iterate): ... this. All users updated.
16345 Don't support embedding other than in a minix partition.
16346 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16347 proto.
16348 * include/grub/partition.h (grub_partition): New field msdostype.
16349 * util/grub-install.in: Handle openbsd and netbsd types being in
16350 part_bsd module.
16351
1e8d555b
VS
163522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16353
16354 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16355
16356 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16357 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16358 (mdraid09): ... this.
16359 (mdraid1x): New module.
16360 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16361 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16362
899d8af4
VS
163632010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16364
16365 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16366 vsprintf.
16367
40901acd
CW
163682010-09-20 Colin Watson <cjwatson@ubuntu.com>
16369
16370 * grub-core/commands/efi/lsefimmap.c: Correct header.
16371 * NEWS: Update.
16372
dfe3b247
CW
163732010-09-20 Colin Watson <cjwatson@ubuntu.com>
16374
16375 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16376 as printf format strings; the translations might contain '%' which
16377 could cause a crash.
16378 (main): Likewise.
16379 * util/grub-fstest.c (argp_parser): Likewise.
16380 * util/grub-setup.c (argp_parser): Likewise.
16381 (main): Likewise.
16382
3286a4b4
VS
163832010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16384
16385 Use argp in grub-fstest.
16386
16387 * util/grub-fstest.c: Don't include getopt.h.
16388 Include argp.h.
16389 (root): New variable.
16390 (args_count): Likewise.
16391 (nparm): Likewise.
16392 (num_disks): Likewise.
16393 (images): Likewise.
16394 (cmd): Likewise.
16395 (debug_str): Likewise.
16396 (args): Likewise.
16397 (options): Transformed to argp.
16398 (usage): Removed.
16399 (main): Split argument parsing into ...
16400 (argp_parser): ... this. Changed to argp format.
16401 (argp): New variable.
16402 (main): Use argp_parse.
16403
3dccbe4b
TG
164042010-09-20 Tristan Gingold <gingold@free.fr>
164052010-09-20 Robert Millan <rmh.grub@aybabtu.com>
164062010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16407
16408 * grub-core/commands/efi/lsefimmap.c: New file.
16409 * grub-core/Makefile.core.def (lsefimmap): New module.
16410 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16411
38c259a7
VS
164122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16413
16414 Pause the execution (10s max) if any errors are displayed so the user
16415 has a chance to see them.
16416
16417 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16418 (grub_print_error): Increment grub_err_printed_errors.
16419 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16420 execution if any errors were displayed.
16421 (show_menu): Remove old code for pause.
16422 * grub-core/normal/menu_entry.c (run): Likewise.
16423 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16424 users updated.
16425 (grub_normal_get_char_counter): Likewise.
16426 * include/grub/err.h (grub_err_printed_errors): New external variable.
16427 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16428
f218b09c
VS
164292010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16430
16431 Support multiboot VBE info.
16432
16433 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16434 Take VBE info into account.
16435 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16436 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16437 Call fill_vbe_info when appropriate.
16438 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16439 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16440 as supported.
16441 (grub_multiboot_get_mbi_size): Take new tags into account.
16442 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16443 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16444 Call fill_vbe_tag when appropriate.
16445 (grub_multiboot_make_mbi): Properly align tags.
16446 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16447 function.
16448 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16449 proto.
16450 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16451
a9cc5438
VS
164522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16453
16454 Suport manual terminal geometry specification.
16455
16456 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16457 Save state in grub_ofconsole_terminfo_output.
16458 (grub_ofconsole_term): Use grub_terminfo_getwh.
16459 (grub_ofconsole_getwh): Removed.
16460 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16461 (grub_serial_term): Use grub_terminfo_getwh.
16462 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16463 (options): New struct.
16464 (OPTION_*): New enum.
16465 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16466 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16467 width and height.
16468 (grub_terminfo_getwh): New proto.
16469 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16470
1a8fed20
VS
164712010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16472
16473 Handle legacy "terminal" command.
16474
16475 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16476 and FLAG_TERMINAL.
16477 (legacy_commands): Add terminal and title.
16478 (grub_legacy_parse): Handle terminal. Simplify title handling.
16479
41e9c57d
VS
164802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16481
16482 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16483 parameters overflow.
16484
61c874c5
CW
164852010-09-20 Colin Watson <cjwatson@ubuntu.com>
16486
16487 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16488 widthspec.h.
16489
16490 * docs/grub.texi (Shell-like scripting): Document `!'.
16491 (Network): Simplify using new i386-pc-pxe format. Mention
16492 grub-mknetdir.
16493
16494 * NEWS: Update.
16495
943682b4
CW
164962010-09-20 Colin Watson <cjwatson@ubuntu.com>
16497
16498 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16499 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16500 when needed.
16501
6d3d698d
CW
165022010-09-20 Colin Watson <cjwatson@ubuntu.com>
16503
16504 * grub-core/commands/efi/lsefisystab.c: Correct header.
16505 * grub-core/commands/efi/lssal.c: Likewise.
16506 * grub-core/commands/testload.c: Likewise.
16507
c982589f
CW
165082010-09-20 Colin Watson <cjwatson@ubuntu.com>
16509
16510 * util/grub-mkrescue.in: Add explicit root argument to --set to
16511 prevent the UUID being interpreted as an argument to --set (matches
16512 previous change to prepare_grub_to_access_device).
16513
a63c31b6
CW
165142010-09-20 Colin Watson <cjwatson@ubuntu.com>
16515
16516 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16517 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16518 the verbosity of later #ifs.
16519 (find_partition_start): Define this function on FreeBSD too.
16520 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16521 function.
16522 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16523 on FreeBSD.
16524
6439b8ee
YB
165252010-09-20 Yves Blusseau <blusseau@zetam.org>
16526
16527 * util/grub-editenv.c: Use argp instead of getopt.
16528
c5930ec8
YB
165292010-09-20 Yves Blusseau <blusseau@zetam.org>
16530
16531 * util/grub-setup.c: Use argp instead of getopt.
16532
15c69261
YB
165332010-09-20 Yves Blusseau <blusseau@zetam.org>
16534
16535 Use gnulib-tool to create gnulib source files.
16536
16537 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16538 grub-core/gnulib directories
16539 * .bzignore: Add **/.deps and autogenerated gnulib files
16540 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16541 of gnulib macros, add grub-core/gnulib/Makefile
16542 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16543 include m4 directory to aclocal.
16544 * Makefile.util.def: Remove direct compilation of gnulib source files
16545 and use the new grub-core/gnulib/libgnu.a.
16546 * build-aux/config.rpath: move config.rpath from top directory to
16547 build-aux
16548 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16549 in gnulib headers
16550 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16551 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16552 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16553 header.
16554 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16555 string.
16556
e511c9f5
YB
165572010-09-20 Yves Blusseau <blusseau@zetam.org>
16558
16559 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16560 grub-core/genmod.sh and grub-core/gensyminfo.sh
16561
c2dede05
BC
165622010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16563
16564 Add a test for echo command options.
16565
16566 * tests/grub_cmd_echo.in: New test.
16567 * Makefile.util.def: Rules for new test.
16568
c55f5018
SJ
165692010-09-20 Szymon Janc <szymon@janc.net.pl>
16570
16571 Remove crc.mod and move crc command to hashsum.mod.
16572 Remove lib/crc.c - users updated to use gcrypt implementation.
16573
16574 * grub-core/commands/crc.c: Removed.
16575 * grub-core/Makefile.core.def (crc): Module removed.
16576 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16577 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16578 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16579 * grub-core/lib/crc.c: Removed.
16580 * include/grub/lib/crc.h: Removed.
16581 * Makefile.util.def (crc): Remove lib/crc.c
16582 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16583 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16584 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16585 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16586 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16587 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16588
e0337366
VS
165892010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16590
16591 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16592
742f9232
VS
165932010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16594
16595 Split config.h for util and core.
16596
16597 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16598 (ADDR32): Likewise.
16599 (DATA32): Likewise.
16600 (BSS_START_SYMBOL): Likewise.
16601 (END_SYMBOL): Likewise.
16602 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16603 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16604 * config.h.in: New file.
16605 * configure.ac: Use config-util.h as config define file.
16606 Rename MACHINE into GRUB_MACHINE. All users updated.
16607 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16608 updated.
16609 (NESTED_FUNC_ATTR): Likewise.
16610 Substitue new variables.
16611 (COND_HAVE_ASM_USCORE): New conditional.
16612 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16613 (kernel_syms.lst): Use ASM_PREFIX.
16614 * grub-core/kern/emu/console.c: Include config-util.h.
16615 * grub-core/kern/emu/misc.c: Likewise.
16616 * grub-core/kern/emu/mm.c: Likewise.
16617 * include/grub/emu/misc.h: Likewise.
16618 * include/grub/libgcc.h: Likewise.
16619
39feb0e8
VS
166202010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16621
16622 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16623 constants usage.
16624 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16625 Fix GRUB_TERM_KEY_* constants usage.
16626 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16627
9af6dac3
VS
166282010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16629
16630 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16631 print pointer.
16632 * grub-core/bus/usb/uhci.c: Remove empty define.
16633 (grub_uhci_check_transfer): Add missing cast.
16634 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16635 print pointer.
16636 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16637 PRIuGRUB_SIZE.
16638 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16639
d6d94820
VS
166402010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16641
16642 * grub-core/Makefile.core.def (legacycfg): Add
16643 lib/i386/pc/vesa_modes_table.c on emu.
16644
3572f2b6
BC
166452010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16646
16647 Reduce number of temporary files generated by build system.
16648
16649 * grub-core/gencmdlist.sh: Removed.
16650 * grub-core/genfslist.sh: Removed.
16651 * grub-core/genhandlerlist.sh: Removed.
16652 * grub-core/genmodsrc.sh: Removed.
16653 * grub-core/genpartmaplist.sh: Removed.
16654 * grub-core/genparttoollist.sh: Removed.
16655 * grub-core/gentermiinallist.sh: Removed.
16656 * grub-core/genvideolist.sh: Removed.
16657
16658 * grub-core/genmod.sh.in: New file.
16659 * grub-core/gensyminfo.sh.in: New file.
16660
16661 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16662 * conf/Makefile.extra-dist: Update with new files.
16663 * gentpl.py: Remove rules related to unnecessary temporary files.
16664 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16665 and und-* files.
16666 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16667 genmod.sh scripts.
16668 * grub-core/bus/usb/uhci.c: Remove empty #define.
16669 * grub-core/genmoddep.awk: Updated with new syminfo format.
16670 * util/bash-completion.d/Makefile.am: Add config.log to
16671 CLEANFILES.
16672
c836b030
YB
166732010-09-19 Yves Blusseau <blusseau@zetam.org>
16674
16675 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16676
2f4e8053
BC
166772010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16678
16679 * util/grub-mkconfig.in: Check the config script for syntax errors
16680 before saving.
16681
75831c34
CW
166822010-09-19 Colin Watson <cjwatson@ubuntu.com>
166832010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16684
16685 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16686 platforms.
16687 * util/grub-install.in: Add EFI and IEEE1275 support.
16688 * util/i386/efi/grub-install.in: Removed.
16689 * util/ieee1275/grub-install.in: Likewise.
16690
eaf41b25
VS
166912010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16692
16693 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16694 (grub_cmd_cmosclean): Likewise.
16695 (GRUB_MOD_INIT): Register command cmosclean.
16696 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16697 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16698
1a9130dd
CPE
166992010-09-18 Carles Pina i Estany <carles@pina.cat>
167002010-09-18 Aleš Nesrsta <starous@volny.cz>
167012010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16702
16703 Add keyboard layouts support.
16704
16705 * Makefile.util.def (grub-mklayout): New file.
16706 (grub-kbdcomp): New script.
16707 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16708 Add keyboard_layouts.h.
16709 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16710 commands/boot.c on yeeloong.
16711 (keylayouts): New module.
16712 * grub-core/bus/usb/ohci.c
16713 * grub-core/bus/usb/uhci.c
16714 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16715 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16716 (attach_root_port): Likewise.
16717 (poll_nonroot_hub): Likewise.
16718 (grub_usb_poll_devices): Likewise.
16719 (detach_device): Close transfer.
16720 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16721 function.
16722 (grub_usb_bulk_setup_readwrite): Likewise.
16723 (grub_usb_bulk_finish_readwrite): Likewise.
16724 * grub-core/commands/keylayouts.c: New file.
16725 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16726 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16727 aliases.
16728 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16729 support scancode 2.
16730 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16731 * include/grub/keyboard_layouts.h: New file.
16732 * util/grub-mklayout.c: New file.
16733 * util/grub-kbdcomp.in: Likewise.
16734
a1d84a5e
VS
167352010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16736
16737 Unify memory types.
16738
16739 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16740 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16741 types.
16742 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16743 (grub_upper_mem): Likewise.
16744 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16745 * include/grub/memory.h (grub_memory_type_t): New enum.
16746 All users updated.
16747
9696382e
VS
167482010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16749
16750 * grub-core/Makefile.core.def (lsapm): New module.
16751 * grub-core/commands/i386/pc/lsapm.c: New file.
16752 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16753 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16754 Likewise.
16755 * include/grub/i386/pc/apm.h: New file.
16756 * include/multiboot.h (multiboot_apm_info): New struct.
16757
167582010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16759
16760 GRUB-legacy configuration file support.
16761
16762 * Makefile.util.def (grub-menulst2cfg): New util.
16763 * docs/man/grub-menulst2cfg.h2m: New file.
16764 * grub-core/Makefile.core.def (legacycfg): New module.
16765 * grub-core/commands/legacycfg.c: New file.
16766 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16767 (grub_normal_add_menu_entry): ... this.
16768 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16769 (grub_normal_set_password): ...this.
16770 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16771 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16772 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16773 * grub-core/lib/legacy_parse.c: New file.
16774 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16775 * include/grub/i386/pc/vesa_modes_table.h: New file.
16776 * include/grub/legacy_parse.h: Likewise.
16777 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16778 * util/grub-menulst2cfg.c: New file.
16779
bf8d1338
CW
167802010-09-17 Colin Watson <cjwatson@ubuntu.com>
16781
16782 * grub-core/kern/emu/hostdisk.c
16783 (convert_system_partition_to_system_disk): Initialise node.
16784
9c0bad2e
CW
167852010-09-17 Colin Watson <cjwatson@ubuntu.com>
16786
16787 * grub-core/kern/emu/hostdisk.c
16788 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16789 leak.
16790 Reported and based on patch by: Modestas Vainius.
16791
a939d135
CW
167922010-09-17 Colin Watson <cjwatson@ubuntu.com>
16793
16794 Fix DM-RAID probing with recent versions of device-mapper udev
16795 rules.
16796
16797 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16798 canonicalise device paths under /dev/mapper/.
16799 (convert_system_partition_to_system_disk): Compare the
16800 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16801 path, since device nodes under /dev/mapper/ are often symlinks.
16802
0f7ee3c9
YB
168032010-09-17 Yves Blusseau <blusseau@zetam.org>
16804
16805 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16806
10854d0d
YB
168072010-09-16 Yves Blusseau <blusseau@zetam.org>
16808
16809 * configure.ac: Avoid some annoying error messages if freetype-config
16810 program is not found.
16811
108538d8
CW
168122010-09-16 Colin Watson <cjwatson@ubuntu.com>
16813
16814 Support RAID on virtio devices, and others.
16815
16816 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16817 Rename to ...
16818 [__MINGW32__] (grub_find_device): ... this.
16819 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16820 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16821 reasonable default if dir is NULL.
16822 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16823 ...
16824 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16825 (grub_guess_root_device): Update callers.
16826 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16827
16828 * util/raid.c (grub_util_getdiskname): Remove.
16829 (grub_util_raid_getmembers): Use grub_find_device rather than
16830 grub_util_getdiskname.
16831
e5bfc130
CW
168322010-09-16 Colin Watson <cjwatson@ubuntu.com>
16833
16834 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16835 needing to be compiled with serial support.
16836 (ls): Indicate that multiple files are accepted.
16837 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16838 indicate that multiple files are accepted.
16839
be458ae2
CW
168402010-09-16 Colin Watson <cjwatson@ubuntu.com>
16841
16842 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16843 libgrub_a_init.c, and util/bash-completion.d/grub.
16844
cb731b5e
VS
168452010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 * util/grub-setup.c (setup): Fix incorrect container semantics.
16848
35139e8a
VS
168492010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16850
16851 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16852 misusage.
16853 Reported by: J. Nick Terry
16854
e50fca4a
VS
168552010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 Move embedding routines to partmap sources files.
16858
16859 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16860 [GRUB_UTIL]: New variable.
16861 (gpt_partition_map_iterate): Set part.parent.
16862 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16863 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16864 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16865 New function.
16866 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16867 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16868 (grub_partition_map) [GRUB_UTIL]: New field embed.
16869 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16870 (setup): Use ->embed.
16871
f00478b7
VS
168722010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16873
16874 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16875 function.
16876 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16877 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16878
2b94e3ff
YB
168792010-09-15 Yves Blusseau <blusseau@zetam.org>
16880
16881 Add function to get completions from usage.
16882
16883 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16884 completions from usage. Use LC_ALL=C to get options properly.
16885
2e04a006
VS
168862010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16887
16888 * grub-core/gnulib/basename-lgpl.c: Imported.
16889 * grub-core/gnulib/basename.c: Likewise.
16890 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16891 * grub-core/gnulib/dirname.c: Likewise.
16892 * grub-core/gnulib/dirname.h: Likewise.
16893 * grub-core/gnulib/stripslash.c: Likewise.
16894
5dcdf93a
VS
168952010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16896
16897 * grub-core/gnulib/error.c: Resynced.
16898 * grub-core/gnulib/getopt.c: Likewise.
16899 * grub-core/gnulib/getopt_int.h: Likewise.
16900 * grub-core/gnulib/regex.h: Likewise.
16901 * grub-core/gnulib/regex_internal.c: Likewise.
16902 * grub-core/gnulib/regex_internal.h: Likewise.
16903
014f47b7
SJ
169042010-09-15 Szymon Janc <szymon@janc.net.pl>
16905
16906 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16907 CRC calculations and validity checks.
16908 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16909 calculations.
16910
dd521a4a
SJ
169112010-09-15 Szymon Janc <szymon@janc.net.pl>
16912
16913 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16914
79c4eeb9
VS
169152010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16916
16917 Fix incorrect echo options handling.
16918 Reported by: Yves Blusseau.
16919
16920 * include/grub/command.h (grub_command_flags_t): New flags
16921 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16922 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16923 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16924
ed80f7d5
VS
169252010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16926
16927 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16928 users updated.
16929 (GRUB_COMMAND_FLAG_MENU): Likewise.
16930 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16931 (GRUB_COMMAND_FLAG_TITLE): Removed.
16932 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16933 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16934 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16935 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16936 (grub_command_flags_t): New enum. All users updated.
16937
5fe7620a
SG
169382010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16939
16940 Fix solaris compilation.
16941
16942 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16943 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16944 (grub-emu-list): Likewise.
16945
545b752f
VS
169462010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16947
16948 Remove deprecated root command.
16949
16950 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16951 updated.
16952
6c1a338c
VS
169532010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16954
16955 * util/i386/pc/grub-setup.c: Merge this ...
16956 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16957 * util/grub-setup.c: ... into this.
16958 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16959 New struct.
16960
169612010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16962
16963 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16964 possible.
16965
d2ea4551
VS
169662010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16967
16968 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16969 allocate p.
16970
3c3b5040
VS
169712010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16972
16973 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16974 explicit root argument to set to prevent UUID to be interpreted as
16975 argument to set.
16976
b71c3fae
VS
169772010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16978
16979 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16980
275433e6
VS
169812010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16982
16983 Don't export grub_gate_a20.
16984
16985 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16986 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16987 to ...
16988 (grub_gate_a20): ... this. All users updated.
16989 * include/grub/i386/pc/init.h: Removed. All users updated.
16990
a5dbb1f1
VS
169912010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16992
16993 Create euro.pf2 which supports most European languages.
16994
16995 * Makefile.am (grubdata_DATA): Add euro.pf2.
16996 (euro.pf2): New target.
16997 (CLEANFILES): Add euro.pf2.
16998
62a747cb
VS
169992010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17000
17001 * configure.ac: Disable emu-usb by default to prevent inadvertent
17002 device takeover.
17003
608e43b1
VS
170042010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17005
17006 Disable usbserial on grub-emu since our libusb code isn't good enough
17007 yet.
17008
17009 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
17010 (usbserial_pl2303): Likewise.
17011 (usbserial_ftdi): Likewise.
17012
94564f81
VS
170132010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17014
17015 * include/grub/disk.h (grub_disk): Remove has_partitions.
17016 All users updated.
17017 * disk/loopback.c (grub_loopback): Remove has_partitions.
17018 All users updated.
17019 (options): Remove partitions. All users updated.
17020 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
17021 * util/i386/pc/grub-setup.c (setup): copy partition table only when
17022 actual partition table is found.
17023
3352800b
VS
170242010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17025
17026 Remove readability checks (too many false negatives).
17027
17028 * util/grub-install.in: Remove readability checks.
17029 * util/grub-mkconfig.in: Likewise.
17030 * util/grub.d/10_hurd.in: Likewise.
17031 * util/grub.d/10_kfreebsd.in: Likewise.
17032 * util/grub.d/10_linux.in: Likewise.
17033 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
17034 way.
17035
2419f17a
VS
170362010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17037
17038 Enable acpi shutdown on all ACPI platforms.
17039
17040 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
17041 on coreboo, multiboot and EFI.
17042 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
17043 (grub_acpi_halt): Likewise.
17044 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
17045 (grub_cmd_halt): Don't call grub_acpi_halt directly.
17046 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
17047 * grub-core/lib/i386/halt.c (grub_halt)
17048 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
17049
0575c7c3
VS
170502010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17051
17052 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
17053 context.
17054
54ac3cd1
VS
170552010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17056
17057 * grub-core/video/efi_gop.c: Fix over-80-chars line.
17058 * grub-core/video/efi_uga.c: Likewise.
17059
b2a30ac5
VS
170602010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17061
17062 Filter devaliases and never open same device twice.
17063
17064 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
17065 (last_ihandle): Likewise.
17066 (ofdisk_hash_ent): New member shortest.
17067 (ofdisk_hash_add): Add canonical path too.
17068 (scan): New function.
17069 (grub_ofdisk_iterate): Iterate over hashed entries.
17070 (compute_dev_path): Don't add :0.
17071 (grub_ofdisk_open): Don't really open the disk.
17072 (grub_ofdisk_close): Avoid closing unrelated disk.
17073 (grub_ofdisk_read): Implement reopen logic.
17074 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
17075 New function.
17076 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
17077 New proto.
17078
fb53b340
VS
170792010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17080
17081 Fix sparc64.
17082
17083 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
17084 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
17085 right address. Add sparc64_ieee1275_ldflags.
17086 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
17087 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
17088 to grub_host_to_target_addr
17089 (load_image): Likewise.
17090
f452b040
VS
170912010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17092
17093 * grub-core/normal/completion.c (complete_file): Handle device
17094 containing slash.
17095 Fix based on patch by Doug Nazar.
17096
9b5b2541
VS
170972010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17098
17099 grub-mknetdir script.
17100
17101 * Makefile.util.def (grub-mknetdir): New module.
17102 * tests/util/grub-shell.in: Support boot=net
17103 * util/grub-mknetdir.in: New file.
17104
9d2be652
VS
171052010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17106
17107 videoinfo on non-vbe.
17108
17109 * grub-core/Makefile.core.def (vbeinfo): Removed.
17110 (vbetest): Removed.
17111 (videoinfo): New module.
17112 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
17113 * grub-core/commands/i386/pc/vbetest.c: Removed.
17114 * grub-core/commands/videoinfo.c: New file.
17115 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
17116 specification.
17117 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
17118 as vbetest.
17119 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
17120 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
17121 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
17122 mode_number. New parameter mode. All users updated.
17123 (grub_video_gop_iterate): New function.
17124 (grub_video_efi_gop): New member iterate.
17125 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
17126 (grub_vbe_set_video_mode): Remove setting useless fields.
17127 (vbe2videoinfo): New function.
17128 (grub_video_vbe_iterate): Likewise.
17129 (grub_video_vbe_setup): Use vbe2videoinfo.
17130 (grub_video_vbe_print_adapter_specific_info): New function.
17131 (grub_video_vbe_adapter): New fields iterate and
17132 print_adapter_specific_info.
17133 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
17134 All users updated.
17135 (grub_video_mode_info): New field mode_number.
17136 (grub_video_adapter): New fields iterate and
17137 print_adapter_specific_info.
17138
179503f5
TG
171392010-09-13 Tristan Gingold <gingold@free.fr>
171402010-09-13 Robert Millan <rmh.grub@aybabtu.com>
171412010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17142
17143 * grub-core/commands/efi/lsefisystab.c: New file.
17144 * grub-core/commands/efi/lssal.c: Likewise.
17145 * grub-core/Makefile.core.def (lsacpi): New module.
17146 (lsefisystab): Likewise.
17147 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
17148 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
17149 (grub_efi_sal_system_table): New struct.
17150 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
17151 (grub_efi_sal_system_table_memory_descriptor): Likewise.
17152 (grub_efi_sal_system_table_platform_features): Likewise.
17153 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
17154 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
17155 (grub_efi_sal_system_table_ap_wakeup): Likewise.
17156 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
17157
cf9827de
VS
171582010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17159
17160 Support explicit user claim that a device is BIOS-visible.
17161
17162 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
17163 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
17164 * grub-core/kern/emu/hostdisk.c
17165 (convert_system_partition_to_system_disk): Support mdX.
17166 (find_system_device): New parameter add. All users updated.
17167 (grub_util_biosdisk_is_present): New function.
17168 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
17169 proto.
17170
53f0eb1f
VS
171712010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17172
17173 Search hints support.
17174
17175 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
17176 All users updated.
17177
b23ffd70
YB
171782010-09-13 Yves Blusseau <blusseau@zetam.org>
17179
17180 Bash completion script for util commands
17181
17182 * Makefile.am: Add util/bash-completion.d directory
17183 * configure.ac: Likewise.
17184 * util/bash-completion.d/Makefile.am: New file.
17185 * util/bash-completion.d/grub-completion.bash.in: Likewise.
17186
d547dc28
VS
171872010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17188
17189 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
17190 (print_backlog): set backlog_ucs4 and backlog_glyphs.
17191 Reported by: Yves Blusseau.
17192
2fc8ccb9
VS
171932010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17194
17195 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
17196 partition size and offset.
17197
d8a84076
VS
171982010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17199
17200 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
17201
84fb3b3d
VS
172022010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17203
17204 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
17205
768ec2e2
VS
172062010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17207
17208 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
17209 (grub_xvasprintf): Likewise.
17210
4870900f
VS
172112010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17212
17213 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
17214
faca6bec
VS
172152010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17216
17217 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
17218 args ending with NULL.
17219
172202010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
17221
17222 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
17223 pointer.
17224
3c70f225
SJ
172252010-09-11 Szymon Janc <szymon@janc.net.pl>
17226
17227 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
17228
4df7996d
VS
172292010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17230
17231 Shutdown using ACPI.
17232
17233 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
17234 * grub-core/commands/acpihalt.c: New file.
17235 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
17236 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
17237 (grub_acpi_halt): New proto.
17238 (GRUB_ACPI_SLP_EN): New const.
17239 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
17240 (GRUB_ACPI_OPCODE_*): New enum.
17241 (GRUB_ACPI_EXTOPCODE_*): Likewise.
17242
126b4c32
TG
172432010-09-11 Tristan Gingold <gingold@free.fr>
172442010-09-11 Robert Millan <rmh.grub@aybabtu.com>
172452010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17246
17247 * commands/lsacpi.c: New file.
17248 * grub-core/Makefile.core.def (lsacpi): New module.
17249 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
17250 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
17251 (grub_acpi_madt_entry_header): New struct.
17252 (grub_acpi_madt): Likewise.
17253 (grub_acpi_madt_entry_interrupt_override): Likewise.
17254 (grub_acpi_madt_entry_sapic): Likewise.
17255 (grub_acpi_madt_entry_lsapic): Likewise.
17256 (grub_acpi_madt_entry_platform_int_source): Likewise.
17257 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
17258 (PRIuGRUB_UINT32_T): Likewise.
17259 (PRIxGRUB_UINT64_T): Likewise.
17260
1aa4fe88
VS
172612010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17262
17263 Implement loading palette on ieee1275_fb.
17264
17265 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
17266 (have_setcolors): Likewise.
17267 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17268 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17269 (grub_video_ieee1275_set_palette): Implement.
17270
25761e13
VS
172712010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
172722010-09-11 Colin Watson <cjwatson@ubuntu.com>
17273
17274 * util/grub-install.in (grub_partition): New variable.
17275 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17276 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17277 Fixes a bug reported by Yves Blusseau.
17278
050abaea
VS
172792010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17280
17281 Fix emu on mipsel.
17282
17283 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17284 =grub_cpu_flush_cache on all mips and not only yeeloong.
17285 * configure.ac (COND_mips): New conditional.
17286 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17287 platforms.
17288 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17289 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17290 [GRUB_LINKER_HAVE_INIT]: New function.
17291 (grub_emu_post_init): Likewise.
17292 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17293 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17294 * include/grub/cache.h (_mips): Include mips/cache.h.
17295 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17296 LVM and RAID prototypes.
17297 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17298 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17299 function.
17300
5ed7d816
CW
173012010-09-10 Colin Watson <cjwatson@ubuntu.com>
17302
17303 * util/grub-install.in: Don't try to verify core.img until after
17304 running grub-mkimage to create it.
17305
90367e04
RM
173062010-09-10 Robert Millan <rmh@gnu.org>
17307
17308 * util/grub.d/10_hurd.in: Add misc readability checks.
17309 * util/grub.d/10_kfreebsd.in: Likewise.
17310 * util/grub.d/10_linux.in: Likewise.
17311
c452fa66
CW
173122010-09-10 Colin Watson <cjwatson@ubuntu.com>
17313
17314 * util/grub-install.in: ${imgext} won't be defined here until the
17315 install branch is merged. For the meantime, only verify core.img on
17316 i386-pc and sparc64-ieee1275 platforms.
17317
c38fe9f4
RM
173182010-09-10 Robert Millan <rmh@gnu.org>
17319
17320 Solaris support in grub_find_zpool_from_dir(). Thanks
17321 Seth Goldberg for referring to getextmntent() facility.
17322
17323 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17324 `sys/mkdev.h'.
17325 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17326 `<sys/mnttab.h>'.
17327 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17328 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17329 method for finding zpool name.
17330
905f7773
CW
173312010-09-10 Colin Watson <cjwatson@ubuntu.com>
17332
17333 grub-fstest needs the host and hostfs modules while other utilities
17334 actively require those modules to be absent, so grub-fstest needs
17335 its own initialisation and finalisation code.
17336
17337 * Makefile.am (grub_fstest.pp): New target.
17338 (grub_fstest_init.lst): Likewise.
17339 (grub_fstest_init.c): Likewise.
17340 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17341
fb90b546
RM
173422010-09-10 Robert Millan <rmh@gnu.org>
17343
17344 * configure.ac: Check for `struct statfs.f_fstypename' and
17345 `struct statfs.f_mntfromname'.
17346
17347 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17348 kFreeBSD-specific code.
17349
66d4bea5
RM
173502010-09-10 Robert Millan <rmh@gnu.org>
17351
17352 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17353 on ZFS. Now non-main filesystems are supported as / too.
17354
b6a690ee
CW
173552010-09-09 Colin Watson <cjwatson@ubuntu.com>
17356
17357 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17358 and grub-core/disk/host.c to ...
17359 (grub-fstest): ... here. Having the host disk implementation
17360 present confuses grub-probe and other utility programs.
17361
17362 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17363 when writing to a file, not when writing to stdout.
17364
8901b00c 173652010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17366
17367 * tests/partmap_test.in: New test for partitions.
17368 * Makefile.util.def: Rules for new test.
17369
7bf45fdd
RM
173702010-09-09 Robert Millan <rmh@gnu.org>
17371
17372 * util/grub-probe.c (probe): Fix a pair of unhandled error
17373 conditions.
17374
4dfbc574
RM
173752010-09-09 Robert Millan <rmh@gnu.org>
17376
17377 Basic Btrfs support (detection and UUID).
17378
17379 * grub-core/fs/btrfs.c: New file.
17380 * Makefile.util.def (library): Register btrfs.c.
17381 * grub-core/Makefile.core.def: Likewise.
17382
6b8e78ae
RM
173832010-09-08 Robert Millan <rmh@gnu.org>
17384
17385 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17386 with (optional) parameters to specify device and relative path.
17387 * util/grub-install.in: Use is_path_readable_by_grub() to
17388 verify readability of a few critical files.
17389 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17390 verify readability of grub.cfg.new.
17391
27f21a8b
VS
173922010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17393
17394 Split minix.mod into minix.mod and minix2.mod.
17395
17396 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17397 * grub-core/Makefile.core.def (minix2): New module.
17398 * grub-core/fs/minix.c: Use definitions instead of runtime version
17399 checking.
17400 * grub-core/fs/minix2.c: New file.
17401
c0e53ea5
YB
174022010-09-08 Yves Blusseau <blusseau@zetam.org>
17403
17404 Add new --boot-directory option to replace --root-directory
17405
17406 * util/grub-install.in: Add new --boot-directory option
17407 * util/grub-reboot.in: Likewise.
17408 * util/grub-set-default.in: Likewise.
17409
b9fe6ea2
YB
174102010-09-08 Yves Blusseau <blusseau@zetam.org>
17411
17412 * util/grub-mkconfig.in: Use new variable.
17413
d87aedff
YB
174142010-09-08 Yves Blusseau <blusseau@zetam.org>
17415
17416 * configure.ac: Define some useful variables.
17417
e55e8495
VS
174182010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17419
17420 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17421 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17422 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17423 Use terminfo and don't use cursor-on/cursor-off unless it's known
17424 to work.
17425 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17426 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17427
6fa6d675
CW
174282010-09-08 Colin Watson <cjwatson@ubuntu.com>
17429
17430 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17431 starts with "(,", fill the drive containing the loaded image in
17432 between those two characters, but expect that a full partition
17433 specification including partition map names will follow.
17434
92f2aef0
RM
174352010-09-08 Robert Millan <rmh@gnu.org>
17436
17437 * configure.ac: Remove `--enable-grub-fstest' option.
17438 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17439
17440 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17441 `grub-fstest' instead of `grub-probe' for readability verification.
17442 * util/grub-probe.c (probe): Remove readability verification kludge.
17443
99fd620d
RM
174442010-09-08 Robert Millan <rmh@gnu.org>
17445
17446 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17447 initializing `GRUB_FS'.
17448
058e30ac 174492010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17450
17451 Not command (!) support to GRUB script.
17452
17453 * tests/grub_script_not.in: New test.
17454 * Makefile.util.def: Rules for new test.
17455
17456 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17457 ! command as a special case.
17458 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17459
b61d05ed 174602010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17461
058e30ac 17462 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17463 grub_free.
b61d05ed 17464
4d69c786 174652010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17466
17467 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17468
aa3119c4 174692010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17470
17471 * docs/grub.texi (Shell-like scripting): Documentation for break,
17472 continue, shift and return commands.
17473
db0f7e3d
VS
174742010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17475
17476 Rename CD-ROM to cd on BIOS.
17477
17478 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17479 "cd".
17480 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17481
88b87c93
VS
174822010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17483
17484 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17485 * util/grub-probe.c (main): Likewise.
17486 * util/i386/pc/grub-setup.c (main): Likewise.
17487 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17488 Reported and debugged by: alexxy
17489
294f324d
VS
174902010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17491
17492 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17493 diagnostic info.
17494
d7ee3441
JS
174952010-09-05 Jo Shields <directhex@apebox.org>
17496
17497 * util/grub.d/30_os-prober.in: Add missing classes.
17498
d7e06c1f
VS
174992010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17500
17501 * docs/grub.texi (Theme file format): Document new position format.
17502
fc157e53
VS
175032010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17504
17505 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17506 a table. Use @code instead of @verbatim.
17507
506e9a1c
CB
175082010-09-05 Colin D Bennett <colin@gibibit.com>
17509
17510 Gfxmenu documentation.
17511
17512 * docs/grub.texi (Theme file format): New chapter.
17513
f0aff67c
SJ
175142010-09-05 Szymon Janc <szymon@janc.net.pl>
17515
17516 * grub-core/Makefile.core.def (xzio): New module.
17517 * grub-core/io/xzio.c: New file.
17518 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17519 * grub-core/lib/xzembed/xz_config.h: Likewise.
17520 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17521 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17522 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17523 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17524 * grub-core/lib/xzembed/xz_private.h: Likewise.
17525 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17526 * include/grub/file.h (grub_file_filter_id): New compression filter
17527 GRUB_FILE_FILTER_XZIO.
17528
82a85062
VS
175292010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17530
17531 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17532 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17533 size.
17534
3579415d
VS
175352010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17536
17537 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17538 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17539
5124ae6d
VS
175402010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17541
17542 Uncompressed checksum support.
17543
17544 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17545 (check_list): New parameter uncompress.
17546 (grub_cmd_hashsum): Handle --uncompress.
17547
9aadb3d1
VS
175482010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17549
17550 Reintroduce testload.
17551
17552 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17553 from here ...
17554 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17555 (GRUB_MOD_INIT): New function.
17556 (GRUB_MOD_FINI): Likewise.
17557 * grub-core/Makefile.core.def (testload): New module.
17558
a17792c3
SJ
175592010-09-05 Szymon Janc <szymon@janc.net.pl>
17560
17561 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17562 (uint8_t): New type.
17563 (uint16_t): Likewise.
17564 (uint32_t): Likewise.
17565 (uint64_t): Likewise.
17566
b81e40a3
SJ
175672010-09-05 Szymon Janc <szymon@janc.net.pl>
17568
17569 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17570
fc2ef117
VS
175712010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17572
17573 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17574 Made static.
17575 (grub_gzfile_open): Removed. All users updated.
17576 (GRUB_MOD_INIT): New function.
17577 (GRUB_MOD_FINI): Likewise.
17578 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17579 (grub_file_filters_enabled): Likewise.
17580 (grub_file_open): Handle filters.
17581 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17582 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17583 * include/grub/file.h (grub_file_filter_id_t): New type.
17584 (grub_file_filter_t): Likewise.
17585 (grub_file_filters_all): New extern variable.
17586 (grub_file_filters_enabled): Likewise.
17587 (grub_file_filter_register): New inline function.
17588 (grub_file_filter_unregister): Likewise.
17589 (grub_file_filter_disable): Likewise.
17590 (grub_file_filter_disable_compression): Likewise.
17591 * include/grub/gzio.h: Removed.
17592
35ee15e0
BC
175932010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17594
17595 Filename expansion support for wildcards in GRUB script.
17596
17597 * tests/grub_script_expansion.in: New test.
17598 * Makefile.util.def: Rule for new test.
17599
17600 * grub-core/commands/wildcard.c: New file, implements filename
17601 expansion support for GRUB script.
17602 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17603 * grub-core/script/argv.c: Cosmetic changes.
17604 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17605 Refactored to perform wildcard expansion on arguments.
17606 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17607 struct.
17608
17609 * tests/util/grub-shell.in: Fix quoting for read input.
17610
5f0c4aca
BC
176112010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17612
17613 Support for updating environment variables with matched substrings
17614 of regexp.
17615
17616 * tests/grub_cmd_regexp.in: New test.
17617 * Makefile.util.def: Rule for new test.
17618
17619 * grub-core/commands/regexp.c: New option -s to update environment
17620 variables with regexp matches.
17621
3759a35f
SJ
176222010-09-04 Szymon Janc <szymon@janc.net.pl>
17623
17624 * include/grub/file.h (grub_file): New member not_easly_seekable.
17625 (grub_file_seekable): New inline function.
17626 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17627 easily seekable.
17628 (grub_gzio_open): Set not_easly_seekable.
17629 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17630 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17631
ed8c6dec
BC
176322010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17633
17634 Support for options to appear multiple times on cmdline.
17635
17636 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17637 * grub-core/commands/extcmd.c: Support for repeatable option.
17638 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17639 repeatable option support.
17640
17641 Refactor menuentry into a regular command.
17642
17643 * grub-core/commands/menuentry.c: New file, menuentry command
17644 implementation.
17645 * grub-core/Makefile.core.def: Rule update for normal.mod.
17646 * grub-core/normal/main.c: Moved menuentry creation to
17647 grub-core/commands/menuentry.c.
17648 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17649 (grub_menu_execute_entry_real): Removed.
17650 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17651 function.
17652 (grub_script_execute_menuentry): Removed.
17653 * grub-core/script/parser.y (menuentry): Removed.
17654 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17655 * grub-core/script/yylex.l (menuentry): Removed.
17656 * include/grub/menu.h (grub_menu_init): New prototype.
17657 (grub_menu_fini): New prototype.
17658 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17659 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17660 (grub_script_execute_sourcecode): New prototype.
17661
dacd0cf0
BC
176622010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17663
17664 "return" command for GRUB script functions.
17665
17666 * tests/grub_script_return.in: New test.
17667 * Makefile.util.def: Rules for new test.
17668
17669 * grub-core/script/execute.c (grub_script_return): New function.
17670 * grub-core/script/main.c: Register/unregister return commaond.
17671 * include/grub/script_sh.h (grub_script_return): New prototype.
17672
52e72f9d
BC
176732010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17674
17675 "setparams" command to update positional parameters.
17676
17677 * tests/grub_script_setparams.in: New test.
17678 * Makefile.util.def: Rules for new test.
17679
17680 * grub-core/script/argv.c (grub_script_argv_make): New function.
17681 * grub-core/script/execute.c (replace_scope): New function.
17682 (grub_script_setparams): New function.
17683 * grub-core/script/lexer.c: Remove unused variables.
17684 * grub-core/script/main.c: Register/unregister setparams command.
17685 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17686 (grub_script_setparams): New prototype.
17687
25b60c91
BC
176882010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17689
17690 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17691 grub_free order.
17692
37e7bf68
BC
176932010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17694
17695 Support for passing block of commands as an argument to extcmds.
17696
17697 * Makefile.util.def: Rules for new test.
17698 * tests/grub_script_blockarg.in: New test.
17699 * grub-core/tests/test_blockarg.c: New file, block argument
17700 command used in the test.
17701
17702 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17703 (grub_register_extcmd_prio): New function prototype.
17704 (grub_extcmd_dispatcher): New function prototype.
17705 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17706 type.
17707 * include/grub/script_sh.h (struct grub_script): New members
17708 `children', `next_siblings' and `refcnt' for block arguments and
17709 reference counting.
17710 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17711 (grub_script_arg): New member `script' for block argument.
17712 (grub_script_argv): New member `script' for block argument.
17713 (grub_parser_param): New member `scripts' for block argument.
17714 (grub_script_mem_free): New extern function prototype.
17715 (grub_script_ref): New function prototype.
17716 (grub_script_unref): New function prototype.
17717
17718 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17719 extcmd form to support block arguments.
17720 * grub-core/script/argv.c: Block arguments support.
17721 * grub-core/script/execute.c: Likewise.
17722 * grub-core/script/lexer.c: Likewise.
17723 * grub-core/script/main.c: Likewise.
17724 * grub-core/script/script.c: Likewise.
17725 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17726 non-terminals.
17727
17728 * grub-core/commands/acpi.c: Update extcmd implementations with
17729 grub_extcmd_context_t.
17730 * grub-core/commands/cat.c: Likewise.
17731 * grub-core/commands/echo.c: Likewise.
17732 * grub-core/commands/extcmd.c: Likewise.
17733 * grub-core/commands/hashsum.c: Likewise.
17734 * grub-core/commands/hdparm.c: Likewise.
17735 * grub-core/commands/help.c: Likewise.
17736 * grub-core/commands/hexdump.c: Likewise.
17737 * grub-core/commands/i386/cpuid.c: Likewise.
17738 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17739 * grub-core/commands/i386/pc/halt.c: Likewise.
17740 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17741 * grub-core/commands/iorw.c: Likewise.
17742 * grub-core/commands/keystatus.c: Likewise.
17743 * grub-core/commands/loadenv.c: Likewise.
17744 * grub-core/commands/ls.c: Likewise.
17745 * grub-core/commands/lspci.c: Likewise.
17746 * grub-core/commands/memrw.c: Likewise.
17747 * grub-core/commands/probe.c: Likewise.
17748 * grub-core/commands/search_wrap.c: Likewise.
17749 * grub-core/commands/setpci.c: Likewise.
17750 * grub-core/commands/sleep.c: Likewise.
17751 * grub-core/disk/loopback.c: Likewise.
17752 * grub-core/hello/hello.c: Likewise.
17753 * grub-core/loader/i386/bsd.c: Likewise.
17754 * grub-core/loader/xnu.c: Likewise.
17755 * grub-core/term/gfxterm.c: Likewise.
17756 * grub-core/term/serial.c: Likewise.
17757 * grub-core/tests/lib/functional_test.c: Likewise.
17758
888d1500
BC
177592010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17760
17761 Multi-line quoted strings support.
17762
17763 * grub-core/script/lexer.c (append_newline): Removed.
17764 (grub_script_lexer_yywrap): Refactored.
17765 (grub_script_lexer_init): Refactored.
17766 * grub-core/script/yylex.l (yywrap): New function.
17767 (grub_lexer_resplit): New function.
17768 (grub_lexer_unput): New function.
17769 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17770 and resplit.
17771 * tests/grub_script_echo1.in: Added few more testcases.
17772
dda060dd
VS
177732010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17774
17775 * grub-core/kern/misc.c: Don't add abort alias in utils.
17776 Reported by: echoline.
17777
6556eba9
BC
177782010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17779
17780 Add missing files into "make dist" tarball for other platforms.
17781
17782 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17783 * conf/Makefile.common (dist_noinst_DATA): New variable.
17784 * conf/Makefile.extra-dist: Added missing make dist files.
17785 * grub-core/Makefile.core.def: Likewise.
17786
c8e7bf5f
VS
177872010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17788
17789 Compress grub_prefix.
17790
17791 * grub-core/boot/i386/pc/lnxboot.S: Use
17792 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17793 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17794 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17795 GRUB_MACHINE_PREFIX_END. All users updated.
17796 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17797 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17798 + 0x40.
17799 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17800 * util/grub-mkimage.c (image_target_desc): Change data_end to
17801 prefix_end. All users updated.
17802
a7c00cdb
VS
178032010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17804
17805 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17806 value.
17807 (grub_openbsd_boot): Likewise.
17808 (grub_netbsd_boot): Likewise.
17809 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17810 (grub_xnu_boot): Likewise.
17811
9f915872
VS
178122010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17813
17814 * configure.ac: Clean LIBS variable after tests.
17815
efa1bee7
CW
178162010-09-02 Colin Watson <cjwatson@ubuntu.com>
17817
17818 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17819
61d720e5
VS
178202010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17821
17822 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17823 echo if libdevmapper will be used.
17824
ef8e0ec8
IT
178252010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17826
17827 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17828 constant for the same file.
17829
03e261d8
VS
178302010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17831
17832 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17833
c2a4eba6
CW
178342010-09-02 Colin Watson <cjwatson@ubuntu.com>
17835
17836 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17837 grub-core/*.pp.
17838
9056cbf3
CW
178392010-09-02 Colin Watson <cjwatson@ubuntu.com>
17840
17841 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17842 required by the boot protocol.
17843
17844 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17845 ebp and edi members.
17846 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17847 state.ebp and state.edi.
17848 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17849 %ebp and %edi according to grub_relocator32_ebp and
17850 grub_relocator32_edi respectively.
17851 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17852 and state.edi.
17853
529cc99a
VS
178542010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17855
17856 Add i386-pc-pxe image target.
17857
17858 * util/grub-mkimage.c (image_target_desc): New enum value
17859 IMAGE_I386_PC_PXE.
17860 (image_targets): New target i386-pc-pxe.
17861 (generate_image): Handle i386-pc-pxe image.
17862
9a093920
VS
178632010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17864
17865 Fix grub_pxe_scan.
17866
17867 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17868 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17869 All users updated.
17870 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17871 (grub_pxe_pxenv): Correct type.
17872
f9cefc4e
CW
178732010-09-01 Colin Watson <cjwatson@ubuntu.com>
17874
17875 * NEWS: Document most of the important changes since 1.98.
17876
4066f57f
CW
178772010-09-01 Colin Watson <cjwatson@ubuntu.com>
17878
17879 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17880 generated manual page) a little.
17881
da2891f9
CW
178822010-09-01 Colin Watson <cjwatson@ubuntu.com>
17883
17884 * docs/grub.texi: Add myself as an author.
17885
ad717fae
VS
178862010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17887
17888 * Makefile.util.def (libgrub.a): Add missing sunpc.
17889 Reported by: Seth Goldberg.
17890
eefe8abd
VS
178912010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17892
17893 Interrupt wrapping and code simplifications.
17894
9494ef9a
VS
17895 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17896 x86_noieee1275 which are functionaly equivalent in this case.
17897 (grub-install): Make source on each platform explicit. Enable on
17898 all noemu.
17899 * gentpl.py (x86_efi_pc): Removed group.
17900 (x86_noefi): Likewise.
17901 (i386_noefi): Likewise.
17902 (x86_noieee1275): Likewise.
17903 (i386_noieee1275): Likewise.
17904 (i386_noefi_noieee1275): Likewise.
17905 (i386_pc_qemu_coreboot): Likewise.
17906 (i386_coreboot_multiboot): Likewise.
17907 (i386_pc_coreboot_multiboot_qemu): Likewise.
17908 (x86_noefi_mips): Likewise.
17909 (noieee1275): Likewise.
17910 (ieee1275_mips): Likewise.
17911 (noemu_noieee1275): Likewise.
17912 (cmos): New group.
17913 (usb): Likewise.
17914 (videoinkernel): Likewise.
17915 (videomodules): Likewise.
eefe8abd 17916 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
17917 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17918 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17919 include/grub/loader.h, include/grub/msdos_partition.h,
17920 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17921 include/grub/machine/console.h, include/grub/machine/vga.h,
17922 include/grub/machine/vbe.h, include/grub/machine/init.h,
17923 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17924 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 17925 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
17926 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17927 * grub-core/Makefile.core.def (kernel): Explicit the source for
17928 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17929 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17930 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17931 Use videoinkernel tag.
17932 (usb): Enable on all usb.
17933 (usbserial_common): Likewise.
17934 (usbserial_pl2303): Likewise.
17935 (usbserial_ftdi): Likewise.
17936 (uhci): Enable on all x86.
17937 (ohci): Enable on all pci.
17938 (cmostest): Enable on all CMOS.
17939 (acpi): Include commands/acpi.c on all platforms.
17940 (halt): Add relevant lib/*/halt.c.
17941 (hdparm): Enable on all pci.
17942 (lspci): Likewise.
17943 (usbtest): Enable on all usb.
17944 (ata): Enable on all pci.
17945 (ata_pthru): Likewise.
17946 (usbms): Enable on all usb.
17947 (usb_keyboard): Likewise.
17948 (font): Use tag videomodules.
17949 (bufio): Likewise.
17950 (datetime): Use tag cmos. Enable on all noemu.
17951 (mmap): Use tags common and x86.
17952 (gfxterm): Use tag videomodules.
17953 (bitmap): Likewise.
17954 (bitmap_scale): Likewise.
17955 (video_fb): Likewise.
17956 (video): Likewise.
17957 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17958 adjust padding accordingly. All users updated.
17959 (grub_ohci_transaction): Fix bad format specification.
17960 (GRUB_MOD_INIT): Add asserts for struct size.
17961 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17962 (grub_alloc_td): Likewise.
17963 (grub_free_queue): Likewise.
17964 (grub_uhci_transfer): Likewise.
17965 (grub_uhci_transaction): Fix bad format specification.
17966 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17967 (grub_usb_bulk_readwrite): Likewise.
17968 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17969 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17970 Made static.
17971 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17972 Made static.
17973 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17974 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17975 Transformed into C.
17976 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17977 Moved from here ...
17978 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17979 ... here. Transformed into C. Made static.
17980 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17981 Moved from here ...
17982 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17983 ... here. Transformed into C. Made static.
17984 * grub-core/kern/i386/pc/startup.S
17985 (grub_biosdisk_check_int13_extensions): Moved from here ...
17986 * grub-core/disk/i386/pc/biosdisk.c
17987 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17988 Made static.
17989 * grub-core/kern/i386/pc/startup.S
17990 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17991 * grub-core/disk/i386/pc/biosdisk.c
17992 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17993 Transformed into C. Made static.
17994 * grub-core/kern/i386/pc/startup.S
17995 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17996 * grub-core/disk/i386/pc/biosdisk.c
17997 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17998 Transformed into C. Made static.
17999 * grub-core/kern/i386/pc/startup.S
18000 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
18001 * grub-core/disk/i386/pc/biosdisk.c
18002 (grub_biosdisk_get_diskinfo_standard): ... here.
18003 Transformed into C. Made static.
18004 * grub-core/kern/i386/pc/startup.S
18005 (grub_biosdisk_get_num_floppies): Moved from here ...
18006 * grub-core/disk/i386/pc/biosdisk.c
18007 (grub_biosdisk_get_num_floppies): ... here.
18008 Transformed into C. Made static.
18009 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
18010 New function.
18011 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
18012 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
18013 Transformed into C. Made static.
18014 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
18015 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
18016 Transformed into C. Made static.
18017 * grub-core/kern/i386/ieee1275/init.c: Removed.
18018 * grub-core/kern/i386/misc.S: Likewise.
18019 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
18020 Splitted from here ...
18021 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
18022 Transformed into C. Made static. All users updated.
18023 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
18024 Transformed into C. Made static. All users updated.
18025 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
18026 Moved from here...
18027 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
18028 Transformed into C. Made static. All users updated.
18029 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
18030 Moved from here...
18031 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
18032 Transformed into C. Made static. All users updated.
18033 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
18034 Removed (replaced by C version).
18035 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
18036 Moved from here...
18037 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
18038 Transformed into C. Made static.
18039 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
18040 Moved from here...
18041 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
18042 ... here. Transformed into C.
18043 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
18044 Moved from here...
18045 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
18046 ... here. Transformed into C.
18047 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
18048 Moved from here...
18049 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
18050 ... here. Transformed into C. Made static.
18051 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
18052 Moved from here...
18053 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
18054 ... here. Transformed into C.
21ed554b
VS
18055 * grub-core/kern/i386/pc/startup.S
18056 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
18057 * grub-core/video/i386/pc/vbe.c
18058 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
18059 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
18060 Moved from here...
18061 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
18062 ... here. Transformed into C.
18063 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
18064 Moved from here...
18065 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
18066 ... here. Transformed into C.
18067 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
18068 Moved from here...
18069 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
18070 ... here. Transformed into C.
18071 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
18072 Moved from here...
18073 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
18074 ... here. Transformed into C.
18075 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
18076 Moved from here...
18077 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
18078 ... here. Transformed into C. Made static.
18079 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
18080 Moved from here...
18081 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
18082 ... here. Transformed into C. Made static.
18083 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
18084 Moved from here...
18085 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
18086 ... here. Transformed into C. Made static.
18087 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
18088 pxe_rm_entry as third argument.
18089 (grub_bios_interrupt): New function.
18090 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
18091 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
18092 of calling grub_stop.
18093 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
18094 * grub-core/lib/efi/halt.c (grub_halt): ...here.
18095 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
18096 * grub-core/lib/emu/halt.c (grub_halt): ... here.
18097 * grub-core/lib/i386/halt.c: Moved from here ...
18098 * grub-core/lib/i386/halt.c: ... here.
18099 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
18100 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
18101 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
18102 grub_stop_floppy.
18103 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
18104 * include/grub/i386/coreboot/init.h: Removed.
18105 * include/grub/i386/multiboot/init.h: Likewise.
18106 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
18107 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
18108 * include/grub/i386/pc/int.h: New file.
18109 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
18110 (grub_pxe_scan): Removed.
18111 (grub_pxe_call): Update prototype.
18112 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
18113 prototypes.
18114 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
18115 * include/grub/i386/qemu/init.h: Removed.
18116 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
18117 noreturn.
18118 (grub_halt): Likewise.
18119 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
18120 (grub_reboot): Likewise.
18121 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
18122 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
18123 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
18124
215dd471
RM
181252010-08-30 Robert Millan <rmh@gnu.org>
18126
18127 * NEWS: Document addition of ZFS support in `grub-install' and
18128 `grub-mkconfig'.
18129
ebd65b82
BC
181302010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
18131
18132 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
18133 dprintf output.
18134
11721d19
VS
181352010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18136
18137 Remove leftover embedding of font objects.
18138
18139 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
18140 * util/grub-install.in (font): Removed.
18141 * util/grub-mkimage.c (generate_image): Remove font support. All users
18142 updated.
18143
37837d4e
VS
181442010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18145
18146 Remove leftover embedding of font objects.
18147
18148 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
18149 * util/grub-install.in (font): Removed.
18150 * util/grub-mkimage.c (generate_image): Remove font support. All users
18151 updated.
18152
b4c1aae0
VS
181532010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18154
18155 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 18156 Reported by: Ian Turner
b4c1aae0 18157
8920a08d
VS
181582010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18159
18160 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
18161 timeout to avoid indefinite boot stalling.
18162
f21db033
VS
181632010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18164
18165 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
18166 (grub_env_write_color_highlight): Likewise.
18167
9a9de209
VS
181682010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18169
18170 * grub-core/normal/term.c (print_more): Return to normal and not
18171 to standard state after printing "---MORE---".
18172
3dca01d7
VS
181732010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18174
18175 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
18176 Mask out the bit 0x80 since it has other meaning that specifiing color.
18177
0b986c40
VS
181782010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18179
18180 New relocator. Allows for more kernel support and more straightforward
18181 loader writing.
18182
18183 * Makefile.am (BOOTTARGET): New variable.
18184 (QEMU32): Likewise.
18185 (linux.init.x86_64): New target.
18186 (linux.init.i386): Likewise.
18187 (multiboot.elf): Likewise.
18188 (kfreebsd.elf): Likewise.
18189 (kfreebsd.aout): Likewise.
18190 (pc-chainloader.elf): Likewise.
18191 (pc-chainloader.bin): Likewise.
18192 (ntldr.elf): Likewise.
18193 (ntldr.bin): Likewise.
18194 (multiboot2.elf): Likewise.
18195 (kfreebsd.init.x86_64): Likewise.
18196 (kfreebsd.init.i386): Likewise.
18197 (knetbsd.init.i386): Likewise.
18198 (kopenbsd.init.i386): Likewise.
18199 (knetbsd.init.x86_64): Likewise.
18200 (kopenbsd.init.x86_64): Likewise.
18201 (linux-initramfs.i386): Likewise.
18202 (linux-initramfs.x86_64): Likewise.
18203 (kfreebsd-mfsroot.i386.img): Likewise.
18204 (knetbsd.image.i386): Likewise.
18205 (kopenbsd.image.i386): Likewise.
18206 (kopenbsd.image.x86_64): Likewise.
18207 (knetbsd.miniroot-image.i386.img): Likewise.
18208 (kfreebsd-mfsroot.x86_64.img): Likewise.
18209 (knetbsd.image.x86_64): Likewise.
18210 (knetbsd.miniroot-image.x86_64.img): Likewise.
18211 (kfreebsd-mfsroot.i386.gz): Likewise.
18212 (bootcheck-kfreebsd-i386): Likewise.
18213 (kfreebsd-mfsroot.x86_64.gz): Likewise.
18214 (bootcheck-kfreebsd-x86_64): Likewise.
18215 (knetbsd.miniroot-image.i386.gz): Likewise.
18216 (bootcheck-knetbsd-i386): Likewise.
18217 (bootcheck-kopenbsd-i386): Likewise.
18218 (bootcheck-kopenbsd-x86_64): Likewise.
18219 (knetbsd.miniroot-image.x86_64.gz): Likewise.
18220 (bootcheck-knetbsd-x86_64): Likewise.
18221 (bootcheck-linux-i386): Likewise.
18222 (bootcheck-linux-x86_64): Likewise.
18223 (bootcheck-linux16-i386): Likewise.
18224 (bootcheck-linux16-x86_64): Likewise.
18225 (bootcheck-multiboot): Likewise.
18226 (bootcheck-multiboot2): Likewise.
18227 (bootcheck-kfreebsd-aout): Likewise.
18228 (bootcheck-pc-chainloader): Likewise.
18229 (bootcheck-ntldr): Likewise.
18230 (CLEANFILES): Add new targets.
18231 (BOOTCHECKS): New variable.
18232 (.PHONY): Add bootchecks.
18233 (SUCCESSFUL_BOOT_STRING): New variable.
18234 (BOOTCHECK_TIMEOUT): Likewise.
18235 (bootcheck): New target
18236 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
18237 * configure.ac: Correct efiemu excuse.
18238 * docs/grub.texi (Supported kernels): New chapter.
18239 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
18240 include/grub/mm_private.h. Simplify inclusion of
18241 include/grub/boot.h, include/grub/loader.h
18242 and include/grub/msdos_partition.h
18243 (KERNEL_HEADER_FILES) [i386_coreboot]:
18244 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
18245 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
18246 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
18247 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
18248 include/grub/machine/loader.h.
18249 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
18250 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
18251 extra_dist.
18252 (pci.mod): Enable on i386-multiboot.
18253 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
18254 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
18255 i386-qemu.
18256 (relocator.mod): Rewritten.
18257 (aout.mod): Enable on all x86.
18258 (bsd.mod): Likewise.
18259 (ntldr.mod): New module.
18260 (linux.mod): Use loader/i386/linux.c on all x86.
18261 (xnu.mod): Enable on all x86.
18262 (vga_text.mod): disable on EFI and QEMU.
18263 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
18264 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
18265 * grub-core/efiemu/loadcore.c: Likewise.
18266 * grub-core/efiemu/main.c: Likewise.
18267 (grub_efiemu_exit_boot_services): Removed.
18268 (grub_efiemu_finish_boot_services): Likewise.
18269 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18270 function.
18271 * grub-core/efiemu/i386/nocfgtables.c: New file.
18272 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18273 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18274 (grub_efi_finish_boot_services): Moved from here ...
18275 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18276 Fille finish memory map and related data.
18277 (finish_mmap_buf): New variable.
18278 (grub_efi_uintn_t finish_mmap_size): Likewise.
18279 (grub_efi_uintn_t finish_key): Likewise.
18280 (grub_efi_uintn_t finish_desc_size): Likewise.
18281 (grub_efi_uint32_t finish_desc_version): Likewise.
18282 (grub_efi_is_finished): Likewise.
18283 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18284 finished.
18285 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18286 (grub_elf64_phdr_iterate): Likewise.
18287 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18288 (grub_os_area_size): Likewise.
18289 (grub_machine_init): Don't reserve os area.
18290 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18291 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18292 * grub-core/kern/i386/loader.S: Removed.
18293 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18294 (grub_os_area_size): Likewise.
18295 (grub_machine_init): Don't reserve os area.
18296 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18297 Don't call grub_dl_unload_all.
18298 Don't include loader.S.
18299 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18300 Declare the memory after _end as available.
18301 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 18302 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 18303 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
18304 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18305 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18306 * include/grub/mm_private.h (grub_mm_header): ... here.
18307 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18308 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
18309 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18310 (grub_mm_region): ..here. Removed addr. Added pre_size.
18311 All users updated.
18312 * grub-core/kern/mm.c (base): Renamed to ...
18313 (grub_mm_base): ... this. Made global.
18314 (grub_real_malloc): Alloc from end of region.
18315 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18316 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18317 * grub-core/kern/powerpc/cache_flush.S: ... here.
18318 * grub-core/lib/efi/relocator.c: New file.
18319 * grub-core/lib/i386/relocator.c: Rewritten.
18320 * grub-core/lib/i386/relocator16.S: New file.
18321 * grub-core/lib/i386/relocator32.S: Likewise.
18322 * grub-core/lib/i386/relocator64.S: Likewise.
18323 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18324 * grub-core/lib/i386/relocator_common.S: New file.
18325 * grub-core/lib/ieee1275/relocator.c: Likewise.
18326 * grub-core/lib/mips/relocator.c: Rewritten.
18327 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18328 stylistic adjustments.
18329 * grub-core/lib/powerpc/relocator.c: New file.
18330 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18331 * grub-core/lib/relocator.c: Rewritten.
18332 * grub-core/lib/x86_64/relocator_asm.S: New file.
18333 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18334 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18335 (bsd_tag): New struct.
18336 (tags): New variable.
18337 (tags_last): Likewise.
18338 (netbsd_module): New struct.
18339 (netbsd_mods): New variable.
18340 (netbsd_mods_last): Likewise.
18341 (openbsd_opts): New parameter "serial".
18342 (OPENBSD_SERIAL_ARG): New definition.
18343 (netbsd_opts): New parameter "serial".
18344 (NETBSD_SERIAL_ARG): New definition.
18345 (grub_freebsd_add_meta): Reorganised into ...
18346 (grub_bsd_add_meta): ...this. All users updated.
18347 (grub_freebsd_add_mmap): Reorganised into ...
18348 (generate_e820_mmap): ...this...
18349 (grub_bsd_add_mmap): ...and this. All users updated.
18350 (grub_freebsd_list_modules): Use tags.
18351 (grub_netbsd_add_meta_module): New function.
18352 (grub_netbsd_list_modules): Likewise.
18353 (grub_freebsd_boot): Use relocator and finish EFI.
18354 (grub_openbsd_boot): Likewise.
18355 (grub_netbsd_setup_video): New function.
18356 (grub_netbsd_add_modules): Likewise.
18357 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18358 and finish EFI.
18359 (grub_bsd_unload): Unload tags.
18360 (grub_bsd_load_aout): Use relocator.
18361 (grub_bsd_elf32_size_hook): New function.
18362 (grub_bsd_elf32_hook): Use relocator.
18363 (grub_bsd_elf64_size_hook): New function.
18364 (grub_bsd_elf64_hook): Use relocator.
18365 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18366 (grub_bsd_load): Zero-out openbsd_ramdisk.
18367 (grub_bsd_load): Use relocator.
18368 (grub_cmd_openbsd): Support serial.
18369 (grub_cmd_netbsd): Support modules.
18370 (grub_cmd_freebsd_module): Use relocator.
18371 (grub_netbsd_module_load): New function.
18372 (grub_cmd_netbsd_module): Likewise.
18373 (grub_cmd_openbsd_ramdisk): Likewise.
18374 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18375 kopenbsd_ramdisk.
18376 (GRUB_MOD_FINI): Unregister new commands.
18377 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18378 (grub_freebsd_load_elfmodule_obj): Use relocator.
18379 (grub_freebsd_load_elfmodule): Likewise.
18380 (grub_freebsd_load_elf_meta): Likewise.
18381 (grub_netbsd_load_elf_meta): New function.
18382 (grub_openbsd_find_ramdisk): Likewise.
18383 * grub-core/loader/i386/bsd_helper.S: Removed.
18384 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18385 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18386 * grub-core/loader/i386/efi/linux.c: Likewise.
18387 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18388 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18389 (DEFAULT_VIDEO_MODE): Likewise.
18390 (real_mode_target): New variable.
18391 (prot_mode_target): Likewise.
18392 (initrd_mem_target): Likewise.
18393 (relocator): Likewise.
18394 (efi_mmap_buf): Likewise.
18395 (efi_mmap_size): Likewise.
18396 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18397 (free_pages): Use relocator.
18398 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18399 (grub_linux_setup_video): Return error.
18400 (grub_linux_trampoline_start): Removed.
18401 (grub_linux_trampoline_end): Likewise.
18402 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18403 andd video parameters depending on firmware.
18404 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18405 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18406 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18407 (grub_cmd_initrd): Use relocator.
18408 * grub-core/loader/i386/linux_trampoline.S: Removed.
18409 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18410 (elf_sec_entsize): Likewise.
18411 (elf_sec_shstrndx): Likewise.
18412 (elf_sections): Likewise.
18413 (grub_multiboot_load): Use relocator.
18414 (grub_multiboot_get_mbi_size): Account for sections.
18415 (grub_multiboot_make_mbi): Use relocator and support sections.
18416 (grub_multiboot_add_elfsyms): New function.
18417 (grub_multiboot_free_mbi): Free sections.
18418 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18419 (grub_linux_real_target): Likewise.
18420 (grub_linux_real_chunk): Likewise.
18421 (grub_linux16_prot_size): Likewise.
18422 (grub_linux16_boot): Use relocator.
18423 (grub_linux_unload): Unload relocator.
18424 (grub_cmd_linux): Use relocator.
18425 (grub_cmd_initrd): Likewise.
18426 * grub-core/loader/i386/pc/ntldr.c: New file.
18427 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18428 Don't try to guess CPU frequency.
18429 (grub_xnu_set_video): Stretch bitmap.
18430 (grub_xnu_boot): Use relocator.
18431 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18432 (grub_linux_unload): Free relocator.
18433 (grub_linux_load32): Use relocator.
18434 (grub_linux_load64): Likewise.
18435 (grub_cmd_initrd): Likewise.
18436 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18437 (grub_multiboot_unload): Unload relocator.
18438 (grub_cmd_multiboot): Use relocator.
18439 (grub_cmd_module): Likewise.
18440 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18441 Use relocator and support sections.
18442 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18443 (elf_sec_entsize): Likewise.
18444 (elf_sec_shstrndx): Likewise.
18445 (elf_sections): Likewise.
18446 (grub_multiboot_load): Use relocator.
18447 (grub_multiboot_get_mbi_size): Account for sections.
18448 (grub_multiboot_make_mbi): Use relocator and support sections.
18449 (grub_multiboot_add_elfsyms): New function.
18450 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18451 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18452 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18453 Prototype changed. All users updated.
18454 (grub_xnu_align_heap): Simplified.
18455 (grub_xnu_writetree_toheap): Likewise.
18456 (grub_xnu_unload): Unload relocator.
18457 (grub_cmd_xnu_kernel): Use relocator.
18458 (grub_cmd_xnu_kernel64): Likewise.
18459 (grub_xnu_register_memory): Simplified.
18460 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
18461 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18462 EFI is finished.
18463 (grub_console_checkkey): Likewise.
18464 (grub_console_getkey): Likewise.
18465 (grub_console_getwh): Likewise.
18466 (grub_console_getxy): Likewise.
18467 (grub_console_gotoxy): Likewise.
18468 (grub_console_cls): Likewise.
18469 (grub_console_setcolorstate): Likewise.
18470 (grub_console_setcursor): Likewise.
18471 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18472 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18473 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18474 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18475 * grub-core/tests/boot/kernel-8086.S: Likewise.
18476 * grub-core/tests/boot/kernel-i386.S: Likewise.
18477 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18478 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18479 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18480 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18481 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18482 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18483 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18484 * grub-core/tests/boot/linux.cfg: Likewise.
18485 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18486 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18487 * grub-core/tests/boot/linux16.cfg: Likewise.
18488 * grub-core/tests/boot/multiboot.cfg: Likewise.
18489 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18490 * grub-core/tests/boot/ntldr.cfg: Likewise.
18491 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18492 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18493 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18494 New definition.
18495 * include/grub/dl.h (grub_dl_unload_all): Removed.
18496 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18497 (grub_efi_finish_boot_services): Change prototype.
18498 (grub_efi_is_finished): New variable.
18499 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18500 Changed prototype.
18501 (grub_efiemu_finish_boot_services): Removed.
18502 (grub_machine_efiemu_init_tables): New prototype.
18503 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18504 (grub_elf64_phdr_iterate): Likewise.
18505 * include/grub/i386/bsd.h: Include relocator.h.
18506 (freebsd_tag_header): New struct.
18507 (grub_openbsd_bios_mmap): Removed.
18508 (grub_unix_real_boot): Removed.
18509 (grub_freebsd_load_elfmodule32): Changed prototype.
18510 (grub_freebsd_load_elfmodule_obj64): Likewise.
18511 (grub_freebsd_load_elf_meta32): Likewise.
18512 (grub_freebsd_load_elf_meta64): Likewise.
18513 (grub_freebsd_add_meta): Removed.
18514 (grub_netbsd_load_elf_meta32): New prototype.
18515 (grub_netbsd_load_elf_meta64): Likewise.
18516 (grub_bsd_add_meta): Likewise.
18517 (grub_openbsd_ramdisk_descriptor): New struct.
18518 (grub_openbsd_find_ramdisk32): New prototype.
18519 (grub_openbsd_find_ramdisk64): Likewise.
18520 * include/grub/i386/coreboot/loader.h: Removed.
18521 * include/grub/i386/efi/loader.h: Likewise.
18522 * include/grub/i386/ieee1275/loader.h: Likewise.
18523 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18524 to grub_uint32_t.
18525 * include/grub/i386/loader.h: Removed.
18526 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18527 value.
18528 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18529 (grub_phys_addr_t): New type.
18530 (grub_vtop): New inline function.
18531 (grub_map_memory): Likewise.
18532 (grub_unmap_memory): Likewise.
18533 * include/grub/i386/multiboot/loader.h: Removed.
18534 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18535 (NETBSD_BTINFO_CONSOLE): New definition.
18536 (NETBSD_BTINFO_SYMTAB): Likewise.
18537 (NETBSD_BTINFO_MODULES): Likewise.
18538 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18539 (grub_netbsd_bootinfo): New struct.
18540 (grub_netbsd_btinfo_common): Use explicit bitsize.
18541 (grub_netbsd_btinfo_mmap_entry): Removed.
18542 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18543 (grub_netbsd_btinfo_bootdisk): New struct.
18544 (grub_netbsd_btinfo_symtab): Likewise.
18545 (grub_netbsd_btinfo_serial): Likewise.
18546 (grub_netbsd_btinfo_modules): Likewise.
18547 (grub_netbsd_btinfo_framebuf): Likewise.
18548 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18549 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18550 Likewise.
18551 (grub_openbsd_bootargs): Use explicit bitsize.
18552 (grub_openbsd_bootarg_console): New struct.
18553 (GRUB_OPENBSD_COM_MAJOR): New definition.
18554 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18555 * include/grub/i386/pc/efiemu.h: Removed.
18556 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18557 * include/grub/i386/qemu/loader.h: Removed.
18558 * include/grub/i386/relocator.h: Rewritten.
18559 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18560 * include/grub/mips/memory.h: New file.
18561 * include/grub/mips/multiboot.h: Rewritten.
18562 * include/grub/mips/relocator.h: Rewritten.
18563 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18564 (grub_vtop): New function.
18565 (grub_map_memory): Likewise.
18566 (grub_unmap_memory): Likewise.
18567 * include/grub/misc.h (ALIGN_DOWN): New definition.
18568 * include/grub/mm.h (grub_mm_check_real): New proto.
18569 (GRUB_MM_CHECK): New definition.
18570 * include/grub/mm_private.h: New file.
18571 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18572 (grub_multiboot_get_mbi_size): Removed.
18573 (grub_multiboot_make_mbi): Change prottype.
18574 (grub_multiboot_set_accepts_video): New proto.
18575 (grub_multiboot_add_elfsyms): Likewise.
18576 (grub_multiboot_payload_eip): New variable.
18577 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18578 New prototype.
18579 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18580 New definition.
18581 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18582 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18583 * include/grub/powerpc/ieee1275/loader.h: Removed.
18584 * include/grub/powerpc/memory.h: New file.
18585 * include/grub/powerpc/relocator.h: Likewise.
18586 * include/grub/relocator.h: Likewise.
18587 * include/grub/relocator_private.h: Likewise.
18588 * include/grub/sparc64/ieee1275/loader.h: Removed.
18589 * include/grub/x86_64/memory.h: New file.
18590 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18591 (grub_xnu_heap_malloc): Likewise.
18592 (grub_xnu_heap_real_start): Removed.
18593 (grub_xnu_heap_start): Likewise.
18594 (grub_xnu_relocator): New variable.
18595 (grub_xnu_heap_target_start): Likewise.
18596 * tests/util/grub-shell.in: Support non-pc.
18597 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 18598
5303b85d
VS
185992010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18600
18601 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18602 on malloc error.
18603 (grub_bidi_logical_to_visual): Check that malloc succeded.
18604 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18605 puts.
18606 (grub_xputs_normal): Likewise.
18607
d768d159
VS
186082010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18609
18610 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18611 extra_dist.
18612
186132010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18614
18615 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18616
5bf84df4
VS
186172010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18618
18619 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18620
3626810e
VS
186212010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18622
18623 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18624 dprintf.
18625
a7363f53
BC
186262010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18627
18628 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18629
902f75f6
VS
186302010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18631
18632 * grub-core/normal/term.c (print_more): Fix a memory leak.
18633 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18634 (grub_xputs_normal): Likewise.
18635
3c707967
VS
186362010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18637
18638 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18639 the begining of the string
18640
2053cc07
VS
186412010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18642
18643 * grub-core/script/script.c (grub_script_parse): Free parsed on
18644 failure.
18645
46422ebf
VS
186462010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18647
18648 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18649 on failure.
18650
9e0fa3f6
VS
186512010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18652
18653 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18654 return.
18655
3393cf16
VS
186562010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18657
18658 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18659 (scroll_up): Fix a memory leak.
18660
b17540cb
VS
186612010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18662
18663 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18664 errors.
18665
67140446
VS
186662010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18667
18668 Handle USB pendrives exposed as floppies.
18669
18670 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18671 floppy.
18672 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18673 Check for partitions on all devices.
18674
e35e46fc
VS
186752010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18676
18677 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18678 (readkey): Likewise.
18679
d24c6190
BC
186802010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18681
18682 Multiple variable names support to "export" command.
18683
18684 * normal/context.c (grub_cmd_export): "export" command supports
18685 multiple variable names.
18686
04ddcc6a
ST
186872010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18688
18689 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18690 --target=drive output to Mach device name.
18691
0c8b61d8
BC
186922010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18693
18694 New Automake based build system for GRUB.
18695
18696 * ABOUT-NLS: New file.
18697 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18698 in Makefile.util.def file.
18699 * Makefile.util.def: New file. Autogen build definitions file for
18700 GRUB host utils.
18701 * conf/Makefile.common: New file. Common variables for GRUB host
18702 utils and target modules.
18703 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18704 * docs/Makefile.am: New file. Automake file for docs.
18705 * gentpl.py: New file. Python script to generate Autogen
18706 template.
18707 * grub-core/Makefile.am: New file. GRUB target modules' rules
18708 that doesn't fit in Makefile.core.def file.
18709 * grub-core/Makefile.core.def: New file. Autogen build
18710 definitions file for GRUB target modules.
18711 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18712 specific setjmp.S file.
18713 * po/Makefile.am: New file.
18714
18715 * .bzrignore: New ignores.
18716 * INSTALL: New requirements, without Ruby.
18717 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18718 * autogen.sh: Updated to invoke autogen as necessary.
18719 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18720 and defines for Automake conditionals.
18721 * geninit.sh: Refactoring.
18722
18723 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18724 necessary.
18725 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18726 New prototype.
18727
18728 * include/grub/test.h: Fix functional test modules' naming.
18729 * grub-core/tests/example_functional_test.c: Fix test module name.
18730
18731 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18732 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18733 * util/grub-editenv.c: Likewise.
18734 * util/grub-fstest.c: Likewise.
18735 * util/grub-mkdevicemap.c: Likewise.
18736 * util/grub-mkfont.c: Likewise.
18737 * util/grub-mkimage.c: Likewise.
18738 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18739 * util/grub-probe.c: Likewise.
18740 * util/grub-script-check.c: Likewise.
18741 * util/i386/pc/grub-setup.c: Likewise.
18742 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18743
18744 * tests/util/grub-shell.in: Fix override directory path.
18745 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18746 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18747
18748 * util/lvm.c: Update #includes.
18749 * util/raid.c: Likewise.
18750 * util/resolve.c: Likewise.
18751 * grub-core/bus/emu/pci.c: Likewise.
18752 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18753 * grub-core/lib/posix_wrap/string.h: Likewise.
18754 * grub-core/kern/emu/main.c: Likewise.
18755
18756 * grub-core/gensymlist.sh: New file. Script for generating kernel
18757 symbols file.
18758 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18759
18760 * grub-core/gentrigtables.c: Fix unused variable warnings.
18761
18762 * Makefile.in: Removed.
18763 * conf/any-emu.rmk: Removed.
18764 * conf/common.rmk: Removed.
18765 * conf/i386-coreboot.rmk: Removed.
18766 * conf/i386-efi.rmk: Removed.
18767 * conf/i386-ieee1275.rmk: Removed.
18768 * conf/i386-multiboot.rmk: Removed.
18769 * conf/i386-pc.rmk: Removed.
18770 * conf/i386-qemu.rmk: Removed.
18771 * conf/i386.rmk: Removed.
18772 * conf/mips-yeeloong.rmk: Removed.
18773 * conf/mips.rmk: Removed.
18774 * conf/powerpc-ieee1275.rmk: Removed.
18775 * conf/sparc64-ieee1275.rmk: Removed.
18776 * conf/tests.rmk: Removed.
18777 * conf/x86-efi.rmk: Removed.
18778 * conf/x86_64-efi.rmk: Removed.
18779 * gendistlist.sh: Removed.
18780 * geninitheader.sh: Removed.
18781 * genkernsyms.sh.in: Removed.
18782 * genmk.rb: Removed.
18783 * gensymlist.sh.in: Removed.
18784 * mkinstalldirs: Removed.
18785 * boot: Moved ...
18786 * grub-core/boot: ... to here.
18787 * bus: Moved ...
18788 * grub-core/bus: ... to here.
18789 * commands: Moved ...
18790 * grub-core/commands: ... to here.
18791 * disk: Moved ...
18792 * grub-core/disk: ... to here.
18793 * efiemu: Moved ...
18794 * grub-core/efiemu: ... to here.
18795 * font: Moved ...
18796 * grub-core/font: ... to here.
18797 * fs: Moved ...
18798 * grub-core/fs: ... to here.
18799 * gencmdlist.sh: Moved ...
18800 * grub-core/gencmdlist.sh: ... to here.
18801 * genemuinit.sh: Moved ...
18802 * grub-core/genemuinit.sh: ... to here.
18803 * genemuinitheader.sh: Moved ...
18804 * grub-core/genemuinitheader.sh: ... to here.
18805 * genfslist.sh: Moved ...
18806 * grub-core/genfslist.sh: ... to here.
18807 * genhandlerlist.sh: Moved ...
18808 * grub-core/genhandlerlist.sh: ... to here.
18809 * genmoddep.awk: Moved ...
18810 * grub-core/genmoddep.awk: ... to here.
18811 * genmodsrc.sh: Moved ...
18812 * grub-core/genmodsrc.sh: ... to here.
18813 * genpartmaplist.sh: Moved ...
18814 * grub-core/genpartmaplist.sh: ... to here.
18815 * genparttoollist.sh: Moved ...
18816 * grub-core/genparttoollist.sh: ... to here.
18817 * genterminallist.sh: Moved ...
18818 * grub-core/genterminallist.sh: ... to here.
18819 * gentrigtables.c: Moved ...
18820 * grub-core/gentrigtables.c: ... to here.
18821 * genvideolist.sh: Moved ...
18822 * grub-core/genvideolist.sh: ... to here.
18823 * gettext: Moved ...
18824 * grub-core/gettext: ... to here.
18825 * gfxmenu: Moved ...
18826 * grub-core/gfxmenu: ... to here.
18827 * gnulib: Moved ...
18828 * grub-core/gnulib: ... to here.
18829 * hello: Moved ...
18830 * grub-core/hello: ... to here.
18831 * hook: Moved ...
18832 * grub-core/hook: ... to here.
18833 * io: Moved ...
18834 * grub-core/io: ... to here.
18835 * kern: Moved ...
18836 * grub-core/kern: ... to here.
18837 * lib: Moved ...
18838 * grub-core/lib: ... to here.
18839 * loader: Moved ...
18840 * grub-core/loader: ... to here.
18841 * mmap: Moved ...
18842 * grub-core/mmap: ... to here.
18843 * normal: Moved ...
18844 * grub-core/normal: ... to here.
18845 * partmap: Moved ...
18846 * grub-core/partmap: ... to here.
18847 * parttool: Moved ...
18848 * grub-core/parttool: ... to here.
18849 * script: Moved ...
18850 * grub-core/script: ... to here.
18851 * term: Moved ...
18852 * grub-core/term: ... to here
18853 * tests/example_functional_test.c: Moved ...
18854 * grub-core/tests/example_functional_test.c: ... to here.
18855 * tests/lib/functional_test.c: Moved ...
18856 * grub-core/tests/lib/functional_test.c: ... to here.
18857 * tests/lib/test.c: Moved ...
18858 * grub-core/tests/lib/test.c: ... to here.
18859 * video: Moved ...
18860 * grub-core/video: ... to here.
18861
645586e6
BC
188622010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18863
18864 Replace --enable-grub-emu-modules with grub-emu-lite.
18865
18866 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18867 cache.S.
18868
18869 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18870 * kern/emu/full.c: New file. For grub-emu specific initialization.
18871 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18872 * kern/emu/main.c: Call initialization function grub_emu_init.
18873
18874 * Makefile.in: Include grub-emu-lite in install.
18875 * commands/parttool.c: Use grub_no_autoload to differentiate
18876 between grub-emu and grub-emu-lite.
18877 * include/grub/misc.h: New variable grub_no_autoload.
18878
18879 * conf/any-emu.rmk: New rules for grub-emu-lite.
18880 * configure.ac: Remove --enable-grub-emu-modules.
18881 * genmk.rb: Cleanup unnecessary rules.
18882 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18883
18884 * normal/main.c: Don't load list files on grub-emu-lite.
18885 * util/misc.c (grub_arch_sync_caches): Removed.
18886
f86a4030
CW
188872010-08-23 Colin Watson <cjwatson@ubuntu.com>
18888
18889 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18890 grub-mkimage rather than grub-mkelfimage.
18891 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18892
06776944
VS
188932010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18894
18895 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18896 a key after CapsLock or NumLock. It's just a qemu bug.
18897
df262419
VS
188982010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18899
18900 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18901 needed by libusb wrapper.
18902
b40ea81b
ST
189032010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18904
18905 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18906
dee50575
VS
189072010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18908
18909 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18910 --nounzip is passed.
18911
fb1d7b79
VS
189122010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18913
18914 USB hotunplugging and USB serial support.
18915
18916 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18917 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18918 (grub_uhci_transfer): Respect timeout and set *actual.
18919 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18920 non-standard length.
18921 (grub_usb_device_attach): Autoload modules.
18922 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18923 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18924 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18925 users updated.
18926 (grub_usb_add_hub): Fill nports and children.
18927 (attach_root_port): Receive hub instead of controller.
18928 All users updated. Fill hub->devices.
18929 (grub_usb_root_hub): Allocate hub->devices.
18930 (detach_device): New function.
18931 (poll_nonroot_hub): Fill children and detach devices.
18932 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18933 actual arguments. All users updated.
18934 (grub_usb_bulk_read_extended): New function.
18935 * bus/usb/serial/common.c: New file.
18936 * bus/usb/serial/ftdi.c: Likewise.
18937 * bus/usb/serial/pl2303.c: Likewise.
18938 * commands/terminal.c (handle_command): Support wildcard.
18939 * commands/usbtest.c: Output "Unknown" instead of empty string.
18940 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18941 (usbserial_common_mod_SOURCES): New variable.
18942 (usbserial_common_mod_CFLAGS): Likewise.
18943 (usbserial_common_mod_LDFLAGS): Likewise.
18944 (pkglib_MODULES): Add usbserial_pl2303.mod.
18945 (usbserial_pl2303_mod_SOURCES): New variable.
18946 (usbserial_pl2303_mod_CFLAGS): Likewise.
18947 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18948 (pkglib_MODULES): Add usbserial_ftdi.mod.
18949 (usbserial_ftdi_mod_SOURCES): New variable.
18950 (usbserial_ftdi_mod_CFLAGS): Likewise.
18951 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18952 (pkglib_MODULES): Add serial.mod.
18953 (serial_mod_SOURCES): New variable.
18954 (serial_mod_CFLAGS): Likewise.
18955 (serial_mod_LDFLAGS): Likewise.
18956 * conf/i386-pc.rmk: Likewise.
18957 * conf/mips-yeeloong.rmk: Likewise.
18958 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18959 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18960 * disk/usbms.c (first_available_slot): New variable.
18961 (grub_usbms_attach): Don't reuse free slots due to potential cache
18962 problems.
18963 * include/grub/serial.h: Moved to ..
18964 * include/grub/ns8250.h: ...this.
18965 * include/grub/serial.h: New file.
18966 * include/grub/term.h (grub_term_poll_usb): New variable.
18967 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18968 readkey. All users updated.
18969 (grub_terminfo_output_state): Pass term to put.
18970 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18971 (grub_usb_controller_dev): Add timeout and actual arguments to
18972 transfer. All users updated.
18973 (grub_usb_interface): New field detach_data.
18974 (grub_usb_device): New fields children and nports.
18975 (grub_usb_ep_type_t): New type.
18976 (grub_usb_get_ep_type): New function.
18977 (grub_usb_bulk_read_extended): Likewise.
18978 * include/grub/usbdesc.h (grub_usb_desc): New type.
18979 * include/grub/usbserial.h: New file.
18980 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18981 * kern/term.c (grub_term_poll_usb): New variable.
18982 (grub_getkey): Call grub_term_poll_usb if set.
18983 (grub_checkkey): Likewise.
18984 (grub_getkeystatus): Likewise.
18985 * term/serial.c: Moved controller-specific parts to ...
18986 * term/ns8250.c: ... here.
18987 * term/serial.c: Mostly rewritten.
18988 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18989 according to spec.
18990
21a313de
RM
189912010-08-20 Robert Millan <rmh@gnu.org>
18992
18993 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18994 a separate module and maybe other interesting combinations.
18995
18996 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18997 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18998 (kfreebsd_entry): Add generic filesystem module load routine.
18999 Map GRUB `ext2' to kFreeBSD `ext2fs'.
19000
63c734a6
CW
190012010-08-20 Colin Watson <cjwatson@ubuntu.com>
19002
19003 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
19004 "numcenter" (I misunderstood the purpose of this entry).
19005 * docs/grub.texi (sendkey): Likewise.
19006
c4d16542
CW
190072010-08-20 Colin Watson <cjwatson@ubuntu.com>
19008
19009 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
19010 status flag options; simply omitting the option is equivalent and
19011 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
19012 (keysym_table): Rename "num5numlock" to "numlock".
19013 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
19014 can uniformly say that only the last of multiple `sendkey'
19015 invocations has any effect.
19016 * docs/grub.texi (sendkey): New section.
19017
93541d66
CW
190182010-08-19 Colin Watson <cjwatson@ubuntu.com>
19019
19020 * commands/i386/pc/sendkey.c (options): Fix three typos.
19021
b4ece5e1
VS
190222010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
19023
19024 Implement sendkey support.
19025
19026 * commands/i386/pc/sendkey.c: New file.
19027 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
19028 (sendkey_mod_SOURCES): New variable.
19029 (sendkey_mod_CFLAGS): Likewise.
19030 (sendkey_mod_LDFLAGS): Likewise.
19031
51f1f5af
CW
190322010-08-18 Colin Watson <cjwatson@ubuntu.com>
19033
19034 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
19035 fix warnings from Autoconf.
19036
9da94e05
CW
190372010-08-18 Colin Watson <cjwatson@ubuntu.com>
19038
19039 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
19040 to avoid false positives with some assemblers that output things
19041 like "someprefix_func" as part of their output.
19042
729a0f2e
RM
190432010-08-15 Robert Millan <rmh@gnu.org>
19044
19045 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
19046 errors.
19047 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
19048 grub_get_libzfs_handle() errors.
19049
f3710e08
RM
190502010-08-14 Robert Millan <rmh@gnu.org>
19051
19052 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
19053 filesystem is not ZFS.
19054
7a3c13de
BC
190552010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19056
19057 Fix for misspelled color names defaulting to black/black (bug
19058 reported by Doug Nazar)
19059
19060 * include/grub/normal.h (grub_parse_color_name_pair): Add return
19061 status to prototype.
19062 * normal/color.c (grub_parse_color_name_pair): Return failure
19063 status.
19064 (grub_env_write_color_normal): Ignore bad color names.
19065 (grub_env_write_color_highlight): Likewise.
19066 * normal/main.c (GRUB_MOD_INIT): Set default color names.
19067
ab8ba50d
BC
190682010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19069
19070 "shift" command support to GRUB script.
19071
19072 * include/grub/script_sh.h (grub_script_shift): New prototype.
19073 * script/execute.c (grub_script_shift): New function.
19074 * script/main.c (grub_script_init): Register shift command.
19075 (grub_script_fini): Unregister shift command.
19076 * util/grub-script-check.c (grub_script_cmd_shift): New function.
19077
19078 * tests/grub_script_shift.in: New testcase.
19079 * conf/tests.rmk: Rules for new testcase.
19080
4d61999e
BC
190812010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19082
19083 "continue" command support to GRUB script.
19084
19085 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
19086 (grub_script_break): Continue support.
19087 * script/main.c (grub_script_init): Register continue command.
19088 (grub_script_fini): Unregister continue command.
19089
19090 * tests/grub_script_continue.in: New testcase.
19091 * conf/tests.rmk: Rules for new testcase.
19092
4df51e00
BC
190932010-08-12 BVK Chaitanya <bvk@dbook>
19094
19095 "break" command support to GRUB script.
19096
19097 * conf/common.rmk: Rule updates to grub-script-check.
19098 * include/grub/misc.h (grub_min): New function.
19099 * include/grub/script_sh.h (grub_script_init): New prototype.
19100 (grub_script_fini): New prototype.
19101 (grub_script_break): New prototype.
19102 * script/main.c (grub_script_init): New function.
19103 (grub_script_fini): New function.
19104 * script/execute.c (grub_script_break): New function.
19105 * normal/main.c: Calls to grub_script_{init,fini}.
19106 * util/grub-script-check.c (grub_script_break): New function.
19107
19108 * tests/grub_script_break.in: New testcase.
19109 * conf/tests.rmk: Rules for new test case.
19110
f12c8420
BC
191112010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19112
19113 Function parameters support to GRUB script.
19114
19115 * script/yylex.l (VARIABLE): Regular expression update.
19116 * script/function.c (grub_script_function_call): Moved ...
19117 * script/execute.c (grub_script_function_call): ... to here.
19118 (grub_script_execute_arglist_to_argv): Removed.
19119 (grub_script_arglist_to_argv): New function.
19120 * script/argv.c: New file.
19121 (grub_script_argv_free): New function.
19122 (grub_script_argv_next): Likewise.
19123 (grub_script_argv_append): Likewise.
19124 (grub_script_argv_split_append): Likewise.
19125 * include/grub/script_sh.h (grub_script_argv): New struct.
19126 (grub_script_argv_free): New function.
19127 (grub_script_argv_next): Likewise.
19128 (grub_script_argv_append): Likewise.
19129 (grub_script_argv_split_append): Likewise.
19130
19131 * conf/common.rmk (normal.mod): New source script/argv.c.
19132
19133 * tests/grub_script_echo1.in: More tests.
19134 * tests/grub_script_vars1.in: Likewise.
19135 * tests/grub_script_functions.in: New test case.
19136 * conf/tests.rmk: Rules for new testcase.
19137
8022b748
BC
191382010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19139
19140 Remove grub_script_cmdblock struct.
19141
19142 * include/grub/script_sh.h: Remove grub_script_cmdblock.
19143 * script/parser.y: Likewise.
19144 * script/execute.c: Rename cmdblock suffix to cmdlist.
19145 * script/script.c: Likewise.
19146 * util/grub-script-check.c: Likewise.
19147
79a6ba61
YB
191482010-08-11 Yves Blusseau <blusseau@zetam.org>
19149
19150 * .bzrignore: add grub-macho2img
19151
d04b9414
VS
191522010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
19153
19154 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
19155
f947ab49
VS
191562010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
19157
19158 Remove the dump of sm712 initialisation sequence.
19159
19160 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
19161 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
19162 (GRUB_VGA_IO_MISC_WRITE): Likewise.
19163 (GRUB_VGA_CR_*): Added many registers.
19164 (GRUB_VGA_SR_*): Likewise.
19165 (GRUB_VGA_GR_*): Likewise.
19166 (grub_vga_write_arx): New function.
19167 (grub_video_hw_config): New struct.
19168 (grub_vga_set_geometry): New function.
19169 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
19170 GRUB_PCI_CLASS_SUBCLASS_VGA.
19171 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
19172 * video/sm712.c (grub_sm712_write_reg): New function
19173 (grub_sm712_read_reg): Likewise.
19174 (grub_sm712_sr_write): Likewise.
19175 (grub_sm712_gr_write): Likewise.
19176 (grub_sm712_cr_write): Likewise.
19177 (grub_sm712_write_arx): Likewise.
19178 (grub_sm712_cr_shadow_write): Likewise.
19179 (grub_sm712_write_dda_lookup): Likewise.
19180 (grub_video_sm712_setup): Initialise the video rather then
19181 blindly replay the dump.
19182 (main) [TEST]: Add a routine to be able to compile as standalone for
19183 tests.
19184 * video/sm712_init.c (sm712_init): Removed.
19185 (sm712_sr_seq1): New array.
19186 (sm712_sr_seq2): Likewise.
19187
f0206638
VS
191882010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19189
19190 * include/grub/vga.h: Add missing grub/pci.h include.
19191
2764da3b
YB
191922010-08-10 Yves Blusseau <blusseau@zetam.org>
19193
19194 * util/grub-macho2img.c (main): fix typo
19195
cf0c775e
VS
191962010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19197
19198 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
19199 (grub_vga_gr_read): Likewise.
19200 (grub_vga_cr_write): Likewise.
19201 (grub_vga_cr_read): Likewise.
19202 (grub_vga_sr_write): Likewise.
19203 (grub_vga_sr_read): Likewise.
19204 (grub_vga_palette_read): Likewise.
19205 (grub_vga_palette_write): Likewise.
19206 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
19207 (grub_sm712_sr_read): New function.
19208 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
19209 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
19210
07f360e9
RM
192112010-08-09 Robert Millan <rmh@gnu.org>
19212
19213 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
19214 out unused variables on non-ZFS build.
19215
346c2072
RM
192162010-08-08 Robert Millan <rmh@gnu.org>
19217
19218 Fix path generation for sub-filesystems in ZFS.
19219
19220 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
19221 missing slash.
19222
71175420
RM
192232010-08-08 Robert Millan <rmh@gnu.org>
19224
19225 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
19226
0d8286f3
RM
192272010-08-08 Robert Millan <rmh@gnu.org>
19228
19229 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
19230 exist, issue a proper error message (rely on `ls' for translated
19231 strings).
19232
55dd2924
RM
192332010-08-08 Robert Millan <rmh@gnu.org>
19234
19235 Fix grub-probe invocation.
19236
19237 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
19238
d3dd9e80
RM
192392010-08-04 Robert Millan <rmh@gnu.org>
19240
19241 * configure.ac: Remove checks for getfsstat() and getmntany().
19242 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
19243 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
19244 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
19245 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
19246 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
19247 function.
19248 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
19249 via find_mount_point_from_dir() and getfsstat() / getmntany().
19250
0de22aa9
RM
192512010-08-04 Robert Millan <rmh@gnu.org>
19252
19253 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19254 (grub_find_zpool_from_mount_point): Merge into ...
19255 (grub_find_zpool_from_dir): ... this.
19256 * kern/emu/misc.c: Likewise.
19257
19258 * kern/emu/misc.c
19259 (grub_make_system_path_relative_to_its_root): Replace
19260 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
19261 with grub_find_zpool_from_dir().
19262 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
19263
62858144
RM
192642010-08-04 Robert Millan <rmh@gnu.org>
19265
19266 Support OpenSolaris in ZFS device resolution.
19267
19268 * configure.ac: Check for getmntany().
19269 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19270 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19271 support.
19272
9dd6fd50
RM
192732010-08-03 Robert Millan <rmh@gnu.org>
19274
19275 Fix grub-emu build.
19276
19277 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19278 * include/grub/emu/misc.h: ... here.
19279
19280 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19281 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19282
19283 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19284 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19285 (grub_get_libzfs_handle): Move to ...
19286 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19287 (grub_get_libzfs_handle): ... here.
19288
c9f7ff97
BC
192892010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19290
19291 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19292 as command name case.
19293
a870a783
CW
192942010-08-02 Colin Watson <cjwatson@ubuntu.com>
19295
19296 * disk/raid.c (insert_array): Select unique numbers for named arrays
19297 as well, for use as keys in the disk cache.
19298
c7db243b
RM
192992010-08-01 Robert Millan <rmh@gnu.org>
19300
19301 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19302 kFreeBSD device name, except on ZFS where the filesystem label is
19303 used.
19304 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19305 `/boot/zfs/zpool.cache'.
19306 Set mountfrom kernel variable using ${kfreebsd_device}.
19307
f7abdefb
RM
193082010-08-01 Robert Millan <rmh@gnu.org>
19309
19310 Make it even harder to use uninitialized `libzfs_handle' (and
19311 make the interface a bit simpler).
19312
19313 * include/grub/util/misc.h (grub_util_init_libzfs)
19314 (libzfs_handle): Remove.
19315 (grub_get_libzfs_handle): New prototype.
19316
19317 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19318 attribute.
19319 (grub_util_init_libzfs): Remove.
19320 (grub_get_libzfs_handle): New function.
19321
19322 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19323 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19324 accessing `libzfs_handle' directly.
19325
c882acc0
RM
193262010-08-01 Robert Millan <rmh@gnu.org>
19327
19328 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19329 (grub_find_zpool_from_mount_point): New function prototypes.
19330
19331 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19332 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19333
19334 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19335 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19336 `static' attribute.
19337
19338 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19339 finding zpool from mount point into ...
19340 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19341
19342 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19343 requested path is part of a ZFS pool, use
19344 grub_find_zpool_from_mount_point() to detect its filesystem name,
19345 and generate a path with `/fsname@path' syntax.
19346
8bfe31d8
CW
193472010-08-01 Colin Watson <cjwatson@ubuntu.com>
19348
19349 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19350 (void) rather than () so that this is a proper prototype.
19351
553df63d
VS
193522010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19353
19354 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19355
8687cf07
VS
193562010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19357
19358 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19359 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19360
ea9be8ea
CW
193612010-08-01 Colin Watson <cjwatson@ubuntu.com>
19362
19363 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19364
6eea041a
CW
193652010-08-01 Colin Watson <cjwatson@ubuntu.com>
19366
19367 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19368
2cfb45df
CW
193692010-08-01 Colin Watson <cjwatson@ubuntu.com>
19370
19371 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19372 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19373 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19374 disable gfxpayload.
19375 (Shell-like scripting): Add real content.
19376 (Serial terminal): Suggest `terminal_input serial; terminal_output
19377 serial' rather than putting the two commands on separate lines,
19378 since console input will be inoperative after the first command.
19379 (menuentry): Document --class, --users, and --hotkey options.
19380 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19381 Vladimir Serbinenko).
19382
7decd202
VS
193832010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
193842010-08-01 Colin Watson <cjwatson@ubuntu.com>
19385
19386 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19387
c882acc0
RM
193882010-08-01 Robert Millan <rmh@gnu.org>
19389
19390 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19391 (grub_find_zpool_from_mount_point): New function prototypes.
19392
19393 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19394 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19395
19396 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19397 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19398 `static' attribute.
19399
19400 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19401 finding zpool from mount point into ...
19402 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19403
19404 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19405 requested path is part of a ZFS pool, use
19406 grub_find_zpool_from_mount_point() to detect its filesystem name,
19407 and generate a path with `/fsname@path' syntax.
19408
deb0caa3
RM
194092010-08-01 Robert Millan <rmh@gnu.org>
19410
19411 Prevent accidental use of uninitialized libzfs_handle.
19412
19413 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19414 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19415 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19416
ce04ef47
CW
194172010-08-01 Colin Watson <cjwatson@ubuntu.com>
19418
19419 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19420 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19421
ebf53056
RM
194222010-08-01 Robert Millan <rmh@gnu.org>
19423
19424 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 19425
3710bb6b
RM
194262010-07-31 Robert Millan <rmh@gnu.org>
19427
19428 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19429
8072efeb
RM
194302010-07-31 Robert Millan <rmh@gnu.org>
19431
19432 * kern/emu/misc.c: Add missing license header.
19433
3169f4c7
RM
194342010-07-31 Robert Millan <rmh@gnu.org>
19435
19436 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19437
19438 * include/grub/util/libnvpair.h: Include `<config.h>'.
19439 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19440 declaring libnvpair prototypes ourselves.
19441 * include/grub/util/libzfs.h: Include `<config.h>'.
19442 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19443 declaring libzfs prototypes ourselves.
19444
19445 (libzfs_handle): Moved to ...
19446 * include/grub/util/misc.h (libzfs_handle): ... here.
19447 Include `<grub/util/libzfs.h>'.
19448
c9a00aee
RM
194492010-07-30 Robert Millan <rmh@gnu.org>
19450
19451 * include/grub/emu/misc.h: Add missing license header.
19452
a184f9c8
RM
194532010-07-30 Robert Millan <rmh@gnu.org>
19454
19455 Enable `grub-probe -t device' resolution on ZFS.
19456
19457 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19458 * include/grub/util/libnvpair.h: New file.
19459 * include/grub/util/libzfs.h: New file.
19460
19461 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19462 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19463 `<grub/util/libnvpair.h>'.
19464 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19465
19466 (find_mount_point_from_dir): New static function.
19467 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19468 function.
19469 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19470 find_root_device_from_libzfs() before ressorting to find_root_device().
19471
19472 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19473 prototype.
19474 * util/misc.c: Include `<grub/util/libzfs.h>'.
19475 (grub_util_init_libzfs): New function.
19476 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19477 [HAVE_LIBZFS] (fini_libzfs): New static function.
19478 (grub_util_init_libzfs): New function.
19479 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19480
f7790cdd
RM
194812010-07-30 Robert Millan <rmh@gnu.org>
19482
19483 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19484 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19485 `warn_unused_result' attribute.
19486 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19487 (grub_xasprintf, grub_xvasprintf): Likewise.
19488 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19489
0806b63c
RM
194902010-07-29 Robert Millan <rmh@gnu.org>
19491
19492 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19493 (probe): Handle `PRINT_FS_LABEL'.
19494 (main): Handle `-t fs_label'.
19495
9f841f5c
RM
194962010-07-29 Robert Millan <rmh@gnu.org>
19497
19498 * configure.ac: Remove grub-mkisofs checks.
19499
46371121
VS
195002010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19501
19502 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19503 Reported by: Lennart Sorensen.
19504
195052010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19506
19507 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19508 prior to terminal_input/terminal_output separation. It's been over 1.5
19509 years and those versions weren't widely deployed.
19510
a9600892
CW
195112010-07-22 Colin Watson <cjwatson@ubuntu.com>
19512
19513 * disk/raid.c (insert_array): Don't count named arrays when looking
19514 for unused array numbers.
697e053c 19515 Reported and tested by: Michael Guntsche.
a9600892 19516
c03507df
CW
195172010-07-20 Colin Watson <cjwatson@ubuntu.com>
19518
19519 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19520 implementation of this so that grub-emu links again, with a note
19521 that this should support hotplugging in the future.
19522
b26f1c11
CW
195232010-07-20 Colin Watson <cjwatson@ubuntu.com>
19524
19525 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19526
efc9d7f1
CW
195272010-07-20 Colin Watson <cjwatson@ubuntu.com>
19528
19529 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19530 handle on failure.
19531 (grub_loopback_close): Remove empty function.
19532 (grub_loopback_dev): Remove close method.
19533
dd8ff5c9
CW
195342010-07-20 Colin Watson <cjwatson@ubuntu.com>
19535
19536 Disable EFI cursor when the EFI console becomes inactive.
19537
19538 * term/efi/console.c (grub_efi_console_init): New function.
19539 (grub_efi_console_fini): New function.
19540 (grub_console_term_output): Register init and fini methods.
19541
5e3bec67
VS
195422010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19543
19544 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19545 sh script.
19546
afaec079
VS
195472010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19548
19549 * disk/loopback.c (grub_loopback): Replace filename with file.
19550 (delete_loopback): Handle new semantics.
19551 (grub_cmd_loopback): Likewise.
19552 (grub_loopback_iterate): Likewise.
19553 (grub_loopback_close): Likewise.
19554
a6a11f3c
VS
195552010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19556
19557 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19558 with -p "".
19559 Reported by: Tito Keitel.
19560
64a638b0
VS
195612010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19562
19563 * docs/grub.texi (Naming convention): Document new naming convention.
19564
ab8ba957
VS
195652010-07-20 Vadim Solomin <vadic052@gmail.com>
195662010-07-20 Colin Watson <cjwatson@ubuntu.com>
19567
19568 Generate device.map in something closer to the old ordering.
19569
19570 * util/deviceiter.c (struct device): New declaration.
19571 (compare_file_names): Rename to ...
19572 (compare_devices): ... this. Sort by kernel name in preference to
19573 the stable by-id name, but keep the latter as a fallback comparison.
19574 Update header comment.
19575 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19576 of `struct device' rather than of plain file names.
19577
a29d6a4b
TF
195782010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19579
19580 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19581 on i386.
19582
39d824e8
VS
195832010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19584
19585 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19586 hardcoding size.
19587 (setv1table): Likewise.
19588
f058276b
FZ
195892010-07-20 Colin Watson <cjwatson@ubuntu.com>
19590
19591 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19592 removing the homehost if present.
19593 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19594 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19595 removing the homehost if present.
19596 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19597 if possible.
19598 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19599
19600 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19601 parameter. Set its pointer target to 0.
19602 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19603 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19604 `data_offset' value from the superblock for 1.x metadata.
19605 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19606 data on the device.
19607 (insert_array): Record the start sector of data on the device.
19608 (grub_raid_register): Pass start_sector parameters to
19609 grub_raid_list->detect and insert_array.
19610 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19611 member.
19612 (struct grub_raid): Add start_sector parameter to `detect'.
19613
19614 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19615 __attribute__ ((packed)), leaving a comment.
19616 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19617 (grub_mdraid_detect_09): ... here and ...
19618 (grub_mdraid_detect_1x): ... here.
19619
196202010-07-20 Peter Henn <peter.henn@web.de>
19621
19622 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19623 chunk size and disk size, which are already given as sector counts
19624 as distinct from the 0.90 units. Fetch the correct device number
19625 from the role table instead of using the table index.
19626
196272010-07-20 Felix Zielcke <fzielcke@z-51.de>
19628
19629 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19630 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19631 (WriteMostly1): New macro.
19632 Set array->name to NULL for metadata format 0.90. Add support for
19633 metadata 1.x. Fix some comments.
19634 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19635 few comments.
19636 * util/getroot.c (grub_util_get_grub_dev): Add support for
19637 /dev/md/name style devices.
19638
4b761da9
CW
196392010-07-20 Colin Watson <cjwatson@ubuntu.com>
19640
19641 * .bzrignore: Ignore 20_linux_xen.
19642
5771289a
CW
196432010-07-17 Colin Watson <cjwatson@ubuntu.com>
19644
19645 * util/import_unicode.py: Remove unnecessary imports.
19646
5dab68df
AN
196472010-07-17 Aleš Nesrsta <starous@volny.cz>
19648
19649 Hotplugging and USB hub support.
19650
19651 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19652 (grub_ohci): Likewise.
19653 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19654 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19655 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19656 (GRUB_OHCI_CTRL_EDS): Likewise.
19657 (GRUB_OHCI_BULK_EDS): Likewise.
19658 (GRUB_OHCI_TDS): Likewise.
19659 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19660 (grub_ohci_ed_phys2virt): New function.
19661 (grub_ohci_virt_to_phys): Likewise.
19662 (grub_ohci_td_phys2virt): Likewise.
19663 (grub_ohci_td_virt2phys): Likewise.
19664 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19665 attachment.
19666 (grub_ohci_find_ed): New function.
19667 (grub_ohci_alloc_td): Likewise.
19668 (grub_ohci_free_td): Likewise.
19669 (grub_ohci_free_tds): Likewise.
19670 (grub_ohci_transfer): Use previously allocated memory.
19671 (grub_ohci_portstatus): Reset status changed bit.
19672 (grub_ohci_detect_dev): Supply status changed.
19673 (grub_ohci_fini_hw): Free memory.
19674 (grub_ohci_restore_hw): Reallocate memory.
19675 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19676 Reset status change.
19677 (grub_uhci_detect_dev): Supply status_change.
19678 * bus/usb/usb.c (attach_hooks): New var.
19679 (grub_usb_device_attach): New function.
19680 (grub_usb_register_attach_hook_class): Likewise.
19681 (grub_usb_unregister_attach_hook_class): Likewise.
19682 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19683 (grub_usb_add_hub): Reset connection changed bit.
19684 (attach_root_port): New function.
19685 (grub_usb_root_hub): Likewise.
19686 (poll_nonroot_hub): Likewise.
19687 (grub_usb_poll_devices): Likewise.
19688 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19689 * disk/usbms.c (grub_usbms_open): Use device hooks.
19690 (grub_usbms_iterate) :Poll devices.
19691 (grub_usbms_finddevs): Split into ...
19692 (grub_usbms_attach): ... this ...
19693 (grub_usbms_attach): ... and this.
19694 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19695 in detect_dev.
19696 (grub_usb_interface): New fields attached and detach_hook.
19697 (grub_usb_attach_hook_class): New type.
19698 (grub_usb_attach_desc): New struct.
19699 (grub_usb_register_attach_hook_class): New function.
19700 (grub_usb_unregister_attach_hook_class): Likewise.
19701 (grub_usb_poll_devices): Likewise.
19702 (grub_usb_device_attach): Likewise.
19703 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19704 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19705
3222efaf
VS
197062010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19707
19708 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19709 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19710 delta determination style. Works with most NetBSD partitions too.
19711
139b714a
VS
197122010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19713
19714 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19715 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19716
986aad56
VS
197172010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19718
19719 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19720
99be513c
AB
197212010-07-14 Anton Blanchard <anton@samba.org>
19722
19723 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19724 ET_DYN files.
19725
18075f62
GS
197262010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19727
19728 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19729
8d9a5b15
GS
197302010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19731
19732 * kern/partition.c (grub_partition_check_containment): New function to
19733 check that a partition is physically contained in a parent. Since
19734 offsets are relative (and non-negative), this reduces to checking that
19735 the partition ends before its parent.
19736 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19737 (grub_partition_iterate): Likewise.
19738 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19739 comments.
19740 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19741 partitions that start before their parent, and add debug printfs.
19742
19563c25
CW
197432010-07-13 Colin Watson <cjwatson@ubuntu.com>
19744
19745 * Makefile.in (.SUFFIX): Spell correctly, as ...
19746 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19747 bare module name without `.mod', e.g. `test') tried to invoke a
19748 Modula-2 compiler.
19749
1a1f1e67
CW
197502010-07-13 Colin Watson <cjwatson@ubuntu.com>
19751
19752 * README: Point to the Info manual.
19753
811b0dca
JS
197542010-07-13 Jiro SEKIBA <jir@unicus.jp>
19755
19756 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19757 2nd superblock position from partition size.
19758
e4f4eafc
CW
197592010-07-10 Colin Watson <cjwatson@ubuntu.com>
19760
19761 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19762 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19763 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19764 outputs.
19765
4274c30f
VS
197662010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19767
19768 Restructure SCSI .id handling.
19769 Reported and tested by: Aleš Nesrsta.
19770
19771 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19772 (grub_atapi_dev): Changed .name to "ata". New field .id.
19773 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19774 (grub_usbms_dev): New field .id.
19775 * disk/scsi.c (grub_scsi_iterate): Generate name.
19776 (grub_scsi_open): Parse name.
19777 * include/grub/scsi.h (grub_make_scsi_id): New function.
19778 (grub_scsi_dev): Change iterate and open to number instead of naming
19779 busses. All users updated.
19780 (grub_scsi): Remove name. Add .bus.
19781
5bc24388
VS
197822010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19783
19784 * commands/help.c (grub_cmd_help): Fix a typo.
19785
249975ba
VS
197862010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19787
19788 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19789 Reported and tested by: Colin Watson.
19790
3eaac1a1
VS
197912010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19792
19793 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19794 in this context.
19795
becce1b1
VS
197962010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19797
19798 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19799
f7bf0918
CW
198002010-07-07 Colin Watson <cjwatson@ubuntu.com>
19801
19802 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19803 indentation.
19804
0b0f9620
CW
198052010-07-06 Colin Watson <cjwatson@ubuntu.com>
19806
19807 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19808 and disk/raid6_recover.c.
19809 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19810 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19811
1e545469
CW
198122010-07-06 Colin Watson <cjwatson@ubuntu.com>
19813
19814 * term/gfxterm.c (repaint_schedulded): Rename to ...
19815 (repaint_scheduled): ... this. Update all callers.
19816 (repaint_was_schedulded): Rename to ...
19817 (repaint_was_scheduled): ... this. Update all callers.
19818
5357687a
CW
198192010-07-06 Colin Watson <cjwatson@ubuntu.com>
19820
19821 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19822 which we expect to be handled by upper layers.
19823
29d7e783
BC
198242010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19825
19826 * bus/usb/usbhub.c: #include time.h header.
19827
37582066
CW
198282010-07-06 Colin Watson <cjwatson@ubuntu.com>
19829
19830 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19831 entry_name also for entries without stat blocks (e.g. ".."); fixes
19832 corruption of the first entry in a directory.
19833
c8c06953
CW
198342010-07-06 Colin Watson <cjwatson@ubuntu.com>
19835
19836 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19837 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19838 doesn't work otherwise.
19839
e75056f1
CW
198402010-07-05 Colin Watson <cjwatson@ubuntu.com>
19841
19842 * docs/grub.texi (Features): Update list of supported file systems.
19843 (GNU/Linux): Update for GRUB 2.
19844 (Serial terminal): Remove mention of --disable-serial, which was a
19845 GRUB Legacy configure option. Update instructions to use
19846 `terminal_input' and `terminal_output' rather than `terminal'.
19847 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19848 configuration' and `Installing GRUB using grub-install'.
19849 (Menu entry editor): Update for GRUB 2.
19850 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19851 Document new -a, -u, and -v options.
19852 (initrd): New section.
19853 (initrd16): New section.
19854 (linux): New section.
19855 (linux16): New section.
19856 (search): The `var' argument to `--set' is optional.
19857 (GRUB only offers a rescue shell): Go into a little more detail on
19858 drive ordering.
19859
5cf69151
CW
198602010-07-05 Colin Watson <cjwatson@ubuntu.com>
19861
19862 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19863
e3f90044
CW
198642010-07-05 Colin Watson <cjwatson@ubuntu.com>
19865
19866 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19867 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19868
38d8f4f3
CW
198692010-07-05 Colin Watson <cjwatson@ubuntu.com>
19870
19871 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19872 install_prefix, in line with install_dos_part and install_bsd_part.
19873 Add new prefix variable, which is copied to install_prefix after
19874 comparing core.img in memory with the one read from disk in the
19875 no-embedding case, and use that rather than overwriting
19876 install_prefix immediately when installing to a partition.
19877 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19878 Bicakci.
19879
57ebd41e
GS
198802010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19881
19882 * configure.ac: Avoid == in test command, it's not portable.
19883 * util/grub.d/30_os-prober.in: Likewise.
19884
cb7f64b2
CW
198852010-07-04 Colin Watson <cjwatson@ubuntu.com>
19886
19887 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19888
6b654bb0
GS
198892010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19890
19891 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19892 multiple (top-level) partmaps.
19893
72a2026d
VS
198942010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19895
19896 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 19897 Reported by: Tino Keitel.
72a2026d 19898
df3eb88f
VS
198992010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19900
19901 Bidi and diacritics support.
19902
19903 * Makefile.in (widthspec.bin): New target.
19904 (widthspec.h): Likewise.
19905 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19906 * autogen.sh: Generate unidata.c.
19907 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19908 * commands/ls.c (grub_ls_list_devices): Likewise.
19909 (grub_ls_list_files): Likewise.
19910 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19911 (grub_mini_cmd_lsmod): Likewise.
19912 * commands/read.c: Likewise.
19913 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19914 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19915 * lib/arg.c (grub_arg_show_help): Likewise.
19916 * lib/crypto.c (grub_password_get): Likewise.
19917 * normal/auth.c (grub_username_get): Likewise.
19918 * normal/misc.c (grub_normal_print_device_info): Likewise.
19919 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19920 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19921 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19922 (normal/charset.c_DEPENDENCIES): New variable.
19923 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19924 (pkglib_MODULES): Remove charset.mod.
19925 (charset_mod_SOURCES): Removed.
19926 (charset_mod_CFLAGS): Likewise.
19927 (charset_mod_LDFLAGS): Likewise.
19928 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19929 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19930 and term/tparm.c.
19931 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19932 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19933 (kernel_img_HEADERS): Add terminfo.h.
19934 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19935 Fill ->font. Reverse ascii bitmaps.
19936 (grub_font_get_xheight): New function.
19937 * font/font.c (grub_font_get_string_width): Moved from here ...
19938 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19939 * font/font.c (grub_font_draw_string): Moved from here ...
19940 * gfxmenu/font.c (grub_font_draw_string): ... here.
19941 * font/font.c (grub_font_dup_glyph): New function.
19942 (grub_font_blit_glyph): Likewise.
19943 (grub_font_blit_glyph_mirror): Likewise.
19944 (blit_comb): Likewise.
19945 (grub_font_construct_dry_run): Likewise.
19946 (grub_font_get_constructed_device_width): Likewise.
19947 (grub_font_construct_glyph): Likewise.
19948 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19949 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19950 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19951 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19952 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19953 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19954 (grub_font_get_xheight): New proto.
19955 (grub_font_get_constructed_device_width): Likewise.
19956 (grub_font_construct_glyph): Likewise.
19957 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19958 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19959 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19960 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19961 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19962 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19963 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19964 (grub_console_getcharwidth): Likewise.
19965 * include/grub/misc.h (grub_xputs): New proto.
19966 (grub_puts): Inlined.
19967 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19968 (grub_normal_get_line_counter): Removed.
19969 (grub_install_newline_hook): Likewise.
19970 (grub_normal_get_char_counter): New proto.
19971 (grub_normal_reset_more): Likewise.
19972 (grub_xputs_normal): Likewise.
19973 * include/grub/powerpc/ieee1275/console.h: Removed.
19974 * include/grub/sparc64/ieee1275/console.h: Likewise.
19975 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19976 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19977 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19978 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19979 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19980 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19981 (grub_term_input): Pass reference to self. All users updated.
19982 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19983 Pass reference to self. New fields normal_color, highlight_color and
19984 data. All users updated.
19985 (grub_putchar): Removed.
19986 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19987 (grub_unicode_estimate_width): New function.
19988 (grub_term_getcharwidth): Add defaults.
19989 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19990 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19991 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19992 (grub_cls): Remove EXPORT_FUNC.
19993 (grub_setcolorstate): Inline.
19994 (grub_newline_hook): Removed.
19995 * include/grub/terminfo.h: Rewritten. All users updated.
19996 * include/grub/unicode.h: New file.
19997 * include/grub/video.h (grub_video_signed_rect): New type.
19998 * kern/emu/console.c (grub_console_highlight_color): Removed.
19999 (grub_console_normal_color): Likewise.
20000 (grub_console_standard_color): Made static.
20001 (grub_ncurses_putchar): Remove mapping.
20002 (grub_ncurses_getcharwidth): Removed.
20003 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20004 (grub_ncurses_setcolor): Removed.
20005 (grub_ncurses_getcolor): Likewise.
20006 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
20007 (grub_console_putchar): ... this.
20008 (grub_console_putchar): Handle argument difference.
20009 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
20010 console_init_early and console_init_lately.
20011 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
20012 * kern/misc.c (grub_puts): Removed.
20013 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
20014 (grub_vsnprintf_real): Remove str = NULL support.
20015 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
20016 * normal/charset.c (grub_utf8_to_ucs4): ... here.
20017 * kern/term.c (grub_putcode): Renamed to ...
20018 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
20019 (grub_putchar): Removed.
20020 (grub_xputs_dumb): New function.
20021 (grub_xputs): New variable.
20022 * lib/charset.c: Move from here ...
20023 * normal/charset.c: ... to here.
20024 (grub_ucs4_to_utf8): New function.
20025 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
20026 (join_types): New variable.
20027 (unpack_join): New function.
20028 (bidi_types): New variable.
20029 (unpack_bidi): New function.
20030 (get_bidi_type): Likewise.
20031 (get_join_type): Likewise.
20032 (is_mirrored): Likewise.
20033 (grub_unicode_get_comb_type): Likewise.
20034 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
20035 (is_type_after): Likewise.
20036 (grub_unicode_aglomerate_comb): Likewise.
20037 (bidi_line_wrap): Likewise.
20038 (grub_bidi_line_logical_to_visual): Likewise.
20039 (grub_bidi_logical_to_visual): Likewise.
20040 (grub_unicode_mirror_code): Likewise.
20041 (grub_unicode_shape_code): Likewise.
20042 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
20043 Don't use grub_putchar.
20044 * normal/main.c (grub_normal_init_page): Use grub_putcode.
20045 (grub_normal_reader_init): Likewise.
20046 (grub_xputs_saved): New variable.
20047 (GRUB_MOD_INIT): Set grub_xputs.
20048 (GRUB_MOD_FINI): Restore grub_xputs.
20049 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
20050 (menu_init): Avoid printing gfxmenu error.
20051 (show_menu): Use grub_normal_get_char_counter.
20052 * normal/menu_entry.c (update_screen): Fix out-of-array.
20053 (complete): Avoid NULL dereferencing.
20054 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
20055 * normal/menu_text.c (print_spaces): Removed.
20056 (grub_print_ucs4): Likewise.
20057 (grub_print_message_indented): Use grub_print_ucs4.
20058 (print_message): Use grub_putcode.
20059 (print_entry): Hanlde diacritics.
20060 * normal/term.c (term_state): New type.
20061 (grub_more_lines): Removed.
20062 (term_states): New variable.
20063 (grub_normal_line_counter): Renamed to ..
20064 (grub_normal_char_counter): ...this. All users updated.
20065 (grub_normal_get_line_counter): Renamed to ...
20066 (grub_normal_get_char_counter): ... this.
20067 (grub_normal_reset_more): New function.
20068 (process_newline): Removed.
20069 (print_more): New function.
20070 (grub_install_newline_hook): Removed.
20071 (map_code): New function.
20072 (grub_puts_terminal): Use grub_print_ucs4.
20073 (putglyph): New function.
20074 (putcode_real): Likewise.
20075 (grub_putcode): Use putcode_real.
20076 (get_maxwidth): New function.
20077 (get_startwidth): Likewise.
20078 (print_ucs4_terminal): Likewise.
20079 (find_term_state): Likewise.
20080 (put_glyphs_terminal): Likewise.
20081 (print_backlog): Likewise.
20082 (print_ucs4_real): Likewise.
20083 (grub_print_ucs4): Likewise.
20084 (grub_xputs_normal): Likewise.
20085 * term/efi/console.c (grub_console_putchar): Output diacritics.
20086 (grub_console_getcharwidth): Removed.
20087 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20088 * term/gfxterm.c (clear_char): Free chars.
20089 (scroll_up): Avoid leaking memory.
20090 (grub_gfxterm_putchar): Support diacritics.
20091 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20092 * term/i386/pc/console.c (grub_console_term_output): Declare as
20093 GRUB_TERM_CODE_TYPE_VGA.
20094 * term/i386/pc/vga.c (grub_vga_term): Declare as
20095 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
20096 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
20097 GRUB_TERM_CODE_TYPE_VGA.
20098 * term/i386/vga_common.c (map_char): Removed.
20099 (grub_console_putchar): Likewise.
20100 (grub_console_getcharwidth): Likewise.
20101 * term/ieee1275/ofconsole.c: Simplify using terminfo.
20102 (colors): Reordered to match terminfo.
20103 (grub_ofconsole_normal_color): Removed.
20104 (grub_ofconsole_writeesc): Likewise.
20105 (grub_ofconsole_highlight_color): Likewise.
20106 (grub_ofconsole_getcharwidth): Likewise.
20107 (grub_ofconsole_setcolorstate): Likewise.
20108 (grub_ofconsole_setcolor): Likewise.
20109 (grub_ofconsole_getcolor): Likewise.
20110 (grub_ofconsole_readkey): Renamed to ...
20111 (readkey): ... this. Remove escape sequence handling. Return -1 on no
20112 key.
20113 (grub_ofconsole_checkkey): Removed.
20114 (grub_ofconsole_getkey): Likewise.
20115 (grub_ofconsole_getxy): Likewise.
20116 (grub_ofconsole_gotoxy): Likewise.
20117 (grub_ofconsole_cls): Likewise.
20118 (grub_ofconsole_refresh): Likewise.
20119 (grub_ofconsole_terminfo_input): New struct.
20120 (grub_ofconsole_terminfo_output): Likewise.
20121 (grub_ofconsole_term_input): Use terminfo.
20122 (grub_ofconsole_term_output): Likewise.
20123 (grub_console_init): Split into ...
20124 (grub_console_init_early): ...this and ...
20125 (grub_console_init_lately): ...this. Use terminfo.
20126 (grub_ofconsole_putchar): Renamed to ...
20127 (put): ... this. Remove mapping.
20128 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20129 * term/serial.c: Simplify using terminfo.
20130 (xpos): Removed.
20131 (ypos): Likewise.
20132 (keep_track): Likewise.
20133 (registered): Likewise.
20134 (input_buf): Likewise.
20135 (npending): Likewise.
20136 (serial_translate_key_sequence): Likewise.
20137 (fill_input_buf): Likewise.
20138 (grub_serial_checkkey): Likewise.
20139 (grub_serial_getkey): Likewise.
20140 (grub_serial_getxy): Likewise.
20141 (grub_serial_gotoxy): Likewise.
20142 (grub_serial_putchar): Likewise.
20143 (grub_serial_cls): Likewise.
20144 (grub_serial_setcolorstate): Likewise.
20145 (grub_serial_setcursor): Likewise.
20146 (serial_hw_init): Use serial_hw_fetch.
20147 (grub_serial_terminfo_input): New variable.
20148 (grub_serial_terminfo_output): Likewise.
20149 (grub_serial_term_input): Use terminfo.
20150 (grub_serial_term_output): Likewise.
20151 * term/terminfo.c (putstr): Use put.
20152 (grub_terminfo_all_free): New function
20153 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
20154 (grub_terminfo_output_register): New function.
20155 (grub_terminfo_output_unregister): Likewise.
20156 (grub_terminfo_getxy): Likewise.
20157 (grub_terminfo_readkey): Likewise.
20158 (grub_terminfo_checkkey): Likewise.
20159 (grub_terminfo_getkey): Likewise.
20160 (grub_terminfo_input_init): Likewise.
20161 (print_terminfo): Likewise.
20162 (grub_cmd_terminfo): Handle encoding.
20163 (grub_terminfo_gotoxy): Track position.
20164 (grub_terminfo_cls): Likewise.
20165 (grub_terminfo_putchar): Likewise.
20166 (grub_terminfo_setcolorstate): Handle colors
20167 (grub_terminfo_cursor_on): This ...
20168 (grub_terminfo_cursor_off): ... and this merged into ...
20169 (grub_terminfo_setcursor): ... this.
20170 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
20171 * unicode/ArabicShaping.txt: New file (imported from Unicode).
20172 * unicode/BidiMirroring.txt: Likewise.
20173 * unicode/UnicodeData.txt: Likewise.
20174 * unicode/COPYING: Likewise.
20175 * util/grub-editenv.c (grub_putchar): Removed.
20176 (grub_xputs_real): New function.
20177 (grub_xputs): New variable.
20178 * util/grub-fstest.c (grub_putchar): Removed.
20179 (grub_xputs_real): New function.
20180 (grub_xputs): New variable.
20181 * util/grub-mkdevicemap.c (grub_putchar): Removed.
20182 (grub_xputs_real): New function.
20183 (grub_xputs): New variable.
20184 * util/grub-probe.c (grub_putchar): Removed.
20185 (grub_xputs_real): New function.
20186 (grub_xputs): New variable.
20187 * util/grub-script-check.c (grub_putchar): Removed.
20188 (grub_xputs_real): New function.
20189 (grub_xputs): New variable.
20190 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
20191 (grub_xputs_real): New function.
20192 (grub_xputs): New variable.
20193 * util/import_unicode.py: New file.
20194 * util/grub-mkfont.c (ft_errmsgs): New array.
20195 (grub_glyph_info): Make bitmap a pointer.
20196 (file_formats): New type WIDTH_SPEC.
20197 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
20198 (options): Add width-spec.
20199 (help): Likewise.
20200 (add_char): Renamed to ...
20201 (add_glyph): ... this.
20202 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
20203 (glyph_replace): New type.
20204 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
20205 (add_char): New function.
20206 (add_subst): Likewise.
20207 (process_cursive): Likewise.
20208 (add_font): Handle GSUB.
20209 (write_font_width_spec): New function.
20210 (main): Sort glyphs.
20211 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
20212 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
20213 * kern/term.c (grub_cls): Moved from here...
20214 * normal/term.c (grub_cls): ... here.
20215
50f0bcda
CW
202162010-07-02 Colin Watson <cjwatson@ubuntu.com>
20217
20218 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
20219 suitable for using within the format argument of printf when
20220 converting grub_size_t.
20221 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
20222 "x" to convert grub_size_t arguments.
20223
40372103
VS
202242010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20225
20226 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
20227 too long captions.
20228 (list_get_minimal_size): Take selection box into account.
20229
942a10c7
VS
202302010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20231
20232 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
20233 NULL font.
20234
2bdb2892
CW
202352010-07-02 Colin Watson <cjwatson@ubuntu.com>
20236
20237 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
20238 devices when iterating over /dev/disk/by-id; they will be handled
20239 later if appropriate, which they aren't always (e.g. LVM).
20240
e03ed6c1
CW
202412010-07-02 Colin Watson <cjwatson@ubuntu.com>
20242
20243 * include/grub/misc.h (grub_reboot): Declare as noreturn.
20244 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
20245 fails.
20246 (grub_halt): Likewise.
20247 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
20248 reset-all fails.
20249 (grub_halt): Don't return, even if all of shut-down, power-off, and
20250 poweroff fail.
20251
47695765
CW
202522010-07-02 Colin Watson <cjwatson@ubuntu.com>
20253
20254 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
20255 arguments, not three.
20256
507736c8
CW
202572010-07-02 Colin Watson <cjwatson@ubuntu.com>
20258
20259 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20260 * util/grub.d/10_linux.in: Use it to check for LVM, so that
20261 LVM-on-RAID is handled correctly.
20262
e3c8cd37
CW
202632010-07-02 Colin Watson <cjwatson@ubuntu.com>
20264
20265 * docs/grub.texi (Changes from GRUB Legacy): New section.
20266 (Future): Fix typo.
20267
8d4a2fec
CW
202682010-07-02 Colin Watson <cjwatson@ubuntu.com>
20269
20270 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20271 grub.d/README accidentally ends up executable for one reason or
20272 another. Ignore it.
20273
1c4827be
VS
202742010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20275
20276 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20277 (gpt_partition_map_iterate): Support non-512B sectors.
20278
d9a0c941
VS
202792010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20280
20281 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20282 Tested by: Seth Goldberg.
20283
48f27e87
VS
202842010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20285
20286 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20287 Properly align mbi.
20288 Reported by: Seth Goldberg.
20289
b0c4f956
VS
202902010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20291
20292 * util/grub-mkrescue.in: Avoid module duplication.
20293
105a2e8c
SF
202942010-07-01 Sean Finney <seanius@seanius.net>
20295
20296 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20297
5944958c
SF
202982010-07-01 Sean Finney <seanius@seanius.net>
20299
20300 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20301
203022010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20303
20304 * disk/lvm.c (grub_lvm_checkvalue): New function.
20305 (grub_lvm_check_flag): Likewise.
20306
b79889ba
RM
203072010-07-01 Robert Millan <rmh@gnu.org>
20308
20309 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20310 Support 'p' as partition separator on kernel of FreeBSD (used
20311 with GPT labels).
20312 (grub_util_biosdisk_get_grub_dev): Likewise.
20313
ec1d04f1
VS
203142010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20315
20316 Yeeloong firmware port.
20317
20318 * boot/mips/yeeloong/fwstart.S: New file.
20319 * bus/cs5536.c (gpiodump): New const.
20320 (set_io_space): New function.
20321 (set_iod): Likewise.
20322 (set_p2d): Likewise.
20323 (grub_cs5536_init_geode): Likewise.
20324 * commands/mips/yeeloong/lsspd.c: New file.
20325 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20326 (serial_mod_SOURCES): New variable.
20327 (serial_mod_CFLAGS): Likewise.
20328 (serial_mod_LDFLAGS): Likewise.
20329 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20330 term/terminfo.c and term/tparm.c.
20331 (pkglib_IMAGES): Add fwstart.img.
20332 (fwstart_img_SOURCES): New variable.
20333 (fwstart_img_CFLAGS): Likewise.
20334 (fwstart_img_ASFLAGS): Likewise.
20335 (fwstart_img_LDFLAGS): Likewise.
20336 (fwstart_img_FORMAT): Likewise.
20337 (pkglib_MODULES): Add lsspd.mod.
20338 (lsspd_mod_SOURCES): New variable.
20339 (lsspd_mod_CFLAGS): Likewise.
20340 (lsspd_mod_LDFLAGS): Likewise.
20341 (pkglib_MODULES): Add halt.mod.
20342 (halt_mod_SOURCES): New variable.
20343 (halt_mod_CFLAGS): Likewise.
20344 (halt_mod_LDFLAGS): Likewise.
20345 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20346 (serial_mod_SOURCES): Removed.
20347 (serial_mod_CFLAGS): Likewise.
20348 (serial_mod_LDFLAGS): Likewise.
20349 * disk/ata.c (check_device): New function.
20350 (grub_ata_device_initialize): Use check_device.
20351 (grub_ata_iterate): Recheck devices.
20352 (grub_ata_open): Likewise.
20353 (grub_atapi_iterate): Likewise.
20354 (grub_atapi_open): Likewise.
20355 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20356 (GRUB_ATA_CH1_PORT1): Likewise.
20357 (GRUB_ATA_CH0_PORT2): Likewise.
20358 (GRUB_ATA_CH1_PORT2): Likewise.
20359 * include/grub/mips/loongson.h: New file.
20360 * include/grub/mips/yeeloong/ec.h: Likewise.
20361 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20362 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20363 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20364 * include/grub/misc.h (grub_halt): Declare as noreturn.
20365 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20366 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20367 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20368 (UART_ENABLE_DTRRTS): Likewise.
20369 (UART_ENABLE_MODEM): Removed.
20370 (UART_ENABLE_OUT2): New const.
20371 * include/grub/term.h (grub_term_register_input_active): New function.
20372 (grub_term_register_output_active): Likewise.
20373 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20374 argument.
20375 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20376 (init_pci): New function.
20377 (grub_machine_init): Execute platform init when firmware. Init serial.
20378 (grub_halt): Implement.
20379 (grub_exit): Likewise.
20380 (grub_reboot): Likewise.
20381 * term/serial.c (serial_hw_init): Update macros.
20382 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20383 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20384 (image_targets): New target mipsel-yeeloong-flash.
20385 (generate_image): Support IMAGE_YEELOONG_FLASH.
20386 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20387 (grub_video_sm712_setup): Init card.
20388 (grub_video_sm712_set_palette): Removed.
20389 * video/sm712_init.c: New file.
20390
ff4a70d2
CW
203912010-06-30 Colin Watson <cjwatson@ubuntu.com>
20392
20393 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20394 PATH when running help2man and then run it on the unadorned
20395 executable names, rather than passing $(builddir)/* paths to
20396 help2man. This avoids the build directory ending up in generated
20397 manual pages.
20398
1246efeb
CW
203992010-06-29 Colin Watson <cjwatson@ubuntu.com>
20400
20401 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20402 to avoid accidents when debugging with 'sh -x'.
20403 * util/grub-mkrescue.in: Likewise.
20404 * util/grub.d/00_header.in: Likewise.
20405 * util/grub.d/10_hurd.in: Likewise.
20406 * util/grub.d/10_kfreebsd.in: Likewise.
20407 * util/grub.d/10_linux.in: Likewise.
20408 * util/grub.d/10_netbsd.in: Likewise.
20409 * util/grub.d/10_windows.in: Likewise.
20410 * util/grub.d/20_linux_xen.in: Likewise.
20411 * util/grub.d/30_os-prober.in: Likewise.
20412 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20413
1ba9b889
CW
204142010-06-29 Colin Watson <cjwatson@ubuntu.com>
20415
20416 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20417 last character in the buffer.
20418 Reported by: Vladimir Serbinenko.
20419
dccaf99d
RM
204202010-06-29 Robert Millan <rmh@gnu.org>
20421
20422 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20423 (Command-line and menu entry commands): Document `badram' command.
20424
d500ed12
RM
204252010-06-28 Robert Millan <rmh@gnu.org>
20426
20427 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20428 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20429 command using ${GRUB_BADRAM} as parameter.
20430
20bc84a6
CW
204312010-06-28 Colin Watson <cjwatson@ubuntu.com>
20432
20433 * docs/grub.texi (Device map): New section.
20434 (Themes): New section (stub).
20435 * Makefile.in (docs/grub.info): The info documentation now builds
20436 without errors. Make sure it stays that way.
20437
4045dee1
VS
204382010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20439
20440 Use normal parser for menu entries.
20441 Reported by: Thomas Frauendorfer
20442
20443 * include/grub/parser.h (grub_parser_execute): Don't export.
20444 * normal/menu.c (grub_menu_execute_entry_real): New function.
20445 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20446
bca58c7b
CW
204472010-06-28 Colin Watson <cjwatson@ubuntu.com>
20448
20449 * docs/grub.texi (Embedded configuration): New section (replacing
20450 old "Preset Menu" stub).
20451 (Images): New section.
20452 (configfile): Note that any menu entries defined in `file' are shown
20453 immediately.
20454
dec53e63
JT
204552010-06-28 Josh Triplett <josh@joshtriplett.org>
20456
20457 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20458
c06e40f7
CW
204592010-06-28 Colin Watson <cjwatson@ubuntu.com>
20460
20461 * util/grub-install.in: Add --debug-image= option.
20462
cb88052b
CW
204632010-06-28 Colin Watson <cjwatson@ubuntu.com>
20464
20465 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20466 possible on Linux.
20467
20468 * util/deviceiter.c (check_device): Rename to ...
20469 (check_device_readable_unique): ... this. Update all callers.
20470 Maintain and check a list of which devices (by canonicalized name)
20471 have already been seen.
20472 (clear_seen_devices): New function.
20473 (compare_file_names) [__linux__]: New function.
20474 (grub_util_iterate_devices): Clear the list of seen devices on exit
20475 and (just in case) on entry.
20476 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20477 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20478 seen-devices list, superseded by general code in check_device.
20479
bbe34652
CW
204802010-06-28 Colin Watson <cjwatson@ubuntu.com>
20481
20482 * commands/cat.c (options): New variable.
20483 (grub_cmd_cat): Parse options. If the --dos option is given, print
20484 DOS-style "\r\n" line endings as simple newlines (Debian bug
20485 #586358).
20486 (GRUB_MOD_INIT): Use extcmd.
20487 (GRUB_MOD_FINI): Likewise.
20488 * docs/grub.texi (cat): Document --dos.
20489
412e09f3
VS
204902010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20491
20492 XEN with Linux grub-mkconfig support.
20493
20494 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20495 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20496 GRUB_CMDLINE_XEN_DEFAULT.
20497 * util/grub.d/20_linux_xen.in: New file.
20498
53f3ef38 204992010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
20500
20501 Initialise VGA video on qemu ourselves.
20502
20503 * boot/i386/qemu/boot.S: Don't call 0xc000.
20504 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20505 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20506 (kernel_img_HEADERS): Add pci.h.
20507 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20508 * configure.ac: Force unifont on qemu and yeeloong.
20509 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20510 (grub_vga_palette_write): Use correct register.
20511 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20512 Call grub_qemu_init_cirrus.
20513 * kern/i386/qemu/init.c: New file.
20514 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20515
20516 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20517
c75be4fb
PR
205182010-06-26 Pavel Roskin <proski@gnu.org>
20519
20520 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20521 13.
20522
d8034603
CW
205232010-06-26 Colin Watson <cjwatson@ubuntu.com>
20524
20525 * docs/grub.texi (Simple configuration): Explain that
20526 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20527 set to `true' to disable their respective recovery entries, not
20528 merely set.
20529
3fa06487
CW
205302010-06-26 Colin Watson <cjwatson@ubuntu.com>
20531
20532 Make the `source' command slightly faster.
20533
20534 * normal/main.c (grub_normal_execute): Don't re-read list files when
20535 nested.
20536
e9b29642
CW
205372010-06-23 Colin Watson <cjwatson@ubuntu.com>
20538
20539 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20540 field position and mask size to red fields from mode_info, not
20541 green.
20542 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20543 Remove redundant tag->common.framebuffer_type assignment.
20544 Reported by: Seth Goldberg.
20545
e726542f
CW
205462010-06-23 Colin Watson <cjwatson@ubuntu.com>
20547
20548 Sync up other versions of the Linux loader with Robert Millan's
20549 change of 2010-01-09, "Make loader output a bit more user-friendly".
20550
20551 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20552 grub_dprintf().
20553 (grub_cmd_linux): Likewise.
20554 (grub_cmd_initrd): Likewise.
20555 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20556 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20557
d6e98a17
CW
205582010-06-21 Colin Watson <cjwatson@ubuntu.com>
20559
20560 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20561 larger than MEMORY_MAP_SIZE.
20562
14d3f08e
BC
205632010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20564
20565 Fix parallel build.
20566
20567 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20568 dependency.
20569 * script/parser.y: #include grub_script.tab.h header.
20570
4f9613a3
VS
205712010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20572
20573 Support >3GiB and <16MiB RAM in i386-qemu.
20574
20575 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20576 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20577 (grub_lower_mem): Removed.
20578 (grub_upper_mem): Likewise.
20579 (mem_size): Made static.
20580 (above_4g): New variable.
20581 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20582 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20583 support.
20584
05e51879
VS
205852010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20586
20587 Cirrus 5446 and Bochs video cards support.
20588
20589 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20590 video_bochs.mod
20591 (video_cirrus_mod_SOURCES): New variable.
20592 (video_cirrus_mod_CFLAGS): Likewise.
20593 (video_cirrus_mod_LDFLAGS): Likewise.
20594 (video_bochs_mod_SOURCES): Likewise.
20595 (video_bochs_mod_CFLAGS): Likewise.
20596 (video_bochs_mod_LDFLAGS): Likewise.
20597 * include/grub/vga.h: New file.
20598 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20599 (grub_video_fb_set_page_t): New type.
20600 (grub_video_fb_setup): New prototype.
20601 (grub_video_fb_swap_buffers): Likewise.
20602 (grub_video_fb_get_info_and_fini): Likewise.
20603 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20604 (CRTC_DATA_PORT): Likewise.
20605 (CRTC_CURSOR): Likewise.
20606 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20607 (CRTC_CURSOR_ADDR_LOW): Likewise.
20608 (CRTC_CURSOR_DISABLE): Likewise.
20609 (update_cursor): Use grub_vga_cr_write.
20610 (grub_vga_text_setcursor): Likewise.
20611 * video/bochs.c: New file.
20612 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20613 (palette): Likewise.
20614 (palette_size): Likewise.
20615 (framebuffer): New variable.
20616 (grub_video_fb_init): Use 'framebuffer'.
20617 (grub_video_fb_fini): Likewise.
20618 (grub_video_fb_get_info): Likewise.
20619 (grub_video_fb_get_palette): Likewise.
20620 (grub_video_fb_set_palette): Likewise.
20621 (grub_video_fb_set_viewport): Likewise.
20622 (grub_video_fb_get_viewport): Likewise.
20623 (grub_video_fb_map_color): Likewise.
20624 (grub_video_fb_map_rgb): Likewise.
20625 (grub_video_fb_map_rgba): Likewise.
20626 (grub_video_fb_unmap_color): Likewise.
20627 (grub_video_fb_unmap_color_int): Likewise.
20628 (grub_video_fb_fill_rect): Likewise.
20629 (grub_video_fb_blit_bitmap): Likewise.
20630 (grub_video_fb_blit_render_target): Likewise.
20631 (grub_video_fb_scroll): Likewise.
20632 (grub_video_fb_create_render_target): Likewise.
20633 (grub_video_fb_doublebuf_blit_init): Likewise.
20634 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20635 (doublebuf_pageflipping_update_screen): New function.
20636 (doublebuf_pageflipping_init): Likewise.
20637 (grub_video_fb_setup): Likewise.
20638 (grub_video_fb_swap_buffers): Likewise.
20639 (grub_video_fb_get_info_and_fini): Likewise.
20640 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20641 All users updated.
20642 (doublebuf_pageflipping_commit): Restructured into ...
20643 (doublebuf_pageflipping_set_page): ... this.
20644 (doublebuf_pageflipping_update_screen): Removed.
20645 (doublebuf_pageflipping_init): Likewise.
20646 (double_buffering_init): Likewise.
20647 (grub_video_vbe_setup): Use grub_video_fb_setup.
20648 (grub_video_vbe_swap_buffers): Removed.
20649 (grub_video_vbe_set_active_render_target): Likewise.
20650 (grub_video_vbe_get_active_render_target): Likewise.
20651 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20652 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20653 grub_video_fb_set_active_render_target and
20654 grub_video_fb_get_active_render_target.
20655 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20656 (SEQUENCER_DATA_PORT): Likewise.
20657 (MAP_MASK_REGISTER): Likewise.
20658 (CRTC_ADDR_PORT): Likewise.
20659 (CRTC_DATA_PORT): Likewise.
20660 (START_ADDR_HIGH_REGISTER): Likewise.
20661 (START_ADDR_LOW_REGISTER): Likewise.
20662 (GRAPHICS_ADDR_PORT): Likewise.
20663 (GRAPHICS_DATA_PORT): Likewise.
20664 (READ_MAP_REGISTER): Likewise.
20665 (INPUT_STATUS1_REGISTER): Likewise.
20666 (INPUT_STATUS1_VERTR_BIT): Likewise.
20667 (get_map_mask): Use grub_vga_sr_read.
20668 (set_map_mask): Use grub_vga_sr_write.
20669 (set_read_map): Use grub_vga_gr_write.
20670 (set_start_address): Use grub_vga_cr_write.
20671 * video/sm712.c (framebuffer): Remove leftover fields.
20672
4321c64a
CW
206732010-06-20 Colin Watson <cjwatson@ubuntu.com>
20674
20675 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20676 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20677 instead. Replace the gfxterm backend check with a check that
20678 ${GRUB_PREFIX}/video.lst is non-empty.
20679 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20680 again.
20681 (load_video): New generated function. Call it before loading
20682 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20683 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20684 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20685 * docs/grub.texi (Simple configuration): Document
20686 GRUB_VIDEO_BACKEND.
20687
206882010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20689
20690 Use video functions in linux and xnu loaders.
20691
20692 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20693 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20694 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20695 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20696 loader/i386/pc/linux.c.
20697 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20698 (find_line_len): Removed.
20699 (find_framebuf): Likewise.
20700 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20701 * loader/i386/efi/xnu.c: Removed.
20702 * loader/i386/pc/xnu.c: Moved from here...
20703 * loader/i386/xnu.c: ...here.
20704
20705 Enable priorities in video drivers.
20706
20707 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20708 (grub_video_adapter): New field prio.
20709 (grub_video_register): Respect prio when inserting.
20710 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20711 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20712 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20713 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20714 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20715 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20716 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20717
20718 Fix SDL driver ID.
20719
20720 * include/grub/video.h (grub_video_driver_id_t): New value
20721 GRUB_VIDEO_DRIVER_SDL.
20722 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20723
7d24e434
CW
207242010-06-17 Colin Watson <cjwatson@ubuntu.com>
20725
20726 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20727 argument to printf.
20728 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20729
c88a83f6
CW
207302010-06-17 Colin Watson <cjwatson@ubuntu.com>
20731
20732 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20733 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20734
094dfb69
CW
207352010-06-17 Colin Watson <cjwatson@ubuntu.com>
20736
20737 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20738 directly, and recommend grub-install instead.
20739 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20740
2164da6b
CW
207412010-06-17 Colin Watson <cjwatson@ubuntu.com>
20742
20743 Fix i386-pc prefix handling with nested partitions (Debian bug
20744 #585068). Note that the case where the core image is booted using
20745 multiboot and relocated from its original location still requires
20746 more work.
20747
20748 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20749 with "(,", fill the boot drive in between those two characters, but
20750 expect that a full partition specification including partition map
20751 names will follow.
20752 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20753 specified, write a prefix without the drive name but including a
20754 full partition specification.
20755
044e2e60
CW
207562010-06-16 Colin Watson <cjwatson@ubuntu.com>
20757
20758 * util/grub-mkconfig.in: Ignore non-option arguments, for
20759 compatibility with older versions (before 2010-06-12) which did the
20760 same. In particular, this makes it easier to ship an update-grub
20761 wrapper which is compatible with that used with GRUB Legacy (Debian
20762 bug #586056).
20763
5591324f
GS
207642010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20765
20766 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20767 for manual page generation.
20768
662e24d5
GS
207692010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20770
20771 * po/POTFILES: Remove leftover commands/handler.c.
20772
8d70754e
CW
207732010-06-14 Colin Watson <cjwatson@ubuntu.com>
20774
20775 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20776 left this script non-functional.
20777
41160e2e
CW
207782010-06-14 Colin Watson <cjwatson@ubuntu.com>
20779
20780 * docs/man/grub-emu.h2m: New file.
20781
b5309cc1
CW
207822010-06-13 Colin Watson <cjwatson@ubuntu.com>
20783
20784 * docs/grub.texi (Commands): Document reduced command set in rescue
20785 mode.
20786 (cpuid): New section.
20787
fcb2d090
GS
207882010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20789
20790 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20791 new partition naming style.
20792 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20793
96e5c556
BC
207942010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20795
20796 Add "-o grub.iso" like cmdline options support.
20797
20798 * util/grub-install.in: Improve cmdline option parsing.
20799 * util/grub-mkconfig.in: Likewise.
20800 * util/grub-mkrescue.in: Likewise.
20801 * util/grub-reboot.in: Likewise.
20802 * util/grub-set-default.in: Likewise.
20803 * util/i386/efi/grub-install.in: Likewise.
20804 * util/ieee1275/grub-install.in: Likewise.
20805 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20806
c16be99b
CW
208072010-06-12 Colin Watson <cjwatson@ubuntu.com>
20808
20809 * .bzrignore: Ignore 41_custom.
20810
ce08a9fb
TS
208112010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20812
20813 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20814
7beac90c
CW
208152010-06-12 Colin Watson <cjwatson@ubuntu.com>
20816
20817 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20818 prototype declarations.
20819
20820 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20821 generating fs, partmap, and video lists.
20822 * include/grub/fs.h (grub_fs_register): Omit prototype if
20823 GRUB_LST_GENERATOR is defined.
20824 * include/grub/partition.h (grub_partition_map_register): Likewise.
20825 * include/grub/video.h (grub_video_register): Likewise.
20826
1c8f0f8d
JM
208272010-06-12 Javier Martín <lordhabbit@gmail.com>
20828
20829 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20830
a6085973
TS
208312010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20832
20833 * util/grub-mkrescue.in: Support --xorriso argument.
20834
25c56d29
VS
208352010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20836
20837 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20838 Suggested by: Thomas Schmitt.
20839
e03e4b24
VS
208402010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20841
20842 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20843 Suggested by: Thomas Schmitt.
20844
57711df6
VS
208452010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20846
20847 custom.cfg support.
20848
20849 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20850 * util/grub.d/41_custom.in: New file.
20851
ee62c427
CW
208522010-06-12 Colin Watson <cjwatson@ubuntu.com>
20853
20854 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20855 been merged back into normal.
20856
283af07a
CW
208572010-06-11 Colin Watson <cjwatson@ubuntu.com>
20858
20859 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20860 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20861
56a0d956
CW
208622010-06-11 Colin Watson <cjwatson@ubuntu.com>
20863
20864 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20865 when generating manual pages.
20866 * docs/man/grub-bin2h.h2m: New file.
20867 * docs/man/grub-editenv.h2m: New file.
20868 * docs/man/grub-fstest.h2m: New file.
20869 * docs/man/grub-install.h2m: New file.
20870 * docs/man/grub-macho2img.h2m: New file.
20871 * docs/man/grub-mkconfig.h2m: New file.
20872 * docs/man/grub-mkdevicemap.h2m: New file.
20873 * docs/man/grub-mkfont.h2m: New file.
20874 * docs/man/grub-mkimage.h2m: New file.
20875 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20876 * docs/man/grub-mkrelpath.h2m: New file.
20877 * docs/man/grub-mkrescue.h2m: New file.
20878 * docs/man/grub-ofpathname.h2m: New file.
20879 * docs/man/grub-pe2elf.h2m: New file.
20880 * docs/man/grub-probe.h2m: New file.
20881 * docs/man/grub-reboot.h2m: New file.
20882 * docs/man/grub-script-check.h2m: New file.
20883 * docs/man/grub-set-default.h2m: New file.
20884 * docs/man/grub-setup.h2m: New file.
20885
3a37e322
VS
208862010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20887
20888 Use FOR_* macros instead of *_iterate whenever possible.
20889
20890 * commands/handler.c: Removed.
20891 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20892 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20893 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20894 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20895 (grub_probe_SOURCES): Remove kern/parser.c.
20896 (util/grub-script-check.c_DEPENDENCIES): Removed.
20897 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20898 and grub_script_check_init.c.
20899 (grub_script_check_init.lst): Removed.
20900 (grub_script_check_init.h): Likewise.
20901 (grub_script_check_init.c): Likewise.
20902 (pkglib_MODULES): Remove handler.mod and sh.mod.
20903 (handler_mod_SOURCES): Removed.
20904 (handler_mod_CFLAGS): Likewise.
20905 (handler_mod_LDFLAGS): Likewise.
20906 (normal_mod_SOURCES): Remove normal/handler.c.
20907 Add script/main.c, script/script.c, script/execute.c,
20908 script/function.c, script/lexer.c, grub_script.tab.c
20909 and grub_script.yy.c.
20910 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20911 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20912 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20913 (grub_setup_SOURCES): Remove kern/parser.c.
20914 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20915 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20916 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20917 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20918 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20919 (grub_setup_SOURCES): Remove kern/parser.c.
20920 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20921 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20922 * include/grub/command.h (grub_command_iterate): Removed.
20923 (FOR_COMMANDS): New macro.
20924 * include/grub/dl.h (grub_dl): New member next.
20925 (grub_dl_iterate): Removed.
20926 (grub_dl_head): New variable declaration.
20927 (FOR_DL_MODULES): New macro.
20928 * include/grub/fs.h: Include list.h.
20929 (grub_fs): Make next first element.
20930 (grub_fs_list): New variable declaration.
20931 (grub_fs_register): Make inline.
20932 (grub_fs_unregister): Likewise.
20933 (grub_fs_iterate): Removed.
20934 (FOR_FILESYSTEMS): New macro.
20935 * include/grub/handler.h: Removed.
20936 * include/grub/list.h (grub_list_hook_t): Removed.
20937 (grub_list_test_t): Likewise.
20938 (grub_list_pop): Likewise.
20939 (grub_list_iterate): Likewise.
20940 (grub_list_insert): Likewise.
20941 (FOR_LIST_ELEMENTS): New macro.
20942 * include/grub/parser.h (grub_parser_class): Removed.
20943 (grub_parser_register): Likewise.
20944 (grub_parser_unregister): Likewise.
20945 (grub_parser_get_current): Likewise.
20946 (grub_parser_set_current): Likewise.
20947 (grub_register_rescue_parser): Likewise.
20948 (grub_rescue_parse_line): New function.
20949 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20950 * include/grub/script_sh.h (grub_script_function_list): New variable
20951 declaration.
20952 (FOR_SCRIPT_FUNCTIONS): New macro.
20953 (grub_script_function_iterate): Removed.
20954 (grub_normal_parse_line): New prototype.
20955 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20956 (FOR_DISABLED_TERM_INPUTS): Likewise.
20957 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20958 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20959 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20960 element.
20961 (grub_video_register): Inline.
20962 (grub_video_unregister): Likewise.
20963 (grub_video_adapter_list): New variable declaration.
20964 (grub_video_iterate): Removed.
20965 (FOR_VIDEO_ADAPTERS): New macro.
20966 * kern/dl.c (grub_dl_list): Removed. All users updated.
20967 (grub_dl_iterate): Removed.
20968 * kern/fs.c (grub_fs_list): Make global.
20969 (grub_fs_register): Removed.
20970 (grub_fs_unregister): Likewise.
20971 (grub_fs_iterate): Likewise.
20972 * kern/handler.c: Removed.
20973 * kern/list.c (grub_list_pop): Removed.
20974 (grub_list_iterate): Likewise.
20975 (grub_list_insert): Likewise.
20976 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20977 (grub_prio_list_insert): Don't use grub_list_insert.
20978 * kern/main.c (grub_register_rescue_parser): Don't call
20979 grub_register_rescue_parser.
20980 * kern/parser.c (grub_parser_class): Removed.
20981 (grub_parser_execute): Use grub_rescue_parse_line.
20982 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20983 (grub_rescue_parser): Removed.
20984 (grub_register_rescue_parser): Likewise.
20985 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20986 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20987 (grub_auth_check_authentication): Likewise.
20988 * normal/completion.c (iterate_command): Removed.
20989 (grub_normal_do_completion): Use FOR_COMMANDS.
20990 * normal/handler.c: Removed.
20991 * normal/main.c (read_config_file): Remove parser changing.
20992 (grub_normal_execute): Don't call read_handler_list.
20993 (grub_normal_read_line_real): Statically allocate prompt.
20994 (grub_cmdline_run): Use grub_normal_parse_line.
20995 (GRUB_MOD_FINI): Don't call free_handler_list.
20996 * normal/menu_entry.c (run): Likewise.
20997 * script/function.c (grub_script_function_list): Make global.
20998 (grub_script_function_iterate): Removed.
20999 * script/main.c (grub_normal_parse_line): Make global.
21000 (grub_sh_parser): Removed.
21001 (GRUB_MOD_INIT): Likewise.
21002 (GRUB_MOD_FINI): Likewise.
21003 * tests/lib/functional_test.c (grub_functional_test): Use
21004 FOR_LIST_ELEMENTS.
21005 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
21006 (grub_test_run): Use FOR_LIST_ELEMENTS.
21007 * tests/lib/unit_test.c (main): Likewise.
21008 * util/deviceiter.c (grub_util_iterate_devices): Don't use
21009 grub_list_pop.
21010 * util/grub-fstest.c (grub_term_input_class): Removed.
21011 (grub_term_output_class): Likewise.
21012 * util/grub-probe.c: Likewise.
21013 * util/i386/pc/grub-setup.c: Likewise.
21014 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21015 * util/grub-script-check.c (main): Don't call grub_init_all and
21016 grub_fini_all.
21017 * video/video.c (grub_video_adapter_list): Make global.
21018 (grub_video_register): Removed.
21019 (grub_video_unregister): Likewise.
21020 (grub_video_iterate): Likewise.
21021
6289c3a7
VS
210222010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
21023
21024 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
21025 reported by Henrique Ferreiro.
21026
91460247
RM
210272010-06-09 Robert Millan <rmh@gnu.org>
21028
21029 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
21030 ones, when both are available.
21031
0ea7c4f9
GS
210322010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21033
21034 Make --version uniform and avoid hard-coded program name.
21035
21036 * util/grub-mkimage.c (main): Use `program_name' instead of
21037 hard-coded string.
21038 * util/i386/pc/grub-setup.c (main): Likewise.
21039 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
21040 * util/grub-install.in: Save the basename of $0 in $self, and use the
21041 latter in informational messages. Use the same format for --version
21042 as the binary programs.
21043 * util/grub-mkconfig.in: Likewise.
21044 * util/grub-mkrescue.in: Likewise.
21045 * util/grub-reboot.in: Likewise.
21046 * util/grub-set-default.in: Likewise.
21047 * util/i386/efi/grub-install.in: Likewise.
21048 * util/ieee1275/grub-install.in: Likewise.
21049 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21050
e8a6f3b6
GS
210512010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21052
21053 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
21054 embedding area. Use <= instead of == when checking for non-emptiness.
21055
f4d095d7
GS
210562010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21057
21058 * configure.ac: Add `.' to the directories searched for unifont.
21059
50e532ca
CW
210602010-06-08 Colin Watson <cjwatson@ubuntu.com>
21061
21062 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
21063 grub_script.yy.h.
21064
d39f3dec
CW
210652010-06-08 Colin Watson <cjwatson@ubuntu.com>
21066
21067 * docs/grub.texi (History): Expand to cover GRUB 2.
21068 (Serial terminal): Refer to `terminal_input' and `terminal_output'
21069 commands, not `terminal'.
21070 (serial): Likewise.
21071 (terminal_input): New section.
21072 (terminal_output): New section.
21073 (uppermem): New section (stub).
21074 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
21075
6ef0ddb4
CW
210762010-06-08 Colin Watson <cjwatson@ubuntu.com>
21077
21078 * docs/grub.texi (Security): Menu entries are unrestricted by
21079 default, not restricted to superusers as I had previously thought.
21080 Reword to account for this.
21081
e0f4c438
CW
210822010-06-07 Colin Watson <cjwatson@ubuntu.com>
21083
21084 * kern/emu/misc.c (device_mapper_null_log): New function.
21085 (grub_device_mapper_supported): New function.
21086 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
21087 prototype.
21088 * kern/emu/hostdisk.c (find_partition_start): Check whether
21089 device-mapper is supported before trying to use it.
21090 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
21091
da908200
CW
210922010-06-07 Colin Watson <cjwatson@ubuntu.com>
21093
21094 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
21095 (File name syntax): Likewise.
21096 (help): --all is no longer supported in GRUB 2. Be more precise
21097 about pattern matching.
21098
fb55c3ac
CW
210992010-06-07 Colin Watson <cjwatson@ubuntu.com>
21100
21101 * normal/completion.c (grub_normal_do_completion): When completing
21102 arguments to "set" and the current word contains an equals sign,
21103 skip to after the equals sign before starting completion.
21104
258c2573
CW
211052010-06-07 Colin Watson <cjwatson@ubuntu.com>
21106
21107 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
21108
ee75515e
CW
211092010-06-07 Colin Watson <cjwatson@ubuntu.com>
21110
21111 * docs/grub.texi (Network): New section.
21112 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
21113 `(nd)' as in GRUB Legacy.
21114 (pxe_unload): New section.
21115
a6a700aa
CW
211162010-06-07 Colin Watson <cjwatson@ubuntu.com>
21117
21118 * docs/grub.texi (Troubleshooting): `echo' is not usually available
21119 in the rescue shell, so recommend using `set' instead. Thanks,
21120 Jordan Uggla.
21121
4003dd38
CW
211222010-06-07 Colin Watson <cjwatson@ubuntu.com>
21123
21124 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
21125 (password): New section.
21126 (password_pbkdf2): New section.
21127 (search): New section.
21128 (Security): New section.
21129 (Troubleshooting): New section, currently very incomplete.
21130 (Invoking grub-mkpasswd-pbkdf2): New section.
21131 (Internals): New section, currently very incomplete.
21132
e1cbcc40
CW
211332010-06-07 Colin Watson <cjwatson@ubuntu.com>
21134
21135 * util/grub.d/00_header.in: Add some more quoting (of
21136 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
21137 work again.
21138 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
21139
db8fa1ad
CW
211402010-06-07 Colin Watson <cjwatson@ubuntu.com>
21141
21142 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
21143 to `count', fixing variable shadowing that broke the -c option.
21144
211452010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
21146
21147 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
21148 in case they contain spaces.
21149
f28a9212
CW
211502010-06-04 Colin Watson <cjwatson@ubuntu.com>
21151
21152 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
21153 "part_" to partmap module names, in line with grub-install.
21154 Reported by: Jindřich Makovička (Debian bug #584426).
21155
9cdfe32f
CW
211562010-06-04 Colin Watson <cjwatson@ubuntu.com>
21157
21158 * util/grub-mkimage.c: Make target-related error messages slightly
21159 more helpful; -O talks about "format". Explicitly point to the use
21160 of -O if no target is specified.
21161 Reported by: Didier Raboud (Debian bug #584415).
21162
795b593a
CW
211632010-06-03 Colin Watson <cjwatson@ubuntu.com>
21164
21165 * INSTALL: Document several build requirements for optional features
21166 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
21167
9d9b5833
GS
211682010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
21169
21170 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
21171 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
21172 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
21173
0819fec8
CW
211742010-06-02 Colin Watson <cjwatson@ubuntu.com>
21175
21176 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
21177 Thanks to Jordan Uggla for spotting this.
21178
49396b4f
VS
211792010-06-02 Aleš Nesrsta <starous@volny.cz>
21180
21181 Finally make USB usable.
21182
21183 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
21184 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
21185 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
21186 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
21187 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
21188 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
21189 (GRUB_OHCI_FSMPS): Likewise.
21190 (GRUB_OHCI_PERIODIC_START): Likewise.
21191 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
21192 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
21193 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
21194 (GRUB_OHCI_SET_PORT_RESET): Likewise.
21195 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
21196 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
21197 (grub_ohci_transaction): Likewise.
21198 (grub_ohci_transfer): Improve condition detection algorithms.
21199 Handle toggle property. Program the transactions correctly.
21200 Improve error handling. Various important fixups.
21201 (grub_ohci_portstatus): Put register writes in right order.
21202 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
21203 (grub_uhci_transfer): Don't show "failed" message on success.
21204 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
21205 array.
21206 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
21207 determine its size.
21208 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
21209 before initialization is completed. Use IN direction for empty
21210 transfers. Use last_trans and compute toggle.
21211 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
21212 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
21213 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
21214 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
21215 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
21216 (grub_usb_device): Increase toggle to 256.
21217 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
21218 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
21219 GRUB_USBMS_SUBCLASS_SFF8070.
21220 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
21221 (grub_scsi_inquiry): New member page and alloc_length.
21222 (grub_scsi_request_sense): New structure.
21223 (grub_scsi_request_sense_data): Likewise.
21224 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
21225 control.
21226 * disk/scsi.c (grub_scsi_request_sense): New function.
21227 (grub_scsi_test_unit_ready): Likewise.
21228 (grub_scsi_inquiry): Fill new fields.
21229 (grub_scsi_read_capacity): Likewise.
21230 (grub_scsi_read10): Add request sense at the end.
21231 (grub_scsi_read12): Likewise.
21232 (grub_scsi_write10): Likewise.
21233 (grub_scsi_write12): Likewise.
21234 (grub_scsi_open): Add Test Unit Ready.
21235 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
21236 Support additional subclasses. Con't clear halt yet. Activate the
21237 proper config. Calculate LUNs correctly.
21238 (grub_usbms_transfer): Various important fixups.
21239
212402010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21241
21242 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
21243 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
21244 (grub_ohci_fini_hw): New function.
21245 (grub_ohci_restore_hw): Likewise.
21246 (GRUB_MOD_INIT(ohci)): Register preboot hook.
21247 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
21248 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
21249
212502010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21251
21252 Dedicated DMA allocations.
21253
21254 * bus/pci.c (grub_memalign_dma32): New function
21255 (grub_dma_free): Likewise.
21256 (grub_dma_get_virt): Likewise.
21257 (grub_dma_get_phys): Likewise.
21258 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
21259 (grub_ohci_pci_iter): Use dma32_alloc.
21260 (grub_ohci_transfer): Likewise.
21261 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21262 (grub_usb_bulk_readwrite): Likewise.
21263 * include/grub/pci.h: Add declarations.
21264
212652010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21266
21267 CS5536 support.
21268
21269 * bus/cs5536.c: New file.
21270 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21271 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21272 (cs5536_mod_SOURCES): New variable.
21273 (cs5536_mod_CFLAGS): Likewise.
21274 (cs5536_mod_LDFLAGS): Likewise.
21275 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21276 machine/pci.h.
21277 (kernel_img_SOURCES): Add bus/cs5536.c.
21278 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21279 usb_keyboard.mod.
21280 (usb_mod_SOURCES): New variable.
21281 (usb_mod_CFLAGS): New variable.
21282 (usb_mod_LDFLAGS): New variable.
21283 (usbtest_mod_SOURCES): New variable.
21284 (usbtest_mod_CFLAGS): New variable.
21285 (usbtest_mod_LDFLAGS): New variable.
21286 (ohci_mod_SOURCES): New variable.
21287 (ohci_mod_CFLAGS): New variable.
21288 (ohci_mod_LDFLAGS): New variable.
21289 (usbms_mod_SOURCES): New variable.
21290 (usbms_mod_CFLAGS): New variable.
21291 (usbms_mod_LDFLAGS): New variable.
21292 (usb_keyboard_mod_SOURCES): New variable.
21293 (usb_keyboard_mod_CFLAGS): New variable.
21294 (usb_keyboard_mod_LDFLAGS): New variable.
21295 * include/grub/smbus.h: New file.
21296 * include/grub/cs5536.h: New file.
21297
0b35b2a9
CW
212982010-06-02 Colin Watson <cjwatson@ubuntu.com>
21299
21300 * util/grub.d/00_header.in: Add safety check to make sure that
21301 ${locale_dir} exists before trying to probe it.
21302
ca0afd5b
CW
213032010-06-02 Colin Watson <cjwatson@ubuntu.com>
21304
21305 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21306 per the GNU Coding Standards; this is now too obscure to be worth
21307 documenting.
21308 (QNX): Likewise.
21309 (chainloader): Remove cross-reference to `SCO UnixWare'.
21310
1c41aa78
CW
213112010-06-02 Colin Watson <cjwatson@ubuntu.com>
21312
21313 * docs/grub.texi (Chain-loading): New section.
21314 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21315 adjusted for GRUB 2.
21316 (SCO UnixWare): Likewise.
21317 (QNX): Likewise.
21318 (chainloader): Add reference to `Block list syntax'.
21319 (drivemap): New section.
21320 (parttool): New section.
21321
bb8ea0f5
CW
213222010-06-02 Colin Watson <cjwatson@ubuntu.com>
21323
21324 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21325 the grub shell'.
21326 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21327 (Installing GRUB using grub-install): Remove reference to the grub
21328 shell; mention `grub-mkimage' and `grub-setup' instead.
21329 (Invoking grub-install): Likewise.
21330 (Interface): Add reference to `Menu entry editor'.
21331 (serial): Remove `--device' option.
21332
288dd6ed
CW
213332010-06-02 Colin Watson <cjwatson@ubuntu.com>
21334
21335 * docs/grub.texi (Configuration): New section, documenting
21336 configuration file generation using grub-mkconfig. I've left a slot
21337 for documenting the full shell scripting format but have not yet
21338 started on writing that up.
21339 (Invoking grub-mkconfig): New section.
21340
34c9f0e9
CW
213412010-06-02 Colin Watson <cjwatson@ubuntu.com>
21342
21343 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21344 (GNU GRUB manual): Likewise.
21345 (General commands): Update description of `terminfo' for GRUB 2.
21346
9121567e
CW
213472010-06-02 Colin Watson <cjwatson@ubuntu.com>
21348
21349 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21350 (GRUB_MOD_INIT): Fix capitalisation.
21351 * docs/grub.texi (Command-line and menu entry commands): Document
21352 gettext and gptsync commands.
21353
ab631611
CW
213542010-06-02 Colin Watson <cjwatson@ubuntu.com>
21355
21356 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21357 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21358
bde4a9ac
CW
213592010-06-01 Colin Watson <cjwatson@ubuntu.com>
21360
21361 Add btrfs probing support, currently only in the single-device case.
21362
21363 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21364 function.
21365 (grub_guess_root_device): Call find_root_device_from_mountinfo
21366 before looking in /dev.
21367
b1d17e10
VS
213682010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21369
21370 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21371 GRUB_DISK_SIZE_UNKNOWN.
21372 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21373
dfbfe004
JS
213742010-05-31 Jiro SEKIBA <jir@unicus.jp>
21375
21376 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21377 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21378 corrupted or not synced properly.
21379
c2ffc8e9
VS
213802010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21381
21382 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21383 Reported by: Seth Goldberg.
21384
56293166
VS
213852010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21386
21387 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21388 addition of dest.
21389 Reported by: Seth Goldberg.
21390
7620e7de
VS
213912010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21392
21393 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21394 Reported by: Seth Goldberg.
21395
c837af3f
VS
213962010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21397
21398 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21399 64-bit address as signed on MIPS.
21400
c7c75cf4
CW
214012010-05-28 Colin Watson <cjwatson@ubuntu.com>
21402
21403 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21404 to the empty string.
21405
fa4b8490
BC
214062010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21407
21408 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21409
21410 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21411 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21412 * kern/misc.c (__enable_execute_stack): Disable on
21413 GRUB_MACHINE_EMU.
21414
a33075b9
CW
214152010-05-28 Colin Watson <cjwatson@ubuntu.com>
21416
21417 Make grub-probe work with symbolic links under /dev/mapper as well
21418 as with real block devices. The Linux world seems to be (at best)
21419 in transition here, and GRUB shouldn't get caught in the middle.
21420
21421 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21422 /dev/mapper.
21423
d8708134
CW
214242010-05-27 Colin Watson <cjwatson@ubuntu.com>
21425
21426 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21427 input files (in which case exit zero).
21428
db2102a0
CW
214292010-05-27 Colin Watson <cjwatson@ubuntu.com>
21430
21431 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21432 return NULL for various reasons even if it has a maximum-length
21433 buffer: for example, there might be a symlink loop, or the path
21434 might exceed PATH_MAX. If this happens, return NULL.
21435
5fdba519
RM
214362010-05-27 Robert Millan <rmh@gnu.org>
21437
21438 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21439 partmap module to handle cross-partmap setups.
21440 Reported by Orestes Mas. Gràcies!
21441
d1d368e4
CW
214422010-05-27 Colin Watson <cjwatson@ubuntu.com>
21443
21444 * util/grub-mkrescue.in: Initialise override_dir rather than
21445 assuming that it's unset or empty in the environment.
21446
95ac3c73
GS
214472010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21448
21449 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21450 variable index into p_index to suppress a warning with -Wshadow.
21451
7d8c0213
BC
214522010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21453
21454 * INSTALL: Added flex >= 2.5.35 requirement.
21455
db4d5813
VS
214562010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21459
f24f4300
VS
214602010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21461
21462 cmostest support.
21463
21464 * commands/i386/cmostest.c: New file.
21465 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21466 (cmostest_mod_SOURCES): New variable.
21467 (cmostest_mod_CFLAGS): Likewise.
21468 (cmostest_mod_LDFLAGS): Likewise.
21469 * conf/i386-pc.rmk: Likewise.
21470 * docs/grub.texi (Vendor power-on keys): New section.
21471 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21472 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21473 and GRUB_BUTTON_CMOS_ADDRESS.
21474 * util/grub.d/00_header.in: Handle powering-on by separate button.
21475
ad603f61
VS
214762010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21477
21478 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21479 Removed drawing_scrollbar argument. All users updated
21480 Fixes #29792.
21481 Reported by Jo Shields
21482
3ecb080a
VS
214832010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21484
21485 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21486 buffer since gfxterm handles double repaint.
21487
5f2316c1
VS
214882010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21489
21490 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21491 * term/gfxterm.c (real_scroll): Likewise.
21492
9a25f885
VS
214932010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21494
21495 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21496 before calling BIOS.
21497
39fbb79a
VS
214982010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21499
21500 * include/grub/i18n.h: Always enable grub_gettext.
21501
228cfa97
VS
215022010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21503
21504 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21505 partition naming style.
21506
21717c8f
CW
215072010-05-21 Colin Watson <cjwatson@ubuntu.com>
21508
21509 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21510 not the first option.
21511
c0f48e65
CW
215122010-05-20 Colin Watson <cjwatson@ubuntu.com>
21513
21514 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21515
96779aec
CW
215162010-05-20 Colin Watson <cjwatson@ubuntu.com>
21517
21518 * util/misc.c: Move inclusion of <limits.h> to ...
21519 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21520
fa9d256e
GS
215212010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21522
21523 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21524 Fix merge error in NetBSD code.
21525 (find_partition_start) [__NetBSD__]: Likewise.
21526
123b7a85
BC
215272010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21528
21529 Fix grub-mkrescue usage unit testing.
21530
21531 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21532
74276c0d
CF
215332010-05-18 Christian Franke <franke@computer.org>
21534
21535 * util/grub.d/10_windows.in: Use path names instead of
21536 drive letters to prevent warning from Cygwin 1.7.
21537 Add drivemap command to menuentry if needed.
21538
c4f7b523
ST
215392010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21540
21541 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21542 gnumach and gnumach.gz.
21543
95b97950
VS
215442010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21545
21546 * include/grub/i18n.h (gettext): Inline instead of using #define.
21547 (grub_gettext): Likewise.
21548 (_): Likewise.
21549
01b8d2d7
VS
215502010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21551
21552 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21553 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21554 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21555 (main): Add a slash after pkglibdirroot.
21556
654e1d1e
VS
215572010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21558
21559 * util/grub-install.in: Add missing "in" keyword.
21560
26966aeb
VS
215612010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21562
21563 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21564 Reported by: Seth Goldberg.
21565
75006747
VS
215662010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21567
21568 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21569
74cbf5bd
CW
215702010-05-18 Colin Watson <cjwatson@ubuntu.com>
21571
21572 * configure.ac: Check for Linux device-mapper support.
21573
21574 * util/hostdisk.c (device_is_mapped): New function.
21575 (find_partition_start): New function, partly broken out from
21576 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21577 device-mapper support added.
21578 (linux_find_partition): Use find_partition_start.
21579 (convert_system_partition_to_system_disk): Add `st' argument.
21580 Support Linux /dev/mapper/* devices if device-mapper support is
21581 available; only DM-RAID devices are understood at present.
21582 (find_system_device): Add `st' argument. Pass it to
21583 convert_system_partition_to_system_disk.
21584 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21585 find_system_device and convert_system_partition_to_system_disk. Use
21586 find_partition_start.
21587
21588 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21589 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21590 * util/deviceiter.c [__linux__]: Define MINOR.
21591 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21592 * util/mkdevicemap.c (grub_putchar): New function.
21593 (grub_getkey): New function.
21594 (grub_refresh): New function.
21595 (main): Set debug=all if -v -v is used.
21596
355b51e9
CW
215972010-05-18 Colin Watson <cjwatson@ubuntu.com>
21598
21599 Fix build with non-GNU libcs.
21600
21601 * util/misc.c (canonicalize_file_name): Move to ...
21602 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21603 grub_make_system_path_relative_to_its_root.
21604
7fb5c25f
CW
216052010-05-18 Colin Watson <cjwatson@ubuntu.com>
21606
21607 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21608 we handle finding grub-mkimage. Default to finding grub-mkimage in
21609 ${bindir} with program_transform_name applied, and provide a
21610 --grub-mkimage option to override this.
21611
1d3293d6
VS
216122010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21613
21614 Remove grub-mkisofs.
21615
21616 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21617 (grub_mkisofs_SOURCES): Removed.
21618 (grub_mkisofs_CFLAGS): Removed.
21619 * util/mkisofs/defaults.h: Removed.
21620 * util/mkisofs/eltorito.c: Likewise.
21621 * util/mkisofs/exclude.h: Likewise.
21622 * util/mkisofs/hash.c: Likewise.
21623 * util/mkisofs/include/: Likewise.
21624 * util/mkisofs/include/fctldefs.h: Likewise.
21625 * util/mkisofs/include/mconfig.h: Likewise.
21626 * util/mkisofs/include/prototyp.h: Likewise.
21627 * util/mkisofs/include/statdefs.h: Likewise.
21628 * util/mkisofs/iso9660.h: Likewise.
21629 * util/mkisofs/joliet.c: Likewise.
21630 * util/mkisofs/match.c: Likewise.
21631 * util/mkisofs/match.h: Likewise.
21632 * util/mkisofs/mkisofs.c: Likewise.
21633 * util/mkisofs/mkisofs.h: Likewise.
21634 * util/mkisofs/msdos_partition.h: Likewise.
21635 * util/mkisofs/multi.c: Likewise.
21636 * util/mkisofs/name.c: Likewise.
21637 * util/mkisofs/rock.c: Likewise.
21638 * util/mkisofs/tree.c: Likewise.
21639 * util/mkisofs/write.c: Likewise.
21640
5dde9afe
VS
216412010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21642
21643 Unify grub-mkimage accross platforms.
21644
21645 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21646 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21647 (grub_mkelfimage_SOURCES): Removed.
21648 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21649 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21650 (bin_UTILITIES): Add grub-mkimage.
21651 (grub_mkimage_SOURCES): New variable.
21652 (kernel_img_HEADERS): Remove machine/kernel.h.
21653 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21654 (pkglib_PROGRAMS): Add kernel.img.
21655 (kernel_img_HEADERS): Add machine/kernel.h.
21656 (kernel_img_FORMAT): Removed.
21657 (bin_UTILITIES): Remove grub-mkimage.
21658 (grub_mkimage_SOURCES): Removed.
21659 (grub_mkimage_CFLAGS): Likewise.
21660 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21661 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21662 (pkglib_PROGRAMS): Add kernel.img.
21663 (bin_UTILITIES): Remove grub-mkimage.
21664 (grub_mkimage_SOURCES): Removed.
21665 (grub_mkimage_CFLAGS): Likewise.
21666 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21667 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21668 (pkglib_PROGRAMS): Add kernel.img.
21669 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21670 (pkglib_PROGRAMS): Add kernel.img.
21671 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21672 (grub_mkimage_SOURCES): Removed.
21673 (grub_mkimage_CFLAGS): Likewise.
21674 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21675 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21676 (pkglib_PROGRAMS): Add kernel.img.
21677 (bin_UTILITIES): Remove grub-mkimage.
21678 (grub_mkimage_SOURCES): Removed.
21679 (grub_mkimage_CFLAGS): Likewise.
21680 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21681 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21682 (grub_mkimage_SOURCES): Removed.
21683 (grub_mkimage_CFLAGS): Likewise.
21684 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21685 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21686 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21687 (grub_pe32_optional_header): ... this.
21688 (grub_pe64_optional_header): ... and this. All users updated.
21689 (GRUB_PE32_PE32_MAGIC): Split into ..
21690 (GRUB_PE32_PE32_MAGIC): .. this.
21691 (GRUB_PE32_PE64_MAGIC): .. and this.
21692 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21693 * include/grub/elf.h (PT_GNU_STACK): New definition.
21694 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21695 * include/grub/i386/efi/kernel.h: Likewise.
21696 * include/grub/i386/kernel.h: Likewise.
21697 * include/grub/i386/pc/kernel.h: Likewise.
21698 * include/grub/i386/qemu/boot.h: Likewise.
21699 * include/grub/mips/kernel.h: Likewise.
21700 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21701 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21702 * include/grub/powerpc/kernel.h: Likewise.
21703 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21704 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21705 * include/grub/sparc64/kernel.h: Likewise.
21706 * include/grub/x86_64/efi/kernel.h: Likewise.
21707 * include/grub/x86_64/kernel.h: Likewise.
21708 * include/grub/offsets.h: New file.
21709 * include/grub/kernel.h (grub_module_info): Split into ...
21710 (grub_module_info32): ... this.
21711 (grub_module_info64): ... and this.
21712 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21713 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21714 (grub_boot_blocklist): Moved from here ...
21715 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21716 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21717 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21718 * include/grub/types.h (grub_target_to_host16): Removed.
21719 (grub_target_to_host32): Likewise.
21720 (grub_target_to_host64): Likewise.
21721 (grub_host_to_target16): Likewise.
21722 (grub_host_to_target32): Likewise.
21723 (grub_host_to_target64): Likewise.
21724 (grub_host_to_target_addr): Likewise.
21725
21726 Support grub-mkrescue for efi, coreboot and qemu.
21727
21728 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21729 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21730 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21731 * util/grub-mkrawimage.c: Moved from here ...
21732 * util/grub-mkimage.c: ... here. All users updated.
21733 (ALIGN_ADDR): Use image_target.
21734 (TARGET_NO_FIELD): New const.
21735 (image_target_desc): New type.
21736 (image_targets): New array.
21737 (grub_target_to_host64): Use image_target.
21738 (grub_target_to_host32): Likewise.
21739 (grub_target_to_host16): Likewise.
21740 (grub_host_to_target64): Likewise.
21741 (grub_host_to_target32): Likewise.
21742 (grub_host_to_target16): Likewise.
21743 (grub_host_to_target_addr): Likewise.
21744 (generate_image): Handle multiimage.
21745 (main): Require -O parameter. All users updated.
21746 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21747 util/efi/grub-mkimage.c
21748 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21749 New option --rom-directory.
21750 Use xorriso.
21751 * util/i386/efi/grub-mkimage.c: Removed.
21752 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21753 (grub_target_to_host32): Likewise.
21754 (grub_target_to_host64): Likewise.
21755 (grub_host_to_target16): Likewise.
21756 (grub_host_to_target32): Likewise.
21757 (grub_host_to_target64): Likewise.
21758 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21759 (grub_target_to_host32): Likewise.
21760 (grub_target_to_host64): Likewise.
21761 (grub_host_to_target16): Likewise.
21762 (grub_host_to_target32): Likewise.
21763 (grub_host_to_target64): Likewise.
21764
f4fc97d0
BC
217652010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21766
21767 Source tree is reorganized for emu build.
21768
21769 * include/grub/util/console.h: Move from here...
21770 * include/grub/emu/console.h: ...to here.
21771 * include/grub/util/getroot.h: Move from here...
21772 * include/grub/emu/getroot.h: ...to here.
21773 * include/grub/util/hostdisk.h: Move from here...
21774 * include/grub/emu/hostdisk.h: ...to here.
21775 * util/console.c: Move from here...
21776 * kern/emu/console.c: ...to here.
21777 * util/getroot.c: Move from here...
21778 * kern/emu/getroot.c: ...to here.
21779 * util/grub-emu.c: Move from here...
21780 * kern/emu/main.c: ...to here.
21781 * util/hostdisk.c: Move from here...
21782 * kern/emu/hostdisk.c: ...to here.
21783 * util/hostfs.c: Move from here...
21784 * kern/emu/hostfs.c: ...to here.
21785 * util/mm.c: Move from here...
21786 * kern/emu/mm.c: ...to here.
21787 * util/pci.c: Move from here...
21788 * bus/emu/pci.c: ...to here.
21789 * util/sdl.c: Move from here...
21790 * video/emu/sdl.c: ...to here.
21791 * util/time.c: Move from here...
21792 * kern/emu/time.c: ...to here.
21793 * util/usb.c: Move from here...
21794 * bus/usb/emu/usb.c: ...to here.
21795
21796 * include/grub/emu/misc.h: New header for grub-emu functions.
21797 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21798
21799 * conf/any-emu.rmk: Rule updates for above renames.
21800 * conf/common.rmk: Likewise.
21801 * conf/i386-pc.rmk: Likewise.
21802 * conf/i386-qemu.rmk: Likewise.
21803 * conf/mips.rmk: Likewise.
21804 * conf/sparc64-ieee1275.rmk: Likewise.
21805 * conf/x86-efi.rmk: Likewise.
21806
21807 * disk/lvm.h: #include updates for above renames.
21808 * util/grub-mkrelpath.c: Likewise.
21809 * util/grub-probe.c: Likewise.
21810 * util/i386/pc/grub-setup.c: Likewise.
21811 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21812 * kern/emu/console.c: Likewise.
21813 * kern/emu/getroot.c: Likewise.
21814 * kern/emu/hostdisk.c: Likewise.
21815 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21816
21817 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21818 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21819 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21820 * util/misc.c: Remove grub-emu functions.
21821
cced9145
VS
218222010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21823
21824 Fix gfxmenu crash.
21825 Reported by: Thorsten Grützmacher.
21826
21827 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21828 timeout hook.
21829 (circprog_set_property): Register and unregister timeout hook.
21830 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21831 (label_destroy): Free template. and unregister hook.
21832 (label_set_state): New function.
21833 (label_set_property): Handle templates and hooks.
21834 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21835 timeout hook.
21836 (progress_bar_set_property): Register and unregister timeout hook.
21837 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21838 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21839 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21840 (update_timeout_visit): Removed.
21841 (update_timeouts): New function.
21842 (redraw_timeouts): Likewise.
21843 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21844 (grub_gfxmenu_clear_timeout): Likewise.
21845 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21846 (grub_gfxmenu_timeout_notify): Likewise.
21847 (grub_gfxmenu_timeout_notifications): New external variable.
21848 (grub_gfxmenu_timeout_register): New function.
21849 (grub_gfxmenu_timeout_unregister): Likewise.
21850
c6e5caab
VS
218512010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21852
21853 Transform (broken) vga terminal into (working) vga video driver.
21854
21855 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21856 video/i386/pc/vga.c.
21857 * include/grub/video.h (grub_video_driver_id):
21858 Add GRUB_VIDEO_DRIVER_VGA.
21859 * term/i386/pc/vga.c: Renamed to ...
21860 * video/i386/pc/vga.c: ...this
21861 (DEBUG_VGA): Removed.
21862 (CHAR_WIDTH): Likewise.
21863 (CHAR_HEIGHT): Likewise.
21864 (TEXT_WIDTH): Likewise.
21865 (TEXT_HEIGHT): Likewise.
21866 (DEFAULT_FG_COLOR): Likewise.
21867 (DEFAULT_BG_COLOR): Likewise.
21868 (colored_char): Likewise.
21869 (xpos): Likewise.
21870 (ypos): Likewise.
21871 (cursor_state): Likewise.
21872 (fg_color): Likewise.
21873 (bg_color): Likewise.
21874 (text_buf): Likewise.
21875 (page): Likewise.
21876 (font): Likewise.
21877 (framebuffer): New variable.
21878 (set_read_map): Disabled.
21879 (setup): New variable.
21880 (is_target): Likewise.
21881 (grub_vga_mod_init): Likewise.
21882 (grub_vga_mod_fini): Likewise.
21883 (check_vga_mem): Likewise.
21884 (write_char): Likewise.
21885 (write_cursor): Likewise.
21886 (scroll_up): Likewise.
21887 (grub_vga_putchar): Likewise.
21888 (grub_vga_getcharwidth): Likewise.
21889 (grub_vga_getwh): Likewise.
21890 (grub_vga_getxy): Likewise.
21891 (grub_vga_gotoxy): Likewise.
21892 (grub_vga_cls): Likewise.
21893 (grub_vga_setcolorstate): Likewise.
21894 (grub_vga_setcursor): Likewise.
21895 (grub_video_vga_init): New function.
21896 (grub_video_vga_setup): Likewise.
21897 (grub_video_vga_fini): Likewise.
21898 (update_target): Likewise.
21899 (grub_video_vga_blit_bitmap): Likewise.
21900 (grub_video_vga_blit_render_target): Likewise.
21901 (grub_video_vga_set_active_render_target): Likewise.
21902 (grub_video_vga_get_active_render_target): Likewise.
21903 (grub_video_vga_swap_buffers): Likewise.
21904 (grub_video_vga_set_palette): Likewise.
21905 (grub_video_vga_get_info_and_fini): Likewise.
21906 (grub_vga_term): Removed.
21907 (grub_video_vga_adapter): New variable.
21908 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21909 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21910
2bf61a98
VS
219112010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21912
21913 * video/readers/jpeg.c: Indented.
21914
09ddcd11
VS
219152010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21916
21917 Various jpeg cleanups.
21918
21919 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21920 (grub_jpeg_decode_quan_table): Use sizeof.
21921 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21922
e5507505
PH
219232010-05-05 Peter Hurley <No e-mail available> (tiny change)
21924
21925 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21926 tables. Ignore non-last ac bit.
21927 (grub_jpeg_decode_quan_table): Likewise.
21928
7e720a9b
VS
219292010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21930
21931 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21932 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21933 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21934 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21935 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21936 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21937
a7fc080b
VS
219382010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21939
21940 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21941 error.
21942
2bf6012d
VS
219432010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21944
21945 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21946
265d68cd
VS
219472010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21948
21949 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21950 condition.
21951
219522010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
21953
21954 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21955 part.
21956
265d68cd 219572010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
21958
21959 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21960 pointers.
21961
265d68cd 219622010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
21963
21964 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21965
d1b61374
CF
219662010-05-01 Christian Franke <franke@computer.org>
21967
21968 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21969 Remove broken Cygwin path conversion.
21970 * util/misc.c: [__CYGWIN__] Add include and define.
21971 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21972 for Cygwin 1.7.
21973 (make_system_path_relative_to_its_root): Simplify loop, replace early
21974 return by break.
21975 [__CYGWIN__] Add conversion to win32 path.
21976 Include "/" case in trailing slash removal.
21977
3558c6e9
VS
219782010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21979
21980 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21981 Reported by: Seth Goldberg
21982
f5f3ff93
VS
219832010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21984
21985 * commands/help.c (grub_cmd_help): Fix a typo.
21986 Reported by: Seth Goldberg
21987
d8b5cd40
VS
219882010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21989
21990 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21991 name and add N_.
21992 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21993 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21994 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21995 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21996 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21997 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21998 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21999 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
22000 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
22001 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
22002 * normal/context.c (GRUB_MOD_INIT): Likewise.
22003 * normal/main.c (GRUB_MOD_INIT): Likewise.
22004 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
22005 * term/serial.c (GRUB_MOD_INIT): Likewise.
22006 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
22007
88c14915
VS
220082010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22009
22010 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
22011 extra == 0.
22012
165134bc
VS
220132010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22014
22015 * commands/iorw.c: New file.
22016 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
22017 (iorw_mod_SOURCES): New variable.
22018 (iorw_mod_CFLAGS): Likewise.
22019 (iorw_mod_LDFLAGS): Likewise.
22020
c5ac9b32
VS
220212010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22022
22023 Hotkey support
22024
22025 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
22026 * normal/main.c (hotkey_aliases): New variable.
22027 (grub_normal_add_menu_entry): Parse "--hotkey".
22028 * normal/menu_text.c (run_menu): Handle hotkeys.
22029
ce60689c
VS
220302010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22031
22032 * kern/i386/coreboot/init.c (grub_machine_init): Call
22033 grub_machine_mmap_init on qemu.
22034
0359d006
VS
220352010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22036
22037 * boot/i386/qemu/boot.S: Add a missing .code16.
22038
7819a456
VS
220392010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22040
22041 Use LBIO on coreboot.
22042
22043 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
22044 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
22045 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
22046 New declaration.
22047 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
22048 grub_machine_mmap_init on coreboot.
22049 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
22050 GRUB_LINUXBIOS_MEMBER_LINK.
22051 (grub_machine_mmap_iterate): Fix declaration.
22052 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
22053
7210dca9
VS
220542010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22055
22056 Split coreboot and multiboot ports.
22057
22058 * conf/i386-multiboot.rmk: New file.
22059 * configure.ac: Add multiboot port.
22060 * include/grub/i386/multiboot/boot.h: New file.
22061 * include/grub/i386/multiboot/console.h: Likewise.
22062 * include/grub/i386/multiboot/init.h: Likewise.
22063 * include/grub/i386/multiboot/kernel.h: Likewise.
22064 * include/grub/i386/multiboot/loader.h: Likewise.
22065 * include/grub/i386/multiboot/memory.h: Likewise.
22066 * include/grub/i386/multiboot/serial.h: Likewise.
22067 * include/grub/i386/multiboot/time.h: Likewise.
22068 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
22069 * loader/multiboot.c: Likewise.
22070 * loader/multiboot_mbi2.c: Likewise.
22071 * util/grub-mkrescue.in: Generate multiboot rescue.
22072
6f8aaf68
VS
220732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22074
3080f7a7
VS
22075 * kern/parser.c (grub_parser_execute): Cope with read-only config.
22076
220772010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22078
22079 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
22080
22081 * commands/terminal.c (abstract_terminal): New struct.
22082 (handle_command): New function. Based on grub_cmd_terminal_input.
22083 (grub_cmd_terminal_input): Use handle_command.
22084 (grub_cmd_terminal_output): Use handle_command.
22085
a8ebb841
BC
220862010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
22087
22088 Fix comment handling.
22089
22090 * tests/grub_script_comments.in: New testcase.
22091 * conf/tests.rmk: Rules for new testcase.
22092 * script/yylex.l: Updated flex rules.
22093
bb06ba08
ST
220942010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
22095
22096 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
22097 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
22098 if argc is 1.
bb06ba08 22099
cc9d2425
VS
221002010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22101
22102 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
22103 autogen issues.
22104
460d8402
CF
221052010-04-26 Christian Franke <franke@computer.org>
22106
22107 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
22108 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
22109 (grub_get_prefix): Remove function.
22110 * util/grub-emu.c (main): Replace grub_get_prefix () call by
22111 make_system_path_relative_to_its_root ().
22112 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
22113
553c01f9
CF
221142010-04-24 Christian Franke <franke@computer.org>
22115
22116 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
22117 (kernel_img_LDFLAGS): Remove -static-libgcc.
22118
2aec1692
CF
221192010-04-24 Christian Franke <franke@computer.org>
22120
22121 * configure.ac: Do not CHECK_BSS_START_SYMBOL
22122 and CHECK_END_SYMBOL if grub-emu is built.
22123 Unset TARGET_OBJ2ELF if grub-emu is built
22124 without module support.
22125
f67dc308
JS
221262010-04-24 Jiro SEKIBA <jir@unicus.jp>
22127
22128 Nilfs2 support.
22129
22130 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
22131 (grub_fstest_SOURCES): Likewise.
22132 (pkglib_MODULES): Add nilfs2.mod.
22133 (nilfs2_mod_SOURCES): New variable.
22134 (nilfs2_mod_CFLAGS): Likewise.
22135 (nilfs2_mod_LDFLAGS): Likewise.
22136 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
22137 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
22138 * fs/nilfs2.c: New file.
22139
4ba8d354
VS
221402010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
22141
22142 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
22143 is not supported.
22144
0d2c20c6
GS
221452010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
22146
22147 Add grub-mkconfig support for NetBSD.
22148
22149 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
22150 * util/grub-mkconfig.in: export new NetBSD specific variables.
22151 * po/POTFILES-shell: added 10_netbsd.in.
22152 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
22153
bc4a2d83
BC
221542010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
22155
22156 Fix emu build with grub-emu-pci and grub-emu-modules.
22157
22158 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
22159 functions.
22160 * include/grub/libpciaccess.h: New file.
22161 * conf/any-emu.rmk: Update kernel headers for emu build.
22162
f48c87aa
VS
221632010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22164
22165 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
22166
18959385
VS
221672010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22168
22169 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
22170
0037de3f
VS
221712010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22172
22173 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
22174 Retrieve chosen/bootpath if bootpath isn't hardcoded.
22175 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
22176 util/ieee1275/ofpath.c.
22177 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
22178 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
22179 * include/grub/sparc64/ieee1275/boot.h
22180 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
22181 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
22182 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
22183 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
22184 const char *.
22185 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
22186 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
22187 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
22188 install.
22189
38e55e90
GS
221902010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22191
22192 * util/grub-mkconfig.in: Corrected two == equality tests.
22193 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
22194 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
22195 expect a number appended to it.
22196 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
22197 expects a number appended to it.
22198
a9e6ff28
VS
221992010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22200
22201 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
22202
0b830b8f
VS
222032010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22204
22205 * util/hostdisk.c (make_device_name): Change to new partition naming.
22206
0973daeb
VS
222072010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
22208
22209 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
22210
460d8402 222112010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
22212
22213 * Makefile.in: Add missing localedir setting.
22214
0b456309
CW
222152010-04-14 Colin Watson <cjwatson@ubuntu.com>
22216
22217 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
22218 mistake in r2156. Noticed by Anthony Fok.
22219
22220 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
22221 @localedir@.
22222 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
22223
08f46d62
BC
222242010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
22225
22226 Fix a spurious, uninitialized variable warning.
22227
22228 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
22229 Initialize variable, shdr.
22230 (grub_freebsd_load_elfmodule): Likewise.
22231 (grub_freebsd_load_elf_meta): Likewise.
22232
8c4a72d4
BC
222332010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
22234
22235 Fix for escaped dollar in double quoted strings.
22236
22237 * script/yylex.l: Updated flex rules.
22238 * conf/tests.rmk: Rule for new testcase.
22239 * tests/grub_script_dollar.in: New testcase.
22240
ce44826e
CPE
222412010-04-13 Carles Pina i Estany <carles@pina.cat>
222422010-04-13 Colin Watson <cjwatson@ubuntu.com>
22243
22244 Enclose all translated strings in grub.cfg in single quotes, and
22245 escape them appropriately (Ubuntu bug #552921).
22246
22247 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
22248 * util/grub.d/10_hurd.in: Use it.
22249 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22250 * util/grub.d/10_linux.in (linux_entry): Likewise.
22251
4b0cd8f8
VS
222522010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22253
22254 Fix cygwin compilation.
22255
22256 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
22257 * include/grub/misc.h (__register_frame_info)
22258 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
22259 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22260 * kern/misc.c (__register_frame_info)
22261 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
22262 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22263
01fcf061
VS
222642010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22265
22266 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22267
5d04b11e
VS
222682010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22269
22270 Unify libgcc processing.
22271
22272 * Makefile.in (kernel_img_LDFLAGS): New variable.
22273 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22274 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22275 overwriting.
22276 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22277 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22278 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22279 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22280 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22281 overwriting. Remove -lgcc and -static-libgcc
22282 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22283 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22284 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22285 (kernel_img_LDFLAGS): Append instead of overwriting.
22286 Remove -lgcc and -static-libgcc
22287 * conf/sparc64-ieee1275.rmk: Likewise.
22288 * include/grub/powerpc/libgcc.h: Move to ...
22289 * include/grub/libgcc.h: .. this.
22290 * include/grub/libgcc.h: Don't export most of the function on x86.
22291 (__bswapsi2): New export.
22292 (__bswapdi2): Likewise.
22293 * include/grub/mips/libgcc.h: Removed.
22294 * include/grub/sparc64/libgcc.h: Likewise.
22295
b7f3ac29
VS
222962010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22297
22298 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22299 disk_info_msg (conflicts with gettexting into languages with cases).
22300
2c7031b1
GS
223012010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22302
22303 Add grub-probe support for NetBSD.
22304
22305 * util/getroot.c (find_root_device): Convert block device to
22306 character device on NetBSD.
22307 * util/probe.c (probe): Require character device on NetBSD.
22308 * util/hostdisk.c: NetBSD specific headers.
22309 (configure_device_driver): new function to tune device driver
22310 parameters (currently only for NetBSD floppy driver).
22311 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22312 via disklabel ioctl).
22313 (open_device): call configure_device_driver on NetBSD.
22314 (convert_system_partition_to_system_disk): NetBSD specific code.
22315 (device_is_wholedisk): Likewise.
22316 (grub_util_biosdisk_get_grub_dev): Likewise.
22317 (make_device_name): Fixed a typo in bsd_part_str.
22318 * configure.ac: check for opendisk() and getrawpartition() on
22319 NetBSD and set LIBUTIL.
22320 * Makefile.in: add LIBUTIL to LIBS.
22321
f516290c
BC
223222010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22323
22324 Documentation fix.
22325
22326 * util/grub-script-check.c: Better help message.
22327
d8dcc0df
BC
223282010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22329
22330 Fix FreeBSD build.
22331
22332 * configure.ac: Flex version check.
22333 * conf/common.rmk: Add -Wno-error to sh.mod.
22334 * script/yylex.l: Remove all #pragma.
22335
6734334a
VS
223362010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22337
22338 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22339 prototype.
22340 Reported by: Seth Goldberg.
22341
daea6abd
VS
223422010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22343
22344 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22345 Rename "module" to "module2".
22346 Reported by: Seth Goldberg.
22347
f2fd9d2b
VS
223482010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22349
22350 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22351 EXPORT_FUNC.
22352 Reported by: Seth Goldberg.
22353
be124579
VS
223542010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22355
22356 * lib/posix_wrap/locale.h: Add missing file.
22357 Reported by: Seth Goldberg.
22358
ef5da797
VS
223592010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22360
22361 grub-emu module load support.
22362
22363 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22364 NO_DYNAMIC_MODULES switched to this.
22365 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22366 (CFLAGS): Likewise.
22367 * conf/any-emu.rmk: Generate symlist.
22368 (kernel_img_HEADERS): Add util/datetime.h.
22369 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22370 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22371 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22372 kern/$(target_cpu)/cache.S.
22373 * configure.ac (grub-emu-modules): New option.
22374 * genmk.rb: Handle multiple source lists.
22375 * include/grub/sdl.h: New file.
22376 * include/grub/libusb.h: Likewise.
22377 * util/grub-emu.c (main): Hanle (host) root.
22378 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22379 GRUB_ERR_UNKNOWN_DEVICE.
22380 * util/misc.c: Move mm functions to ...
22381 * util/mm.c: ... here. All users updated.
22382
47822096
VS
223832010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22384
22385 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22386 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22387 missing files.
22388 (maintainer-clean): Remove libgcrypt-grub.
22389
5d7e7445
VS
223902010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22391
22392 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22393
25f4e252
EC
223942010-04-09 EFI Coder <eficoder@hotmail.com>
22395
22396 * normal/menu_text.c (print_message): Clean up the message and show
22397 the Fn information when on EFI
22398 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22399
027de555
VS
224002010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22401
22402 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22403 All users updated.
22404 * normal/crypto.c (read_crypto_list): Likewise.
22405 * normal/dyncmd.c (read_command_list): Likewise.
22406 * normal/term.c (read_terminal_list): Likewise.
22407 * normal/main.c (read_lists): Use explicit prefix.
22408 (read_lists_hook): Use read_lists.
22409 (grub_normal_execute): Likewise.
22410
47779711
VS
224112010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22412
22413 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22414 Reported by: Thomas Schmitt.
22415 Add -no-emul-boot to grub-mkisofs parameters.
22416
1118c32e
VS
224172010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22418
22419 * font/font.c: Indented.
22420
7d652447
BC
224212010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22422
22423 Elif support to GRUB script (by Deepak Vankadaru).
22424
22425 * tests/grub_script_if.in: New testcase.
22426 * conf/tests.rmk: Rule for new testcase.
22427 * script/parser.y: Grammar rules for elif.
22428
34bb22df
BC
224292010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22430
22431 While and until loops support to GRUB script.
22432
22433 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22434 (grub_script_create_cmdwhile): New function prototype.
22435 (grub_script_execute_cmdwhile): New function prototype.
22436 * script/execute.c (grub_script_execute_cmdwhile): New function.
22437 * script/parser.y (command): New commands.
22438 (whilecmd): New grammar rule.
22439 (untilcmd): New grammar rule.
22440 * script/script.c (grub_script_create_cmdwhile): New function.
22441 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22442 function.
22443
22444 * tests/grub_script_while1.in: New testcase.
22445 * conf/tests.rmk: Rule for new testcase.
22446
e215d8e0
VS
224472010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22448
22449 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22450 as *.jpg.
22451
d7c43ba1
MV
224522010-04-09 Mario Vazquez <mariovazq@gmail.com>
22453
22454 GRUB_BACKGROUND support.
22455
22456 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22457 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22458
d64795c0
VS
224592010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22460
22461 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 22462 Idea by: Mario Vazquez
d64795c0
VS
22463
22464 * util/grub.d/00_header.in: Load pf2 and image modules.
22465
f267f83a
VS
224662010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22467
22468 grub-mkconfig multiple terminal support.
22469
22470 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22471 * util/grub.d/00_header.in: Likewise.
22472
b7841ceb
VS
224732010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22474
22475 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22476 we use cd $(srcdir).
22477
df60998c
CW
224782010-04-08 Colin Watson <cjwatson@ubuntu.com>
22479
22480 * util/grub.d/10_linux.in: Only use the first word of
22481 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22482 spaces in GRUB_DISTRIBUTOR.
22483 * util/grub.d/10_kfreebsd.in: Likewise.
22484 * util/grub.d/10_hurd.in: Likewise.
22485
fa09c82e
BC
224862010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22487
14e18ae3 22488 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
22489
22490 * tests/util/grub-shell.in: Remove -serial stdio option.
22491
daf892b3
BC
224922010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22493
22494 POSIX header file wrappers.
22495
22496 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22497 equivalents.
22498 * lib/posix_wrap/ctype.h: Likewise.
22499 * lib/posix_wrap/errno.h: Likewise.
22500 * lib/posix_wrap/langinfo.h: Likewise.
22501 * lib/posix_wrap/limits.h: Likewise.
22502 * lib/posix_wrap/localcharset.h: Likewise.
22503 * lib/posix_wrap/stdint.h: Likewise.
22504 * lib/posix_wrap/stdio.h: Likewise.
22505 * lib/posix_wrap/stdlib.h: Likewise.
22506 * lib/posix_wrap/string.h: Likewise.
22507 * lib/posix_wrap/sys/types.h: Likewise.
22508 * lib/posix_wrap/unistd.h: Likewise.
22509 * lib/posix_wrap/wchar.h: Likewise.
22510 * lib/posix_wrap/wctype.h: Likewise.
22511 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22512 (grub_script.yy.h): Likewise.
22513 * script/yylex.l: Remove POSIX emulation #defines.
22514 * Makefile.in (POSIX_CFLAGS): New variable.
22515 (GNULIB_UTIL_CFLAGS): Likewise.
22516
22517 Regexp support.
22518
22519 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22520 (regexp_mod_SOURCES): New variable.
22521 (regexp_mod_CFLAGS): Likewise.
22522 (regexp_mod_LDFLAGS): Likewise.
22523 * commands/regexp.c: New file.
22524 * gnulib/regcomp.c: New file. Imported from gnulib.
22525 * gnulib/regex.c: Likewise.
22526 * gnulib/regex_internal.c: Likewise.
22527 * gnulib/regex_internal.h: Likewise.
22528 * gnulib/regexec.c: Likewise.
22529 * gnulib/regex.h: Likewise.
22530
974ac4f7
VS
225312010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22532
22533 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22534 unsupported video mode types.
22535
2622c3ff
VS
225362010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22537
22538 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22539
064cb524
VS
225402010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22541
22542 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22543 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22544
a8c3b552
VS
225452010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22546
22547 Remove unused grub_vga_get_font.
22548
22549 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22550 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22551
187bbe3d
GS
225522010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22553
22554 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22555 * include/grub/misc.h: Likewise.
22556
b9396631
GS
225572010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22558
22559 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22560 for which failure is fatal.
22561
50479feb
GS
225622010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22563
22564 * util/grub-install.in: Use mkdir -p to create grub directory.
22565 * util/i386/efi/grub-install.in: Likewise.
22566 * util/ieee1275/grub-install.in: Likewise.
22567
b1654fdf
GS
225682010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22569
22570 * Makefile.in (LEX): new variable.
22571
bd5a6415
GS
225722010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22573
22574 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22575 `=' and added double quotes on operands of this equality test.
22576
3db3a82b
VS
225772010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22578
22579 * Makefile.in (uninstall): Remove a leftover debug echo.
22580 Reported by: Grégoire Sutre
22581
38023412
VS
225822010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22583
22584 MIPS multiboot2 support.
22585
22586 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22587 (multiboot2_mod_SOURCES): New variable.
22588 (multiboot2_mod_CFLAGS): Likewise.
22589 (multiboot2_mod_LDFLAGS): Likewise.
22590 (multiboot2_mod_ASFLAGS): Likewise.
22591 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22592 definition.
22593 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22594 (MULTIBOOT_MBI_REGISTER): Likewise.
22595 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22596 (MULTIBOOT_ELF32_MACHINE): Likewise.
22597 (MULTIBOOT_ELF64_MACHINE): Likewise.
22598 * include/grub/mips/multiboot.h: New file.
22599 * include/grub/video.h (grub_video_driver_id): New type
22600 GRUB_VIDEO_DRIVER_SM712.
22601 (grub_video_get_info_and_fini): Export.
22602 (grub_video_get_palette): Likewise.
22603 (grub_video_get_driver_id): Likewise.
22604 * include/multiboot2.h: Resynced with spec.
22605 * loader/i386/multiboot.c: Moved from here ...
22606 * loader/multiboot.c: ... here. All users updated.
22607 (grub_multiboot_boot): Use platform-specific macros.
22608 * loader/i386/multiboot_elfxx.c: Moved from here ...
22609 * loader/multiboot_elfxx.c: ... here. All users updated.
22610 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22611 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22612 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22613
47674667
VS
226142010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22615
22616 Import gnulib argp module.
22617
22618 * gnulib/argp-ba.c: New file.
22619 * gnulib/argp-eexst.c: Likewise.
22620 * gnulib/argp-fmtstream.c: Likewise.
22621 * gnulib/argp-fmtstream.h: Likewise.
22622 * gnulib/argp-fs-xinl.c: Likewise.
22623 * gnulib/argp-help.c: Likewise.
22624 * gnulib/argp-namefrob.h: Likewise.
22625 * gnulib/argp-parse.c: Likewise.
22626 * gnulib/argp-pin.c: Likewise.
22627 * gnulib/argp-pv.c: Likewise.
22628 * gnulib/argp-pvh.c: Likewise.
22629 * gnulib/argp-version-etc.c: Likewise.
22630 * gnulib/argp-version-etc.h: Likewise.
22631 * gnulib/argp-xinl.c: Likewise.
22632 * gnulib/argp.h: Likewise.
22633
495442ed
VS
226342010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22635
22636 * kern/device.c (grub_device_iterate): Clear errors after failed
22637 opening device.
22638
f9fd65df
VS
226392010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22640
22641 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22642 returned by firmware.
22643
af09641e
VS
226442010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22645
22646 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22647 compilation on coreboot and qemu
22648
016883a5
VS
226492010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22650
22651 * include/multiboot2.h: Resync with spec.
22652
f97e1f7d
VS
226532010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22654
22655 Multiboot2 tag support
22656
22657 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22658 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22659 Remove loader/multiboot_loader.c.
22660 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22661 (grub_multiboot2_real_boot): Likewise.
22662 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22663 (grub_get_multiboot_mmap_count): New proto.
22664 (grub_fill_multiboot_mmap): Likewise.
22665 (grub_multiboot_set_video_mode): Likewise.
22666 (grub_multiboot_set_console): Likewise.
22667 (grub_multiboot_load): Likewise.
22668 (grub_multiboot_load_elf): Likewise.
22669 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22670 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22671 * include/multiboot.h: Resynced with specification.
22672 * include/multiboot2.h: Resynced with specification.
22673 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22674 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22675 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22676 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22677 users updated.
22678 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22679 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22680 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22681 Removed.
22682 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22683 Moved from here...
22684 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22685 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22686 Moved from here...
22687 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22688 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22689 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22690 All users updated.
22691 * loader/i386/multiboot_mbi2.c: New file.
22692
3506b90b
VS
226932010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22694
22695 Resync with gnulib.
22696
22697 * Makefile.in (GNULIB_CFLAGS): New variable.
22698 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22699 (grub_script_check_CFLAGS): New variable.
22700 * gnulib/alloca.h: Resync with gnulib.
22701 * gnulib/error.c: Likewise.
22702 * gnulib/error.h: Likewise.
22703 * gnulib/fnmatch.c: Likewise.
22704 * gnulib/fnmatch_loop.c: Likewise.
22705 * gnulib/getdelim.c: Likewise.
22706 * gnulib/getline.c: Likewise.
22707 * gnulib/getopt.c: Likewise.
22708 * gnulib/getopt1.c: Likewise.
22709 * gnulib/getopt_int.h: Likewise.
22710 * gnulib/gettext.h: Likewise.
22711 * gnulib/progname.c: Likewise.
22712 * gnulib/progname.h: Likewise.
22713
394a3120
GS
227142010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22715
22716 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22717 which is the case with --disabled-nls.
22718
22719 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22720 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22721 * util/misc.c: Likewise.
22722 * util/mkisofs/mkisofs.c: Likewise.
22723 * util/mkisofs/mkisofs.h: Likewise.
22724
969d1c78
VS
227252010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22726
22727 Simplify Apple CC support.
22728
22729 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22730 Add 0 byte at the end not to have a symbol with empty target.
22731 * mmap/i386/pc/mmap_helper.S: Likewise.
22732 * genmk.rb: Ignore errors 2030 and 2050.
22733 * kern/i386/pc/startup.S: Use LOCAL when possible.
22734
8d2977bb
BC
227352010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22736
22737 Testcase and the fix for final semicolon on cmdline.
22738
22739 * tests/grub_script_final_semicolon.in: New testcase.
22740 * conf/tests.rmk: Rules for the new testcase.
22741 * script/parser.y: Grammar fix.
22742
a7bd6915
BC
227432010-03-26 BVK Chaitanya <bvk@localhost>
22744
22745 Blank lines testcase for GRUB script.
22746
22747 * tests/grub_script_blanklines.in: New testcase.
22748 * conf/tests.rmk: Rules for the new testcase.
22749
e4ff6628
VS
227502010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22751
22752 Don't use __FILE__.
22753
22754 * genmk.rb: Add -DGRUB_FILE to all C targets.
22755 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22756 * include/grub/list.h: Likewise.
22757 * include/grub/misc.h: Likewise.
22758 * include/grub/mm.h: Likewise.
22759 * include/grub/test.h: Likewise.
22760 * kern/mm.c: Likewise.
22761 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22762
6a5cf6b6
VS
227632010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22764
22765 Sunpc partitions support.
22766
22767 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22768 (grub_fstest_SOURCES): Likewise.
22769 (pkglib_MODULES): Add part_sunpc.mod.
22770 (part_sunpc_mod_SOURCES): New variable.
22771 (part_sunpc_mod_CFLAGS): Likewise.
22772 (part_sunpc_mod_LDFLAGS): Likewise.
22773 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22774 * partmap/sunpc.c: New file.
22775
746d9045
BC
227762010-03-26 BVK Chaitanya <bvk@localhost>
22777
22778 For loop support to GRUB script.
22779
22780 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22781 (grub_script_create_cmdfor): New function prototype.
22782 (grub_script_execute_cmdfor): New function prototype.
22783 * script/execute.c (grub_script_execute_cmdfor): New function.
22784 * script/parser.y (command): New for command.
22785 (forcmd): New grammar rule.
22786 * script/script.c (grub_script_create_cmdfor): New function.
22787 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22788 function.
22789 * tests/grub_script_for1.in: New testcase.
22790 * conf/tests.rmk: Rules for new testcase.
22791
18486b18
VS
227922010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22793
22794 Nested partitions
22795
22796 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22797 'partition' is NULL, grub_partition_get_start already does that.
22798 * commands/loadenv.c (check_blocklists): Likewise.
22799 (write_blocklists): Likewise.
22800 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22801 (grub_fstest_SOURCES): Likewise.
22802 (pkglib_MODULES): Add part_bsd.mod.
22803 (part_bsd_mod_SOURCES): New variable.
22804 (part_bsd_mod_CFLAGS): Likewise.
22805 (part_bsd_mod_LDFLAGS): Likewise.
22806 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22807 (grub_emu_SOURCES): Likewise.
22808 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22809 * include/grub/bsdlabel.h: New file.
22810 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22811 'get_name'.
22812 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22813 (grub_partition_map_list): New variable.
22814 (grub_partition_map_register): Inline.
22815 (grub_partition_map_unregister): Likewise.
22816 (FOR_PARTITION_MAPS): New macro.
22817 (grub_partition_map_iterate): Removed.
22818 (grub_partition_get_start): Handle nested partitions.
22819 * include/grub/msdos_partition.h: Remove bsd-related entries.
22820 (grub_pc_partition): Remove.
22821 * kern/disk.c (grub_disk_close): Free partition data.
22822 (grub_disk_adjust_range): Handle nested partitions.
22823 * kern/partition.c (grub_partition_map_probe): New function.
22824 (grub_partition_probe): Parse name to number, handle subpartitions.
22825 (get_partmap): New function.
22826 (grub_partition_iterate): Handle subpartitions.
22827 (grub_partition_get_name): Likewise.
22828 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22829 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22830 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22831 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22832 Set 'number'.
22833 (acorn_partition_map_probe): Remove.
22834 (acorn_partition_map_get_name): Likewise.
22835 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22836 Set 'number'.
22837 Set 'index' to 0 since there can be only one partition entry per sector.
22838 (amiga_partition_map_probe): Remove.
22839 (amiga_partition_map_get_name): Likewise.
22840 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22841 Set 'number'.
22842 Set 'offset' and 'index' to real positions of partitions.
22843 (apple_partition_map_probe): Remove.
22844 (apple_partition_map_get_name): Likewise.
22845 * partmap/bsdlabel.c: New file.
22846 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22847 Set 'number'.
22848 Allocate 'data' so it can be correctly freed.
22849 Set 'index' to offset inside sector.
22850 (gpt_partition_map_probe): Remove.
22851 (gpt_partition_map_get_name): Likewise.
22852 * partmap/msdos.c (grub_partition_parse): Remove.
22853 (pc_partition_map_iterate): Don't force raw access.
22854 Set 'number'.
22855 Make 'ext_offset' a local variable.
22856 (pc_partition_map_probe): Remove.
22857 (pc_partition_map_get_name): Remove.
22858 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22859 Set 'number'.
22860 (sun_partition_map_probe): Remove.
22861 (sun_partition_map_get_name): Likewise.
22862 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22863 (grub_pcpart_type): Likewise.
22864 * util/hostdisk.c (open_device): Handle new numbering scheme.
22865 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22866 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22867 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22868 * util/grub-install.in: Insert all subpartition modules.
22869 * util/ieee1275/grub-install.in: Likewise.
22870
a3940f88
AG
228712010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22872
22873 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22874 grammar.
22875
21b99926 228762010-03-24 Colin Watson <cjwatson@ubuntu.com>
22877
22878 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22879
bed1d352
CW
228802010-03-21 Colin Watson <cjwatson@ubuntu.com>
22881
22882 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22883 match where 'make install' puts them.
22884 * util/i386/efi/grub-install.in: Likewise.
22885
c9f58427
CW
228862010-03-19 Colin Watson <cjwatson@ubuntu.com>
22887
22888 * .bzrignore: Add gentrigtables, grub-script-check,
22889 grub_script_check_init.c, grub_script_check_init.h, and
22890 trigtables.c.
22891
f84afb27
VS
228922010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22893
22894 * kern/parser.c: Indented.
22895
ed0e3d30
VS
228962010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22897
22898 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22899
0ea81d98
VS
229002010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22901
22902 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22903 alpha_mask_size == 0 case.
22904
0cdc2a09
BC
229052010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22906
22907 GRUB shell lexer and parser improvements.
22908
22909 * conf/any-emu.rmk: Build rule updates.
22910 * conf/common.rmk: Likewise.
22911 * conf/i386-coreboot.rmk: Likewise.
22912 * conf/i386-efi.rmk: Likewise.
22913 * conf/i386-ieee1275.rmk: Likewise.
22914 * conf/i386-pc.rmk: Likewise.
22915 * conf/powerpc-ieee1275.rmk: Likewise.
22916 * conf/x86_64-efi.rmk: Likewise.
22917
22918 * configure.ac: Configure check for flex.
22919
22920 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22921 types.
22922 (grub_lexer_param): Struct member updates.
22923 (grub_parser_param): Likewise.
22924 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22925 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22926 (grub_script_lexer_init): Prototype update.
22927 (grub_script_lexer_record_start): Likewise.
22928 (grub_script_lexer_record_stop): Likewise.
22929 (grub_script_lexer_yywrap): New function prototype.
22930 (grub_script_lexer_fini): Likewise.
22931 (grub_script_execute_argument_to_string): Removed by...
22932 (grub_script_execute_argument_to_argv): ...better version.
22933
22934 * script/execute.c (ROUND_UPTO): New macro.
22935 (grub_script_execute_cmdline): Out of memory fixes.
22936 (grub_script_execute_menuentry): Likewise.
22937 (grub_script_execute_argument_to_string): Removed. Update all
22938 users by...
22939 (grub_script_execute_argument_to_argv): ...better version.
22940 * script/function.c (grub_script_function_create): Use
22941 grub_script_execute_argument_to_argv instead of
22942 grub_script_execute_argument_to_string.
22943
22944 * script/lexer.c (check_varstate): Removed.
22945 (check_textstate): Removed.
22946 (grub_script_lexer_record_start): Likewise.
22947 (grub_script_lexer_record_stop): Likewise.
22948 (recordchar): Replaced with...
22949 (grub_script_lexer_record): ...new function.
22950 (nextchar): Removed.
22951 (grub_script_lexer_init): Rewritten.
22952 (grub_script_yylex): Rewritten.
22953 (append_newline): New function.
22954 (grub_script_lexer_yywrap): New function.
22955 (grub_script_lexer_fini): New function.
22956 (grub_script_yyerror): Sets error flag.
22957
22958 * script/yylex.l: New file.
22959 (grub_lexer_yyfree): Wrapper for flex yyffre.
22960 (grub_lexer_yyalloc): Likewise.
22961 (grub_lexer_yyrealloc): Likewise.
22962 * script/parser.y: Refactored.
22963
22964 * script/script.c (grub_script_arg_add): Out of memory fixes.
22965 (grub_script_add_arglist): Likewise.
22966 (grub_script_create_cmdline): Likewise.
22967 (grub_script_create_cmdmenu): Likewise.
22968 (grub_script_add_cmd): Likewise.
22969 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22970 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22971 unnecessary code.
22972
22973 * tests/grub_script_echo1.in: New testcase.
22974 * tests/grub_script_vars1.in: New testcase.
22975 * tests/grub_script_echo_keywords.in: New testcase.
22976
1d63a066
VS
229772010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22978
22979 Remove some redundancy in build system.
22980
22981 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22982 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22983 (TARGET_LDFLAGS): Add -nostdlib.
22984 (TARGET_IMG_LDFLAGS): Likewise.
22985 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22986 anything since mmap isn't available.
22987 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22988 Add util/time.c.
22989 (pkglib_MODULES): Remove reboot.mod.
22990 (reboot_mod_SOURCES): Removed.
22991 (reboot_mod_CFLAGS): Likewise.
22992 (reboot_mod_LDFLAGS): Likewise.
22993 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22994 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22995 (DEFSYMFILES): Add kernel_syms.lst.
22996 (kernel_img_HEADERS): Add common headers.
22997 (symlist.c): New target.
22998 (kernel_syms.lst): Likewise.
22999 (pkglib_MODULES): Add memdisk.mod.
23000 (memdisk_mod_SOURCES): New variable.
23001 (memdisk_mod_CFLAGS): Likewise.
23002 (memdisk_mod_LDFLAGS): Likewise.
23003 (pkglib_MODULES): Add reboot.mod.
23004 (reboot_mod_SOURCES): New variable.
23005 (reboot_mod_CFLAGS): Likewise.
23006 (reboot_mod_LDFLAGS): Likewise.
23007 (pkglib_MODULES): Add date.mod.
23008 (date_mod_SOURCES): New variable.
23009 (date_mod_CFLAGS): Likewise.
23010 (date_mod_LDFLAGS): Likewise.
23011 (pkglib_MODULES): Add datehook.mod.
23012 (datehook_mod_SOURCES): New variable.
23013 (datehook_mod_CFLAGS): Likewise.
23014 (datehook_mod_LDFLAGS): Likewise.
23015 (pkglib_MODULES): Add lsmmap.mod.
23016 (lsmmap_mod_SOURCES): New variable.
23017 (lsmmap_mod_CFLAGS): Likewise.
23018 (lsmmap_mod_LDFLAGS): Likewise.
23019 (pkglib_MODULES): Add boot.mod.
23020 (boot_mod_SOURCES): New variable.
23021 (boot_mod_CFLAGS): Likewise.
23022 (boot_mod_LDFLAGS): Likewise.
23023 * conf/i386-coreboot.rmk: Removed redundant parts.
23024 * conf/i386-ieee1275.rmk: Likewise.
23025 * conf/i386-pc.rmk: Likewise.
23026 * conf/mips-yeeloong.rmk: Likewise.
23027 * conf/mips.rmk: Likewise.
23028 * conf/powerpc-ieee1275.rmk: Likewise.
23029 * conf/sparc64-ieee1275.rmk: Likewise.
23030 * conf/x86_64-efi.rmk: Likewise.
23031 * conf/i386-coreboot.rmk: Moved qemu parts ..
23032 * conf/i386-qemu.rmk: ... here
23033 * conf/i386-efi.rmk: Moved common parts to...
23034 * conf/x86-efi.rmk: ... here.
23035 * conf/i386.rmk: Added modules common to all x86 variants.
23036 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
23037 * disk/memdisk.c: Remove grub/machine/kernel.h.
23038 * gensymlist.sh.in: Include symbol.h.
23039 * hook/datehook.c: Correct module name.
23040 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
23041 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
23042 * include/grub/i386/efi/serial.h: New file.
23043 * include/grub/x86_64/efi/serial.h: Likewise.
23044 * util/time.c: Likewise.
23045 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
23046
463ac55f
CK
230472010-03-14 Colin King <colin.king@ubuntu.com>
230482010-03-14 Colin Watson <cjwatson@ubuntu.com>
23049
23050 Shrink the pre-partition-table part of boot.img by eight bytes.
23051
23052 * boot/i386/pc/boot.S (ERR): New macro.
23053 (chs_mode): Use ERR.
23054 (geometry_error): Likewise.
23055 (hd_probe_error): Remove. This is only used once, so we wrwite
23056 it inline instead.
23057 (read_error): Instead of printing read_error_string, just set up
23058 %si and fall through to ...
23059 (error_message): ... this new function, also used by ERR.
23060
08e46ede
CW
230612010-03-14 Colin Watson <cjwatson@ubuntu.com>
23062
23063 Speed up consecutive hostdisk operations on the same device.
23064
23065 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
23066 (grub_util_biosdisk_open): Initialise disk->data.
23067 (struct linux_partition_cache): New structure.
23068 (linux_find_partition): Cache partition start positions; these are
23069 expensive to compute on every read and write.
23070 (open_device): Cache open file descriptor in disk->data, so that we
23071 don't have to reopen it and flush the buffer cache for consecutive
23072 operations on the same device.
23073 (grub_util_biosdisk_close): New function.
23074 (grub_util_biosdisk_dev): Set `close' member.
23075
23076 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
23077 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
23078 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23079 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23080 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
23081
4a6d2d06
VS
230822010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23083
23084 Compile parts of grub-emu as modules.
23085
23086 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
23087 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
23088 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
23089 (all-local): Add $(GRUB_EMU).
23090 (install-local): Install $(GRUB_EMU).
23091 (uninstall): Uninstall $(GRUB_EMU).
23092 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
23093 * kern/dl.c: Likewise.
23094 * commands/sleep.c: Not include machine/time.h.
23095 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
23096 (COMMON_CFLAGS): Likewise.
23097 (sbin_UTILITIES): Remove grub-emu.
23098 (grub_emu_SOURCES): Removed.
23099 (kernel_img_RELOCATABLE): New variable.
23100 (pkglib_PROGRAMS): Add kernel.img.
23101 (kernel_img_SOURCES): New variable
23102 (kernel_img_CFLAGS): Likewise.
23103 (kernel_img_LDFLAGS): Likewise.
23104 (TARGET_NO_STRIP): Likewise.
23105 (TARGET_NO_DYNAMIC_MODULES): Likewise.
23106 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
23107 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
23108 (grub-emu): New target.
23109 (GRUB_EMU): New variable.
23110 * configure.ac: Whitelist -emu as possible x86_64 architecture.
23111 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
23112 * loader/xnu.c: Likewise.
23113 * include/grub/pci.h: Likewise.
23114 * genemuinit.sh: New file.
23115 * genemuinitheader.sh: Likewise.
23116 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
23117 Support TARGET_NO_DYNAMIC_MODULES.
23118 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
23119 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
23120 * disk/loopback.c: Likewise.
23121 * font/font_cmd.c: Likewise.
23122 * partmap/acorn.c: Likewise.
23123 * partmap/amiga.c: Likewise.
23124 * partmap/apple.c: Likewise.
23125 * partmap/gpt.c: Likewise.
23126 * partmap/msdos.c: Likewise.
23127 * partmap/sun.c: Likewise.
23128 * parttool/msdospart.c: Likewise.
23129 * term/gfxterm.c: Likewise.
23130 * video/bitmap.c: Likewise.
23131 * video/readers/jpeg.c: Likewise.
23132 * video/readers/png.c: Likewise.
23133 * video/readers/tga.c: Likewise.
23134 * video/video.c: Likewise.
23135 * util/grub-emu.c (read_command_list): Removed.
23136 (main): Don't call util_init_nls.
23137 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
23138 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
23139
91fdd2ed
VS
231402010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23141
23142 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
23143 date.mod, datehook.mod.
23144 (datetime_mod_SOURCES): New variable.
23145 (datetime_mod_CFLAGS): Likewise.
23146 (datetime_mod_LDFLAGS): Likewise.
23147 (date_mod_SOURCES): Likewise.
23148 (date_mod_CFLAGS): Likewise.
23149 (date_mod_LDFLAGS): Likewise.
23150 (datehook_mod_SOURCES): Likewise.
23151 (datehook_mod_CFLAGS): Likewise.
23152 (datehook_mod_LDFLAGS): Likewise.
23153 * conf/sparc64-ieee1275.rmk: Likewise.
23154 * lib/ieee1275/datetime.c: New file.
23155
873ccae6
VS
231562010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23157
23158 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
23159 (ieee1275_fb_mod_SOURCES): New variable.
23160 (ieee1275_fb_mod_CFLAGS): Likewise.
23161 (ieee1275_fb_mod_LDFLAGS): Likewise.
23162 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
23163 New proto.
23164 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
23165 (HEAP_MAX_ADDR): Likewise.
23166 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
23167 type.
23168 Correct stop condition.
23169 (grub_ieee1275_devices_iterate): New function.
23170 * video/ieee1275.c: New file.
23171
601c97c0
VS
231722010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23173
23174 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
23175
23176 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
23177 as scratch.
23178 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
23179 SCRATCH_PAD_DISKBOOT as scratch.
23180 (bootit): Pass Openfirmware pointer in %o4.
23181 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
23182 of 0x200000.
23183 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
23184 with util/grub-mkrawimage.c.
23185 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
23186 * include/grub/aout.h (AOUT_MID_SUN): New definition.
23187 (grub_aout_get_type) [GRUB_UTIL]: Removed.
23188 (grub_aout_load) [GRUB_UTIL]: Likewise.
23189 * include/grub/kernel.h (grub_modules_get_end): New proto.
23190 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
23191 (SCRATCH_PAD_BOOT): New definition.
23192 (SCRATCH_PAD_DISKBOOT): Likewise.
23193 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
23194 * include/grub/sparc64/ieee1275/ieee1275.h
23195 (grub_ieee1275_original_stack): New variable
23196 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23197 New definition
23198 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
23199 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
23200 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
23201 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
23202 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
23203 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
23204 (grub_platform_image_format_t): New type.
23205 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
23206 * kern/main.c (grub_modules_get_end)
23207 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
23208 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
23209 (codestart): Switch stacks.
23210 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
23211 variable.
23212 (grub_heap_init): Use grub_modules_get_end.
23213 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
23214 stack.
23215 * util/grub-mkrawimage.c (generate_image): Support sparc64.
23216 (main): Likewise.
23217 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
23218
d68b491e
TG
232192010-03-14 Thorsten Glaser <tg@mirbsd.org>
23220
23221 * util/grub-mkrescue.in: Base ISO UUID on UTC.
23222
4e02ed50
MK
232232010-03-08 Matt Kraai <kraai@ftbfs.org>
23224
23225 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
23226 bug #559005).
23227
1f15fc1e
VS
232282010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
23229
23230 * genmoddep.awk: Output all missing symbols and not only first.
23231
fce5d8ff
VS
232322010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23233
23234 * NEWS: Put the date of 1.98 release.
23235
d1e8a02f
VS
232362010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23237
23238 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
23239 ft2build.h.
23240
696fd607
VS
232412010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23242
23243 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
23244 completition in the middle of string.
23245
33e2e6f3
VS
232462010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23247
23248 * util/grub-mkrescue.in: Use mktemp with explicit template.
23249
b1f6d291
VS
232502010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23251
23252 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
23253
2ac227c7
VS
232542010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23255
23256 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
23257 right pointer.
23258
8f9a632b
VS
232592010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23260
23261 Fix FreeBSD compilation.
23262
23263 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
23264 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
23265
60b03859
VS
232662010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23267
23268 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23269
48a5a769
VS
232702010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23271
23272 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23273
3ab4bd77
VS
232742010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23275
23276 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23277
d116e0d8
RM
232782010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23279
23280 Support relative image path in theme file.
23281
23282 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23283 (image_set_property): Handle theme_dir and relative path.
23284
c7ef54aa
VS
232852010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23286
23287 * configure.ac: Alias amd64 to x86_64.
23288
fcee14ed
VS
232892010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23290
23291 * NEWS: mention multiboot on EFI.
23292
d0780363
VS
232932010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23294
23295 * kern/main.c (grub_load_modules): Handle errors from init functions of
23296 embeded modules.
23297
41168ea4
VS
232982010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23299
23300 * normal/autofs.c (autoload_fs_module): Handle errors.
23301
b54d93ac
VS
233022010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23303
23304 Disable linux.mod on qemu-mips since it's not functional and leads
23305 to compilation failure.
23306
23307 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23308 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23309 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23310 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23311 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23312 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23313 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23314 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23315 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23316 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23317 Reported by: BVK Chaitanya
23318
fc8345da
JU
233192010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23320
23321 * INSTALL: Add gettext as a dependency and add qemu to a new section
23322 "Prerequisites for make-check".
23323
4760f979
CF
233242010-03-04 Christian Franke <franke@computer.org>
23325
23326 * util/grub-pe2elf.c: Add missing include "progname.h".
23327
f209b5b2
VS
233282010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23329
23330 * normal/crypto.c (read_crypto_list): Fix a typo.
23331 Reported by: Seth Goldberg.
23332
b4b7be98
VS
233332010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23334
23335 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 23336 Reported by: Seth Goldberg.
b4b7be98 23337
c0ee0385
VS
233382010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23339
23340 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23341 ascii.bitmaps.
23342
a8efbf64
VS
233432010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23344
23345 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 23346 Reported by: Seth Goldberg.
a8efbf64 23347
08dcd913
VS
233482010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23349
23350 * util/i386/efi/grub-install.in: Copy gettext files.
23351
c4d0b332
VS
233522010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23353
23354 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23355
c6f2fe52
VS
233562010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23357
23358 Wait for user entry basing on presence of output rather than on errors.
23359
23360 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23361 (grub_install_newline_hook): Likewise.
23362 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23363 * normal/menu.c (show_menu): Check line_counter to determine presence
23364 of output.
23365 * normal/term.c (grub_normal_line_counter): New variable.
23366 (grub_normal_get_line_counter): New function.
23367 (grub_install_newline_hook): Likewise.
23368
5382b1e4
VS
233692010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23370
23371 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23372
5519963b
VS
233732010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23374
23375 * configure.ac: Update version to 1.98.
23376
72b28631
VS
233772010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23378
23379 * util/grub.d/10_linux.in (linux_entry): Don't default to
23380 gfxpayload=keep if Linux doesn't support video handover.
23381
c140a180
VS
233822010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23383
23384 Don't compile video modules on yeeloong since video subsystem is part
23385 of kernel.
23386
23387 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23388 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23389 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23390 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23391 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23392 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23393 * include/grub/bitmap_scale.h: Likewise.
23394 * include/grub/bufio.h: Likewise.
23395 * include/grub/font.h: Likewise.
23396 * include/grub/gfxterm.h: Likewise.
23397 * include/grub/video.h: Likewise.
23398 * include/grub/vbe.h: Don't include video_fb.h.
23399 * video/i386/pc/vbe.c: Include video_fb.h.
23400 * commands/i386/pc/vbetest.c: Include video.h.
23401
a0ca21c2
CW
234022010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23403
23404 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23405 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23406 default entry if GRUB_SAVEDEFAULT=true. This allows using
23407 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23408 saving a new default on every boot.
23409
4a8a763c
VS
234102010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23411
23412 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23413 * normal/term.c (read_terminal_list): Likewise.
23414 * normal/main.c (grub_normal_init_page): Likewise.
23415 (grub_normal_read_line_real): Likewise.
23416
607ffde2
VS
234172010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23418
23419 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23420 memory leak.
23421 Reported by: Seth Goldberg.
23422
2b8fa975
CW
234232010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23424
23425 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23426 duplicate declaration of `start'.
23427
618307dd
VS
234282010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23429
23430 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23431 filename.
23432 Reported by: Georgy Buranov
23433
7dd05b96 234342010-02-20 Carles Pina i Estany <carles@pina.cat>
23435
23436 * util/grub-mkrawimage.c (usage): Change string formatting to
23437 improve gettext.
23438
d1484a42
MRA
234392010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23440
23441 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23442 backspace keys.
23443
42b1d186
VS
234442010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23445
23446 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23447 Reported by: Michael Suchanek.
23448
234492010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
23450
23451 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23452 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23453
d9f31a41
VS
234542010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23455
23456 Remove any reference to non-free fonts.
23457
23458 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23459 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23460 uses non-free components.
23461 * font/font.c (grub_font_get_name): Remove example name.
23462 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23463 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23464 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23465 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23466
2793c71e
GB
234672010-02-16 Georgy Buranov <gburanov@gmail.com>
23468
23469 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23470
402e3779
VS
234712010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23472
23473 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23474 Double divisor.
23475 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23476 features.
23477 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23478
0dd1e0dd
VS
234792010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23480
23481 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23482
6fa7cfce
ST
234832010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23484
23485 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23486 * docs/grub.texi (Command-line and menu entry commands): Document play
23487 command.
23488
37c8483b
ST
234892010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23490
23491 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23492 parse arguments as inline tempo and notes. Move code for playing notes
23493 to...
23494 (play): ... new function.
23495
14da0fb7
ST
234962010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23497
23498 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23499 grub_uint16_t instead of short.
23500 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23501 disk from little endian to cpu endianness.
23502
04459e70
ST
235032010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23504
23505 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23506 GRUB_TICKS_PER_SECOND instead of 120.
23507
a0876943
VS
235082010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23509
23510 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23511 escape sequence after \e.
23512
e29f95dc
VS
235132010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23514
23515 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23516 non-ASCII characters.
23517
d27859b2
VS
235182010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23519
23520 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23521 set root in single quotes to prevent \, from being unescaped.
23522
bc028f2f
VS
235232010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23524
23525 Prevent unknown commands from stopping menuentry execution.
23526
23527 * script/execute.c (grub_script_execute_cmdline): Print error after
23528 unknown command.
23529
095f5f82
VS
235302010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23531
23532 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23533 Reported by: Pavel Pisa.
23534
8c717950
VS
235352010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23536
23537 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23538
904935c3
VS
235392010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23540
23541 Merge grub_ieee1275_map_physical into grub_map and rename to
23542 grub_ieee1275_map
23543
23544 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23545 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23546 Remove.
23547 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23548 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23549 necessary.
23550 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23551
5b59a4e3
VS
235522010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23553
23554 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23555 opening and not after.
23556
69e137e8
VS
235572010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23558
23559 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23560 constants.
23561
2c0fcc36
VS
235622010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23563
23564 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23565 (alloc_phys): Use ALIGN_UP instead of align_addr.
23566
8c6052ce
VS
235672010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23568
23569 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23570
17cec782
VS
235712010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23572
23573 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23574
e0128bbd
VS
235752010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23576
23577 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23578 verbose dprintf.
23579
ca62070b
VS
235802010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23581
23582 Fix over-4GiB seek on sparc64.
23583
23584 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23585 Replace pos_i and pos_lo with pos. All users updated.
23586 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23587 New constant.
23588 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23589 Likewise.
23590 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23591 and pos_lo.
23592
bdca2607
VS
235932010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23594
23595 * util/grub-mkrawimage.c (main): Call set_program_name.
23596
da278c4d
VS
235972010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23598
23599 Properly align 64-bit targets.
23600
23601 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23602 (generate_image): Use ALIGN_ADDR.
23603
b274d734
VS
236042010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23605
23606 Properly create cross-endian images.
23607
23608 * include/grub/types.h (grub_host_to_target_addr): New macro
23609 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23610
82da2062
VS
236112010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23612
23613 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23614
7cae4377
VS
236152010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23616
23617 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23618
23619 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23620 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23621 (grub_linux_boot): Divide by 64K when on VESA.
23622
65a533e7
VS
236232010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23624
23625 Support GRUB_GFXPAYLOAD_LINUX.
23626
23627 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23628 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23629
dd01d397
VS
236302010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23631
23632 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23633 to show messages instead of discarding them.
23634 Process errors after executing command and not before. Keep old method
23635 too as precaution.
23636
660960d6
VS
236372010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23638
23639 * configure.ac: Check for ft2build.h.
23640
62509f04
VS
236412010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23642
23643 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23644
473df63d
VS
236452010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23646
23647 * genkernsyms.sh.in: Use TARGET_CC.
23648
c98d2a13
CW
236492010-02-07 Colin Watson <cjwatson@ubuntu.com>
23650
23651 * NEWS: Update.
23652
6e14234c
VS
236532010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23654
23655 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
23656 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23657 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 23658
b255e9cf
YB
236592010-02-07 Yves Blusseau <blusseau@zetam.org>
23660
6e14234c 23661 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 23662
98e6959d
VS
236632010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23664
23665 Fix warnings in grub-emu when compiling with maximum warning options.
23666
23667 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23668 (grub_arch_modules_addr): Return 0 and not NULL.
23669 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 23670 (xstrdup): Use newstr instead of dup.
f88d801b
VS
23671 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23672 of disk to dsk to avoid shadowing.
74e4934e
VS
23673 (find_free_slot): Fix prototype.
23674 * util/getroot.c (grub_util_is_dmraid): Make static.
23675 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23676 Add missing prototype.
23677 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 23678
74e31b5c
VS
236792010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23680
23681 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23682 appropriately.
23683
6b2ad14b
VS
236842010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23685
23686 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23687 code out.
23688
8f891adc
VS
236892010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23690
23691 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23692 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23693 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23694 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23695 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23696 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23697
74b45184
VS
236982010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23699
23700 * include/grub/err.h (grub_err_printf): Don't export.
23701
a4bced77
VS
237022010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23703
23704 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23705
007d0695
VS
237062010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23707
23708 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23709 * kern/misc.c (grub_gettext_dummy): Make static.
23710
b6c0d9c2
VS
237112010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23712
23713 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23714 by non-valid ones.
23715 * kern/term.c (grub_putchar): Likewise.
23716
f51a90d0
VS
237172010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23718
23719 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23720 buggy hook call and memory leak.
23721
6846cec5
VS
237222010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23723
23724 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23725
468d69fe
VS
237262010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23727
23728 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23729
51906b8c
VS
237302010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23731
23732 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23733 modevar.
23734 Return grub_errno on allocation error.
23735
09706ce5
VS
237362010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23737
23738 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23739
911df80c
YB
237402010-02-06 Yves Blusseau <blusseau@zetam.org>
23741
23742 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23743 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23744
3746a6bc
VS
237452010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23746
23747 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23748 non-pxe disk.
23749 (grub_pxefs_open): Likewise.
23750
09706ce5
VS
237512010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23752
23753 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23754 * util/grub.d/10_kfreebsd.in: Likewise.
23755 * util/grub.d/10_linux.in: Likewise.
23756
7cc192d9
VS
237572010-02-06 Colin D Bennett <colin@gibibit.com>
23758
23759 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23760 (gfxmenu_mod_SOURCES): New variable.
23761 (gfxmenu_mod_CFLAGS): Likewise.
23762 (gfxmenu_mod_LDFLAGS): Likewise.
23763 * include/grub/term.h (grub_term_set_current_output): Declare
23764 argument as const.
23765 * docs/gfxmenu-theme-example.txt: New file.
23766 * gfxmenu/gfxmenu.c: Likewise.
23767 * gfxmenu/gui_box.c: Likewise.
23768 * gfxmenu/gui_canvas.c: Likewise.
23769 * gfxmenu/gui_circular_progress.c: Likewise.
23770 * gfxmenu/gui_image.c: Likewise.
23771 * gfxmenu/gui_label.c: Likewise.
23772 * gfxmenu/gui_list.c: Likewise.
23773 * gfxmenu/gui_progress_bar.c: Likewise.
23774 * gfxmenu/gui_string_util.c: Likewise.
23775 * gfxmenu/gui_util.c: Likewise.
23776 * gfxmenu/icon_manager.c: Likewise.
23777 * gfxmenu/model.c: Likewise.
23778 * gfxmenu/named_colors.c: Likewise.
23779 * gfxmenu/theme_loader.c: Likewise.
23780 * gfxmenu/view.c: Likewise.
23781 * gfxmenu/widget-box.c: Likewise.
23782 * include/grub/gfxmenu_model.h: Likewise.
23783 * include/grub/gfxmenu_view.h: Likewise.
23784 * include/grub/gfxwidgets.h: Likewise.
23785 * include/grub/gui.h: Likewise.
23786 * include/grub/gui_string_util.h: Likewise.
23787 * include/grub/icon_manager.h: Likewise.
23788
237892010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23790
23791 Agglomerate scrolling in gfxterm.
23792
23793 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23794 (grub_virtual_screen_setup): Initialise 'total_screen'.
23795 (write_char): Split to ...
23796 (paint_char): ... this ...
23797 (write_char): ... and this.
23798 (paint_char): Handle delayed scrolling.
23799 (draw_cursor): Likewise.
23800 (scroll_up): Split to ...
23801 (real_scroll): ... this ...
23802 (scroll_up): ... and this.
23803 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23804 characters.
23805 (grub_gfxterm_refresh): Call real_scroll.
23806
238072010-02-06 Colin D Bennett <colin@gibibit.com>
23808
23809 * include/grub/misc.h (grub_iscntrl): New inline function.
23810 (grub_isalnum): Likewise.
23811 (grub_strtol): Likewise.
23812
238132010-02-06 Colin D Bennett <colin@gibibit.com>
23814
23815 * normal/menu_text.c (get_entry_number): Move from here ...
23816 * normal/menu.c (get_entry_number): ... moved here.
23817 * include/grub/menu.h (grub_menu_get_default_entry_index):
23818 New prototype.
23819 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23820 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23821 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23822 (grub_menu_viewer_should_return): Likewise.
23823 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23824 * normal/menu_text.c (run_menu): Enable menu switching.
23825 * normal/menu_viewer.c (should_return): New variable.
23826 (menu_viewer_changed): Likewise.
23827 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23828 (grub_menu_viewer_should_return): New function.
23829 (menuviewer_write_hook): Likewise.
23830 (grub_menu_viewer_init): Likewise.
23831
238322010-02-06 Colin D Bennet <colin@gibibit.com>
238332010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23834
23835 Support for gfxterm in a window.
23836
23837 * include/grub/gfxterm.h: New file.
23838 * include/grub/video.h (struct grub_video_rect): New declaration.
23839 (grub_video_rect_t): Likewise.
23840 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23841 (refcount): New variable.
23842 (render_target): Likewise.
23843 (window): Likewise.
23844 (repaint_callback): Likewise.
23845 (grub_virtual_screen_setup): Use 'render_target'.
23846 (init_window): New function.
23847 (grub_gfxterm_init_window): Likewise.
23848 (grub_gfxterm_init): Check reference counter.
23849 Use init_window.
23850 (destroy_window): New function.
23851 (grub_gfxterm_destroy_window): Likewise.
23852 (grub_gfxterm_fini): Check reference counter.
23853 Use destroy_window.
23854 (redraw_screen_rect): Restore viewport.
23855 Use 'render_target' and 'window'.
23856 Call 'repaint_callback'.
23857 (write_char): Use 'render_target'.
23858 (draw_cursor): Likewise.
23859 (scroll_up): Restore viewport.
23860 Use 'render_target' and 'window'.
23861 Call 'repaint_callback'.
23862 (grub_gfxterm_cls): Likewise.
23863 (grub_gfxterm_refresh): Use 'window'.
23864 (grub_gfxterm_set_repaint_callback): New function.
23865 (grub_gfxterm_background_image_cmd): Use 'window'.
23866 (grub_gfxterm_get_term): New function.
23867 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23868
238692010-02-06 Colin D Bennett <colin@gibibit.com>
23870
23871 Bitmap scaling support.
23872
23873 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23874 (bitmap_scale_mod_SOURCES): New variable.
23875 (bitmap_scale_mod_CFLAGS): Likewise.
23876 (bitmap_scale_mod_LDFLAGS): Likewise.
23877 * include/grub/bitmap_scale.h: New file.
23878 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23879 (background_image_cmd_options): New variable.
23880 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23881 (cmd): Rename and change type to ...
23882 (background_image_cmd_handle): ... this. All users updated.
23883 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23884 * video/bitmap_scale.c: New file.
23885
238862010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23887
23888 SDL support.
23889
23890 * Makefile.in (LIBSDL): New variable.
23891 (enable_grub_emu_sdl): Likewise.
23892 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23893 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23894 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23895 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23896 * util/sdl.c: New file.
23897
238982010-02-06 Colin D Bennett <colin@gibibit.com>
238992010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23900
23901 Double buffering support.
23902
23903 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23904 * include/grub/video.h: Update comment.
23905 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23906 New type.
23907 (grub_video_fb_doublebuf_blit_init): New prototype.
23908 * term/gfxterm.c (scroll_up): Support double buffering.
23909 (grub_gfxterm_refresh): Likewise.
23910 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23911 (grub_video_fb_doublebuf_blit_init): Likewise.
23912 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23913 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23914 'displayed_page', 'render_page' and 'update_screen'.
23915 (grub_video_vbe_fini): Free offscreen buffer.
23916 (doublebuf_pageflipping_commit): New function.
23917 (doublebuf_pageflipping_update_screen): Likewise.
23918 (doublebuf_pageflipping_init): Likewise.
23919 (double_buffering_init): Likewise.
23920 (grub_video_vbe_setup): Enable doublebuffering.
23921 (grub_video_vbe_swap_buffers): Implement.
23922 (grub_video_vbe_set_active_render_target): Handle double buffering.
23923 (grub_video_vbe_get_active_render_target): Likewise.
23924 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23925 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23926 (grub_video_vbe_enable_double_buffering): Likewise.
23927 (grub_video_vbe_swap_buffers): Use update_screen.
23928 (grub_video_set_mode): Use double buffering.
23929
239302010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23931
23932 * maintainance/gentrigtables.py: Remove.
23933 * lib/trig.c: Likewise.
23934
23935 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23936
23937 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23938 `trigtables.c'.
23939 (trigtables.c): New rule.
23940 (gentrigtables): Likewise.
23941 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23942
239432010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23944
23945 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23946 integer constants.
23947
239482010-02-06 Colin D Bennet <colin@gibibit.com>
23949
23950 Trigonometry support.
23951
23952 * include/grub/trig.h: New file.
23953 * lib/trig.c: Likewise.
23954 * maintainance/gentrigtables.py: Likewise.
23955 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23956 (trig_mod_SOURCES): New variable.
23957 (trig_mod_CFLAGS): Likewise.
23958 (trig_mod_LDFLAGS): Likewise.
23959
5562834e
VS
239602010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23961
23962 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23963 disk devices.
23964
4f8528fc
VS
239652010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23966
23967 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23968 error.
23969
2b4068e9
VS
239702010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23971
23972 * util/hostdisk.c (open_device): Don't use partition device when reading
23973 before the partition.
23974 (grub_util_biosdisk_read): Don't read from partition and before the
23975 partition in single operation.
23976 (grub_util_biosdisk_write): Don't write to partition and before the
23977 partition in single operation.
23978
399f6e4d
TL
239792010-02-03 Torsten Landschoff <torsten@debian.org>
23980
23981 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23982 last sectors.
23983
996649b0
VS
239842010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23985
23986 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23987 CDROM reads.
23988 (grub_biosdisk_write): Refuse to write to CDROM.
23989
3b205d4d
VS
239902010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23991
23992 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23993
61e89d9d
VS
239942010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23995
23996 * font/font.c (find_glyph): Check that bmp_idx is available before
23997 using it.
23998 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23999 with (font == NULL).
24000
bf7fcba2
CS
240012010-01-28 Christian Schmitt <chris@ilovelinux.de>
24002
24003 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
24004
f45d2663
BC
240052010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
24006
24007 * include/grub/script_sh.h (sourcecode): Add const qualifier.
24008 * util/grub-script-check.c (getline): Fix empty lines case.
24009
ec1444e6
RM
240102010-01-28 Robert Millan <rmh.grub@aybabtu.com>
24011
24012 * Makefile.in (check): Exit with fail status when one of the tests
24013 fails.
24014 * tests/example_functional_test.c (example_test): Fix reversed assert.
24015 * tests/example_unit_test.c (example_test): Likewise.
24016
2e1cb9bb
CW
240172010-01-28 Colin Watson <cjwatson@ubuntu.com>
24018
24019 * util/grub.d/10_linux.in: This script does not use any of the
24020 contents of gettext.sh, only the external command `gettext', so stop
24021 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
24022 the same prefix as GRUB.)
24023 * util/grub.d/10_kfreebsd.in: Likewise.
24024
63533ab0
VS
240252010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24026
24027 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
24028 of the line.
24029
989e1f93
VS
240302010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24031
24032 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24033 last sectors.
24034
e709ebe2
VS
240352010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24036
24037 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
24038 having a 4KiB and not 32KiB buffer size.
24039
27dea7ed
RM
240402010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24041
24042 * util/hostfs.c: Include `<errno.h>'.
24043 (grub_hostfs_read): Handle errors from fseeko() and fread().
24044
67667b9c
RM
240452010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24046
24047 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
24048 loop when using read hooks on files whose size isn't sector-aligned.
24049
c294d9d8
RM
240502010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24051
24052 Remove unused parameter.
24053
24054 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
24055 (grub_iso9660_open): Remove initialization of `data->length'.
24056
af75a9f1
RM
240572010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24058
24059 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
24060 memleak conditions.
24061
254e2ce5 240622010-01-27 Carles Pina i Estany <carles@pina.cat>
24063
24064 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
24065 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
24066
b510928c 240672010-01-26 Carles Pina i Estany <carles@pina.cat>
24068
24069 * util/bin2h.c (usage): Fix warning (space after backslash).
24070
aa2f9dd2 240712010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 24072
24073 * font/font.c: Include `grub/fontformat.h.
24074 Remove font file format constants.
24075 (grub_font_load): Use the new macros.
24076 * include/grub/fontformat.h: New file.
24077 * util/grub-mkfont.c: Include `grub/fontformat.c'.
24078 (write_font_pf2): Use the new macros.
24079
94e7e712
RM
240802010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24081
24082 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
24083 does.
24084
3973a59a
RM
240852010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24086
24087 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
24088
24089 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
24090 (_start): Macroify `0x7F'.
24091
24092 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
24093 (make_install_device): Use "(pxe)" as fallback prefix when booting
24094 via PXE.
24095
42e0cba3
GS
240962010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
24097
24098 * configure.ac: Reset LIBS after check for libgcc symbols.
24099
847effd8
CW
241002010-01-25 Colin Watson <cjwatson@ubuntu.com>
24101
24102 * util/hostdisk.c (open_device): Add trailing newline to debug
24103 message.
24104
ea4a7e35
GS
241052010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
24106
24107 * configure.ac: Check for `limits.h'.
24108 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
24109
67951a53
RM
241102010-01-24 Robert Millan <rmh.grub@aybabtu.com>
24111
24112 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
24113 capitalize error strings.
24114
c273d4ce
ST
241152010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
24116
24117 * util/grub.d/10_hurd.in: Add a recovery mode.
24118
69be5b74
VS
241192010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
24120
24121 * configure.ac: Check for libgcc symbols with -nostdlib.
24122
fc9e5810
BC
241232010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
24124
24125 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
24126
4b358c0a
VS
241272010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24128
24129 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
24130 stack since heap may be unavailable at that point.
24131 (grub_ofconsole_gotoxy): Likewise.
24132
454fcd1c
VS
241332010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24134
24135 * configure.ac: Check for _restgpr_14_x.
24136 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
24137 and _savegpr_* prototypes.
24138
566863ca
RM
241392010-01-22 Robert Millan <rmh.grub@aybabtu.com>
24140
24141 Use generic grub_reboot() for i386-efi.
24142
24143 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
24144 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
24145 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
24146
bf86e59a
VS
241472010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24148
24149 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
24150 presence of "prefix" variable as it breaks when normal.mod is
24151 embedded.
24152
d645e0f8
VS
241532010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24154
24155 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
24156 stack since heap is unavailable at that point.
24157
f9ab2e25
VS
241582010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24159
24160 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
24161 (grub_freebsd_bootinfo): Rewritten.
24162 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
24163
01fc7054
VS
241642010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24165
24166 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
24167
caab4fd6
RM
241682010-01-21 Robert Millan <rmh.grub@aybabtu.com>
24169
24170 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
24171 domain now.
24172
67eb1427
FZ
241732010-01-20 Felix Zielcke <fzielcke@z-51.de>
24174
24175 * util/misc.c (make_system_path_relative_to_its_root): Change the work
24176 around for handling "/" to the correct fix. Fix a memory leak. Use
24177 xstrdup instead of strdup.
24178
a9ed4ff3
VS
241792010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24180
24181 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
24182
241832010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
24184
24185 Optimise glyph lookup by Basic Multilingual Plane lookup array.
24186
24187 * font/font.c (struct grub_font): New member 'bmp_idx'.
24188 (font_init): Initialise 'bmp_idx'.
24189 (load_font_index): Fill 'bmp_idx'.
24190 (find_glyph): Make inline. Use bmp_idx for BMP characters.
24191
48209f4f
VS
241922010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24193
24194 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
24195 unnecessary calls.
24196
9f0a4bb7
VS
241972010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24198
24199 Move context handling out of the kernel.
24200
24201 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
24202 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
24203 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
24204 * conf/i386-efi.rmk: Likewise.
24205 * conf/i386-ieee1275.rmk: Likewise.
24206 * conf/i386-pc.rmk: Likewise.
24207 * conf/powerpc-ieee1275.rmk: Likewise.
24208 * conf/sparc64-ieee1275.rmk: Likewise.
24209 * conf/x86_64-efi.rmk: Likewise.
24210 * include/grub/env.h: Include grub/menu.h.
24211 (grub_env_var_type): Removed.
24212 (grub_env_var): Replaced field 'type' with 'global'.
24213 (grub_env_find): New prototype.
24214 (grub_env_context_open): Remove EXPORT_FUNC.
24215 (grub_env_context_close): Likewise.
24216 (grub_env_export): Likewise.
24217 (grub_env_set_data_slot): Removed.
24218 (grub_env_get_data_slot): Likewise.
24219 (grub_env_unset_data_slot): Likewise.
24220 (grub_env_unset_menu): New prototype.
24221 (grub_env_set_menu): Likewise.
24222 (grub_env_get_menu): Likewise.
24223 * include/grub/env_private.h: New file.
24224 * include/grub/normal.h (grub_context_init): New prototype.
24225 (grub_context_fini): Likewise.
24226 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
24227 * normal/context.c (grub_cmd_export): ... to here.
24228 * kern/env.c: Include env_private.h.
24229 (HASHSZ): Moved to include/grub/env_private.h.
24230 (grub_env_context): Likewise.
24231 (grub_env_sorted_var): Likewise.
24232 (current_context): Renamed from this ...
24233 (grub_current_context): ...to this. 'static' removed. All users updated.
24234 (grub_env_find): Removed 'static'.
24235 (grub_env_context_open): Moved to normal/context.c.
24236 (grub_env_context_close): Likewise.
24237 (grub_env_export): Likewise.
24238 (mangle_data_slot_name): Removed.
24239 (grub_env_set_data_slot): Likewise.
24240 (grub_env_get_data_slot): Likewise.
24241 (grub_env_unset_data_slot): Likewise.
24242 * kern/main.c (grub_set_root_dev): Don't export root.
24243 It will be done later.
24244 (grub_main): Don't export prefix.
24245 It will be done later.
24246 * normal/context.c: New file.
24247 * normal/main.c (free_menu): Use grub_env_unset_menu.
24248 (grub_normal_add_menu_entry): Use grub_env_get_menu.
24249 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
24250 (GRUB_MOD_INIT(normal)): Call grub_context_init.
24251 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
24252
8dd35b8c
VS
242532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24254
24255 setpci support.
24256
24257 * commands/setpci.c: New file.
24258 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
24259 (setpci_mod_SOURCES): New variable.
24260 (setpci_mod_CFLAGS): Likewise.
24261 (setpci_mod_LDFLAGS): Likewise.
24262
449193d5
VS
242632010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24264
24265 Byte-addressable PCI configuration space.
24266
24267 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24268 dword address.
24269 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24270 GRUB_PCI_REG_CACHELINE.
24271 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24272 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24273 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24274 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24275 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24276 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24277 grub_pci_make_address.
24278 (lock_rom_area): Likewise.
24279 * commands/lspci.c (grub_lspci_iter): Use macroses
24280 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24281 of grub_pci_make_address.
24282 * disk/ata.c (grub_ata_pciinit): Likewise.
24283 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24284 (GRUB_PCI_REG_VENDOR): Likewise.
24285 (GRUB_PCI_REG_DEVICE): Likewise.
24286 (GRUB_PCI_REG_COMMAND): Likewise.
24287 (GRUB_PCI_REG_STATUS): Likewise.
24288 (GRUB_PCI_REG_REVISION): Likewise.
24289 (GRUB_PCI_REG_CLASS): Likewise.
24290 (GRUB_PCI_REG_CACHELINE): Likewise.
24291 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24292 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24293 (GRUB_PCI_REG_BIST): Likewise.
24294 (GRUB_PCI_REG_ADDRESSES): Likewise.
24295 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24296 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24297 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24298 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24299 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24300 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24301 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24302 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24303 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24304 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24305 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24306 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24307 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24308 (GRUB_PCI_REG_MIN_GNT): Likewise.
24309 (GRUB_PCI_REG_MAX_LAT): Likewise.
24310 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24311 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24312 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 24313 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
24314 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24315 space.
24316
96d73208
RM
243172010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24318
24319 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24320 can be reliably determined to be supported.
24321
d4484482
RM
243222010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24323
24324 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24325 that VESA is supported.
24326 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24327 supported.
24328
00308ecf
VS
243292010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24330
24331 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24332
f66924a4
RM
243332010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24334
24335 * util/misc.c (make_system_path_relative_to_its_root): Work around
24336 special-casing of "/", as previous incarnation of this routine did.
24337
cbca0ada
VS
243382010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24339
24340 Fix any-emu compilation.
24341
24342 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24343 * grub_bin2h_SOURCES: New variable.
24344
34a66d99
RM
243452010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24346
24347 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24348
94fabf58
RM
243492010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24350
24351 * util/grub.d/00_header.in: Fix handling of locale_dir.
24352
02cf98ca
VS
243532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24354
24355 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24356 as possible unifont location (Gentoo).
24357 Reported by: Alexander Brüning
24358
327dbcd7
VS
243592010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24360
24361 Don't try to generate lists for kernel.img.
24362
24363 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24364 (pkglib_MODULES): Remove kernel.img.
24365 (kernel_img_EXPORTS): Removed.
24366 (kernel_img_RELOCATABLE): New variable.
24367 * conf/x86_64-efi.rmk: Likewise.
24368 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24369
ca467290
VS
243702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24371
24372 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24373 grub_xasprintf or grub_snprintf.
24374 (grub_vsprintf): Likewise.
24375 (grub_snprintf): New proto.
24376 (grub_vsnprintf): Likewise.
24377 (grub_xasprintf): Likewise.
24378 (grub_xvasprintf): Likewise.
24379 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24380 (grub_sprintf): Removed.
24381 (grub_vsnprintf): New function.
24382 (grub_snprintf): Likewise.
24383 (grub_xvasprintf): Likewise.
24384 (grub_xasprintf): Likewise.
24385 (grub_vsprintf): Renamed to ...
24386 (grub_vsnprintf_real): ...this. New argument max_len.
24387
aca655fd
BC
243882010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24389
24390 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24391 fix grub-script-check warning.
24392
7ee92c32
VS
243932010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24394
24395 * include/grub/font.h (grub_font_load): Fix prototype.
24396
f80927ca
VS
243972010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24398
24399 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24400
119c50ea
VS
244012010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24402
24403 * include/grub/x86_64/at_keyboard.h: New file.
24404
47d5f3c1
VS
244052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24406
24407 * loader/mips/linux.c: Include missing grub/i18n.h.
24408
55ff5266
RM
244092009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24410
24411 * normal/menu.c (notify_execution_failure): Clarify error message.
24412
c893cc87
RM
244132009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24414
24415 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24416 return value (and revert all return statements). Update users.
24417
917dd370
CW
244182010-01-20 Dan Merillat <debian@dan.merillat.org>
24419
24420 * kern/device.c (grub_device_iterate): Allocate new part_ent
24421 structure based on sizeof (*p) rather than sizeof (p->next), to
24422 account for structure padding.
24423
24424 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24425 disk is NULL, which might happen for LVM physical volumes with no
24426 LVM signature.
24427
d4a4ee57
RM
244282009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24429
24430 * loader/mips/linux.c (grub_cmd_initrd)
24431 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24432
244332009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24434
24435 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24436 (grub_video_video_init, grub_video_bitmap_init)
24437 (grub_font_manager_init, grub_term_gfxterm_init)
24438 (grub_at_keyboard_init): New extern declarations.
24439 (grub_machine_init): Initialize gfxterm and at_keyboard.
24440
24441 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24442
24443 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24444 `gfxterm.mod' into core image.
24445
24446 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24447 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24448 (kernel_img_FORMAT): Copy to ...
24449
24450 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24451 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24452 (kernel_img_FORMAT): ... here, and ...
24453
24454 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24455 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24456 (kernel_img_FORMAT): ... here.
24457
24458 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24459 and input (at_keyboard) terminals in kernel.
24460 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24461
24462 (pkglib_MODULES): Remove `pci.mod'.
24463 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24464 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24465 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24466 (at_keyboard_mod_LDFLAGS): Remove variables.
24467
244682010-01-11 Felix Zielcke <fzielcke@z-51.de>
24469
24470 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24471
244722009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24473
24474 * include/grub/mips/libgcc.h: Only export symbols for functions
24475 that libgcc provides.
24476
244772009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24478
24479 MIPS support.
24480
24481 * bus/bonito.c: New file.
24482 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24483 GRUB_PCI_NUM_DEVICES.
24484 * term/i386/pc/serial.c: Move to ...
24485 * term/serial.c: ... here. All users updated.
24486 * util/i386/pc/grub-mkimage.c: Move to ...
24487 * util/grub-mkrawimage.c: ... here. All users updated.
24488 * term/i386/pc/at_keyboard.c: Move to ...
24489 * term/at_keyboard.c: ... here. All users updated.
24490 * conf/mips-qemu-mips.rmk: New file.
24491 * conf/mips-yeeloong.rmk: Likewise.
24492 * conf/mips.rmk: Likewise.
24493 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24494 mipsel-qemu-mips.
24495 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24496 to port addresses.
24497 (grub_ata_pciinit): Support CS5536.
24498 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24499 * font/font_cmd.c (loadfont_command): Open file before passing it to
24500 grub_font_load.
24501 (pseudo_file_read): New function.
24502 (pseudo_file_close): Likewise.
24503 (pseudo_fs): New structure.
24504 (load_font_module): New function.
24505 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24506 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24507 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24508 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24509 * include/grub/i386/at_keyboard.h: Split into ...
24510 * include/grub/at_keyboard.h: ... this ...
24511 * include/grub/i386/at_keyboard.h: ... and this.
24512 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24513 New prototype.
24514 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24515 updated.
24516 (grub_elf64_size): Likewise.
24517 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24518 filename.
24519 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24520 * include/grub/i386/coreboot/serial.h: Rewritten.
24521 * include/grub/i386/ieee1275/serial.h: Include
24522 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24523 * include/grub/i386/pc/serial.h: Moved from here ...
24524 * include/grub/serial.h: ... to here. All users updated.
24525 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24526 (GRUB_PCI_NUM_BUS): Likewise.
24527 (GRUB_PCI_NUM_DEVICES): Likewise.
24528 (grub_pci_device_map_range): Add missing volatile keyword.
24529 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24530 * include/grub/mips/at_keyboard.h: New file.
24531 * include/grub/mips/cache.h: Likewise.
24532 * include/grub/mips/io.h: Likewise.
24533 * include/grub/mips/kernel.h: Likewise.
24534 * include/grub/mips/libgcc.h: Likewise.
24535 * include/grub/mips/pci.h: Likewise.
24536 * include/grub/mips/qemu-mips/boot.h: Likewise.
24537 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24538 * include/grub/mips/qemu-mips/loader.h: Likewise.
24539 * include/grub/mips/qemu-mips/memory.h: Likewise.
24540 * include/grub/mips/qemu-mips/serial.h: Likewise.
24541 * include/grub/mips/qemu-mips/time.h: Likewise.
24542 * include/grub/mips/relocator.h: Likewise.
24543 * include/grub/mips/time.h: Likewise.
24544 * include/grub/mips/types.h: Likewise.
24545 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24546 * include/grub/mips/yeeloong/boot.h: Likewise.
24547 * include/grub/mips/yeeloong/kernel.h: Likewise.
24548 * include/grub/mips/yeeloong/loader.h: Likewise.
24549 * include/grub/mips/yeeloong/memory.h: Likewise.
24550 * include/grub/mips/yeeloong/pci.h: Likewise.
24551 * include/grub/mips/yeeloong/serial.h: Likewise.
24552 * include/grub/mips/yeeloong/time.h: Likewise.
24553 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24554 * kern/elf.c (grub_elf32_size): New parameter. All users
24555 updated.
24556 (grub_elf64_size): Likewise.
24557 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24558 Load modules before saying "Welcome to GRUB!".
24559 Call grub_refresh after saying "Welcome to GRUB!".
24560 * kern/mips/cache.S: New file.
24561 * kern/mips/cache_flush.S: Likewise.
24562 * kern/mips/dl.c: Likewise.
24563 * kern/mips/init.c: Likewise.
24564 * kern/mips/qemu-mips/init.c: Likewise.
24565 * kern/mips/startup.S: Likewise.
24566 * kern/mips/yeeloong/init.c: Likewise.
24567 * kern/term.c (grub_putcode): Handle NULL terminal.
24568 (grub_getcharwidth): Likewise.
24569 (grub_getkey): Likewise.
24570 (grub_checkkey): Likewise.
24571 (grub_getkeystatus): Likewise.
24572 (grub_getxy): Likewise.
24573 (grub_getwh): Likewise.
24574 (grub_gotoxy): Likewise.
24575 (grub_cls): Likewise.
24576 (grub_setcolorstate): Likewise.
24577 (grub_setcolor): Likewise.
24578 (grub_getcolor): Likewise.
24579 (grub_refresh): Likewise.
24580 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24581 (write_jump): Add hatch nop.
24582 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24583 * lib/mips/setjmp.S: New file.
24584 * loader/mips/linux.c: Likewise.
24585 * term/i386/pc/at_keyboard.c: Move from here ...
24586 * term/at_keyboard.c: ... to here.
24587 * term/i386/pc/serial.c: Moved from here ...
24588 * term/serial.c: ... to here. All users updated.
24589 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24590 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24591 (serial_translate_key_sequence): Avoid deadlock.
24592 (grub_serial_getkey): Handle backspace.
24593 (grub_serial_putchar): Fix newline handling.
24594 * util/i386/pc/grub-mkimage.c: Move from here ...
24595 * util/grub-mkrawimage.c: ... to here. All users updated.
24596 (generate_image): New parameters 'font_path' and 'format'.
24597 Support embedding font.
24598 Use grub_host_to_target* instead of grub_cpu_to_le*.
24599 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24600 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24601 (options): New option "--font".
24602 (usage): Likewise.
24603 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24604 (main): Handle "--font".
24605 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24606 (grub_virtual_screen_setup): Set bg_color_display.
24607 (redraw_screen_rect): Use bg_color_display instead of incorrect
24608 bg_color.
24609 (grub_gfxterm_cls): Likewise.
24610 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24611 Support embedding config file.
24612 (add_segments): Likewise.
24613 (options): New option "--config".
24614 (main): Handle "--config".
24615 * video/sm712.c: New file.
24616
25c2b5b3
RM
246172010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24618
24619 Fix parallel builds.
24620
24621 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24622 font.c depend on ascii.h).
24623
246242010-01-12 Carles Pina i Estany <carles@pina.cat>
24625
24626 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24627
246282010-01-11 Carles Pina i Estany <carles@pina.cat>
24629
24630 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24631 By default: disabled.
24632 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24633 parameter.
24634
246352010-01-10 Carles Pina i Estany <carles@pina.cat>
24636
24637 * font/font.c: Update copyright years.
24638 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24639
246402010-01-10 Carles Pina i Estany <carles@pina.cat>
24641
24642 * font/font.c: Include `ascii.h'.
24643 (ASCII_BITMAP_SIZE): New macro.
24644 (ascii_font_glyph): Define.
24645 (ascii_glyph_lookup): New function.
24646 (grub_font_get_string_width): Change comment. If glyph not found, use
24647 ascii_glyph_lookup.
24648 (grub_font_get_glyph_with_fallback): If glyph not available returns
24649 ascii_glyph_lookup.
24650 * util/grub-mkfont.c (file_formats): New enum.
24651 (options): Add `ascii-bitmaps' new option.
24652 (usage): Add `asii-bitmaps' new option.
24653 (write_font_ascii_bitmap): New function.
24654 (write_font): Rename to ...
24655 (write_font_p2): ... this. Remove print_glyphs call.
24656 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24657 used. Call print_glyphs.
24658 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24659
246602010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24661
24662 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24663 (grub_bin2h_SOURCES): New variable.
24664 * util/bin2h.c: New file.
24665
915fc1b8
VS
246662010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24667
24668 * include/multiboot.h: Resynced with spec.
24669 * include/multiboot2.h: Likewise.
24670 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24671 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24672
9444b678
RM
246732010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24674
24675 * include/grub/term.h (grub_term_register_input,
24676 grub_term_register_output): Check return of terminal init()
24677 routines, and abort if errors are raised.
24678
24679 * commands/terminal.c: Update copyright year.
24680
cba98e8d
RM
246812010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24682
24683 * commands/terminal.c (grub_cmd_terminal_input)
24684 (grub_cmd_terminal_output): Check return of terminal init()
24685 routines, and abort if errors are raised.
24686
6f7db5d6
VS
246872010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24688
24689 * include/grub/i386/bsd.h: Fix include pathes.
24690
262bff8d
VS
246912010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24692
24693 Add missing *BSD copyright headers.
24694
24695 * include/grub/aout.h: Add BSD licence.
24696 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24697 * include/grub/i386/freebsd_linker.h: ... here,
24698 * include/grub/i386/freebsd_reboot.h: ... here,
24699 * include/grub/i386/netbsd_bootinfo.h: ... here,
24700 * include/grub/i386/netbsd_reboot.h: ... here,
24701 * include/grub/i386/openbsd_bootarg.h: ... here,
24702 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24703 licence to each file.
24704
b2cab848
RM
247052010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24706
24707 * acinclude.m4: Remove `nop' assembly instruction; it's not
24708 implemented by all architectures.
24709
2cb6be4b
RM
247102010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24711
24712 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24713 ELILO. This is no longer necessary.
24714
a2eaee15
BC
247152010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24716
24717 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24718
24719 * util/grub-script-check.c: grub-script-check tool.
24720 * conf/common.rmk: Make rules for grub-script-check.
24721
88d17012
RM
247222010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24723
24724 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24725 spotting it back in 2008. Shame on me for forgetting he did.
24726
24727 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24728
8040619d
RM
247292010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24730
24731 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24732 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24733 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24734 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24735 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24736 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24737
a0c2a0f6
RM
247382010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24739
24740 * include/grub/test.h: Add license header.
24741 * tests/example_functional_test.c: Likewise.
24742 * tests/example_unit_test.c: Likewise.
24743 * tests/lib/functional_test.c: Likewise.
24744 * tests/lib/test.c: Likewise.
24745 * tests/lib/unit_test.c: Likewise.
24746
b0b13907
VS
247472010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24748
24749 Use flag-based instead of hook-based video mode selection and "auto"
24750 keyword.
24751
24752 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24753 (grub_video_set_mode): Changed prototype. All users updated.
24754 (grub_video_check_mode_flag): New inline function.
24755 * video/video.c (parse_modespec): New function.
24756 (grub_video_set_mode): Parse flags and keywords.
24757
ea379330 247582010-01-17 Carles Pina i Estany <carles@pina.cat>
24759
24760 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24761 fprintf call.
24762
e15c215e
FZ
247632010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24764
24765 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24766
409ae1c9 247672010-01-16 Carles Pina i Estany <carles@pina.cat>
24768
24769 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24770 string.
24771 * util/grub-emu.c (usage): Likewise.
24772 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24773 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24774 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24775 * util/i386/pc/grub-setup.c (usage): Likewise.
24776
70a14d3d 247772010-01-16 Carles Pina i Estany <carles@pina.cat>
24778
24779 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24780 the message.
24781 (grub_util_info): Likewise.
24782 (grub_util_error): Likewise.
24783 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24784 and/or new lines in `grub_util_warna', `grub_util_info',
24785 `grub_util_error' calls.
24786 * util/getroot.c: Likewise.
24787 * util/grub-editenv.c: Likewise.
24788 * util/grub-emu.c: Likewise.
24789 * util/grub-fstest.c: Likewise.
24790 * util/grub-mkdevicemap.c: Likewise.
24791 * util/grub-mkfont.c: Likewise.
24792 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24793 * util/grub-mkrelpath.c: Likewise.
24794 * util/grub-pe2elf.c: Likewise.
24795 * util/grub-probe.c: Likewise.
24796 * util/hostdisk.c: Likewise.
24797 * util/i386/efi/grub-mkimage.c: Likewise.
24798 * util/i386/pc/grub-mkimage.c: Likewise.
24799 * util/i386/pc/grub-setup.c: Likewise.
24800 * util/ieee1275/ofpath.c: Likewise.
24801 * util/mkisofs/eltorito.c: Likewise.
24802 * util/mkisofs/rock.c: Likewise.
24803 * util/mkisofs/write.c: Likewise.
24804 * util/raid.c: Likewise.
24805 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24806 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24807
a0b766fc
VS
248082010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24809
24810 Enable multiboot on non-pc.
24811
24812 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24813 multiboot.mod and multiboot2.mod to ...
24814 * conf/i386.rmk (pkglib_MODULES): ... here.
24815 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24816 Moved to ...
24817 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24818 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24819 Moved to ...
24820 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24821 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24822 Moved to ...
24823 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24824 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24825 Moved to ...
24826 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24827 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24828 relocator.mod.
24829 (ata_mod_SOURCES): Removed.
24830 (ata_mod_CFLAGS): Likewise.
24831 (ata_mod_LDFLAGS): Likewise.
24832 (relocator_mod_SOURCES): Removed.
24833 (relocator_mod_CFLAGS): Likewise.
24834 (relocator_mod_ASFLAGS): Likewise.
24835 (relocator_mod_LDFLAGS): Likewise.
24836 Include i386.mk.
24837 * include/grub/x86_64/multiboot.h: New file.
24838 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24839 Terminate EFI.
24840
884ade56
VS
248412010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24842
24843 Video multiboot support.
24844
24845 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24846 New prototype.
24847 * include/multiboot.h: Resynced with multiboot specification.
24848 * include/multiboot2.h: Likewise.
24849 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24850 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24851 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24852 (HAS_VGA_TEXT): Likewise.
24853 (accepts_video): New variable.
24854 (grub_multiboot_set_accepts_video): New function.
24855 (grub_multiboot_get_mbi_size): Account for video structures.
24856 (set_video_mode): New function.
24857 (retrieve_video_parameters): Likewise.
24858 (grub_multiboot_make_mbi): Fill video fields.
24859
0d90e8a6
VS
248602010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24861
24862 Video driver ids.
24863
24864 * include/grub/video.h (grub_video_driver_id): New type.
24865 (grub_video_adapter): New member 'id'. All users updated.
24866 (grub_video_get_driver_id): New proto.
24867 * video/video.c (grub_video_get_driver_id): New function.
24868
5c71db1b 248692010-01-14 Carles Pina i Estany <carles@pina.cat>
24870
24871 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24872 `var=val'.
24873
cca15b52 248742010-01-14 Carles Pina i Estany <carles@pina.cat>
24875
24876 * normal/cmdline.c (print_completion): Gettextizze.
24877
c586fbb2 248782001-01-14 Carles Pina i Estany <carles@pina.cat>
24879
24880 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24881
ba2f6848 248822010-01-14 Carles Pina i Estany <carles@pina.cat>
24883
24884 * gettext/gettext.c (grub_gettext_translate): Push and pop
24885 grub_errno.
24886 (grub_gettext_delete_list): Change comment style.
24887 * kern/err.c (grub_error): Gettextizze.
24888 (grub_fatal): Gettextizze.
24889
0a46429a
RM
248902010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24891
24892 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24893 (grub_linux16_real_boot): ... this.
24894 * kern/i386/loader.S: Likewise.
24895 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24896 (grub_linux16_boot): New function. Switches to text mode and calls
24897 grub_linux16_real_boot().
24898
24899 * loader/i386/bsd.c: Include `<grub/video.h>'.
24900 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24901 text mode before calling grub_unix_real_boot().
24902
24903 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24904 (grub_multiboot_boot): Switch to text mode before calling
24905 grub_relocator32_boot().
24906
24907 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24908 (grub_chainloader_boot): Switch to text mode before calling
24909 grub_chainloader_real_boot().
24910
d6f93a66
RM
249112010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
249122010-01-05 Colin Watson <cjwatson@ubuntu.com>
24913
24914 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24915 non-empty value.
24916
249172010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
249182010-01-05 Colin Watson <cjwatson@ubuntu.com>
24919
24920 * util/grub.d/00_header.in: Define a "savedefault" function for use
24921 in menu entries.
24922 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24923
249242010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
249252010-01-05 Colin Watson <cjwatson@ubuntu.com>
24926
24927 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24928 saved_entry if boot_once is unset.
24929 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24930 previous saved entry (i.e. grub-reboot).
24931
249322009-12-08 Colin Watson <cjwatson@ubuntu.com>
24933
24934 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24935
249362009-12-08 Colin Watson <cjwatson@ubuntu.com>
24937
24938 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24939 `var=val'.
24940 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24941
249422009-12-08 Colin Watson <cjwatson@ubuntu.com>
24943
24944 * util/grub-reboot.in: Fix --version output.
24945 * util/grub-set-default.in: Likewise.
24946
249472009-12-08 Colin Watson <cjwatson@ubuntu.com>
24948
24949 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24950 blocks.
24951
249522009-12-08 Colin Watson <cjwatson@ubuntu.com>
24953
24954 * util/grub.d/00_header.in: Quote the value assigned to `default',
24955 in case it contains spaces.
24956
249572009-12-08 Colin Watson <cjwatson@ubuntu.com>
24958
24959 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24960 `save_default_entry' call from the macosx case to the linux case.
24961
249622009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
249632009-10-25 Colin Watson <cjwatson@ubuntu.com>
24964
24965 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24966 in `chosen' environment variable.
24967 * normal/menu_text.c (get_entry_number): Check if the variable
24968 matches the title of a menu entry.
24969 (run_menu): Pass menu to get_entry_number.
24970
24971 * util/grub-reboot.in: New file.
24972 * util/grub-set-default.in: New file.
24973 * conf/common.rmk (grub-reboot): New utility.
24974 (grub-set-default): New utility.
24975
24976 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24977 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24978 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24979 move it to `saved_entry' for the next boot. Load environment on
24980 initialisation.
24981 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24982 * util/grub.d/10_hurd.in: Likewise.
24983 * util/grub.d/10_linux.in (linux_entry): Likewise.
24984 * util/grub.d/10_windows.in: Likewise.
24985 * util/grub.d/30_os-prober.in: Likewise.
24986
24987 * util/grub-install.in: Create environment block.
24988 * util/i386/efi/grub-install.in: Likewise.
24989 * util/ieee1275/grub-install.in: Likewise.
24990 * util/sparc64/ieee1275/grub-install.in: Likewise.
24991
0934d184
BC
249922010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24993
24994 Unit testing framework for GRUB.
24995
24996 * Makefile.in: Test framework build rules for 'make check'.
24997 * conf/tests.rmk: Build rules for individual tests and framework.
24998
24999 * include/grub/test.h: Header file for whitebox tests.
25000 * tests/lib/functional_test.c: Framework support for whitebox
25001 functional tests.
25002 * tests/lib/test.c: Common whitebox testing code for unit and
25003 functional tests.
25004 * tests/lib/unit_test.c: Framework support for whitebox unit
25005 tests.
25006
25007 * tests/util/grub-shell-tester.in: Support utility for grub-script
25008 tests.
25009 * tests/util/grub-shell.in: Utility to execute grub-script
25010 commands in a Qemu instance.
25011
25012 * tests/example_functional_test.c: Example whitebox functional
25013 test.
25014 * tests/example_grub_script_test.in: Example grub-script test.
25015 * tests/example_scripted_test.in: Example scripted test.
25016 * tests/example_unit_test.c: Example whitebox unit test.
25017
9c4ffeeb
VS
250182010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
25019
25020 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
25021 Add loader/i386/multiboot_mbi.c.
25022 (multiboot2_mod_SOURCES): Likewise.
25023 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
25024 (multiboot2_mod_SOURCES): Likewise.
25025 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
25026 (grub_multiboot_make_mbi): Likewise.
25027 (grub_multiboot_free_mbi): Likewise.
25028 (grub_multiboot_init_mbi): Likewise.
25029 (grub_multiboot_add_module): Likewise.
25030 (grub_multiboot_set_bootdev): Likewise.
25031 * loader/i386/multiboot.c (mbi): Removed.
25032 (mbi_dest): Likewise.
25033 (alloc_mbi): New variable.
25034 (grub_multiboot_payload_size): Removed. All users updated.
25035 (grub_multiboot_pure_size): New variable.
25036 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
25037 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
25038 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
25039 (grub_fill_multiboot_mmap): Likewise.
25040 (grub_multiboot_get_bootdev): Likewise.
25041 (grub_multiboot): Use multiboot_mbi functions.
25042 * loader/i386/multiboot_mbi.c: New file.
25043
17383dfe
VS
250442010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25045
25046 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
25047 it would result in module crash.
25048
c1f28820
VS
250492010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25050
25051 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
25052 (grub_ofconsole_getwh): Split to ...
25053 (grub_ofconsole_getwh): ... this.
25054 (grub_ofconsole_dimensions): ...and this.
25055 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
25056
58655a16
RM
250572010-01-13 Robert Millan <rmh.grub@aybabtu.com>
25058
25059 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
25060
10891398
VS
250612010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25062
25063 * loader/i386/pc/multiboot2.c: Removed stalled file.
25064
0b8a223c
VS
250652010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25066
25067 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
25068 Reported by: Grégoire Sutre
25069
92ab12b0
RM
250702010-01-11 Robert Millan <rmh.grub@aybabtu.com>
25071
25072 * util/misc.c (canonicalize_file_name): New function.
25073 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
25074 instead of realpath().
25075
a788afb6
CW
250762010-01-11 Colin Watson <cjwatson@ubuntu.com>
25077
25078 * util/grub-install.in (usage): Clarify meaning of --root-directory,
25079 and make it clearer that it's optional. Based on confusion
25080 witnessed on IRC.
25081
ffa8e3d2
VS
250822010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25083
25084 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
25085 in premature implicit newline.
25086
e9060a9d
VS
250872010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25088
25089 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
25090 which resulted in garbled command line at the end of screen.
25091
f0d0c0b7
RM
250922010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25093
25094 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
25095 initialization with similar approach as with other Linux loaders.
25096
0e60bae7
RM
250972010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25098
25099 Fix i386-ieee1275 build.
25100
25101 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
25102 and grub_term_height() for video_{width,height} initialization.
25103
251042010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
25105
25106 Fix grub-emu build.
25107
25108 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
25109
cdb3f378
RM
251102010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
251112010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25112
25113 Support for multiple terminals.
25114
25115 * Makefile.in (pkglib_DATA): terminal.lst.
25116 (terminal.lst): New target.
25117 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
25118 (GRUB_MOD_INIT(handler)): Likewise.
25119 (GRUB_MOD_FINI(handler)): Likewise.
25120 * commands/help.c (grub_cmd_help): Handle multiple terminals.
25121 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
25122 * commands/sleep.c (do_print): Use grub_term_restore_pos.
25123 (grub_cmd_sleep): Use grub_term_save_pos.
25124 * commands/terminal.c: New file.
25125 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
25126 commands/terminal.c and lib/charset.c.
25127 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
25128 (pkglib_MODULES): Add terminal.mod.
25129 (terminal_mod_SOURCES): New variable.
25130 (terminal_mod_CFLAGS): Likewise.
25131 (terminal_mod_LDFLAGS): Likewise.
25132 * genhandlerlist.sh: Don't handle terminals.
25133 * genmk.rb: Generate terminal-*.lst.
25134 * genterminallist.sh: New file.
25135 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
25136 (grub_is_valid_utf8): Likewise.
25137 (grub_utf8_to_ucs4_alloc): Likewise.
25138 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
25139 (grub_menu_register_viewer): Changed argument.
25140 (grub_menu_try_text): New proto.
25141 (grub_gfxmenu_try_hook): New declaration.
25142 * include/grub/normal.h (grub_normal_exit_level): New declaration.
25143 (grub_menu_init_page): Additional argument term.
25144 (grub_normal_init_page): Likewise.
25145 (grub_cmdline_get): Arguments simplified.
25146 (grub_utf8_to_ucs4_alloc): Removed.
25147 (grub_print_ucs4): Additional argument term.
25148 (grub_getstringwidth): Likewise.
25149 (grub_print_message_indented): Likewise.
25150 (grub_menu_text_register_instances): New proto.
25151 (grub_show_menu): Likewise.
25152 (read_terminal_list): Likewise.
25153 (grub_set_more): Likewise.
25154 * include/grub/parser.h: Include handler.h.
25155 * include/grub/reader.h: Rewritten.
25156 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
25157 (GRUB_TERM_WIDTH): Changed to function.
25158 (GRUB_TERM_HEIGHT): Likewise.
25159 (GRUB_TERM_BORDER_WIDTH): Likewise.
25160 (GRUB_TERM_BORDER_HEIGHT): Likewise.
25161 (GRUB_TERM_NUM_ENTRIES): Likewise.
25162 (GRUB_TERM_ENTRY_WIDTH): Likewise.
25163 (GRUB_TERM_CURSOR_X): Likewise.
25164 (grub_term_input_class): Likewise.
25165 (grub_term_output_class): Likewise.
25166 (grub_term_outputs_disabled): New declaration.
25167 (grub_term_inputs_disabled): Likewise.
25168 (grub_term_outputs): Likewise.
25169 (grub_term_inputs): Likewise.
25170 (grub_term_register_input): Rewritten.
25171 (grub_term_register_output): Likewise.
25172 (grub_term_unregister_input): Likewise.
25173 (grub_term_unregister_output): Likewise.
25174 (FOR_ACTIVE_TERM_INPUTS): New macro.
25175 (FOR_DISABLED_TERM_INPUTS): Likewise.
25176 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
25177 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
25178 * include/grub/terminfo.h: Add oterm argument to all protypes.
25179 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
25180 Use grub_rescue_run.
25181 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
25182 All users updated.
25183 * kern/reader.c: Removed. All users updated.
25184 * kern/rescue_reader.c (grub_rescue_init): Removed.
25185 (grub_rescue_reader): Likewise.
25186 (grub_register_rescue_reader): Likewise.
25187 (grub_rescue_run): New function based on kern/reader.c.
25188 * kern/term.c: Adapted for multiterm.
25189 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
25190 (grub_is_valid_utf8): Likewise.
25191 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
25192 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
25193 right terminal.
25194 * loader/i386/linux.c (grub_linux_boot): Likewise.
25195 * normal/auth.c (grub_username_get): New function.
25196 (grub_auth_check_authentication): Use grub_username_get.
25197 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
25198 * normal/color.c: Adapt for multiterm.
25199 * normal/main.c (read_config_file): Don't use grub_reader_loop.
25200 (grub_normal_init_page): Additional argument term.
25201 (read_lists): Call read_terminal_lists.
25202 (grub_enter_normal_mode): Call grub_cmdline_run.
25203 Handle grub_normal_exit_level.
25204 (grub_cmd_normal): Make reentrant.
25205 (grub_cmd_normal_exit): New function.
25206 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
25207 * normal/menu.c: Adapt for multiterm.
25208 * normal/menu_entry.c: Likewise.
25209 * normal/menu_text.c: Likewise.
25210 * normal/menu_viewer.c: Removed. All users updated.
25211 * normal/term.c: New file.
25212 * util/console.c: Change order of includes to workaround a bug in
25213 ncurses headers.
25214 * term/terminfo.c: New argument oterm on all exported functions.
25215 All users updated.
25216 * util/grub-editenv.c (grub_term_input_class): Removed.
25217 (grub_term_output_class): Likewise.
25218
1a064917
RM
252192010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25220
25221 Make loader output a bit more user-friendly.
25222
25223 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
25224 is being loaded. Likewise for the Hurd.
25225
25226 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
25227 that kernel of FreeBSD ${version} is being loaded.
25228
25229 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
25230 grub_dprintf().
25231 (grub_cmd_initrd): Likewise.
25232 * util/grub.d/10_linux.in (linux_entry): Print message indicating
25233 that Linux ${version} is being loaded. Likewise for initrd.
25234
5ce0a83a 252352010-01-09 Carles Pina i Estany <carles@pina.cat>
25236
25237 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
25238
809bbfeb 252392010-01-08 Carles Pina i Estany <carles@pina.cat>
25240
25241 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
25242 (GRUB_MOD_INIT): Gettextizze.
25243 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
25244 (GRUB_MOD_INIT): Gettextizze.
25245 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
25246 (grub_cmd_linux): Capitalise Linux.
25247 (GRUB_MOD_INIT): Gettextizze.
25248 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
25249 (grub_cmd_linux): Capitalise Linux.
25250 (GRUB_MOD_INIT): Gettextizze.
25251 * loader/i386/linux.c: Include `<grub/i18n.h>'.
25252 (grub_cmd_linux): Capitalise Linux.
25253 (GRUB_MOD_INIT): Gettextizze.
25254 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
25255 (GRUB_MOD_INIT): Gettextizze.
25256 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
25257 (grub_cmd_linux): Capitalise Linux.
25258 (GRUB_MOD_INIT): Gettextizze.
25259 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
25260 (grub_cpu_xnu_init): Gettextizze.
25261 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
25262 (GRUB_MOD_INIT): Gettextizze.
25263 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
25264 (GRUB_MOD_INIT): Gettextizze.
25265 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
25266 (grub_linux_load64): Capitalise Linux.
25267 (GRUB_MOD_INIT): Gettextizze.
25268 * loader/xnu.c: Include `<grub/i18n.h>'.
25269 (GRUB_MOD_INIT): Gettextizze.
25270 * po/POTFILES: Add `loader/efi/appleloader.c',
25271 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25272 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25273 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25274 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25275 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25276 and `loader/xnu.c'.
25277
b394b2ca
RM
252782010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25279
25280 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25281
252822010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
25283
25284 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25285 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25286 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25287
bc8b32b3
RM
252882010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25289
25290 Reset Multiboot 2 support. New loader implements the draft in
25291 /branches/multiboot2 and shares as much code as possible with the
25292 production Multiboot 1 implementation.
25293
25294 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25295 * loader/multiboot2.c: Likewise.
25296 * loader/i386/multiboot_helper.S: Likewise.
25297 * include/multiboot2.h: Replace with latest version from the draft
25298 in /branches/multiboot2.
25299
25300 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25301 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25302 and `loader/multiboot2.c'.
25303 (pkglib_MODULES): Add `multiboot2.mod'.
25304 (multiboot2_mod_SOURCES): New variable.
25305 (multiboot2_mod_LDFLAGS): Likewise.
25306 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25307
25308 * conf/i386-pc.rmk: Likewise.
25309
25310 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25311 (multiboot_mod_SOURCES): Remove variable.
25312 (multiboot_mod_LDFLAGS): Likewise.
25313 (multiboot_mod_CFLAGS): Likewise.
25314
25315 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25316 `<multiboot2.h>' instead of `<multiboot.h>'.
25317 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25318 (MULTIBOOT_HEADER_MAGIC): New macros.
25319
25320 * loader/multiboot_loader.c (module_version_status): Remove variable.
25321 (find_multi_boot2_header): Remove function.
25322 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25323 logic. Always check for the Multiboot version we're compiling for.
25324 (grub_cmd_module_loader): Likewise.
25325 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25326 command instead of `multiboot'.
25327
5d2c52b8
RM
253282010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25329
25330 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25331 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25332 all users.
25333
53108d92
RM
253342010-01-07 Robert Millan <rmh.grub@aybabtu.com>
253352010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25336
25337 Fix breakage introduced with previous commit.
25338
25339 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25340 commands.
25341 * normal/handler.c (read_handler_list): Revert part of previous commit
25342 affecting this file.
25343 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25344 (grub_normal_execute): ... here.
25345
e2e936b2
RM
253462010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25347
25348 Merge prefix-redefinition-fix branch.
25349
25350 * normal/autofs.c (read_fs_list): Make function capable of being
25351 run multiple times, gracefuly replacing the previous data
25352 structures.
25353 * normal/dyncmd.c (read_command_list): Likewise.
25354 * normal/handler.c (read_handler_list): Likewise.
25355 * normal/main.c (read_lists): New function. Calls all the
25356 list reading functions.
25357 (grub_normal_execute): Use read_lists() instead of calling all
25358 list reading functions explicitly. Register read_lists() as a
25359 variable hook attached to ${prefix}.
25360
607a3701
VS
253612010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25362
25363 Merge crypto branch.
25364
25365 * Makefile.in (pkglib_DATA): Add crypto.lst.
25366 (crypto.lst): New target.
25367 * commands/hashsum.c: New file.
25368 * commands/password.c (check_password): Use grub_crypto_memcmp.
25369 * commands/password_pbkdf2.c: New file.
25370 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25371 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25372 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25373 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25374 -I$(srcdir)/lib/libgcrypt_wrap.
25375 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25376 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25377 password_pbkdf2.mod.
25378 (crypto_mod_SOURCES): New variable.
25379 (crypto_mod_CFLAGS): Likewise.
25380 (crypto_mod_LDFLAGS): Likewise.
25381 (hashsum_mod_SOURCES): New variable.
25382 (hashsum_mod_CFLAGS): Likewise.
25383 (hashsum_mod_LDFLAGS): Likewise.
25384 (pbkdf2_mod_SOURCES): New variable.
25385 (pbkdf2_mod_CFLAGS): Likewise.
25386 (pbkdf2_mod_LDFLAGS): Likewise.
25387 (password_pbkdf2_mod_SOURCES): New variable.
25388 (password_pbkdf2_mod_CFLAGS): Likewise.
25389 (password_pbkdf2_mod_LDFLAGS): Likewise.
25390 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25391 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25392 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25393 Include conf/gcry.rmk.
25394 * include/grub/auth.h: Rewritten.
25395 * include/grub/crypto.h: New file.
25396 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25397 * include/grub/normal.h (read_crypto_list): New prototype.
25398 * lib/crypto.c: New file.
25399 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25400 * lib/pbkdf2.c: Likewise.
25401 * normal/auth.c (grub_auth_strcmp): Removed.
25402 (grub_iswordseparator): Likewise.
25403 (grub_auth_strword): Likewise.
25404 (is_authenticated): Use grub_strword.
25405 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25406 and grub_strword. Pass entered password to authentication callback.
25407 * normal/crypto.c: New file.
25408 * normal/main.c: Call read_crypto_list.
25409 * util/grub-mkpasswd-pbkdf2.c: New file.
25410 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25411
42841caa
VS
254122010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25413
25414 Fix descent and ascent calculation.
25415
25416 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25417 (options): New option "asce".
25418 (usage): Likewise.
25419 (add_char): Ignore invalid glyphs for descent calculation.
25420 Calculate ascent from actual content.
25421 (print_glyphs): Use 'asce'.
25422 (write_font): Likewise. Allow ascent override.
25423 (main): Handle "asce" option.
25424
e7730de7 254252010-01-06 Carles Pina i Estany <carles@pina.cat>
25426
25427 * kern/err.c: Include `<grub/i18n.h>'.
25428 (grub_print_error): Add full stop. Gettextizze.
25429 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25430 (grub_bsd_load_elf): Capitalise ELF.
25431 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25432 (grub_cmd_freebsd_module): Likewise.
25433 (grub_cmd_freebsd_module_elf): Likewise.
25434 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25435
40e3a41f 254362010-01-06 Carles Pina i Estany <carles@pina.cat>
25437
25438 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25439 * commands/search_file.c (HELP_MESSAGE): New macro.
25440 * commands/search_label.c (HELP_MESSAGE): Likewise.
25441 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25442 * po/POTFILES: Add `commands/search_file.c',
25443 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25444 `commands/search.c'.
25445
83507e68
RM
254462010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25447
25448 * config.rpath: Update from Gnulib.
25449
465c787b
YB
254502010-01-05 Yves Blusseau <blusseau@zetam.org>
25451
25452 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25453
6581dd3a
YB
254542010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25455
25456 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25457
3bff18c5
CW
254582010-01-05 Colin Watson <cjwatson@ubuntu.com>
25459
25460 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25461 arguments to fread so that we get a return value in bytes, rather
25462 than something that will normally be rounded down to 0.
25463 Adjust error handling to avoid producing garbage when size_t is not
25464 the same size as long long.
25465
a1368118
CW
254662010-01-05 Colin Watson <cjwatson@ubuntu.com>
25467
25468 * util/mkisofs/write.c (padblock_write): Check return value of
25469 fread.
25470
7c302978
RM
254712010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25472
25473 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25474 floppy images now.
25475
25476 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25477
e33ace06
RM
254782010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25479
25480 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25481 instead of manual alignment.
25482 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25483 verbose). Avoid attempts to read past end of the device
25484 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25485 but GRUB_DISK_CACHE_SIZE may exceed that).
25486
4b856776
RM
254872010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25488
25489 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25490 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25491 it to upper layer.
25492
52c2d97f
VS
254932010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25494
25495 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25496 New constant.
25497 (grub_efi_piwg_device_path): New structure
25498 (grub_efi_piwg_device_path_t): New type.
25499 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25500 (devpath_1): Transform to a structure. All users updated.
25501 (devpath_2): Likewise.
25502 (devpath_3): Likewise.
25503 (devpath_4): Likewise.
25504 (devpath_5): Likewise.
25505
98ff6a54
VS
255062010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25507
25508 * loader/efi/appleloader.c: Restored. Update all users.
25509
3a73dcb6
RM
255102010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25511
25512 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25513
25514 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25515 (struct boot_blocklist): Move from here ...
25516 * include/grub/i386/pc/boot.h [ASM_FILE]
25517 (struct grub_boot_blocklist): ... to here. Update all users.
25518 (setup): Only initialize `start' member of `first_block'
25519 structure. Add assert() calls to verify the other members.
25520
25521 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25522 (generate_image): Fix broken blocklist length initialization.
25523 Add assert() call to verify blocklist `segment' field.
25524
ab0eeb0c
RM
255252010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25526
25527 * loader/efi/appleloader.c: Remove. Update all users.
25528
58bc8bd5
RM
255292010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25530
25531 * boot/i386/pc/boot.S: Update copyright year.
25532 * boot/i386/pc/cdboot.S: Likewise.
25533 * boot/i386/pc/diskboot.S: Likewise.
25534 * boot/i386/pc/lnxboot.S: Likewise.
25535 * boot/i386/pc/pxeboot.S: Likewise.
25536 * bus/pci.c: Likewise.
25537 * commands/cmp.c: Likewise.
25538 * commands/help.c: Likewise.
25539 * commands/hexdump.c: Likewise.
25540 * commands/i386/pc/halt.c: Likewise.
25541 * commands/i386/pc/play.c: Likewise.
25542 * commands/i386/pc/vbeinfo.c: Likewise.
25543 * commands/ls.c: Likewise.
25544 * commands/test.c: Likewise.
25545 * disk/dmraid_nvidia.c: Likewise.
25546 * disk/i386/pc/biosdisk.c: Likewise.
25547 * disk/ieee1275/nand.c: Likewise.
25548 * disk/ieee1275/ofdisk.c: Likewise.
25549 * disk/lvm.c: Likewise.
25550 * disk/raid.c: Likewise.
25551 * disk/raid6_recover.c: Likewise.
25552 * disk/scsi.c: Likewise.
25553 * fs/affs.c: Likewise.
25554 * fs/cpio.c: Likewise.
25555 * fs/ext2.c: Likewise.
25556 * fs/hfs.c: Likewise.
25557 * fs/iso9660.c: Likewise.
25558 * fs/ntfs.c: Likewise.
25559 * fs/sfs.c: Likewise.
25560 * fs/udf.c: Likewise.
25561 * fs/ufs.c: Likewise.
25562 * fs/xfs.c: Likewise.
25563 * gencmdlist.sh: Likewise.
25564 * genmk.rb: Likewise.
25565 * include/grub/disk.h: Likewise.
25566 * include/grub/efi/api.h: Likewise.
25567 * include/grub/efi/efi.h: Likewise.
25568 * include/grub/efi/pe32.h: Likewise.
25569 * include/grub/elf.h: Likewise.
25570 * include/grub/fs.h: Likewise.
25571 * include/grub/i386/at_keyboard.h: Likewise.
25572 * include/grub/i386/pc/memory.h: Likewise.
25573 * include/grub/i386/pc/vbe.h: Likewise.
25574 * include/grub/i386/pci.h: Likewise.
25575 * include/grub/i386/tsc.h: Likewise.
25576 * include/grub/ieee1275/ieee1275.h: Likewise.
25577 * include/grub/ntfs.h: Likewise.
25578 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25579 * include/grub/sparc64/libgcc.h: Likewise.
25580 * include/grub/symbol.h: Likewise.
25581 * include/grub/types.h: Likewise.
25582 * include/multiboot2.h: Likewise.
25583 * io/gzio.c: Likewise.
25584 * kern/device.c: Likewise.
25585 * kern/disk.c: Likewise.
25586 * kern/efi/efi.c: Likewise.
25587 * kern/efi/mm.c: Likewise.
25588 * kern/elf.c: Likewise.
25589 * kern/file.c: Likewise.
25590 * kern/i386/dl.c: Likewise.
25591 * kern/i386/pc/init.c: Likewise.
25592 * kern/i386/pc/startup.S: Likewise.
25593 * kern/ieee1275/ieee1275.c: Likewise.
25594 * kern/ieee1275/init.c: Likewise.
25595 * kern/main.c: Likewise.
25596 * kern/mm.c: Likewise.
25597 * kern/powerpc/dl.c: Likewise.
25598 * kern/sparc64/dl.c: Likewise.
25599 * kern/x86_64/dl.c: Likewise.
25600 * lib/hexdump.c: Likewise.
25601 * loader/efi/appleloader.c: Likewise.
25602 * loader/i386/ieee1275/linux.c: Likewise.
25603 * loader/i386/pc/chainloader.c: Likewise.
25604 * loader/i386/pc/linux.c: Likewise.
25605 * loader/i386/pc/multiboot2.c: Likewise.
25606 * loader/ieee1275/multiboot2.c: Likewise.
25607 * loader/multiboot2.c: Likewise.
25608 * loader/multiboot_loader.c: Likewise.
25609 * loader/powerpc/ieee1275/linux.c: Likewise.
25610 * normal/completion.c: Likewise.
25611 * normal/menu_entry.c: Likewise.
25612 * partmap/apple.c: Likewise.
25613 * util/grub.d/10_hurd.in: Likewise.
25614 * util/hostfs.c: Likewise.
25615 * video/readers/png.c: Likewise.
25616
e2d70b5c
CW
256172010-01-03 Colin Watson <cjwatson@ubuntu.com>
25618
25619 * include/grub/misc.h (GNUC_PREREQ): New macro.
25620 (ATTRIBUTE_ERROR): New macro.
25621 * include/grub/list.h (grub_bad_type_cast_real): Use
25622 ATTRIBUTE_ERROR.
25623
a173283f 256242010-01-03 Carles Pina i Estany <carles@pina.cat>
25625
25626 * normal/menu_text.c (print_message): Change messages.
25627
7fa7ff74 256282010-01-03 Carles Pina i Estany <carles@pina.cat>
25629
25630 * normal/menu_entry.c (store_completion): Gettextizze.
25631
136d24f6 256322010-01-03 Carles Pina i Estany <carles@pina.cat>
25633
25634 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25635
f936862e 256362010-01-03 Carles Pina i Estany <carles@pina.cat>
25637
25638 * po/POTFILES: Sort correctly.
25639
29c44ad1 256402010-01-03 Carles Pina i Estany <carles@pina.cat>
25641
25642 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25643 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25644 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25645 full stop.
25646 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25647 summary. Gettextizze the strings.
25648 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25649 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25650 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25651 full stop.
25652 (GRUB_MOD_INIT): Remove command name from summary.
25653 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25654 summary.
25655 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25656 * term/i386/pc/serial.c (options): Add full stops.
25657 (GRUB_MOD_INIT): Remove command name from the summary.
25658
77a79592 256592010-01-03 Carles Pina i Estany <carles@pina.cat>
25660
25661 * commands/acpi.c: Gettextizze help strings and/or options. Include
25662 `grub/i18n.h' if needed.
25663 * commands/blocklist.c: Likewise.
25664 * commands/boot.c: Likewise.
25665 * commands/cat.c: Likewise.
25666 * commands/cmp.c: Likewise.
25667 * commands/configfile.c: Likewise.
25668 * commands/crc.c: Likewise.
25669 * commands/date.c: Likewise.
25670 * commands/echo.c: Likewise.
25671 * commands/efi/fixvideo.c: Likewise.
25672 * commands/efi/loadbios.c: Likewise.
25673 * commands/gptsync.c: Likewise.
25674 * commands/halt.c: Likewise.
25675 * commands/handler.c: Likewise.
25676 * commands/hdparm.c: Likewise.
25677 * commands/hexdump.c: Likewise.
25678 * commands/i386/cpuid.c: Likewise.
25679 * commands/i386/pc/drivemap.c: Likewise.
25680 * commands/i386/pc/halt.c: Likewise.
25681 * commands/i386/pc/pxecmd.c: Likewise.
25682 * commands/i386/pc/vbeinfo.c: Likewise.
25683 * commands/i386/pc/vbetest.c: Likewise.
25684 * commands/ieee1275/suspend.c: Likewise.
25685 * commands/keystatus.c: Likewise.
25686 * commands/loadenv.c: Likewise.
25687 * commands/ls.c: Likewise.
25688 * commands/lsmmap.c: Likewise.
25689 * commands/lspci.c: Likewise.
25690 * commands/memrw.c: Likewise.
25691 * commands/minicmd.c: Likewise.
25692 * commands/parttool.c: Likewise.
25693 * commands/password.c: Likewise.
25694 * commands/probe.c: Likewise.
25695 * commands/read.c: Likewise.
25696 * commands/reboot.c: Likewise.
25697 * commands/search.c: Likewise.
25698 * commands/sleep.c: Likewise.
25699 * commands/test.c: Likewise.
25700 * commands/true.c: Likewise.
25701 * commands/usbtest.c: Likewise.
25702 * commands/videotest.c: Likewise.
25703 * commands/xnu_uuid.c: Likewise.
25704 * disk/loopback.c: Likewise.
25705 * hello/hello.c: Likewise.
25706 * loader/i386/bsd.c: Likewise.
25707 * term/i386/pc/serial.c: Likewise.
25708 * po/POTFILES: Add new files.
25709
da8d5c53
CW
257102010-01-02 Colin Watson <cjwatson@ubuntu.com>
25711
25712 * term/i386/pc/at_keyboard.c
25713 (keyboard_controller_wait_untill_ready): Rename to ...
25714 (keyboard_controller_wait_until_ready): ... this. Update all users.
25715
33937904 257162010-01-01 Carles Pina i Estany <carles@pina.cat>
25717
25718 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25719 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25720 string using string width.
25721 * normal/menu_text.c (grub_print_message_indented): Use
25722 grub_print_spaces and not print_spaces.
25723 (print_timeout): Likewise.
25724 (print_spaces): Move to...
25725 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25726
3fd3b8d8
RM
257272010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25728
25729 Import from Gnulib.
25730
25731 * gnulib/getdelim.c: New file.
25732 * gnulib/getline.c: Likewise.
25733
33433555
VS
257342009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25735
25736 * include/grub/list.h (grub_assert_fail): Removed.
25737 (grub_bad_type_cast_real): New function.
25738 (grub_bad_type_cast): New macro.
25739 (GRUB_AS_LIST): Use grub_bad_type_cast.
25740 (GRUB_AS_LIST_P): Likewise.
e44721e8 25741 (GRUB_AS_NAMED_LIST): Likewise.
33433555 25742 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 25743 (GRUB_AS_PRIO_LIST): Likewise.
33433555 25744 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 25745 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 25746
f5a51306
VS
257472009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25748
25749 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25750 Fix syntax error.
25751
90d1e879
RM
257522009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25753
25754 * configure.ac: Check for TARGET_CFLAGS initialization before we
25755 initialize it ourselves (sigh).
25756 Move a few modifications to TARGET_CFLAGS to be unconditional
25757 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25758 eh_frame)
25759
25760 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25761 * term/i386/pc/at_keyboard.c
25762 (keyboard_controller_wait_untill_ready): Likewise.
25763 (keyboard_controller_led): Rename `led_status' paramter to avoid
25764 name conflict.
25765
465b5a81 257662009-12-28 Carles Pina i Estany <carles@pina.cat>
25767
25768 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25769 quotes.
25770
c181849b
VS
257712009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25772
25773 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25774
9c8739a4
VS
257752009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25776
25777 * normal/menu_text.c (grub_print_message_indented): Prevent
25778 past-the-end-of-array dereference.
25779
3e74249c
VS
257802009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25781
25782 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25783 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25784
64fd18ed 257852009-12-27 Carles Pina i Estany <carles@pina.cat>
25786
25787 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25788 * normal/main.c (grub_normal_read_line): Remove a space from the
25789 default prompt.
25790
714af9b9 257912009-12-27 Carles Pina i Estany <carles@pina.cat>
25792
25793 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25794 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25795 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25796 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25797 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25798 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25799 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25800
82f3e412 258012009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 25802
25803 * video/readers/jpeg.c (cmd): Declare.
25804 (grub_cmd_jpegtest): Use `grub_command_t' type.
25805 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25806 Assign to `cmd'.
25807 (GRUB_MOD_FINI): Use `cmd' to unregister.
25808 * video/readers/png.c (cmd): Declare.
25809 (grub_cmd_pngtest): Use `grub_command_t' type.
25810 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25811 Assign to `cmd'.
25812 (GRUB_MOD_FINI): Use `cmd' to unregister.
25813 * video/readers/tga.c (cmd): Declare.
25814 (grub_cmd_tgatest): Use `grub_command_t' type.
25815 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25816 Assign to `cmd'.
25817 (GRUB_MOD_FINI): Use `cmd' to unregister.
25818
82f3e412 258192009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 25820
25821 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25822 stops.
25823 * kern/corecmd.c (grub_register_core_commands): Likewise.
25824 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25825 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25826 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25827 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25828 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25829 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25830 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25831 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25832 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25833 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25834 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25835 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25836 * normal/handler.c (insert_handler): Likewise.
25837 * normal/main.c (GRUB_MOD_INIT): Likewise.
25838 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25839
fdcdbb66 258402009-12-26 Carles Pina i Estany <carles@pina.cat>
25841
25842 * commands/help.c (grub_cmd_help): Print the command name before the
25843 summary.
25844 (GRUB_MOD_INIT): Remove command name from the summary.
25845 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 25846 string as summary.
fdcdbb66 25847 * lib/arg.c (find_long): Print the command name before the summary.
25848 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25849 summary.
25850 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25851 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25852 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25853 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25854 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25855 * commands/date.c (GRUB_MOD_INIT): Likewise.
25856 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25857 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25858 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25859 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25860 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25861 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25862 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25863 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25864 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25865 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25866 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25867 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25868 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25869 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25870 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25871 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25872 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25873 * commands/password.c (GRUB_MOD_INIT): Likewise.
25874 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25875 * commands/read.c (GRUB_MOD_INIT): Likewise.
25876 * commands/search.c (GRUB_MOD_INIT): Likewise.
25877 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25878 * commands/test.c (GRUB_MOD_INIT): Likewise.
25879 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25880 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25881 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25882 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25883 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25884 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25885 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25886 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25887 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25888 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25889 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25890 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25891 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25892 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25893
9c288be2
VS
258942009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25895
25896 Use search command for preliminar UUID search.
25897
25898 * commands/search.c: Split into ...
25899 * commands/search_wrap.c: ...this
25900 * commands/search.c: ...and this.
25901 * commands/search_file.c: New file.
25902 * commands/search_label.c: New file.
25903 * commands/search_uuid.c: New file.
25904 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25905 Add commands/search_wrap.c, commands/search_file.c,
25906 commands/search_label.c and commands/search_uuid.c.
25907 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25908 (search_mod_SOURCES): Set to commands/search_wrap.c.
25909 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25910 search_label.mod.
25911 (search_fs_file_mod_SOURCES): New variable.
25912 (search_fs_file_mod_CFLAGS): Likewise.
25913 (search_fs_file_mod_LDFLAGS): Likewise.
25914 (search_label_mod_SOURCES): Likewise.
25915 (search_label_mod_CFLAGS): Likewise.
25916 (search_label_mod_LDFLAGS): Likewise.
25917 (search_fs_uuid_mod_SOURCES): New variable.
25918 (search_fs_uuid_mod_CFLAGS): Likewise.
25919 (search_fs_uuid_mod_LDFLAGS): Likewise.
25920 (fs_file_mod_SOURCES): Removed.
25921 (fs_file_mod_CFLAGS): Likewise.
25922 (fs_file_mod_LDFLAGS): Likewise.
25923 (fs_uuid_mod_SOURCES): Removed.
25924 (fs_uuid_mod_CFLAGS): Likewise.
25925 (fs_uuid_mod_LDFLAGS): Likewise.
25926 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25927 Set to util/grub-install.in.
25928 * disk/fs_file.c: Removed.
25929 * disk/fs_uuid.c: Likewise.
25930 * include/grub/search.h: New file.
25931 * util/grub-install.in: Handle sparc64.
25932 Create and use load.cfg.
25933 * util/sparc64/ieee1275/grub-install.in: Removed.
25934
db943399
VS
259352009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25936
25937 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25938 Ignore return status if CF is cleared.
25939 (grub_biosdisk_get_diskinfo_standard): Likewise.
25940
3fdae612
RM
259412009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25942
25943 * term/i386/pc/at_keyboard.c
25944 (keyboard_controller_wait_untill_ready): New function.
25945 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25946 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25947 for keyboard polling, rather than duplicate the same loop. This
25948 saves a few bytes in code size.
25949
7ebaa2b4
VS
259502009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25951
25952 Support for (pxe[:server[:gateway]]) syntax and
25953 use environment variable for PXE.
25954
25955 * commands/i386/pc/pxecmd.c (options): Removed.
25956 (print_ip): Removed.
25957 (grub_cmd_pxe): Removed
25958 (grub_cmd_pxe_unload): New function.
25959 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25960 (grub_pxe_your_ip): Made static.
25961 (grub_pxe_default_server_ip): Likewise.
25962 (grub_pxe_default_gateway_ip): Likewise.
25963 (grub_pxe_blksize): Likewise.
25964 (parse_ip): New function.
25965 (grub_pxe_open): Support server and gateway specification.
25966 (grub_pxe_close): Free disk->data.
25967 (grub_pxefs_open): Use disk->data.
25968 (grub_pxefs_read): Likewise.
25969 (grub_env_write_readonly): New function.
25970 (set_mac_env): Likewise.
25971 (set_env_limn_ro): Likewise.
25972 (parse_dhcp_vendor): Likewise.
25973 (grub_pxe_detect): Set the environment variables.
25974 (set_ip_env): New function.
25975 (write_ip_env): Likewise.
25976 (grub_env_write_pxe_default_server): Likewise.
25977 (grub_env_write_pxe_default_gateway): Likewise.
25978 (grub_env_write_pxe_blocksize): Likewise.
25979 (GRUB_MOD_INIT(pxe)): Set environment variables.
25980 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25981 (grub_pxe_mac_addr_t): ... this. All users updated.
25982 (grub_pxe_your_ip): Removed.
25983 (grub_pxe_server_ip): Likewise.
25984 (grub_pxe_gateway_ip): Likewise.
25985 (grub_pxe_blksize): Likewise.
25986
ec5f98ab 259872009-12-25 Carles Pina i Estany <carles@pina.cat>
25988
25989 * commands/help.c: Include `<grub/i18n.h>'.
25990 (grub_cmd_help): Gettextizze.
25991 (GRUB_MOD_INIT): Likewise.
25992 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25993 (GRUB_MOD_INIT): Gettextizze.
25994 * commands/search.c: Include `<grub/i18n.h>'.
25995 (options): Gettextizze.
25996 (GRUB_MOD_INIT): Gettextizze.
25997 * lib/arg.c: Include `<grub/i18n.h>'.
25998 (help_options): Gettextizze.
25999 (find_long): Likewise.
26000 (grub_arg_show_help): Likewise.
26001 * normal/dyncmd.c: Include `<grub/i18n.h>'.
26002 (read_command_list): Gettextizze.
26003 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 26004 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 26005
22815526
RM
260062009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26007
26008 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
26009 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
26010 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
26011 (led_status): New variable.
26012 (keyboard_controller_led): New function.
26013 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
26014 update led status for caps lock, num lock and scroll lock.
26015
0ad46fd7
FZ
260162009-12-25 Felix Zielcke <fzielcke@z-51.de>
26017
26018 * util/hostdisk.c (open_device): Fix a comment.
26019
d0e158c2
RM
260202009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26021
26022 * util/grub-install.in (host_os): New variable.
26023 * util/i386/efi/grub-install.in (host_os): Likewise.
26024
401c0ad6
RM
260252009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26026
26027 * util/mkisofs/write.c (padblock_write): Abort when given an
26028 excedingly large embed image, instead of silently truncating it.
26029
d14d3370
RM
260302009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26031
26032 * include/multiboot.h: Indentation fixes.
26033
eeed10b4
RM
260342009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26035
26036 * include/multiboot.h (struct multiboot_aout_symbol_table)
26037 (struct multiboot_elf_section_header_table): New structure
26038 declarations (stolen from GRUB Legacy).
26039 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
26040 table information.
26041
26042 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
26043 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
26044 type aliases.
26045
681c70ab
RM
260462009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26047
26048 * include/multiboot.h: Make comments src2texi-friendly.
26049
e4d47d8d
RM
260502009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26051
26052 For consistency with [multiboot]/docs/boot.S.
26053
26054 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
26055 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
26056 (MULTIBOOT_MAGIC2): Rename from this ...
26057 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
26058
a0b70bda
RM
260592009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26060
26061 * include/multiboot.h: Remove `<grub/types.h>'.
26062 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
26063 types. Update all users.
26064
61ba42be 260652009-12-25 Carles Pina i Estany <carles@pina.cat>
26066
26067 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
26068 `couldn't' and `can not' by `cannot'.
26069 * commands/i386/pc/drivemap.c: Likewise.
26070 * disk/ata.c: Likewise.
26071 * disk/ieee1275/nand.c: Likewise.
26072 * fs/affs.c: Likewise.
26073 * fs/fat.c: Likewise.
26074 * fs/hfs.c: Likewise.
26075 * fs/hfsplus.c: Likewise.
26076 * fs/iso9660.c: Likewise.
26077 * fs/jfs.c: Likewise.
26078 * fs/minix.c: Likewise.
26079 * fs/reiserfs.c: Likewise.
26080 * fs/sfs.c: Likewise.
26081 * fs/udf.c: Likewise.
26082 * fs/ufs.c: Likewise.
26083 * fs/xfs.c: Likewise.
26084 * loader/powerpc/ieee1275/linux.c: Likewise.
26085 * loader/sparc64/ieee1275/linux.c: Likewise.
26086 * util/grub-probe.c: Likewise.
26087 * util/misc.c: Likewise.
26088
7fd0baee 260892009-12-24 Carles Pina i Estany <carles@pina.cat>
26090
26091 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
26092 grub_errno calls.
26093 * commands/acpi.c: Likewise.
26094 * commands/blocklist.c: Likewise.
26095 * commands/efi/loadbios.c: Likewise.
26096 * commands/i386/pc/drivemap.c: Likewise.
26097 * commands/loadenv.c: Likewise.
26098 * commands/memrw.c: Likewise.
26099 * commands/password.c: Likewise.
26100 * commands/videotest.c: Likewise.
26101 * disk/ata.c: Likewise.
26102 * disk/ata_pthru.c: Likewise.
26103 * disk/dmraid_nvidia.c: Likewise.
26104 * disk/ieee1275/nand.c: Likewise.
26105 * disk/ieee1275/ofdisk.c: Likewise.
26106 * disk/loopback.c: Likewise.
26107 * disk/lvm.c: Likewise.
26108 * disk/mdraid_linux.c: Likewise.
26109 * disk/raid.c: Likewise.
26110 * disk/raid6_recover.c: Likewise.
26111 * disk/scsi.c: Likewise.
26112 * efiemu/main.c: Likewise.
26113 * efiemu/mm.c: Likewise.
26114 * efiemu/pnvram.c: Likewise.
26115 * efiemu/symbols.c: Likewise.
26116 * font/font.c: Likewise.
26117 * fs/cpio.c: Likewise.
26118 * fs/hfsplus.c: Likewise.
26119 * fs/iso9660.c: Likewise.
26120 * fs/jfs.c: Likewise.
26121 * fs/minix.c: Likewise.
26122 * fs/ntfs.c: Likewise.
26123 * fs/ntfscomp.c: Likewise.
26124 * fs/reiserfs.c: Likewise.
26125 * fs/ufs.c: Likewise.
26126 * fs/xfs.c: Likewise.
26127 * gettext/gettext.c: Likewise.
26128 * include/grub/auth.h: Likewise.
26129 * kern/elf.c: Likewise.
26130 * kern/file.c: Likewise.
26131 * kern/ieee1275/init.c: Likewise.
26132 * kern/ieee1275/mmap.c: Likewise.
26133 * kern/ieee1275/openfw.c: Likewise.
26134 * kern/powerpc/dl.c: Likewise.
26135 * kern/sparc64/dl.c: Likewise.
26136 * lib/arg.c: Likewise.
26137 * loader/i386/bsd.c: Likewise.
26138 * loader/i386/bsdXX.c: Likewise.
26139 * loader/i386/efi/linux.c: Likewise.
26140 * loader/i386/efi/xnu.c: Likewise.
26141 * loader/i386/ieee1275/linux.c: Likewise.
26142 * loader/i386/linux.c: Likewise.
26143 * loader/i386/multiboot.c: Likewise.
26144 * loader/i386/pc/linux.c: Likewise.
26145 * loader/i386/pc/multiboot2.c: Likewise.
26146 * loader/i386/xnu.c: Likewise.
26147 * loader/ieee1275/multiboot2.c: Likewise.
26148 * loader/macho.c: Likewise.
26149 * loader/machoXX.c: Likewise.
26150 * loader/multiboot2.c: Likewise.
26151 * loader/multiboot_loader.c: Likewise.
26152 * loader/powerpc/ieee1275/linux.c: Likewise.
26153 * loader/sparc64/ieee1275/linux.c: Likewise.
26154 * loader/xnu.c: Likewise.
26155 * loader/xnu_resume.c: Likewise.
26156 * mmap/i386/pc/mmap.c: Likewise.
26157 * normal/menu_viewer.c: Likewise.
26158 * partmap/acorn.c: Likewise.
26159 * partmap/amiga.c: Likewise.
26160 * partmap/apple.c: Likewise.
26161 * script/lexer.c: Likewise.
26162 * term/gfxterm.c: Likewise.
26163 * term/i386/pc/serial.c: Likewise.
26164 * term/i386/pc/vga.c: Likewise.
26165 * term/ieee1275/ofconsole.c: Likewise.
26166 * term/terminfo.c: Likewise.
26167 * video/bitmap.c: Likewise.
26168 * video/efi_gop.c: Likewise.
26169 * video/efi_uga.c: Likewise.
26170 * video/fb/video_fb.c: Likewise.
26171 * video/i386/pc/vbe.c: Likewise.
26172 * video/readers/tga.c: Likewise.
26173 * video/video.c: Likewise.
26174
0ad46fd7 261752009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
26176
26177 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
26178 * commands/lspci.c: Likewise.
26179 * commands/probe.c: Likewise.
26180 * commands/xnu_uuid.c: Likewise.
26181 * conf/i386-coreboot.rmk: Likewise.
26182 * conf/i386-efi.rmk: Likewise.
26183 * conf/i386-ieee1275.rmk: Likewise.
26184 * conf/i386-pc.rmk: Likewise.
26185 * conf/powerpc-ieee1275.rmk: Likewise.
26186 * conf/sparc64-ieee1275.rmk: Likewise.
26187 * conf/x86_64-efi.rmk: Likewise.
26188 * fs/i386/pc/pxe.c: Likewise.
26189 * gettext/gettext.c: Likewise.
26190 * include/grub/efi/graphics_output.h: Likewise.
26191 * include/grub/i386/pc/memory.h: Likewise.
26192 * kern/env.c: Likewise.
26193 * kern/i386/qemu/startup.S: Likewise.
26194 * lib/i386/pc/biosnum.c: Likewise.
26195 * lib/i386/relocator.c: Likewise.
26196 * lib/i386/relocator_asm.S: Likewise.
26197 * lib/relocator.c: Likewise.
26198 * loader/i386/bsd.c: Likewise.
26199 * loader/i386/multiboot.c: Likewise.
26200 * loader/i386/pc/chainloader.c: Likewise.
26201 * loader/i386/xnu.c: Likewise.
26202 * loader/xnu.c: Likewise.
26203 * normal/main.c: Likewise.
26204 * normal/menu_text.c: Likewise.
26205 * util/getroot.c: Likewise.
26206 * util/grub-mkconfig_lib.in: Likewise.
26207 * util/grub.d/00_header.in: Likewise.
26208 * util/i386/pc/grub-mkimage.c: Likewise.
26209 * util/mkisofs/eltorito.c: Likewise.
26210 * util/mkisofs/exclude.h: Likewise.
26211 * util/mkisofs/hash.c: Likewise.
26212 * util/mkisofs/iso9660.h: Likewise.
26213 * util/mkisofs/joliet.c: Likewise.
26214 * util/mkisofs/mkisofs.c: Likewise.
26215 * util/mkisofs/mkisofs.h: Likewise.
26216 * util/mkisofs/multi.c: Likewise.
26217 * util/mkisofs/name.c: Likewise.
26218 * util/mkisofs/rock.c: Likewise.
26219 * util/mkisofs/tree.c: Likewise.
26220 * util/mkisofs/write.c: Likewise.
26221 * video/efi_gop.c: Likewise.
26222
009ec743
VS
262232009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
26224
26225 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
26226 size counting.
26227
0ad46fd7 262282009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
26229
26230 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
26231 * genmk.rb (class SCRIPT): Modify the target file instead of source.
26232
d3d30ea0
VS
262332009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26234
26235 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
26236 (GRUB_MOD_INIT(memrw)): Update help line.
26237
a34f5c70
VS
262382009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26239
26240 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
26241 Use grub_extcmd_t. All users updated.
26242 (options): New variable.
26243 (grub_cmd_read): Restructure for readability. Support "-v" option.
26244 (grub_cmd_write): Restructure for readability.
26245
0ad46fd7 262462009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
26247
26248 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
26249
0ad46fd7 262502009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
26251
26252 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
26253 with the actual contents of the correspondending make variable.
26254 * util/grub-mkrescue.in (pkglib_DATA): New variable.
26255 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
26256 specifying `*.lst' and `efiemu??.o'
26257
0ad46fd7 262582009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
26259
26260 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
26261 after function name.
26262 Noticed by Rene Engelhard <rene@debian.org>.
26263
dc77a799
VS
262642009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26265
26266 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
26267 (options): New variable.
26268 (iospace): Likewise.
26269 (grub_lspci_iter): List IO spaces if "-i" was given.
26270 (grub_cmd_lspci): Parse options.
26271 (GRUB_MOD_INIT(lspci)): Use extcmd.
26272 (GRUB_MOD_FINI(lspci)): Likewise.
26273
0ad46fd7 262742009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
26275
26276 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26277 `function' keyword.
26278 Patch by Tony Mancill <tmancill@debian.org>.
26279
b5d5993b
VS
262802009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26281
26282 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26283 (grub_uhci_portstatus): Likewise.
26284 (grub_uhci_portstatus): Add necessary delay.
11d18281 26285 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 26286
941903f2 262872009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 26288
941903f2 26289 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26290 (GRUB_MOD_INIT): Likewise.
26291 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 26292 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26293 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 26294 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26295 (enable_rom_area): Likewise.
26296 (GRUB_MOD_INIT): Likewise.
26297 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26298 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26299 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26300 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26301 * commands/hexdump.c (options): Likewise.
26302 * commands/i386/cpuid.c (options): Likewise.
26303 (GRUB_MOD_INIT): Likewise.
26304 * commands/i386/pc/drivemap.c (options): Likewise.
26305 (GRUB_MOD_INIT): Likewise.
26306 * commands/i386/pc/halt (options): Likewise.
26307 (GRUB_MOD_INIT): Likewise.
26308 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26309 * commands/i386/pc/pxecmd.c (options): Likewise.
26310 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26311 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26312 * commands/keystatus.c (options): Likewise.
26313 (GRUB_MOD_INIT): Likewise.
26314 * commands/loadenv.c (options): Likewise.
26315 * commands/ls.c (options): Likewise.
26316 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26317 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26318 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26319 * commands/parttool.c (helpmsg): Likewise.
26320 * commands/probe.c (options): Likewise.
26321 * commands/read.c (GRUB_MOD_INIT): Likewise.
26322 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26323 * commands/search.c (options): Likewise.
26324 * commands/sleep.c (options): Likewise.
26325 * commands/test.c (GRUB_MOD_INIT): Likewise.
26326 * commands/true.c (GRUB_MOD_INIT): Likewise.
26327 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26328 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26329 * lib/arg.c (help_options): Likewise.
e9bbb4e7 26330 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26331 `$(XGETTEXT)'.
98a50553 26332 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 26333
0ad46fd7 263342009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 26335
ef3c2c3a 26336 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
26337 instead of specifying them explicit.
26338
7922f68b
RM
263392009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26340
26341 * NEWS: Add grub-probe support for GNU/Hurd.
26342
537ce47f
RM
263432009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26344
26345 * NEWS: gettext was added after 1.97.
26346
9b214e3a
RM
263472009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26348
26349 * util/mkisofs/msdos_partition.h: New file (based on
26350 include/grub/msdos_partition.h).
26351 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26352 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26353 (ld_options, main): Recognize --protective-msdos-label.
26354 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26355 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26356 (padblock_write): If `use_protective_msdos_label' is set, patch a
26357 protective DOS-style label in the output image.
26358
26359 * util/grub-mkrescue.in: Use --protective-msdos-label.
26360
e9309813
RM
263612009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26362
26363 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26364 boot.
26365
0ae56929
RM
263662009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26367
26368 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26369 variables.
26370 (ld_options, main): Recognize `--embedded-boot'.
26371 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26372 declarations.
26373 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26374 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26375 (padblock_write): Likewise. Rewrite to support embedded boot image.
26376
26377 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26378 for BIOS-based disk boot instead of only ElTorito.
26379
b15937b1
RM
263802009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26381
26382 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26383 build (not needed for bootstrap).
26384
52cc3ce0
RM
263852009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26386
26387 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26388 from i386-pc build (not needed for bootstrap).
26389 Rewrite a pair of strings.
26390
36f5ff04
RM
263912009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26392
26393 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26394
973c6c85 263952009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
26396
26397 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26398
05d21547
AB
263992009-12-21 Andreas Born <futur.andy@googlemail.com>
26400
26401 * kern/env.c (grub_env_context_open): Mark exported variable for
26402 reexport.
26403
0175d51f
AB
264042009-12-21 Andreas Born <futur.andy@googlemail.com>
26405
26406 * kern/env.c (grub_env_export): Create nonexistent variables before
26407 exporting.
26408
7f39d92f 264092009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 26410
7f39d92f 26411 * include/grub/auth.h: Include `<grub/i18n.h>'.
26412 (GRUB_GET_PASSWORD): Gettextizze string.
26413 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26414 menu_text.c.
26415 (grub_utf8_to_ucs4_alloc): Fix indentation.
26416 (grub_print_ucs4): Likewise.
26417 (grub_getstringwidth): Likewise.
26418 (print_message_indented): New declaration.
26419 * normal/auth.c: Include `<grub/i18n.h>'.
26420 (grub_auth_check_authentication): Gettexttize string.
26421 * normal/cmdline.c: Include `<grub/i18n.h>'.
26422 (grub_cmdline_get): Gettextizze.
26423 * normal/color.c: Include `<grub/i18n.h>'.
26424 (grub_parse_color_name_pair): Gettexttize strings.
26425 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26426 string (use `print_message_indented').
26427 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26428 `include/grub/normal.h'.
26429 (print_message_indented): Renamed to ...
26430 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26431 used in normal/main.c).
26432 (print_message): Use `grub_print_message_indented' instead of
26433 `print_message_indented'.
26434 (print_timeout): Likewise.
26435 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26436 (grub_normal_print_device_info): Gettexttize strings.
26437 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26438
3041d898
VS
264392009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26440
26441 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26442 of arguments. Return number of tokens and not arguments. All users
26443 updated.
26444
de15bf8e
VS
264452009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26446
26447 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26448 non-MSDOS paritions.
26449
e0a6ca52
VS
264502009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26451
26452 * include/grub/types.h (UNUSED): Removed since it conflicts with
26453 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26454 Reported by Grégoire Sutre.
26455
b99518d1 264562009-12-19 Carles Pina i Estany <carles@pina.cat>
26457
26458 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26459 (grub_print_ucs4_alloc): Likewise.
26460 (grub_getstringwidth): Likewise.
26461 * normal/main.c (grub_normal_init_page): Gettextize version string.
26462 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26463 (getstringwidth): Renamed to ...
26464 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26465 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26466 (grub_print_ucs4): Remove `static' qualifer (now used in
26467 normal/main.c).
26468 * po/POTFILES: Add normal/main.c.
26469
bfd5e52b 264702009-12-19 Carles Pina i Estany <carles@pina.cat>
26471
26472 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26473 (print_message_indented): Add `margin_left' and `margin_right'
26474 parameters.
26475 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26476 strings.
26477 (print_timeout): Use `print_message_indented' to print the message.
26478 Deletes `second_stage' parameter.
26479 (run_menu): Update `print_timeout' calls.
26480
5a1ad2b9
VS
264812009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26482
26483 Fix console palette on OpenFirmware.
26484
26485 * term/ieee1275/ofconsole.c (MAX): Removed.
26486 (colors): Redone based on VGA palette.
26487 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26488 colors are supported.
26489 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26490
b045f00a
VS
264912009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26492
26493 Fix potential EfiEmu double prepare.
26494
26495 * efiemu/main.c (prepared): New variable
26496 (grub_efiemu_unload): Set prepare to '0'.
26497 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26498
26499 set_virtual_address_map support.
26500
26501 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26502 prototype.
26503 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26504 prototype.
26505 (grub_efiemu_crc32): Likewise.
26506 (grub_efiemu_crc64): Likewise.
26507 (grub_efiemu_set_virtual_address_map): Likewise.
26508 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26509 New definition.
26510 (grub_autoefi_set_virtual_address_map): Likewise.
26511 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26512 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26513 Restructure flow to accomodate it.
26514 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26515 (grub_efiemu_crc): Recompute CRC32.
26516 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26517 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26518 * efiemu/symbols.c (relocated_handle): New variable.
26519 (grub_efiemu_free_syms): Free relocated_handle.
26520 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26521 (grub_efiemu_write_sym_markers): New function.
26522 (grub_efiemu_set_virtual_address_map): Likewise.
26523
26524 Newer XNU parameters.
26525
26526 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26527 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26528 (grub_xnu_fill_devicetree): New prototype.
26529 (grub_xnu_heap_real_start): New variable.
26530 * loader/xnu.c (get_name_ptr): New function.
26531 (grub_xnu_load_driver): Fill namelen and name.
26532
26533 64-bit xnu support.
26534
26535 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26536 and 'loader/macho64.c'.
26537 * conf/i386-pc.rmk: Likewise.
26538 * conf/x86_64-efi.rmk: Likewise.
26539 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26540 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26541 * include/grub/macho.h (grub_macho_segment64): New structure.
26542 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26543 (grub_macho_size32): ... to this.
26544 (grub_macho32_get_entry_point): Renamed from ...
26545 (grub_macho_get_entry_point32): ... to this.
26546 (grub_macho_contains_macho64): New prototype.
26547 (grub_macho_size64): Likewise.
26548 (grub_macho_get_entry_point64): Likewise.
26549 (grub_macho32_load): Renamed from ...
26550 (grub_macho_load32): ... to this.
26551 (grub_macho32_filesize): Renamed from ...
26552 (grub_macho_filesize32): ... to this.
26553 (grub_macho32_readfile): Renamed from ...
26554 (grub_macho_readfile32): ... to this.
26555 (grub_macho_filesize64): New prototype.
26556 (grub_macho_readfile64): Likewise.
26557 (grub_macho_parse32): Likewise.
26558 (grub_macho_parse64): Likewise.
26559 * loader/macho.c: Split into ...
26560 * loader/machoXX.c: ... and this. Replace 32 with XX.
26561 * loader/macho32.c: New file.
26562 * loader/macho64.c: Likewise.
26563 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26564 (grub_cmd_xnu_kernel): Make 32-bit only.
26565 (grub_cmd_xnu_kernel64): New function.
26566 (grub_xnu_load_driver): Support Mach-O 64.
26567 (grub_cmd_xnu_mkext): Likewise.
26568 * util/grub.d/30_os-prober.in (osx_entry): New function.
26569 Generate entries for 64-bit boot too.
26570
26571 Eliminate ad-hoc tree format in XNU and EfiEmu.
26572
26573 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26574 * efiemu/pnvram.c: Rewritten to use environment variables.
26575 All users updated.
26576
26577 Inline utf16_to_utf8.
26578
26579 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26580 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26581 All users updated.
26582 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26583
26584 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26585 * commands/usbtest.c (grub_usb_get_string): ... move here.
26586 (usb_print_str): Fix error handling.
26587 * include/grub/usb.h (grub_usb_get_string): Remove.
26588
26589 UTF-8 to UTF-16 transformation.
26590
26591 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26592 (charset_mod_SOURCES): New variable.
26593 (charset_mod_CFLAGS): Likewise.
26594 (charset_mod_LDFLAGS): Likewise.
26595 * include/grub/utf.h: New file.
26596 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26597
26598 Support for device properties.
26599
26600 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26601 (grub_xnu_devprop_device_header): Likewise.
26602 (grub_xnu_devprop_device_descriptor): Likewise.
26603 (grub_xnu_devprop_add_device): New prototype.
26604 (grub_xnu_devprop_remove_device): Likewise.
26605 (grub_xnu_devprop_remove_property): Likewise.
26606 (grub_xnu_devprop_add_property_utf8): Likewise.
26607 (grub_xnu_devprop_add_property_utf16): Likewise.
26608 (grub_cpu_xnu_init): Likewise.
26609 (grub_cpu_xnu_fini): Likewise.
26610 (grub_cpu_xnu_unload): Likewise.
26611 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26612 (property_descriptor): Likewise.
26613 (devices): New variable.
26614 (grub_xnu_devprop_remove_property): New function.
26615 (grub_xnu_devprop_add_device): Likewise.
26616 (grub_xnu_devprop_remove_device): Likewise.
26617 (grub_xnu_devprop_add_property): Likewise.
26618 (grub_xnu_devprop_add_property_utf8): Likewise.
26619 (grub_xnu_devprop_add_property_utf16): Likewise.
26620 (hextoval): Likewise.
26621 (grub_cpu_xnu_fill_devprop): Likewise.
26622 (grub_cmd_devprop_load): Likewise.
26623 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26624 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26625 (cmd_devprop_load): New variable.
26626 (grub_cpu_xnu_init): New function.
26627 (grub_cpu_xnu_fini): Likewise.
26628 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26629 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26630 (grub_cmd_xnu_devtree): Likewise.
26631 (hextoval): New function.
26632 (unescape): Likewise.
26633 (grub_xnu_fill_devicetree): Likewise.
26634
26635 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26636 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26637
0945f181
VS
266382009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26639
26640 Workaround for broken ATI VBE.
26641
26642 * video/i386/pc/vbe.c (last_set_mode): New variable.
26643 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26644 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26645 (grub_video_vbe_setup): Don't check for reserved flag.
26646
0ad46fd7 266472009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
26648
26649 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26650 the `find' command.
26651
c179ebe4
VS
266522009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26653
26654 UUID support for HFS.
26655
26656 * fs/hfs.c (grub_hfs_uuid): New function.
26657 (grub_hfs_fs): New value .uuid.
26658 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26659
0ad46fd7 266602009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
26661
26662 Fix a segfault with parsing unknown long options.
26663
26664 * util/grub-mkrelpath.c (options): Zero terminate it.
26665
c4a3e41a
CPE
266662009-12-13 Carles Pina i Estany <carles@pina.cat>
26667
26668 * include/grub/misc.h (grub_puts): New declaration.
26669 (grub_puts_): Likewise.
a22008a6 26670 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
26671 (grub_puts_): Likewise.
26672
2e8a7602
RM
266732009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26674
26675 * util/grub-probe.c (probe): Improve error message.
26676
b50b77b9
RM
266772009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26678
26679 * loader/i386/multiboot_elfxx.c
26680 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26681 initialization.
26682
266832009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26684
26685 Relocator framework
26686
26687 * loader/i386/xnu_helper.S: Removed. All users updated.
26688 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26689 (relocator_mod_SOURCES): New variable.
26690 (relocator_mod_CFLAGS): Likewise.
26691 (relocator_mod_LDFLAGS): Likewise.
26692 (relocator_mod_ASFLAGS): Likewise.
26693 * conf/x86_64.rmk: Likewise.
26694 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26695 (grub_multiboot_payload_entry_offset): Likewise.
26696 (grub_multiboot_forward_relocator): Likewise.
26697 (grub_multiboot_forward_relocator_end): Likewise.
26698 (grub_multiboot_backward_relocator): Likewise.
26699 (grub_multiboot_backward_relocator_end): Likewise.
26700 (grub_multiboot_payload_eip): New variable.
26701 (grub_multiboot_payload_orig): Likewise.
26702 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26703 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26704 * include/grub/i386/memory.h
26705 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26706 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26707 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26708 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26709 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26710 * include/grub/i386/relocator.h: New file.
26711 * include/grub/x86_64/relocator.h: Likewise.
26712 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26713 (XNU_RELOCATOR): New macro.
26714 (grub_xnu_launcher_start): Remove.
26715 (grub_xnu_launcher_end): Likewise.
26716 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26717 (grub_xnu_heap_real_start): Remove.
26718 (grub_xnu_heap_start): Change to void *. All users updated.
26719 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26720 * lib/i386/relocator.c: New file.
26721 * lib/i386/relocator_asm.S: Likewise.
26722 * lib/i386/relocator_backward.S: Likewise.
26723 * lib/mips/relocator.c: Likewise.
26724 * lib/mips/relocator_asm.S: Likewise.
26725 * lib/relocator.c: Likewise.
26726 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26727 (entry): Removed.
26728 (playground): Likewise.
26729 (grub_multiboot_payload_orig): New variable.
26730 (grub_multiboot_payload_dest): Likewise.
26731 (grub_multiboot_payload_size): Likewise.
26732 (grub_multiboot_payload_eip): Likewise.
26733 (grub_multiboot_payload_esp): Likewise.
26734 (grub_multiboot_boot): Use grub_relocator32_boot.
26735 (grub_multiboot_unload): Free relocators.
26736 (grub_multiboot): Setup stack. Use relocators.
26737 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26738 (grub_multiboot_load_elfXX): Use relocators.
26739 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26740 (grub_multiboot_payload_size): Likewise.
26741 (grub_multiboot_payload_dest): Likewise.
26742 (grub_multiboot_payload_entry_offset): Likewise.
26743 (grub_multiboot_forward_relocator): Likewise.
26744 (grub_multiboot_backward_relocator): Likewise.
26745 (grub_multiboot_real_boot): Likewise.
26746 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26747 (grub_xnu_entry_point): Likewise.
26748 (grub_xnu_arg1): Likewise.
26749 (grub_xnu_stack): Likewise.
26750 (grub_xnu_launch): Removed.
26751 (grub_xnu_boot_resume): New function.
26752 (grub_xnu_boot): Use relocators.
26753 * loader/i386/xnu_helper.S: Removed.
26754 * loader/xnu.c (grub_xnu_heap_start): New variable.
26755 (grub_xnu_heap_size): Likewise.
26756 (grub_xnu_heap_malloc): Use relocators.
26757 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26758
29eb90c6
VS
267592009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26760
26761 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26762 anything.
26763
31027430
CPE
267642009-12-13 Carles Pina i Estany <carles@pina.cat>
26765
26766 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26767 GRUB_ERR_NONE before calling grub_env_set.
26768
dc0c71d9
RM
267692009-12-12 Robert Millan <rmh@aybabtu.com>
26770
26771 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26772 * genmk.rb (video): New variable.
26773 (CLEANFILES, VIDEOFILES): Add #{video}.
26774 (#{video}): New target rule.
26775 * genvideolist.sh: New file.
26776 * Makefile.in (pkglib_DATA): Add video.lst.
26777 (video.lst): New target rule.
26778 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26779 `video.lst'.
26780 * util/grub.d/30_os-prober.in: Replace `vbe' with
26781 ${GRUB_VIDEO_BACKEND}.
26782
2a4bfcf0
RM
267832009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26784
26785 * THANKS: Add David Miller.
26786
2a3aa4d5
RM
267872009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26788
26789 libpciaccess support.
26790
26791 * Makefile.in (LIBPCIACCESS): New variable.
26792 (enable_grub_emu_pci): Likewise.
26793 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26794 util/pci.c and commands/lspci.c.
26795 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26796 * configure.ac (grub-emu-pci): New option.
26797 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26798 (grub_pci_device_unmap_range): Likewise.
26799 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26800 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26801 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26802 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26803 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26804 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26805 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26806 * include/grub/pciutils.h: New file.
26807 * util/pci.c: Likewise.
26808
0ad46fd7 268092009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
26810
26811 * util/misc.c: Don't include <errno.h> twice.
26812
0ad46fd7 268132009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
26814
26815 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26816 name in an error message.
26817 (grub_biosdisk_rw): Likewise.
26818
2e59983c
VS
268192009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26820
26821 Eliminate NTFS 4Gib barrier.
26822
26823 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26824 (read_run_data): Likewise.
26825 (grub_ntfs_read_run_list): Likewise.
26826 (grub_ntfs_read_block): Likewise.
26827 (grub_ntfs_iterate_dir): Likewise.
26828 (read_mft): Likewise.
26829 (read_data): Likewise.
26830 Use COM_LOG_LEN.
26831 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26832 to avoid 64-bit division
26833 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26834 (grub_ntfs_rlst): Use grub_disk_addr_t.
26835
71ee178a
VS
268362009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26837
26838 Eliminate grub-fstest 4Gib barrier.
26839
26840 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26841 (read_file): Fix error reporting.
26842
2520d4b8
VS
268432009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26844
26845 Eliminate hexdump 4Gib barrier.
26846
26847 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26848 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26849
e1f27065
VS
268502009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26851
26852 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26853 Fixes amarsh bug.
26854
1a0f7f45
RM
268552009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26856
26857 Remove miscellaneous files in distclean target.
26858
26859 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26860
c631d9fb
CW
268612009-12-09 Colin Watson <cjwatson@ubuntu.com>
26862
26863 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26864 if they're already set. This resolves the conflict between my
26865 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26866 fixing the --grub-probe option again.
26867 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26868 change on 2009-10-06, so that we now once again source
26869 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26870
7c7b6106
RM
268712009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26872
26873 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26874 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26875 `util/devicemap.c'.
26876
e3069ec1
CPE
268772009-12-08 Carles Pina i Estany <carles@pina.cat>
26878
26879 * include/grub/misc.h (grub_printf_): New declaration.
26880 * kern/misc.c (grub_printf_): New definition.
26881 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26882 instead of `grub_printf' and `_'.
26883 * normal/menu_entry.c (store_completion): Likewise.
26884 (run): Likewise.
26885 (grub_menu_entry_run): Likewise.
26886 * normal/menu_text.c (grub_wait_after_message): Likewise.
26887 (notify_booting): Likewise.
26888 (notify_fallback): Likewise.
26889 (notify_execution_failure): Likewise.
26890
d6ceebf1
CW
268912009-12-07 Colin Watson <cjwatson@ubuntu.com>
26892
26893 * configure.ac: Check for vasprintf.
26894 * util/misc.c (asprintf): Move allocation from here ...
26895 (vasprintf): ... to here. New function.
26896 (xasprintf): New function.
26897 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26898 prototypes.
26899 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26900 * util/grub-mkfont.c (write_font): Likewise.
26901 * util/grub-probe.c (probe): Likewise.
26902 * util/hostdisk.c (make_device_name): Likewise.
26903
de6daa8b
DM
269042009-12-06 David S. Miller <davem@sunset.davemloft.net>
26905
26906 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26907 anything even prefixed with 'cdrom' as a cdrom.
26908
0ad46fd7 269092009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
26910
26911 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26912 mount points.
26913
98d3dc02
CPE
269142009-12-05 Carles Pina i Estany <carles@pina.cat>
26915
26916 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26917 grub_gettext_msg_list.
26918 (grub_gettext_gettranslation_from_position): Return const char *
26919 and not char *.
a2c1332b 26920 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
26921 returns from the list if existing there.
26922 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26923 (grub_gettext_delete_list): Delete the list.
26924 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26925 lang environment variable is changed.
26926 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26927
b283f108
VS
269282009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26929
26930 Rename kernel.mod to kernel.img.
26931
26932 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26933 (kernel_mod_EXPORTS): Rename to ...
26934 (kernel_img_EXPORTS): ... this.
26935 (kernel_mod_SOURCES): Rename to ...
26936 (kernel_img_SOURCES): ... this.
26937 (kernel_mod_HEADERS): Rename to ...
26938 (kernel_img_HEADERS): ... this. All users updated.
26939 (kernel_mod_CFLAGS): Rename to ...
26940 (kernel_img_CFLAGS): ... this.
26941 (kernel_mod_ASFLAGS): Rename to ...
26942 (kernel_img_ASFLAGS): ... this.
26943 (kernel_mod_LDFLAGS): Rename to ...
26944 (kernel_img_LDFLAGS): ... this.
26945 * conf/x86_64-efi.rmk: Likewise.
26946 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26947 (read_kernel_image): ... this. All users updated.
26948 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26949
69055f8a
CPE
269502009-12-05 Carles Pina i Estany <carles@pina.cat>
26951
26952 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26953 (print_spaces): New function.
26954 (grub_print_ucs4): New function.
26955 (getstringwidth): New function.
26956 (print_message_indented): New function.
26957 (print_message): Gettexttize strings using print_message_indented.
26958 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26959 width.
26960 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 26961 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
26962 Gettextize.
26963 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26964 string.
26965 (run): Likewise.
26966 (grub_menu_entry_run): Likewise.
26967 * PO/POTFILES: Add normal/menu_entry.c.
26968
f616f51c
VS
269692009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26970
26971 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26972
57bbe3be
CPE
269732009-12-05 Carles Pina i Estany <carles@pina.cat>
26974
26975 * util/grub-install.in: Install gettext .mo files.
26976 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26977
013d67a1
CPE
269782009-12-05 Carles Pina i Estany <carles@pina.cat>
26979
26980 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26981 grub_dprintf.
26982
fb954db0
RM
269832009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26984
26985 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26986 non-firmware-dependant one in realmode.S takes precedence.
26987
6b8474f8
RM
269882009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26989
26990 * commands/halt.c: Replace misc arch-specific headers with
26991 `<grub/misc.h>'.
26992 * commands/reboot.c: Likewise.
26993 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26994 `<grub/misc.h>'.
26995 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26996 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26997 (kernel_img_SOURCES): ... to here.
26998
26999 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
27000 * include/grub/i386/pc/init.h: Likewise.
27001 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27002 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27003
27004 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
27005
27006 * include/grub/i386/halt.h: Remove.
27007 * include/grub/i386/reboot.h: Likewise.
27008
27009 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
27010
4b2e6ca2
DM
270112009-12-03 David S. Miller <davem@sunset.davemloft.net>
27012
27013 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
27014 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
27015 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
27016 "progname.h"
27017 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27018 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27019 (usage): Add missing comma in printf.
27020
5239348f
RM
270212009-12-02 Robert Millan <rmh.grub@aybabtu.com>
27022
27023 Use the same reboot approach on i386 coreboot and qemu as we do on
27024 BIOS.
27025
27026 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
27027 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
27028 * kern/i386/reboot.c: Remove.
27029 * include/grub/i386/reboot.h (grub_reboot): Export function.
27030 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
27031 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
27032 0xf000:0xfff0 instead of 0xffff:0x0000.
27033 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
27034 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
27035
ef34cbd4
RM
270362009-11-30 Robert Millan <rmh.grub@aybabtu.com>
27037
27038 Fix $srcdir != $objdir build.
27039
27040 * Makefile.in (po/%.po): Rewrite as ...
27041 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
27042
dc9837ea
ST
270432009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
27044
27045 Fix GNU/Hurd grub-install crash.
27046 * util/grub-probe.c (probe): Try to access `path' only when it is not
27047 NULL.
27048
2f857f98
VS
270492009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27050
27051 Correct module naming.
27052
27053 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27054 (GRUB_MOD_INIT(efi_uga)): ... to this
27055 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27056 (GRUB_MOD_FINI(efi_uga)): ... to this
27057 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27058 (GRUB_MOD_INIT(efi_gop)): ... to this
27059 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27060 (GRUB_MOD_FINI(efi_gop)): ... to this
27061
c5448046
RM
270622009-11-28 Robert Millan <rmh.grub@aybabtu.com>
27063
27064 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
27065 translatable.
27066 (usage): Translate `arg' strings using gettext().
27067 Thanks to Jordi Mallach for the suggestion.
27068
c85184ad
VS
270692009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27070
27071 GOP support. Based on patch from Bean
27072 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27073
27074 * video/efi_gop.c: New file.
27075 * include/grub/efi/graphics_output.h: Likewise.
27076 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
27077 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27078 variables.
27079 * conf/x86_64-efi.rmk: Likewise.
27080
8a4c48d8
VS
270812009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27082
27083 Rename efi_fb to efi_uga.
27084
27085 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27086 'efi_uga.mod'.
27087 (efi_fb_mod_SOURCES): Rename this ...
27088 (efi_uga_mod_SOURCES): ... to this.
27089 (efi_fb_mod_CFLAGS): Rename this ...
27090 (efi_uga_mod_CFLAGS): ... to this.
27091 (efi_fb_mod_LDFLAGS): Rename this ...
27092 (efi_uga_mod_LDFLAGS): ... to this.
27093 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27094 'efi_uga.mod'.
27095 (efi_fb_mod_SOURCES): Rename this ...
27096 (efi_uga_mod_SOURCES): ... to this.
27097 (efi_fb_mod_CFLAGS): Rename this ...
27098 (efi_uga_mod_CFLAGS): ... to this.
27099 (efi_fb_mod_LDFLAGS): Rename this ...
27100 (efi_uga_mod_LDFLAGS): ... to this.
27101 * video/efi_fb.c: Move this ...
27102 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
27103
fb6c1a7b
RM
271042009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27105
27106 * po/README: New file. Explain our PO file workflow.
27107
3bc7896c
RM
271082009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27109
27110 * po/ChangeLog: Remove. Move relevant entries back to ...
27111 * ChangeLog: ... here.
27112 * po/ca.po: Remove (now handled by TLP).
27113 * po/id.po: Likewise.
27114 * po/zh_CN.po: Likewise.
27115 * Makefile.in (LINGUAS): Initialize in a way that supports
27116 empty set.
27117
9ed4841d
RM
271182009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27119
27120 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
27121 reliing on po/LINGUAS.
27122 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
27123 (po/%.po): ... this.
27124
0ad46fd7 271252009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
27126
27127 * util/i386/efi/grub-mkimage.c: Include "progname.h".
27128 (main): Use `program_name' instead of nonexistent `progname'.
27129
e30dd392
FZ
271302009-11-26 Felix Zielcke <fzielcke@z-51.de>
27131
27132 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27133 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
27134
7656de4f
RM
271352009-11-26 Robert Millan <rmh.grub@aybabtu.com>
27136
27137 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
27138 commit.
27139 * conf/i386-efi.rmk: Likewise.
27140 * conf/i386-ieee1275.rmk: Likewise.
27141 * conf/powerpc-ieee1275.rmk: Likewise.
27142 * conf/sparc64-ieee1275.rmk: Likewise.
27143 * conf/x86_64-efi.rmk: Likewise.
27144
db77c4d4
FZ
271452009-11-26 Felix Zielcke <fzielcke@z-51.de>
27146
27147 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
27148
a755bb04
FZ
271492009-11-26 Felix Zielcke <fzielcke@z-51.de>
27150
27151 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
27152
8a4c07fd
RM
271532009-11-26 Robert Millan <rmh.grub@aybabtu.com>
27154
27155 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
27156 (grub_mkdevicemap_SOURCES): New variable.
27157 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
27158 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
27159 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
27160 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
27161 (grub_mkdevicemap_SOURCES): Remove.
27162 * conf/i386-efi.rmk: Likewise.
27163 * conf/i386-ieee1275.rmk: Likewise.
27164 * conf/i386-pc.rmk: Likewise.
27165 * conf/powerpc-ieee1275.rmk: Likewise.
27166 * conf/sparc64-ieee1275.rmk: Likewise.
27167 * conf/x86_64-efi.rmk: Likewise.
27168 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
27169 (usage): Fix strings to use `program_name'.
27170 (main): Initialize gettext.
27171 * util/grub-editenv.c: Likewise.
27172 * util/grub-emu.c: Likewise.
27173 * util/grub-fstest.c: Likewise.
27174 * util/grub-mkdevicemap.c: Likewise.
27175 * util/grub-mkfont.c: Likewise.
27176 * util/grub-mkrelpath.c: Likewise.
27177 * util/grub-pe2elf.c: Likewise.
27178 * util/grub-probe.c: Likewise.
27179 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
27180 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27181 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27182
27183 * util/misc.c: Include `"progname.h"'.
27184 (progname): Remove variable.
27185 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
27186
6f61ed55
FZ
271872009-11-25 Felix Zielcke <fzielcke@z-51.de>
27188
27189 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
27190 printf and print a newline after the menuentry header line.
27191 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27192
f022876b
FZ
271932009-11-25 Felix Zielcke <fzielcke@z-51.de>
27194
27195 autoconf >= 2.60 support $(localedir).
27196
27197 * INSTALL: Note that autoconf 2.60 is required.
27198 * configure.ac (AC_PREREQ): Bump to 2.60.
27199 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
27200 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27201
6717926e
YB
272022009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
27203
27204 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
27205 aclocal is run.
27206
08806a54
RM
272072009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27208
27209 * normal/main.c (grub_normal_read_line): Fix off-by-one
27210 buffer overflow.
27211
13b33fba
RM
272122009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27213
27214 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
27215 "parser.grub" in grub_command_execute() call.
27216
4a8572e9
CPE
272172009-11-24 Carles Pina i Estany <carles@pina.cat>
27218
27219 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
27220 * conf/i386-efi.rmk: Likewise.
27221 * conf/i386-ieee1275.rmk: Likewise.
27222 * conf/i386-pc.rmk: Likewise.
27223 * conf/powerpc-ieee1275.rmk: Likewise.
27224 * conf/sparc64-ieee1275.rmk: Likewise.
27225 * conf/x86_64-efi.rmk: Likewise.
27226 * gettext/gettex.c: Include <grub/i18n.h>.
27227 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
27228 here ...
27229 * include/grub/i18n.h: ... to here
27230 * include/grub/i18n.h: ... to here.
27231 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 27232 (grub_gettext_dummy): Move above user.
4a8572e9 27233
bee48093
FZ
272342009-11-24 Felix Zielcke <fzielcke@z-51.de>
27235
27236 * util/Makefile.in (install-local): Convert a `for' into a normal
27237 shell expansion.
27238
a031e91c
RM
272392009-11-24 Robert Millan <rmh.grub@aybabtu.com>
27240
27241 * autogen.sh: Add automake call.
27242 * config.guess: Remove.
27243 * config.sub: Likewise.
27244 * install-sh: Likewise.
27245
26bec39d
FZ
272462009-11-24 Felix Zielcke <fzielcke@z-51.de>
27247
27248 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
27249
8e2532fd
FZ
272502009-11-24 Felix Zielcke <fzielcke@z-51.de>
27251
27252 * util/Makefile.in (install-local): Convert a make `$(foreach)'
27253 function to a normal shell `for'.
27254
fefa1b7d
FZ
272552009-11-24 Felix Zielcke <fzielcke@z-51.de>
27256
27257 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27258
4501250b
FZ
272592009-11-24 Felix Zielcke <fzielcke@z-51.de>
27260
27261 * util/grub-mkrelpath.c: New file.
27262 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
27263 (grub_mkrelpath_SOURCES): New variable.
27264 * include/grub/util/misc.h: New function prototype.
27265 * util/misc.c (make_system_path_relative_to_its_root): New function.
27266
27267 * util/grub-mkconfig_lib.in (bindir): New variable.
27268 (grub_mkrelpath): Likewise.
27269 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27270
27271 * util/probe.c (probe): Make the file path relative to its root.
27272 Change a info message to use the GRUB path. Enable again the
27273 check if we can read the file with GRUB facilities.
27274
27275 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27276 to its root.
27277
11d9778b
FZ
272782009-11-24 Felix Zielcke <fzielcke@z-51.de>
27279
27280 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27281 platform.
27282
4465287d
FZ
272832009-11-24 Felix Zielcke <fzielcke@z-51.de>
27284
27285 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27286 strncmp().
27287
62b47f22
FZ
272882009-11-24 Felix Zielcke <fzielcke@z-51.de>
27289
27290 * util/getroot.c (grub_util_is_dmraid): New function.
27291 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27292 devices as normal ones, not as LVM.
27293
1eafb9b9 272942009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
27295
27296 * conf/common.rmk: Add grub-gettext_lib target and updates
27297 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27298 LDFLAGS.
27299 * gettext/gettext.c: New file. (Reads mo files).
27300 * include/grub/file.h (grub_file_pread): New prototype.
27301 * include/grub/i18n.h (_): New prototype.
27302 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27303 prototypes.
27304 * kern/misc.c (grub_gettext_dummy): New function.
27305 * normal/menu_text.c: Include <grub/i18n.h>.
27306 * normal/menu_text.c (print_timeout): Gettexttize string.
27307 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
27308 * po/POTFILES: Add `normal/menu_text.c'.
27309 * po/ca.po: Add new translations.
c3ea6bd4
CPE
27310 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27311 gettext module and defines locale_dir and lang in grub.cfg.
27312 * NEWS: Add gettext support.
27313
0fdb2568
RM
273142009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27315
27316 * util/hostdisk.c: Include `<grub/i18n.h>'.
27317 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27318 (make_device_name): Rewrite using asprintf.
27319 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27320 (find_system_device): If a device is not found, generate one just
27321 by reusing the OS path name.
27322 (read_device_map): Make it permissible for device.map not to exist.
27323
f515aa62
RM
273242009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27325
27326 * script/sh/execute.c: Move from here ...
27327 * script/execute.c: ... to here. Update all users.
27328 * script/sh/function.c: Move from here ...
27329 * script/function.c: ... to here. Update all users.
27330 * script/sh/lexer.c: Move from here ...
27331 * script/lexer.c: ... to here. Update all users.
27332 * script/sh/main.c: Move from here ...
27333 * script/main.c: ... to here. Update all users.
27334 * script/sh/parser.y: Move from here ...
27335 * script/parser.y: ... to here. Update all users.
27336 * script/sh/script.c: Move from here ...
27337 * script/script.c: ... to here. Update all users.
27338
f84b481b
RM
273392009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27340
27341 * configure.ac: Detect all `emu' platforms. Define
27342 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27343 --enable-grub-emu logic. Disable include/grub/machine
27344 symlink on `emu' platforms.
27345
27346 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27347 * gensymlist.sh.in: Likewise.
27348
27349 * include/grub/i386/coreboot/machine.h: Remove file.
27350 * include/grub/i386/efi/machine.h: Likewise.
27351 * include/grub/i386/ieee1275/machine.h: Likewise.
27352 * include/grub/i386/pc/machine.h: Likewise.
27353 * include/grub/i386/qemu/machine.h: Likewise.
27354 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27355 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27356 * include/grub/x86_64/efi/machine.h: Likewise.
27357
27358 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27359 * commands/halt.c: Likewise.
27360 * commands/reboot.c: Likewise.
27361 * include/grub/autoefi.h: Likewise.
27362 * include/grub/i386/at_keyboard.h: Likewise.
27363 * include/grub/i386/kernel.h: Likewise.
27364 * include/grub/i386/loader.h: Likewise.
27365 * include/grub/i386/pc/memory.h: Likewise.
27366 * kern/dl.c: Likewise.
27367 * kern/i386/coreboot/init.c: Likewise.
27368 * loader/i386/bsd.c: Likewise.
27369 * loader/i386/linux.c: Likewise.
27370 * loader/multiboot_loader.c: Likewise.
27371 * term/i386/pc/serial.c: Likewise.
27372 * term/usb_keyboard.c: Likewise.
27373
27374 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27375 `<grub/machine/machine.h>'
27376 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27377 * util/misc.c: Remove `<grub/machine/machine.h>' and
27378 `<grub/machine/time.h>'.
27379
27380 * Makefile.in (enable_grub_emu): Remove variable.
27381 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27382
27383 * conf/any-emu.rmk: New file.
27384 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27385 (grub_emu_init.c): Move from here ...
27386 * conf/any-emu.rmk: ... to here.
27387
27388 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27389 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27390 * conf/any-emu.rmk: ... to here.
27391
4efeab03
RM
273922009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27393
27394 * include/grub/parser.h (grub_parser_register): Document need
27395 of `name' parameter.
27396 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27397 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27398 "sh" to "grub".
27399
ea1dd8bf
RM
274002009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27401
27402 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27403 `$(XGETTEXT)'.
27404 * include/grub/i18n.h (N_): New macro.
27405 * util/mkisofs/mkisofs.h: Likewise.
27406 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27407 around N_().
27408 (usage): Use gettext() to translate help strings when printing them.
27409
0c140626
RM
274102009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27411
27412 Based on patch from Bean
27413 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27414
27415 * video/efi_fb.c: New file.
27416 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27417 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27418 variables.
27419 * conf/x86_64-efi.rmk: Likewise.
27420
87d58298
RM
274212009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27422
27423 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27424 * util/i386/pc/grub-setup.c: Likewise.
27425
994cc3a3
ST
274262009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27427
27428 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27429 <hurd/fs.h>
27430 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27431 file_get_storage_info to implement grub_guess_root_device.
27432
26a61d6a
FZ
274332009-11-21 Felix Zielcke <fzielcke@z-51.de>
27434
27435 * Makefile.in (target): Use make's builtin $(shell) function
27436 instead of calling directly $(SHELL) to create the locale directories,
27437 inside the $(foreach) function.
27438
74ff1dd5
FZ
274392009-11-21 Felix Zielcke <fzielcke@z-51.de>
27440
27441 * util/grub-mkrescue.in: Print an error and usage if output option
27442 has not been given.
27443
0b787d0e
FZ
274442009-11-21 Felix Zielcke <fzielcke@z-51.de>
27445
27446 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27447 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27448 root and /boot are on different devices.
27449
1164b270
RM
274502009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27451
27452 Fix build for srcdir != objdir.
27453
27454 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27455 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27456 $(srcdir).
27457 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27458 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27459 reference for input.
27460
13774a2f
RM
274612009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27462
27463 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27464 or hardlinking it). Remove -J option, Joliet is not compatible with
27465 multiple source directories.
27466
efda854e
RM
274672009-11-21 Carles Pina i Estany <carles@pina.cat>
274682009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27469
27470 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27471 (process_input_dir): New function. Process an arbitrary input
27472 directory.
27473 Misc adjustments to support both "override mode" and system-wide mode.
27474
6c09890c
FZ
274752009-11-20 Felix Zielcke <fzielcke@z-51.de>
27476
27477 * configure.ac (UNIFONT_BDF): Rename to ...
27478 (FONT_SOURCE): ... this. Update all users.
27479
a797824f
FZ
274802009-11-20 Felix Zielcke <fzielcke@z-51.de>
27481
27482 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27483 to the list of unifont files to look for.
27484
cd4f42b0
RM
274852009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27486
27487 Patch from Joe Auricchio <jauricchio@gmail.com>
27488 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27489 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27490 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27491
393c783d
FZ
274922009-11-19 Felix Zielcke <fzielcke@z-51.de>
27493
27494 * Makefile.in (install-local): Add a missing backslash.
27495
b2f1e327
FZ
274962009-11-19 Felix Zielcke <fzielcke@z-51.de>
27497
27498 * include/grub/x86_64/io.h: New file.
27499
f577f7a0
RM
275002009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27501
27502 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27503 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27504 Include `"progname.h"'.
27505 (main): Initialize gettext.
27506 * util/i386/pc/grub-setup.c: Gettexttize.
27507 * util/i386/pc/grub-mkimage.c: Likewise.
27508
27509 * Makefile.in (po/*.po): Redefine as ...
27510 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27511
3bc7896c
RM
27512 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27513
c37943b6
RM
275142009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27515
27516 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27517 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27518 (program_name): Remove.
27519 (main): Initialize gettext support.
6323f705
RM
27520 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27521 Include `<libintl.h>'.
27522 (_): New macro.
c37943b6
RM
27523
27524 * util/mkisofs/eltorito.c: Gettexttize.
27525 * util/mkisofs/joliet.c: Likewise.
27526 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
27527 * util/mkisofs/multi.c: Likewise.
27528 * util/mkisofs/rock.c: Likewise.
27529 * util/mkisofs/tree.c: Likewise.
27530 * util/mkisofs/write.c: Likewise.
27531
3bc7896c
RM
27532 * po/POTFILES: Update with new files.
27533
5ce77c6e
RM
275342009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27535
27536 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27537 * util/mkisofs/iso9660.h: Likewise.
27538 * util/mkisofs/joliet.c: Likewise.
27539 * util/mkisofs/mkisofs.c: Likewise.
27540 * util/mkisofs/mkisofs.h: Likewise.
27541 * util/mkisofs/rock.c: Likewise.
27542 * util/mkisofs/tree.c: Likewise.
27543 * util/mkisofs/write.c: Likewise.
27544
27545 * util/mkisofs/eltorito.c (rcsid): Remove.
27546 * util/mkisofs/hash.c: Likewise.
27547 * util/mkisofs/joliet.c: Likewise.
27548 * util/mkisofs/name.c: Likewise.
27549 * util/mkisofs/rock.c: Likewise.
27550 * util/mkisofs/tree.c: Likewise.
27551 * util/mkisofs/write.c: Likewise.
27552
1dabbc77
RM
275532009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27554
27555 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27556 instead of static allocation.
27557 * util/mkisofs/match.h: Likewise.
27558
633877cb
RM
275592009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27560
3bc7896c
RM
27561 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27562 and `util/grub.d/10_linux.in'.
633877cb
RM
27563 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27564 translatable Shell files.
27565
af1c0c85
RM
275662009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27567
27568 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27569
769ae37b
RM
275702009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27571
27572 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 27573 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
27574 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27575 Add gettext initialization.
27576 (kfreebsd_entry): Make menuentry output translatable.
27577
275782009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27579
27580 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27581 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27582 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27583 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27584 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 27585 * po/LINGUAS: New file.
769ae37b
RM
27586
275872009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27588
27589 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27590 other things).
27591 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27592 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27593 bindtextdomain() calls for gettext initialization.
27594
275952009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27596
27597 * gnulib/progname.c: New file (imported from Gnulib).
27598 * gnulib/progname.h: Likewise.
27599 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27600 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27601 (usage): Replace `progname' with `program_name'.
27602 (main): Use set_program_name() for program name initialization.
27603
276042009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27605
27606 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27607 from here ...
27608 * Makefile.in (CPPFLAGS): ... to here.
27609
276102009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27611
27612 * aclocal.m4: Move from here ...
27613 * acinclude.m4: ... to here.
27614 * autogen.sh: Add call to `aclocal'.
27615 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27616
276172009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27618
27619 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27620 (LINGUAS): New variable.
27621 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27622 (install-local): Install MO files.
27623 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27624 * include/grub/i18n.h: New file.
3bc7896c
RM
27625 * po/POTFILES: New file.
27626 * po/ca.po: New file.
769ae37b
RM
27627 * util/grub.d/10_linux.in (bindir): New variable.
27628 Add gettext initialization.
27629 (linux_entry): Make menuentry output translatable.
27630 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27631 (usage): Make --help output translatable.
27632 (main): Initialize gettext.
27633
02c0a6ad
RM
276342009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27635
27636 * import_gcry.py: New file (written by Vladimir with minor
27637 adjustments).
27638 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27639 ciphers.
27640 * INSTALL: Document that Python is required for bootstrap.
27641
276422009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27643
27644 Import ciphers from libgcrypt 1.4.4.
27645
27646 * lib/libgcrypt/cipher/ChangeLog
27647 * lib/libgcrypt/cipher/ac.c
27648 * lib/libgcrypt/cipher/arcfour.c
27649 * lib/libgcrypt/cipher/bithelp.h
27650 * lib/libgcrypt/cipher/blowfish.c
27651 * lib/libgcrypt/cipher/camellia-glue.c
27652 * lib/libgcrypt/cipher/camellia.c
27653 * lib/libgcrypt/cipher/camellia.h
27654 * lib/libgcrypt/cipher/cast5.c
27655 * lib/libgcrypt/cipher/cipher.c
27656 * lib/libgcrypt/cipher/crc.c
27657 * lib/libgcrypt/cipher/des.c
27658 * lib/libgcrypt/cipher/dsa.c
27659 * lib/libgcrypt/cipher/ecc.c
27660 * lib/libgcrypt/cipher/elgamal.c
27661 * lib/libgcrypt/cipher/hash-common.c
27662 * lib/libgcrypt/cipher/hash-common.h
27663 * lib/libgcrypt/cipher/hmac-tests.c
27664 * lib/libgcrypt/cipher/md.c
27665 * lib/libgcrypt/cipher/md4.c
27666 * lib/libgcrypt/cipher/md5.c
27667 * lib/libgcrypt/cipher/primegen.c
27668 * lib/libgcrypt/cipher/pubkey.c
27669 * lib/libgcrypt/cipher/rfc2268.c
27670 * lib/libgcrypt/cipher/rijndael-tables.h
27671 * lib/libgcrypt/cipher/rijndael.c
27672 * lib/libgcrypt/cipher/rmd.h
27673 * lib/libgcrypt/cipher/rmd160.c
27674 * lib/libgcrypt/cipher/rsa.c
27675 * lib/libgcrypt/cipher/seed.c
27676 * lib/libgcrypt/cipher/serpent.c
27677 * lib/libgcrypt/cipher/sha1.c
27678 * lib/libgcrypt/cipher/sha256.c
27679 * lib/libgcrypt/cipher/sha512.c
27680 * lib/libgcrypt/cipher/tiger.c
27681 * lib/libgcrypt/cipher/twofish.c
27682 * lib/libgcrypt/cipher/whirlpool.c
27683
af2f93ac
RM
276842009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27685
27686 Fix build for systems without error().
27687
27688 * gnulib/error.c: New file (imported from Gnulib).
27689 * gnulib/error.h: Likewise.
27690 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27691 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27692 (this variable is now used by error()).
27693
73fb3dd5
FZ
276942009-11-16 Felix Zielcke <fzielcke@z-51.de>
27695
814f5e96
FZ
27696 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27697 instead of relying that char is signed.
73fb3dd5 27698
a691ca33
VS
276992009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27700
27701 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27702 blocksize different from specified.
27703 (grub_pxefs_read): Likewise.
27704
2af8f0f4
FZ
277052009-11-16 Felix Zielcke <fzielcke@z-51.de>
27706
27707 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27708
27709 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27710 (grub_ata_readwrite): Likewise. Update 2 format strings.
27711 (grub_atapi_read): Likewise.
27712
27713 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27714 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27715 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27716 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27717 (ata_mod_LDFLAGS): Move from here ...
27718 * conf/i386.rmk: ... to here ...
27719 * conf/x86_64-efi.rmk: ... and here.
27720 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27721 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27722
83bdecaf
RM
277232009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27724
27725 Relicense multiboot.h, with RMS' blessing.
27726
27727 * include/multiboot.h: Change to X11 license.
27728
fd6fd3d7
RM
277292009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27730
27731 Support --version in grub-mkisofs.
27732
27733 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27734 (OPTION_VERSION): New macro.
27735 (ld_options): Recognize --version.
27736 (usage): Move `program_name' from here ...
27737 (program_name): ... to here. Add `static' qualifier.
27738 (main): Recognize `OPTION_VERSION'.
27739
16a88c49
FZ
277402009-11-15 Felix Zielcke <fzielcke@z-51.de>
27741
27742 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27743 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27744
a4158476
RM
277452009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27746
27747 Fix help2man generation for mkisofs.
27748
27749 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27750 (usage): Send output to stdout (rather than stderr).
27751
fc2208b0
RM
277522009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27753
27754 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27755 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27756 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27757 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27758 (bin_SCRIPTS): Add `grub-mkfloppy'.
27759 (grub_mkfloppy_SOURCES): New variable.
27760
27761 * util/grub-mkrescue.in: New file.
27762 * util/i386/pc/grub-mkfloppy.in: New file.
27763
27764 * util/i386/coreboot/grub-mkrescue.in: Remove.
27765 * util/i386/pc/grub-mkrescue.in: Remove.
27766
8d0edf4a
RM
277672009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27768
27769 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27770 from here ...
27771 * include/multiboot.h (struct multiboot_header): ... to here. Update
27772 all users.
27773 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27774 from here ...
27775 * include/multiboot.h (struct multiboot_info): ... to here. Update
27776 all users.
27777 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27778 from here ...
27779 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27780 Update all users.
27781 * include/grub/multiboot.h (struct grub_mod_list): Move
27782 from here ...
27783 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27784 Update all users.
27785
a73f5969
RM
277862009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27787
27788 * include/multiboot2.h (multiboot_word): Rename from this ...
27789 (multiboot2_word): ... to this. Update all users.
27790 (multiboot_header): Rename from this ...
27791 (multiboot2_header): ... to this. Update all users.
27792 (multiboot_tag_header): Rename from this ...
27793 (multiboot2_tag_header): ... to this. Update all users.
27794 (multiboot_tag_start): Rename from this ...
27795 (multiboot2_tag_start): ... to this. Update all users.
27796 (multiboot_tag_name): Rename from this ...
27797 (multiboot2_tag_name): ... to this. Update all users.
27798 (multiboot_tag_module): Rename from this ...
27799 (multiboot2_tag_module): ... to this. Update all users.
27800 (multiboot_tag_memory): Rename from this ...
27801 (multiboot2_tag_memory): ... to this. Update all users.
27802 (multiboot_tag_unused): Rename from this ...
27803 (multiboot2_tag_unused): ... to this. Update all users.
27804 (multiboot_tag_end): Rename from this ...
27805 (multiboot2_tag_end): ... to this. Update all users.
27806
1c8927f0
RM
278072009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27808
27809 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27810 this platform we should support Multiboot1 first.
27811
27812 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27813 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27814 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27815
6e1e0d89
RM
278162009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27817
27818 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27819 of write calls (converting them to fwrite() if they aren't already).
27820 (get_torito_desc): Likewise.
27821 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27822
7f2b34d8
RM
278232009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27824
27825 * util/i386/pc/grub-install.in: Move from here ...
27826 * util/grub-install.in: ... to here. Update all users.
27827
c0ef3311
CW
278282009-11-11 Colin Watson <cjwatson@ubuntu.com>
27829
27830 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27831
e1f240ff
RM
278322009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27833
27834 Support for El Torito without floppy emulation.
27835
27836 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27837 (init_boot_catalog): Improve error handling.
27838 (get_torito_desc): Don't use floppy emulation unless requested by
27839 user. Patch boot information table when requested via
27840 `-boot-info-table'.
27841 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27842 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27843 (use_boot_info_table): New variables.
27844 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27845 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27846 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27847 `--eltorito-emul-floppy'.
27848 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27849 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27850 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27851 (use_boot_info_table, get_731): New prototypes.
27852 * util/mkisofs/write.c (get_731): New function.
27853
af7d4de5
FZ
278542009-11-11 Felix Zielcke <fzielcke@z-51.de>
27855
27856 Fix the generation of the man page.
27857
27858 * util/pc/i386/grub-install.in: Source
27859 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27860
2c55dbc0
RM
278612009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27862
27863 Large file support for grub-mkisofs.
27864
27865 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27866 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27867 (session_start): Upgrade type to `uint64_t'. Update all users.
27868 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27869 (struct directory_entry): Upgrade type of `starting_block' and
27870 `size' to `uint64_t'. Update all users.
27871 (struct deferred): Remove unused structure.
27872 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27873 Update all users.
27874 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27875 file is larger than `UINT32_MAX'.
27876 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27877 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27878 return value.
27879 (struct deferred_write): Upgrade type of `extent' and `size' to
27880 `uint64_t'. Update all users.
27881 (last_extent_written): Upgrade type to `uint64_t'. Update all
27882 users.
27883 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27884 Update all users. Upgrade type of `remain' to `int64_t' and
27885 `use' to `size_t'. Use error() to handle fread() errors.
27886 (write_files): Rely on write_one_file() rather than calling
27887 xfwrite() directly.
27888
6a9cead5
FZ
278892009-11-09 Felix Zielcke <fzielcke@z-51.de>
27890
27891 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27892
4825d790
RM
278932009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27894
27895 * util/mkisofs/fnmatch.c: Remove.
27896 * util/mkisofs/getopt1.c: Likewise.
27897 * util/mkisofs/getopt.c: Likewise.
27898 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27899 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27900 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27901 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27902 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27903
27904 * configure.ac: Detect `mingw32msvc' host_os.
27905 Check for lstat(), getuid() and getgid().
27906
27907 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27908 instances of `u_char' with `uint8_t'.
27909
27910 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27911 [!HAVE_GETUID] (getuid): New function (stub).
27912 [!HAVE_GETGID] (getgid): Likewise.
27913 [!HAVE_LSTAT] (lstat): Likewise.
27914 [!S_IROTH] (S_IROTH): New macro (dummy).
27915 [!S_IRGRP] (S_IRGRP): Likewise.
27916
84b860d8
RM
279172009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27918
27919 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27920 conditional expression).
27921
66e9b712
RM
279222009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27923
27924 Import from Gnulib.
27925
27926 * gnulib/fnmatch.c: New file.
27927 * gnulib/fnmatch.h: Likewise.
27928 * gnulib/fnmatch_loop.c: Likewise.
27929 * gnulib/getopt.c: Likewise.
27930 * gnulib/getopt.h: Likewise.
27931 * gnulib/getopt1.c: Likewise.
27932 * gnulib/getopt_int.h: Likewise.
27933 * gnulib/gettext.h: Likewise.
27934
34f4a5b0
RM
279352009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27936
27937 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27938 * normal/handler.c (read_handler_list): Likewise.
27939
ac451143
RM
279402009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27941
27942 Misc cleanup.
27943
27944 * kern/command.c (grub_register_command_prio): Use
27945 grub_zalloc() instead of explicitly zeroing data.
27946 * kern/list.c: Include `<grub/mm.h>'.
27947 (grub_named_list_find): Replace `0' with `NULL'.
27948 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27949 (fs_module_list): Change type to `grub_named_list_t'. Update all
27950 users.
27951 * normal/dyncmd.c (read_command_list): Add space between function
27952 call and parenthesis.
27953 * normal/handler.c (read_handler_list): Likewise.
27954
4089b167
RM
279552009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27956
27957 * normal/auth.c (punishment_delay): Moved from here ...
27958 (grub_auth_strcmp): ... to here (inside function).
27959
325f5037
RM
279602009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27961
27962 * include/grub/list.h (struct grub_named_list): Remove `const'
27963 qualifier from `name'.
27964 (struct grub_prio_list): Likewise.
27965
7aea29a3
RM
279662009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27967
27968 * normal/auth.c: Include `<grub/time.h>'.
27969 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27970
3fd6f044
RM
279712009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27972
27973 * normal/auth.c (punishment_delay): New variable.
27974 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27975 (grub_auth_check_authentication): Punish failed login attempts with
27976 an incremental (2^N) delay.
27977
a4cd68e4
RM
279782009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27979
27980 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27981 path with $(srcdir).
27982
7ad12f43
VS
279832009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27984
27985 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27986
c1129f03
RM
279872009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27988
27989 * util/i386/coreboot/grub-mkrescue.in: New file.
27990 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27991 variables.
27992
27993 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27994 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27995 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27996 requirements.
27997 * util/mkisofs/defaults.h: New file.
27998 * util/mkisofs/eltorito.c: Likewise.
27999 * util/mkisofs/exclude.h: Likewise.
28000 * util/mkisofs/fnmatch.c: Likewise.
28001 * util/mkisofs/getopt.c: Likewise.
28002 * util/mkisofs/getopt1.c: Likewise.
28003 * util/mkisofs/hash.c: Likewise.
28004 * util/mkisofs/include/fctldefs.h: Likewise.
28005 * util/mkisofs/include/mconfig.h: Likewise.
28006 * util/mkisofs/include/prototyp.h: Likewise.
28007 * util/mkisofs/include/statdefs.h: Likewise.
28008 * util/mkisofs/iso9660.h: Likewise.
28009 * util/mkisofs/joliet.c: Likewise.
28010 * util/mkisofs/match.c: Likewise.
28011 * util/mkisofs/match.h: Likewise.
28012 * util/mkisofs/mkisofs.c: Likewise.
28013 * util/mkisofs/mkisofs.h: Likewise.
28014 * util/mkisofs/multi.c: Likewise.
28015 * util/mkisofs/name.c: Likewise.
28016 * util/mkisofs/rock.c: Likewise.
28017 * util/mkisofs/tree.c: Likewise.
28018 * util/mkisofs/write.c: Likewise.
28019
ec8bb77d
VS
280202009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28021
28022 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
28023 being insecure.
28024
3716b12c
RM
280252009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28026
28027 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
28028 `grub-mkimage' (and use $0 when possible).
28029
b97b7b91
RM
280302009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28031
28032 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
28033 error message for excessively large memory map.
28034
04114812
RM
280352009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28036
28037 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
28038 executable bit.
28039
e4eb2373
RM
280402009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28041
28042 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
28043 message for coreboot users.
28044
c926e1d5 280452009-11-07 Robert Millan <rmh.grub@aybabtu.com>
28046
28047 Fix build with GNU gold.
28048
28049 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
28050 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
28051 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
28052 link addresses.
28053 * aclocal.m4: Likewise.
28054
86e5b1db 280552009-11-04 Felix Zielcke <fzielcke@z-51.de>
28056
28057 * configure.ac (AC_PREREQ): Bump to 2.59d.
28058 * INSTALL: Make it more clear when Autoconf and Ruby are
28059 needed and when to run `./autogen.sh'.
28060
246cd78f 280612009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28062
28063 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
28064 OSes.
28065
4f9dfb37 280662009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28067
28068 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
28069
b82bd5e1 280702009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28071
28072 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
28073 giving it to GNU Mach.
28074
ff1a9bca 280752009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28076
28077 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
28078 GNU partition number to get internal GRUB partition number.
28079
61697d9c 280802009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28081
28082 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
28083 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
28084
a50569e1 280852009-11-01 Robert Millan <rmh.grub@aybabtu.com>
28086
28087 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
28088 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
28089 case.
28090
5b153867 280912009-11-01 Felix Zielcke <fzielcke@z-51.de>
28092
28093 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
28094
d9e2cd70 280952009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28096
28097 Fix build problem.
28098
28099 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
28100 `-isystem=$(srcdir)/include'.
28101
805111a4 281022009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28103
28104 * util/i386/pc/grub-install.in: Remove hint that device.map should be
28105 checked (grub-install doesn't currently rely on it).
28106
fa6e945f 281072009-10-29 Robert Millan <rmh.grub@aybabtu.com>
28108
28109 Revert SVN r2660.
28110
28111 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
28112 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
28113 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
28114 * conf/i386-ieee1275.rmk: Likewise.
28115 * conf/i386-pc.rmk: Likewise.
28116 * conf/powerpc-ieee1275.rmk: Likewise.
28117 * conf/sparc64-ieee1275.rmk: Likewise.
28118 * conf/x86_64-efi.rmk: Likewise.
28119
cee15086 281202009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28121
28122 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
28123
95b9239e 281242009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28125
28126 * include/grub/misc.h: Stop checking for APPLE_CC.
28127
2ed19dfd 281282009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28129
28130 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
28131 doesn't cause an infinite call loop.
28132
fdcdde19 281332009-10-28 Felix Zielcke <fzielcke@z-51.de>
28134
28135 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
28136 strings.
28137
cefabfe1 281382009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28139
28140 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
28141 variable.
28142 * Makefile.in: Likewise.
28143
ed96ab6d 281442009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28145
28146 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
28147
0579b753 281482009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28149
28150 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
28151
478df409 281522009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28153
28154 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
28155
083d1679 281562009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28157
28158 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
28159 from here ...
28160 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
28161
5947ae32 281622009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28163
28164 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
28165 in $(MAKEINFO) invocation. This makes it clear in output that
28166 errors are being ignored.
28167
94180ff6 281682009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28169
28170 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
28171 from here ...
28172 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
28173 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
28174 * conf/i386-ieee1275.rmk: Likewise.
28175 * conf/i386-pc.rmk: Likewise.
28176 * conf/powerpc-ieee1275.rmk: Likewise.
28177 * conf/sparc64-ieee1275.rmk: Likewise.
28178 * conf/x86_64-efi.rmk: Likewise.
28179
9031b03a 281802009-10-26 Colin Watson <cjwatson@ubuntu.com>
28181
28182 * util/grub-editenv.c (main): If only a command is given, use
28183 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
28184 (usage): FILENAME is now optional and has a default.
28185
e4f6809b 281862009-10-26 Colin Watson <cjwatson@ubuntu.com>
28187
28188 Improve grub-mkconfig performance when there are several menu
28189 entries on a single filesystem.
28190
28191 * util/grub.d/10_linux.in (linux_entry): Cache the output of
28192 prepare_grub_to_access_device.
28193 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28194 * util/grub.d/30_os-prober.in: Likewise.
28195
67937d4d 281962009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28197
28198 * util/grub.d/10_freebsd.in: Remove.
28199 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
28200 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
28201
ee3756cc 282022009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28203
5c35048e 28204 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 28205
4dea1c6f 282062009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28207
28208 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
28209 grub_util_error() call.
28210
042484d7 282112009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28212
28213 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
28214 `reserved_first_sector' member.
28215 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
28216 `reserved_first_sector' to 1.
28217 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
28218 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
28219 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
28220 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
28221 filesystems which begin at first sector.
28222 (options): New option --skip-fs-probe.
28223 (main): Handle --skip-fs-probe and pass it to setup().
28224
d64448a7 282252009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28226
28227 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
28228 (memset): Fix function prototype.
28229
508d42ec 282302009-10-25 Robert Millan <rmh.grub@aybabtu.com>
282312009-10-25 Vasily Averin <vvs@parallels.com>
28232
28233 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
28234 `dirent.direntlen == 0'.
28235
b240e30c 282362009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28237
28238 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
28239 `cpio'.
28240 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
28241
346e7fbe 282422009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28243
28244 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
28245 `__trampoline_setup' and `__ucmpdi2'.
28246 * include/grub/powerpc/libgcc.h: Only export symbols for functions
28247 that libgcc provides.
28248
cdb308b0 282492009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28250
28251 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
28252 * include/grub/sparc64/libgcc.h (memset): Likewise.
28253 * include/grub/misc.h (memset, memcmp): New function prototypes.
28254
fb26abc2 282552009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28256
28257 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
28258 `cpio'.
28259 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
28260
f6693890 282612009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28262
28263 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
28264 * docs/grub.cfg: Compensate for recent change in multiboot
28265 loader (since 2009-08-14 it won't pass filename to payload).
28266 * util/grub.d/10_hurd.in: Likewise.
28267
0933cdc0 282682009-10-21 Felix Zielcke <fzielcke@z-51.de>
28269
28270 * config.guess: Update to latest version from config git
28271 repository.
28272 * config.sub: Likewise.
28273
3b2fe8c2 282742009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28275
28276 Fix build on sparc64.
28277
28278 * configure.ac: Perform checks for libgcc symbols before
28279 adding `-nostdlib' to LDFLAGS.
28280
46695a62 282812009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28282
28283 Let user specify OpenBSD root device.
28284
28285 * loader/i386/bsd.c (openbsd_root): New variable.
28286 (openbsd_opts): New option 'root'.
28287 (OPENBSD_ROOT_ARG): New macro.
28288 (grub_openbsd_boot): Use 'openbsd_root'.
28289 (grub_cmd_openbsd): Fill 'openbsd_root'.
28290
d2b6b7fc 282912009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28292
28293 * NEWS: Misc adjustments.
28294
421bd7ac 282952009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28296
28297 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28298
f1d29d87 282992009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28300
28301 * configure.ac: Bump version to 1.97.
28302
6f3cd880 283032009-10-16 Colin Watson <cjwatson@ubuntu.com>
28304
28305 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28306 -mno-3dnow on x86 architectures. Some toolchains enable these
28307 features by default, but they rely on registers that aren't enabled
28308 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28309
035f7122 283102009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28311
28312 Make entry text a bit more readable.
28313
28314 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28315
44998e58 283162009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28317
28318 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28319
cd2851b3 283202009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28321
28322 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28323 operations.
28324
c6f3b249 283252009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28326
28327 * configure.ac: Add missing dollar.
28328
6b5886ba 283292009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28330
28331 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28332
28333 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28334 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28335 exports.
28336 * include/grub/sparc64/libgcc.h: Likewise. Use
28337 preprocessor conditionals.
28338
e9d66f6d 283392009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28340
28341 * conf/common.rmk (grub-dumpbios): Remove rule.
28342 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28343 * util/grub-dumpbios.in: Remove file.
28344
9155bc17 283452009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28346
28347 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28348 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28349
28350 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28351 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28352 users.
28353
28354 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28355 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28356 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28357 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28358 users.
28359
bf7f7a18 283602009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28361
28362 * term/tparm.c: Switch to GPLv3.
28363
86564c26 283642009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28365
28366 * include/grub/i386/cpuid.h: Add header protection.
28367
5c936493 283682009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28369
28370 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28371
28372 * include/grub/i386/cpuid.h: New file.
28373 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28374 (has_longmode): Rename to ...
28375 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28376 `static' attribute.
28377 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28378 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28379 on a CPU that doesn't implement AMD64 instruction set.
28380
186e7cf2 283812009-10-06 Colin Watson <cjwatson@ubuntu.com>
28382
28383 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28384 that version.texi is rebuilt on version number changes.
28385
83b65c4a 283862009-10-06 Colin Watson <cjwatson@ubuntu.com>
28387
28388 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28389 Fixes bug #27602.
28390
d244281c 283912009-10-06 Colin Watson <cjwatson@ubuntu.com>
28392
28393 * util/i386/pc/grub-install.in: Source
28394 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28395 that the --grub-probe option will work.
28396 * util/sparc64/ieee1275/grub-install.in: Likewise.
28397
da25306d 283982009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28399
28400 * configure.ac: Bump version to 1.97~beta4.
28401
e8ee83c0 284022009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28403
28404 Resync grub-mkdevicemap in x86_64-efi.
28405
28406 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28407 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28408 `util/devicemap.c'.
28409
50dcabcf 284102009-10-01 Colin Watson <cjwatson@ubuntu.com>
28411
28412 * util/grub-editenv.c (create_envblk_file): Write new block with a
28413 .new suffix and then rename it into place, to ensure atomic
28414 creation.
28415
0e51c3a7 284162009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28417
28418 Do not automatically install headers.
28419
28420 * Makefile.in (include_DATA): Remove. Update all users.
28421
31299a95 284222009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28423
28424 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28425 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28426
28427 * util/osdetect.lua: Remove.
28428 * script/lua/lauxlib.c: Likewise.
28429 * script/lua/ldebug.c: Likewise.
28430 * script/lua/grub_main.c: Likewise.
28431 * script/lua/lauxlib.h: Likewise.
28432 * script/lua/ldebug.h: Likewise.
28433 * script/lua/ltablib.c: Likewise.
28434 * script/lua/liolib.c: Likewise.
28435 * script/lua/lstrlib.c: Likewise.
28436 * script/lua/lualib.h: Likewise.
28437 * script/lua/ldo.c: Likewise.
28438 * script/lua/ldump.c: Likewise.
28439 * script/lua/ldo.h: Likewise.
28440 * script/lua/loslib.c: Likewise.
28441 * script/lua/lundump.c: Likewise.
28442 * script/lua/grub_lib.c: Likewise.
28443 * script/lua/ldblib.c: Likewise.
28444 * script/lua/lundump.h: Likewise.
28445 * script/lua/lmem.c: Likewise.
28446 * script/lua/grub_lib.h: Likewise.
28447 * script/lua/lmathlib.c: Likewise.
28448 * script/lua/lstate.c: Likewise.
28449 * script/lua/ltm.c: Likewise.
28450 * script/lua/lvm.c: Likewise.
28451 * script/lua/lmem.h: Likewise.
28452 * script/lua/lstate.h: Likewise.
28453 * script/lua/ltm.h: Likewise.
28454 * script/lua/ltable.c: Likewise.
28455 * script/lua/lvm.h: Likewise.
28456 * script/lua/llex.c: Likewise.
28457 * script/lua/lgc.c: Likewise.
28458 * script/lua/grub_lua.h: Likewise.
28459 * script/lua/loadlib.c: Likewise.
28460 * script/lua/lfunc.c: Likewise.
28461 * script/lua/lopcodes.c: Likewise.
28462 * script/lua/lparser.c: Likewise.
28463 * script/lua/ltable.h: Likewise.
28464 * script/lua/llex.h: Likewise.
28465 * script/lua/lgc.h: Likewise.
28466 * script/lua/lfunc.h: Likewise.
28467 * script/lua/lbaselib.c: Likewise.
28468 * script/lua/lopcodes.h: Likewise.
28469 * script/lua/lparser.h: Likewise.
28470 * script/lua/lzio.c: Likewise.
28471 * script/lua/linit.c: Likewise.
28472 * script/lua/lobject.c: Likewise.
28473 * script/lua/llimits.h: Likewise.
28474 * script/lua/lstring.c: Likewise.
28475 * script/lua/lzio.h: Likewise.
28476 * script/lua/lapi.c: Likewise.
28477 * script/lua/lcode.c: Likewise.
28478 * script/lua/lua.h: Likewise.
28479 * script/lua/lobject.h: Likewise.
28480 * script/lua/lstring.h: Likewise.
28481 * script/lua/lapi.h: Likewise.
28482 * script/lua/lcode.h: Likewise.
28483 * script/lua/luaconf.h: Likewise.
28484
cb8a2c38 284852009-09-26 Colin Watson <cjwatson@ubuntu.com>
28486
28487 * docs/grub.texi (Command-line and menu entry commands): Document
28488 date and echo commands.
28489
6b9b6276 284902009-09-24 Pavel Roskin <proski@gnu.org>
28491
28492 * include/grub/kernel.h (struct grub_module_header): Remove
28493 `grub_module_header_types'. Make `type' unsigned. Make `size'
28494 32-bit on all platforms.
28495 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28496 8-bit field. Use grub_host_to_target32() for `size'.
28497 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28498 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28499 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28500
4e5a02a7 285012009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28502
28503 Fix "lost keypress" bug in at_keyboard.
28504
28505 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28506 Checks for readyness of input buffer (without flushing it).
28507 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28508 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28509
c6dcedf6 285102009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28511
28512 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28513 size check within GRUB_MACHINE_PCBIOS section.
28514
74c958b1 285152009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28516
28517 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28518 return value.
28519 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28520 KEYBOARD_ISREADY check.
28521 (grub_at_keyboard_checkkey): Rename to ...
28522 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28523 Remove gratuitous cast.
28524
ff420223 285252009-09-23 Colin Watson <cjwatson@ubuntu.com>
28526
28527 * configure.ac: Call AC_PROG_MKDIR_P.
28528 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28529 version.texi in $(builddir) rather than $(srcdir).
28530 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28531 to makeinfo's @include search path.
28532
d96875df 285332009-09-23 Felix Zielcke <fzielcke@z-51.de>
28534
28535 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28536
9b3f8365 285372009-09-23 Felix Zielcke <fzielcke@z-51.de>
28538
28539 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28540 for `*.dpkg-new'.
28541
c44c90db 285422009-09-21 Colin Watson <cjwatson@ubuntu.com>
28543
28544 Build info documentation. Some code borrowed from Automake.
28545
28546 * configure.ac: Check for makeinfo.
28547 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28548 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28549 docs/version.texi.
28550 (MOSTLYCLEANFILES): Add vti.tmp.
28551 (docs/version.texi, docs/stamp-vti): Update automatically.
28552 (docs/grub.info): Build info documentation. Use --force and ignore
28553 errors for now.
28554 (all-local): Add $(INFOS).
28555 (install-local): Install info files.
28556 (uninstall): Uninstall info files.
28557 * docs/version.texi: Remove from revision control. This file is
28558 automatically generated on build now.
28559 * gendistlist.sh: Add `*.info'.
28560
e0b37bb5 285612009-09-21 Felix Zielcke <fzielcke@z-51.de>
28562
28563 * kern/term.c: Fix indentation.
28564
5a78865b 285652009-09-21 Felix Zielcke <fzielcke@z-51.de>
28566
28567 * util/hostdisk.c: Fix a comment.
28568
dace7e8a 285692009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28570
28571 Fix regression introduced in r2539.
28572
28573 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28574 to 0xA1.
28575
a83d079b 285762009-09-19 Colin Watson <cjwatson@ubuntu.com>
28577
28578 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 28579 os-prober. Under normal operation, it does not print anything to
28580 stderr; if it does, we need to debug it, and throwing away stderr
28581 makes that excessively difficult.
a83d079b 28582
be94a509 285832009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28584
28585 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28586
63f745e8 285872009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28588
28589 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28590 AC_LANG_PROGRAM from autoconf.
28591 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28592 prototypes (fixes warning).
28593
28594 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28595 `--disable-werror' was used.
28596
bbb2a70f 285972009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28598
28599 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28600 uninitialized `lastaddr'.
28601
77c24f1d 286022009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28603
0f0b8c87 28604 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 28605
07197f23 286062009-09-14 Colin Watson <cjwatson@ubuntu.com>
28607
28608 * commands/test.c (get_fileinfo): Return immediately if
28609 grub_fs_probe fails.
28610
dabf1798 286112009-09-14 José Martínez <xosemp@gmail.com>
28612
28613 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28614
d52109a7 286152009-09-14 Colin Watson <cjwatson@ubuntu.com>
28616
28617 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28618 output.
28619
56532179 286202009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28621
28622 * configure.ac: Remove --enable-grub-pe2elf. Only build
28623 grub-pe2elf when needed by the build system itself.
28624 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28625
8ef070f5 286262009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28627
28628 * configure.ac: Bump version to 1.97~beta3.
28629 * docs/version.texi: Likewise.
28630
61229557 286312009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28632
28633 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28634 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28635 from here ...
28636 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28637 (grub_linux_setup_video): ... to here (with some adjustments).
28638
5c9f8d84 286392009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28640
28641 Fix memory corruption issue (spotted by Colin Watson).
28642
28643 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28644 causing returned size to be stored in an incorrect memory location.
28645 Fix use of uninitialized value when storing the returned size.
28646
e8f5d6e9 286472009-09-12 Yves Blusseau <blusseau@zetam.org>
28648
28649 Change clean rules to properly remove files
28650
28651 * genmk.rb: add new clean rules
28652 * Makefile.in (clean): add the new targets
28653 (mostlyclean): likewise
28654
cda2a409 286552009-09-11 Colin Watson <cjwatson@ubuntu.com>
28656
28657 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28658 to grub_uint64_t.
28659 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28660 non-resident files.
28661
86695375 286622009-09-11 Colin Watson <cjwatson@ubuntu.com>
28663
28664 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28665 part of bug #27349.
28666
8aa1541a 286672009-09-10 Felix Zielcke <fzielcke@z-51.de>
28668
28669 * util/grub-mkconfig.in: Make the created config mode 400 and
28670 print a warning if it fails.
28671
48d9bb0a 286722009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28673
28674 * util/grub.d/40_custom.in: Ask user to type custom entries below
28675 comment, rather than below 'exec tail' line.
28676
3b0521be 286772009-09-10 Colin Watson <cjwatson@ubuntu.com>
28678
28679 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28680 visible in grub.cfg.
28681
50051d55 286822009-09-10 Colin Watson <cjwatson@ubuntu.com>
28683
28684 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28685 file.
28686
c0d34387 286872009-09-10 Felix Zielcke <fzielcke@z-51.de>
28688
28689 * docs/grub.cfg: Add an example menu entry for memtest86+.
28690
80a608f3 286912009-09-09 Felix Zielcke <fzielcke@z-51.de>
28692
a2094832 28693 * config.guess: Update to latest version from config git.
80a608f3 28694 * config.sub: Likewise.
28695
99423078 286962009-09-08 Colin Watson <cjwatson@ubuntu.com>
28697
28698 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28699 unknown-command case. Fixes bug #27320.
28700
44454e4c 287012009-09-08 Felix Zielcke <fzielcke@z-51.de>
28702
28703 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28704 `help' if the command exists.
28705
e30d87ad 287062009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28707
28708 * INSTALL: Require GCC 4.1.3 or later.
28709
9a86f1ec 287102009-09-06 Yves Blusseau <blusseau@zetam.org>
28711
28712 * Makefile.in (RMKFILES): add i386-qemu.rmk
28713 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28714 $(srcdir)/stamp-h.in
28715
7f26d466 287162009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28717
28718 * util/grub-probe.c (probe): Comment out buggy codepath, which
28719 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28720 should be re-enabled after 1.97.
28721
3a613259 287222009-09-05 Felix Zielcke <fzielcke@z-51.de>
28723
28724 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28725 find searches for.
28726
197f76c7 287272009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28728
28729 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28730 unnecessary calls to grub_error.
28731
70ba68ce 287322009-09-04 Colin Watson <cjwatson@ubuntu.com>
28733
28734 * NEWS: Mention `keystatus' and Unicode fonts.
28735
4ff0d7a4 287362009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28737
28738 * configure.ac: Bump version to 1.97~beta2.
28739 * docs/version.texi: Likewise.
28740
77c55a87 287412009-09-03 Colin Watson <cjwatson@ubuntu.com>
28742
28743 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28744 containing unwind information in some cases where it previously did
28745 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28746 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28747 discussion.
28748
f79572cd 287492009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28750
28751 Embedding loadenv module into grub-emu
28752
28753 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28754 commands/loadenv.c
28755 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28756 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28757 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28759 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28760 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28761
93a81088 287622009-09-03 Magnus Granberg <zorry@ume.nu>
28763
28764 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28765 include -fPIE in the default specs.
28766 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28767 to TARGET_CFLAGS.
28768
160034b2 287692009-09-03 Felix Zielcke <fzielcke@z-51.de>
28770
28771 * INSTALL: Note that GNU Bison 2.3 or later is required.
28772
087c07c4 287732009-09-03 Colin Watson <cjwatson@ubuntu.com>
28774
28775 * kern/i386/pc/startup.S: Fix typo.
28776
cbf978c0 287772009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28778
28779 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28780 according to GCS.
28781
287822009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 28783
28784 * docs/grub.texi (Naming convention): Describe one-based partition
28785 numbering.
28786 (Device syntax): Likewise.
28787 (File name syntax): Likewise.
28788 (Block list syntax): Likewise.
28789 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28790 menu.lst.
28791 (File name syntax): Likewise.
28792 (Command-line and menu entry commands): Document acpi, blocklist,
28793 crc, export, insmod, keystatus, ls, set, and unset commands.
28794
f3e8cdfd 287952009-09-02 Colin Watson <cjwatson@ubuntu.com>
28796
28797 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28798 to avoid implying that only one of --shift, --ctrl, or --alt may be
28799 used.
28800
c0bc232b 288012009-09-02 Colin Watson <cjwatson@ubuntu.com>
28802
28803 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28804 rather than comparing against S_IFREG, which will almost never work.
28805
aa0f752d 288062009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28807
28808 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28809 (write_blocklists): Likewise.
28810
ecb3166a 288112009-09-01 Colin Watson <cjwatson@ubuntu.com>
28812
28813 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28814 argument to grub_printf.
28815
c403a125 288162009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 28817
28818 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 28819 non GNU test.
31aba781 28820
b5e7312c 288212009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28822
28823 * kern/file.c (grub_file_read): Spelling fix
28824
fe00f472 288252009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28826
28827 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28828 loading of headers in some cases.
28829
cc55302e 288302009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28831
28832 * configure.ac: Bump version to 1.97~beta1.
28833 * docs/version.texi: Likewise.
28834
5c90cdd2 288352009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 28836
28837 * include/grub/i386/xnu.h: Add license header.
28838 include grub/err.h explicitly.
28839
c90edae4 288402009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28841
28842 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28843 to `ufs' in the vfs.root.mountfrom kernel parameter.
28844
d8888b5c 288452009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28846
28847 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28848
28849 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28850 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28851
28852 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28853 `ARRAY_SIZE' macro.
28854
6f07b921 288552009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28856
28857 * kern/file.c (grub_file_read): Check offset.
28858 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28859 * fs/jfs.c (grub_jfs_read_file): Likewise.
28860 * fs/ntfs.c (grub_ntfs_read): Likewise.
28861 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28862 * fs/minix.c (grub_minix_read_file): Correct offset check.
28863 * fs/ufs.c (grub_ufs_read_file): Likewise.
28864
b4f34077 288652009-08-28 Colin Watson <cjwatson@ubuntu.com>
28866
28867 * term/i386/pc/console.c (bios_data_area): Cast
28868 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28869
e7c69859 288702009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28871
28872 1-bit optimised blitters.
28873
28874 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28875 prototype.
28876 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28877 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28878 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28879 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28880 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28881 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28882 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28883 function.
28884 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28885 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28886 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28887 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28888 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28889 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28890 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28891 when possible.
28892 * video/video.c (grub_video_get_blit_format): Return
28893 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28894
a57da43f 288952009-08-28 Colin Watson <cjwatson@ubuntu.com>
28896
28897 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28898 the first argument to grub_printf.
28899
4cbe67e5 289002009-08-28 Colin Watson <cjwatson@ubuntu.com>
289012009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28902
28903 Add `getkeystatus' terminal method. Add a new `keystatus' command
28904 to query it.
28905
28906 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28907 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28908 modifier key bitmasks.
28909 (struct grub_term_input): Add `getkeystatus' member.
28910 (grub_getkeystatus): Add prototype.
28911 * kern/term.c (grub_getkeystatus): New function.
28912
28913 * include/grub/i386/pc/memory.h
28914 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28915 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28916 Data Area layout.
28917 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28918 (grub_console_term_input): Set `getkeystatus' member.
28919 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28920 constants.
28921 (grub_usb_keyboard_getreport): Likewise.
28922 (grub_usb_keyboard_checkkey): Likewise.
28923 (grub_usb_keyboard_getkeystatus): New function.
28924 (grub_usb_keyboard_term): Set `getkeystatus' member.
28925
28926 * commands/keystatus.c: New file.
28927 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28928 (keystatus_mod_SOURCES): New variable.
28929 (keystatus_mod_CFLAGS): Likewise.
28930 (keystatus_mod_LDFLAGS): Likewise.
28931 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28932 commands/keystatus.c.
28933 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28934 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28935 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28936 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28937 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28938 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 28939
6e2a9085 289402009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28941
28942 Split befs.mod and afs.mod into *_be.mod and *.mod
28943
28944 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28945 (grub_fstest_SOURCES): Likewise.
28946 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28947 (afs_be_mod_SOURCES): New variable.
28948 (afs_be_mod_CFLAGS): Likewise.
28949 (afs_be_mod_LDFLAGS): Likewise.
28950 (befs_be_mod_SOURCES): Likewise.
28951 (befs_be_mod_CFLAGS): Likewise.
28952 (befs_be_mod_LDFLAGS): Likewise.
28953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28954 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28955 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28956 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28957 (grub_emu_SOURCES): Likewise.
28958 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28959 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28960 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28961 * fs/afs_be.c: New file.
28962 * fs/befs_be.c: New file.
28963 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28964 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28965 (U16): Replaced with ...
28966 (grub_afs_to_cpu16): ...this. All users updated.
28967 (U32): Replaced with ...
28968 (grub_afs_to_cpu32): ...this. All users updated.
28969 (U64): Replaced with ...
28970 (grub_afs_to_cpu64): ...this. All users updated.
28971 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28972 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 28973 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 28974 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28975 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28976 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28977 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28978 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28979 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28980 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28981 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28982
32a71655 289832009-08-26 Bean <bean123ch@gmail.com>
28984
28985 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28986 64-bit number.
28987 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28988 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28989 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28990
552bf6c5 289912009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28992
28993 NetBSD memory map support.
28994
28995 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28996 (grub_netbsd_btinfo_mmap_header): New structure.
28997 (grub_netbsd_btinfo_mmap_entry): Likewise.
28998 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28999
1ae2078c 290002009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29001
29002 Enable bsd.mod on coreboot.
29003
29004 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
29005 (bsd_mod_SOURCES): New variable.
29006 (bsd_mod_CFLAGS): Likewise.
29007 (bsd_mod_LDFLAGS): Likewise.
29008 (bsd_mod_ASFLAGS): Likewise.
29009 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
29010 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
29011
beefc598 290122009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29013
29014 Cleanup NetBSD root support.
29015
29016 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
29017 grub_bsd_get_device.
29018 Fix typo.
29019
3b76e68b 290202009-08-25 Felix Zielcke <fzielcke@z-51.de>
29021
29022 * util/grub.d/00_header.in: Move check for the video backend of
29023 gfxterm from here ...
29024 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
29025 a suitable video backend.
29026
aea664ea 290272009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29028
29029 Fix breakage in grub-setup.
29030
29031 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
29032 "msdos_partition_map".
29033
ff747d50 290342009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29035
29036 Fix breakage in normal/auth.c.
29037
29038 * normal/auth.c (grub_iswordseparator): New function.
29039
e7e1f93f 290402009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29041
29042 Authentication support.
29043
29044 * commands/password.c: New file.
29045 * conf/common.rmk (pkglib_MODULES): Add password.mod.
29046 (password_mod_SOURCES): New variable.
29047 (password_mod_CFLAGS): Likewise.
29048 (password_mod_LDFLAGS): Likewise.
29049 (normal_mod_SOURCES): Add normal/auth.c.
29050 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
29051 normal/auth.c.
29052 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29053 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29054 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29056 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29057 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29058 * include/grub/auth.h: New file.
29059 * include/grub/err.h (grub_err_t): New enum value
29060 GRUB_ERR_ACCESS_DENIED.
29061 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
29062 'users'.
29063 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
29064 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
29065 users updated.
29066 * normal/auth.c: New file.
29067 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
29068 (grub_cmdline_run): Don't allow to go to command line without
29069 authentication.
29070 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
29071 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
29072 menuentry without superuser rights.
29073 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
29074 user isn't a superuser.
29075
70f1161d 290762009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29077
29078 Save space by inlining misc.c functions.
29079
29080 * kern/misc.c (grub_iswordseparator): Made static.
29081 * kern/misc.c (grub_strcat): Moved from here ...
29082 * include/grub/misc.h (grub_strcat): ... here. Inlined.
29083 * kern/misc.c (grub_strncat): Moved from here ...
29084 * include/grub/misc.h (grub_strncat): ... here. Inlined.
29085 * kern/misc.c (grub_strcasecmp): Moved from here ...
29086 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
29087 * kern/misc.c (grub_strncasecmp): Moved from here ...
29088 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
29089 * kern/misc.c (grub_isalpha): Moved from here ...
29090 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
29091 * kern/misc.c (grub_isdigit): Moved from here ...
29092 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
29093 * kern/misc.c (grub_isgraph): Moved from here ...
29094 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
29095 * kern/misc.c (grub_tolower): Moved from here ...
29096 * include/grub/misc.h (grub_tolower): ... here. Inlined.
29097
48e40bff 290982009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29099
29100 * script/sh/function.c (grub_script_function_find): Cut error message
29101 not to flood terminal.
29102 * script/sh/lexer.c (grub_script_yylex): Remove command line length
29103 limit.
29104 * script/sh/script.c (grub_script_arg_add): Duplicate string.
29105
c385bfc3 291062009-08-24 Colin Watson <cjwatson@ubuntu.com>
29107
29108 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
29109 `report' grub_uint8_t *.
29110 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
29111 Use a 50-millisecond timeout rather than just repeating
29112 grub_usb_keyboard_getreport 50 times.
29113 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
29114
2d21e3e8 291152009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29116
29117 Rename *_partition_map to part_*
29118
29119 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
29120 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
29121 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
29122 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
29123 All users updated.
29124 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
29125 All users updated.
29126 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
29127 * util/grub-probe.c (probe_partmap): Don't transform partition name
29128 to get module name.
29129
dd103c4e 291302009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29131
29132 Fix OpenBSD and NetBSD support.
29133
29134 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
29135 memory address conflict.
29136 (OPENBSD_MMAP_ACPI): New definition.
29137 (OPENBSD_MMAP_NVS): Likewise.
29138 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
29139 and OPENBSD_MMAP_NVS.
29140 Add memory map terminator
29141 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 29142 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 29143
16c84d74 291442009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29145
29146 Let user specify NetBSD root device.
29147
29148 * loader/i386/bsd.c (netbsd_root): New variable.
29149 (netbsd_opts): New option 'root'.
29150 (NETBSD_ROOT_ARG): New macro.
29151 (grub_netbsd_boot): Use 'netbsd_root'.
29152 (grub_bsd_unload): Free 'netbsd_root'.
29153 (grub_cmd_netbsd): Fill 'netbsd_root'.
29154
adb29902 291552009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29156
29157 Support for 64-bit NetBSD.
29158
29159 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
29160 point when booting non-FreeBSD.
29161
f5ae9f74 291622009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29163
29164 Support --no-smp and --no-acpi for NetBSD.
29165
29166 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
29167 (NETBSD_AB_NOACPI): Likewise.
29168 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
29169 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
29170
de74f136 291712009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29172
29173 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
29174 errors.
29175 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
29176 errors. Call grub_error when needed.
29177
e9a925da 291782009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29179
29180 * commands/search.c (search_fs): Try searching without autoload first.
29181 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
29182 filesystem module explicitly for faster booting.
29183
5174302b 291842009-08-23 Colin Watson <cjwatson@ubuntu.com>
29185
29186 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
29187
c8c80635 291882009-08-23 Colin Watson <cjwatson@ubuntu.com>
29189
29190 * util/grub.d/30_os-prober.in: Disable os-prober if
29191 `GRUB_DISABLE_OS_PROBER' was set to true.
29192
71acf5e5 291932009-08-23 Robert Millan <rmh.grub@aybabtu.com>
29194
29195 * partmap/pc.c: Rename to ...
29196 * partmap/msdos.c: ... this. Update all users.
29197 (grub_pc_partition_map): Rename to ...
29198 (grub_msdos_partition_map): ... this. Update all users.
29199
29200 * parttool/pcpart.c: Rename to ...
29201 * parttool/msdospart.c: ... this. Update all users.
29202
29203 * include/grub/pc_partition.h: Rename to ...
29204 * include/grub/msdos_partition.h: ... this. Update all users.
29205 (grub_pc_partition_bsd_entry): Rename to ...
29206 (grub_msdos_partition_bsd_entry): ... this. Update all users.
29207 (grub_pc_partition_disk_label): Rename to ...
29208 (grub_msdos_partition_disk_label): ... this. Update all users.
29209 (grub_pc_partition_entry): Rename to ...
29210 (grub_msdos_partition_entry): ... this. Update all users.
29211 (grub_pc_partition_mbr): Rename to ...
29212 (grub_msdos_partition_mbr): ... this. Update all users.
29213 (grub_pc_partition): Rename to ...
29214 (grub_msdos_partition): ... this. Update all users.
29215 (grub_pc_partition_is_empty): Rename to ...
29216 (grub_msdos_partition_is_empty): ... this. Update all users.
29217 (grub_pc_partition_is_extended): Rename to ...
29218 (grub_msdos_partition_is_extended): ... this. Update all users.
29219 (grub_pc_partition_is_bsd): Rename to ...
29220 (grub_msdos_partition_is_bsd): ... this. Update all users.
29221
29222 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
29223 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
29224 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
29225 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
29226 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
29227 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
29228 (gpt_mod_LDFLAGS): Rename to ...
29229 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
29230 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
29231 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
29232 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
29233 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
29234 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
29235 (part_gpt_mod_LDFLAGS): ... this.
29236 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
29237 `pcpart.mod' to `msdospart.mod'.
29238 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
29239 to ...
29240 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
29241 (msdospart_mod_LDFLAGS): ... this.
29242
c11fded5 292432009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29244
29245 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
29246 (openbsd_opts): Likewise.
29247 (netbsd_opts): Likewise.
29248 (freebsd_flags): Added 0 terminator.
29249 (openbsd_flags): Likewise.
29250 (netbsd_flags): Likewise.
29251 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
29252 (grub_cmd_freebsd): Transformed into extended command.
29253 (grub_cmd_openbsd): Likewise.
29254 (grub_cmd_netbsd): Likewise.
29255 (cmd_freebsd): Changed type to grub_extcmd_t.
29256 (cmd_openbsd): Likewise.
29257 (cmd_netbsd): Likewise.
29258 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
29259 grub_cmd_openbsd as extended commands.
29260 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
29261 cmd_netbsd and cmd_openbsd
29262
11d1c769 292632009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
29264
29265 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
29266
7a9094e5 292672009-08-21 Pavel Roskin <proski@gnu.org>
29268
5496c37e 29269 * Makefile.in (install-local): When checking if a file is in the
29270 build directory, use "test -e" to detect symlinks.
29271
7a9094e5 29272 * Makefile.in (install-local): Remove all files in
29273 $(DESTDIR)$(pkglibdir) before installing new files there.
29274
e53cea11 292752009-08-18 Felix Zielcke <fzielcke@z-51.de>
29276
29277 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29278 grub-mkelfimage.
29279
9aced544 292802009-08-18 Felix Zielcke <fzielcke@z-51.de>
29281
29282 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29283 explicitly specified by the user.
29284
b7da6bab 292852009-08-18 Pavel Roskin <proski@gnu.org>
29286
29287 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29288 grub_uint8_t pointer for data.
29289 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29290 Likewise.
29291 * video/fb/fbutil.c: Remove unnecessary casts.
29292
19f1b335 292932009-08-17 Michal Suchanek <hramrach@centrum.cz>
29294
29295 VBE cleanup.
29296
29297 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29298 (grub_vbe_set_video_mode): Save active mode info
29299 only after setting the mode.
29300 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29301 second argument.
29302
2f467aa9 293032009-08-17 Michal Suchanek <hramrach@centrum.cz>
29304
29305 Rename variables for clarity.
29306
29307 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29308 (active_vbe_mode_info): ... this. All users updated.
29309 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29310 All users updated.
29311 (initial_mode): Rename to ...
29312 (initial_vbe_mode): ... this. All users updated.
29313 (mode_in_use): Rename to ..
29314 (vbe_mode_in_use): ... this. All users updated.
29315 (mode_list): Rename to ..
29316 (vbe_mode_list): ... this. All users updated.
29317 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29318 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29319 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29320 'mode_list_size' to 'vbe_mode_list_size'.
29321 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29322 'best_mode_info' to 'best_vbe_mode_info' and
29323 'best_mode' to 'best_vbe_mode'
29324
6025fcd7 293252009-08-17 Michal Suchanek <hramrach@centrum.cz>
29326
29327 Remove duplicate grub_video_fb_get_video_ptr.
29328
29329 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29330 (grub_video_fb_get_video_ptr): ... this.
29331 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29332 * video/fb/fbutil.c: Add comment about addressing.
29333 (get_data_ptr): Rename to ...
29334 (grub_video_fb_get_video_ptr): ... this. All users updated.
29335 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29336
cc8c6faf 293372009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29338
29339 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29340 grub_dprintf() that was just added.
29341
08aa61f0 293422009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29343
29344 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29345 (DEFAULT_VIDEO_MODE): Remove macros.
29346 (grub_linux_boot): Remove assumption that Linux has FB support,
29347 and use "text" as default video mode.
29348
7cef4f75 293492009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29350
29351 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29352 grub_dprintf.
29353 * fs/fat.c (grub_fat_read_data): Likewise.
29354
e1f39873 293552009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29356
29357 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29358 payload.
29359 (grub_module): Likewise.
29360
c166d79e 293612009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29362
29363 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29364 mbi->cmdline but free playground.
29365
c60cee8e 293662009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29367
29368 Handle group offset on UFS1.
29369
29370 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29371 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29372
c0d8b5d4 293732009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29374
29375 Split ufs.mod into ufs1.mod and ufs2.mod.
29376
29377 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29378 (grub_fstest_SOURCES): Likewise.
29379 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29380 (ufs_mod_SOURCES): Remove.
29381 (ufs_mod_CFLAGS): Likewise.
29382 (ufs_mod_LDFLAGS): Likewise.
29383 (ufs1_mod_SOURCES): New variable.
29384 (ufs1_mod_CFLAGS): Likewise.
29385 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 29386 (ufs2_mod_SOURCES): New variable.
29387 (ufs2_mod_CFLAGS): Likewise.
29388 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 29389 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29390 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29391 Likewise.
29392 (grub_emu_SOURCES): Likewise.
29393 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29394 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29395 (grub_setup_SOURCES): Likewise.
29396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29397 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29398 (grub_setup_SOURCES): Likewise.
29399 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29400 Likewise.
29401 * fs/ufs2.c: New file.
29402 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29403
d3539132 294042009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29405
29406 Framebuffer split.
29407
29408 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29409 subsystem at the end.
29410 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29411 (video_fb_mod_SOURCES): New variable.
29412 (video_fb_mod_CFLAGS): Likewise.
29413 (video_fb_mod_LDFLAGS): Likewise.
29414 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29415 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29416 * video/i386/pc/vbeblit.c: Moved from here ...
29417 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29418 * video/i386/pc/vbefill.c: Moved from here ...
29419 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29420 * video/i386/pc/vbeutil.c: Moved from here ...
29421 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29422 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29423 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29424 * include/grub/i386/pc/vbefill.h: Moved from here ...
29425 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29426 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29427 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29428 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29429 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29430 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29431 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29432 (grub_video_adapter): Added 'get_info_and_fini'.
29433 (grub_video_get_info_and_fini): New prototype.
29434 (grub_video_set_mode): make modestring const char *.
29435 * loader/i386/linux.c (grub_linux_setup_video): Use
29436 grub_video_get_info_and_fini.
29437 (grub_linux_boot): Move modesetting just before booting.
29438 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29439 grub_video_get_info_and_fini.
29440 * video/i386/pc/vbe.c: Moved framebuffer part ...
29441 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29442 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29443 grub_video_fbstd_colors and grub_video_fb_set_palette.
29444 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29445 grub_video_fb_init.
29446 (grub_video_vbe_fini): Use grub_video_fb_fini.
29447 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29448 render_target and use grub_video_fb_set_active_render_target and
29449 grub_video_fb_set_palette.
29450 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29451 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29452 (grub_video_vbe_adapter): Use framebuffer.
29453 * video/video.c (grub_video_get_info_and_fini): New function.
29454 (grub_video_set_mode): Make modestring const char *.
29455 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29456 values are already initialised.
29457
d404ee56 294582009-08-14 Pavel Roskin <proski@gnu.org>
29459
29460 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29461 ABS and APPLE_CC.
29462 * boot/i386/pc/diskboot.S: Likewise.
29463 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29464 sectors allow compilation on MacOSX.
29465 * conf/i386-pc.rmk: Enable unconditional compilation of
29466 lnxboot.img.
29467
9a10df16 294682009-08-13 Colin Watson <cjwatson@ubuntu.com>
29469
29470 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29471 * util/grub.d/00_header.in: Enter interruptible sleep if
29472 GRUB_HIDDEN_TIMEOUT is set.
29473
be3c9ca7 294742009-08-13 Yves Blusseau <blusseau@zetam.org>
29475
29476 * include/grub/symbol.h: Add the LOCAL macro.
29477 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29478 starting with "L_".
29479
1f9e557e 294802009-08-13 Pavel Roskin <proski@gnu.org>
29481
9ca62843 29482 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29483 any modern compilers we support.
29484
1f9e557e 29485 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29486 Use local labels starting with "L_" so that Apple assembler
29487 knows they are local.
29488
81623db6 294892009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29490
29491 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29492 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29493 (bsd_kernel_types): ... this enum.
29494
29495 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29496 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29497 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29498
29499 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29500 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29501 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29502 messages.
29503
f5d35e7a 295042009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29505
29506 * util/grub-dumpdevtree: Moved from here ...
29507 * util/i386/efi/grub-dumpdevtree: ... to here.
29508 (hexify): New function. Converts a string to its hex version.
29509 Generate hex versions of "efi" and "device-properties" by calling
29510 hexify() on the ASCII strings rather than by hardcoding numbers.
29511
d1e1d527 295122009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29513
29514 * fs/jfs.c: Update copyright year.
29515
1ebbe064 295162009-08-08 Felix Zielcke <fzielcke@z-51.de>
29517
29518 * util/grub.d/00_header.in: Fix a comment.
29519 * util/grub.d/10_linux.in: Likewise.
29520 * util/grub.d/10_windows.in: Likewise.
29521 * util/grub.d/10_hurd.in: Likewise.
29522
a78c8d24 295232009-08-08 Felix Zielcke <fzielcke@z-51.de>
29524
29525 * util/grub-mkconfig.in: Allow the user to specify the used font
29526 with GRUB_FONT.
29527
29a6b9e8 295282009-08-08 Pavel Roskin <proski@gnu.org>
29529
b5f16cc4 29530 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29531 available, xfs.mod needs it now.
29532
2f5cb827 29533 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29534 the "g" modifier in sed when the intention is to strip something
29535 once. This fixes comparison of kernels with multiple dashes.
29536
29a6b9e8 29537 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29538 on it. Add missing space before closing bracket. Fix
29539 misleading formatting.
29540
892a3d98 295412009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29542
29543 * docs/grub.texi: Major overhaul. Remove all sections that are
29544 specific to GRUB Legacy, or mostly composed of Legacy-specific
29545 information.
29546
ed94253f 295472009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29548
29549 * docs/version.texi: New file. Provides version information for
29550 grub.texi.
29551
126d6628 295522009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29553
29554 * docs/grub.texi: Update CVS information to SVN.
29555 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29556
998b5aa9 295572009-08-07 Felix Zielcke <fzielcke@z-51.de>
29558
29559 * util/grub-mkconfig.in: Remove a wrong `fi'.
29560
818e094a 295612009-08-07 Felix Zielcke <fzielcke@z-51.de>
29562
29563 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29564 (grub_jfs_uuid): New function.
29565 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29566
b969c52f 295672009-08-07 Felix Zielcke <fzielcke@z-51.de>
29568
29569 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29570 of it to ...
29571 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29572 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29573
7a4894cc 295742009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29575
29576 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29577 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29578 Update all users.
29579
29580 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29581 not just "vmlinu[zx]".
29582 Moved from here ...
29583 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29584 all users.
29585
29586 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29587 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29588 all users.
29589
4e2171f8 295902009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29591
29592 * util/grub.d/10_freebsd.in: Use an absolute device path for
29593 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29594
6dcfcb32 295952009-08-06 Felix Zielcke <fzielcke@z-51.de>
29596
29597 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29598 handling of multiple abstraction modules.
29599
f56a8756 296002009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29601
29602 Fix a bug resulting in black screen when loading Linux using a
29603 packed video mode.
29604
29605 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29606 function.
29607
29608 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29609 (grub_vbe_bios_getset_dac_palette_width): New function.
29610 (grub_vbe_bios_get_dac_palette_width)
29611 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29612 grub_vbe_bios_getset_dac_palette_width()).
29613
29614 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29615 check for return status.
29616 (grub_vbe_get_video_mode_info): When getting information for a packed
29617 mode (<= 8 bpp), obtain DAC palette width using
29618 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29619 {red,green,blue}_mark_size.
29620
222671b2 296212009-08-04 Felix Zielcke <fzielcke@z-51.de>
29622
ecb1a6d9 29623 * commands/search.c (options): Fix help output to match actual code.
222671b2 29624
f84114f5 296252009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29626
29627 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29628 of homegrown code.
29629
bd288a20 296302009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 29631
29632 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29633 on XFS or ReiserFS.
29634
8aab5e25 296352009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29636
29637 Support Apple partition map with sector size different from 512 bytes.
29638
29639 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29640 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29641 and 'apart.partmap_size'.
29642
6ad6258a 296432009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
296442009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29645
29646 Fix cpuid command.
29647
29648 * commands/i386/cpuid.c (options): New variable.
29649 (grub_cmd_cpuid): Return real error.
29650 (GRUB_MOD_INIT(cpuid)): Declare options.
29651
67459bc6 296522009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29653
29654 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29655 valid.
29656
fbc6ab54 296572009-07-31 Bean <bean123ch@gmail.com>
29658
29659 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29660 log2_inode.
29661 (grub_fshelp_node): Move inode field to the end.
29662 (grub_xfs_data): Remove inode field.
29663 (grub_xfs_inode_block): Calculate inode size using sblock.
29664 (grub_xfs_inode_offset): Likewise.
29665 (grub_xfs_read_inode): Calculate inode size using sblock.
29666 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29667 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29668 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29669 to match inode size.
29670 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29671 not accessible when data is null.
29672 (grub_xfs_open): Likewise.
29673
f45d6cfc 296742009-07-31 Bean <bean123ch@gmail.com>
29675
29676 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29677 Don't change pv->disk if it's already set.
29678
29679 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29680 (grub_raid_register): ... here.
29681 (grub_raid_rescan): Removed.
29682
29683 * include/grub/raid.h (grub_raid_rescan): Removed.
29684
29685 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29686 (fstest): Replace grub_raid_rescan with module fini function followed
29687 by init function.
29688
29689 * util/grub-probe.c: Add include file <grub/raid.h>.
29690 (probe_raid_level): New function.
29691 (probe): Detect abstraction by walking the disk device, support two
29692 level of abstraction (LVM on RAID) when detecting partition map.
29693
24443b5a 296942009-07-31 Pavel Roskin <proski@gnu.org>
29695
29696 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29697 to grub_zalloc(), it was erroneous.
29698 Reported by Bean <bean123ch@gmail.com>
29699
a275d9e7 297002009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29701
29702 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 29703 embedding zone, not only the first one.
a275d9e7 29704
56c5a47f 297052009-07-29 Joe Auricchio <jauricchio@gmail.com>
29706
29707 * term/gfxterm.c (clear_char): New function.
29708 (grub_virtual_screen_setup): Use clear_char.
29709 (scroll_up): Likewise.
29710 (grub_virtual_screen_cls): Likewise.
29711
67bb323a 297122009-07-29 Felix Zielcke <fzielcke@z-51.de>
29713
29714 * util/deviceiter.c (get_acceleraid_disk_name): New static
29715 function.
29716 (grub_util_iterate_devices): Handle Accelraid devices.
29717 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29718
388a7c75 297192009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29720
29721 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29722 separator for the suggested gfxpayload string (';' collides with the
29723 parser and needs escaping).
29724
3bb7abcf 297252009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29726
29727 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29728 Clear direction flag before jumping to OS.
29729 (grub_multiboot2_real_boot): Likewise.
29730
2ddd36d7 297312009-07-28 Felix Zielcke <fzielcke@z-51.de>
29732
29733 * util/i386/pc/grub-install: Fix parsing of --disk-module
29734 option.
29735
c521b62b 297362009-07-28 Felix Zielcke <fzielcke@z-51.de>
29737
29738 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29739 when embedding.
29740
880e0a0c 297412009-07-26 Felix Zielcke <fzielcke@z-51.de>
29742
29743 * util/grub-mkconfig.in (package_version): New variable.
29744 Use it do display the version.
29745
2366e356 297462009-07-25 Felix Zielcke <fzielcke@z-51.de>
29747
29748 * kern/file.c (grub_file_open): Revert to previous check with
29749 grub_errno.
29750
7ad8c80e 297512009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29752
29753 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29754 from help line. It's out of sync with code.
29755
72b9658b 297562009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29757
29758 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29759 entries on failed boot.
29760
77435277 297612009-07-25 Felix Zielcke <fzielcke@z-51.de>
29762
29763 * kern/file.c (grub_file_open): Fix an error check.
29764
fcaa8b21 297652009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29766
35d16c74 29767 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29768 partition map couldn't be identified.
fcaa8b21 29769
48904cd1 297702009-07-23 Pavel Roskin <proski@gnu.org>
29771
ef3c317f 29772 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29773 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29774 case of little endian words becomes just an optimization.
29775 Respect const modifier.
ad8ea1f4 29776 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 29777
48904cd1 29778 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29779 to avoid loss of upper bits if align is unsigned and shorter
29780 than addr.
29781
260c9a89 297822009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29783
29784 UUID support for UFS
29785
29786 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29787 (grub_ufs_uuid): New function.
29788 (grub_ufs_fs): add .uuid
29789
f76ce889 297902009-07-21 Pavel Roskin <proski@gnu.org>
29791
29792 * kern/dl.c (grub_dl_check_header): Make static.
29793
6a6cbcaf 297942009-07-21 Felix Zielcke <fzielcke@z-51.de>
29795
29796 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29797 add drivemap for Vista. It breaks Windows 7.
29798
cffcddb2 297992009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29800
29801 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29802 128 bytes
29803
1ef44b80 298042009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29805
29806 Add BFS support
29807
29808 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29809 (grub_fstest_SOURCES): Likewise.
29810 (pkglib_MODULES): Add befs.mod.
29811 (befs_mod_SOURCES): New variable.
29812 (befs_mod_CFLAGS): Likewise.
29813 (befs_mod_LDFLAGS): Likewise.
29814 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29815 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29816 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29817 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29818 (grub_setup_SOURCES): Likewise.
29819 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29820 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29821 (grub_setup_SOURCES): Likewise.
29822 * fs/befs.c: New file.
29823 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29824 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29825 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29826 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29827 (B_KEY_INDEX_ALIGN): New declaration.
29828 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29829 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29830 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29831 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29832 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29833 (grub_afs_mount) [MODE_BFS]: Likewise.
29834 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29835 (grub_afs_fs): Use GRUB_AFS_FSNAME
29836 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29837 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29838 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29839 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29840
4f253044 298412009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29842
29843 * util/getroot.c (find_root_device): Add support for MacOSX.
29844 * util/hostdisk.c: Likewise.
29845
57a55913 298462009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29847
29848 * font/font.c (find_glyph): Check whether a font is present to avoid
29849 segmentation fault.
75421ca9 29850
298512009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 29852
29853 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29854
e98cd0c2 298552009-07-20 Pavel Roskin <proski@gnu.org>
29856
29857 * configure.ac: Trim excessively wordy excuses.
29858
1d2d169a 298592009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29860
29861 Add symlink, mtime and label support to AtheFS.
29862
29863 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29864 (grub_afs_iterate_dir): Handle symlinks.
29865 (grub_afs_open): Use grub_afs_read_symlink.
29866 (grub_afs_dir): Likewise.
29867 Pass mtime.
29868 (grub_afs_label): New function.
29869 (grub_afs_fs): Add grub_afs_label.
29870 (grub_afs_read_symlink): New function.
29871
186f3189 298722009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29873
29874 Fix AtheFS support.
29875
29876 * fs/afs.c: Fix comments style.
29877 (grub_afs_blockrun): Declare as packed.
29878 (grub_afs_datastream): Likewise.
29879 (grub_afs_bnode): Likewise.
29880 (grub_afs_btree): Likewise.
29881 (grub_afs_sblock): Likewise.
29882 Declare `name' as char.
29883 (grub_afs_inode): Declare as packed.
29884 Change void *vnode to grub_uint32_t unused.
29885 (grub_afs_iterate_dir): Check that key_size is positive.
29886 (grub_afs_mount): Don't read superblock twice.
75421ca9 29887 (grub_afs_dir): Don't free node in case of error,
186f3189 29888 grub_fshelp_find_file already handles this.
29889 (grub_afs_open): Likewise.
29890
5680109e 298912009-07-19 Pavel Roskin <proski@gnu.org>
29892
29893 * Makefile.in: Remove LIBLZO and enable_lzo.
29894 * conf/i386-pc.rmk: Remove lzo support.
29895 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29896 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29897 support.
29898 * kern/i386/pc/lzo1x.S: Remove.
29899 * kern/i386/pc/startup.S: Remove lzo support.
29900 * util/i386/pc/grub-mkimage.c: Likewise.
29901
ac70fa32 299022009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29903
29904 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29905 * fs/xfs.c (grub_xfs_dir): Likewise.
29906 * fs/afs.c (grub_afs_dir): Likewise.
29907 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29908 (grub_iso9660_open): Likewise.
29909 * fs/jfs.c (grub_jfs_open): Likewise.
29910 * fs/ext2.c (grub_ext2_dir): Likewise.
29911 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29912 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 29913
eab58da2 299142009-07-16 Pavel Roskin <proski@gnu.org>
29915
d2838156 29916 * configure.ac: Never add "-c" to CFLAGS.
29917
55c70904 29918 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29919
43e6200c 29920 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29921 grub_cv_cc_efiemu should be used.
29922
ce7a733d 29923 * configure.ac: Typo fixes.
29924
eab58da2 29925 * kern/mm.c (grub_zalloc): New function.
29926 (grub_debug_zalloc): Likewise.
29927 * include/grub/mm.h: Declare grub_zalloc() and
29928 grub_debug_zalloc().
29929 * util/misc.c (grub_zalloc): New function.
29930 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29931 instead of grub_malloc(), remove unneeded initializations.
29932 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29933 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29934 * commands/parttool.c (grub_cmd_parttool): Likewise.
29935 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29936 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29937 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29938 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29939 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29940 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29941 (grub_cmd_efiemu_pnvram): Likewise.
29942 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29943 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29944 (grub_iso9660_iterate_dir): Likewise.
29945 * fs/jfs.c (grub_jfs_opendir): Likewise.
29946 * fs/ntfs.c (list_file): Likewise.
29947 (grub_ntfs_mount): Likewise.
29948 * kern/disk.c (grub_disk_open): Likewise.
29949 * kern/dl.c (grub_dl_load_core): Likewise.
29950 * kern/elf.c (grub_elf_file): Likewise.
29951 * kern/env.c (grub_env_context_open): Likewise.
29952 (grub_env_set): Likewise.
29953 (grub_env_set_data_slot): Likewise.
29954 * kern/file.c (grub_file_open): Likewise.
29955 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29956 * loader/i386/multiboot.c (grub_module): Likewise.
29957 * loader/xnu.c (grub_xnu_create_key): Likewise.
29958 (grub_xnu_create_value): Likewise.
29959 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29960 (read_config_file): Likewise.
29961 * normal/menu_entry.c (make_screen): Likewise.
29962 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29963 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29964 * script/sh/script.c (grub_script_parse): Likewise.
29965 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29966 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29967 * video/readers/png.c (grub_png_output_byte): Likewise.
29968 (grub_video_reader_png): Likewise.
29969
830afef7 299702009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 29971
29972 Enable all targets that can be built by default
29973
830afef7 29974 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 29975 grub-mkfont and grub-fstest if they can be built
29976
ee293aee 299772009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29978
29979 Fix hang and segmentation fault in grub-emu-usb
29980
29981 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29982 * util/usb.c (grub_libusb_devices): likewise
29983 (grub_libusb_init): rename to ...
29984 (GRUB_MOD_INIT (libusb)):...this
29985 (grub_libusb_fini): rename to ..
29986 (GRUB_MOD_FINI (libusb)):...this
29987 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29988 * include/grub/disk.h (grub_raid_init): removed, it's useless
29989 (grub_raid_fini): likewise
29990 (grub_lvm_init): likewise
29991 (grub_lvm_fini): likewise
29992 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29993 by grub_init_all
29994
94414221 299952009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29996
29997 Fix libusb
29998
29999 * Makefile.in (LIBUSB): new macro
30000 * genmk.rb (Utility/print_tail): new method
30001 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
30002 (top level): call util.print_tail at the end.
30003
59ade63d 300042009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30005
30006 Make FreeBSD accept zpool.cache
30007
30008 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
30009 type is /boot/zfs/zpool.cache
30010
a58da8c7 300112009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30012
30013 Fix 64-bit efiemu
30014
30015 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
30016 correct wrong typedef
30017 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
30018
20591577 300192009-07-15 Pavel Roskin <proski@gnu.org>
30020
560ca572 30021 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
30022 * kern/disk.c (struct grub_disk_cache): Likewise.
30023
e8e8e4fd 30024 * commands/probe.c (options): Typo fix.
30025
fde24e10 30026 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
30027 Increase to 0x5a to accommodate FAT32. Adjust other offsets
30028 accordingly.
30029 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
30030
379c54c1 30031 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
30032 the end of "Error" to make the message more readable.
30033
7bd8f5bf 30034 * boot/i386/pc/boot.S (kernel_segment): Remove.
30035 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
30036 for destination.
30037
40b132c5 30038 * boot/i386/pc/boot.S (boot_version): Remove.
30039 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
30040 Remove.
30041
20591577 30042 * include/grub/i386/pc/boot.h: Sort all offsets.
30043 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
30044 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
30045 * boot/i386/pc/boot.S: Assert location of every offset listed in
30046 include/grub/i386/pc/boot.h.
30047
2df32b2c 300482009-07-13 Pavel Roskin <proski@gnu.org>
30049
44b5d879 30050 * include/grub/i386/coreboot/machine.h: Rename
30051 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
30052 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
30053 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
30054
17dc3751 30055 * kern/dl.c: Force native word size to suppress warnings when
30056 compiling grub-emu.
30057
2df32b2c 30058 * kern/device.c (grub_device_iterate): Change struct part_ent to
30059 hold the name, not a pointer to it. Use one grub_malloc() per
30060 partition, not two. Free partition_name if grub_malloc() fails.
30061 Set ents to NULL only before grub_partition_iterate() is called.
30062
75c59f59 300632009-07-11 Bean <bean123ch@gmail.com>
30064
30065 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
30066 childname.
30067
0ae1bf88 300682009-07-10 Bean <bean123ch@gmail.com>
300692009-07-10 Robert Millan <rmh.grub@aybabtu.com>
30070
30071 * kern/ieee1275/openfw.c (grub_children_iterate)
30072 (grub_devalias_iterate): Fix size evaluation for property or path
30073 strings, which was broken since r2132.
30074
8279cade 300752009-07-07 Pavel Roskin <proski@gnu.org>
30076
7d8a52d3 30077 * commands/search.c (search_file): Merge into ...
30078 (search_fs): ... this. Accept search type as argument.
30079 (grub_cmd_search): Pass search type to search_fs().
30080
25f9a05a 30081 * include/grub/util/console.h: New file.
30082 * util/console.c: Use it instead of grub/machine/console.h.
30083 * util/grub-emu.c: Likewise.
30084
8279cade 30085 * lib/arg.c (find_long_option): Remove.
30086 (find_long): Add `len' argument, make `s' const char *.
30087 (grub_arg_parse): Parse long options in place, not in a
30088 temporary buffer.
30089
4a11b60f 300902009-07-06 Pavel Roskin <proski@gnu.org>
30091
99f68041 30092 * commands/search.c (search_fs): Fix potential NULL pointer
30093 dereference.
30094
4a11b60f 30095 * commands/search.c (search_fs): Replace QUID macro with quid_fn
30096 function pointer.
30097
e110f4de 300982009-07-06 Daniel Mierswa <impulze@impulze.org>
30099
30100 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
30101 comparison.
30102
46eeb6a2 301032009-07-05 Pavel Roskin <proski@gnu.org>
30104
bab74958 30105 * include/grub/i386/linux.h (struct linux_kernel_params):
30106 Restore padding3, it's still needed.
30107
46eeb6a2 30108 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
30109 FreeBSD.
30110 * util/osdetect.lua: Likewise.
30111
b4a1dc79 301122009-07-05 Bean <bean123ch@gmail.com>
30113
30114 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
30115
30116 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
30117 (grub_lua_getenv): Likewise.
30118 (grub_lua_setenv): Likewise.
30119 (save_errno): New function.
30120 (push_result): Likewise.
30121 (grub_lua_enum_device): Likewise.
30122 (grub_lua_enum_file): Likewise.
30123 (grub_lua_file_open): Likewise.
30124 (grub_lua_file_close): Likewise.
30125 (grub_lua_file_seek): Likewise.
30126 (grub_lua_file_read): Likewise.
30127 (grub_lua_file_getline): Likewise.
30128 (grub_lua_file_getsize): Likewise.
30129 (grub_lua_file_getpos): Likewise.
30130 (grub_lua_file_eof): Likewise.
30131 (grub_lua_file_exist): Likewise.
30132 (grub_lua_add_menu): Likewise.
30133
30134 * script/lua/grub_lua.h (isupper): New inline function.
30135 (islower): Likewise.
30136 (ispunct): Likewise.
30137 (isxdigit): Likewise.
30138 (strcspn): Change to normal function.
30139 (strpbkr): New function declaration.
30140 (memchr): Likewise.
30141
30142 * script/lua/grub_main.c (scan_str): New function.
30143 (strcspn): Likewise.
30144 (strpbrk): Likewise.
30145 (memchr): Likewise.
30146
30147 * script/lua/linit.c (lualibs): Enable the string library.
30148
30149 * util/osdetect.lua: New file.
30150
2da92295 301512009-07-04 Robert Millan <rmh.grub@aybabtu.com>
30152
30153 * include/grub/i386/linux.h (struct linux_kernel_params): Add
30154 `capabilities' member.
30155
b2582ec9 301562009-07-02 Pavel Roskin <proski@gnu.org>
30157
30158 * genparttoollist.sh: Add missing newline at the end.
30159
32622956 301602009-07-01 Pavel Roskin <proski@gnu.org>
30161
87a7339e 30162 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
30163
d23af54e 30164 * util/hostdisk.c (open_device): Remove `const' from
30165 `sysctl_size', as sysctlbyname() can change it (in this case it
30166 doesn't actually happen).
30167
c94b18a9 30168 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
30169 using signed long int constants.
30170
c6cd3ef0 30171 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
30172 constant to avoid a warning on FreeBSD.
30173
0df63420 30174 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
30175 where it's needed.
30176
999577f1 30177 * Makefile.in: Install include/grub/machine symlink.
30178
6f41557f 30179 * Makefile.in: When installing symlinks, use "cp -fR", which
30180 works on FreeBSD and MacOSX.
30181 From Yves Blusseau <cl7m42e02@sneakemail.com>
30182
c8d22988 30183 * kern/dl.c (grub_dl_resolve_symbol): Make static.
30184 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
30185
1b96e952 30186 * util/misc.c: Move grub_reboot() and grub_halt() ...
30187 * util/grub-emu.c: ... here. Make main_env static.
30188 * include/grub/util/misc.h: Remove main_env.
30189
2ef0084d 30190 * kern/mm.c: Use correct format to print size_t.
30191
32622956 30192 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
30193 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
30194 * kern/powerpc/dl.c: Likewise.
30195 * kern/sparc64/dl.c: Likewise.
30196 * kern/x86_64/dl.c: Likewise.
30197
3f7f0cd0 301982009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30199
30200 Fix grub-emu build on sparc64-ieee1275.
30201
75421ca9 30202 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 30203 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
30204
211d06b5 302052009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30206
30207 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
30208 (grub_reboot, grub_halt): New functions.
30209
30210 * util/i386/pc/misc.c: Delete. Update all users.
30211 * util/sparc64/ieee1275/misc.c: Likewise.
30212 * util/powerpc/ieee1275/misc.c: Likewise.
30213
aaf53e3c 302142009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30215
30216 * conf/i386.rmk (setjmp_mod_SOURCES)
30217 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
30218 * conf/common.rmk (setjmp_mod_SOURCES)
30219 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
30220 to use $(target_cpu).
30221 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
30222 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
30223 * conf/powerpc-ieee1275.rmk: Likewise.
30224 * conf/sparc64-ieee1275.rmk: Likewise.
30225
30226 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
30227 $(target_cpu) for kern/$(target_cpu)/dl.c.
30228 * conf/i386-efi.rmk: Likewise.
30229 * conf/i386-ieee1275.rmk: Likewise.
30230 * conf/x86_64-efi.rmk: Likewise.
30231 * conf/i386-coreboot.rmk: Likewise.
30232 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
30233 $(target_cpu) for kern/$(target_cpu)/dl.c and for
30234 kern/$(target_cpu)/cache.S.
30235 * conf/sparc64-ieee1275.rmk: Likewise.
30236
a337130b 302372009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30238
30239 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
30240 type to `grub_uint8_t', and adjust `padding9' accordingly.
30241
c6fe4d53 302422009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30243
b09db61d 30244 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
30245
c6fe4d53 30246 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
30247 assembly in final jump, using register constraints.
30248
b09db61d 30249 (grub_linux_boot): For text mode, initialize `have_vga' using
30250 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
30251
30252 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
30253 right before the final jump.
30254
30255 Set `video_mode' to 0x3.
30256
30257 Document initialization of `video_page', `video_mode' and
30258 `video_ega_bx'.
30259
28333ad0 302602009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30261
30262 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
30263 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 30264 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 30265
02164e1b 302662009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30267
30268 Fix build on Debian / sparc.
30269
30270 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30271
18b6c557 302722009-06-28 Pavel Roskin <proski@gnu.org>
30273
85f2aab6 30274 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30275 fix a warning.
30276
18b6c557 30277 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30278
ad760f81 302792009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30280
30281 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30282 `err'.
30283
87a4623b 302842009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30285
30286 Revert r2338.
30287
30288 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30289 file can't be opened. grub_file_open() is already supposed to set
75421ca9 30290 grub_errno / grub_errmsg appropriately.
87a4623b 30291 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30292
8231fb77 302932009-06-27 Pavel Roskin <proski@gnu.org>
302942009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30295
30296 * include/grub/dl.h: Include grub/elf.h.
30297 (struct grub_dl): Add symtab field.
30298 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30299 GRUB_MODULES_MACHINE_READONLY.
30300 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30301 of the header for read-only modules.
30302 (grub_dl_unload): Free mod->symtab for read-only modules.
30303 * kern/i386/dl.c: Use mod->symtab.
30304 * kern/powerpc/dl.c: Likewise.
30305 * kern/sparc64/dl.c: Likewise.
30306 * kern/x86_64/dl.c: Likewise.
30307
30308 * conf/i386-qemu.rmk: New file.
30309 * kern/i386/qemu/startup.S: Likewise.
30310 * kern/i386/qemu/mmap.c: Likewise.
30311 * boot/i386/qemu/boot.S: Likewise.
30312 * include/grub/i386/qemu/time.h: Likewise.
30313 * include/grub/i386/qemu/serial.h: Likewise.
30314 * include/grub/i386/qemu/kernel.h: Likewise.
30315 * include/grub/i386/qemu/console.h: Likewise.
30316 * include/grub/i386/qemu/boot.h: Likewise.
30317 * include/grub/i386/qemu/init.h: Likewise.
30318 * include/grub/i386/qemu/machine.h: Likewise.
30319 * include/grub/i386/qemu/loader.h: Likewise.
30320 * include/grub/i386/qemu/memory.h: Likewise.
30321
30322 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30323 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30324 [qemu] (pkglib_IMAGES): Add `boot.img'.
30325 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30326 [qemu] (boot_img_FORMAT): New variables.
30327 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30328 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30329 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30330 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30331 [qemu] (kernel_img_FORMAT): New variables.
30332
30333 * configure.ac: Recognise `i386-qemu'.
30334
30335 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30336 (for no compression).
30337 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30338 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30339 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30340 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30341 ifdefs).
30342
97fe384e 303432009-06-27 Pavel Roskin <proski@gnu.org>
30344
30345 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30346 read.
30347 * efiemu/prepare32.c: Likewise.
30348 * efiemu/prepare64.c: Likewise.
30349
c402ab17 303502009-06-26 Pavel Roskin <proski@gnu.org>
30351
30352 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30353 * include/grub/elf.h: Define symbols without "32" or "64" based
30354 on GRUB_TARGET_WORDSIZE.
30355 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30356 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30357 ELF definitions.
30358 * efiemu/loadcore64.c: Likewise.
30359 * loader/i386/bsd32.c: Likewise.
30360 * loader/i386/bsd64.c: Likewise.
30361 * kern/dl.c: Remove own ELF definitions.
30362 * util/i386/efi/grub-mkimage.c: Likewise.
30363
9bbdfd4d 303642009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30365
30366 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30367 segment 0x0 unconditionally, because the reference generated by
30368 GAS is an absolute address.
30369
a42ce6e9 303702009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30371
30372 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30373 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30374
c952cf92 303752009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30376
30377 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30378 indexes. Check for -f explicitly.
cc3752ad 30379 (search_file): Improve error message.
30380 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 30381
132a0a59 303822009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30383
30384 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30385 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30386
387a140c 303872009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30388
30389 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30390 * conf/i386-ieee1275.rmk: Likewise.
30391 * conf/i386-coreboot.rmk: Likewise.
30392
30393 * kern/i386/pc/startup.S (grub_stop): Remove function.
30394 * kern/i386/ieee1275/startup.S: Likewise.
30395 * kern/i386/coreboot/startup.S: Likewise.
30396 * kern/i386/misc.S (grub_stop): New function.
30397
41da9665 303982009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30399
30400 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30401 * kern/i386/realmode.S (real_to_prot): ... to here.
30402
bf337234 304032009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30404
30405 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30406 with `kernel.img'.
30407 (kernel_elf_SOURCES): Rename to ...
30408 (kernel_img_SOURCES): ... this.
30409 (kernel_elf_HEADERS): Rename to ...
30410 (kernel_img_HEADERS): ... this. Update all users.
30411 (kernel_elf_ASFLAGS): Rename to ...
30412 (kernel_img_ASFLAGS): ... this.
30413 (kernel_elf_CFLAGS): Rename to ...
30414 (kernel_img_CFLAGS): ... this.
30415 (kernel_elf_LDFLAGS): Rename to ...
30416 (kernel_img_LDFLAGS): ... this.
30417 * conf/i386-coreboot.rmk: Likewise.
30418 * conf/powerpc-ieee1275.rmk: Likewise.
30419
30420 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30421 with "kernel.img".
30422
f52196ff 304232009-06-21 Pavel Roskin <proski@gnu.org>
30424
c3cee413 30425 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30426 to match nested functions.
30427 * loader/sparc64/ieee1275/linux.c: Likewise.
30428
f52196ff 30429 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30430
58750afc 304312009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30432
30433 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30434 all i386 platforms.
30435
15355c7d 304362009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30437
30438 Fix asm file handling on ELF, and remove workarounds.
30439
30440 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 30441 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 30442 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30443 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30444
3f3ec72b 304452009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30446
30447 Load BSD ELF modules
30448
30449 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30450 and loader/i386/bsd64.c
30451 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30452 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30453 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30454 (grub_freebsd_load_elfmodule32): New declaration
30455 (grub_freebsd_load_elfmoduleobj64): Likewise
30456 (grub_freebsd_load_elf_meta32): Likewise
30457 (grub_freebsd_load_elf_meta64): Likewise
30458 (grub_freebsd_add_meta): Likewise
30459 (grub_freebsd_add_meta_module): Likewise
30460 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30461 (grub_freebsd_add_meta_module): Likewise and move module-specific
30462 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30463 (grub_cmd_freebsd): Add elf-kernel specific parts
30464 based on grub_freebsd_add_meta_module
30465 (grub_cmd_freebsd_module): Add type parsing moved from
30466 grub_freebsd_add_meta_module
30467 (grub_cmd_freebsd_module_elf): New function
30468 (cmd_freebsd_module_elf): New variable
30469 (GRUB_MOD_INIT): Register freebsd_module_elf
30470 * loader/i386/bsd32.c: New file
30471 * loader/i386/bsd64.c: Likewise
30472 * loader/i386/bsdXX.c: Likewise
30473 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30474 (grub_elf64_load): Likewise
30475 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30476 All users updated
30477 (grub_elf64_load_hook_t): Likewise
30478
0db15301 304792009-06-21 Colin Watson <cjwatson@ubuntu.com>
30480
30481 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30482 variable.
30483 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30484 don't write a menu entry for recovery mode.
30485
546796c1 304862009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30487
30488 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30489 after it's no longer needed.
30490
cd7310d5 304912009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30492
30493 * include/grub/i386/loader.h (grub_linux_prot_size)
30494 (grub_linux_tmp_addr, grub_linux_real_addr)
30495 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30496 GRUB_MACHINE_PCBIOS.
30497 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30498 common grub_util_info() call to ...
30499 (generate_image): ... here.
30500 Fix use of uninitialized memory, comparison of signed with
30501 unsigned integers and memory leak.
30502 Remove bogus module address message.
30503
ab32d3b5 305042009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30505
30506 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30507 grub_raid_register
30508 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30509
024ef597 305102009-06-19 Pavel Roskin <proski@gnu.org>
30511
30512 * configure.ac: Remove stray AC_MSG_CHECKING.
30513
3ac72b51 305142009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30515
30516 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 30517
e14cd814 305182009-06-18 Pavel Roskin <proski@gnu.org>
30519
30520 * conf/common.rmk: Add fs_file.mod.
30521 * disk/fs_file.c: New file.
30522 * include/grub/disk.h (enum grub_disk_dev_id): Add
30523 GRUB_DISK_DEVICE_FILE_ID.
30524
26586d98 305252009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30526
30527 Fix build with Apple's toolchain. Part 2
30528
30529 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30530 a fake start
30531
26de2bcd 305322009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30533
30534 Fix build with Apple's toolchain. Part 1
30535
30536 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30537 for long calls
30538 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 30539 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 30540 Apple's toolchain
30541
09b3490b 305422009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30543
30544 Fix warnings
30545
30546 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30547 (decomp_block): initialize ch
30548 use grub_memcpy instead of memcpy
30549
c22a006a 305502009-06-17 Pavel Roskin <proski@gnu.org>
30551
d3638678 30552 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30553 version, use declarations needed to use vga_text as the startup
30554 console.
30555
c22a006a 30556 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30557 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30558 the kernel.
30559 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30560 and grub_at_keyboard_fini(), it's done on module load and
30561 unload.
30562
05b129e0 305632009-06-17 Felix Zielcke <fzielcke@z-51.de>
30564
30565 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30566 file can't be found.
30567 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30568
cf24ed9e 305692009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30570
30571 Fix newline handling
30572
30573 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 30574 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 30575 (grub_script_yylex): don't segfault on unterminated script
30576 newline terminates command and variable
30577
74aa8e4b 305782009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30579
30580 avoid double grub_adjust_range call. Bug reported by David Simner
30581
30582 * kern/disk.c (grub_disk_write): change to raw disk access before
30583 calling disk_read
30584
1bd265f3 305852009-06-17 Colin Watson <cjwatson@ubuntu.com>
30586
30587 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30588 spaces, for the benefit of help2man.
30589 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30590
a2d08c06 305912009-06-16 Pavel Roskin <proski@gnu.org>
30592
30593 * kern/i386/halt.c: Include grub/machine/init.h.
30594 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30595
b97bcb19 305962009-06-16 Felix Zielcke <fzielcke@z-51.de>
30597
30598 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30599 drivemap menuentry.
30600
0644f96c 306012009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30602
30603 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30604 `echo' command.
30605
3ef17a2e 306062009-06-16 Pavel Roskin <proski@gnu.org>
30607
30608 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30609 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30610 save %dx, we only need %dl and we never change it.
30611 * boot/i386/pc/cdboot.S: Don't set the root drive.
30612 * boot/i386/pc/pxeboot.S: Likewise.
30613 * include/grub/i386/pc/boot.h: Remove
30614 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30615 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30616 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30617 * kern/i386/pc/init.c (make_install_device): Remove references
30618 to grub_root_drive.
30619 * kern/i386/pc/startup.S: Likewise.
30620 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30621
693fe637 306222009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30623
30624 xnu_uuid command
30625
30626 * commands/xnu_uuid.c: new file
30627 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30628 (xnu_uuid_mod_SOURCES): new variable
30629 (xnu_uuid_mod_CFLAGS): likewise
30630 (xnu_uuid_mod_LDFLAGS): likewise
30631 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30632 * conf/i386-ieee1275.rmk: likewise
30633 * conf/i386-pc.rmk: likewise
30634 * conf/powerpc-ieee1275.rmk: likewise
30635 * conf/sparc64-ieee1275.rmk: likewise
30636 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30637
c9da87d0 306382009-06-16 Pavel Roskin <proski@gnu.org>
30639
30640 * configure.ac: Avoid '==' in test command, it's not portable.
30641
9c6f4596 306422009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30643
30644 Probe command
30645
30646 * commands/probe.c: new file
30647 * conf/common.rmk (pkglib_MODULES): add probe.mod
30648 (probe_mod_SOURCES): new variable
30649 (probe_mod_CFLAGS): likewise
30650 (probe_mod_LDFLAGS): likewise
30651 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30652 * conf/i386-ieee1275.rmk: likewise
30653 * conf/i386-pc.rmk: likewise
30654 * conf/powerpc-ieee1275.rmk: likewise
30655 * conf/sparc64-ieee1275.rmk: likewise
30656
70b7f9fd 306572009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30658
30659 Fix handling of string like \"hello\" and "a
30660 b"
30661
30662 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30663 (grub_script_yylex): fix parsing of quoting, escaping and newline
30664
71c79a6b 306652009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30666
dd74360c 30667 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 30668 handling
dd74360c 30669
0644f96c 306702009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 30671
30672 * util/grub-mkconfig.in: Fix parsing of --output option.
30673
e40893c3 306742009-06-12 Pavel Roskin <proski@gnu.org>
30675
30676 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30677 genmk.rb don't need to be generated or installed.
30678
3a1acfe2 306792009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30680
30681 * commands/i386/pc/drivemap_int13h.S: add more comments
30682
3a4575d4 306832009-06-11 Pavel Roskin <proski@gnu.org>
30684
0658e928 30685 * Makefile.in (uninstall): Uninstall manuals.
30686
ca0388f0 30687 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30688 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30689 and update-grub_lib in two places.
30690 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30691
e3b27c39 30692 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30693 a compiler warning.
30694
3a4575d4 30695 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30696 `entry_lo' to fix variable shadowing.
30697
af1f4f55 306982009-06-11 Christian Franke <franke@computer.org>
30699
30700 * kern/misc.c (__enable_execute_stack): Add missing return type
30701 to prevent gcc warning.
30702
5225e649 307032009-06-11 Felix Zielcke <fzielcke@z-51.de>
30704
30705 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30706
7d83bd47 307072009-06-11 Pavel Roskin <proski@gnu.org>
30708
c1cb63ba 30709 * Makefile.in: Don't rely on any scripts being executable.
30710 Always use $(SHELL) to run shell scripts.
30711
7d83bd47 30712 * configure.ac: Always define ___main if using -nostdlib. This
30713 fixes tests on Cygwin.
30714
948f48e7 307152009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30716
30717 UDF fix
30718
7d83bd47 30719 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 30720 is in bytes and not in blocks
7d83bd47 30721
8ada9bc1 307222009-06-11 Pavel Roskin <proski@gnu.org>
30723
30724 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30725 warning.
30726
25ad2323 307272009-06-11 Felix Zielcke <fzielcke@z-51.de>
30728
30729 * util/grub.d/30_os-prober.in: Fix a comment. Source
30730 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30731 to set the root device. Place drivemap command in the generated
30732 chain entry.
30733
e65acb0c 307342009-06-11 Pavel Roskin <proski@gnu.org>
30735
30736 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30737 have long been resolved.
30738
f285fe2d 307392009-06-11 Colin Watson <cjwatson@ubuntu.com>
30740
bd47b0b5 30741 * util/grub.d/10_linux.in: Capitalise "Linux".
30742
f285fe2d 30743 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30744
a0c62e4e 307452009-06-11 Pavel Roskin <proski@gnu.org>
30746
b6783cb2 30747 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30748 fix a gcc warning and ensure that the function won't ever exit.
30749
dde032e8 30750 * kern/i386/ieee1275/init.c: Add missing prototype for
30751 grub_stop_floppy().
30752
22cd079d 30753 * loader/ieee1275/multiboot2.c [__i386__]: Include
30754 grub/cpu/multiboot.h.
30755
a0c62e4e 30756 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30757 casts to short - they are not portable and cause warnings. Fix
30758 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30759
63963d17 307602009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30761
30762 Drivemap fixes
30763
30764 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30765 new function
30766 (grub_get_root_biosnumber_saved): new variable
30767 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30768 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 30769 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 30770 %dx after the call if necessary
30771 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30772 (boot_mod_SOURCES): remove
30773 (boot_mod_CFLAGS): remove
30774 (boot_mod_LDFLAGS): remove
30775 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30776 (boot_mod_SOURCES): new variable
30777 (boot_mod_CFLAGS): likewise
30778 (boot_mod_LDFLAGS): likewise
30779 * conf/i386-efi.rmk: likewise
30780 * conf/i386-ieee1275.rmk: likewise
30781 * conf/i386-pc.rmk: likewise
30782 * conf/powerpc-ieee1275.rmk: likewise
30783 * conf/sparc64-ieee1275.rmk: likewise
30784 * conf/x86_64-efi.rmk: likewise
30785 * include/grub/i386/pc/biosnum.h: new file
30786 * lib/i386/pc/biosnum.c: likewise
30787 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30788 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30789 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 30790
33abf7ae 307912009-06-10 Pavel Roskin <proski@gnu.org>
30792
5ac35b35 30793 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30794 Use separate variables. Read only the file size at the end, but
30795 not the checksum that we don't use.
30796
5c5215d5 30797 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30798 Adjust all callers.
30799
27d5fef7 30800 * kern/ieee1275/openfw.c: Remove libc includes.
30801 * kern/ieee1275/cmain.c: Likewise.
30802 * include/grub/ieee1275/ieee1275.h: Likewise.
30803
33abf7ae 30804 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30805 compiler warnings.
30806
19d50c2b 308072009-06-10 Felix Zielcke <fzielcke@z-51.de>
30808
30809 * Makefile.in: Remove all trailing whitespace.
30810 * conf/i386-pc.rmk: Likewise.
30811 * conf/powerpc-ieee1275.rmk: Likewise.
30812 * conf/sparc64-ieee1275.rmk: Likewise.
30813 * docs/grub.texi: Likewise.
30814 * docs/texinfo.tex: Likewise.
30815 * disk/fs_uuid.c: Likewise.
30816 * disk/lvm.c: Likewise.
30817 * disk/scsi.c: Likewise.
30818 * disk/ata.c: Likewise.
30819 * disk/ieee1275/ofdisk.c: Likewise.
30820 * disk/i386/pc/biosdisk.c: Likewise.
30821 * disk/host.c: Likewise.
30822 * disk/raid.c: Likewise.
30823 * disk/efi/efidisk.c: Likewise.
30824 * disk/usbms.c: Likewise.
30825 * disk/memdisk.c: Likewise.
30826 * disk/loopback.c: Likewise.
30827 * kern/powerpc/dl.c: Likewise.
30828 * kern/device.c: Likewise.
30829 * kern/dl.c: Likewise.
30830 * kern/sparc64/dl.c: Likewise.
30831 * kern/ieee1275/ieee1275.c: Likewise.
30832 * kern/term.c: Likewise.
30833 * kern/fs.c: Likewise.
30834 * kern/i386/dl.c: Likewise.
30835 * kern/i386/pc/startup.S: Likewise.
30836 * kern/i386/pc/init.c: Likewise.
30837 * kern/i386/pc/mmap.c: Likewise.
30838 * kern/i386/pc/lzo1x.S: Likewise.
30839 * kern/i386/ieee1275/init.c: Likewise.
30840 * kern/i386/realmode.S: Likewise.
30841 * kern/i386/tsc.c: Likewise.
30842 * kern/partition.c: Likewise.
30843 * kern/corecmd.c: Likewise.
30844 * kern/file.c: Likewise.
30845 * kern/efi/efi.c: Likewise.
30846 * kern/efi/init.c: Likewise.
30847 * kern/efi/mm.c: Likewise.
30848 * kern/main.c: Likewise.
30849 * kern/err.c: Likewise.
30850 * kern/env.c: Likewise.
30851 * kern/disk.c: Likewise.
30852 * kern/generic/millisleep.c: Likewise.
30853 * kern/generic/rtc_get_time_ms.c: Likewise.
30854 * kern/misc.c: Likewise.
30855 * kern/parser.c: Likewise.
30856 * genmk.rb: Likewise.
30857 * configure.ac: Likewise.
30858 * boot/i386/pc/diskboot.S: Likewise.
30859 * boot/i386/pc/pxeboot.S: Likewise.
30860 * boot/i386/pc/boot.S: Likewise.
30861 * boot/i386/pc/lnxboot.S: Likewise.
30862 * boot/i386/pc/cdboot.S: Likewise.
30863 * parttool/pcpart.c: Likewise.
30864 * video/readers/tga.c: Likewise.
30865 * video/video.c: Likewise.
30866 * video/bitmap.c: Likewise.
30867 * lib/envblk.c: Likewise.
30868 * lib/i386/setjmp.S: Likewise.
30869 * fs/xfs.c: Likewise.
30870 * fs/afs.c: Likewise.
30871 * fs/fat.c: Likewise.
30872 * fs/ntfs.c: Likewise.
30873 * fs/udf.c: Likewise.
30874 * fs/affs.c: Likewise.
30875 * fs/iso9660.c: Likewise.
30876 * fs/hfs.c: Likewise.
30877 * fs/fshelp.c: Likewise.
30878 * fs/ext2.c: Likewise.
30879 * fs/jfs.c: Likewise.
30880 * fs/reiserfs.c: Likewise.
30881 * fs/hfsplus.c: Likewise.
30882 * fs/minix.c: Likewise.
30883 * fs/cpio.c: Likewise.
30884 * fs/sfs.c: Likewise.
30885 * fs/ufs.c: Likewise.
30886 * efiemu/prepare.c: Likewise.
30887 * efiemu/loadcore_common.c: Likewise.
30888 * efiemu/runtime/efiemu.sh: Likewise.
30889 * efiemu/runtime/efiemu.S: Likewise.
30890 * efiemu/runtime/efiemu.c: Likewise.
30891 * efiemu/pnvram.c: Likewise.
30892 * efiemu/main.c: Likewise.
30893 * efiemu/i386/pc/cfgtables.c: Likewise.
30894 * efiemu/i386/loadcore64.c: Likewise.
30895 * efiemu/i386/loadcore32.c: Likewise.
30896 * efiemu/loadcore.c: Likewise.
30897 * efiemu/symbols.c: Likewise.
30898 * efiemu/mm.c: Likewise.
30899 * include/grub/autoefi.h: Likewise.
30900 * include/grub/datetime.h: Likewise.
30901 * include/grub/term.h: Likewise.
30902 * include/grub/hfs.h: Likewise.
30903 * include/grub/lvm.h: Likewise.
30904 * include/grub/i386/tsc.h: Likewise.
30905 * include/grub/i386/linux.h: Likewise.
30906 * include/grub/i386/xnu.h: Likewise.
30907 * include/grub/i386/efiemu.h: Likewise.
30908 * include/grub/i386/pc/biosdisk.h: Likewise.
30909 * include/grub/i386/pc/memory.h: Likewise.
30910 * include/grub/i386/pc/vbe.h: Likewise.
30911 * include/grub/parttool.h: Likewise.
30912 * include/grub/video.h: Likewise.
30913 * include/grub/memory.h: Likewise.
30914 * include/grub/fs.h: Likewise.
30915 * include/grub/partition.h: Likewise.
30916 * include/grub/xnu.h: Likewise.
30917 * include/grub/efi/api.h: Likewise.
30918 * include/grub/efi/pe32.h: Likewise.
30919 * include/grub/efi/memory.h: Likewise.
30920 * include/grub/multiboot.h: Likewise.
30921 * include/grub/usbdesc.h: Likewise.
30922 * include/grub/multiboot2.h: Likewise.
30923 * include/grub/acpi.h: Likewise.
30924 * include/grub/efiemu/efiemu.h: Likewise.
30925 * include/grub/disk.h: Likewise.
30926 * include/grub/ieee1275/ieee1275.h: Likewise.
30927 * include/grub/net.h: Likewise.
30928 * include/grub/machoload.h: Likewise.
30929 * include/grub/macho.h: Likewise.
30930 * include/multiboot.h: Likewise.
30931 * genmoddep.awk: Likewise.
30932 * normal/main.c: Likewise.
30933 * normal/menu_entry.c: Likewise.
30934 * normal/menu_viewer.c: Likewise.
30935 * normal/completion.c: Likewise.
30936 * normal/cmdline.c: Likewise.
30937 * normal/misc.c: Likewise.
30938 * normal/datetime.c: Likewise.
30939 * bus/usb/usbtrans.c: Likewise.
30940 * bus/usb/ohci.c: Likewise.
30941 * bus/usb/uhci.c: Likewise.
30942 * bus/usb/usb.c: Likewise.
30943 * mmap/efi/mmap.c: Likewise.
30944 * mmap/i386/pc/mmap_helper.S: Likewise.
30945 * mmap/i386/pc/mmap.c: Likewise.
30946 * mmap/i386/mmap.c: Likewise.
30947 * mmap/i386/uppermem.c: Likewise.
30948 * mmap/mmap.c: Likewise.
30949 * commands/acpi.c: Likewise.
30950 * commands/echo.c: Likewise.
30951 * commands/blocklist.c: Likewise.
30952 * commands/loadenv.c: Likewise.
30953 * commands/usbtest.c: Likewise.
30954 * commands/boot.c: Likewise.
30955 * commands/parttool.c: Likewise.
30956 * commands/search.c: Likewise.
30957 * commands/cat.c: Likewise.
30958 * commands/i386/pc/play.c: Likewise.
30959 * commands/i386/pc/drivemap.c: Likewise.
30960 * commands/i386/pc/vbeinfo.c: Likewise.
30961 * commands/i386/pc/acpi.c: Likewise.
30962 * commands/i386/pc/vbetest.c: Likewise.
30963 * commands/ls.c: Likewise.
30964 * commands/cmp.c: Likewise.
30965 * commands/test.c: Likewise.
30966 * commands/efi/acpi.c: Likewise.
30967 * commands/gptsync.c: Likewise.
30968 * commands/help.c: Likewise.
30969 * partmap/amiga.c: Likewise.
30970 * partmap/apple.c: Likewise.
30971 * partmap/acorn.c: Likewise.
30972 * partmap/pc.c: Likewise.
30973 * partmap/sun.c: Likewise.
30974 * partmap/gpt.c: Likewise.
30975 * script/sh/lexer.c: Likewise.
30976 * script/sh/function.c: Likewise.
30977 * font/font.c: Likewise.
30978 * font/font_cmd.c: Likewise.
30979 * loader/powerpc/ieee1275/linux.c: Likewise.
30980 * loader/efi/chainloader.c: Likewise.
30981 * loader/multiboot_loader.c: Likewise.
30982 * loader/macho.c: Likewise.
30983 * loader/i386/multiboot.c: Likewise.
30984 * loader/i386/linux.c: Likewise.
30985 * loader/i386/pc/linux.c: Likewise.
30986 * loader/i386/pc/multiboot2.c: Likewise.
30987 * loader/i386/pc/chainloader.c: Likewise.
30988 * loader/i386/pc/xnu.c: Likewise.
30989 * loader/i386/bsd_trampoline.S: Likewise.
30990 * loader/i386/efi/linux.c: Likewise.
30991 * loader/i386/multiboot_elfxx.c: Likewise.
30992 * loader/i386/bsd_helper.S: Likewise.
30993 * loader/i386/bsd.c: Likewise.
30994 * loader/i386/linux_trampoline.S: Likewise.
30995 * loader/i386/xnu_helper.S: Likewise.
30996 * loader/i386/xnu.c: Likewise.
30997 * loader/i386/bsd_pagetable.c: Likewise.
30998 * loader/i386/multiboot_helper.S: Likewise.
30999 * loader/xnu.c: Likewise.
31000 * loader/xnu_resume.c: Likewise.
31001 * io/gzio.c: Likewise.
31002 * term/efi/console.c: Likewise.
31003 * term/terminfo.c: Likewise.
31004 * term/ieee1275/ofconsole.c: Likewise.
31005 * term/i386/pc/serial.c: Likewise.
31006 * term/i386/pc/vesafb.c: Likewise.
31007 * term/i386/pc/vga.c: Likewise.
31008 * term/usb_keyboard.c: Likewise.
31009 * term/gfxterm.c: Likewise.
31010 * aclocal.m4: Likewise.
31011 * util/lvm.c: Likewise.
31012 * util/grub.d/30_os-prober.in: Likewise.
31013 * util/grub.d/10_hurd.in: Likewise.
31014 * util/console.c: Likewise.
31015 * util/grub-macho2img.c: Likewise.
31016 * util/grub-probe.c: Likewise.
31017 * util/hostfs.c: Likewise.
31018 * util/i386/pc/grub-mkimage.c: Likewise.
31019 * util/i386/pc/grub-setup.c: Likewise.
31020 * util/i386/efi/grub-mkimage.c: Likewise.
31021 * util/grub-mkconfig.in: Likewise.
31022 * util/raid.c: Likewise.
31023 * util/resolve.c: Likewise.
31024 * util/grub-mkdevicemap.c: Likewise.
31025 * util/grub-emu.c: Likewise.
31026 * util/getroot.c: Likewise.
31027 * util/hostdisk.c: Likewise.
31028 * util/usb.c: Likewise.
31029 * util/grub-editenv.c: Likewise.
31030 * util/misc.c: Likewise.
31031
d2d49665 310322009-06-10 Felix Zielcke <fzielcke@z-51.de>
31033
31034 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
31035 `genparttoollist.sh'.
31036 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
31037 Add `*.sh' to the list find searches for and change `mdate.sh'
31038 to `mdate-sh'.
31039
fe052e37 310402009-06-10 Pavel Roskin <proski@gnu.org>
31041
2763ac18 31042 * include/grub/multiboot2.h: Provide compatibility defines for
31043 multiboot2.h.
31044 * include/multiboot2.h: Include stdint.h only if needed, using
31045 angle brackets.
31046 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
31047 grub/multiboot2.h.
31048 * loader/ieee1275/multiboot2.c: Likewise.
31049 * loader/multiboot2.c: Likewise.
31050 * loader/multiboot_loader.c: Likewise.
31051
437e6adc 31052 * configure.ac: Use -nostdlib when probing for the target. It
31053 should not be required to have libc for the target.
31054
06a6836c 31055 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
31056 they fail without libc headers for the target.
31057 * include/grub/powerpc/libgcc.h: Use weak attribute for all
31058 exports.
31059 * include/grub/sparc64/libgcc.h: Likewise. Don't use
31060 preprocessor conditionals.
31061
fe052e37 31062 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
31063 build system doesn't need to be aware of the tar.c internals.
31064
afd22553 310652009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 31066
afd22553 31067 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 31068
6b787c4f 310692009-06-09 Robert Millan <rmh.grub@aybabtu.com>
31070
31071 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
31072 disk limit to 26 for IDE, Virtio, Xen and SCSI.
31073
310742009-06-09 Felix Zielcke <fzielcke@z-51.de>
31075
31076 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 31077 aren't available if ata.mod gets used.
6b787c4f 31078
473d1e45 310792009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 31080
473d1e45 31081 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 31082 initialising controller.
473d1e45 31083 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 31084
255a27d4 310852009-06-08 Felix Zielcke <fzielcke@z-51.de>
31086
31087 * util/i386/pc/grub-install.in: Add a parameter --disk-module
31088 to choose between ata and biosdisk module on i386-pc.
31089
473d1e45 310902009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 31091
d55842d8 31092 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
31093 Subclass and Programming Interface fields in terms of the 3 byte
31094 Class Code register.
31095 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31096
fa5db0b1 31097 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
31098 interface is OHCI. Add grub_dprintf for symmetry with
31099 bus/usb/uhci.c.
31100 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
31101 interface is UHCI. Add interf variable for programming
31102 interface. Print interface with class/subclass.
31103
c0947beb 31104 * bus/usb/ohci.c: Set interf with correct field.
31105
69da8877 31106 * bus/usb/uhci.c: Remove unneeded doubled lines.
31107 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
31108 Remove whitespace inside comment.
31109
9e172e30 311102009-06-08 Robert Millan <rmh.grub@aybabtu.com>
31111
31112 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
31113 as fallback an equivalent option without depth.
31114
de65ee2b 311152009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31116
31117 Not fail if unable to retrieve C/H/S on LBA disks
31118
473d1e45 31119 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 31120 if unable to retrieve C/H/S on LBA disks
31121
b57ea2c9 311222009-06-08 Pavel Roskin <proski@gnu.org>
31123
31124 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
31125 about aliasing.
31126
af361263 311272009-06-08 Felix Zielcke <fzielcke@z-51.de>
31128
31129 * Makefile.in (uninstall): Remove all $lib_DATA files.
31130
4c9ec6b3 311312009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31132
31133 Bugfix: install on partitionless device
31134
31135 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
31136 is a whole disk
31137
e76fc924 311382009-06-08 Felix Zielcke <fzielcke@z-51.de>
31139
31140 * Makefile.in (uninstall): Remove all $include_DATA files.
31141
ba5a0d05 311422009-06-08 Felix Zielcke <fzielcke@z-51.de>
31143
31144 * commands/true.c: New file. Implement the true and false commands.
31145 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
31146 (true_mod_SOURCES): New variable.
31147 (true_mod_CFLAGS): Likewise.
31148 (true_mod_LDFLAGS): Likewise.
31149
c8048e32 311502009-06-05 Colin D Bennett <colin@gibibit.com>
31151
31152 Optimized font character lookup using binary search instead of linear
31153 search. Fonts now are required to have the character index ordered by
31154 code point.
31155
31156 * font/font.c (load_font_index): Verify that fonts have ordered
31157 character indices.
31158 (find_glyph): Use binary search instead of linear search to find a
31159 character in a font.
31160
408305be 311612009-06-05 Michael Scherer <misc@mandriva.org>
31162
31163 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
31164 uses case sensitive btree.
31165 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
31166 only for case insensitive filesystems.
31167
8ee1e0d9 311682009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
31169
31170 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
31171 * conf/common.rmk (search_mod_CFLAGS): likewise
31172
a9966eb1 311732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31174
473d1e45 31175 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 31176 compensate a compiler bug
31177
9e7100fb 311782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31179
473d1e45 31180 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 31181 instead of '\b'
473d1e45 31182
ede21d71 311832009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31184
31185 Definitions for creating asm symbols with Apple's CC
31186
31187 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
31188 [APPLE_CC] (VARIABLE): likewise
31189
9dbf7653 311902009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31191
31192 Disable lnxboot.img when compiled
31193 with Apple's CC
31194
31195 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
31196 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
31197 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
31198 [! APPLE_CC] (CODE_LENG): skip
31199 [! APPLE_CC] (setup_sects): likewise
31200 [! APPLE_CC]: skip filling
473d1e45 31201
e93cdc3d 312022009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31203
31204 Address in trampolines based on 32-bit registers when compiled
31205 with Apple's CC
31206
473d1e45 31207 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 31208 for addresses
31209 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
31210
6c688477 312112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31212
31213 Avoid aliases when compiling with Apple's CC for PCBIOS machine
31214
31215 * kern/misc.c [APPLE_CC] (memcpy): new function
31216 [APPLE_CC] (memmove): likewise
31217 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 31218 (memcpy): define alias conditionally on !APPLE_CC
6c688477 31219 (memset): likewise
31220 (abort): likewise
31221 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
31222 APPLE_CC are defined
31223 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
31224 (grub_assert_fail): make prototype conditional
31225
e37ffc5c 312262009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31227
31228 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
31229
473d1e45 31230 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
31231 grub-macho2img
e37ffc5c 31232 (CLEANFILES): add grub-macho2img
31233 (grub_macho2img_SOURCES): new variable
31234 * kern/i386/pc/startup.S (bss_start): new variable
31235 (bss_end): likewise
31236 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
31237 * util/grub-macho2img.c: new file
31238
cf00df31 312392009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31240
31241 Use objconv when compiling with Apple's CC
31242
31243 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
31244 (efiemu64.o): likewise
31245 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
31246 when compiling with Apple's CC
31247 (efiemu64_s.o): likewise
31248 * configure.ac: check for objconv when compiling with Apple's CC
31249 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 31250
d119a20c 312512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31252
31253 Define segment as well as section when compiling with
31254 Apple's CC
31255
31256 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
31257 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
31258 (efiemu_convert_pointer): likewise
31259 (efiemu_set_virtual_address_map): likewise
31260 (efiemu_convert_pointer): likewise
31261 (efiemu_getcrc32): likewise
31262 (init_crc32_table): likewise
31263 (reflect): likewise
31264 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
31265 (GRUB_MOD_DEP): likewise
473d1e45 31266
c8600122 312672009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31268
31269 Allow a compilation without -mcmodel=large
31270
31271 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31272 when compiled without -mcmodel=large
473d1e45 31273 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 31274 without -mcmodel=large
473d1e45 31275 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 31276 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 31277
e8df1d4e 312782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31279
31280 Remove nested functions in efiemu core
31281
31282 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 31283
cc6c3ac1 312842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31285
31286 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31287
31288 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31289 temporary storage
473d1e45 31290 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31291 using Apple's CC
cc6c3ac1 31292 (grub_cpu_is_tsc_supported): likewise
31293 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 31294
3e325901 312952009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31296
31297 Absolute addressing through constant with Apple's cc
31298
31299 * kern/i386/pc/startup.S: Define necessary constants
31300 and address through it when using ABS with Apple's CC
31301 * boot/i386/pc/diskboot.S: likewise
31302 * boot/i386/pc/boot.S: likewise
31303 * boot/i386/pc/lnxboot.S: likewise
31304 * boot/i386/pc/cdboot.S: likewise
31305 * mmap/i386/pc/mmap_helper.S: likewise
31306 * commands/i386/pc/drivemap_int13h.S: likewise
31307
2b167a72 313082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31309
31310 Check if compiler is apple cc
31311
31312 * Makefile.in (ASFLAGS): new variable
31313 (TARGET_ASFLAGS): likewise
31314 (TARGET_MODULE_FORMAT): likewise
31315 (TARGET_APPLE_CC): likewise
31316 (OBJCONV): likewise
31317 (TARGET_IMG_CFLAGS): likewise
31318 (TARGET_CPPFLAGS): add includedir
31319 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31320 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31321 Check for linker script only if compiler isn't Apple's CC
31322 (TARGET_MODULE_FORMAT): set
31323 (TARGET_APPLE_CC): likewise
31324 (TARGET_ASFLAGS): likewise
31325 (ASFLAGS): likewise
31326 Check for objcopy only if compiler isn't Apple's CC
31327 Check for BSS symbol only if compiler isn't Apple's CC
31328 * genmk.rb: adapt nm options if we use Apple's utils
31329 * aclocal.m4 (grub_apple_cc): new test
31330 (grub_apple_target_cc): likewise
473d1e45 31331
fb14123e 313322009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31333
31334 Simplify sed expressions and improve awk
31335
31336 * Makefile.in (install-local): simplify sed expression
31337 * gencmdlist.sh: likewise
31338 * genmoddep.awk: avoid adding module as a dependency of itself
31339
5b889789 313402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31341
31342 Add missing start symbols
31343
31344 * boot/i386/pc/boot.S: add start
fb14123e 31345 * boot/i386/pc/pxeboot.S: likewise
473d1e45 31346
fd2bf2e3 313472009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31348
31349 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 31350
31351 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 31352 (relocate_addresses): consider both r_addend and value at offset
31353 (make_mods_section): zerofill modinfo and header
31354 (convert_elf): write prefix here
473d1e45 31355
5389763d 313562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31357
31358 Use .asciz instead of .string
31359
31360 * i386/pc/diskboot.S: use .asciz instead of .string
31361 * i386/pc/boot.S: likewise
31362 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31363 (GRUB_MOD_NAME): likewise
473d1e45 31364
3eb5ed4e 313652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31366
31367 gfxpayload support
31368
31369 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31370 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31371 (grub_video_setup): remove
31372 (grub_video_set_mode): new prototype
31373 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31374 (vid_mode): remove
31375 (linux_vesafb_res): compile only on PCBIOS
31376 (grub_linux_boot): support gfxpayload
31377 * loader/i386/pc/xnu.c (video_hook): new function
31378 (grub_xnu_set_video): support gfxpayload
31379 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31380 (DEFAULT_VIDEO_HEIGHT): likewise
31381 (DEFAULT_VIDEO_FLAGS): likewise
31382 (DEFAULT_VIDEO_MODE): new definition
31383 (video_hook): new function
31384 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 31385 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 31386 loading xnu
31387 * video/video.c (grub_video_setup): removed
473d1e45 31388 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 31389 grub_video_setup
31390
4b0e1143 313912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31392
31393 Avoid calling biosdisk in drivemap
31394
31395 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31396 (revparse_biosdisk): likewise
31397 (list_mappings): derive name from id directly
31398 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 31399
fda6cb98 314002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31401
31402 Script fixes
31403
31404 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31405 (grub_lexer_param): add tokenonhold
31406 (grub_script_create_cmdline): remove cmdline. All callers updated
31407 (grub_script_function_create): make functionname
31408 grub_script_arg. All callers updated
31409 (grub_script_execute_argument_to_string): new prototype
31410 * kern/parser.c (state_transitions): reorder
31411 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 31412 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 31413 make global
31414 (grub_script_execute_cmdline): use new format
31415 * script/sh/function.c (grub_script_function_create): make functionname
31416 grub_script_arg. All callers updated
473d1e45 31417 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 31418 (grub_script_yylex): remove
31419 (grub_script_yylex2): renamed to ...
31420 (grub_script_yylex): ...renamed
31421 parse the expressions like a${b}c
31422 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31423 (GRUB_PARSER_TOKEN_VAR): remove
31424 (GRUB_PARSER_TOKEN_NAME): likewise
31425 ("if"): declare as typeless
31426 ("while"): likewise
31427 ("function"): likewise
31428 ("else"): likewise
31429 ("then"): likewise
31430 ("fi"): likewise
31431 (text): remove
31432 (argument): likewise
31433 (script): accept empty scripts and make exit on error
31434 (arguments): use GRUB_PARSER_TOKEN_ARG
31435 (function): likewise
31436 (command): move error handling to script
31437 (menuentry): move grub_script_lexer_ref before
473d1e45 31438 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 31439 argument. All callers updated
31440
f4448a07 314412009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31442
31443 Prevent GRUB from probing floppies during boot.
31444
31445 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31446 * commands/search.c (options): Add --no-floppy.
31447 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31448 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31449 --no-floppy when searching for UUIDs.
31450
2bf5885a 314512009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31452
31453 Simplify the code duplication in commands/search.c.
31454
31455 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31456 (search_fs): ... this. Update all users.
31457
f6fd460a 314582009-06-03 Felix Zielcke <fzielcke@z-51.de>
31459
31460 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31461
cbb3c83e 314622009-05-28 Pavel Roskin <proski@gnu.org>
31463
57788cfd 31464 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31465 Remove the original symlink explicitly.
31466
cbb3c83e 31467 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31468 just one slash. That's how grub_fshelp_find_file() does it.
31469
cd0d5e30 314702009-05-26 Pavel Roskin <proski@gnu.org>
31471
f0f8bbe2 31472 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31473 to `str'.
31474
cd0d5e30 31475 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31476 possibly unused.
31477
8c2cab51 314782009-05-25 Christian Franke <franke@computer.org>
31479
31480 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31481 register.
31482 (grub_atapi_identify): Add wait after drive select.
31483 (grub_ata_identify): Do more strict status register check before
31484 calling grub_atapi_identify (). Suppress error message if status
31485 register is 0x00 after command failure. Add status register
31486 check after PIO read to avoid bogus identify due to stuck DRQ.
31487 Thanks to Pavel Roskin for testing.
31488 (grub_device_initialize): Remove unsafe status register check.
31489 Thanks to 'phcoder' for problem report and patch.
31490 Prevent sign extension in debug message.
31491
230c0ad6 314922009-05-23 Colin D Bennett <colin@gibibit.com>
31493
31494 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31495 definition file, and functions defined in `normal/menu.c' have had
31496 their prototypes moved to `include/grub/menu.h' for consistency.
31497
31498 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31499 from normal.h.
31500 (grub_menu_get_entry): Likewise.
31501 (grub_menu_get_timeout): Likewise.
31502 (grub_menu_set_timeout): Likewise.
31503 (grub_menu_execute_entry): Likewise.
31504 (grub_menu_execute_with_fallback): Likewise.
31505 (grub_menu_entry_run): Likewise.
31506
31507 * include/grub/normal.h: Re-ordered and grouped function
31508 prototypes by file that the function is defined in.
31509 (grub_menu_execute_callback): Removed; moved to menu.h.
31510 (grub_menu_get_entry): Likewise.
31511 (grub_menu_get_timeout): Likewise.
31512 (grub_menu_set_timeout): Likewise.
31513 (grub_menu_execute_entry): Likewise.
31514 (grub_menu_execute_with_fallback): Likewise.
31515 (grub_menu_entry_run): Likewise.
31516 (grub_menu_addentry): Renamed from this ...
31517 (grub_normal_add_menu_entry): ... to this.
31518
31519 * normal/main.c (grub_menu_addentry): Renamed from this ...
31520 (grub_normal_add_menu_entry): ... to this.
31521
31522 * script/sh/execute.c (grub_script_execute_menuentry): Update
31523 reference to renamed grub_menu_addentry function.
31524
861f03a5 315252009-05-23 Felix Zielcke <fzielcke@z-51.de>
31526
31527 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31528
96b1619a 315292009-05-22 Pavel Roskin <proski@gnu.org>
31530
bf6a5fb2 31531 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31532 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31533 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31534 compiling for the i386 targets, but not for the utilities.
31535
96b1619a 31536 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31537 to grub_uint8_t.
31538 (grub_root_drive): Likewise.
31539 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31540 remove alignment.
31541 (grub_root_drive): Change size to byte.
31542 (grub_start_addr): Remove.
31543 (grub_end_addr): Likewise.
31544 (grub_apm_bios_info): Likewise.
31545
b729776b 315462009-05-21 Felix Zielcke <fzielcke@z-51.de>
31547
31548 * normal/i386: Remove.
31549 * normal/powerpc: Likewise.
31550 * normal/sparc64: Likewise.
31551 * normal/x86_64: Likewise.
31552
0a15ce80 315532009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31554
31555 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 31556 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 31557 * loader/i386/xnu_helper.S: Likewise
d6da58e6 31558
33db9015 315592009-05-18 Colin D Bennett <colin@gibibit.com>
31560
d6da58e6 31561 Display error messages when parsing a Lua statement fails.
31562 Previously, executing a syntactically invalid statement like
31563 ")foo" or "bar;" would silently fail.
33db9015 31564
31565 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 31566 (grub_lua_parse_line): Improved reporting of Lua parser and
31567 execution errors.
33db9015 31568
46422c89 315692009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31570
31571 Remove -Werror which causes build to fail on some systems
31572
31573 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31574 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31575 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 31576
22f53a96 315772009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31578
31579 trampoline for linux on 64-bit platform
31580
18f547ad 31581 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31582 loader/i386/efi/linux_trampoline.S
31583 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 31584 declaration
d6da58e6 31585 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31586 here
22f53a96 31587 * loader/i386/linux_trampoline.S: moved here
d6da58e6 31588 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31589 trampoline
22f53a96 31590 (jumpvector): removed
31591 (grub_linux_trampoline_start): new declaration
31592 (grub_linux_trampoline_end): likewise
31593 (grub_linux_boot): use trampoline when on 64-bit platform
31594 * loader/i386/linux.c: likewise
31595
cb5a0f40 315962009-05-16 Pavel Roskin <proski@gnu.org>
31597
31598 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31599 const to avoid a warning.
31600 (grub_lua_setenv): Likewise.
31601 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31602 lmsg to fix a warning.
31603
334f2c28 316042009-05-16 Felix Zielcke <fzielcke@z-51.de>
31605
31606 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 31607 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31608 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31609 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31610 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31611 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31612 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31613 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 31614
59e5d3ec 316152009-05-16 Felix Zielcke <fzielcke@z-51.de>
31616
31617 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31618
9d87a1ba 316192009-05-16 Bean <bean123ch@gmail.com>
31620
31621 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31622 (lua_mod_SOURCES): New variable.
31623 (lua_mod_CFLAGS): Likewise.
31624 (lua_mod_LDFLAGS): Likewise.
31625
31626 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31627 (setjmp_mod_SOURCES): New variable.
31628 (setjmp_mod_CFLAGS): Likewise.
31629 (setjmp_LDFLAGS): Likewise.
31630
31631 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31632 (setjmp_mod_SOURCES): New variable.
31633 (setjmp_mod_CFLAGS): Likewise.
31634 (setjmp_LDFLAGS): Likewise.
31635
31636 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31637 (setjmp_mod_SOURCES): New variable.
31638 (setjmp_mod_CFLAGS): Likewise.
31639 (setjmp_LDFLAGS): Likewise.
31640
31641 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31642 (setjmp_mod_SOURCES): New variable.
31643 (setjmp_mod_CFLAGS): Likewise.
31644 (setjmp_LDFLAGS): Likewise.
31645
31646 * normal/i386/setjmp.S: Moved from here ...
31647 * lib/i386/setjmp.S: ... Moved here
31648 * normal/x86_64/setjmp.S: Moved from here ...
31649 * lib/x86_64/setjmp.S: ... Moved here
31650 * normal/powerpc/setjmp.S: Moved from here ...
31651 * lib/powerpc/setjmp.S: ... Moved here
31652 * normal/sparc64/setjmp.S: Moved from here ...
31653 * lib/sparc64/setjmp.S: ... Moved here
31654
31655 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31656 returns_twice in mingw.
31657
31658 * script/lua/grub_lib.c: New file.
31659 * script/lua/grub_lib.h: Likewise.
31660 * script/lua/grub_lua.h: Likewise.
31661 * script/lua/grub_main.c: Likewise.
31662 * script/lua/lapi.c: Likewise.
31663 * script/lua/lapi.h: Likewise.
31664 * script/lua/lauxlib.c: Likewise.
31665 * script/lua/lauxlib.h: Likewise.
31666 * script/lua/lbaselib.c: Likewise.
31667 * script/lua/lcode.c: Likewise.
31668 * script/lua/lcode.h: Likewise.
31669 * script/lua/ldblib.c: Likewise.
31670 * script/lua/ldebug.c: Likewise.
31671 * script/lua/ldebug.h: Likewise.
31672 * script/lua/ldo.c: Likewise.
31673 * script/lua/ldo.h: Likewise.
31674 * script/lua/ldump.c: Likewise.
31675 * script/lua/lfunc.c: Likewise.
31676 * script/lua/lfunc.h: Likewise.
31677 * script/lua/lgc.c: Likewise.
31678 * script/lua/lgc.h: Likewise.
31679 * script/lua/linit.c: Likewise.
31680 * script/lua/liolib.c: Likewise.
31681 * script/lua/llex.c: Likewise.
31682 * script/lua/llex.h: Likewise.
31683 * script/lua/llimits.h: Likewise.
31684 * script/lua/lmathlib.c: Likewise.
31685 * script/lua/lmem.c: Likewise.
31686 * script/lua/lmem.h: Likewise.
31687 * script/lua/loadlib.c: Likewise.
31688 * script/lua/lobject.c: Likewise.
31689 * script/lua/lobject.h: Likewise.
31690 * script/lua/lopcodes.c: Likewise.
31691 * script/lua/lopcodes.h: Likewise.
31692 * script/lua/loslib.c: Likewise.
31693 * script/lua/lparser.c: Likewise.
31694 * script/lua/lparser.h: Likewise.
31695 * script/lua/lstate.c: Likewise.
31696 * script/lua/lstate.h: Likewise.
31697 * script/lua/lstring.c: Likewise.
31698 * script/lua/lstring.h: Likewise.
31699 * script/lua/lstrlib.c: Likewise.
31700 * script/lua/ltable.c: Likewise.
31701 * script/lua/ltable.h: Likewise.
31702 * script/lua/ltablib.c: Likewise.
31703 * script/lua/ltm.c: Likewise.
31704 * script/lua/ltm.h: Likewise.
31705 * script/lua/lua.h: Likewise.
31706 * script/lua/luaconf.h: Likewise.
31707 * script/lua/lualib.h: Likewise.
31708 * script/lua/lundump.c: Likewise.
31709 * script/lua/lundump.h: Likewise.
31710 * script/lua/lvm.c: Likewise.
31711 * script/lua/lvm.h: Likewise.
31712 * script/lua/lzio.c: Likewise.
31713 * script/lua/lzio.h: Likewise.
31714
5e898c9d 317152009-05-16 Bean <bean123ch@gmail.com>
31716
31717 * include/grub/kernel.h (grub_module_header_types): Add type
31718 OBJ_TYPE_CONFIG.
31719
31720 * kern/main.c (grub_load_config): New function.
31721 (grub_main): Call grub_load_config to read boot config.
31722
31723 * grub-mkimage (generate_image): New parameter config_path.
31724 (options): New option --config.
31725 (main): Parse --config option, and pass it to generate_image.
31726
cf353a47 317272009-05-14 Christian Franke <franke@computer.org>
31728
31729 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31730 This fixes build on Cygwin.
31731
3834887f 317322009-05-14 Pavel Roskin <proski@gnu.org>
31733
31734 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31735 jump. This saves two bytes, so the typical case of 2 swapped
31736 drives would fit 32 bytes.
31737
8090fc01 317382009-05-13 Pavel Roskin <proski@gnu.org>
31739
ac963883 31740 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31741 grub_uint32_t to avoid a warning.
31742
8090fc01 31743 * loader/i386/linux.c (allocate_pages): When assigning
31744 real_mode_mem, cast through grub_size_t to fix a warning. The
31745 code already makes sure that the value would fit a pointer.
31746 (grub_linux_setup_video): Cast render_target->data to
31747 grub_size_t to fix a warning.
31748
18f547ad 317492009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 31750
31751 * commands/i386/pc/drivemap.c: New file - implement drivemap
31752 command.
31753 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31754 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31755
6f6a8b28 317562009-05-13 Pavel Roskin <proski@gnu.org>
31757
31758 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31759 embedding_area_exists.
31760
15fbf4c4 317612009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31762
31763 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31764 it easier to understand / work with.
59978c8a 31765 Improve warning messages for cases where there's no embedding area,
31766 or when it is too small (or core.img too large).
15fbf4c4 31767
238e871f 317682009-05-13 Pavel Roskin <proski@gnu.org>
31769
0ab3a9a4 31770 * loader/i386/pc/multiboot2.c: Add necessary includes for
31771 grub_multiboot2_real_boot().
31772
a2c8c5f8 31773 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31774 PX record is always little-endian. We only need the lower 2
31775 bytes of the mode.
31776
faec96af 31777 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31778 facilitate code reuse.
31779 (grub_cpio_mount): Use "struct head", not a char buffer. This
31780 fixes a warning reported by gcc 4.4.
31781
238e871f 31782 * kernel/disk.c (grub_disk_read): Use void pointer for the
31783 buffer.
31784 (grub_disk_write): Use const void pointer for the buffer.
31785 Adjust all callers. Remove unnecessary casts.
31786
901d2f0c 317872009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31788
31789 * util/i386/pc/grub-install.in: Update copyright year.
31790
18f547ad 317912009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 31792
31793 gptsync
31794
31795 * commands/gptsync.c: new file
31796 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31797 (gptsync_mod_SOURCES): new variable
31798 (gptsync_mod_CFLAGS): likewise
31799 (gptsync_mod_LDFLAGS): likewise
18f547ad 31800 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 31801 new definition
31802 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31803 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31804 * conf/i386-ieee1275.rmk: likewise
31805 * conf/i386-pc.rmk: likewise
31806 * conf/powerpc-ieee1275.rmk: likewise
31807
b4ba690a 318082009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31809
31810 Fixed grub-emu
31811
31812 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31813 (grub_dl_ref): likewise
31814
317e1a44 318152009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31816
31817 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31818 split in two functions (one for msdos and one for gpt).
31819
041b8094 318202009-05-08 Pavel Roskin <proski@gnu.org>
31821
752473c2 31822 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31823 not modified.
31824
041b8094 31825 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31826 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31827 Initialize them with -1. Add sanity check for bad1. Eliminate
31828 nerr variable.
31829
172800ce 318302009-05-08 David S. Miller <davem@davemloft.net>
31831
31832 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31833
29aa5e81 318342009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31835
31836 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 31837 existence.
29aa5e81 31838
96613b62 318392009-05-05 Felix Zielcke <fzielcke@z-51.de>
31840
31841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 31842 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 31843
eef73c8a 318442009-05-05 David S. Miller <davem@davemloft.net>
31845
31846 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31847
119494b5 318482009-05-05 Pavel Roskin <proski@gnu.org>
31849
31850 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31851 of grub_dl_ref() and grub_dl_unref().
31852 * commands/parttool.c: Remove preprocessor conditionals around
31853 grub_dl_ref() and grub_dl_unref().
31854 * fs/affs.c: Likewise.
31855 * fs/afs.c: Likewise.
31856 * fs/cpio.c: Likewise.
31857 * fs/ext2.c: Likewise.
31858 * fs/fat.c: Likewise.
31859 * fs/hfs.c: Likewise.
31860 * fs/hfsplus.c: Likewise.
31861 * fs/iso9660.c: Likewise.
31862 * fs/jfs.c: Likewise.
31863 * fs/minix.c: Likewise.
31864 * fs/ntfs.c: Likewise.
31865 * fs/reiserfs.c: Likewise.
31866 * fs/sfs.c: Likewise.
31867 * fs/udf.c: Likewise.
31868 * fs/ufs.c: Likewise.
31869 * fs/xfs.c: Likewise.
31870 * include/grub/dl.h: Likewise.
31871 * loader/xnu.c: Likewise.
31872
de5fd76e 318732009-05-04 Pavel Roskin <proski@gnu.org>
31874
31875 * commands/acpi.c: Remove unused variable my_mod.
31876 * partmap/amiga.c: Likewise.
31877 * partmap/apple.c: Likewise.
31878 * partmap/gpt.c: Likewise.
31879 * partmap/pc.c: Likewise.
31880 * partmap/sun.c: Likewise.
31881 * term/gfxterm.c: Likewise.
31882 * term/i386/pc/vesafb.c: Likewise.
31883 * term/i386/pc/vga.c: Likewise.
31884
983598ad 318852009-05-04 David S. Miller <davem@davemloft.net>
31886
31887 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31888 pointer args to grub_ieee1275_get_property().
31889
8aadec43 31890 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31891
9554b15e 31892 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31893 devices, and do not traverse down under controller nodes.
31894
67e23c90 31895 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31896 (grub_ofdisk_open): Use it to un-escape "," characters.
31897 * kern/disk.c (find_part_sep): New.
31898 (grub_disk_open): Use it to find the first non-escaped ','
31899 character in the disk name.
31900 * util/ieee1275/devicemap.c (escape_of_path): New.
31901 (grub_util_emit_devicemap_entry): Use it.
31902 * util/sparc64/ieee1275/grub-install.in: Update script to
31903 strip partition specifiers properly by not triggering on
31904 '\' escaped ',' characters.
31905
74bfdd2f 319062009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31907
31908 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31909 to 0x300.
31910 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31911 resolutions.
31912 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31913 on documentation from Wikipedia).
31914
4241d2b1 319152009-05-04 Pavel Roskin <proski@gnu.org>
31916
31917 * disk/ata.c: Spelling fixes.
31918 * disk/raid.c: Likewise.
31919 * disk/usbms.c: Likewise.
31920 * disk/dmraid_nvidia.c: Likewise.
31921 * kern/ieee1275/openfw.c: Likewise.
31922 * kern/ieee1275/init.c: Likewise.
31923 * kern/ieee1275/cmain.c: Likewise.
31924 * boot/i386/pc/cdboot.S: Likewise.
31925 * video/readers/png.c: Likewise.
31926 * video/i386/pc/vbe.c: Likewise.
31927 * fs/udf.c: Likewise.
31928 * fs/hfs.c: Likewise.
31929 * fs/reiserfs.c: Likewise.
31930 * efiemu/runtime/efiemu.c: Likewise.
31931 * efiemu/main.c: Likewise.
31932 * efiemu/mm.c: Likewise.
31933 * include/grub/elf.h: Likewise.
31934 * include/grub/xnu.h: Likewise.
31935 * include/grub/usbdesc.h: Likewise.
31936 * include/grub/usb.h: Likewise.
31937 * include/grub/script_sh.h: Likewise.
31938 * include/grub/lib/LzmaEnc.h: Likewise.
31939 * include/grub/efiemu/efiemu.h: Likewise.
31940 * include/grub/command.h: Likewise.
31941 * normal/menu.c: Likewise.
31942 * normal/main.c: Likewise.
31943 * normal/datetime.c: Likewise.
31944 * bus/usb/uhci.c: Likewise.
31945 * mmap/i386/uppermem.c: Likewise.
31946 * mmap/mmap.c: Likewise.
31947 * commands/acpi.c: Likewise.
31948 * commands/test.c: Likewise.
31949 * partmap/apple.c: Likewise.
31950 * font/font.c: Likewise.
31951 * loader/sparc64/ieee1275/linux.c: Likewise.
31952 * loader/macho.c: Likewise.
31953 * loader/i386/bsd_trampoline.S: Likewise.
31954 * loader/i386/bsd.c: Likewise.
31955 * loader/xnu.c: Likewise.
31956 * term/i386/pc/vesafb.c: Likewise.
31957 * term/usb_keyboard.c: Likewise.
31958 * util/resolve.c: Likewise.
31959 * util/getroot.c: Likewise.
31960
0cfc0083 319612009-05-04 Felix Zielcke <fzielcke@z-51.de>
31962
31963 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31964
7c1d00cd 319652009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31966
31967 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31968 build error.
31969
b01f0548 319702009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31971
31972 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31973 parameter only available on BIOS.
31974
ecc3eb22 319752009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31976
31977 Removed wrong semicolon in declaration
31978
31979 * grub/misc.h (grub_dprintf): remove semicolon
31980
112972a9 319812009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31982
31983 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31984 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31985 is done by grub_cmd_linux() now).
31986 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31987 restore video to text mode.
31988 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31989 indicates lack of "vga=" parameter. "vga=0" is mapped to
31990 `GRUB_LINUX_VID_MODE_NORMAL'.
31991
afd5c115 319922009-05-04 Felix Zielcke <fzielcke@z-51.de>
31993
31994 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31995 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31996 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 31997 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 31998 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31999 `grub_script.tab.c'.
32000
32001 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32002 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32003 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32004 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32005 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32006
faa517ce 32007 * Makefile.in: Remove duplicated 2008 in Copyright line.
32008
ae0c0bdc 320092009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32010
473d1e45 32011 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 32012 unconditionally.
32013 * include/grub/util/misc.h (grub_util_warn): New declaration.
32014
32015 * util/i386/pc/grub-install.in: Understand --force and pass it down
32016 to grub-setup.
32017
32018 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
32019 down to setup().
32020 (setup): Improve error messages and add warnings when requested to
32021 install in odd layouts. Refuse to install using blocklists unless
32022 --force was set.
32023
18f547ad 320242009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 32025
32026 * disk/raid.c (grub_raid_scan_device): Improve debug message.
32027
6d260daa 320282009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32029
32030 Updated copyright year
32031
32032 * fs/hfsplus.c: updated copyright year
18f547ad 32033
69f853f8 320342009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32035
32036 HFS+ UUID
32037
18f547ad 32038 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 32039 in the space previously used by unused3
32040 (grub_hfsplus_uuid): new function
32041 (grub_hfsplus_fs): added uuid field
32042
4c402e73 320432009-05-03 Pavel Roskin <proski@gnu.org>
32044
32045 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
32046 suppress warnings. It's no longer needed.
32047 * disk/host.c: Likewise.
32048 * disk/ata_pthru.c: Likewise.
32049 * disk/loopback.c: Likewise.
32050 * hook/datehook.c: Likewise.
32051 * parttool/pcpart.c: Likewise.
32052 * fs/i386/pc/pxe.c: Likewise.
32053 * fs/ntfscomp.c: Likewise.
32054 * efiemu/main.c: Likewise.
32055 * mmap/mmap.c: Likewise.
32056 * commands/crc.c: Likewise.
32057 * commands/hexdump.c: Likewise.
32058 * commands/hdparm.c: Likewise.
32059 * commands/acpi.c: Likewise.
32060 * commands/echo.c: Likewise.
32061 * commands/minicmd.c: Likewise.
32062 * commands/blocklist.c: Likewise.
32063 * commands/memrw.c: Likewise.
32064 * commands/loadenv.c: Likewise.
32065 * commands/usbtest.c: Likewise.
32066 * commands/lsmmap.c: Likewise.
32067 * commands/boot.c: Likewise.
32068 * commands/parttool.c: Likewise.
32069 * commands/configfile.c: Likewise.
32070 * commands/search.c: Likewise.
32071 * commands/ieee1275/suspend.c: Likewise.
32072 * commands/cat.c: Likewise.
32073 * commands/i386/pc/pxecmd.c: Likewise.
32074 * commands/i386/pc/play.c: Likewise.
32075 * commands/i386/pc/halt.c: Likewise.
32076 * commands/i386/pc/vbeinfo.c: Likewise.
32077 * commands/i386/pc/vbetest.c: Likewise.
32078 * commands/lspci.c: Likewise.
32079 * commands/date.c: Likewise.
32080 * commands/handler.c: Likewise.
32081 * commands/ls.c: Likewise.
32082 * commands/test.c: Likewise.
32083 * commands/cmp.c: Likewise.
32084 * commands/efi/loadbios.c: Likewise.
32085 * commands/efi/fixvideo.c: Likewise.
32086 * commands/halt.c: Likewise.
32087 * commands/help.c: Likewise.
32088 * commands/reboot.c: Likewise.
32089 * hello/hello.c: Likewise.
32090 * script/sh/main.c: Likewise.
32091 * loader/xnu.c: Likewise.
32092 * term/terminfo.c: Likewise.
32093 * term/i386/pc/serial.c: Likewise.
32094 * term/usb_keyboard.c: Likewise.
32095
515b5079 320962009-05-03 David S. Miller <davem@davemloft.net>
32097
32098 * normal/menu.c: Include grub/parser.h
32099
dfc31a22 321002009-05-03 Pavel Roskin <proski@gnu.org>
32101
2fee74f1 32102 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
32103 not char*.
32104 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
32105 Suggested by Javier Martín <lordhabbit@gmail.com>
32106
dfc31a22 32107 * util/i386/pc/grub-mkrescue.in: Allow for the case when
32108 efiemu??.o doesn't exist.
32109 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
32110 copying.
32111
18f547ad 321122009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 32113
32114 FreeBSD 64-bit support
32115
18f547ad 32116 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 32117 and loader/i386/bsd_trampoline.S
32118 (bsd_mod_ASFLAGS): new variable
32119 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
32120 (FREEBSD_MODTYPE_KERNEL64): likewise
32121 (grub_bsd64_trampoline_start): likewise
32122 (grub_bsd64_trampoline_end): likewise
32123 (grub_bsd64_trampoline_selfjump): likewise
32124 (grub_bsd64_trampoline_gdt): likewise
32125 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
32126 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
32127 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
32128 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 32129 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 32130 of "attrib" member
32131 * loader/i386/bsd_pagetable.c: new file
32132 * loader/i386/bsd_trampoline.S: likewise
32133 * loader/i386/bsd.c (ALIGN_QWORD): new macro
32134 (ALIGN_VAR): likewise
32135 (entry_hi): new variable
32136 (kern_end_mdofs): likewise
32137 (is_64bit): likewise
32138 (grub_freebsd_add_meta): use ALIGN_VAR
32139 (grub_e820_mmap): new declaration
32140 (grub_freebsd_add_mmap): new function
32141 (grub_freebsd_add_meta_module): support 64 bit kernels
32142 (grub_freebsd_list_modules): use ALIGN_VAR
32143 (gdt_descriptor): new declaration
32144 (grub_freebsd_boot): support 64 bit kernels
32145 (grub_bsd_elf64_hook): new function
32146 (grub_bsd_load_elf): support elf64
32147
038c5720 321482009-05-03 Bean <bean123ch@gmail.com>
32149
32150 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
32151 after we get the result of if statement.
32152
fc45fb58 321532009-05-03 Bean <bean123ch@gmail.com>
32154
32155 * Makefile.in (enable_efiemu): New variable.
32156
32157 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
32158 set.
32159 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
32160 path.
32161 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
32162 path, add -mno-red-zone option.
32163 (efiemu64_s.o): Likewise.
32164 (efiemu64.o): Use macro $^ for source file.
32165
32166 * configure.ac (--enable-efiemu): New option.
32167
bbee0f2b 321682009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
32169
32170 xnu support
32171
32172 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
32173 (pkglib_MODULES): add xnu.mod
32174 (xnu_mod_SOURCES): new variable
32175 (xnu_mod_CFLAGS): likewise
32176 (xnu_mod_LDFLAGS): likewise
32177 (xnu_mod_ASFLAGS): likewise
32178 * conf/i386-pc.rmk: likewise
32179 * conf/x86_64-efi.rmk: likewise
7dd4a573 32180 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 32181 new declaration
32182 * include/grub/i386/macho.h: new file
32183 * include/grub/i386/xnu.h: likewise
32184 * include/grub/macho.h: likewise
32185 * include/grub/machoload.h: likewise
32186 * include/grub/x86_64/macho.h: likewise
32187 * include/grub/x86_64/xnu.h: likewise
32188 * include/grub/xnu.h: likewise
32189 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
32190 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
32191 * loader/i386/efi/xnu.c: new file
32192 * loader/i386/pc/xnu.c: likewise
32193 * loader/i386/xnu.c: likewise
32194 * loader/i386/xnu_helper.S: likewise
32195 * loader/macho.c: likewise
32196 * loader/xnu.c: likewise
32197 * loader/xnu_resume.c: likewise
32198 * util/grub-dumpdevtree: likewise
32199 * include/grub/i386/pit.h: include grub/err.h
32200 (grub_pit_wait): export
32201 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 32202
5caf964d 322032009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32204
32205 Efiemu
7dd4a573 32206
5caf964d 32207 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 32208 _linux_efi, linux_efi.
32209 new files in grub-emu
5caf964d 32210 new targets efiemu32.o and efiemu64.o
32211 * loader/linux_normal_efiemu.c: likewise
32212 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 32213 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 32214 files to copy
32215 * include/grub/autoefi.h: new file
7dd4a573 32216 * include/grub/i386/efiemu.h: likewise
5caf964d 32217 * include/grub/i386/pc/efiemu.h: likewise
32218 * include/grub/efi/api.h: add LL suffix when necessary
32219 new definitions relating to tables
32220 * include/grub/efiemu/efiemu.h: new file
32221 * include/grub/efiemu/runtime.h: likewise
32222 * efiemu/prepare.c: likewise
32223 * efiemu/loadcore_common.c: likewise
32224 * efiemu/loadcore64.c: likewise
32225 * efiemu/runtime/efiemu.sh: likewise
32226 * efiemu/runtime/efiemu.S: likewise
32227 * efiemu/runtime/efiemu.c: likewise
32228 * efiemu/runtime/config.h: likewise
32229 * efiemu/prepare32.c: likewise
32230 * efiemu/main.c: likewise
32231 * efiemu/modules/pnvram.c: likewise
32232 * efiemu/modules/i386: likewise
32233 * efiemu/modules/i386/pc: likewise
32234 * efiemu/modules/acpi.c: likewise
32235 * efiemu/i386/pc/cfgtables.c: likewise
32236 * efiemu/i386/loadcore64.c: likewise
32237 * efiemu/i386/loadcore32.c: likewise
32238 * efiemu/prepare64.c: likewise
32239 * efiemu/loadcore.c: likewise
32240 * efiemu/symbols.c: likewise
32241 * efiemu/mm.c: likewise
32242 * efiemu/loadcore32.c: likewise
7dd4a573 32243
322442009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 32245
32246 ACPI spoofing
32247
32248 * commands/acpi.c: new file
32249 * commands/i386/pc/acpi.c: likewise
32250 * commands/efi/acpi.c: likewise
32251 * include/grub/acpi.h: likewise
32252 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
32253 (acpi_mod_SOURCES): new variable
32254 (acpi_mod_CFLAGS): likewise
32255 (acpi_mod_LDFLAGS): likewise
32256 * conf/i386-efi.rmk: likewise
32257 * conf/x86_64-efi.rmk: likewise
32258
7dd4a573 322592009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 32260
32261 Missing part from mmap patch
32262
32263 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
32264 (grub_mmap_unregister)
32265 (grub_mmap_free_and_unregister): use grub_mmap_register
32266
7dd4a573 322672009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 32268
32269 Mmap services
32270
32271 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32272 * loader/i386/linux.c (find_mmap_size): likewise
32273 (allocate_pages): likewise
32274 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32275 (grub_fill_multiboot_mmap): likewise
32276 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32277 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32278 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32279 (OPENBSD_MMAP_RESERVED): likewise
32280 * include/grub/i386/pc/memory.h: include grub/memory.h
32281 (grub_lower_mem): removed
32282 (grub_upper_mem): likewise
32283 (GRUB_MACHINE_MEMORY_ACPI): new definition
32284 (GRUB_MACHINE_MEMORY_NVS): likewise
32285 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32286 (GRUB_MACHINE_MEMORY_HOLE): likewise
32287 (grub_machine_mmap_register): likewise
32288 (grub_machine_mmap_unregister): likewise
32289 (grub_machine_get_upper): likewise
32290 (grub_machine_get_lower): likewise
32291 (grub_machine_get_post64): likewise
32292 * include/grub/i386/efi/memory.h: new file
32293 * include/grub/x86_64/efi/memory.h: likewise
32294 * include/grub/efi/memory.h: likewise
32295 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32296 (mmap_mod_SOURCES): new variable
32297 (mmap_mod_LDFLAGS): likewise
32298 (mmap_mod_ASFLAGS): likewise
32299 * conf/i386-coreboot.rmk: likewise
32300 * conf/i386-ieee1275.rmk: likewise
32301 * conf/i386-efi.rmk: likewise
32302 * conf/x86_64-efi.rmk: likewise
32303 * include/grub/types.h (UINT_TO_PTR): new macro
32304 (PTR_TO_UINT32): likewise
32305 (PTR_TO_UINT64): likewise
32306 * include/grub/memory.h: new file
32307 * mmap/i386/pc/mmap.c: likewise
32308 * mmap/i386/pc/mmap_helper.S: likewise
32309 * mmap/i386/uppermem.c: likewise
32310 * mmap/mmap.c: likewise
32311 * mmap/efi/mmap.c: likewise
7dd4a573 32312 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 32313 grub_upper_mem
32314 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32315 (grub_upper_mem): likewise
32316 (grub_machine_init): don't use grub_upper_mem,
32317 make grub_lower_mem local
32318 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32319 grub_mmap_iterate and grub_mmap_get_upper
32320 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32321
d558e6b5 323222009-05-02 Bean <bean123ch@gmail.com>
32323
32324 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32325 script/sh/parser.y.
32326 (pkglib_MODULES): Add normal.mod and sh.mod.
32327 (normal_SOURCES): New variable.
32328 (normal_mod_CFLAGS): Likewise.
32329 (normal_mod_LDFLAGS): Likewise.
32330 (sh_mod_SOURCES): Likewise.
32331 (sh_mod_CFLAGS): Likewise.
32332 (sh_mod_LDFLAGS): Likewise.
32333
32334 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32335 script/sh/lexer.c_DEPENDENCIES.
32336 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32337 kern/rescue_reader.c and kern/rescue_parser.c.
32338 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32339 (grub_emu_SOURCES): Change source files.
32340 (pkglib_MODULES): Remove normal.mod.
32341 (normal_SOURCES): Removed.
32342 (normal_mod_CFLAGS): Likewise.
32343 (normal_mod_LDFLAGS): Likewise.
32344 * conf/i386-coreboot.rmk: Likewise.
32345 * conf/i386-efi.rmk: Likewise.
32346 * conf/i386-ieee1276.rmk: Likewise.
32347 * conf/powerpc-ieee1275.rmk: Likewise.
32348 * conf/sparc64-ieee1275.rmk: Likewise.
32349 * conf/x86_64-efi.rmk: Likewise.
32350
32351 * include/grub/command.h (grub_command_execute): New inline function.
32352
32353 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32354
32355 * include/grub/normal.h: Remove <grub/setjmp.h>.
32356 (grub_fs_module_list): Moved to normal/autofs.c.
32357 (grub_exit_env): Removed.
32358 (grub_command_execute): Likewise.
32359 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32360 parameter script.
32361 (read_command_list): New function declaration.
32362 (read_fs_list): Likewise.
32363
32364 * include/parser.h: Include <grub/reader.h>.
32365 (grub_parser_split_cmdline): Change type of getline parameter.
32366 (grub_parser): New structure.
32367 (grub_parser_class): New variable.
32368 (grub_parser_execute): New function declaration.
32369 (grub_register_rescue_parser): Likewise.
32370 (grub_parser_register): New inline function.
32371 (grub_parser_unregister): Likewise.
32372 (grub_parser_get_current): Likewise.
32373 (grub_parser_set_current): Likewise.
32374
32375 * include/grub/reader.h: New file.
32376 * kern/reader.c: Likewise.
32377 * kern/rescue_parser.c: Likewise.
32378 * kern/rescue_reader.c: Likewise.
32379 * normal/autofs.c: Likewise.
32380 * normal/dyncmd.c: Likewise.
32381
32382 * include/grub/rescue.h: Removed.
32383 * normal/command.h: Likewise.
32384
32385 * include/grub/script.h: Moved to ...
32386 * include/grub/script_sh.h: ... Moved here.
32387 * normal/execute.c: Moved to ...
32388 * script/sh/execute.c: ... Moved here.
32389 * normal/function.c: Moved to ...
32390 * script/sh/function.c: ... Moved here.
32391 * normal/lexer.c: Moved to ...
32392 * script/sh/lexer.c: ... Moved here.
32393 * normal/parser.y: Moved to ...
32394 * script/sh/parser.y: ... Moved here.
32395 * normal/script.c: Moved to ...
32396 * script/sh/script.c: ... Moved here.
32397
32398 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32399 <grub/reader.h>.
32400 (grub_exit_env): Removed.
32401 (fs_module_list): Moved to normal/autofs.c.
32402 (grub_file_getline): Don't handle comment here.
32403 (free_menu): Skip removed field entry->commands.
32404 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32405 script parameter.
32406 (read_config_file): Removed nested parameter, change getline function.
32407 (grub_enter_normal_mode): Removed.
32408 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32409 (read_command_list): Likewise.
32410 (autoload_fs_module): Moved to normal/autofs.c.
32411 (read_fs_list): Likewise.
32412 (reader_nested): New variable.
32413 (grub_normal_execute): Run parser.sh to switch to sh parser.
32414 (grub_cmd_rescue): Removed.
32415 (cmd_normal): Removed.
32416 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32417 rescue command.
32418 (grub_cmdline_run): New function.
32419 (grub_normal_reader_init): Likewise.
32420 (grub_normal_read_line): Likewise.
32421 (grub_env_write_pager): Likewise.
32422 (cmdline): New variable.
32423 (grub_normal_reader): Likewise.
32424 (GRUB_MOD_INIT): Register normal reader and set as current, register
32425 pager hook, register normal command with grub_register_command_prio,
32426 so that it won't show up in command.lst.
32427 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32428 grub_fs_autoload_hook.
32429
32430 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32431 (grub_menu_execute_entry): Replace grub_script_execute with
32432 grub_parser_execute, change parameter to grub_command_execute.
32433
32434 * normal/menu_text.c: Remove <grub/script.h>.
32435
32436 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32437 and <grub/parser.h>.
32438 (run): Change editor_getline to use new parser interface. Change
32439 parameter to grub_command_execute.
32440
32441 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32442 <grub/reader.h> and <grub/parser.h>.
32443 (grub_load_normal_mode): Execute normal command.
32444 (grub_main): Call grub_register_core_commands,
32445 grub_register_rescue_parser and grub_register_rescue_reader, use
32446 grub_reader_loop to enter input loop.
32447
7dd4a573 32448 * kern/parser.c (grub_parser_split_cmdline): Change type of
32449 getline parameter.
d558e6b5 32450 (grub_parser_class): New variable.
32451 (grub_parser_execute): New function.
32452
32453 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32454 * loader/multiboot2.c: Likewise.
32455 * loader/sparc64/ieee1275/linux.c: Likewise.
32456
32457 * util/grub-emu.c (read_command_list): New dummy function.
32458
18db813d 324592009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32460
32461 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32462 count to 16 for CCISS and IDA.
32463
6c67de15 324642009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32465
32466 * normal/menu_text.c (grub_wait_after_message): Print a newline
32467 after waiting for user input.
32468
32469 * loader/i386/linux.c: Include `<grub/normal.h>'.
32470 (grub_cmd_linux): Improve the error message about `ask' mode, by
32471 waiting for user input so it's not missed (we can do this, since
32472 user requested interaction).
32473
d9dc87b0 324742009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32475
32476 Added missing lst to grub-mkrescue
32477
32478 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32479 and ${input_dir}/parttool.lst
32480
ac8a2baa 324812009-04-30 David S. Miller <davem@davemloft.net>
32482
ad22a610 32483 * util/hostdisk.c (device_is_wholedisk): New function.
32484 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32485 zero only if device_is_wholedisk() returns true.
32486
6966215d 32487 * util/hostdisk.c (convert_system_partition_to_system_disk):
32488 Handle virtual disk devices named /dev/vdiskX as found on sparc
32489 and powerpc.
32490
ac8a2baa 32491 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32492 lettered partition specifier is found, convert to numbered.
32493
979b4fb4 324942009-04-29 David S. Miller <davem@davemloft.net>
32495
e2bf39b2 32496 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32497 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32498
3c64e104 32499 * normal/command.c: Add missing newline at end of file.
32500
979b4fb4 32501 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32502 warnings.
32503 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32504 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32505 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32506 ihandles have a 32-bit type but need to be stored in a "void *".
32507
136d9f82 325082009-04-28 Pavel Roskin <proski@gnu.org>
32509
9459c306 32510 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32511 not disk. Adjust all dependencies.
2e08a26a 32512 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 32513 grub_disk_close().
32514
136d9f82 32515 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32516 parent's partition, don't copy it by reference, as it gets freed
32517 on close.
32518
7dd4a573 325192009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 32520
32521 Preboot hooks support
32522
32523 * commands/boot.c (struct grub_preboot_t): new declaration
32524 (preboots_head): new variable
32525 (preboots_tail): likewise
32526 (grub_loader_register_preboot_hook): new function
32527 (grub_loader_unregister_preboot_hook): likewise
32528 (grub_loader_set): launch preboot hooks
32529 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32530 (grub_loader_register_preboot_hook): new declaration
32531 (grub_loader_unregister_preboot_hook): likewise
32532
5af922b5 325332009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32534
32535 Warning fix
32536
7dd4a573 32537 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 32538 calling grub_dprintf
32539
a5562c30 325402009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32541
32542 Bug and warning fixes
32543
7dd4a573 32544 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 32545 declaration
32546 * commands/test.c (test_parse): fixed bug with file tests and corrected
32547 declaration of find_file
32548
4006f85c 325492009-04-26 Pavel Roskin <proski@gnu.org>
32550
32551 * Makefile.in: Don't install empty manual pages if help2man is
32552 missing. Use help2man option for output, not shell redirection.
32553
5c77c3de 325542009-04-26 David S. Miller <davem@davemloft.net>
32555
32556 * util/grub-mkdevicemap.c (make_device_map): Add missing
32557 NESTED_FUNC_ATTR to process_device().
32558
033b10a8 325592009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32560
32561 Test command
32562
32563 * commands/test.c: rewritten to use bash-like test
32564
e4343593 325652009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32566
32567 Parttool autoloading and improvements
32568
7dd4a573 32569 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 32570 (parttool.lst): new target
32571 * genmk.rb: generate parttool-*
32572 (CLEANFILES): add #{parttool}
32573 (PARTTOOLFILES): new variable
32574 * genparttoollist.sh: new file
7dd4a573 32575 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 32576 (grub_pcpart_type): likewise
32577 * commands/parttool.c (helpmsg): new variable
32578 (grub_cmd_parttool): output help if not enough arguments are supplied
32579 autoload modules
32580 (GRUB_MOD_INIT(parttool)): use helpmsg
32581
0d312500 325822009-04-24 David S. Miller <davem@davemloft.net>
32583
7dd4a573 32584 Avoiding opening same device multiple times in device iterator.
0d312500 32585
32586 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 32587 and use it to build a list of partitions in iterate_disk() and
0d312500 32588 iterate_partition().
32589
ac20caff 32590 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32591 on disk->data.
32592
0dcf7495 32593 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32594 grub_devalias_iterate() result instead of unconditional 0.
32595 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32596 Also, capture hook return value, either directly or via
32597 grub_children_iterate(), and propagate to caller.
32598 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32599 grub_children_iterate): Return value is now 'int' instead of
32600 'grub_err_t'.
32601 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32602 like a proper iterator, stopping when hooks return non-zero.
32603 (grub_devalias_iterate): Likewise.
32604
c8c08833 326052009-04-23 David S. Miller <davem@davemloft.net>
32606
32607 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32608
f01005a8 326092009-04-22 David S. Miller <davem@davemloft.net>
32610
32611 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32612 is larger than address_cells, use that value for address_cells too.
32613
4e8269da 32614 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32615 IEEE1275_MAX_PATH_LEN): Define.
32616 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32617 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32618 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32619 'devtype'. Explicitly NULL terminate devalias expansion.
32620
a1447506 32621 * util/sparc64/ieee1275/misc.c: New file.
32622 * util/sparc64/ieee1275/grub-setup.c: New file.
32623 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32624 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32625 * util/sparc64/ieee1275/grub-install.in: New file.
32626 * util/ieee1275/ofpath.c: New file.
32627 * util/ieee1275/devicemap.c: New file.
32628 * util/devicemap.c: New file.
32629 * util/deviceiter.c: New file.
32630 * kern/sparc64/ieee1275/init.c: New file.
32631 * include/grub/util/ofpath.h: New file.
32632 * include/grub/util/deviceiter.h: New file.
32633 * util/grub-mkdevicemap.c: Include deviceiter.h.
32634 Implement using grub_util_emit_devicemap_entry and
32635 grub_util_iterate_devices.
32636 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32637 util/devicemap.c into grub-mkdevicemap
32638 * conf/i386-efi.rmk: Likewise.
32639 * conf/i386-ieee1275.rmk: Likewise.
32640 * conf/i386-pc.rmk: Likewise.
32641 * conf/powerpc-ieee1275.rmk: Likewise.
32642 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32643 images and installation utilities. Build kernel as image
32644 instead of as elf binary. Use common rules as much as possible.
32645
7dd4a573 326462009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 32647
32648 Correct GPT definition
32649
7dd4a573 32650 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 32651 of "attrib" member
32652
c6c5219f 326532009-04-19 Felix Zielcke <fzielcke@z-51.de>
32654
32655 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32656
0552ff9f 326572009-04-19 David S. Miller <davem@davemloft.net>
32658
32659 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32660 (grub_rescue_cmd_linux): Rename to...
32661 (grub_cmd_linux): and fix prototype.
32662 (grub_rescue_cmd_initrd): Rename to...
32663 (grub_cmd_initrd): and fix prototype.
32664 (cmd_linux, cmd_initrd): New.
32665 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32666 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32667
d1a282fc 326682009-04-17 Pavel Roskin <proski@gnu.org>
32669
07c5039f 32670 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32671 format.
32672 (grub_ohci_transfer): Likewise.
32673
b012002d 32674 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32675
1bc09c35 32676 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32677 return without a value. Fix inconsistent indentation.
32678
e0ff9126 32679 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32680 match struct grub_fs.
32681
d1a282fc 32682 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32683 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32684 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32685 * commands/lspci.c (grub_lspci_iter): Likewise.
32686
a96df3f2 326872009-04-16 Bean <bean123ch@gmail.com>
32688
32689 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32690 value.
32691
41bb0fe9 326922009-04-15 Pavel Roskin <proski@gnu.org>
32693
32694 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32695 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32696 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32697 definitions.
32698
596c6970 326992009-04-15 Felix Zielcke <fzielcke@z-51.de>
32700
32701 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 32702 that no multiple data or metadata areas are supported and `Unknown
596c6970 32703 metadata header'.
32704
7dd4a573 327052009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 32706
32707 Move loader out of the kernel
32708
32709 * kern/loader.c: moved to ...
32710 * commands/boot.c: ... moved here
32711 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32712 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32713 * include/grub/kernel.h (grub_machine_fini): export
32714 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32715 (grub_loader_set): likewise
32716 (grub_loader_unset): likewise
32717 (grub_loader_boot): likewise
32718 * conf/common.rmk: new module boot.mod
32719 (pkglib_MODULES): add boot.mod
32720 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32721 (grub_emu_SOURCES): likewise
32722 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32723 (grub_emu_SOURCES): likewise
32724 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32725 (grub_emu_SOURCES): likewise
32726 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32727 (grub_emu_SOURCES): likewise
32728 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32729 (grub_emu_SOURCES): likewise
7dd4a573 32730 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32731 (grub_emu_SOURCES): likewise
0d5d5653 32732 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 32733 (grub_emu_SOURCES): likewise
0d5d5653 32734
7dd4a573 327352009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 32736
32737 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 32738
5999d619 32739 * kern/misc.c (grub_itoa): Removed function
32740 (grub_ltoa): likewise
32741 (grub_vsprintf): use grub_lltoa
32742
7dd4a573 327432009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 32744
32745 Restore grub-emu
32746
32747 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32748 * conf/i386-coreboot.rmk: likewise
32749 * conf/i386-ieee1275.rmk: likewise
32750 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 32751
20318222 327522009-04-15 Felix Zielcke <fzielcke@z-51.de>
32753
32754 * INSTALL: Add that `./autogen.sh' needs to be run before
32755 `./configure.'.
32756
d05f0df3 327572009-04-14 Bean <bean123ch@gmail.com>
32758
32759 * Makefile.in (pkglib_DATA): Add handler.lst.
32760 (handler.lst): New rule.
32761
32762 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32763 * conf/i386-coreboot.rmk: Likewise.
32764 * conf/i386-ieee1275.rmk: Likewise.
32765 * conf/i386-efi.rmk: Likewise.
32766 * conf/x86_64-efi.rmk: Likewise.
32767 * conf/powerpc-ieee1275.rmk: Likewise.
32768 * conf/sparc64-ieee1275.rmk: Likewise.
32769
32770 * genhandlerlist.sh: New file.
32771
32772 * genmk.rb: Add rules to generate handler.lst.
32773
32774 * include/grub/normal.h (grub_file_getline): New function definition.
32775 (read_handler_list): Likewise.
32776 (free_handler_list): Likewise.
32777
32778 * include/grub/term.h (grub_term_register_input): Add name parameter
32779 for auto generation of handler.lst.
32780 (grub_term_register_output): Likewise.
32781
32782 * normal/handler.c: New file.
32783
32784 * normal/main.c (get_line): Renamed to grub_file_getline.
32785 (read_config_file): Use the newly renamed grub_file_getline.
32786 (read_command_list): Likewise.
32787 (read_fs_list): Likewise.
32788 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32789 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32790
32791 * term/efi/console.c (grub_console_init): Add name parameter for auto
32792 generation of handler.lst.
32793 * term/gfxterm.c: Likewise.
32794 * term/i386/pc/at_keyboard.c: Likewise.
32795 * term/i386/pc/console.c: Likewise.
32796 * term/i386/pc/serial.c: Likewise.
32797 * term/i386/pc/vesafb.c: Likewise.
32798 * term/i386/pc/vga.c: Likewise.
32799 * term/i386/pc/vga_text.c: Likewise.
32800 * term/ieee1275/ofconsole.c: Likewise.
32801 * term/usb_keyboard.c: Likewise.
32802
33c846be 328032009-04-14 Bean <bean123ch@gmail.com>
32804
32805 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32806 properly with null character.
32807
4484e01e 328082009-04-14 Felix Zielcke <fzielcke@z-51.de>
32809
32810 * configure: Remove.
32811 * config.h.in: Likewise.
f93d668e 32812 * stamp-h.in: Likewise.
4484e01e 32813 * DISTLIST: Likewise.
32814 * conf/common.mk: Likewise.
32815 * conf/i386-coreboot.mk: Likewise.
32816 * conf/i386-efi.mk: Likewise.
32817 * conf/i386-ieee1275.mk: Likewise.
32818 * conf/i386.mk: Likewise.
32819 * conf/i386-pc.mk: Likewise.
32820 * conf/powerpc-ieee1275.mk: Likewise.
32821 * conf/sparc64-ieee1275.mk: Likewise.
32822 * conf/x86_64-efi.mk: Likewise.
32823
32824 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32825 develop on GRUB.
32826
7dd4a573 328272009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 32828 David S. Miller <davem@davemloft.net>
32829
32830 * util/hostdisk.c (make_device_name): Fix buffer length
32831 calculations.
32832
e25b5a8c 328332009-04-14 Felix Zielcke <fzielcke@z-51.de>
32834
32835 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32836 <sys/param.h> and <sys/sysctl.h>.
32837 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32838 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32839 opening the device and reset them afterwards.
32840
1f1f580c 328412009-04-13 Pavel Roskin <proski@gnu.org>
32842
32843 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32844 Reported by John Stanley <jpsinthemix@verizon.net>
32845
7ebc2d6b 328462009-04-13 Robert Millan <rmh@aybabtu.com>
32847
32848 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 32849 that name for menuentries when appropriate.
7ebc2d6b 32850
d8ba3667 328512009-04-13 Felix Zielcke <fzielcke@z-51.de>
32852
32853 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32854
cba416eb 328552009-04-13 Robert Millan <rmh@aybabtu.com>
32856
32857 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32858 to Linux, simply abort telling the user it's no longer supported.
32859
a547a745 328602009-04-13 Felix Zielcke <fzielcke@z-51.de>
32861
32862 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 32863 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 32864 `freebsd_loadenv' only when devices.hints exist.
32865
232a769c 328662009-04-13 Pavel Roskin <proski@gnu.org>
32867
32868 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32869
c3012039 328702009-04-13 Felix Zielcke <fzielcke@z-51.de>
32871
32872 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32873 partition number.
32874 (grub_drive): Likewise.
32875
234022fe 328762009-04-13 David S. Miller <davem@davemloft.net>
32877
32878 * kern/sparc64/ieee1275/ieee1275.c: New file.
32879 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32880 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32881 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32882 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32883 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32884 grub_ieee1275_alloc_physmem): Declare new exported functions.
32885
d8e1836c 32886 * include/grub/sparc64/ieee1275/loader.h: New file.
32887 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32888 * include/grub/sparc64/kernel.h: Likewise.
32889 * loader/sparc64/ieee1275/linux.c: Likewise.
32890
96bd81ec 32891 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32892 (grub_fstest_SOURCES): Likewise.
32893
6a4737e5 32894 * util/hostdisk.c (make_device_name): Do not make any assumptions
32895 about the length of drive names.
32896
1d7a72fd 32897 * kern/dl.c (grub_dl_load_file): Close file immediately when
32898 we are done using it.
32899
56bc2471 329002009-04-12 David S. Miller <davem@davemloft.net>
32901
32902 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32903 values. Noticed by Pavel Roskin.
32904
df38d0bb 32905 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32906 target compiler.
7dd4a573 32907
e382e93a 32908 * genmk.rb: Add more flexible image type specification, also
32909 pass --strip-unneeded to objcopy.
32910 * conf/i386-pc.rmk: Use *_FORMAT.
32911 * conf/i386-pc.mk: Rebuilt.
32912
f5dbbca9 32913 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32914 (OFDISK_HASH_SZ): Define.
32915 (ofdisk_hash): New hash table.
32916 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32917 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32918 instead of device phandle which is not unique.
32919
91c88b12 32920 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32921 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32922 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32923 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32924 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32925 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32926 GRUB_KERNEL_MACHINE_DATA_END): Define.
32927 (grub_kernel_image_size, grub_total_module_size): Declare.
32928
5b5d4aa5 329292009-04-12 Pavel Roskin <proski@gnu.org>
32930
7dd4a573 32931 * configure.ac: Change the logic when we check for target tools.
32932 Do it when the target is specified and it's different from the
32933 specified value of the host.
5b5d4aa5 32934
c91e1793 329352009-04-11 Felix Zielcke <fzielcke@z-51.de>
32936
32937 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32938 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32939 GNU/kFreeBSD. Check if a device is a character device. Use
32940 DIOCGMEDIASIZE to get the size.
32941 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32942 support for GNU/kFreeBSD.
32943 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32944 is a character device instead of a block device. Add support for
32945 FreeBSD device names.
32946
32947 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32948 is a character device instead of a block device.
32949
32950 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32951 is a character device instead of a block device.
32952
b1ac8644 329532009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32954
32955 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32956 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32957 FreeBSD. Check if a device is a character device. Use
32958 DIOCGMEDIASIZE to get the size.
32959 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32960 support for FreeBSD.
32961 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32962 is a character device instead of a block device. Add support for
32963 FreeBSD device names.
32964
32965 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32966 a character device instead of a block device.
32967 (grub_util_check_char_device): New function.
32968
32969 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32970 a character device instead of a block device.
32971
32972 * include/grub/util/getroot.h (grub_util_check_char_device): New
32973 prototype.
32974
a3f7515a 329752009-04-11 David S. Miller <davem@davemloft.net>
32976
32977 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32978 static libgcc.
32979 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32980 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32981 function, if present.
32982 (__bswapdi2): Likewise.
32983
0d44993d 32984 * include/grub/sparc64/ieee1275/boot.h: New file.
32985 * boot/sparc64/ieee1275/boot.S: Likewise.
32986 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32987
ed3d2bc2 32988 * kern/misc.c (grub_ltoa): New function.
32989 (grub_vsprintf): Use it to format 'long' integers.
32990
d3bfb59c 329912009-04-10 David S. Miller <davem@davemloft.net>
32992
32993 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32994 slots are of type grub_ieee1275_cell_t.
32995 (grub_nand_read): Likewise.
32996 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32997 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32998 macros are used to compare values in arg/ret block of the call.
32999 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
33000 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
33001 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
33002 grub_ieee1275_instance_to_path, grub_ieee1275_write,
33003 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
33004 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
33005 grub_ieee1275_close, grub_ieee1275_set_property,
33006 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
33007 grub_ieee1275_cell_t.
33008 * kern/ieee1275/openfw.c (grub_map): Likewise.
33009 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
33010 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
33011
450e2238 33012 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
33013 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
33014 (grub_devalias_iterate): Likewise.
33015
7dd4a573 330162009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 33017
33018 UFS improvements
33019
33020 * fs/ufs.c (INODE_NBLOCKS): new definition
33021 (struct grub_ufs_dirent): added fields for non-BSD dirents
33022 (grub_ufs_get_file_block): fixed double indirect handling
33023 (grub_ufs_lookup_symlink): use more robust way to determine whether
33024 symlink is inline
33025 (grub_ufs_find_file): support for non-BSD dirents
33026 (grub_ufs_dir): support for non-BSD dirents
33027
e7e6862a 330282009-04-10 Bean <bean123ch@gnail.com>
33029
33030 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
33031 attribute, otherwise the size would be wrong for i386 platform.
33032
33033 * include/grub/pci.h (grub_pci_read_word): New inline function.
33034 (grub_pci_read_byte): Likewise.
33035 (grub_pci_write): Likewise.
33036 (grub_pci_write_word): Likewise.
33037 (grub_pci_write_byte): Likewise.
33038
33039 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
33040
33041 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
33042 (find_framebuf): Scan pci to locate the frame buffer address.
33043
33044 * commands/efi/fixvideo.c: New file.
33045
33046 * commands/efi/loadbios.c: Likewise.
33047
33048 * commands/memrw.c: Likewise.
33049
33050 * util/grub-dumpbios.in: Likewise.
33051
33052 * conf/common.rmk (grub-dumpbios): New utility.
33053 (pkglib_MODULES): New module memrw.mod.
33054 (memrw_mod_SOURCE): New macro.
33055 (memrw_mod_CFLAGS): Likewise.
33056 (memrw_mod_LDFLAGS): Likewise.
33057
7dd4a573 33058 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33059 fixvideo.mod.
33060 (loadbios_mod_SOURCE): New macro.
33061 (loadbios_mod_CFLAGS): Likewise.
33062 (loadbios_mod_LDFLAGS): Likewise.
33063 (fixvideo_mod_SOURCE): Likewise.
33064 (fixvideo_mod_CFLAGS): Likewise.
33065 (fixvideo_mod_LDFLAGS): Likewise.
33066
7dd4a573 33067 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33068 fixvideo.mod.
33069 (loadbios_mod_SOURCE): New macro.
33070 (loadbios_mod_CFLAGS): Likewise.
33071 (loadbios_mod_LDFLAGS): Likewise.
33072 (fixvideo_mod_SOURCE): Likewise.
33073 (fixvideo_mod_CFLAGS): Likewise.
33074 (fixvideo_mod_LDFLAGS): Likewise.
33075
af63ada2 330762009-04-08 Felix Zielcke <fzielcke@z-51.de>
33077
33078 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
33079
c2cdde70 330802009-04-07 David S. Miller <davem@davemloft.net>
33081
33082 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
33083 support for R_SPARC_OLO10 relocations. Fix compile warning for
33084 R_SPARC_WDISP30 case.
ea3f72cf 33085 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 33086
761319cf 330872009-04-06 Pavel Roskin <proski@gnu.org>
33088
1007d1f5 33089 * include/grub/misc.h (ARRAY_SIZE): New macro.
33090 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
33091 New macro.
33092 * loader/i386/linux.c (allocate_pages): Use free_pages().
33093 (grub_linux_unload): Don't use free_pages().
33094 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
33095 wrong index. Treat all other modes as text modes.
33096 (grub_cmd_linux): Initialize vid_mode unconditionally to
33097 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
33098
761319cf 33099 * commands/help.c (print_command_help): Use cmd->prio, not
33100 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
33101
ea761d40 331022009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 33103
ea761d40 33104 Parttool
33105
33106 * parttool/pcpart.c: new file
33107 * commands/parttool.c: likewise
33108 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
33109 (parttool_mod_SOURCES): new variable
33110 (parttool_mod_CFLAGS): likewise
33111 (parttool_mod_LDFLAGS): likewise
33112 (pcpart_mod_SOURCES): likewise
33113 (pcpart_mod_CFLAGS): likewise
33114 (pcpart_mod_LDFLAGS): likewise
7dd4a573 33115 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 33116 and parttool/pcpart.c
33117 * conf/i386-efi.rmk: likewise
33118 * conf/i386-ieee1275.rmk: likewise
33119 * conf/i386-pc.rmk: likewise
33120 * conf/powerpc-ieee1275.rmk: likewise
33121 * conf/sparc64-ieee1275.rmk: likewise
33122 * conf/x86_64-ieee1275.rmk: likewise
33123
05aaebfb 331242009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33125
33126 Support for mtime and further expandability of dir command
33127
33128 * include/grub/lib/datetime.h: moved to ...
7dd4a573 33129 * include/grub/datetime.h: ... moved here and added
05aaebfb 33130 declaration of grub_unixtime2datetime. All users updated
7dd4a573 33131 * include/grub/fs.h: new syntax for dir and mtime functions in
33132 struct grub_fs
05aaebfb 33133 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
33134 and GRUB_FSHELP_FLAGS_MASK
33135 * commands/ls.c (grub_ls_list_files): Write mtime in long format
33136 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
33137 (grub_ext2_mtime): new function
33138 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
33139 (grub_hfsplus_mtime): new function
33140 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
33141 (GRUB_UFS_ATTR_FILE): likewise
33142 (GRUB_UFS_ATTR_LNK): likewise
33143 (struct grub_ufs_sblock): new fields mtime
33144 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
33145 all users updated
33146 (grub_ufs_dir): mtime support
33147 (grub_ufs_mtime): new function
33148 * fs/affs.c (grub_affs_dir): use new dir syntax
33149 * fs/afs.c (grub_afs_dir): likewise
33150 * fs/cpio.c (grub_cpio_dir): likewise
33151 * fs/fat.c (grub_fat_find_dir): likewise
33152 * fs/hfs.c (grub_hfs_dir): likewise
33153 * fs/iso9660.c (grub_iso9660_dir): likewise
33154 * fs/jfs.c (grub_jfs_dir): likewise
33155 * fs/minix.c (grub_minix_dir): likewise
33156 * fs/ntfs.c (grub_ntfs_dir): likewise
33157 * fs/reiserfs.c (grub_reiserfs_dir): likewise
33158 * fs/sfs.c (grub_sfs_dir): likewise
33159 * fs/xfs.c (grub_xfs_dir): likewise
33160 * util/hostfs.c (grub_hostfs_dir): likewise
33161 * lib/datetime.c: moved to ...
33162 * normal/datetime.c: ... moved here
33163 (grub_unixtime2datetime): new function
33164 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 33165 * normal/completion.c (iterate_dir): use new dir syntax
33166 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 33167 last modification time of a volume
7dd4a573 33168 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 33169 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 33170 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 33171 (normal_mod_SOURCES): likewise
33172 (datetime_mod_SOURCES): Removed lib/datetime.c
33173 * conf/i386-efi.rmk: likewise
7dd4a573 33174 * conf/i386-ieee1275.rmk: likewise
05aaebfb 33175 * conf/i386-pc.rmk: likewise
33176 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 33177 * conf/sparc64-ieee1275.rmk: likewise
33178 * conf/x86_64-efi.rmk: likewise
05aaebfb 33179
8a7e1a14 331802009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33181
33182 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 33183
33184 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 33185 on grub_fat_find_dir
33186 (grub_fat_find_dir): use grub_fat_iterate_dir
33187 (grub_fat_label): likewise
33188
04186a9c 331892009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
33190
7dd4a573 33191 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 33192 and command.h
33193 remove extraneous kernel_elf_HEADERS
33194
da4c0bb6 331952009-04-04 Bean <bean123ch@gnail.com>
33196
33197 * include/grub/util/misc.h: Add dummy function fsync for mingw.
33198
33199 * util/misc.c: Likewise.
33200
54ad9555 332012009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33202
33203 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
33204 instead of grub_printf.
33205
7a6bf9f2 332062009-04-03 Robert Millan <rmh@aybabtu.com>
33207
33208 * loader/i386/linux.c (grub_linux_setup_video): Fill
33209 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
33210 values from `mode info' structure instead of hardcoded
33211 values.
33212
3fcc2083 332132009-04-01 Pavel Roskin <proski@gnu.org>
33214
33215 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
33216 unused now.
33217 * genmk.rb: Likewise.
33218 * configure.ac: Likewise.
33219
5ec9740b 332202009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
33221
33222 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
33223 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
33224
5270cec8 332252009-04-01 David S. Miller <davem@davemloft.net>
33226
33227 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 33228 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 33229 (grub_setjmp): Mark with 'returns_twice' attribute.
33230 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
33231 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
33232 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
33233
9c3dd854 332342009-04-01 Robert Millan <rmh@aybabtu.com>
33235
33236 Reapply fix from 2008-07-28 which was accidentally reverted; also
33237 perform the same fix to a similar check in same function.
33238
33239 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
33240 with the same number are found, just use issue a warning with
33241 grub_dprintf(), as this error has been reported to be non-fatal.
33242
0d818b7e 332432009-03-31 Pavel Roskin <proski@gnu.org>
33244
33245 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
33246 for cross-compilation.
33247
95646d92 332482009-03-30 Robert Millan <rmh@aybabtu.com>
33249
33250 Fix i386-ieee1275 build.
33251
33252 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
33253 Remove declaration.
33254
6a003ed1 332552009-03-30 Pavel Roskin <proski@gnu.org>
33256
33257 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
33258 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
33259 zero-terminated, rely only on the strlen value. Fix comparison
33260 of strings differing in length.
33261
92f33540 332622009-03-30 Robert Millan <rmh@aybabtu.com>
33263
33264 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
33265 checking for abi version. Improve error messages on BIOS to notify
33266 user about `linux16' command.
33267
a8c48fd5 332682009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33269
f968172e 33270 Leak fixes
a8c48fd5 33271
f968172e 33272 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33273 in case of collision
33274 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 33275
9c323f09 332762009-03-29 Robert Millan <rmh@aybabtu.com>
33277
33278 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33279 set `vid_mode' accordingly.
33280 (grub_linux_boot): Process `vid_mode' and set video mode.
33281
ae68f423 332822009-03-29 Robert Millan <rmh@aybabtu.com>
33283
33284 * util/grub.d/10_linux.in (linux_entry): New function.
33285 Factorize generation of Linux boot entries.
33286
5709cfc4 332872009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33288
33289 Make the format of Environment Block plain text. The boot loader
33290 part is not tested well yet.
7dd4a573 33291
5709cfc4 33292 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33293 (buffer): Removed.
33294 (envblk): Likewise.
33295 (usage): Remove "info" and "clear". Add "unset". Update the
33296 description of "set", as this does not delete variables any
33297 longer.
33298 (create_envblk_file): Complete rewrite.
33299 (open_envblk_file): Likewise.
33300 (cmd_info): Removed.
33301 (cmd_list): Likewise.
33302 (cmd_set): Likewise.
33303 (cmd_clear): Likewise.
33304 (list_variables): New function.
33305 (write_envblk): Likewise.
33306 (set_variables): Likewise.
33307 (unset_variables): Likewise.
33308 (main): Complete rewrite.
33309
33310 * commands/loadenv.c (buffer): Removed.
33311 (envblk): Likewise.
33312 (open_envblk_file): New function.
33313 (read_envblk_file): Complete rewrite.
33314 (grub_cmd_load_env): Likewise.
33315 (grub_cmd_list_env): Likewise.
33316 (struct blocklist): New struct.
33317 (free_blocklists): New function.
33318 (check_blocklists): Likewise.
33319 (write_blocklists): Likewise.
33320 (grub_cmd_save_env): Complete rewrite.
33321
33322 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33323 a plain text signature.
33324 (GRUB_ENVBLK_MAXLEN): Removed.
33325 (struct grub_envblk): Complete rewrite.
33326 (grub_envblk_find): Removed.
33327 (grub_envblk_insert): Likewise.
33328 (grub_envblk_open): New prototype.
33329 (grub_envblk_set): Likewise.
33330 (grub_envblk_delete): Put const to VALUE.
33331 (grub_envblk_iterate): Put const to NAME and VALUE.
33332 (grub_envblk_close): New prototype.
33333 (grub_envblk_buffer): New inline function.
33334 (grub_envblk_size): Likewise.
33335
33336 * lib/envblk.c: Include grub/mm.h.
33337 (grub_env_find): Removed.
33338 (grub_envblk_open): New function.
33339 (grub_envblk_close): Likewise.
33340 (escaped_value_len): Likewise.
33341 (find_next_line): Likewise.
33342 (grub_envblk_insert): Removed.
33343 (grub_envblk_set): New function.
33344 (grub_envblk_delete): Complete rewrite.
33345 (grub_envblk_iterate): Likewise.
33346
a9368fd3 333472009-03-28 Robert Millan <rmh@aybabtu.com>
33348
33349 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33350 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33351 variables. Use 16-bit loader.
33352 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33353 loader.
33354 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33355 (grub_linux16_boot): ... this. Update all users.
33356 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33357 (grub_linux_boot): ... this. Update all users.
33358
33359 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33360 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33361 commands to `linux16' and `initrd16'.
33362 (GRUB_MOD_FINI(linux)): Rename to ...
33363 (GRUB_MOD_FINI(linux16)): ... this.
33364
e4dd5a7e 333652009-03-24 Pavel Roskin <proski@gnu.org>
33366
33367 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33368 not just for compilation.
33369
c04d6e05 333702009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33371
33372 Move multiboot helper out of kernel
33373
33374 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33375 `loader/i386/multiboot_helper.S'.
33376 * conf/i386-coreboot.rmk: Likewise
33377 * conf/i386-ieee1275.rmk: Likewise
33378
33379 * kern/i386/loader.S: Move multiboot helpers from here...
33380 * loader/i386/multiboot_helper.S: ...moved here
33381 * include/grub/i386/loader.h: Move declarations of multiboot
33382 helpers from here...
33383 * include/grub/i386/multiboot.h: ...moved here
33384 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33385
42a5b3fc 333862009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33387
33388 * kern/env.c (grub_env_context_open): Added an argument to specify
33389 whether a new context inherits exported variables from current
33390 one. This is useful when making a sandbox to interpret a config
33391 file.
33392 All callers updated.
33393
33394 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33395
b28bbc4e 333962009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33397
33398 * kern/env.c (grub_env_context_close): Fix memory leaks.
33399
f04f02e4 334002009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33401
33402 * normal/main.c (grub_normal_execute): Added an argument
33403 BATCH to specify if an interactive interface should be provided
33404 after reading a config file.
33405 All callers updated.
33406 (read_command_list): Prevent being executed twice.
33407 (read_fs_list): Likewise.
33408
42a5b3fc 33409 * include/grub/normal.h (grub_normal_execute): Updated the
33410 prototype.
f04f02e4 33411
41473ac2 334122009-03-22 Pavel Roskin <proski@gno.org>
33413
fbc00b0c 33414 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33415 _start.
33416 * kern/i386/pc/startup.S: Likewise.
33417 * kern/i386/efi/startup.S: Likewise.
33418 * kern/i386/ieee1275/startup.S: Likewise.
33419 * kern/i386/coreboot/startup.S: Likewise.
33420 * kern/x86_64/efi/startup.S: Likewise.
33421
41473ac2 33422 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33423 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33424 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33425
2274cc8f 334262009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33427
33428 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33429
33430 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33431 limit detection.
33432 Use vaddr of correct segment for entry_point.
33433
b1b797cb 334342009-03-21 Bean <bean123ch@gmail.com>
33435
33436 * commands/blocklist.c: Add include file <grub/command.h>, remove
33437 <grub/normal.h> and <grub/arg.h>.
33438 (grub_cmd_blocklist): Use the new command interface.
33439 (GRUB_MOD_INIT): Likewise.
33440 (GRUB_MOD_FINI): Likewise.
33441 * commands/boot.c: Likewise.
33442 * commands/cat.c: Likewise.
33443 * commands/cmp.c: Likewise.
33444 * commands/configfile.c: Likewise.
33445 * commands/crc.c: Likewise.
33446 * commands/echo.c: Likewise.
33447 * commands/halt.c: Likewise.
33448 * commands/handler.c: Likewise.
33449 * commands/hdparm.c: Likewise.
33450 * commands/help.c: Likewise.
33451 * commands/hexdump.c: Likewise.
33452 * commands/loadenv.c: Likewise.
33453 * commands/ls.c: Likewise.
33454 * commands/lsmmap.c: Likewise.
33455 * commands/lspci.c: Likewise.
33456 * commands/loadenv.c: Likewise.
33457 * commands/read.c: Likewise.
33458 * commands/reboot.c: Likewise.
33459 * commands/search.c: Likewise.
33460 * commands/sleep.c: Likewise.
33461 * commands/test.c: Likewise.
33462 * commands/usbtest.c: Likewise.
33463 * commands/videotest.c: Likewise.
33464 * commands/i386/cpuid.c: Likewise.
33465 * commands/i386/pc/halt.c: Likewise.
33466 * commands/i386/pc/play.c: Likewise.
33467 * commands/i386/pc/pxecmd.c: Likewise.
33468 * commands/i386/pc/vbeinfo.c: Likewise.
33469 * commands/i386/pc/vbetest.c: Likewise.
33470 * commands/ieee1275/suspend.c: Likewise.
33471 * disk/loopback.c: Likewise.
33472 * font/font_cmd.c: Likewise.
33473 * hello/hello.c: Likewise.
33474 * loader/efi/appleloader.c: Likewise.
33475 * loader/efi/chainloader.c: Likewise.
33476 * loader/i386/bsd.c: Likewise.
33477 * loader/i386/efi/linux.c: Likewise.
33478 * loader/i386/ieee1275/linux.c: Likewise.
33479 * loader/i386/linux.c: Likewise.
33480 * loader/i386/pc/chainloader.c: Likewise.
33481 * loader/i386/pc/linux.c: Likewise.
33482 * loader/powerpc/ieee1275/linux.c: Likewise.
33483 * loader/multiboot_loader.c: Likewise.
33484 * term/gfxterm.c: Likewise.
33485 * term/i386/pc/serial.c: Likewise.
33486 * term/terminfo.c: Likewise.
33487
33488 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33489 * term/i386/pc/vga.c: Likewise.
33490 * video/readers/jpeg.c: Likewise.
33491 * video/readers/png.c: Likewise.
33492 * video/readers/tga.c: Likewise.
33493
33494 * util/grub-fstest (cmd_loopback): Removed.
33495 (cmd_blocklist): Likewise.
33496 (cmd_ls): Likewise.
33497 (grub_register_command): Likewise.
33498 (grub_unregister_command): Likewise.
33499 (execute_command): Use grub_command_find to locate command and execute
33500 it.
33501
33502 * include/grub/efi/chainloader.h: Removed.
33503 * loader/efi/chainloader_normal.c: Likewise.
33504 * loader/i386/bsd_normal.c: Likewise.
33505 * loader/i386/pc/chainloader_normal.c: Likewise.
33506 * loader/i386/pc/multiboot_normal.c: Likewise.
33507 * loader/linux_normal.c: Likewise.
33508 * loader/multiboot_loader_normal.c: Likewise.
33509 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33510
33511 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33512 and grub_register_command_p1.
33513
33514 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33515 kern/command.c, lib/arg.c and commands/extcmd.c.
33516 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33517 (minicmd_mod_SOURCES): New variable.
33518 (minicmd_mod_CFLAGS): Likewise.
33519 (minicmd_mod_LDFLAGS): Likewise.
33520 (extcmd_mod_SOURCES): Likewise.
33521 (extcmd_mod_CFLAGS): Likewise.
33522 (extcmd_mod_LDFLAGS): Likewise.
33523 (boot_mod_SOURCES): Removed.
33524 (boot_mod_CFLAGS): Likewise.
33525 (boot_mod_LDFLAGS): Likewise.
33526
33527 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33528 kern/corecmd.c.
33529 (kernel_img_HEADERS): Add command.h.
33530 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33531 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33532 and lib/arg.c.
33533 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33534 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33535 remove the corresponding normal mode command.
33536 (normal_mod_SOURCES): Remove normal/arg.c.
33537 * conf/i386-coreboot.rmk: Likewise.
33538 * conf/i386-efi.rmk: Likewise.
33539 * conf/i386-ieee1275.rmk: Likewise.
33540 * conf/powerpc-ieee1275.rmk: Likewise.
33541 * conf/x86_64-efi.rmk: Likewise.
33542
33543 * include/grub/arg.h: Move from here ...
33544 * include/grub/lib/arg.h: ... to here.
33545
33546 * normal/arg.c: Move from here ...
33547 * lib/arg.c: ... to here.
33548
33549 * commands/extcmd.c: New file.
33550 * commands/minicmd.c: Likewise.
33551 * include/grub/command.h: Likewise.
33552 * include/grub/extcmd.h: Likewise.
33553 * kern/command.c: Likewise.
33554 * kern/corecmd.c: Likewise.
33555
33556 * kern/list.c (grub_list_iterate): Return int instead of void.
33557 (grub_list_insert): New function.
33558 (grub_prio_list_insert): Likewise.
33559
33560 * kern/rescue.c (grub_rescue_command): Removed.
33561 (grub_rescue_command_list): Likewise.
33562 (grub_rescue_register_command): Likewise.
33563 (grub_rescue_unregister_command): Likewise.
33564 (grub_rescue_cmd_boot): Move to minicmd.c
33565 (grub_rescue_cmd_help): Likewise.
33566 (grub_rescue_cmd_info): Likewise.
33567 (grub_rescue_cmd_boot): Likewise.
33568 (grub_rescue_cmd_testload): Likewise.
33569 (grub_rescue_cmd_dump): Likewise.
33570 (grub_rescue_cmd_rmmod): Likewise.
33571 (grub_rescue_cmd_lsmod): Likewise.
33572 (grub_rescue_cmd_exit): Likewise.
33573 (grub_rescue_print_devices): Moved to corecmd.c.
33574 (grub_rescue_print_files): Likewise.
33575 (grub_rescue_cmd_ls): Likewise.
33576 (grub_rescue_cmd_insmod): Likewise.
33577 (grub_rescue_cmd_set): Likewise.
33578 (grub_rescue_cmd_unset): Likewise.
7d074e3c 33579 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 33580 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 33581 commands, remove grub_rescue_register_command calls.
b1b797cb 33582
7d074e3c 33583 * normal/command.c (grub_register_command): Removed.
b1b797cb 33584 (grub_unregister_command): Likewise.
33585 (grub_command_find): Likewise.
33586 (grub_iterate_commands): Likewise.
33587 (rescue_command): Likewise.
33588 (export_command): Moved to corecmd.c.
33589 (set_command): Removed.
33590 (unset_command): Likewise.
33591 (insmod_command): Likewise.
33592 (rmmod_command): Likewise.
33593 (lsmod_command): Likewise.
33594 (grub_command_init): Likewise.
33595
33596 * normal/completion.c (iterate_command): Use cmd->prio to check for
33597 active command.
33598 (complete_arguments): Use grub_extcmd_t structure to find options.
33599 (grub_normal_do_completion): Change function grub_iterate_commands to
33600 grub_command_iterate.
33601
33602 * normal/execute.c (grub_script_execute_cmd): No need to parse
33603 argument here.
33604
33605 * normal/main.c (grub_dyncmd_dispatcher): New function.
33606 (read_command_list): Register unload commands as dyncmd.
33607 (grub_cmd_normal): Use new command interface, register rescue,
33608 unregister normal at entry, register normal, unregister rescue at exit.
33609
33610 * include/grub/list.h (grub_list_test_t): New type.
33611 (grub_list_iterate): Return int instead of void.
33612 (grub_list_insert): New function.
33613 (GRUB_AS_NAMED_LIST_P): New macro.
33614 (GRUB_AS_PRIO_LIST): Likewise.
33615 (GRUB_AS_PRIO_LIST_P): Likewise.
33616 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33617 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33618 (grub_prio_list): New structure.
33619 (grub_prio_list_insert): New function.
33620 (grub_prio_list_remove): New inline function.
33621
33622 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33623 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33624 (GRUB_COMMAND_FLAG_MENU): Likewise.
33625 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33626 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33627 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33628 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33629 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33630 (grub_command): Likewise.
33631 (grub_register_command): Likewise.
33632 (grub_command_find): Likewise.
33633 (grub_iterate_commands): Likewise.
33634 (grub_command_init): Likewise.
33635 (grub_arg_parse): Likewise.
33636 (grub_arg_show_help): Likewise.
33637
33638 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33639 (grub_rescue_unregister_command): Likewise.
33640
33641 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33642 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33643 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33644
33645 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33646 grub_rescue_cmd_initrd.
33647 * include/grub/i386/loader.h: Likewise.
33648 * include/grub/x86_64/loader.h: Likewise.
33649
33650 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33651
1f4147aa 336522009-03-21 Bean <bean123ch@gmail.com>
33653
33654 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33655 instead of stat in mingw environment.
33656
33657 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33658
33659 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33660
33661 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33662 AC_CONFIG_LINKS.
33663
2156d5ba 336642009-03-21 Bean <bean123ch@gmail.com>
33665
33666 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33667 out of range error.
33668
177b82ca 336692009-03-18 Michel Dänzer <michel@daenzer.net>
33670
33671 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33672 checking inode flags for EXT4_EXTENTS_FLAG.
33673
14aad807 336742009-03-18 Robert Millan <rmh@aybabtu.com>
33675
33676 * loader/i386/linux.c: Include `<grub/video.h>' and
33677 `<grub/i386/pc/vbe.h>'..
33678 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33679 (grub_linux32_boot): Attempt to configure video settings with
33680 grub_linux_setup_video().
33681 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33682 to avoid grub_console_fini() which would step out of graphical mode
33683 unconditionally.
33684
8cf83a27 336852009-03-14 Robert Millan <rmh@aybabtu.com>
33686
33687 Fix build on powerpc.
33688 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33689
40164e75 336902009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33691
33692 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33693 background image command.
33694
c58bc32a 336952009-03-12 Colin D Bennett <colin@gibibit.com>
33696
33697 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33698 (grub_gfxterm_putchar): Extract pairs of identical calls to
33699 draw_cursor out of conditional blocks.
33700
5415144a 337012009-03-11 Pavel Roskin <proski@gnu.org>
33702
33703 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33704 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33705
6394042e 337062009-03-11 Robert Millan <rmh@aybabtu.com>
33707
33708 * loader/i386/multiboot_elfxx.c
33709 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33710
b7b50e5f 337112009-03-11 Felix Zielcke <fzielcke@z-51.de>
33712
33713 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33714 `kern/handler.c'.
33715
1ca7fc96 337162009-03-11 Robert Millan <rmh@aybabtu.com>
33717
33718 * loader/i386/multiboot.c (code_size): New variable.
33719 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 33720 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 33721 4-byte alignment to MBI and others by increasing
7d074e3c 33722 `boot_loader_name_length' appropriately.
1ca7fc96 33723
33724 * loader/i386/multiboot_elfxx.c
33725 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33726
a83ea1d2 337272009-03-09 Felix Zielcke <fzielcke@z-51.de>
33728
33729 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33730 `fs/ext2.c'.
33731
aa9f3bff 337322009-03-08 Robert Millan <rmh@aybabtu.com>
33733
33734 Make loader/i386/linux.c usable on i386-pc again.
33735
33736 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33737 memory to heap.
33738 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33739 `#error' stanza.
33740
d8b3b60e 337412009-03-07 Bean <bean123ch@gmail.com>
33742
33743 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33744 allocation.
33745
b362c9e9 337462009-03-06 Robert Millan <rmh@aybabtu.com>
33747
33748 Fix display issue on terminals with screen size other than 80x25
33749 (e.g. gfxterm with resolution higher than 640x480).
33750
33751 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 33752 position relative to the center of the terminal instead of relying
b362c9e9 33753 on a hardcoded offset.
33754
9304eef1 337552009-03-04 Robert Millan <rmh@aybabtu.com>
33756
33757 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33758 installed.
33759
33760 * Makefile.in (host_kernel): New variable.
33761 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33762 scripts instead of just the windows one.
33763 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33764
eabc95fb 337652009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 33766
33767 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33768 `kern/handler.c'.
33769 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33770 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33771 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33773 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33774 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33775
ceb1223c 337762009-03-04 Felix Zielcke <fzielcke@z-51.de>
33777
33778 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33779 or if there's no space for the disk label and print the partition number on a
33780 invalid magic.
33781
4910684a 337822009-03-04 Felix Zielcke <fzielcke@z-51.de>
33783
33784 * util/misc.c: Include <time.h>.
33785 (grub_millisleep): New function.
33786
7e9ca17a 337872009-03-04 Bean <bean123ch@gmail.com>
33788
33789 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33790 another option -mno-red-zone.
33791
33792 * commands/handler.c: Change module description.
33793
33794 * kern/handler.c: Add missing space at the end of description line.
33795
33796 * kern/list.c: Likewise.
33797
f501677c 337982009-03-03 Robert Millan <rmh@aybabtu.com>
33799
33800 Move more components to the relocation area, and fix mbi pointer
33801 handling to use the destination rather than the origin (thanks to
33802 Vladimir Serbinenko for spotting).
33803
33804 * loader/i386/multiboot.c (mbi_dest): New variable.
33805 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33806 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33807 relocation area.
33808
9902d047 338092009-03-01 Bean <bean123ch@gmail.com>
33810
50fb7002 33811 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 33812 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33813 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33814 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33815
33816 * loader/i386/efi/linux.c (acpi_guid): New variable.
33817 (acpi_guid): Likewise.
33818 (EBDA_SEG_ADDR): New constant.
33819 (LOW_MEM_ADDR): Likewise.
33820 (FAKE_EBDA_SEG): Likewise.
33821 (fake_bios_data): New function.
33822 (grub_linux_boot): Call fake_bios_data.
33823
71b9f361 338242009-03-01 Bean <bean123ch@gmail.com>
33825
33826 * commands/terminal.c: Removed.
33827
33828 * commands/handler.c: New file.
33829
33830 * include/grub/list.h: Likewise.
33831
33832 * include/grub/handler.h: Likewise.
33833
33834 * kern/list.c: Likewise.
33835
33836 * kern/handler.c: Likewise.
33837
33838 * kern/term.h: Include header file <grub/handler.h>.
33839 (grub_term_input): Move next field to the beginning.
33840 (grub_term_output): Likewise.
33841 (grub_term_input_class): New variable.
33842 (grub_term_output_class): Likewise.
33843 (grub_term_register_input): Changed to inline function.
33844 (grub_term_register_output): Likewise.
33845 (grub_term_unregister_input): Likewise.
33846 (grub_term_unregister_output): Likewise.
33847 (grub_term_set_current_input): Likewise.
33848 (grub_term_set_current_output): Likewise.
33849 (grub_term_get_current_input): Likewise.
33850 (grub_term_get_current_output): Likewise.
33851 (grub_term_iterate_input): Removed.
33852 (grub_term_iterate_output): Likewise.
33853
33854 * kern/term.c (grub_term_list_input): Removed.
33855 (grub_term_list_output): Likewise.
33856 (grub_term_input_class): New variable.
33857 (grub_term_output_class): Likewise.
50fb7002 33858 (grub_cur_term_input): Change variable as macro.
71b9f361 33859 (grub_cur_term_output): Likewise.
33860 (grub_term_register_input): Removed.
33861 (grub_term_register_output): Likewise.
33862 (grub_term_unregister_input): Likewise.
33863 (grub_term_unregister_output): Likewise.
33864 (grub_term_set_current_input): Likewise.
33865 (grub_term_set_current_output): Likewise.
33866 (grub_term_iterate_input): Likewise.
33867 (grub_term_iterate_output): Likewise.
33868 (grub_term_get_current_input): Likewise.
33869 (grub_term_get_current_output): Likewise.
33870
33871 * util/grub-editenv.c: Include header file <grub/handler.h>.
33872 (grub_term_get_current_input): Removed.
33873 (grub_term_get_current_output): Likewise.
33874 (grub_term_input_class): New variable.
50fb7002 33875 (grub_term_output_class): Likewise.
71b9f361 33876
33877 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33878 (grub_term_get_current_output): Likewise.
33879 (grub_term_input_class): New variable.
50fb7002 33880 (grub_term_output_class): Likewise.
71b9f361 33881
33882 * util/grub-probe.c (grub_term_get_current_input): Removed.
33883 (grub_term_get_current_output): Likewise.
33884 (grub_term_input_class): New variable.
50fb7002 33885 (grub_term_output_class): Likewise.
71b9f361 33886
33887 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33888 (grub_term_get_current_output): Likewise.
33889 (grub_term_input_class): New variable.
50fb7002 33890 (grub_term_output_class): Likewise.
71b9f361 33891
33892 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33893 (terminal_mod_SOURCES): Likewise.
33894 (terminal_mod_CFLAGS): Likewise.
33895 (terminal_mod_LDFLAGS): Likewise.
33896
33897 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33898 handler.c.
33899 (kernel_img_SOURCES): Add list.c and handler.c.
33900 (kernel_img_HEADERS): Add list.h and handler.h.
33901
33902 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33903 handler.c.
33904 (kernel_mod_SOURCES): Add list.c and handler.c.
33905 (kernel_mod_HEADERS): Add list.h and handler.h.
33906
33907 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33908 handler.c.
33909 (kernel_elf_SOURCES): Add list.c and handler.c.
33910 (kernel_elf_HEADERS): Add list.h and handler.h.
33911
33912 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33913 handler.c.
33914 (kernel_elf_SOURCES): Add list.c and handler.c.
33915 (kernel_elf_HEADERS): Add list.h and handler.h.
33916
33917 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33918 handler.c.
33919 (kernel_mod_SOURCES): Add list.c and handler.c.
33920 (kernel_mod_HEADERS): Add list.h and handler.h.
33921
33922 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33923 handler.c.
33924 (kernel_elf_SOURCES): Add list.c and handler.c.
33925 (kernel_elf_HEADERS): Add list.h and handler.h.
33926
8a31787f 339272009-02-27 Robert Millan <rmh@aybabtu.com>
33928
33929 Factorize elf32 / elf64 code in Multiboot loader. This will
33930 prevent it from getting out of sync again.
33931
33932 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33933 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33934 grub_multiboot_load_elf64): Move from here ...
33935 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33936 grub_multiboot_load_elf): ... to here (new file).
33937
51cd3dfc 339382009-02-27 Robert Millan <rmh@aybabtu.com>
33939
33940 * util/grub.d/10_linux.in: Rename "single-user mode" to
33941 "recovery mode".
33942
6e8c9c3a 339432009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33944
33945 Don't leak in SCSI code.
33946 * disk/scsi.c (grub_scsi_close): free `scsi'.
33947
4b6bf4f9 339482009-02-27 Robert Millan <rmh@aybabtu.com>
33949
33950 * loader/i386/pc/multiboot.c: Move from here ...
33951 * loader/i386/multiboot.c: ... to here. Update all users.
33952
b9413424 339532009-02-27 Robert Millan <rmh@aybabtu.com>
33954
33955 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33956 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33957
50fb7002 339582009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 33959
33960 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33961 b-tree.
33962
8cc50345 339632009-02-27 Robert Millan <rmh@aybabtu.com>
33964
33965 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33966 `0x' qualifier as 0 when base is specified as parameter).
33967
6e09b8b7 339682009-02-24 Bean <bean123ch@gmail.com>
33969
33970 * configure.ac: Check for -mcmodel=large in x86_64 target.
33971
33972 * include/grub/efi/api.h (efi_call_10): New macro.
33973 (efi_wrap_10): New function.
33974
33975 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33976 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33977 (GRUB_PE32_REL_BASED_LOW): Likewise.
33978 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33979 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33980 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33981 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33982 (GRUB_PE32_REL_BASED_REL): Likewise.
33983 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33984 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33985 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33986
33987 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33988 issue.
33989
33990 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33991 (efi_wrap_10): New function.
33992
33993 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33994
33995 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33996 MB/MBP model (NV chipset).
33997 (devdata_devs): Add devpath_5 to the list.
33998
33999 * load/i386/efi/linux.c (video_base): Remove variable.
34000 (RGB_MASK): New macro.
34001 (RGB_MAGIC): Likewise.
34002 (LINE_MIN): Likewise.
34003 (LINE_MAX): Likewise.
34004 (FBTEST_STEP): Likewise.
34005 (FBTEST_COUNT): Likewise.
34006 (fb_list): New variable.
34007 (grub_find_video_card): Remove function.
34008 (find_framebuf): New function.
34009 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
34010 line length.
34011
34012 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
34013 problem for x86_64.
34014
74b21bee 340152009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
34016
34017 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
34018
34019 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
34020 coding tool name.
34021
a455f472 340222009-02-22 Robert Millan <rmh@aybabtu.com>
34023
34024 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
34025 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
34026 in our relocation, instead of using it directly from heap. Also
34027 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
34028
6374daf3 340292009-02-21 Robert Millan <rmh@aybabtu.com>
34030
34031 Implement USB keyboard support (based on patch by Marco Gerards)
34032
34033 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
34034 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
34035 (usb_keyboard_mod_LDFLAGS): New variables.
34036
34037 * term/usb_keyboard.c: New file.
34038
8fa4ea70 340392009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
34040
34041 Corrected wrong declaration
34042
34043 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
34044
353976ac 340452009-02-14 Christian Franke <franke@computer.org>
34046
34047 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
34048 (grub_lspci_iter): Print class code and programming interface byte.
34049
6aa1169b 340502009-02-14 Christian Franke <franke@computer.org>
34051
34052 * gendistlist.sh: Ignore `.svn' directories.
34053
265372ca 340542009-02-14 Felix Zielcke <fzielcke@z-51.de>
34055
34056 * fs/fat.c: Add 2009 to Copyright line.
34057
9ff516f3 340582009-02-14 Christian Franke <franke@computer.org>
34059
34060 * commands/hdparm.c: New file. Provides `hdparm' command
34061 which sends ATA commands via grub_disk_ata_pass_through ().
34062
34063 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
34064
34065 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
34066 and <grub/cpu/io.h> to include/grub/ata.h.
34067 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
34068 (GRUB_CDROM_SECTOR_SIZE): Remove.
34069 (GRUB_ATA_*): Move to include/grub/ata.h.
34070 (GRUB_ATAPI_*): Likewise.
34071 (enum grub_ata_commands): Likewise.
34072 (enum grub_ata_timeout_milliseconds): Likewise.
34073 (struct grub_ata_device): Likewise.
34074 (grub_ata_regset): Likewise.
34075 (grub_ata_regget): Likewise.
34076 (grub_ata_regset2): Likewise.
34077 (grub_ata_regget2): Likewise.
34078 (grub_ata_check_ready): Likewise.
34079 (grub_ata_wait_not_busy): Remove static, exported in
34080 include/grub/ata.h.
34081 (grub_ata_wait_drq): Likewise.
34082 (grub_ata_pio_read): Likewise.
34083
34084 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
34085 function for hdparm.mod.
34086
34087 * include/grub/ata.h: New file, contains declarations from
34088 disk/ata.c.
34089 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
34090
34091 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
34092 (grub_disk_ata_pass_through): New exported variable.
34093
34094 * kern/disk.c (grub_disk_ata_pass_through): New variable.
34095
772e23da 340962009-02-13 Colin D Bennett <colin@gibibit.com>
34097
34098 Support multiple fallback entries, and provide an API to support
34099 executing default+fallback menu entries. Renamed the `terminal' menu
34100 viewer to `text'.
34101
34102 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
34103 variable declaration.
34104 (grub_menu_execute_callback): New structure declaration.
34105 (grub_menu_execute_callback_t): New typedef.
34106 (grub_menu_execute_with_fallback): New function declaration.
34107 (grub_menu_get_entry): Likewise.
34108 (grub_menu_get_timeout): Likewise.
34109 (grub_menu_set_timeout): Likewise.
34110
34111 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
34112
34113 * normal/menu.c (grub_wait_after_message): Moved to
34114 `normal/menu_text.c'.
34115 (draw_border): Likewise.
34116 (print_message): Likewise.
34117 (print_entry): Likewise.
34118 (print_entries): Likewise.
34119 (grub_menu_init_page): Likewise.
34120 (get_entry_number): Likewise.
34121 (print_timeout): Likewise.
34122 (run_menu): Likewise.
34123 (grub_menu_execute_entry): Likewise.
34124 (show_text_menu): Likewise.
34125 (get_and_remove_first_entry_number): New function.
34126 (grub_menu_execute_with_fallback): Likewise.
34127 (get_entry): Renamed to ...
34128 (grub_menu_get_entry): .. this and made it global.
34129 (get_timeout): Renamed to ...
34130 (grub_menu_get_timeout): ... this and made it global.
34131 (set_timeout): Renamed to ...
34132 (grub_menu_set_timeout): ... this and made it global.
34133 (grub_normal_terminal_menu_viewer): Renamed to ...
34134 (grub_normal_text_menu_viewer): ... this.
34135
34136 * normal/menu_text.c: New file. Extracted text-menu-specific code
34137 from normal/menu.c.
34138
34139 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
34140 (normal_mod_SOURCES): Likewise.
34141
34142 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34143 (normal_mod_SOURCES): Likewise.
34144
34145 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34146 (normal_mod_SOURCES): Likewise.
34147
34148 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
34149 (normal_mod_SOURCES): Likewise.
34150
34151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34152 (normal_mod_SOURCES): Likewise.
34153
34154 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34155 (normal_mod_SOURCES): Likewise.
34156
34157 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34158 (normal_mod_SOURCES): Likewise.
34159
16ac430e 341602009-02-11 Robert Millan <rmh@aybabtu.com>
34161
34162 * util/grub.d/00_header.in: Update old reference to `font' command.
34163
06ff20fc 341642009-02-10 Felix Zielcke <fzielcke@z-51.de>
34165
34166 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
34167
34168 Based on patch from Javier Martín.
34169
96da9407 341702009-02-09 Felix Zielcke <fzielcke@z-51.de>
34171
34172 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 34173 to avoid false positives with FAT.
96da9407 34174 (grub_fstest_SOURCES): Likewise.
34175 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34176 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34177 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34178 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34179 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34180 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34181
6dca6fe4 341822009-02-09 Felix Zielcke <fzielcke@z-51.de>
34183
06ff20fc 34184 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 34185 bpb.version_specific.fat12_or_fat16.fstype and
34186 bpb.version_specific.fat32.fstype.
34187
2550c62f 341882009-02-08 Robert Millan <rmh@aybabtu.com>
34189
be110b30 34190 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 34191
56978920 341922009-02-08 Robert Millan <rmh@aybabtu.com>
34193
34194 * Makefile.in (host_os, host_cpu): New variables.
34195 (target_os): Remove. Update all users.
34196
d64399b5 341972009-02-08 Marco Gerards <marco@gnu.org>
34198
34199 * Makefile.in (enable_grub_emu_usb): New variable.
34200 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
34201 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
34202 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
34203 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
34204 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
34205 `usbtest.mod' and `usbms.mod'.
34206 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
34207 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
34208 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
34209 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
34210 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
34211 variables.
34212
34213 * disk/usbms.c: New file.
34214
34215 * include/grub/usb.h: Likewise.
34216
34217 * include/grub/usbtrans.h: Likewise.
34218
34219 * include/grub/usbdesc.h: Likewise.
34220
34221 * bus/usb/usbtrans.c: Likewise.
34222
34223 * bus/usb/ohci.c: Likewise.
34224
34225 * bus/usb/uhci.c: Likewise.
34226
34227 * bus/usb/usbhub.c: Likewise.
34228
34229 * bus/usb/usb.c: Likewise.
34230
34231 * commands/usbtest.c: Likewise.
34232
34233 * util/usb.c: Likewise.
50fb7002 34234
d64399b5 34235 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
34236
34237 * configure.ac: Test for libusb presence.
50fb7002 34238
d64399b5 34239 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
34240
2b40d6bb 342412009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
34242
34243 * kern/mm.c: Add more comments.
34244
73a4ce81 342452009-02-08 Robert Millan <rmh@aybabtu.com>
34246
34247 Patch from Javier Martín.
34248 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
34249 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
34250
f821ce59 342512009-02-08 Robert Millan <rmh@aybabtu.com>
34252
34253 * fs/cpio.c: Split tar functionality to ...
34254 * fs/tar.c: ... here (new file). Update all users.
34255
aebfc4b0 342562009-02-07 Robert Millan <rmh@aybabtu.com>
34257
34258 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
34259 backward-incompatible features.
34260
34261 Based on patch from Javier Martín, with some adjustments.
34262
50fb7002 342632009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 34264
34265 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
34266
0bb5115e 342672009-02-07 Robert Millan <rmh@aybabtu.com>
34268
34269 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34270 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34271 after the RAID stuff.
34272
38a0f8e7 342732009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34274
50fb7002 34275 Fixes problem when running vbetest command as reported by
38a0f8e7 34276 Vladimir Serbinenko <phcoder@gmail.com>.
34277
34278 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34279
3143cc1c 342802009-02-04 Felix Zielcke <fzielcke@z-51.de>
34281
34282 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34283 /dev/md/NpN style mdraid devices.
34284
9cba6fce 342852009-02-03 Felix Zielcke <fzielcke@z-51.de>
34286
34287 * util/unifont2pff.rb: Remove.
34288
e507a2c1 342892009-02-03 Felix Zielcke <fzielcke@z-51.de>
34290
34291 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34292 `#'.
34293
d2c2b4cd 342942009-02-03 Felix Zielcke <fzielcke@z-51.de>
34295
34296 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34297 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34298 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34299 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34300 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34301 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34302 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34303
b4315fb0 343042009-02-02 Christian Franke <franke@computer.org>
34305
34306 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34307
de3aa260 343082009-02-01 Felix Zielcke <fzielcke@z-51.de>
34309
7c3ff286 34310 * INSTALL: Note that we now require at least autoconf 2.59 and
34311 that LZO is optional.
de3aa260 34312
825a182b 343132009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34314
34315 Base on patch on bug #24154 created by Tomas Tintera
34316 <trosos@seznam.cz>.
34317
34318 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34319
a69ef770 343202009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34321
7c3ff286 34322 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 34323 <bero@arklinux.org>.
34324
34325 * normal/parser.y (script_init): Add missing semicolon.
34326
6fa42fa6 343272009-01-31 Colin D Bennett <colin@gibibit.com>
34328
7c3ff286 34329 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 34330 (free_menu_entry_classes): Added.
34331 (grub_normal_menu_addentry): Added class property handling.
34332 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34333 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34334
34335 * normal/menu_viewer.c: New file.
34336
34337 * normal/menu.c (run_menu_entry): Renamed to ...
34338 (grub_menu_execute_entry): ... this and made it as global.
34339 (grub_menu_run): Renamed to ...
34340 (show_text_menu): ... this and made it local.
34341 (show_text_menu): Adapt to new function names.
34342 (grub_normal_terminal_menu_viewer): New global variable.
34343
34344 * include/grub/menu.h: New file.
34345
34346 * include/grub/menu_viewer.h: New file.
34347
34348 * include/grub/normal.h: Added include to grub/menu.h.
34349 (grub_menu_entry): Moved to include/grub/menu.h.
34350 (grub_menu_entry_t): Likewise.
34351 (grub_menu): Likewise.
34352 (grub_menu_t): Likewise.
34353 (grub_normal_terminal_menu_viewer): Added.
34354 (grub_menu_execute_entry): Likewise.
34355 (grub_menu_run): Removed.
34356
34357 * DISTLIST: Added include/grub/menu.h.
34358 Added include/grub/menu_viewer.h.
34359 Added normal/menu_viewer.c.
34360
343612009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34362
34363 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34364 arglist for menutitle arguments.
34365
34366 * normal/main.c (grub_normal_menu_addentry): Likewise.
34367
34368 * normal/parser.y (menuentry): Likewise.
34369
34370 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34371
34372 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34373 (grub_script_create_cmdmenu): Likewise.
34374
34375 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34376
34377 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34378 changes.
34379
34380 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34381
34382 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34383
34384 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34385
34386 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34387
34388 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34389
34390 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34391
56192c23 343922009-01-30 Christian Franke <franke@computer.org>
34393
34394 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34395 in option help text.
34396
d72521b3 343972009-01-27 Pavel Roskin <proski@gnu.org>
34398
34399 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34400
994b5e84 344012009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34402
34403 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34404
34405 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34406
34407 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34408 unregister function.
34409
6a7eab2c 344102009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34411
34412 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34413
34414 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34415
34416 * util/grub-mkfont.c (usage): Fix typo.
34417
34418 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34419
1806b56e 344202009-01-26 Daniel Mierswa <impulze@impulze.org>
34421
3fb18f09 34422 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34423
336e1fb9 34424 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34425
1806b56e 34426 * kern/misc.c (grub_strcasecmp): New function.
34427 (grub_strcasecmp): Use grub_size_t instead of int for length.
34428 Fix return value.
34429 * include/grub/misc.h: Update function prototypes.
34430
580b2a0f 344312009-01-26 Robert Millan <rmh@aybabtu.com>
34432
34433 * configure.ac: Fix cross-compilation check.
ef257b36 34434
d31c24f1 344352009-01-22 Christian Franke <franke@computer.org>
34436
34437 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34438 (precision) digit string. Allow `.format2' without `format1' (width).
34439 Limit input chars for `%s' output to `format2' if specified. This is
34440 compatible with standard printf ().
34441
3138b44c 344422009-01-22 Christian Franke <franke@computer.org>
34443
34444 * disk/ata.c (grub_ata_wait_status): Replace by ...
34445 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34446 other status bits may be invalid while BSY is asserted.
34447 (grub_ata_check_ready): New function.
34448 (grub_ata_cmd): Removed.
34449 (grub_ata_wait_drq): New function.
34450 (grub_ata_strncpy): Remove inline.
34451 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34452 and error check now done by grub_ata_wait_drq ().
34453 (grub_ata_pio_write): Likewise.
34454 (grub_atapi_identify): Set DEV before check for !BSY. Use
34455 grub_ata_wait_drq () to wait for data.
34456 (grub_ata_device_initialize): Add status register check to
34457 detect missing SATA slave devices. Add debug messages.
34458 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34459 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34460 transfer loop by grub_ata_pio_write ().
34461 (grub_ata_identify): Set DEV before check for !BSY. Use
34462 grub_ata_wait_drq () to wait for data.
ef257b36 34463 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 34464 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34465 read/write in one loop. Fix invalid command on write. Fix incomplete
34466 command on (size % batch) == 0. Add missing error check after write of
34467 last block. Add debug messages.
34468 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34469
59a64ef6 344702009-01-19 Christian Franke <franke@computer.org>
34471
34472 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34473 (GRUB_ATAPI_IREASON_*): Likewise.
34474 (grub_ata_pio_write): Fix timeout error return.
34475 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34476 (grub_atapi_wait_drq): New function.
34477 (grub_atapi_packet): New parameter `size'.
34478 Use grub_atapi_wait_drq () and direct write instead of
34479 grub_ata_pio_write ().
34480 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34481 reads the number of bytes requested by the device for each DRQ
34482 assertion.
34483 (grub_atapi_write): Remove old implementation, return not
34484 implemented instead.
34485
1cfe20b3 344862009-01-19 Christian Franke <franke@computer.org>
34487
34488 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34489 of 512 to calculate data size.
34490 (grub_scsi_read12): Likewise.
34491 (grub_scsi_write10): Likewise.
34492 (grub_scsi_write12): Likewise.
34493 (grub_scsi_read): Adjust size according to blocksize.
34494 Add checks for invalid blocksize and unaligned transfer.
34495
bee5fe5d 344962009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34497
34498 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34499
ef257b36 34500 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 34501 width glyphs.
34502
3e643f8c 345032009-01-19 Robert Millan <rmh@aybabtu.com>
34504
34505 * config.guess: Update to latest version from config git.
34506 * config.sub: Likewise.
34507
4fa80998 345082009-01-17 Felix Zielcke <fzielcke@z-51.de>
34509
34510 * Makefile.in: Change font compilation to use new grub-mkfont instead
34511 of java version.
34512
34513 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34514 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34515 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34516 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34517 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34518 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34519 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34520 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34521 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34522
7086085b 345232009-01-16 Christian Franke <franke@computer.org>
34524
34525 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34526 (enum grub_ata_timeout_milliseconds): New enum.
34527 (grub_ata_wait_status): Add parameter milliseconds.
34528 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34529 recovery from timed-out commands.
34530 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34531 return grub_errno instead of REG_ERROR.
34532 (grub_ata_pio_write): Add parameter milliseconds.
34533 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34534 Pass milliseconds to grub_ata_wait_status () and
34535 grub_ata_pio_read ().
34536 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34537 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34538 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34539 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34540 It is not suitable for device detection, because DEV bit is ignored,
34541 the command may run too long, and not all devices set the signature
34542 properly.
34543 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34544 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34545 Fix device selection, DEV bit must be set first to address the registers
34546 of the correct device.
34547 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34548 grub_ata_pio_read/write ().
34549 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34550 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34551
4a412913 345522009-01-13 Carles Pina i Estany <carles@pina.cat>
34553
34554 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34555
7795c55e 345562009-01-13 Bean <bean123ch@gmail.com>
d913988c 34557
34558 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34559
7795c55e 345602009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 34561
34562 * Makefile.in: (enable_grub_mkfont): New variable.
34563 (freetype_cflags): Likewise.
34564 (freetype_libs): Likewise.
34565
34566 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34567 (grub_mkfont_SOURCES): New variable.
34568 (grub_mkfont_CFLAGS): Likewise.
34569 (grub_mkfont_LDFLAGS): Likewise.
34570
34571 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34572 library if `--enable-grub-mkfont' is requested.
34573 (enable_grub_mkfont): New variable.
34574 (freetype_cflags): Likewise.
34575 (freetype_libs): Likewise.
34576
34577 * util/grub-mkfont.c: New file.
34578
093af1fe 345792009-01-12 Christian Franke <franke@computer.org>
34580
34581 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34582 mode check. Fix setting of compat_use[].
34583
f36cc108 345842009-01-10 Robert Millan <rmh@aybabtu.com>
34585
34586 Update a few copyright years which we forgot to do in 2008 (only for
34587 files whose changes made in 2008 were copyright-significant)
34588
34589 * Makefile.in: Add 2008 to Copyright line.
34590 * disk/ieee1275/ofdisk.c: Likewise.
34591 * disk/efi/efidisk.c: Likewise.
34592 * kern/dl.c: Likewise.
34593 * kern/sparc64/ieee1275/init.c: Likewise.
34594 * kern/mm.c: Likewise.
34595 * kern/efi/mm.c: Likewise.
34596 * boot/i386/pc/boot.S: Likewise.
34597 * genfslist.sh: Likewise.
34598 * fs/iso9660.c: Likewise.
34599 * fs/hfs.c: Likewise.
34600 * fs/jfs.c: Likewise.
34601 * fs/minix.c: Likewise.
34602 * fs/ufs.c: Likewise.
34603 * gensymlist.sh.in: Likewise.
34604 * genkernsyms.sh.in: Likewise.
34605 * include/grub/misc.h: Likewise.
34606 * include/grub/types.h: Likewise.
34607 * include/grub/symbol.h: Likewise.
34608 * include/grub/elf.h: Likewise.
34609 * include/grub/kernel.h: Likewise.
34610 * include/grub/disk.h: Likewise.
34611 * include/grub/dl.h: Likewise.
34612 * include/grub/i386/linux.h: Likewise.
34613 * include/grub/i386/pc/biosdisk.h: Likewise.
34614 * include/grub/efi/api.h: Likewise.
34615 * include/grub/efi/pe32.h: Likewise.
34616 * include/grub/util/misc.h: Likewise.
34617 * normal/execute.c: Likewise.
34618 * normal/arg.c: Likewise.
34619 * normal/completion.c: Likewise.
34620 * normal/lexer.c: Likewise.
34621 * normal/parser.y: Likewise.
34622 * normal/misc.c: Likewise.
34623 * commands/i386/pc/vbeinfo.c: Likewise.
34624 * commands/hexdump.c: Likewise.
34625 * commands/terminal.c: Likewise.
34626 * commands/ls.c: Likewise.
34627 * commands/help.c: Likewise.
34628 * partmap/pc.c: Likewise.
34629 * loader/efi/chainloader.c: Likewise.
34630 * loader/multiboot_loader.c: Likewise.
34631 * loader/i386/pc/multiboot2.c: Likewise.
34632 * term/efi/console.c: Likewise.
34633 * term/i386/pc/serial.c: Likewise.
34634 * util/lvm.c: Likewise.
34635 * util/console.c: Likewise.
34636 * util/i386/efi/grub-mkimage.c: Likewise.
34637 * util/raid.c: Likewise.
34638
7f02114b 346392009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34640
34641 * commands/videotest.c: Removed include to grub/machine/memory.h.
34642
34643 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34644 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34645 (video_mod_SOURCES): Removed.
34646 (video_mod_CFLAGS): Likewise.
34647 (video_mod_LDFLAGS): Likewise.
34648 (gfxterm_mod_SOURCES): Likewise.
34649 (gfxterm_mod_CFLAGS): Likewise.
34650 (gfxterm_mod_LDFLAGS): Likewise.
34651 (videotest_mod_SOURCES): Likewise.
34652 (videotest_mod_CFLAGS): Likewise.
34653 (videotest_mod_LDFLAGS): Likewise.
34654 (bitmap_mod_SOURCES): Likewise.
34655 (bitmap_mod_CFLAGS): Likewise.
34656 (bitmap_mod_LDFLAGS): Likewise.
34657 (tga_mod_SOURCES): Likewise.
34658 (tga_mod_CFLAGS): Likewise.
34659 (tga_mod_LDFLAGS): Likewise.
34660 (jpeg_mod_SOURCES): Likewise.
34661 (jpeg_mod_CFLAGS): Likewise.
34662 (jpeg_mod_LDFLAGS): Likewise.
34663 (png_mod_SOURCES): Likewise.
34664 (png_mod_CFLAGS): Likewise.
34665 (png_mod_LDFLAGS): Likewise.
34666
34667 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34668 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34669 (video_mod_SOURCES): Added.
34670 (video_mod_CFLAGS): Likewise.
34671 (video_mod_LDFLAGS): Likewise.
34672 (videotest_mod_SOURCES): Likewise.
34673 (videotest_mod_CFLAGS): Likewise.
34674 (videotest_mod_LDFLAGS): Likewise.
34675 (bitmap_mod_SOURCES): Likewise.
34676 (bitmap_mod_CFLAGS): Likewise.
34677 (bitmap_mod_LDFLAGS): Likewise.
34678 (tga_mod_SOURCES): Likewise.
34679 (tga_mod_CFLAGS): Likewise.
34680 (tga_mod_LDFLAGS): Likewise.
34681 (jpeg_mod_SOURCES): Likewise.
34682 (jpeg_mod_CFLAGS): Likewise.
34683 (jpeg_mod_LDFLAGS): Likewise.
34684 (png_mod_SOURCES): Likewise.
34685 (png_mod_CFLAGS): Likewise.
34686 (png_mod_LDFLAGS): Likewise.
34687 (gfxterm_mod_SOURCES): Likewise.
34688 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 34689 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 34690
34691 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34692 grub/machine/console.h.
34693
644fff97 346942009-01-04 Jerone Young <jerone@gmail.com>
34695
34696 Make on screen instructions clearer
34697
34698 Based on patch created by Jidanni <jidanni@jidanni.org>
34699
34700 * normal/menu.c: print clearer instructions on the screen
34701
1e901a75 347022009-01-02 Colin D Bennett <colin@gibibit.com>
34703
34704 New font engine.
34c44600 34705
1e901a75 34706 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34707 build system and fixed gfxterm.c to work with different sized fonts.
34708
34709 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 34710
1e901a75 34711 * configure: Re-generated.
34c44600 34712
1e901a75 34713 * DISTLIST: Removed font/manager.c.
34714 Added font/font.c.
34715 Added font/font_cmd.c.
34c44600 34716
1e901a75 34717 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34718 compilation.
34c44600 34719
1e901a75 34720 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 34721
34722 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 34723
34724 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 34725
1e901a75 34726 * normal/menu.c: Likewise.
34c44600 34727
1e901a75 34728 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34729 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 34730
1e901a75 34731 * include/grub/font.h: Replaced with new file.
34c44600 34732
1e901a75 34733 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34734 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34735 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34736 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34737 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 34738 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 34739 fg_red, fg_green, fg_blue, fg_alpha.
34740 (grub_video_adapter): Removed blit_glyph.
34c44600 34741 (grub_video_blit_glyph): Removed.
34742
1e901a75 34743 * font/manager.c: Removed file.
34c44600 34744
34745 * font/font.c: New file.
34746
1e901a75 34747 * font/font_cmd.c: Likewise.
34c44600 34748
1e901a75 34749 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 34750
1e901a75 34751 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34752 (grub_video_vbe_map_rgba): Likewise.
34753 (grub_video_vbe_unmap_color_int): Likewise.
34754 (grub_video_vbe_blit_glyph): Removed.
34755 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 34756
1e901a75 34757 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34758 (get_pixel): Likewise.
34c44600 34759 (set_pixel): Likewise.
34760
1e901a75 34761 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 34762
1e901a75 34763 * term/gfxterm.c: Adapted to new font engine.
34c44600 34764
1e901a75 34765 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 34766
1e901a75 34767 * term/i386/pc/vga.c: Likewise.
34c44600 34768
1e901a75 34769 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 34770
1e901a75 34771 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 34772
1e901a75 34773 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34774
1e901a75 34775 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34776
1e901a75 34777 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 34778
1e901a75 34779 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 34780
1e901a75 34781 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 34782
1e901a75 34783 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 34784
1e901a75 34785 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34786
34787 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 34788
1e901a75 34789 * util/grub-mkconfig_lib.in: Changed font extension.
34790
278922e8 347912008-12-28 Felix Zielcke <fzielcke@z-51.de>
34792
34793 * util/getroot.c (grub_util_get_grub_dev): Add support for
34794 /dev/md/dNNpNN style partitionable mdraid devices.
34795
3ced05cf 347962008-12-12 Alex Smith <alex@alex-smith.me.uk>
34797
34798 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34799 at a time limit of the PXE TFTP API correctly.
34800 (grub_pxefs_close): Likewise.
34801
7fd0ee30 348022008-11-29 Robert Millan <rmh@aybabtu.com>
34803
34c44600 34804 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 34805 grub_ata_device_initialize() calls.
34806
34c44600 348072008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 34808
34809 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34810 iteration failed.
34811 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34812
89313780 348132008-11-28 Robert Millan <rmh@aybabtu.com>
34814
34815 Fix build on powerpc-ieee1275. Based on patch created by
34816 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34817 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34818 `kern/ieee1275/mmap.c'.
34819 * include/grub/powerpc/ieee1275/memory.h: New file.
34820
15257703 34821 Provide grub-install on coreboot.
34822 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34823 (grub_install_SOURCES): New variable.
34824 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34825 usable on coreboot.
34826
9fc5388a 348272008-11-25 Felix Zielcke <fzielcke@z-51.de>
34828
34829 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34830 to `grub_term_input_t'.
34831 (grub_term_get_current_output): Change return type to
34832 `grub_term_output_t'.
34833
bc3a2f31 348342008-11-22 Robert Millan <rmh@aybabtu.com>
34835
34c44600 34836 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 34837 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34838 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34839 grub_vga_text_cls().
34840
80fc88f2 34841 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 34842 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 34843
cbf36fd3 34844 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34845 to 0x200000 (avoids trouble with some OFW implementations, and matches
34846 with the one in Yaboot).
34847 Reported by Manoel Abranches
34848
73e8e268 348492008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 34850
34851 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34852 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34853
73e8e268 34854 * util/grub-mkconfig_lib.in (grub_warn): New function.
34855 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34856 warnings, to obtain consistent formatting.
34857 * util/grub.d/00_header.in: Likewise.
34858 * util/update-grub_lib.in: Likewise.
34859
e94045a1 34860 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 34861 Move comment text to `#error' stanza.
e94045a1 34862
79d29fd7 34863 Harmonize ieee1275's grub_available_iterate() with the generic
34864 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34865 build problem on i386-ieee1275):
34866 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34867 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34868 parameter `type'. Update all users of this function.
34869 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34870 `kern/ieee1275/mmap.c'.
34871 * kern/ieee1275/init.c
34872 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34873 with ...
34874 (grub_machine_mmap_iterate): ... this.
34875 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34876 return type to `grub_err_t'. Update all implementations of this
34877 function prototype.
34878 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34879 Likewise.
34880
60d6b16e 34881 Add `lsmmap' command (lists firmware-provided memory map):
34882 * commands/lsmmap.c: New file.
34883 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34884 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34885 variables.
34886 * conf/powerpc-ieee1275.rmk: Likewise.
34887 * conf/i386-coreboot.rmk: Likewise.
34888 * conf/i386-ieee1275.rmk: Likewise.
34889
ebaaf49b 348902008-11-19 Robert Millan <rmh@aybabtu.com>
34891
34892 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 34893 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34894 constraints to initrd allocation (based on code from
34895 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34896 for Linux to find it.
ebaaf49b 34897
dfab719f 348982008-11-14 Robert Millan <rmh@aybabtu.com>
34899
34900 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34901 order to cope with duplicate slashes.
34902
10fc3eb9 349032008-11-14 Robert Millan <rmh@aybabtu.com>
34904
34905 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34906 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34907 don't want to mess with lower memory, because it is used in the Linux
34908 loader.
34909
34910 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 34911 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 34912 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34913 is in our heap (probably as a result of it being corrupted during
2f2a3442 34914 decompression). Add #error instance with comment to explain why this
34915 loader isn't currently usable on PC/BIOS.
10fc3eb9 34916
e2e07847 349172008-11-14 Robert Millan <rmh@aybabtu.com>
34918
34919 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 34920 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 34921
fe8e8d69 349222008-11-12 Robert Millan <rmh@aybabtu.com>
34923
34924 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34925
34926 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34927 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34928 from here ...
34929 * include/grub/i386/pc/memory.h: ... to here.
34930
976b07d0 349312008-11-12 Robert Millan <rmh@aybabtu.com>
34932
34933 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34934 split).
34935
34936 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34937 (grub_console_cur_color, grub_console_real_putchar)
34938 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34939 (grub_console_setcolorstate, grub_console_setcolor)
34940 (grub_console_getcolor): Move from here ...
34941 * include/grub/i386/vga_common.h: ... to here (new file).
34942
34943 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34944 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34945 `<grub/i386/io.h>'.
34946 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34947 `<grub/i386/vga_common.h>'.
34948
76679cd3 349492008-11-12 Robert Millan <rmh@aybabtu.com>
34950
34951 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34952 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34953 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34954 variables.
34955 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34956 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34957
34958 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34959 grub_console_init() with call to grub_vga_text_init().
34960 (grub_machine_fini): Replace call to
34961 grub_console_fini() with call to grub_vga_text_fini() and
34962 grub_at_keyboard_fini().
34963
34964 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34965 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34966 (grub_console_setcolorstate, grub_console_setcolor)
34967 (grub_console_getcolor): New function prototypes.
34968
34969 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34970 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34971 (grub_vga_text_setcursor): Static-ize.
34972 (grub_vga_text_term): New structure.
34973 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34974
34975 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34976 (grub_console_cur_color, grub_console_standard_color)
34977 (grub_console_normal_color, grub_console_highlight_color)
34978 (map_char, grub_console_putchar, grub_console_getcharwidth)
34979 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34980 (grub_console_getcolor): Move from here ...
34981 * term/i386/vga_common.c: ... to here (same function names).
34982
95b841d3 349832008-11-12 Robert Millan <rmh@aybabtu.com>
34984
34985 Use newly-added Multiboot support in coreboot.
34986
34987 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34988 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34989
34990 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34991 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34992 (codestart): Store the MBI in `startup_multiboot_info' when we're
34993 being loaded using Multiboot.
34994
34995 * kern/i386/coreboot/init.c (grub_machine_init): Move
34996 grub_at_keyboard_init() call to beginning of function (useful for
34997 debugging). Call grub_machine_mmap_init() before attempting to use
34998 grub_machine_mmap_iterate().
34999 (grub_lower_mem, grub_upper_mem): Move from here ...
35000 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
35001 here (new file).
35002
35003 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
35004 function prototype.
35005
761ca975 350062008-11-12 Robert Millan <rmh@aybabtu.com>
35007
35008 Fix a regression introduced by the at_keyboard.mod split. Because
35009 some terminals are default on some platforms and non-default on
35010 others, the first terminal being registered determines which is
35011 going to be default.
35012
35013 * kern/term.c (grub_term_register_input): If this is the first
35014 terminal being registered, set it as the current one.
35015 (grub_term_register_output): Likewise.
35016
35017 * term/efi/console.c (grub_console_init): Do not call
35018 grub_term_set_current_output() or grub_term_set_current_input().
35019 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
35020 * term/i386/pc/console.c (grub_console_init): Likewise.
35021 (grub_console_fini): Do not call grub_term_set_current_input()
35022 (but leave grub_term_set_current_output() to restore text mode).
35023
6c529df7 350242008-11-10 Robert Millan <rmh@aybabtu.com>
35025
35026 * util/grub.d/00_header.in: Add backward compatibility check for
35027 versions of terminal.mod that don't understand `terminal_input' or
35028 `terminal_output'.
35029
132e4113 350302008-11-09 Robert Millan <rmh@aybabtu.com>
35031
35032 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
35033 `terminal_input' / `terminal_output', not `terminal'.
35034
ac293d50 350352008-11-08 Robert Millan <rmh@aybabtu.com>
35036
35037 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 35038 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 35039
0025933a 350402008-11-08 Robert Millan <rmh@aybabtu.com>
35041
35042 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 35043 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 35044 members. Update all users.
35045 * util/console.c (grub_ncurses_term): Split in ...
35046 (grub_ncurses_term_input): ... this, and ...
35047 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 35048 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 35049
37c86336 350502008-11-08 Robert Millan <rmh@aybabtu.com>
35051
35052 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
35053 (PKGDATA): Add $(pkgdata_SRCDIR).
35054 (pkglib_BUILDDIR): New variable.
35055 (pkgdata_SRCDIR): New variable.
35056 (build_env.mk): New target.
35057 (include_DATA): New variable.
35058 (install-local): Install $(include_DATA) files in $(includedir).
35059
b6c15a2d 350602008-11-07 Pavel Roskin <proski@gnu.org>
35061
d99d46f1 35062 * gendistlist.sh: Use C locale for sorting to ensure consistent
35063 output on all systems.
35064
b6c15a2d 35065 * util/grub.d/00_header.in: Remove incorrect space before
35066 "serial".
35067
c32ee8c9 350682008-11-07 Robert Millan <rmh@aybabtu.com>
35069
35070 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
35071 per specification.
35072 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
35073 * loader/multiboot_loader.c (find_multi_boot2_header): New function
35074 (based on find_multi_boot1_header).
35075 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
35076 using find_multi_boot2_header(), and abort if neither Multiboot or
35077 Multiboot headers were found.
35078
651c29b7 350792008-11-07 Robert Millan <rmh@aybabtu.com>
35080
35081 Modularize at_keyboard.mod:
35082
35083 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
35084 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
35085 (at_keyboard_mod_LDFLAGS): New variables.
35086
35087 Actual terminal split:
35088
35089 * include/grub/term.h (struct grub_term): Split in ...
35090 (struct grub_term_input): ... this, and ...
35091 (struct grub_term_output): ... this. Update all users.
35092 (grub_term_set_current): Split in ...
35093 (grub_term_set_current_input): ... this, and ...
35094 (grub_term_set_current_output): ... this.
35095 (grub_term_get_current): Split in ...
35096 (grub_term_get_current_input): ... this, and ...
35097 (grub_term_get_current_output): ... this.
35098 (grub_term_register): Split in ...
35099 (grub_term_register_input): ... this, and ...
35100 (grub_term_register_output): ... this.
35101 (grub_term_unregister): Split in ...
35102 (grub_term_unregister_input): ... this, and ...
35103 (grub_term_unregister_output): ... this.
35104 (grub_term_iterate): Split in ...
35105 (grub_term_iterate_input): ... this, and ...
35106 (grub_term_iterate_output): ... this.
35107
35108 * kern/term.c (grub_term_list): Split in ...
35109 (grub_term_list_input): ... this, and ...
35110 (grub_term_list_output): ... this. Update all users.
35111 (grub_cur_term): Split in ...
35112 (grub_cur_term_input): ... this, and ...
35113 (grub_cur_term_output): ... this. Update all users.
35114 (grub_term_set_current): Split in ...
35115 (grub_term_set_current_input): ... this, and ...
35116 (grub_term_set_current_output): ... this.
35117 (grub_term_get_current): Split in ...
35118 (grub_term_get_current_input): ... this, and ...
35119 (grub_term_get_current_output): ... this.
35120 (grub_term_register): Split in ...
35121 (grub_term_register_input): ... this, and ...
35122 (grub_term_register_output): ... this.
35123 (grub_term_unregister): Split in ...
35124 (grub_term_unregister_input): ... this, and ...
35125 (grub_term_unregister_output): ... this.
35126 (grub_term_iterate): Split in ...
35127 (grub_term_iterate_input): ... this, and ...
35128 (grub_term_iterate_output): ... this.
35129
35130 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
35131 a check for input and one for output (and only attempt to get keys
35132 from user when input works).
35133
35134 * util/grub-probe.c (grub_term_get_current): Split in ...
35135 (grub_term_get_current_input): ... this, and ...
35136 (grub_term_get_current_output): ... this.
35137 * util/grub-fstest.c: Likewise.
35138 * util/i386/pc/grub-setup.c: Likewise.
35139 * util/grub-editenv.c: Likewise.
35140
35141 Portability adjustments:
35142
35143 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
35144 `term/i386/pc/at_keyboard.c'.
35145 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
35146 grub_keyboard_controller_init() (now handled by terminal .init).
35147 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
35148 grub_at_keyboard_init().
35149 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
35150 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
35151 at_keyboard.mod via input terminal interface).
35152 * include/grub/i386/coreboot/console.h: Convert into a stub for
35153 `<grub/i386/pc/console.h>'.
35154
35155 Migrate full terminals to new API:
35156
35157 * term/efi/console.c (grub_console_term): Split into ...
35158 (grub_console_term_input): ... this, and ...
35159 (grub_console_term_output): ... this. Update all users.
35160 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
35161 (grub_ofconsole_init): Split into ...
35162 (grub_ofconsole_init_input): ... this, and ...
35163 (grub_ofconsole_init_output): ... this.
35164 (grub_ofconsole_term): Split into ...
35165 (grub_ofconsole_term_input): ... this, and ...
35166 (grub_ofconsole_term_output): ... this. Update all users.
35167 * term/i386/pc/serial.c (grub_serial_term): Split into ...
35168 (grub_serial_term_input): ... this, and ...
35169 (grub_serial_term_output): ... this. Update all users.
35170 * term/i386/pc/console.c (grub_console_term): Split into ...
35171 (grub_console_term_input): ... this, and ...
35172 (grub_console_term_output): ... this. Update all users.
35173 (grub_console_term_input): Only enable it on PC/BIOS platform.
35174 (grub_console_init): Remove grub_keyboard_controller_init() call.
35175
35176 Migrate input terminals to new API:
35177
35178 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
35179 `i386' and `i386/pc' to enable build on x86_64 (this driver is
35180 i386-specific anyway).
35181 (grub_console_checkkey): Rename to ...
35182 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
35183 users.
35184 (grub_keyboard_controller_orig): New variable.
35185 (grub_console_getkey): Rename to ...
35186 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
35187 users.
35188 (grub_keyboard_controller_init): Static-ize. Save original
35189 controller value so that it can be restored ...
35190 (grub_keyboard_controller_fini): ... here (new function).
35191 (grub_at_keyboard_term): New structure.
35192 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
35193 functions.
35194
35195 Migrate output terminals to new API:
35196
35197 * term/i386/pc/vga.c (grub_vga_term): Change type to
35198 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35199 members. Update all users.
35200 * term/gfxterm.c (grub_video_term): Change type to
35201 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35202 members. Update all users.
35203 * include/grub/i386/pc/console.h (grub_console_checkkey)
35204 (grub_console_getkey): Do not export (no longer needed by gfxterm,
35205 etc).
35206
35207 Migrate `terminal' command and userland tools to new API:
35208
35209 * commands/terminal.c (grub_cmd_terminal): Split into ...
35210 (grub_cmd_terminal_input): ... this, and ...
35211 (grub_cmd_terminal_output): ... this.
35212 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
35213 `terminal_input' and `terminal_output'.
35214 * util/grub.d/00_header.in: Adjust `terminal' calls to new
35215 `terminal_input' / `terminal_output' API.
35216 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
35217 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
35218 provided ${GRUB_TERMINAL}, convert it).
35219
96e5d876 352202008-11-04 Robert Millan <rmh@aybabtu.com>
35221
35222 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
35223 for FreeBSD.
35224 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
35225
556f3775 352262008-11-03 Bean <bean123ch@gmail.com>
35227
35228 * kern/elf.c (grub_elf32_load): Revert to previous code.
35229 (grub_elf64_load): Likewise.
35230
35231 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
35232
926b9823 352332008-11-01 Robert Millan <rmh@aybabtu.com>
35234
35235 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
35236 (TARGET_CPPFLAGS): Likewise.
35237 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
35238
1432e958 352392008-11-01 Carles Pina i Estany <carles@pina.cat>
35240
35241 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
35242
dba3f844 352432008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 35244
35245 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
35246 addition of objects until the code is not going to be able to fail.
35247
dba3f844 352482008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 35249
35250 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
35251 (add a missing NULL check, and correct them by moving the pointer
35252 operations after the actual check).
35253
7ab28c21 352542008-10-29 Robert Millan <rmh@aybabtu.com>
35255
35256 * util/i386/pc/grub-install.in: Handle empty string as output from
35257 make_system_path_relative_to_its_root().
35258
1b7748eb 352592008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
35260
35261 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
35262 circular metadata worst case scenario. If the metadata is circular
35263 then copy the wrap in place.
35264 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
35265 project lib/format_text/layout.h
35266 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35267
c9618ab2 352682008-10-03 Felix Zielcke <fzielcke@z-51.de>
35269
7a36edca 35270 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 35271
bf981c62 352722008-10-03 Felix Zielcke <fzielcke@z-51.de>
35273
35274 * util/update-grub_lib.in: Mention filename in warning message.
35275
6d994591 352762008-09-29 Felix Zielcke <fzielcke@z-51.de>
35277
35278 * NEWS: Update for rename of update-grub to grub-mkconfig.
35279
18ade780 352802008-09-29 Felix Zielcke <fzielcke@z-51.de>
35281
35282 * util/update-grub_lib.in: Copy to ...
35283 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 35284 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 35285 * util/update-grub.in: Rename to ...
35286 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35287 option. Add `--output' option to allow users to specify the generated
35288 configuration file. Default to stdout.
35289 (update_grub_dir): Rename to ...
35290 (grub_mkconfig_dir): ... this.
35291 (grub_cfg): Default to an empty string.
35292 * conf/common.rmk (update-grub): Rename to ...
35293 (grub-mkconfig): ... this.
35294 (update-grub_lib): Copy to ...
35295 (grub-mkconfig_lib): ... this.
35296 (update-grub_SCRIPTS): Copy to ...
35297 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35298 (update-grub_DATA): Rename to ...
35299 (grub-mkconfig_DATA): ... this.
35300
556ce6ac 353012008-09-28 Robert Millan <rmh@aybabtu.com>
35302
35303 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35304 to `modified'. Add the real `created' field.
35305 (grub_iso9660_uuid): Use `modified' rather than `created' for
35306 constructing the UUID.
35307
353082008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 35309
35310 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35311 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35312
92274e85 353132008-09-28 Bean <bean123ch@gmail.com>
35314
35315 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35316 Thanks to Christian Franke for finding this bug.
35317
add6f17a 353182008-09-25 Robert Millan <rmh@aybabtu.com>
35319
35320 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35321 instances of grub_util_get_disk_name() (see previous commit).
35322
d2a367b8 353232008-09-25 Robert Millan <rmh@aybabtu.com>
35324
35325 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35326 `util/i386/get_disk_name.c'.
35327 * conf/i386-efi.rmk: Likewise.
35328 * conf/x86_64-efi.rmk: Likewise.
35329 * conf/i386-coreboot.rmk: Likewise.
35330 * conf/i386-ieee1275.rmk: Likewise.
35331 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35332 `util/ieee1275/get_disk_name.c'.
35333 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35334 * util/ieee1275/get_disk_name.c: Remove file.
35335 * util/i386/get_disk_name.c: Remove file.
35336 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35337 "hd%d" for device.map entries, rather than using
35338 grub_util_get_disk_name().
35339
81a06771 353402008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 35341
35342 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35343 warning.
35344 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35345
5a004279 353462008-09-24 Carles Pina i Estany <carles@pina.cat>
35347
35348 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35349 Changed to 0x5100.
35350 (GRUB_TERM_PPAGE): Changed to 0x4900.
35351
397093d3 353522008-09-24 Robert Millan <rmh@aybabtu.com>
35353
35354 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35355 macros (they were i386-pc specific).
35356 * include/grub/sparc64/ieee1275/console.h: Likewise.
35357 * include/grub/efi/console.h: Likewise.
35358
a91b6c7c 353592008-09-22 Bean <bean123ch@gmail.com>
35360
35361 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35362 resident and in attribute list.
35363
35364 * include/grub/ntfs.h (BMP_LEN): Removed.
35365
c40fd116 353662008-09-22 Bean <bean123ch@gmail.com>
35367
81a06771 35368 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 35369 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35370
35371 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35372 error occurs, as grub_disk_open will call grub_disk_close, which will
35373 call p->close (scsi).
35374
81a06771 353752008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 35376
35377 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35378 (AC_PREREQ): Bumped to 2.59.
35379 (AC_TRY_COMPILE): Replace obsolete macro with ...
35380 (AC_COMPILE_IFELSE): ... this.
35381 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35382 (AC_LINK_IFELSE): ... this.
35383
5dc43410 353842008-09-21 Felix Zielcke <fzielcke@z-51.de>
35385
35386 * autogen.sh: Add a call to `gendistlist.sh'.
35387
9035dce4 353882008-09-19 Christian Franke <franke@computer.org>
35389
35390 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35391 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35392 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35393 Export __enable_execute_stack() to modules.
35394 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35395 New function.
35396
7fd75377 353972008-09-09 Felix Zielcke <fzielcke@z-51.de>
35398
040030b3 35399 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35400 Sort the list.
35401
354022008-09-09 Felix Zielcke <fzielcke@z-51.de>
35403
35404 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 35405 #include <grub/util/hostdisk.h>.
35406
89d5ffcf 354072008-09-08 Robert Millan <rmh@aybabtu.com>
35408
35409 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35410 segments when their filesz is zero (grub_file_read() interprets
81a06771 35411 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 35412 Use `lowest_segment' rather than 0 for calculating the current
35413 segment load address.
35414
40da438f 354152008-09-08 Robert Millan <rmh@aybabtu.com>
35416
35417 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35418 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35419 clobbered useful information.
35420
ddbf5556 354212008-09-08 Robert Millan <rmh@aybabtu.com>
35422
35423 * include/grub/util/biosdisk.h: Move to ...
35424 * include/grub/util/hostdisk.h: ... here. Update all users.
35425 * util/biosdisk.c: Move to ...
35426 * util/hostdisk.c: ... here. Update all users.
35427
783d0f48 354282008-09-07 Robert Millan <rmh@aybabtu.com>
35429
35430 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35431 variables.
35432 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35433 and length can be stored directly in the `mbi->mmap_addr' and
35434 `mbi->mmap_length' struct fields.
35435
548e2ea5 354362008-09-07 Robert Millan <rmh@aybabtu.com>
35437
35438 * conf/i386.rmk: New file. Provides declaration for building
35439 `cpuid.mod'.
35440 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35441 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35442 variables.
35443 Include `conf/i386.mk'.
35444 * conf/i386-efi.rmk: Likewise.
35445 * conf/x86_64-efi.rmk: Likewise.
35446 * conf/i386-coreboot.rmk: Likewise.
35447 * conf/i386-ieee1275.rmk: Likewise.
35448
0ea85a37 354492008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35450
35451 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35452 Adds optimization support for BGR based modes.
35453
35454 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35455 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35456 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35457 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35458 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35459 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35460 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35461 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35462 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35463 (grub_video_i386_vbeblit_index_index): Likewise.
35464 (grub_video_i386_vbeblit_replace_directN): Added.
35465 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35466 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35467 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35468 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35469 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35470 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 35471 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 35472 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35473 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35474 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35475 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35476 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35477 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35478
35479 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35480 (grub_video_i386_vbefill_R8G8B8): Likewise.
35481 (grub_video_i386_vbefill_index): Likewise.
35482 (grub_video_i386_vbefill_direct32): Added.
35483 (grub_video_i386_vbefill_direct24): Likewise.
35484 (grub_video_i386_vbefill_direct16): Likewise.
35485 (grub_video_i386_vbefill_direct8): Likewise.
35486
81a06771 35487 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 35488 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35489 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35490 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35491 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35492 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 35493
0ea85a37 35494 * video/video.c (grub_video_get_blit_format): Updated to use new
35495 blit formats. Added handling for 16 bit color modes.
81a06771 35496
35497 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 35498 fillers.
35499 (common_blitter): Updated to use new blitters.
35500
35501 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35502 Removed.
35503 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35504 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35505 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35506 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35507 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35508 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35509 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35510 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35511 (grub_video_i386_vbeblit_index_index): Likewise.
35512 (grub_video_i386_vbeblit_replace_directN): Added.
35513 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35514 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35515 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35516 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35517 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35518 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35519 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35520 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35521 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35522 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35523 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35524 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35525 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 35526
0ea85a37 35527 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35528 (grub_video_i386_vbefill_R8G8B8): Likewise.
35529 (grub_video_i386_vbefill_index): Likewise.
35530 (grub_video_i386_vbefill_direct32): Added.
35531 (grub_video_i386_vbefill_direct24): Likewise.
35532 (grub_video_i386_vbefill_direct16): Likewise.
35533 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 35534
0ea85a37 35535 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35536 types.
81a06771 35537
0ea85a37 35538 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35539 types.
81a06771 35540
0ea85a37 35541 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35542 blitter types.
81a06771 35543
0ea85a37 35544 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35545 types.
35546
e8a83df6 355472008-09-06 Felix Zielcke <fzielcke@z-51.de>
35548
35549 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35550 RAID level 1.
35551
6bcd8ee5 355522008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 35553
6bcd8ee5 35554 * fs/iso9660.c (grub_iso9660_date): New structure.
35555 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35556 (grub_iso9660_uuid): New function.
c375ae58 35557
59261157 355582008-09-05 Bean <bean123ch@gmail.com>
35559
35560 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35561
35562 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35563 insensitive bit for names in Win32 and Win32 & DOS namespace.
35564
35565 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35566
35567 * include/grub/types.h (LONG_MAX): Likewise.
35568
58b6645a 355692008-09-04 Felix Zielcke <fzielcke@z-51.de>
35570
4ee55921 35571 * util/getroot.c: Include <config.h>.
35572 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35573 add support for /dev/md/N devices and handle LVM double dash escaping.
35574
355752008-09-04 Felix Zielcke <fzielcke@z-51.de>
35576
35577 * config.guess: Update to latest version from config git.
35578 * config.sub: Likewise.
58b6645a 35579
9124f65d 355802008-09-03 Robert Millan <rmh@aybabtu.com>
35581
35582 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35583 `disk->total_sectors'.
35584
81a06771 355852008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 35586
35587 * include/grub/normal.h: Fixed incorrect comment for
35588 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35589
81a06771 355902008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 35591
35592 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35593 values with defines.
35594
35595 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35596 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35597 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35598 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35599 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35600 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35601 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35602 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35603 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35604 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35605 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35606 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35607 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35608 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35609 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35610 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35611 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35612 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35613 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35614
93d5cbf8 356152008-08-31 Robert Millan <rmh@aybabtu.com>
35616
35617 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35618 declaration.
35619 (grub_multiboot): Fix a few warnings.
35620
21751d50 356212008-08-31 Robert Millan <rmh@aybabtu.com>
35622
35623 * loader/i386/pc/multiboot.c: Update comment not to say that
35624 boot_device support is unimplemented.
35625
e27a75c5 356262008-08-31 Robert Millan <rmh@aybabtu.com>
35627
35628 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35629 or memory map support are unimplemented.
35630
81a06771 356312008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 35632
35633 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35634
81a06771 356352008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 35636
35637 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35638 total video memory in 'vbeinfo' output; show color format details for
35639 each video mode.
35640
7c5d8d95 356412008-08-30 Pavel Roskin <proski@gnu.org>
35642
35643 * util/genmoddep.c: Remove for real this time.
35644 * DISTLIST: Remove util/genmoddep.c.
35645
4cebd25a 356462008-08-30 Robert Millan <rmh@aybabtu.com>
35647
35648 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35649 as required by Multiboot spec (it was already 4-byte aligned, but
35650 only by chance).
35651
b497a269 356522008-08-29 Pavel Roskin <proski@gnu.org>
35653
e3925185 35654 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35655 * kern/powerpc/ieee1275/startup.S: ... this.
35656 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35657 * DISTLIST: Likewise.
35658
b497a269 35659 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35660 grub/cpu/kernel.h. Add start label for consistency with other
35661 platforms. Add grub_prefix immediately after start. Add jump
35662 to the code after grub_prefix.
35663 * include/grub/powerpc/kernel.h: Provide valid values for
35664 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35665
6e5a42fe 356662008-08-29 Bean <bean123ch@gmail.com>
35667
35668 * configure.ac: Change host_os to cygwin for mingw.
35669 (asprintf): New check for function.
35670
35671 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35672 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35673
35674 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 35675 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 35676 sync, sleep and grub_util_get_disk_size for mingw.
35677
35678 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35679 to get size in mingw.
35680 (open_device): Use flag O_BINARY if it's defined.
35681 (find_root_device): Add dummy code for mingw.
35682
35683 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35684 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35685 (get_scsi_disk_name): Return 0 for mingw.
35686
35687 * util/hostfs.c: #include <grub/util/misc.h>.
35688 (grub_hostfs_open): Use "rb" flag to open file, use
35689 grub_util_get_disk_size to get disk size for mingw.
35690
35691 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35692 (asprintf): New function if HAVE_ASPRINTF is not set.
35693 (sync): New function for mingw.
35694 (sleep): Likewise.
35695 (grub_util_get_disk_size): Likewise.
35696
ab3f2673 356972008-08-28 Pavel Roskin <proski@gnu.org>
35698
35699 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35700 kern/time.c.
35701
1c282483 357022008-08-28 Robert Millan <rmh@aybabtu.com>
35703
35704 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35705
678e849c 357062008-08-28 Robert Millan <rmh@aybabtu.com>
35707
35708 Change find_grub_drive() syntax so it doesn't prevent it from
35709 detecting NULL names as errors.
35710
35711 * util/biosdisk.c (find_grub_drive): Move free slot search code
35712 from here ...
35713 (find_free_slot): ... to here.
35714 (read_device_map): Use find_free_slot() to search for free slots.
35715
965c75ca 357162008-08-27 Marco Gerards <marco@gnu.org>
35717
35718 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35719 (scsi_mod_SOURCES): New variable.
35720 (scsi_mod_CFLAGS): Likewise
35721 (scsi_mod_LDFLAGS): Likewise.
35722
35723 * disk/scsi.c: New file.
35724
35725 * include/grub/scsi.h: Likewise.
35726
35727 * include/grub/scsicmd.h: Likewise.
35728
35729 * disk/ata.c: Include <grub/scsi.h>.
35730 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35731 instead.
35732 (grub_ata_iterate): Skip ATAPI devices.
35733 (grub_ata_open): Only handle ATAPI devices.
35734 (struct grub_atapi_read): Removed.
35735 (grub_atapi_readsector): Likewise.
35736 (grub_ata_read): No longer handle ATAPI devices.
35737 (grub_ata_write): Likewise.
35738 (grub_atapi_iterate): New function.
35739 (grub_atapi_read): Likewise.
35740 (grub_atapi_write): Likewise.
35741 (grub_atapi_open): Likewise.
35742 (grub_atapi_close): Likewise.
35743 (grub_atapi_dev): New variable.
35744 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35745 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35746
35747 * include/grub/disk.h (enum grub_disk_dev_id): Add
35748 `GRUB_DISK_DEVICE_SCSI_ID'.
35749
c07ae501 357502008-08-26 Robert Millan <rmh@aybabtu.com>
35751
35752 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35753 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35754 descriptive.
35755
5ed20adc 357562008-08-23 Bean <bean123ch@gmail.com>
35757
35758 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35759 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35760 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35761 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35762 dm_nv.mod.
35763 (raid5rec_mod_SOURCES): New macro.
35764 (raid5rec_mod_CFLAGS): Likewise.
35765 (raid5rec_mod_LDFLAGS): Likewise.
35766 (raid6rec_mod_SOURCES): Likewise.
35767 (raid6rec_mod_CFLAGS): Likewise.
35768 (raid6rec_mod_LDFLAGS): Likewise.
35769 (mdraid_mod_SOURCES): Likewise.
35770 (mdraid_mod_CFLAGS): Likewise.
35771 (mdraid_mod_LDFLAGS): Likewise.
35772 (dm_nv_mod_SOURCES): Likewise.
35773 (dm_nv_mod_CFLAGS): Likewise.
35774 (dm_nv_mod_LDFLAGS): Likewise.
35775
35776 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35777 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35778 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35779
35780 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35781 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35782
35783 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35784
35785 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35786
35787 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35788
35789 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35790
35791 * disk/raid5_recover.c: New file.
35792
35793 * disk/raid6_recover.c: Likewise.
35794
35795 * disk/mdraid_linux.c: Likewise.
35796
35797 * disk/dmraid_nvidia.c: Likewise.
35798
35799 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35800 ULONG_MAX.
35801
35802 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35803 calculate the size of raid device.
35804 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35805 different layout of raid5.
35806 (grub_raid_scan_device): Remove code specific to mdraid.
35807 (grub_raid_list): New variable.
35808 (free_array): New function.
35809 (grub_raid_register): Likewise.
35810 (grub_raid_unregister): Likewise.
35811 (grub_raid_rescan): Likewise.
35812 (GRUB_MOD_INIT): Don't iterate device here.
35813 (GRUB_MOD_FINI): Use free_array to release resource.
35814
35815 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35816 (grub_raid5_recover_func_t): New function variable type.
35817 (grub_raid6_recover_func_t): Likewise.
35818 (grub_raid5_recover_func): New variable.
35819 (grub_raid6_recover_func): Likewise.
35820 (grub_raid_register): New function.
35821 (grub_raid_unregister): Likewise.
35822 (grub_raid_rescan): Likewise.
35823 (grub_raid_block_xor): Likewise.
35824
35825 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35826 (CMD_CRC): New macro.
35827 (part): Removed.
35828 (read_file): Handle device as well as file.
35829 (cmd_crc): New function.
35830 (fstest): Handle multiple disks.
35831 (options): Remove part, raw and long, add root and diskcount.
35832 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 35833 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 35834 add handling for the new options, support multiple disks.
35835
35836 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35837
29c18915 358382008-08-23 Bean <bean123ch@gmail.com>
35839
35840 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35841
35842 * genfslist.sh: Ignore kernel.mod.
35843
35844 * genpartmaplist.sh: Likewise.
35845
8415f261 358462008-08-23 Robert Millan <rmh@aybabtu.com>
35847
35848 * util/getroot.c (find_root_device): Skip anything that starts with
35849 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35850
d5a7dc5b 358512008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 35852
d5a7dc5b 35853 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35854 * util/grub.d/00_header.in: Allow the administrator to change default
35855 gfxmode via ${GRUB_GFXMODE}.
35856
380cfbb4 358572008-08-21 Felix Zielcke <fzielcke@z-51.de>
35858
35859 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35860
c9baafe7 358612008-08-21 Robert Millan <rmh@aybabtu.com>
35862
35863 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35864 loader.
35865 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35866 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35867
e290bef2 358682008-08-20 Carles Pina i Estany <carles@pina.cat>
35869
35870 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35871 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35872
f9dbfc96 358732008-08-19 Robert Millan <rmh@aybabtu.com>
35874
35875 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35876 (struct grub_virtual_screen): Remove `cursor_color'.
35877 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35878 initialization.
35879 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35880
dd6bd6ab 358812008-08-18 Robert Millan <rmh@aybabtu.com>
35882
35883 Unify (identical) linux_normal.c files.
35884 * loader/i386/efi/linux_normal.c: Move from here ...
35885 * loader/linux_normal.c: ... to here. Update all users.
35886 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35887 * loader/i386/ieee1275/linux_normal.c: Likewise.
35888
7f42f83e 358892008-08-18 Robert Millan <rmh@aybabtu.com>
35890
35891 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35892 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35893 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35894 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35895 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35896 New macros.
35897 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35898 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35899 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35900 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35901 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35902 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35903 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35904 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35905 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35906 portably using grub_getxy().
35907 Replace `-EFI' with `-bzImage' in boot message.
35908
38487ddb 359092008-08-17 Robert Millan <rmh@aybabtu.com>
35910
35911 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35912
deceb3ec 359132008-08-17 Robert Millan <rmh@aybabtu.com>
35914
35915 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35916
35917 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35918 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35919 (grub_machine_mmap_iterate): New function declaration.
35920 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35921 structure.
35922 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35923 macros.
35924
35925 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35926 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35927 Move e820 parsing from here ...
35928 * kern/i386/pc/mmap.c: New file.
35929 (grub_machine_mmap_iterate): ... to here.
35930
35931 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35932 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35933 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35934 (grub_available_iterate): Redeclare to return `void', and redeclare
35935 its hook to use grub_uint64_t as addr and size parameters, and rename
35936 to ...
35937 (grub_machine_mmap_iterate): ... this. Update all users.
35938
35939 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35940 to make it more readable. Rename to ...
35941 (grub_machine_mmap_iterate): ... this.
35942
35943 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35944 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35945 (grub_multiboot): Allocate an extra region after the payload, and fill
35946 it with a Multiboot memory map. Adjust a.out loader to calculate size
35947 with the extra space.
35948 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35949 with the extra space.
35950
f8aa0f43 359512008-08-17 Carles Pina i Estany <carles@pina.cat>
35952
9807deb9 35953 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 35954
605f5bb6 359552008-08-17 Felix Zielcke <fzielcke@z-51.de>
35956
35957 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35958 mdate-sh to the list `find' searches for.
35959 * DISTLIST: Regenerated.
35960
210db6c6 359612008-08-16 Felix Zielcke <fzielcke@z-51.de>
35962
35963 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35964 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 35965 genmoddep.awk, gensymlist.sh.in.
35966 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 35967 * DISTLIST: Regenerated.
48cdbfd4 35968 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 35969
1082b929 359702008-08-16 Robert Millan <rmh@aybabtu.com>
35971
35972 * disk/raid.c (grub_raid_init): Handle/report errors set by
35973 grub_device_iterate().
35974 * disk/lvm.c (grub_lvm_init): Likewise.
35975
42ce5170 359762008-08-15 Bean <bean123ch@gmail.com>
35977
35978 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35979 and datehook.mod.
35980 (datetime_mod_SOURCES): New macro.
35981 (datetime_mod_CFLAGS): Likewise.
35982 (datetime_mod_LDFLAGS): Likewise.
35983 (date_mod_SOURCES): Likewise.
35984 (date_mod_CFLAGS): Likewise.
35985 (date_mod_LDFLAGS): Likewise.
35986 (datehook_mod_SOURCES): Likewise.
35987 (datehook_mod_CFLAGS): Likewise.
35988 (datehook_mod_LDFLAGS): Likewise.
35989
35990 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35991 and datehook.mod.
35992 (datetime_mod_SOURCES): New macro.
35993 (datetime_mod_CFLAGS): Likewise.
35994 (datetime_mod_LDFLAGS): Likewise.
35995 (date_mod_SOURCES): Likewise.
35996 (date_mod_CFLAGS): Likewise.
35997 (date_mod_LDFLAGS): Likewise.
35998 (datehook_mod_SOURCES): Likewise.
35999 (datehook_mod_CFLAGS): Likewise.
36000 (datehook_mod_LDFLAGS): Likewise.
36001
36002 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36003 and datehook.mod.
36004 (datetime_mod_SOURCES): New macro.
36005 (datetime_mod_CFLAGS): Likewise.
36006 (datetime_mod_LDFLAGS): Likewise.
36007 (date_mod_SOURCES): Likewise.
36008 (date_mod_CFLAGS): Likewise.
36009 (date_mod_LDFLAGS): Likewise.
36010 (datehook_mod_SOURCES): Likewise.
36011 (datehook_mod_CFLAGS): Likewise.
36012 (datehook_mod_LDFLAGS): Likewise.
36013
36014 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36015 and datehook.mod.
36016 (datetime_mod_SOURCES): New macro.
36017 (datetime_mod_CFLAGS): Likewise.
36018 (datetime_mod_LDFLAGS): Likewise.
36019 (date_mod_SOURCES): Likewise.
36020 (date_mod_CFLAGS): Likewise.
36021 (date_mod_LDFLAGS): Likewise.
36022 (datehook_mod_SOURCES): Likewise.
36023 (datehook_mod_CFLAGS): Likewise.
36024 (datehook_mod_LDFLAGS): Likewise.
36025
36026 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36027 and datehook.mod.
36028 (datetime_mod_SOURCES): New macro.
36029 (datetime_mod_CFLAGS): Likewise.
36030 (datetime_mod_LDFLAGS): Likewise.
36031 (date_mod_SOURCES): Likewise.
36032 (date_mod_CFLAGS): Likewise.
36033 (date_mod_LDFLAGS): Likewise.
36034 (datehook_mod_SOURCES): Likewise.
36035 (datehook_mod_CFLAGS): Likewise.
36036 (datehook_mod_LDFLAGS): Likewise.
36037
36038 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
36039
36040 * commands/date.c: New file.
36041
36042 * hook/datehook.c: Likewise.
36043
36044 * include/grub/lib/datetime.h: Likewise.
36045
36046 * include/grub/i386/cmos.h: Likewise.
36047
36048 * lib/datetime.c: Likewise.
36049
36050 * lib/i386/datetime.c: Likewise.
36051
36052 * lib/efi/datetime.c: Likewise.
36053
0e9242da 360542008-08-14 Robert Millan <rmh@aybabtu.com>
36055
36056 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
36057 (grub_mkelfimage_SOURCES): New variable.
36058 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
36059
36060 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
36061 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
36062 * conf/powerpc-ieee1275.rmk: Likewise.
36063 * conf/i386-ieee1275.rmk: Likewise.
36064
36065 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
36066 * kern/i386/coreboot/init.c: Likewise.
36067
36068 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
36069 with `<grub/cpu/kernel.h>'.
36070 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
36071 to ...
36072 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
36073 * kern/i386/coreboot/startup.S: Likewise.
36074
36075 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
36076 (GRUB_MOD_GAP): Remove.
36077 * include/grub/powerpc/kernel.h: New file.
36078 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
36079 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36080 * include/grub/i386/kernel.h: New file.
36081 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
36082 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
36083 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36084
36085 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
36086 `grub-mkelfimage'.
36087 Use --directory when invoking grub_mkimage.
36088
36089 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
36090 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
36091 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
36092 and GRUB_KERNEL_CPU_PREFIX.
36093
b86408f8 360942008-08-14 Felix Zielcke <fzielcke@z-51.de>
36095
d5e619ca 36096 * include/grub/err.h (grub_err_printf): New function prototype.
36097 * util/misc.c (grub_err_printf): New function.
36098 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
36099 grub_printf.
36100 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 36101
7161f0e0 361022008-08-13 Robert Millan <rmh@aybabtu.com>
36103
36104 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
36105
a1967522 361062008-08-13 Robert Millan <rmh@aybabtu.com>
36107
36108 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
36109 boot entry.
36110
371458b5 361112008-08-12 Robert Millan <rmh@aybabtu.com>
36112
36113 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
36114 of the relocation code from here ...
36115 (grub_multiboot): ... to here.
36116 (forward_relocator, backward_relocator): Move from here ...
36117 * kern/i386/loader.S (grub_multiboot_forward_relocator)
36118 (grub_multiboot_backward_relocator): ... to here.
36119 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
36120 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
36121 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
36122 (grub_multiboot_forward_relocator_end)
36123 (grub_multiboot_backward_relocator)
36124 (grub_multiboot_backward_relocator_end): New variables.
36125
05f9452b 361262008-08-12 Bean <bean123ch@gmail.com>
36127
36128 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
36129
20024ab0 361302008-08-11 Robert Millan <rmh@aybabtu.com>
36131
36132 * kern/i386/linuxbios/startup.S: Move from here ...
36133 * kern/i386/coreboot/startup.S: ... to here.
36134
36135 * kern/i386/linuxbios/init.c: Move from here ...
36136 * kern/i386/coreboot/init.c: ... to here.
36137
36138 * kern/i386/linuxbios/table.c: Move from here ...
36139 * kern/i386/coreboot/mmap.c: ... to here.
36140
36141 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
36142
e352e9cd 361432008-08-11 Robert Millan <rmh@aybabtu.com>
36144
36145 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
36146 errors. Leave it to the upper layer to handle them.
36147
2d05bc6a 361482008-08-09 Christian Franke <franke@computer.org>
36149
36150 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
36151 * conf/common.rmk: Install `grub-pe2elf' only if requested.
36152 Install `grub.d/10_windows' only on Cygwin.
36153 * configure.ac: Add subst of `target_os'.
36154 Check `target_os' also before setting TARGET_OBJ2ELF.
36155 Add `--enable-grub-pe2elf'.
36156
042bd419 361572008-08-08 Robert Millan <rmh@aybabtu.com>
36158
36159 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
36160 (grub_last_time): Change type to grub_uint64_t.
36161 (grub_disk_open): Migrate code from to using grub_get_time_ms().
36162 (grub_disk_close): Likewise.
36163
36164 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
36165 (run_menu): Migrate code from to using grub_get_time_ms().
36166
36167 * util/misc.c (grub_get_time_ms): New function.
36168
7f280db5 361692008-08-08 Marco Gerards <marco@gnu.org>
36170
36171 * disk/ata.c (grub_ata_regget): Change return type to
36172 `grub_uint8_t'.
36173 (grub_ata_regget2): Likewise.
36174 (grub_ata_wait_status): New function.
36175 (grub_ata_wait_busy): Removed function, updated all users to use
36176 `grub_ata_wait_status'.
36177 (grub_ata_wait_drq): Likewise.
36178 (grub_ata_cmd): New function.
36179 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
36180 error handling.
36181 (grub_ata_pio_write): Add error handling.
36182 (grub_atapi_identify): Likewise.
36183 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
36184 handling.
36185 (grub_ata_identify): Use `grub_ata_cmd' and improve error
36186 handling. Actually use the detected registers. Reorder the
36187 detection logic such that it is easier to read.
36188 (grub_ata_pciinit): Do not assign the same ID to each controller.
36189 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
36190 handling.
36191 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
36192
36193 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
36194
1fbc5e66 361952008-08-08 Marco Gerards <marco@gnu.org>
36196
36197 * NEWS: Update.
36198
819ce6c0 361992008-08-07 Bean <bean123ch@gmail.com>
36200
36201 * include/grub/x86_64/pci.h: New file.
36202
5c41d44d 362032008-08-07 Christian Franke <franke@computer.org>
36204
36205 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
36206 (TIMER2_GATE): Likewise.
36207 (grub_pit_wait): Add enable/disable of the timer2 gate
36208 bit of port 0x61. This fixes a possible infinite loop.
36209
5ebc275d 362102008-08-07 Bean <bean123ch@gmail.com>
36211
36212 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
36213 kern/i386/tsc.c and kern/i386/pit.c.
36214
36215 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
36216 x86_64 platform.
36217
36218 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
36219 <grub/i386/tsc.h>.
36220
36221 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
36222
e383b3d0 362232008-08-07 Bean <bean123ch@gmail.com>
36224
36225 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
36226
36227 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
36228
36229 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
36230 multiple inclusion. Add #include <grub/types.h>.
36231
1cbb58ac 362322008-08-06 Christian Franke <franke@computer.org>
36233
36234 * conf/common.rmk: Build and install `10_windows'.
36235 * util/grub.d/10_windows.in: New script.
36236
337f5a1e 362372008-08-06 Pavel Roskin <proski@gnu.org>
36238
36239 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
36240
057bc4ac 362412008-08-06 Robert Millan <rmh@aybabtu.com>
36242
36243 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
36244 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
36245
2b99f123 362462008-08-06 Bean <bean123ch@gmail.com>
36247
36248 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
36249 (grub_pxefs_fs_int): Remove dummy definition.
36250 (grub_pxefs_open): Use data->block_size to store the current block
36251 size setting.
36252 (grub_pxefs_read): Use block size stored in data->block_size. As the
36253 value of grub_pxe_blksize can be changed after the file is opened.
36254
9f0234cb 362552008-08-06 Bean <bean123ch@gmail.com>
36256
36257 * fs/i386/pc/pxe.c (curr_file): new variable.
36258 (grub_pxefs_open): Simply the handling of pxe file system. Don't
36259 require the dummy internal file system anymore.
36260 (grub_pxefs_read): Removed.
36261 (grub_pxefs_close): Likewise.
36262 (grub_pxefs_fs_int): Likewise.
36263 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
36264 connection when we switch file.
36265 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
36266
a55d42e0 362672008-08-06 Robert Millan <rmh@aybabtu.com>
36268
36269 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36270 `halt.mod'.
36271 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36272 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36273
36274 * kern/i386/halt.c: New file.
36275 * kern/i386/reboot.c: Likewise.
36276 * include/grub/i386/reboot.h: Likewise.
36277 * include/grub/i386/halt.h: Likewise.
36278
36279 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36280 Include `<grub/cpu/halt.h>'.
36281 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36282 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36283
36284 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36285 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36286 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36287 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36288 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36289 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36290 from here ...
36291 * include/grub/i386/at_keyboard.h: ... to here.
36292
24371d26 362932008-08-05 Robert Millan <rmh@aybabtu.com>
36294
36295 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36296 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36297 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36298 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36299 `kern/generic/millisleep.c'.
36300
36301 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36302 instead of grub_get_rtc().
36303 (grub_tsc_init): Initialize `tsc_boot_time'.
36304
36305 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36306 (grub_machine_init): Use grub_tsc_init() rather than
36307 installing an RTC-based handler via grub_install_get_time_ms().
36308
36309 * kern/i386/pit.c: New file.
36310 * include/grub/i386/pit.h: Likewise.
36311
9e7007b3 363122008-08-05 Bean <bean123ch@gmail.com>
36313
36314 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36315
36316 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36317 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36318 (pxe_mod_SOURCES): New macro.
36319 (pxe_mod_CFLAGS): Likewise.
36320 (pxe_mod_LDFLAGS): Likewise.
36321 (pxecmd_mod_SOURCES): Likewise.
36322 (pxecmd_mod_CFLAGS): Likewise.
36323 (pxecmd_mod_LDFLAGS): Likewise.
36324
36325 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36326 (grub_pxe_call): Likewise.
36327
36328 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36329
36330 * commands/i386/pc/pxecmd.c: New file.
36331
9f0234cb 36332 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 36333
36334 * include/grub/i386/pc/pxe.h: Likewise.
36335
6977d49f 363362008-08-05 Bean <bean123ch@gmail.com>
36337
36338 * util/console.c (grub_console_cur_color): New variable.
36339 (grub_console_standard_color): Likewise.
36340 (grub_console_normal_color): Likewise.
36341 (grub_console_highlight_color): Likewise.
36342 (color_map): Likewise.
36343 (use_color): Likewise.
36344 (NUM_COLORS): New macro.
36345 (grub_ncurses_setcolorstate): Handle color properly.
36346 (grub_ncurses_setcolor): Don't change color here, just remember the
36347 settings, color will be set in grub_ncurses_setcolorstate.
36348 (grub_ncurses_getcolor): New function.
36349 (grub_ncurses_init): Initialize color pairs.
36350 (grub_ncurses_term): New member grub_ncurses_getcolor.
36351
9c2ff3ee 363522008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 36353
9c2ff3ee 36354 High resolution timer support. Implemented for x86 CPUs using TSC.
36355 Extracted generic grub_millisleep() so it's linked in only as needed.
36356 This requires a Pentium compatible CPU; if the RDTSC instruction is
36357 not supported, then it falls back on the generic grub_get_time_ms()
36358 implementation that uses the machine's RTC.
36359
36360 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36361 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36362 `kern/generic/millisleep.c'.
36363
36364 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36365 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36366
36367 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36368 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36369
36370 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36371
36372 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36373 `kern/generic/millisleep.c'.
36374
36375 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36376
36377 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36378
36379 * kern/generic/rtc_get_time_ms.c: New file.
36380
36381 * kern/generic/millisleep.c: New file.
337f5a1e 36382
9c2ff3ee 36383 * kern/misc.c: Don't include
36384 <kern/time.h> anymore.
36385 (grub_millisleep_generic): Removed.
36386
36387 * commands/sleep.c (grub_interruptible_millisleep): Uses
36388 grub_get_time_ms() instead of grub_get_rtc().
36389
36390 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36391 function.
36392 (grub_cpu_is_cpuid_supported): New inline function.
36393 (grub_cpu_is_tsc_supported): New inline function.
36394 (grub_tsc_init): New function prototype.
36395 (grub_tsc_get_time_ms): New function prototype.
36396
36397 * kern/i386/tsc.c (grub_get_time_ms): New file.
36398
36399 * include/grub/time.h: Include <grub/types.h.
36400 (grub_millisleep_generic): Removed.
36401 (grub_get_time_ms): New prototype.
36402 (grub_install_get_time_ms): New prototype.
36403 (grub_rtc_get_time_ms): New prototype.
36404
36405 * kern/time.c (grub_get_time_ms): New function.
36406 (grub_install_get_time_ms): New function.
36407
36408 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36409 <grub/time.h> anymore.
36410 (grub_millisleep): Removed.
36411 (grub_machine_init): Call grub_tsc_init.
36412
36413 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36414 get_time_ms() implementation.
36415
36416 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36417 (ieee1275_get_time_ms): New function.
36418 (grub_machine_init): Install get_time_ms() implementation.
36419
36420 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36421 (grub_machine_init): Call grub_tsc_init().
36422 (grub_millisleep): Removed.
bf06a93f 36423
9c2ff3ee 36424 * kern/ieee1275/init.c (grub_millisleep): Removed.
36425 (grub_machine_init): Install ieee1275_get_time_ms()
36426 implementation.
36427 (ieee1275_get_time_ms): New function.
36428 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36429 real work.
36430
9ec92aaf 364312008-08-05 Marco Gerards <marco@gnu.org>
36432
36433 * disk/ata.c: Include <grub/pci.h>.
36434 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36435 (grub_ata_initialize): Rewritten.
36436 (grub_ata_device_initialize): New function.
36437
8d23f507 364382008-08-04 Pavel Roskin <proski@gnu.org>
36439
36440 * kern/main.c: Include grub/mm.h.
36441
5e15ee3d 364422008-08-04 Robert Millan <rmh@aybabtu.com>
36443
36444 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36445 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36446 corruption problem).
36447
a9053f8f 364482008-08-04 Robert Millan <rmh@aybabtu.com>
36449
36450 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36451 warnings introduced in my last commit.
36452
dd19c7d7 364532008-08-03 Robert Millan <rmh@aybabtu.com>
36454
36455 Make PCI available on all i386 architectures.
36456
36457 * include/grub/i386/pc/pci.h: Move from here ...
36458 * include/grub/i386/pci.h: ... to here.
36459
36460 * include/grub/i386/pc/pci.h: Remove.
36461 * include/grub/i386/efi/pci.h: Remove.
36462 * include/grub/x86_64/efi/pci.h: Remove.
36463
36464 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36465 `<grub/cpu/pci.h>'.
36466
36467 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36468 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36469 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36470
36471 * conf/i386-ieee1275.rmk: Likewise.
36472
e14a6184 364732008-08-03 Robert Millan <rmh@aybabtu.com>
36474
36475 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36476 (grub_console_setcursor): Make it possible to set cursor off.
36477
52768e37 364782008-08-03 Robert Millan <rmh@aybabtu.com>
36479
36480 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36481 of modules instead of assuming which platform provides what.
36482 * util/update-grub.in: Likewise.
36483
2d52f57f 364842008-08-03 Robert Millan <rmh@aybabtu.com>
36485
36486 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36487 instead of `grub_install_dos_part' to determine whether a drive needs
36488 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 36489 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 36490
2a5cd121 364912008-08-02 Robert Millan <rmh@aybabtu.com>
36492
36493 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36494
93808428 364952008-08-02 Robert Millan <rmh@aybabtu.com>
36496
36497 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36498 of informational grub_dprintf() calls.
36499
3bd0a12a 365002008-08-02 Robert Millan <rmh@aybabtu.com>
36501
36502 * disk/memdisk.c (memdisk_size): Don't initialize.
36503 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36504
36505 * include/grub/i386/pc/kernel.h
36506 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36507 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36508 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36509 (grub_arch_memdisk_size): Remove.
36510
36511 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36512 field (was only used to transfer a constant). Add `type' field to
36513 support multiple module types.
36514 (grub_module_iterate): New function.
36515
36516 * kern/device.c (grub_device_open): Do not hide error messages
36517 when grub_disk_open() fails. Use grub_print_error() instead.
36518
36519 * kern/i386/pc/init.c (grub_arch_modules_addr)
36520 (grub_arch_memdisk_size): Remove functions.
36521 (grub_arch_modules_addr): Return the module address in high memory
36522 (now that it isn't copied anymore).
36523
36524 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36525 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36526 decompression routine (grub_total_module_size already includes that
36527 now). Don't copy modules back to low memory.
36528
36529 * kern/main.c: Include `<grub/mm.h>'.
36530 (grub_load_modules): Split out (and use) ...
36531 (grub_module_iterate): ... this function, which iterates through
36532 module objects and runs a hook.
36533 Comment out grub_mm_init_region() call, as it would cause non-ELF
36534 modules to be overwritten.
36535
36536 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36537 the memdisk image in its own region, make it part of the module list.
36538 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36539 (main): Parse --memdisk|-m option, and pass user-provided path as
36540 parameter to generate_image().
36541 (add_segments): Pass `memdisk_path' down to load_modules().
36542 (load_modules): Embed memdisk image in module section when requested.
36543 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36544 `header.type' instead of `header.offset'.
36545
36546 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36547 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36548 (memdisk_mod_LDFLAGS): New variables.
36549 * conf/i386-coreboot.rmk: Likewise.
36550 * conf/i386-ieee1275.rmk: Likewise.
36551
a927cc73 365522008-08-02 Robert Millan <rmh@aybabtu.com>
36553
36554 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36555 (backward_relocator): New variables. Used to allocate and relocate
36556 the payload, respectively.
36557 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 36558 address, install the appropriate relocator code in each bound of
a927cc73 36559 the payload, and set the entry point such that
36560 grub_multiboot_real_boot() will jump to one of them.
36561
36562 * kern/i386/loader.S (grub_multiboot_payload_size)
36563 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36564 (grub_multiboot_payload_entry_offset): New variables.
36565 (grub_multiboot_real_boot): Set cpu context to what the relocator
36566 expects, and jump to the relocator instead of the payload.
36567
36568 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36569 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36570 (grub_multiboot_payload_entry_offset): Export.
36571
b15d8a0c 365722008-08-01 Bean <bean123ch@gmail.com>
36573
36574 * normal/menu_entry.c (editor_getline): Don't return the original
36575 string as result, as it will be released by lexer once it has done
36576 using it.
36577
cdfb3d22 365782008-08-01 Robert Millan <rmh@aybabtu.com>
36579
36580 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36581 within menuentries, not before them.
36582 util/grub.d/10_hurd.in: Likewise.
36583
9175e93d 365842008-08-01 Bean <bean123ch@gmail.com>
36585
36586 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36587 (bufio_mod_SOURCES): New macro.
36588 (bufio_mod_CFLAGS): Likewise.
36589 (bufio_mod_LDFLAGS): Likewise.
36590
36591 * include/grub/bufio.h: New file.
36592
36593 * io/bufio.c: Likewise.
36594
36595 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36596 (grub_video_reader_png): Use grub_buffile_open to open file.
36597
36598 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36599 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36600
36601 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36602 (grub_video_reader_tga): Use grub_buffile_open to open file.
36603
36604 * font/manager.c: Include <grub/bufio.h>.
36605 (add_font): Use grub_buffile_open to open file.
36606
3d8383e7 366072008-07-31 Robert Millan <rmh@aybabtu.com>
36608
36609 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36610 ELF segments, use a macro for arbitrarily accessing any of them instead
36611 of preparing a pointer that allows access to one at a time.
36612 (grub_multiboot_load_elf64): Likewise.
36613
16e641b6 366142008-07-31 Bean <bean123ch@gmail.com>
36615
36616 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36617 GRUB_KERNEL_MACHINE_DATA_END.
36618
59198b72 366192008-07-30 Robert Millan <rmh@aybabtu.com>
36620
36621 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36622 Increase from 0x50 to 0x60.
36623 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36624 use UUIDs to identify the root drive for them. If that's not
36625 possible, abort.
36626 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36627 check, for cross-disk installs.
36628
ae88bca3 366292008-07-30 Robert Millan <rmh@aybabtu.com>
36630
36631 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36632 is non-empty, use it to set the `prefix' environment variable instead
36633 of the usual approach.
36634 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36635 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36636 environment variable instead of dummy make_install_device().
36637
36638 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36639 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 36640 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 36641
36642 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36643 New variable reference.
36644 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36645 New macro. Defines offset of `grub_prefix' within startup.S (relative
36646 to `start').
36647 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36648 section within startup.S (relative to `start').
36649 * include/grub/i386/coreboot/kernel.h: Likewise.
36650
36651 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36652 Overwrite grub_prefix with its contents, at the beginning of the
36653 first segment.
36654 (main): Understand -p|--prefix.
36655
14f41dd1 366562008-07-30 Robert Millan <rmh@aybabtu.com>
36657
36658 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36659
4ca049a3 366602008-07-30 Robert Millan <rmh@aybabtu.com>
36661
36662 * term/i386/pc/vga_text.c (grub_console_cls): Use
36663 grub_console_gotoxy() to go back to beginning of the screen.
36664 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36665
2921d337 366662008-07-29 Christian Franke <franke@computer.org>
36667
36668 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36669 Add conversion of emulated mount points on Cygwin.
36670
b609876d 366712008-07-29 Christian Franke <franke@computer.org>
36672
36673 * util/update-grub.in: Add a check for admin
36674 group on Cygwin.
36675 Remove old `grub.cfg.new' before creation.
36676 Add `-f' to `mv' to handle the different filesystem
36677 semantics of Windows.
36678
e93e4679 366792008-07-29 Bean <bean123ch@gmail.com>
36680
36681 * normal/main.c (get_line): Fix buffer overflow bug.
36682
41694fd0 366832008-07-28 Robert Millan <rmh@aybabtu.com>
36684
36685 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36686 (struct grub_apple_header): New struct. Describes the layout of
36687 the partmap header.
36688 (apple_partition_map_iterate): Check the header magic as well as the
36689 partition magic (which was already being checked).
36690
cfd0b4e6 366912008-07-28 Pavel Roskin <proski@gnu.org>
36692
36693 * genmk.rb: Add a warning to the beginning of the output that
36694 it's a generated file and should not be edited.
36695
93cce016 366962008-07-28 Robert Millan <rmh@aybabtu.com>
36697
36698 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36699 with the same number are found, just use issue a warning with
36700 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 36701
cd1df915 367022008-07-27 Robert Millan <rmh@aybabtu.com>
36703
36704 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36705 information.
36706
b70a8427 367072008-07-27 Bean <bean123ch@gmail.com>
36708
36709 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36710 (grub_fat_find_dir): Ignore case when comparing filename.
36711
8f5e379f 367122008-07-27 Bean <bean123ch@gmail.com>
36713
36714 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36715 smallino, as it's more descriptive, and i8count can be confused with
36716 the other field count.
36717 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36718 inode type.
36719
a85cd5a0 367202008-07-27 Bean <bean123ch@gmail.com>
36721
36722 * commands/crc.c: New file.
36723
36724 * lib/crc.c: Likewise.
36725
36726 * include/grub/lib/crc.h: Likewise.
36727
36728 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36729
36730 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36731 (hexdump): Move this function to ...
36732
36733 * lib/hexdump.c: ... here.
36734
36735 * include/grub/hexdump.h: Renamed to ...
36736
36737 * include/grub/lib/hexdump.h: ... this.
36738
36739 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36740
36741 * util/grub-editenv.c: Likewise.
36742
36743 * include/envblk.h: Renamed to ...
36744
36745 * include/lib/envblk.h: ... this.
36746
36747 * util/envblk.c: Renamed to ...
36748
36749 * lib/envblk.c: ... this.
36750
36751 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36752 lib/hexdump.c.
36753 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36754 (pkglib_MODULES): Add crc.mod.
36755 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36756 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36757 (crc_mod_SOURCES): New macro.
36758 (crc_mod_CFLAGS): Likewise.
36759 (crc_mod_LDFLAGS): Likewise.
36760
36761 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36762
36763 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36764
36765 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36766
36767 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36768
36769 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36770
c298def0 367712008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 36772
36773 * commands/help.c: Include <grub/term.h>.
36774 (TERM_WIDTH): Removed. Updated all users.
36775
cc349fb3 367762008-07-27 Pavel Roskin <proski@gnu.org>
36777
36778 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36779 spurious warnings about a comment within a comment.
36780
9051607e 367812008-07-25 Robert Millan <rmh@aybabtu.com>
36782
36783 * util/getroot.c (find_root_device): Skip devices that match
36784 /dev/dm-[0-9]. This lets the real device be found for any type of
36785 abstraction (LVM, EVMS, RAID..).
36786 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36787 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36788 device is found first, find_root_device() will now skip it.
36789
01453bfc 367902008-07-24 Pavel Roskin <proski@gnu.org>
36791
36792 * include/grub/types.h: Use __builtin_bswap32() and
36793 __builtin_bswap64() with gcc 4.3 and newer.
36794
6af9849f 367952008-07-24 Christian Franke <franke@computer.org>
36796
3a0fa256 36797 * util/i386/pc/grub-install.in: If `--debug' is specified,
36798 pass `--verbose' to grub-setup.
36799 Abort script if make_system_path_relative_to_its_root() fails.
36800
7810e747 368012008-07-24 Bean <bean123ch@gmail.com>
36802
36803 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36804 variable `target_platform' should be `platform'.
36805
42290e17 368062008-07-24 Bean <bean123ch@gmail.com>
36807
51cc5193 36808 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 36809 (grub_png_init_fixed_block): New function.
36810 (grub_png_decode_image_data): Handle fixed huffman code compression.
36811
2a8a80e4 368122008-07-24 Bean <bean123ch@gmail.com>
36813
36814 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36815 (grub_pe2elf_SOURCES): New macro.
36816 (CLEANFILES): Add grub-pe2elf.
36817
36818 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36819 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36820 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36821 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36822 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36823 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36824 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36825 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36826 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36827 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36828 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36829 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36830 (GRUB_PE32_DT_FUNCTION): Likewise.
36831 (GRUB_PE32_REL_I386_DIR32): Likewise.
36832 (GRUB_PE32_REL_I386_REL32): Likewise.
36833 (grub_pe32_symbol): New structure.
36834 (grub_pe32_reloc): Likewise.
36835
36836 * util/grub-pe2elf.c: New file.
36837
36838 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36839 start symbol in non pc platform.
36840
36841 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36842
36843 The following patches are from Christian Franke.
36844
36845 * include/grub/dl.h: Remove .previous, gas supports this only
36846 for ELF format.
36847
36848 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36849 Remove .type, gas supports this only for ELF format.
36850
36851 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36852 nullbytes in symbol table. This fixes an infinite loop if table is
36853 zero filled.
36854
36855 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36856 TARGET_IMG_LDFLAGS and EXEEXT.
36857
36858 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36859 TARGET_IMG_LDFLAGS_AC.
36860 (grub_CHECK_STACK_ARG_PROBE): New function.
36861
36862 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36863
36864 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36865
36866 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36867 to set TARGET_IMG_LD* accordingly.
36868 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36869 Add call to grub_CHECK_STACK_ARG_PROBE.
36870 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36871
36872 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36873
36874 * genmk.rb: Add EXEEXT to CLEANFILES.
36875
12ccdb75 368762008-07-23 Robert Millan <rmh@aybabtu.com>
36877
36878 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36879 define the codes for arrows and lines used for the menu).
36880 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36881 as well.
36882
36883 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36884 fonts, because the latter are too slow.
36885
18eeaf04 368862008-07-21 Bean <bean123ch@gmail.com>
36887
36888 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36889 a20. Run keyboard test last, as it will cause macbook to halt.
36890
b095e2ad 368912008-07-18 Pavel Roskin <proski@gnu.org>
36892
36893 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36894 load foreign architecture modules correctly anyway. Keep
36895 support for loading host architecture modules, whether we
36896 compile them or not.
36897
737feb35 368982008-07-17 Pavel Roskin <proski@gnu.org>
36899
3f4ce737 36900 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36901 change target_cpu. The compiler default can mismatch target_cpu
36902 in any case.
36903
4ad2d049 36904 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36905 * kern/efi/efi.c: Likewise.
36906
f6130a12 36907 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36908 target compiler is functional.
36909 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36910 are set up.
36911
58393a2d 36912 * configure.ac: Default to efi platform for x86_64-apple. Allow
36913 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36914 adjustments from the rest, only do them if target is not
36915 explicitly given. Merge other adjustments with the final sanity
36916 check. Remove an extraneous check for supported CPU. Be
36917 specific which CPU and which platform is not supported.
36918
737feb35 36919 * configure.ac: Default to pc platform for x86_64.
36920
546f966a 369212008-07-17 Robert Millan <rmh@aybabtu.com>
36922
36923 Partial LinuxBIOS -> Coreboot rename.
36924
36925 * conf/i386-linuxbios.rmk: Renamed to ...
36926 * conf/i386-coreboot.rmk: ... this.
36927 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36928 * configure.ac: Accept "coreboot" as input platform (but maintain
36929 compatibility with "linuxbios").
36930 * include/grub/i386/linuxbios: Renamed to ...
36931 * include/grub/i386/coreboot: ... this.
36932
20011694 369332008-07-17 Bean <bean123ch@gmail.com>
36934
36935 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 36936 (appleldr_mod_SOURCE): New variable.
20011694 36937 (appleldr_mod_CFLAGS): Likewise.
36938 (appleldr_mod_LDFLAGS): Likewise.
36939 (pci_mod_SOURCES): Likewise.
36940 (pci_mod_CFLAGS): Likewise.
36941 (pci_mod_LDFLAGS): Likewise.
36942 (lspci_mod_SOURCES): Likewise.
36943 (lspci_mod_CFLAGS): Likewise.
36944 (lspci_mod_LDFLAGS): Likewise.
36945
36946 * conf/x86_64-efi.rmk: New file.
36947
36948 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36949 macro.
36950 (grub_efidisk_write): Likewise.
36951
36952 * include/efi/api.h (efi_call_0): New macro.
36953 (efi_call_1): Likewise.
36954 (efi_call_2): Likewise.
36955 (efi_call_3): Likewise.
36956 (efi_call_4): Likewise.
36957 (efi_call_5): Likewise.
36958 (efi_call_6): Likewise.
36959
36960 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36961 grub_rescue_cmd_chainloader.
36962
36963 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36964 (grub_pe32_optional_header): Change some fields based on i386 or
36965 x86_64 platform.
36966 (GRUB_PE32_PE32_MAGIC): Likewise.
36967
36968 * include/grub/efi/uga_draw.h: New file.
36969
36970 * include/grub/elf.h (STN_ABS): New constant.
36971 (R_X86_64_NONE): Relocation constant for x86_64.
36972 (R_X86_64_64): Likewise.
36973 (R_X86_64_PC32): Likewise.
36974 (R_X86_64_GOT32): Likewise.
36975 (R_X86_64_PLT32): Likewise.
36976 (R_X86_64_COPY): Likewise.
36977 (R_X86_64_GLOB_DAT): Likewise.
36978 (R_X86_64_JUMP_SLOT): Likewise.
36979 (R_X86_64_RELATIVE): Likewise.
36980 (R_X86_64_GOTPCREL): Likewise.
36981 (R_X86_64_32): Likewise.
36982 (R_X86_64_32S): Likewise.
36983 (R_X86_64_16): Likewise.
36984 (R_X86_64_PC16): Likewise.
36985 (R_X86_64_8): Likewise.
36986 (R_X86_64_PC8): Likewise.
36987
36988 * include/grub/i386/efi/pci.h: New file.
36989
36990 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36991 Change it value based on platform.
36992 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36993 (GRUB_E820_RAM): Likewise.
36994 (GRUB_E820_RESERVED): Likewise.
36995 (GRUB_E820_ACPI): Likewise.
36996 (GRUB_E820_NVS): Likewise.
36997 (GRUB_E820_EXEC_CODE): Likewise.
36998 (GRUB_E820_MAX_ENTRY): Likewise.
36999 (grub_e820_mmap): New structure.
37000 (linux_kernel_header): Change the efi field according to different
37001 kernel version, also field from linux_kernel_header.
37002
37003 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
37004
37005 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
37006 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
37007 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
37008 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
37009 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
37010 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
37011 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
37012 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
37013 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
37014 (GRUB_PCI_ADDR_IO_MASK): Likewise.
37015
37016 * include/grub/x86_64/efi/kernel.h: New file.
37017
37018 * include/grub/x86_64/efi/loader.h: Likewise.
37019
37020 * include/grub/x86_64/efi/machine.h: Likewise.
37021
37022 * include/grub/x86_64/efi/pci.h: Likewise.
37023
37024 * include/grub/x86_64/efi/time.h: Likewise.
37025
37026 * include/grub/x86_64/linux.h: Likewise.
37027
37028 * include/grub/x86_64/setjmp.h: Likewise.
37029
37030 * include/grub/x86_64/time.h: Likewise.
37031
37032 * include/grub/x86_64/types.h: Likewise.
37033
37034 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
37035 GRUB_TARGET_SIZEOF_VOID_P.
37036
37037 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
37038 (grub_efi_locate_handle): Likewise.
37039 (grub_efi_open_protocol): Likewise.
37040 (grub_efi_set_text_mode): Likewise.
37041 (grub_efi_stall): Likewise.
37042 (grub_exit): Likewise.
37043 (grub_reboot): Likewise.
37044 (grub_halt): Likewise.
37045 (grub_efi_exit_boot_services): Likewise.
37046 (grub_get_rtc): Likewise.
37047
37048 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
37049 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
37050 (grub_efi_allocate_pages): Wrap efi calls.
37051 (grub_efi_free_pages): Wrap efi calls.
37052 (grub_efi_get_memory_map): Wrap efi calls.
37053
37054 * kern/x86_64/dl.c: New file.
37055
37056 * kern/x86_64/efi/callwrap.S: Likewise.
37057
37058 * kern/x86_64/efi/startup.S: Likewise.
37059
37060 * loader/efi/appleloader.c: Likewise.
37061
37062 * loader/efi/chainloader.c (cmdline): New variable.
37063 (grub_chainloader_unload): Wrap efi calls.
37064 (grub_chainloader_boot): Likewise.
37065 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
37066 command line.
37067
37068 * loader/efi/chainloader_normal.c (chainloader_command):
37069 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
37070 command line.
37071
37072 * loader/i386/efi/linux.c (allocate_pages): Change allocation
37073 method.
37074 (grub_e820_add_region): New function.
37075 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
37076 booting.
37077 (grub_find_video_card): New function.
37078 (grub_linux_setup_video): New function.
37079 (grub_rescue_cmd_linux): Probe for video information.
37080
37081 * normal/x86_64/setjmp.S: New file.
37082
37083 * term/efi/console.c (map_char): New function.
37084 (grub_console_putchar): Map unicode char.
37085 (grub_console_checkkey): Wrap efi calls.
37086 (grub_console_getkey): Likewise.
37087 (grub_console_getwh): Likewise.
37088 (grub_console_gotoxy): Likewise.
37089 (grub_console_cls): Likewise.
37090 (grub_console_setcolorstate): Likewise.
37091 (grub_console_setcursor): Likewise.
37092
37093 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
37094
59652a20 370952008-07-16 Pavel Roskin <proski@gnu.org>
37096
ef294055 37097 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
37098 format strings.
37099
59652a20 37100 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
37101 pointer, not an integer. This fixes a warning and prevents
37102 precision loss on 64-bit systems.
37103 (relocate_addresses): Remove unneeded cast.
37104
afc3b5d7 371052008-07-15 Pavel Roskin <proski@gnu.org>
37106
506b2b3e 37107 * kern/i386/ieee1275/init.c: Include grub/cache.h.
37108
62ead89c 37109 * term/ieee1275/ofconsole.c: Disable code unused on i386.
37110
c4cd51d7 37111 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
37112 Fix comparison between signed and unsigned.
37113
0d3d8f28 37114 * include/grub/i386/ieee1275/console.h: Declare
37115 grub_console_init() and grub_console_fini().
37116
8804b286 37117 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
37118 It's empty and unused.
37119
ee01cf35 37120 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
37121 beginning to avoid warnings with some compilers.
37122
afc3b5d7 37123 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
37124 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
37125
e4e8eaa5 371262008-07-14 Pavel Roskin <proski@gnu.org>
37127
407aceb4 37128 * kern/env.c (grub_register_variable_hook): Don't copy empty
37129 string, it leaks memory. Pass "" to grub_env_set(), it should
37130 handle constant strings.
37131
e4e8eaa5 37132 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
37133 * commands/cmp.c (grub_cmd_cmp): Likewise.
37134 * kern/dl.c (grub_dl_flush_cache): Likewise.
37135 (grub_dl_load_core): Likewise.
37136 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
37137 (grub_elf64_load_phdrs): Likewise.
37138
d4e2dad3 371392008-07-13 Pavel Roskin <proski@gnu.org>
37140
37141 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
37142 between signed and unsigned.
37143 (LzmaEnc_Finish): Fix warning about an unused parameter.
37144
aa24b516 371452008-07-13 Bean <bean123ch@gmail.com>
37146
37147 * Makefile.in (enable_lzo): New rule.
37148
37149 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
37150
37151 * configure.ac (ENABLE_LZO): New option --enable-lzo.
37152
37153 * boot/i386/pc/lnxboot.S: #include <config.h>.
37154
37155 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 37156 its value according to the compression algorithm used, lzo or lzma.
aa24b516 37157
37158 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
37159 compression algorithm according to configure macro.
37160
37161 * kern/i386/pc/startup.S (codestart): Likewise.
37162
37163 * kern/i386/pc/lzma_decode.S: New file.
37164
37165 * include/grub/lib/LzFind.h: Likewise.
37166
37167 * include/grub/lib/LzHash.h: Likewise.
37168
37169 * include/grub/lib/LzmaDec.h: Likewise.
37170
37171 * include/grub/lib/LzmaEnc.h: Likewise.
37172
37173 * include/grub/lib/LzmaTypes.h: Likewise.
37174
37175 * lib/LzFind.c: Likewise.
37176
37177 * lib/LzmaDec.c: Likewise.
37178
37179 * lib/LzmaEnc.c: Likewise.
37180
4ae821ac 371812008-07-13 Bean <bean123ch@gmail.com>
37182
37183 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
37184 (grub_ext4_extent_header): New structure.
37185 (grub_ext4_extent): Likewise.
37186 (grub_ext4_extent_idx): Likewise.
37187 (grub_ext4_find_leaf): New function.
37188 (grub_ext2_read_block): Handle extents.
37189
9a745147 371902008-07-12 Robert Millan <rmh@aybabtu.com>
37191
37192 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
37193
d49a4cf6 371942008-07-11 Robert Millan <rmh@aybabtu.com>
37195
37196 * util/grub.d/40_custom.in: New file. Example on how to add custom
37197 entries to /etc/grub.d.
37198 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
37199 40_custom (implicitly, by merging all the grub.d rules).
37200
947414b4 372012008-07-11 Pavel Roskin <proski@gnu.org>
37202
0059cf6f 37203 * commands/read.c (grub_getline): Fix invalid memory access.
37204 Don't add newline to the variable value.
37205
947414b4 37206 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
37207 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
37208 (serial_hw_get_port): Check validity of the port number.
37209 (grub_cmd_serial): Check return value of serial_hw_get_port().
37210
62a02d00 372112008-07-07 Pavel Roskin <proski@gnu.org>
37212
37213 * boot/i386/pc/diskboot.S (notification_string): Replace
37214 "Loading kernel" with just "loading". This is shorter, less
37215 confusing and saves a few bytes for possible future changes.
37216
3e5581b0 372172008-07-05 Pavel Roskin <proski@gnu.org>
37218
ea387a48 37219 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
37220 size for ATAPI devices, they are undefined. Output sector
37221 number in decimal form.
37222
3e5581b0 37223 * disk/ata.c: Use named constants for status bits.
37224
fdecb8fd 372252008-07-04 Pavel Roskin <proski@gnu.org>
37226
bcd35b90 37227 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
37228 grub_addr_t before casting it to the void pointer to fix a
37229 warning. Non-addressable regions are discarded earlier.
37230 (grub_arch_modules_addr): Cast _end to grub_addr_t.
37231 * kern/i386/linuxbios/table.c: Include grub/misc.h.
37232 (check_signature): Don't shadow table_header.
37233 (grub_linuxbios_table_iterate): Cast numeric constants to
37234 grub_linuxbios_table_header_t.
37235 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
37236 grub_stop().
37237
af58ab3d 37238 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
37239 prevent warnings.
37240
1759aa57 37241 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
37242 pointer, which can cause warnings. Support 64-bit addresses.
37243
fdecb8fd 37244 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
37245 of sizeof(long). This fixes PowerPC image generation on x86_64.
37246
8516d2a8 372472008-07-04 Robert Millan <rmh@aybabtu.com>
37248
37249 This fixes a performance issue when pc & gpt partmap iterators
37250 didn't abort iteration even after our hook found what it was
fe987087 37251 looking for (often causing expensive probes of non-existent drives).
8516d2a8 37252
37253 Some callers relied on previous buggy behaviour, since they would
34c44600 37254 raise an error when their own hooks caused early abortion of its
8516d2a8 37255 iteration.
37256
37257 * kern/device.c (grub_device_open): Improve error message.
37258 * disk/lvm.c (grub_lvm_open): Likewise.
37259 * disk/raid.c (grub_raid_open): Likewise.
37260
37261 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
37262 when hook requests it, independently of grub_errno.
37263 (pc_partition_map_probe): Do not fail when find_func() caused
37264 early abortion of pc_partition_map_iterate().
37265
37266 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
37267 when hook requests it, independently of grub_errno.
37268 (gpt_partition_map_probe): Do not fail when find_func() caused
37269 early abortion of gpt_partition_map_iterate().
37270
37271 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37272 when hook requests it, independently of grub_errno. Do not fail when
37273 part_map_iterate_hook() caused early abortion of p->iterate().
37274
37275 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37276 when grub_partition_iterate() returned with non-zero.
37277
277d0de9 372782008-07-03 Pavel Roskin <proski@gnu.org>
37279
37280 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37281 like we do in grub_ata_pio_read().
37282 (grub_ata_readwrite): Always write individual sectors. Fix the
37283 sector count for the remainder.
37284 (grub_ata_write): Enable writing to ATA devices. Correctly
37285 report error for ATAPI devices.
37286
d4c9b428 372872008-07-02 Pavel Roskin <proski@gnu.org>
37288
e43fc690 37289 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37290 warning.
37291
f707af42 37292 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37293 for every read sector, we already increment it for the whole
37294 batch. This fixes reading more than 256 sectors at once.
37295
11e16b15 37296 * util/grub-editenv.c (cmd_info): Cast argument to long
37297 explicitly. ptrdiff_t reduces to int on i386.
37298
cbabfdd4 37299 * util/grub-editenv.c (main): Be specific which parameter is
37300 missing.
37301
b8fbce0a 37302 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37303 (memdisk): Make memdisk_orig_addr a pointer.
37304
c9c8e606 37305 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37306 for file offsets, use grub_off_t instead. Fix printf format
37307 warnings.
37308
ca62e598 37309 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37310 there. Real unexpected warnings should not drown in the noise
37311 about known problems.
37312
ce8d1766 37313 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37314 grub_disk_addr_t for memory addresses.
37315
00c7a56a 37316 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37317 explicitly to fix a warning.
37318
08d3ef09 37319 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37320
cb71ba20 37321 * Makefile.in (MODULE_LDFLAGS): New variable.
37322 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37323 the linker accepts --build-id=none.
37324 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37325 MODULE_LDFLAGS.
37326 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37327
d4c9b428 37328 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37329 those in Linux XFS code. Provide a way to access 64-bit parent
37330 inode.
37331 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37332 the end of struct grub_xfs_dir_header.
37333
d4156eee 373342008-07-02 Bean <bean123ch@gmail.com>
37335
37336 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37337 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37338 and GRUB_IEEE1275_FLAG_NO_ANSI.
37339
37340 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37341 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37342 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37343
37344 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37345 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37346
37347 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37348 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37349
37350 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37351 esc sequence on non ANSI terminal.
37352 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37353
37354 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37355 beginning of file.
37356
2270f77b 373572008-07-02 Bean <bean123ch@gmail.com>
37358
37359 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37360 (grub_editenv_SOURCES): New variable.
37361 (pkglib_MODULES): Add loadenv.mod.
37362 (loadenv_mod_SOURCES): New variable.
37363 (loadenv_mod_CFLAGS): Likewise.
37364 (loadenv_mod_LDFLAGS): Likewise.
37365
37366 * include/grub/envblk.h: New file.
37367
37368 * util/envblk.c: New file.
37369
37370 * util/grub-editenv.c: New file.
37371
37372 * commands/loadenv.c: New file.
37373
0e9e51ec 373742008-07-01 Pavel Roskin <proski@gnu.org>
37375
d89b7634 37376 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37377 not unsigned char. This fixes warnings and is consistent with
37378 other tags.
37379
bf1835b1 37380 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37381
8222a04b 37382 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37383
6a42d99d 37384 * term/tparm.c (analyze): Always set *popcount.
37385
10b159d1 37386 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37387 cast to fix a warning.
37388
b8789f6c 37389 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37390 cast to suppress a warning.
37391
29d7e38a 37392 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37393 grub_fshelp_read_file() expects.
37394
f341f669 37395 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37396 write uuid as a 32-bit value in CPU byte order, so declare and
37397 use it as such.
37398
0e9e51ec 37399 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37400 long if the format specifier expects it.
37401 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37402 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37403 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37404 long to fix a warning.
37405 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37406 grub_dprintf() arguments to fix warnings.
37407
3aefa857 374082008-06-30 Pavel Roskin <proski@gnu.org>
37409
56c7668b 37410 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37411 install_bsd_part immediately before core.img is embedded or
37412 modified on disk. This fixes core.img verification if core.img
37413 cannot be embedded.
37414
3aefa857 37415 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37416 core_path to calculate the blocklist.
37417 Patch from Javier Martín <lordhabbit@gmail.com>
37418
5444088d 374192008-06-29 Robert Millan <rmh@aybabtu.com>
37420
37421 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37422 block to disk block.
37423 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37424 Patch from Niels Böhm <bitbucket@arcor.de>
37425
674835c8 374262008-06-29 Robert Millan <rmh@aybabtu.com>
37427
37428 * util/update-grub_lib.in (font_path): Search for fonts in
37429 /boot/grub first, which is more likely to be readable (we aren't
37430 deciding where fonts live, just looking for them).
37431
f527dbc8 374322008-06-26 Pavel Roskin <proski@gnu.org>
37433
6c2d8df6 37434 * util/biosdisk.c (read_device_map): Don't leave dead map
37435 entries for devices failing stat() check.
37436
f527dbc8 37437 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37438 core_path_dev for the core.img path on the target device.
37439
aebe3d13 374402008-06-26 Robert Millan <rmh@aybabtu.com>
37441
37442 * disk/fs_uuid.c: New file.
37443 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37444 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37445 (fs_uuid_mod_LDFLAGS): New variables.
37446 * include/grub/disk.h (grub_disk_dev_id): Add
37447 `GRUB_DISK_DEVICE_UUID_ID'.
37448 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37449 implement iterate().
37450
37aaf354 374512008-06-26 Robert Millan <rmh@aybabtu.com>
37452
37453 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37454 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37455 Linux image includes no initrd.
37456
25ff262a 374572008-06-21 Javier Martín <lordhabbit@gmail.com>
37458
37459 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37460 call to resolve the core image location that effectively appended the
37461 name twice.
37462
76a2bd44 374632008-06-21 Robert Millan <rmh@aybabtu.com>
37464
37465 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37466 call from here ...
37467
37468 * util/grub.d/10_hurd.in: ... to here ...
37469 * util/grub.d/10_linux.in: ... and here.
37470
650e1c79 374712008-06-19 Robert Millan <rmh@aybabtu.com>
37472
fe987087 37473 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 37474 after it has been set by grub_machine_set_prefix().
37475
6ce63911 374762008-06-19 Robert Millan <rmh@aybabtu.com>
37477
37478 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37479 search result when not saving to variable, not the other way around.
37480 When saving to variable, abort iteration as soon as a match is found.
37481
73940cec 374822008-06-19 Robert Millan <rmh@aybabtu.com>
37483
37484 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37485 check for partition that provides /boot/grub. Its logic is flawed,
37486 as it prevents prepare_grub_to_access_device() from being called
37487 multiple times.
37488
3c62a39d 374892008-06-19 Robert Millan <rmh@aybabtu.com>
37490
37491 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37492 "insmod" command directly when abstraction modules are needed,
fe987087 37493 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 37494 since it had already been processed).
37495
47395a42 374962008-06-19 Pavel Roskin <proski@gnu.org>
37497
37498 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37499 changed. This is needed in case GRUB_LIBDIR changes.
37500 * conf/i386-ieee1275.rmk: Likewise.
37501 * conf/i386-linuxbios.rmk: Likewise.
37502 * conf/i386-pc.rmk: Likewise.
37503 * conf/powerpc-ieee1275.rmk: Likewise.
37504
a145ac2d 375052008-06-18 Pavel Roskin <proski@gnu.org>
37506
37507 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37508 kernel_elf_symlist.c to symlist.c for consistency with other
37509 architectures. Update all users.
37510 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37511
7847c51e 375122008-06-18 Robert Millan <rmh@aybabtu.com>
37513
37514 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37515 it in prefix.
37516
37517 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37518 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37519 a RAID device, run setup() for all members independently on whether
37520 LVM abstraction is being used.
37521 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37522 If grub-mkimage has set `*install_dos_part == -2', don't override this
37523 value.
37524 Perform *install_dos_part adjustments independently on whether
37525 we're embedding or not.
37526 Clarify error message when image is too big for embedding.
37527 Remove duplicate *install_dos_part stanza.
37528
b23e5644 375292008-06-17 Robert Millan <rmh@aybabtu.com>
37530
37531 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37532 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37533 variables.
37534 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37535 values in grub_ofconsole_normal_color and
37536 grub_ofconsole_highlight_color (they're not directly related to
37537 background and foreground).
37538 (grub_ofconsole_setcolorstate): Extract background and foreground
37539 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37540
0aac2f79 375412008-06-17 Robert Millan <rmh@aybabtu.com>
37542
37543 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37544 /boot/grub for the check in last commit, not /boot (they could be
37545 different partitions).
37546
3cca7ef3 375472008-06-16 Robert Millan <rmh@aybabtu.com>
37548
37549 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37550 asked to setup access for the same partition that provides /boot,
37551 don't bother using UUIDs since our root already has the value we
37552 want.
37553
347396d8 375542008-06-16 Robert Millan <rmh@aybabtu.com>
37555
37556 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37557 I2O devices.
37558 Patch from Sven Mueller <sven@debian.org>.
37559
991477f8 375602008-06-16 Robert Millan <rmh@aybabtu.com>
37561
37562 * util/update-grub.in: Check for $EUID instead of $UID.
37563 Reported by Vincent Zweije.
37564
d31a32a1 375652008-06-16 Bean <bean123ch@gmail.com>
37566
fe987087 37567 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 37568 (grub_ext2_read_block): Likewise.
37569 (grub_ext2_read_inode): Likewise.
37570 (grub_ext2_mount): Likewise.
37571 (grub_ext2_close): Likewise.
37572 (grub_ext3_get_journal): Removed.
37573
fe987087 37574 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 37575 (grub_reiserfs_read_symlink): Likewise.
37576 (grub_reiserfs_mount): Likewise.
37577 (grub_reiserfs_open): Likewise.
37578 (grub_reiserfs_read): Likewise.
37579 (grub_reiserfs_close): Likewise.
37580 (grub_reiserfs_get_journal): Removed.
37581
37582 * fs/fshelp.c (grub_fshelp_read): Removed.
37583 (grub_fshelp_map_block): Likewise.
37584
37585 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37586 (grub_fshelp_journal): Likewise.
37587 (grub_fshelp_read): Likewise.
37588 (grub_fshelp_map_block): Likewise.
37589
3540a760 375902008-06-16 Pavel Roskin <proski@gnu.org>
37591
37592 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37593 floating point anymore.
37594 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37595
95614c84 375962008-06-15 Pavel Roskin <proski@gnu.org>
37597
37598 * commands/ls.c (grub_ls_list_files): Use integer calculations
37599 for human readable format, avoid floating point use.
37600 * kern/misc.c (grub_ftoa): Remove.
37601 (grub_vsprintf): Remove floating point support.
37602
50465dd6 376032008-06-15 Robert Millan <rmh@aybabtu.com>
37604
fe6b695a 37605 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 37606 devices.
37607 Reported by Max Vozeler.
37608
a9207284 376092008-06-15 Robert Millan <rmh@aybabtu.com>
37610
37611 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37612 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37613 skipped later.
37614 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37615 the beginning of the prefix.
37616
37617 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37618 It is assumed that if we have a memdisk, grub-mkimage has set
37619 grub_prefix to include the "(memdisk)" drive in it.
37620
a7cbd45a 376212008-06-15 Robert Millan <rmh@aybabtu.com>
37622
37623 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37624 Initialize keyboard controller after registering the terminal, so that
37625 grub_printf() can be called from grub_keyboard_controller_init().
37626
21cf716a 376272008-06-15 Robert Millan <rmh@aybabtu.com>
37628
37629 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37630 extent-btree which is written as big endian on disk.
37631 Reported by Alain Greppin <al@chilibi.org>.
37632
23a64d8e 376332008-06-14 Robert Millan <rmh@aybabtu.com>
37634
37635 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37636 * util/i386/pc/grub-install.in (modules): Likewise.
37637
d687651c 376382008-06-13 Pavel Roskin <proski@gnu.org>
37639
37640 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37641
dfe9ddd4 376422008-06-13 Bean <bean123ch@gmail.com>
37643
37644 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37645
37646 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37647
37648 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37649 to indicate sparse block.
37650
16ae7781 376512008-06-12 Pavel Roskin <proski@gnu.org>
37652
e6d1a308 37653 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37654 number, grub_fshelp_read() does it for us.
37655
16ae7781 37656 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37657 linear disk read with journal translation.
37658 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37659 * include/grub/fshelp.h: Declare grub_fshelp_read().
37660
40fd3a2b 376612008-06-09 Pavel Roskin <proski@gnu.org>
37662
37663 * fs/minix.c (grub_minix_mount): Handle error reading
37664 superblock.
37665
f5679726 376662008-06-08 Robert Millan <rmh@aybabtu.com>
37667
37668 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37669 don't append the RAID prefix afterwards.
37670 Reported by Clint Adams.
37671
ce525529 376722008-06-08 Robert Millan <rmh@aybabtu.com>
37673
37674 Based on description from Pavel:
37675 * kern/disk.c (grub_disk_check_range): Rename to ...
37676 (grub_disk_adjust_range): ... this. Add a comment explaining the
37677 tasks performed by this function.
37678
ad4936a0 376792008-06-08 Robert Millan <rmh@aybabtu.com>
37680
37681 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37682 `num_serial' (for consistency with other variables).
37683 (struct grub_ntfs_data): Add `uuid' member.
37684 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37685 (grub_ntfs_uuid): New function.
37686 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37687
dc20b0f9 376882008-06-07 Pavel Roskin <proski@gnu.org>
37689
37690 * util/biosdisk.c (open_device): Revert last change to the
37691 function, it broke installation. The sector needs to be
37692 different dependent on which device is opened.
37693
c5e3cfba 376942008-06-06 Robert Millan <rmh@aybabtu.com>
37695
37696 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37697 rest of GRUB, and breakage doesn't happen if its value were modified.
37698
37699 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37700 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37701 a constant (same value).
37702 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37703 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37704
26a1f8c4 377052008-06-06 Robert Millan <rmh@aybabtu.com>
37706
37707 * util/biosdisk.c (open_device): Do not modify sector offset when
37708 accessing a partition. kern/disk.c already handles this for us.
37709
25d6b327 377102008-06-06 Robert Millan <rmh@aybabtu.com>
37711
37712 * util/grub-emu.c (grub_machine_init): Move code in this function from
37713 here ...
37714 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37715 segfault in case grub_printf() is called).
37716
37717 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37718 grub_probe. Update all users not to explicitly add it again.
37719 (grub_device): New variable; contains corresponding device for grubdir.
37720 (fs_module, partmap_module, devabstraction_module): Pass
37721 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37722 every time.
37723
9ece62fb 377242008-06-05 Robert Millan <rmh@aybabtu.com>
37725
37726 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37727 is found, print it (same layout as with labels).
37728
1ad36d37 377292008-06-04 Robert Millan <rmh@aybabtu.com>
37730
37731 * util/biosdisk.c (get_drive): Rename to ...
37732 (find_grub_drive): ... this. Update all users.
37733
37734 (get_os_disk): Rename to ...
37735 (convert_system_partition_to_system_disk): ... this. Update all users.
37736
37737 (find_drive): Rename to ...
37738 (find_system_device): ... this. Update all users.
37739
e6a30859 377402008-06-04 Robert Millan <rmh@aybabtu.com>
37741
37742 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37743 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37744 (make_device_map): Likewise.
37745
00c108a4 377462008-06-01 Robert Millan <rmh@aybabtu.com>
37747
37748 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37749 before dereferencing it.
37750
37751 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37752 union with fat12/fat16-specific ones. Add some new fields, including
37753 `num_serial' for both versions.
37754 (struct grub_fat_data): Add `uuid' member.
37755 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37756 names. Initialize `data->uuid' using `num_serial'.
37757 (grub_fat_uuid): New function.
37758 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37759
37760 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37761 (grub_reiserfs_uuid): New function.
37762 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37763 member.
37764
37765 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37766 (grub_xfs_uuid): New function.
37767 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37768
1385c5bb 377692008-06-01 Robert Millan <rmh@aybabtu.com>
37770
37771 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37772 code that is backward compatible with pre-uuid search command.
37773
c682dfd7 377742008-05-31 Robert Millan <rmh@aybabtu.com>
37775
37776 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37777 floppies after everything else, to ensure floppy drive isn't accessed
37778 unnecessarily (patch from Bean).
37779
b7db5d47 377802008-05-31 Robert Millan <rmh@aybabtu.com>
37781
37782 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37783 not print device names when we were asked to set a variable.
37784
6e037aa9 377852008-05-31 Robert Millan <rmh@aybabtu.com>
37786
37787 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37788 using "cursor-on" and "cursor-off" commands (understood at least by
37789 the Open Firmware flavour on OLPC).
37790
41305bc8 377912008-05-31 Michael Gorven <michael@gorven.za.net>
37792
37793 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37794 on and off sequences.
37795
69ba137e 377962008-05-31 Robert Millan <rmh@aybabtu.com>
37797
37798 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37799 * util/update-grub.in: Likewise.
37800
520ae21b 378012008-05-30 Pavel Roskin <proski@gnu.org>
37802
37803 * util/biosdisk.c (linux_find_partition): Simplify logic and
37804 make the code more universal. Keep special processing for
37805 devfs, but use a simple rule for all other devices. If the
37806 device ends with a number, append 'p' and the partition number.
37807 Otherwise, append only the partition number.
37808
5786569b 378092008-05-30 Robert Millan <rmh@aybabtu.com>
37810
37811 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37812 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37813 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37814 the `root' parameter to Linux.
37815
51500452 378162008-05-30 Robert Millan <rmh@aybabtu.com>
37817
37818 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37819 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37820 --fs_uuid with --fs-uuid.
37821 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37822 all filesystems support them).
37823
811d3878 378242008-05-30 Robert Millan <rmh@aybabtu.com>
37825
37826 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 37827 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 37828
cab63c95 378292008-05-30 Robert Millan <rmh@aybabtu.com>
37830
37831 * util/grub.d/00_header.in: Remove obsolete comment referencing
37832 convert_system_path_to_grub_path().
37833 * util/update-grub.in: Likewise.
37834 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37835 (convert_system_path_to_grub_path): Add a warning message explaining
37836 that this function is deprecated. Rely on is_path_readable_by_grub()
37837 for the readability checks.
37838 (font_path): Use is_path_readable_by_grub() for the readability
37839 check rather than convert_system_path_to_grub_path().
37840
972e2f7a 378412008-05-30 Robert Millan <rmh@aybabtu.com>
37842
37843 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37844 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37845 converting it first.
37846 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37847 grub.cfg for access to font file, and afterwards call it again to set
37848 the root device.
37849
62191274 378502008-05-30 Robert Millan <rmh@aybabtu.com>
37851
37852 * commands/search.c (options): Add --fs_uuid option.
37853 (search_fs_uuid): New function.
37854 (grub_cmd_search): Fix --set argument passing.
37855 Use search_fs_uuid() when requested via --fs_uuid.
37856 (grub_search_init): Update help message.
37857 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37858 and redeclare it as an array of 16-bit words.
37859 (grub_ext2_uuid): New function.
37860 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37861 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37862 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37863 (GRUB_DEVICE_BOOT_UUID): New variables.
37864 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37865 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37866 whenever possible.
37867 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37868 just assume `root' variable has the right value.
37869 * util/grub.d/10_linux.in: Likewise.
37870 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37871 via PRINT_FS_UUID.
37872 (main): Recognise `-t fs_uuid' argument.
37873
01b73ec8 378742008-05-30 Robert Millan <rmh@aybabtu.com>
37875
37876 * util/biosdisk.c (map): Redefine structure to hold information
37877 about GRUB drive name.
fe6b695a 37878 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 37879 drive names.
37880 (call_hook): Remove.
37881 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37882 member. Assume drive has partitions.
37883 (grub_util_biosdisk_open): Access device names via `.device' struct
37884 member.
37885 (open_device): Likewise.
37886 (find_drive): Likewise.
37887 (read_device_map): Adjust map[] usage to match the new struct
37888 definition. Don't check for duplicates (still possible, but not cheap
37889 anymore).
37890 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37891 (make_device_name): Remove assumption of BIOS-like drive names.
37892
22f16596 378932008-05-30 Pavel Roskin <proski@gnu.org>
37894
37895 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37896 compiling execute.c doesn't need grub_script.tab.h anymore.
37897 (normal/command.c_DEPENDENCIES): Likewise.
37898 (normal/function.c_DEPENDENCIES): Likewise.
37899 * conf/i386-ieee1275.rmk: Likewise.
37900 * conf/i386-linuxbios.rmk: Likewise.
37901 * conf/i386-pc.rmk: Likewise.
37902 * conf/powerpc-ieee1275.rmk: Likewise.
37903 * conf/sparc64-ieee1275.rmk: Likewise.
37904
528ad8f2 379052008-05-29 Pavel Roskin <proski@gnu.org>
37906
d1dff95d 37907 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37908 when scanning metadata for volume group name.
37909
528ad8f2 37910 * include/grub/script.h: Don't include grub_script.tab.h. It's
37911 a generated file, which may only be included from the files with
37912 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37913 use union YYSTYPE, as the later allows forward declaration.
37914 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37915
47248e08 379162008-05-29 Robert Millan <rmh@aybabtu.com>
37917
37918 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37919 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37920 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37921 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37922 scan codes.
37923
ee632529 379242008-05-29 Robert Millan <rmh@aybabtu.com>
37925
37926 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37927 control key combinations.
37928
eee96e08 379292008-05-29 Robert Millan <rmh@aybabtu.com>
37930
37931 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37932 * util/ieee1275/grub-install.in: ... to here.
37933 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37934 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37935 (grub_install_SOURCES): Likewise.
37936
da9a6a94 379372008-05-29 Robert Millan <rmh@aybabtu.com>
37938
37939 * fs/affs.c: Update copyright year.
37940 * fs/ext2.c: Likewise.
37941 * fs/fshelp.c: Likewise.
37942 * fs/hfsplus.c: Likewise.
37943 * fs/ntfs.c: Likewise.
37944 * fs/xfs.c: Likewise.
37945 * include/grub/fshelp.h: Likewise.
37946 * util/grub-mkdevicemap.c: Likewise.
37947
12e65f3a 379482008-05-28 Robert Millan <rmh@aybabtu.com>
37949
37950 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37951 might need to be fatfs to support some firmware implementations
37952 (e.g. OFW or EFI).
37953
23023641 379542008-05-28 Robert Millan <rmh@aybabtu.com>
37955
37956 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37957 devices.
37958 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37959 (make_device_map): Likewise.
37960
887d2619 379612008-05-20 Bean <bean123ch@gmail.com>
37962
37963 * fs/fshelp.c (grub_fshelp_map_block): New function.
37964 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37965 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37966
37967 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37968 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37969 (grub_fshelp_journal): New structure.
37970 (grub_fshelp_map_block): New function prototype.
37971 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37972 (grub_fshelp_map_block): Likewise.
37973
37974 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37975 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37976 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37977 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37978 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37979 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37980 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37981 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37982 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37983 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37984 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37985 (grub_ext2_sblock): New members for journal support.
37986 (grub_ext3_journal_header): New structure.
37987 (grub_ext3_journal_revoke_header): Likewise.
37988 (grub_ext3_journal_block_tag): Likewise.
37989 (grub_ext3_journal_sblock): Likewise.
37990 (grub_fshelp_node): New members logfile and journal.
37991 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37992 grub_fshelp_map_block to get real block number.
37993 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37994 number.
37995 (grub_ext2_read_inode): Likewise.
37996 (grub_ext3_get_journal): New function.
37997 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37998 (grub_ext2_close): Release memory used by journal.
37999
38000 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
38001 (REISERFS_MAGIC_DESC_BLOCK): New macro.
38002 (grub_reiserfs_transaction_header): Renamed to
38003 grub_reiserfs_description_block, replace field data with real_blocks.
38004 (grub_reiserfs_commit_block): New structure.
38005 (grub_reiserfs_data): New member journal.
38006 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
38007 number.
38008 (grub_reiserfs_read_symlink): Likewise.
38009 (grub_reiserfs_iterate_dir): Likewise.
38010 (grub_reiserfs_open): Likewise.
38011 (grub_reiserfs_read): Likewise.
38012 (grub_reiserfs_get_journal): New function.
38013 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
38014 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
38015 using grub_reiserfs_get_journal.
38016 (grub_reiserfs_close): Release memory used by journal.
38017
38018 * fs/affs.c (grub_affs_read_block): Change block type to
38019 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
38020
38021 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
38022
38023 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
38024
38025 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
38026
38027 * fs/udf.c (grub_udf_read_block): Change block type to
38028 grub_disk_addr_t. Use type cast to avoid warning.
38029
38030 * fs/xfs.c (grub_xfs_read_block): Likewise.
38031
b7c6bed5 380322008-05-16 Christian Franke <franke@computer.org>
38033
38034 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
38035 to ensure that break with ESC will always work.
38036 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
38037 Remove ESC from keyboard queue.
38038
eedf167f 380392008-05-16 Christian Franke <franke@computer.org>
38040
38041 * util/biosdisk.c: [__CYGWIN__] Add includes.
38042 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
38043 (get_os_disk): Move variable declarations to OS specific
38044 parts to avoid warning.
38045 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
38046 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
38047 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
38048 Cygwin.
38049 * util/getroot.c: [__CYGWIN__] Add includes.
38050 (strip_extra_slashes): Fix "/" case.
38051 [__CYGWIN__] (get_win32_path): New function.
38052 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
38053 [__CYGWIN__] (find_root_device): Disable.
38054 [__CYGWIN__] (get_bootsec_serial): New function.
38055 [__CYGWIN__] (find_cygwin_root_device): Likewise.
38056 [__linux__] (grub_guess_root_device): Add early returns to simplify
38057 structure.
38058 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
38059 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
38060 check for Linux only.
38061
a079699e 380622008-05-15 Bean <bean123ch@gmail.com>
38063
38064 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
38065 keyboard hang problem in apple's intel mac.
38066
1cf4059a 380672008-05-09 Robert Millan <rmh@aybabtu.com>
38068
38069 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
38070 devices.
38071 * util/grub-mkdevicemap.c (get_virtio_disk_name)
38072 (make_device_map): Likewise.
38073 Reported by Aurelien Jarno <aurel32@debian.org>
38074
ed759390 380752008-05-07 Ian Campbell <ijc@hellion.org.uk>
38076
38077 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
38078 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
38079 (make_device_map): Output entries for xvd type disks.
38080
b56c4eaa 380812008-05-07 Robert Millan <rmh@aybabtu.com>
38082
38083 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
38084 devices.
38085 * util/grub-mkdevicemap.c (get_cciss_disk_name)
38086 (make_device_map): Likewise.
38087 Reported by Roland Dreier <rdreier@cisco.com>
38088
7f8866ed 380892008-05-07 Robert Millan <rmh@aybabtu.com>
38090
38091 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
38092 grub_strstr() call. Correct a few mistakes in failure path handling.
38093
b0346e0f 380942008-05-06 Robert Millan <rmh@aybabtu.com>
38095
38096 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38097 Do not print a trailing slash (therefore, the root directory is an
38098 empty string).
38099 (convert_system_path_to_grub_path): Do not remove trailing slash
38100 from make_system_path_relative_to_its_root() output.
38101
38102 * util/i386/pc/grub-install.in: Add trailing slash to output from
38103 make_system_path_relative_to_its_root().
38104
6cf12cbd 381052008-05-06 Robert Millan <rmh@aybabtu.com>
38106
38107 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
38108 ensures that output lines aren't intermangled with those sent to
38109 stderr (via grub_util_info()).
38110 * util/grub-probe.c (grub_refresh): Likewise.
38111 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
38112
0fbb3117 381132008-05-05 Christian Franke <franke@computer.org>
38114
38115 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
38116 Add Cygwin device names.
38117 (get_ide_disk_name) [__CYGWIN__]: Likewise.
38118 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
38119 (check_device): Return error instead of success on empty name.
38120 (make_device_map): Move label inside linux specific code to
38121 prevent compiler warning.
38122
8124cdb7 381232008-04-30 Robert Millan <rmh@aybabtu.com>
38124
38125 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
38126 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
38127 first boot option.
38128 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
38129
094c01d0 381302008-04-29 Robert Millan <rmh@aybabtu.com>
38131
38132 * docs/grub.cfg: New file (example GRUB configuration).
38133
f4b1fc02 381342008-04-26 Robert Millan <rmh@aybabtu.com>
38135
329ce2a5 38136 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
38137 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
38138 and `disk/ieee1275/nand.c'.
f4b1fc02 38139
25f16ec1 381402008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 38141
25f16ec1 38142 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
38143 i386-linuxbios.
38144
38145 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
38146 change the buffer size to 4096 for cdrom device.
38147
38148 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
38149 and nand.mod.
38150 (_linux_mod_SOURCES): New variable.
38151 (_linux_mod_CFLAGS): Likewise.
38152 (_linux_mod_LDFLAGS): Likewise.
38153 (linux_mod_SOURCES): Likewise.
38154 (linux_mod_CFLAGS): Likewise.
38155 (linux_mod_LDFLAGS): Likewise.
38156 (nand_mod_SOURCES): Likewise.
38157 (nand_mod_CFLAGS): Likewise.
38158 (nand_mod_LDFLAGS): Likewise.
38159
38160 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
38161 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
38162 type property. (nand device in olpc don't have this property)
38163
38164 * include/grub/disk.h (grub_disk_dev_id): New macro
38165 GRUB_DISK_DEVICE_NAND_ID.
38166
38167 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
38168 function prototype.
38169 (grub_rescue_cmd_initrd): Likewise.
38170
38171 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
38172 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
38173 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 38174
25f16ec1 38175 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
38176 GRUB_MACHINE_IEEE1275 is defined.
38177
38178 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
38179 Use NESTED_FUNC_ATTR attribute on the hook parameter.
38180
38181 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
38182 on nested function heap_init.
38183 (grub_upper_mem): New variable for i386-ieee1275.
38184 (grub_get_extended_memory): New function for i386-ieee1275.
38185 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
38186
38187 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
38188 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
38189 property.
f19dbdb7 38190
25f16ec1 38191 * loader/i386/ieee1275/linux.c: New file.
38192
38193 * loader/i386/ieee1275/linux_normal.c: New file.
38194
38195 * disk/ieee1275/nand.c: New file.
38196
e89d61e9 381972008-04-18 Thomas Schwinge <tschwinge@gnu.org>
38198
38199 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
38200 value.
38201 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
38202
602566f6 382032008-04-18 Robert Millan <rmh@aybabtu.com>
38204
38205 Restructures early code path on ieee1275 to unify grub_main() as
38206 the first C function that is executed in every platform.
38207
38208 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
38209 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
38210 cmain().
38211 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
38212 * kern/ieee1275/cmain.c (cmain): Rename to ...
38213 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
38214 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
38215 at the beginning.
38216
57490c2b 382172008-04-18 Robert Millan <rmh@aybabtu.com>
38218
38219 * util/update-grub.in: Fix syntax error when setting
38220 `GRUB_PRELOAD_MODULES'.
38221 Reported by Stephane Chazelas <stephane@artesyncp.com>
38222
1977517d 382232008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
38224
38225 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
38226 section into account, newer toolchains generate unique build ids
38227 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 38228 we want build ids to be preserved
1977517d 38229 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
38230 far from other sections don't cause the raw binary images grow
38231 size
38232
bfb1f1a2 382332008-04-15 Robert Millan <rmh@aybabtu.com>
38234
38235 * disk/lvm.c: Update copyright year.
38236 * kern/misc.c: Likewise.
38237
01979850 382382008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38239
38240 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 38241 there is no memory left for physical volume name.
01979850 38242
0a1150e2 382432008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38244
38245 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
38246 volume name mapping to support bigger than 9 character names properly.
38247
82ead3fe 382482008-04-13 Robert Millan <rmh@aybabtu.com>
38249
38250 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
38251 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
38252
e54a72f5 382532008-04-13 Christian Franke <franke@computer.org>
38254
38255 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
38256 to create a floppy emulation boot CD when non emulation mode
38257 does not work.
38258 Enable Joliet CD filesystem extension.
38259
9fe86034 382602008-04-13 Robert Millan <rmh@aybabtu.com>
38261
38262 * kern/misc.c (grub_strncat): Fix off-by-one error.
38263 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
38264
38265 * kern/env.c (grub_env_context_close): Clear current context, not
38266 previous one.
38267 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38268
38269 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38270
7ceeee39 382712008-04-13 Robert Millan <rmh@aybabtu.com>
38272
38273 Improve robustness when handling LVM.
38274
38275 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 38276 (and leave `*p' unmodified).
7ceeee39 38277 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38278 through it.
38279 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38280 iterating through it.
38281 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38282 through it.
fe6b695a 38283 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 38284 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38285 Don't assume `vg->pvs != NULL' when iterating through it.
38286
58cd3d85 382872008-04-13 Robert Millan <rmh@aybabtu.com>
38288
38289 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38290 * genmk.rb (partmap): New variable.
38291 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38292 (#{partmap}): New target rule.
38293 * genpartmaplist.sh: New file.
38294 * Makefile.in (pkglib_DATA): Add partmap.lst.
38295 (partmap.lst): New target rule.
38296 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38297 modules (including all partition maps), instead of preloading them.
38298
78b51059 382992007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38300
38301 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38302 `linux-boot-prober' (if installed) to detect other operating
38303 systems which are installed on the computer and add them to
38304 the boot menu.
38305 * conf/common.rmk: Build and install 30_os-prober.
38306
a91627b4 383072008-04-12 Robert Millan <rmh@aybabtu.com>
38308
38309 * kern/powerpc/ieee1275/init.c: Move from here ...
38310 * kern/ieee1275/init.c: ... to here. Update all users.
38311
38312 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38313 * kern/ieee1275/cmain.c: ... to here. Update all users.
38314
38315 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38316 * kern/ieee1275/openfw.c: ... to here. Update all users.
38317
38318 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38319 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38320
322562ea 383212008-04-10 Pavel Roskin <proski@gnu.org>
38322
38323 * configure.ac: Always use "_cv_" in cache variables for
38324 compatibility with Autoconf 2.62.
38325
a02a73c5 383262008-04-07 Robert Millan <rmh@aybabtu.com>
38327
38328 Revert grub/machine/init.h addition by Pavel (since it breaks on
38329 i386-ieee1275 and others):
38330 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38331 * util/powerpc/ieee1275/misc.c: Likewise.
38332
25c024b1 383332008-04-07 Robert Millan <rmh@aybabtu.com>
38334
38335 * util/grub-probe.c (probe): Improve error message.
38336
3cbd2f98 383372008-04-07 Robert Millan <rmh@aybabtu.com>
38338
38339 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38340 (this prevents the presence of a bogus entry from ruining the whole
38341 thing).
38342
87a297bf 383432008-04-06 Pavel Roskin <proski@gnu.org>
38344
36747a62 38345 * util/biosdisk.c: Include grub/util/biosdisk.h.
38346 * util/grub-fstest.c (execute_command): Make static.
38347 * util/grub-mkdevicemap.c (check_device): Likewise.
38348 * util/i386/pc/misc.c: Include grub/machine/init.h.
38349 * util/powerpc/ieee1275/misc.c: Likewise.
38350 * util/lvm.c: Include grub/util/lvm.h.
38351 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38352 grub/cache.h.
38353 * util/raid.c: Include grub/util/raid.h.
38354 (grub_util_getdiskname): Make static.
38355
87a297bf 38356 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38357 grub_hostfs_fini(), as they are called from grub_init_all() and
38358 grub_fini_all() respectively. This fixes an infinite loop in
38359 grub-fstest due to double registration of hostfs.
38360 Reported by Christian Franke <Christian.Franke@t-online.de>
38361
f6ce7629 383622008-04-05 Pavel Roskin <proski@gnu.org>
38363
38364 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38365 all 8 functions. Otherwise, probe function 0 only.
38366
070e49e4 383672008-04-04 Pavel Roskin <proski@gnu.org>
38368
8b088a4c 38369 * commands/lspci.c (grub_lspci_iter): Print the bus number
38370 correctly.
38371
4f657021 38372 * commands/lspci.c (grub_pci_classes): Fix typos.
38373 (grub_lspci_iter): Don't print func twice. Print vendor ID
38374 before device ID, as it's normally done.
38375
070e49e4 38376 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38377 Fix signedness warnings.
38378 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38379 Likewise.
38380 * util/ieee1275/get_disk_name.c: Include config.h so that
38381 _GNU_SOURCE is defined and getline() is declared. Mark an
38382 unused argument as such. Fix a signedness warning.
38383
ba7328dc 383842008-04-02 Pavel Roskin <proski@gnu.org>
38385
26887f22 38386 * genkernsyms.sh.in: Use more robust assignments for CC and
38387 srcdir. Quote srcdir.
38388 * gensymlist.sh.in: Likewise. Assert at the compile time that
38389 the symbol table is not empty.
38390
ba7328dc 38391 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38392 * fs/cpio.c (grub_cpio_read): Likewise.
38393
0f582c6b 383942008-04-01 Pavel Roskin <proski@gnu.org>
38395
4b6e1995 38396 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38397 * disk/host.c (grub_host_open): Likewise.
38398 * disk/loopback.c (grub_loopback_open): Likewise.
38399 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38400 disk->id as in disk/host.c, not a multi-character constant.
38401
828a2768 38402 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38403 later is obsolete, potentially dangerous and sets a bad example.
38404 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38405 * util/misc.c (grub_util_get_image_size): Likewise.
38406
2bb4fb47 38407 * disk/loopback.c (options): Improve help for "--partitions".
38408
0f582c6b 38409 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38410 options to align them with the short options, e.g. "echo -e".
38411
a33224e0 384122008-03-31 Bean <bean123ch@gmail.com>
38413
38414 * video/reader/png.c (grub_png_data): New member is_16bit and
38415 image_data.
38416 (grub_png_decode_image_header): Detect 16 bit png image.
38417 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38418 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38419 (grub_video_reader_png): Release memory occupied by image_data.
38420
38421 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38422 4096 bytes.
38423 (grub_nfs_mount): Skip the test for sector per cluster.
38424
38425 * include/grub/ntfs.h (MAX_SPC): Removed.
38426
86cb4f54 384272008-03-31 Bean <bean123ch@gmail.com>
38428
38429 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38430 (grub_probe_SOURCES): Add fs/afs.c.
38431 (grub_fstest_SOURCES): Likewise.
38432 (afs_mod_SOURCES): New variable.
38433 (afs_mod_CFLAGS): Likewise.
38434 (afs_mod_LDFLAGS): Likewise.
38435
38436 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38437 (grub_emu_SOURCES): Likewise.
38438
38439 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38440
38441 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38442
38443 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38444
38445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38446
38447 * fs/afs.c: New file.
38448
17c74c21 384492008-03-30 Pavel Roskin <proski@gnu.org>
38450
4cb68e89 38451 * disk/host.c: Include grub/misc.h to fix a warning.
38452 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38453 warnings about implicit declarations.
38454
8790bb04 38455 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38456 variable.
38457 * include/grub/i386/loader.h: Change declaration of
38458 grub_linux_boot() to match what grub_loader_set() expects.
38459 * util/getroot.c (grub_guess_root_device): Return const char* to
38460 fix a warning.
38461 * util/grub-probe.c (probe): Fix a warning about uninitialized
38462 abstraction_name variable.
38463 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38464 second argument as unused to fix a warning.
38465
9a3f3296 38466 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38467 missing grub_error() call.
38468
0ecef90d 38469 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38470 2.60 and newer uses it to define datadir.
38471
0bf6d401 38472 * commands/sleep.c: Fix warning about implicit declaration.
38473 * disk/memdisk.c: Likewise.
38474 * loader/aout.c: Likewise.
38475 * loader/i386/bsd_normal.c: Likewise.
38476 * util/grub-probe.c: Likewise.
38477
7cdacf97 38478 * commands/i386/cpuid.c (has_longmode): Make static.
38479 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38480 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38481
17c74c21 38482 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38483 GDT. This is more robust, as %ds can change.
38484 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38485 calling real_to_prot().
38486 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38487
80a3e68b 384882008-03-28 Pavel Roskin <proski@gnu.org>
38489
38490 * kern/i386/pc/startup.S: Assert that uncompressed functions
38491 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38492 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38493 code, as they push parts of the code (error handlers) beyond
38494 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38495 code as correctness and size.
38496
77bcd272 384972008-03-28 Pavel Roskin <proski@gnu.org>
38498
38499 * kern/i386/pc/startup.S
38500 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38501 data block address to the real mode, keep offset minimal. This
38502 works around a bug in AWARD BIOS on old Athlon systems, which
38503 makes CD detection hang.
38504
c5dfd43b 385052008-03-26 Pavel Roskin <proski@gnu.org>
38506
38507 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38508 const.
38509 * include/grub/normal.h: Add grub_parse_color_name_pair()
38510 declaration.
38511
bf962df2 385122008-03-24 Bean <bean123ch@gmail.com>
38513
38514 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38515 (cd_count): Removed.
38516 (cd_drive): New variable.
38517 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38518 (grub_biosdisk_call_hook): Likewise.
38519 (grub_biosdisk_iterate): Change cdrom detection method.
38520 (grub_biosdisk_open): Replace cd_start with cd_drive.
38521 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38522 detect cdrom device.
38523
38524 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38525 Removed.
38526 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38527 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38528 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38529 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38530 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38531 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38532 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38533 (grub_biosdisk_cdrp): New structure.
38534 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38535
38536 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38537
38538 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38539 device.
38540
38541 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38542 New function.
38543
68e7fc7a 385442008-03-20 Robert Millan <rmh@aybabtu.com>
38545
38546 Remove 2 TiB limit in ata.mod.
38547 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38548 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38549 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38550 grub_uint64_t instead of grub_uint32_t.
38551
38ad2cf5 385522008-03-05 Bean <bean123ch@gmail.com>
38553
38554 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38555 (grub_multiboot): Set boot device.
38556
38557 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38558
2b89344e 385592008-03-02 Bean <bean123ch@gmail.com>
38560
38561 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38562 symlink_buffer.
38563
87a95d1f 385642008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38565
38566 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38567 texinfo.tex.
38568
38569 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38570 modified.
38571
38572 * docs/fdl.texi: New file.
f19dbdb7 38573
87a95d1f 38574 * docs/mdate-sh: New file. Copied from gnulib.
38575 * docs/texinfo.tex: Likewise.
38576
38577 * config.guess: Updated from gnulib.
38578 * install-sh: Likewise.
38579
7dc15d8e 385802008-02-28 Robert Millan <rmh@aybabtu.com>
38581
38582 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38583 (aout_mod_SOURCES): New variable.
38584 (aout_mod_CFLAGS): Likewise.
38585 (aout_mod_LDFLAGS): Likewise.
38586
38587 * conf/i386-ieee1275.rmk: Likewise.
38588
b00ab696 385892008-02-28 Robert Millan <rmh@aybabtu.com>
38590
38591 * util/update-grub.in: Reorganise terminal validity check. Accept
38592 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38593 Based on suggestion by Franklin PIAT.
38594
79ca2d78 385952008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38596
38597 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38598 function.
38599 * util/getroot.c (grub_util_check_block_device): New function that
38600 returns the given argument if it is a block device and returns NULL else.
38601 * util/grub-probe.c (argument_is_device): New variable.
38602 (probe): Promote device_name from a variable to an argument. Receive
38603 device_name from grub_util_check_block_device() if path is NULL and from
38604 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 38605 (options): Introduce new parameter '-d, --device'.
79ca2d78 38606 (main): Add description of the new parameter to the help screen.
38607 Rename path variable to argument. Set argument_is_device if the '-d'
38608 option is given. Pass argument to probe() depending on
38609 argument_is_device.
38610
0d16e571 386112008-02-24 Bean <bean123ch@gmail.com>
38612
38613 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38614 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38615 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38616 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38617 (GRUB_ISO9660_VOLDESC_END): Likewise.
38618 (grub_iso9660_primary_voldesc): New member escape.
38619 (grub_iso9660_data): New member joliet.
38620 (grub_iso9660_convert_string): New function.
38621 (grub_iso9660_mount): Detect joliet extension.
38622 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38623 (grub_iso9660_iso9660_label): Likewise.
38624
38625 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38626 (grub_setup_SOURCES): Add fs/udf.c.
38627 (grub_fstest_SOURCES): Likewise.
38628 (udf_mod_SOURCES): New variable.
38629 (udf_mod_CFLAGS): Likewise.
38630 (udf_mod_LDFLAGS): Likewise.
38631
38632 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38633 (grub_emu_SOURCES): Likewise.
38634
38635 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38636
38637 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38638
38639 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38640
38641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38642
38643 * fs/udf.c: New file.
38644
8a594a17 386452008-02-24 Robert Millan <rmh@aybabtu.com>
38646
38647 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38648 (normal/lexer.c_DEPENDENCIES): New variables.
38649 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38650 (normal/lexer.c_DEPENDENCIES): Likewise.
38651 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38652 (normal/lexer.c_DEPENDENCIES): Likewise.
38653 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38654 (normal/lexer.c_DEPENDENCIES): Likewise.
38655 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38656 (normal/lexer.c_DEPENDENCIES): Likewise.
38657 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38658 (normal/lexer.c_DEPENDENCIES): Likewise.
38659
2dc33c03 386602008-02-23 Robert Millan <rmh@aybabtu.com>
38661
38662 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38663 since they were intended to be in hex. This didn't break previously
38664 because of a bug in gpt_partition_map_iterate() (see below).
38665
38666 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38667 when checking the validity of GPT header.
38668 Remove `partno', since it always provides the same information as `i'.
38669
f6f4cfb0 386702008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38671
38672 * include/grub/efi/time.h: Fix a wrong comment.
38673
79ff665f 386742008-02-19 Pavel Roskin <proski@gnu.org>
38675
38676 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38677 message.
38678
d38e24c2 386792008-02-19 Bean <bean123ch@gmail.com>
38680
38681 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38682 (aout_mod_SOURCES): New variable.
38683 (aout_mod_CFLAGS): Likewise.
38684 (aout_mod_LDFLAGS): Likewise.
38685 (_bsd_mod_SOURCES): New variable.
38686 (_bsd_mod_CFLAGS): Likewise.
38687 (_bsd_mod_LDFLAGS): Likewise.
38688 (bsd_mod_SOURCES): New variable.
38689 (bsd_mod_CFLAGS): Likewise.
38690 (bsd_mod_LDFLAGS): Likewise.
38691
38692 * include/grub/aout.h: New file.
38693
38694 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38695
38696 * include/grub/i386/bsd.h: New file.
38697
38698 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38699 to make it public.
38700
38701 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38702 function is called, so that it's possible to change it inside the hook.
38703 (grub_elf64_load): Likewise.
38704 (grub_elf_file): Don't close the file if elf header is not found.
38705 (grub_elf_close): Close the file if grub_elf_file fails (The new
38706 grub_elf_file won't close it).
38707 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38708 (grub_elf64_size): Likewise.
38709
38710 * kern/i386/loader.S (grub_unix_real_boot): New function.
38711
38712 * loader/aout.c: New file.
38713
38714 * loader/i386/bsd.c: New file.
38715
38716 * loader/i386/bsd_normal.c: New file.
38717
38718 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38719
38720 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 38721 can test other formats.
d38e24c2 38722
b93bdb0f 387232008-02-19 Robert Millan <rmh@aybabtu.com>
38724
38725 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38726 (grub_gpt_partition_type_empty): Redefine with macro from
38727 `<grub/gpt_partition.h>'.
38728 (gpt_partition_map_iterate): Adjust partition type comparison.
38729
38730 Export `entry' as partmap-specific `part.data' struct.
38731 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38732
38733 * include/grub/gpt_partition.h (grub_gpt_header)
38734 (grub_gpt_partentry): ... to here (new file).
38735
38736 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38737
38738 (grub_gpt_partition_type_bios_boot): New const variable, defined
38739 with macro from `<grub/gpt_partition.h>'.
38740
38741 (setup): Replace `first_start' with `embed_region', which keeps
38742 track of the embed region (and is partmap-agnostic).
38743
38744 Replace find_first_partition_start() with find_usable_region(),
38745 which finds a usable region for embedding using partmap-specific
38746 knowledge (supports PC/MSDOS and GPT).
38747
38748 Fix all assumptions that the embed region start at sector 1, using
38749 `embed_region.start' from now on. Similarly, use `embed_region.end'
38750 rather than `first_start' to calculate available size.
38751
38752 In grub_util_info() message, replace "into after the MBR" with an
38753 indication of the specific sector our embed region starts at.
38754
66cb40f6 387552008-02-19 Robert Millan <rmh@aybabtu.com>
38756
38757 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38758 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38759 `commands/reboot.c'.
38760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38761 (halt_mod_SOURCES): Likewise.
38762 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38763 (halt_mod_SOURCES): Likewise.
38764
b7202015 387652008-02-17 Christian Franke <franke@computer.org>
38766
38767 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38768
32b0fc49 387692008-02-17 Robert Millan <rmh@aybabtu.com>
38770
38771 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38772 set `first_start' to 0 for non-PC/MSDOS partition maps.
38773
aca63502 387742008-02-16 Robert Millan <rmh@aybabtu.com>
38775
38776 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38777 do not assume partition map is PC/MSDOS before performing checks that
38778 are specific to that layout.
38779
0de8be86 387802008-02-13 Robert Millan <rmh@aybabtu.com>
38781
38782 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38783 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38784 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38785
c3db8364 387862008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38787
38788 * configure.ac: Only a cosmetic change on the handling of
38789 -fno-stack-protector.
38790
f714229e 387912008-02-12 Alexandre Boeglin <alex@boeglin.org>
38792
c3db8364 38793 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38794 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38795 reboot.c.
f714229e 38796 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38797 (halt_mod_SOURCES): New variable.
38798 (halt_mod_CFLAGS): Likewise.
38799 (halt_mod_LDFLAGS): Likewise.
38800 (reboot_mod_SOURCES): Likewise.
38801 (reboot_mod_CFLAGS): Likewise.
38802 (reboot_mod_LDFLAGS): Likewise.
38803
c3db8364 38804 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38805 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38806 reboot.c.
f714229e 38807 (halt_mod_SOURCES): Likewise.
38808 (reboot_mod_SOURCES): Likewise.
38809
c3db8364 38810 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38811 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 38812 (reboot_mod_SOURCES): Likewise.
38813
38814 * commands/i386/pc/reboot.c: merge this file ...
38815
38816 * commands/ieee1275/reboot.c: ... and this file ...
38817
38818 * commands/reboot.c: ... to this file.
c3db8364 38819 Add some precompiler directive to include the correct header for
38820 each machine.
f714229e 38821
38822 * commands/ieee1275/halt.c: move this file ...
38823
38824 * commands/halt.c: ... to here.
c3db8364 38825 Add some precompiler directive to include the correct header for
38826 each machine.
f714229e 38827
38828 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38829 (grub_halt): Likewise.
38830
38831 * kern/efi/efi.c (grub_reboot): New function.
38832 (grub_halt): Likewise.
38833
c74493e0 388342008-02-12 Robert Millan <rmh@aybabtu.com>
38835
38836 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38837 /dev (like it is done for /dev/mapper). This doesn't provide support
38838 for EVMS, but at least it is now easy to identify the problem when it
38839 arises.
38840
d0db4b04 388412008-02-11 Robert Millan <rmh@aybabtu.com>
38842
38843 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38844 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38845 comparing it with -1, not 0.
38846
bf748642 388472008-02-10 Robert Millan <rmh@aybabtu.com>
38848
38849 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38850 `disk/lvm.c'.
38851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38852 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38853
38854 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38855 `disk/lvm.c' to the end of the list.
38856 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38857 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38858
b5db202a 388592008-02-10 Robert Millan <rmh@aybabtu.com>
38860
38861 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38862 grub_print_error() instead. This will let user know why we're entering
38863 rescue mode.
38864 Based on suggestions from Sam Morris.
38865
83abee31 388662008-02-10 Alexandre Boeglin <alex@boeglin.org>
38867
38868 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38869 on remaining N args, instead of "--" arg N times.
38870
78d5a08b 388712008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38872
38873 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38874 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38875 pattern for unknown glyphs.
38876
68807e5f 388772008-02-09 Robert Millan <rmh@aybabtu.com>
38878
38879 * configure.ac: Probe for `help2man'.
38880 * Makefile.in (builddir): New variable.
38881 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38882 or otherwise add a few flags/options to it.
38883 (install-local): For every executable utility or script that is
38884 installed, invoke $(HELP2MAN) to install a manpage based on --help
38885 output.
38886
38887 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38888 that it doesn't prevent --help from working in build tree.
38889
38890 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38891 with `bug-grub@gnu.org'.
38892 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38893 * util/update-grub.in (usage): New function.
38894 Implement proper argument check, with support for --help and --version
38895 (as well as existing -y).
38896
388972008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 38898
38899 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38900 avoid overwriting previous output.
38901 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38902
c1962162 389032008-02-09 Robert Millan <rmh@aybabtu.com>
38904
38905 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38906 drawing the menu.
38907
3dac2e3f 389082008-02-09 Robert Millan <rmh@aybabtu.com>
38909
38910 * commands/sleep.c: New file.
38911 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38912 (sleep_mod_SOURCES): New variable.
38913 (sleep_mod_CFLAGS): Likewise.
38914 (sleep_mod_LDFLAGS): Likewise.
38915
7a634e08 389162008-02-09 Robert Millan <rmh@aybabtu.com>
38917
38918 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38919 situations in which we can deduce the RAID size and the superblock
38920 doesn't match it.
38921
b92f0c18 389222008-02-09 Robert Millan <rmh@aybabtu.com>
38923
38924 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38925 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38926 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38927
38928 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38929 and return a grub_diskmemberlist_t composed of physical array members.
38930 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38931
38932 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38933 prototype.
38934 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38935 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38936 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38937
38938 * util/grub-probe.c (probe): Move partmap probing code from here ...
38939 (probe_partmap): ... to here.
38940 (probe): Use probe_partmap() once for the disk we're probing, and
38941 additionally, when such disk contains a memberlist() struct member,
38942 once for each disk that is contained in the structure returned by
38943 memberlist().
38944
91a4bf68 389452008-02-09 Robert Millan <rmh@aybabtu.com>
38946
38947 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38948 environment variable to 'all' in order to obtain debug output from
38949 non-util/ code.
38950 * util/i386/pc/grub-setup.c (main): Likewise.
38951
a96f9caa 389522008-02-08 Robert Millan <rmh@aybabtu.com>
38953
38954 * disk/raid.c (grub_raid_scan_device): Check for
38955 `array->device[sb.this_disk.number]' rather than for
38956 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 38957 guaranteed to be accessible.
a96f9caa 38958
b37a9222 389592008-02-08 Robert Millan <rmh@aybabtu.com>
38960
38961 * disk/raid.c: Update copyright.
38962 * fs/cpio.c: Likewise.
38963 * include/grub/raid.h: Likewise.
38964 * loader/i386/pc/multiboot.c: Likewise.
38965 * util/hostfs.c: Likewise.
38966
5626aee1 389672008-02-08 Robert Millan <rmh@aybabtu.com>
38968
38969 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38970 to a grub_disk_t array.
38971 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38972 `device[x]'.
38973 (grub_raid_scan_device): Replace `device[x].name' accesses with
38974 `device[x]->name'. Simplify initialization of `array->device[x]'.
38975
554f0187 389762008-02-08 Robert Millan <rmh@aybabtu.com>
38977
38978 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38979 grub_dprintf() calls.
38980 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38981 error message.
38982
1ec8425d 389832008-02-07 Christian Franke <franke@computer.org>
38984
38985 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38986 instead of fseek and ftell to support large files.
38987 (grub_hostfs_read): Likewise.
38988
f2156fda 389892008-02-07 Robert Millan <rmh@aybabtu.com>
38990
38991 Patch from Jeroen Dekkers.
38992 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 38993 failure, since successfully reading all array members might not be
f2156fda 38994 required.
38995
9216e0e7 389962008-02-06 Robert Millan <rmh@aybabtu.com>
38997
38998 * util/grub-probe.c (probe): Simplify partmap probing (with the
38999 assumption that the first word up to the underscore equals to
39000 the module name).
39001
b0dfd29a 390022008-02-06 Christian Franke <franke@computer.org>
39003
39004 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
39005 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
39006 last block of a cpio or tar stream.
39007 Check for "TRAILER!!!" instead of any empty data
39008 block to detect last block of a cpio stream.
39009 (grub_cpio_dir): Fix constness of variable np.
39010 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
39011 cpio or tar trailer is detected. This fixes a crash
39012 on open of a non existing file.
39013
c32865bf 390142008-02-05 Bean <bean123ch@gmail.com>
39015
39016 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
39017 address of entry.
39018 (grub_multiboot_load_elf64): Likewise.
39019 (grub_multiboot): Initialize mbi structure.
39020
39021 * util/grub-fstest.c: Don't include unused header file script.h.
39022
fe6b695a 39023 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 39024 of file.
39025 (grub_fstest_SOURCES): Likewise.
39026
409480b7 390272008-02-05 Robert Millan <rmh@aybabtu.com>
39028
39029 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
39030 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
39031 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
39032 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
39033
39034 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
39035 (translation_table): Replace hardcoded values with macros
39036 provided by `<grub/term.h>'.
39037
39038 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
39039 (keyboard_map): Correct/add a few values, with macros provided
39040 by `<grub/term.h>'.
39041 (keyboard_map_shift): Zero values that don't differ from their
39042 `keyboard_map' equivalents.
39043 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
39044 Discard the second scan code that is always sent by Caps lock.
39045 Only use `keyboard_map_shift' when it provides a non-zero value,
39046 otherwise fallback to `keyboard_map'.
39047
99fadbaa 390482008-02-04 Bean <bean123ch@gmail.com>
39049
39050 * Makefile.in (enable_grub_fstest): New variable.
39051
39052 * conf/common.rmk (grub_fstest_init.lst): New rule.
39053 (grub_fstest_init.h): Likewise.
39054 (grub_fstest_init.c): Likewise.
39055 (util/grub-fstest.c_DEPENDENCIES): New variable.
39056 (grub_fstest_SOURCES): Likewise.
39057
39058 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
39059
39060 * util/grub-fstest.c: New file.
39061
bf567c50 390622008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39063
39064 Make grub-setup handle a separate root device.
f19dbdb7 39065
bf567c50 39066 * util/i386/pc/grub-setup.c (setup): Always open the root device,
39067 so that the root device can be compared with the destination
39068 device.
39069 When embedding the core image, if the root and destination devices
39070 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
39071 0xFF.
39072 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 39073
9be6b98b 390742008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39075
39076 Add support for having a grub directory in a different drive. This
39077 is still only the data handling part.
f19dbdb7 39078
9be6b98b 39079 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
39080 (codestart): Save %dh in GRUB_ROOT_DRIVE.
39081 (grub_root_drive): New variable.
39082
39083 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
39084 instead of GRUB_BOOT_DRIVE to construct a device name. Set
39085 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
39086 as it was.
39087
39088 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
39089
39090 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
39091 macro.
39092 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
39093
39094 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
39095 is bogus, because PXE booting does not specify any drive
39096 correctly.
39097
39098 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
39099 am not sure if this is really correct.
39100
39101 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
39102 is always identical to the boot drive when booting from a CD.
39103
39104 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
39105 longer.
39106 (root_drive): New variable.
39107 (real_start): Unconditionally set %dh to ROOT_DRIVE.
39108 (setup_sectors): Push %dx right after popping it, because %dh will
39109 be modified later.
39110 (copy_buffer): Restore %dx.
39111
e0ca0677 391122008-02-03 Robert Millan <rmh@aybabtu.com>
39113
39114 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
39115 use `cdboot.img' for cdrom images.
39116
3b3f6629 391172008-02-03 Robert Millan <rmh@aybabtu.com>
39118
39119 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
39120 only setup gfxterm when `font' command has succeeded.
39121
d42b3672 391222008-02-03 Robert Millan <rmh@aybabtu.com>
39123
39124 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
39125 (grub_rescue_cmd_multiboot_loader)
39126 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
39127
fa370ea6 391282008-02-03 Pavel Roskin <proski@gnu.org>
39129
e0c5dacb 39130 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 39131 %edx and %esi from stack only after grub_gate_a20() is called.
39132 grub_gate_a20() clobbers %edx.
39133
f2a76e1d 391342008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39135
39136 * configure.ac (AC_INIT): Bumped to 1.96.
39137
39138 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
39139 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
39140 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
39141 video/readers/png.c.
39142
90fd32d1 391432008-02-03 Bean <bean123ch@gmail.com>
9be665dd 39144
39145 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
39146 (cdboot_img_SOURCES): New variable.
39147 (cdboot_img_ASFLAGS): New variable.
39148 (cdboot_img_LDFLAGS): New variable.
39149
39150 * boot/i386/pc/cdboot.S: New file.
39151
39152 * disk/i386/pc/biosdisk.c (cd_start): New variable.
39153 (cd_count): Likewise.
39154 (grub_biosdisk_get_drive): Add support for cd device.
39155 (grub_biosdisk_call_hook): Likewise.
39156 (grub_biosdisk_iterate): Likewise.
39157 (grub_biosdisk_open): Likewise.
39158 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
39159 (grub_biosdisk_rw): Support reading from cd device.
39160 (GRUB_MOD_INIT): Iterate cd devices.
39161
39162 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
39163 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
39164 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
39165
39166 * kern/i386/pc/init.c (make_install_device): Check for cd device.
39167
4020aa53 391682008-02-02 Robert Millan <rmh@aybabtu.com>
39169
39170 * commands/read.c: New file.
39171 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
39172 (read_mod_SOURCES): New variable.
39173 (read_mod_CFLAGS): Likewise.
39174 (read_mod_LDFLAGS): Likewise.
39175
e03a1132 391762008-02-02 Robert Millan <rmh@aybabtu.com>
39177
39178 * normal/main.c (grub_normal_execute): Check for `menu->size' when
39179 determining whether menu has to be displayed.
39180
58c69220 391812008-02-02 Marco Gerards <marco@gnu.org>
39182
39183 * bus/pci.c: New file.
39184
39185 * include/grub/pci.h: Likewise.
39186
39187 * include/grub/i386/pc/pci.h: Likewise.
39188
39189 * commands/lspci.c: Likewise.
39190
39191 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
39192 `lspci.mod'.
39193 (pci_mod_SOURCES): New variable.
39194 (pci_mod_CFLAGS): Likewise.
39195 (pci_mod_LDFLAGS): Likewise.
39196 (lspci_mod_SOURCES): Likewise.
39197 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 39198 (lspci_mod_LDFLAGS): Likewise.
58c69220 39199
c004e1b4 392002008-02-02 Bean <bean123ch@gmail.com>
39201
39202 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
39203 (grub_ufs_get_file_block): Fix indirect block calculation problem.
39204
39205 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
39206 (grub_xfs_btree_node): New structure.
39207 (grub_xfs_btree_root): New structure.
39208 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
39209 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
39210 (GRUB_XFS_EXTENT_BLOCK): Likewise.
39211 (GRUB_XFS_EXTENT_SIZE): Likewise.
39212 (grub_xfs_read_block): Support btree format type.
39213 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
39214 Use directory block as basic unit.
39215
39216 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
39217
39218 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
39219 __attribute__ ((__regparm__ (1))).
39220
f95562bf 392212008-02-01 Robert Millan <rmh@aybabtu.com>
39222
39223 Correct a mistake in previous commit.
39224
39225 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
39226 top.
39227 (normal/command.c_DEPENDENCIES): New variable.
39228
7d31f41f 392292008-02-01 Robert Millan <rmh@aybabtu.com>
39230
39231 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
39232 top.
39233 (normal/command.c_DEPENDENCIES): New variable.
39234 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
39235 * conf/i386-ieee1275.rmk: Likewise.
39236 * conf/i386-linuxbios.rmk: Likewise.
39237 * conf/i386-pc.rmk: Likewise.
39238 * conf/sparc64-ieee1275.rmk: Likewise.
39239 * conf/powerpc-ieee1275.rmk: Likewise.
39240 (grub_emu_SOURCES): Add `fs/fshelp.c'.
39241
39242 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
39243
60b6be74 392442008-02-01 Robert Millan <rmh@aybabtu.com>
39245
39246 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
39247 call at beginning of function.
39248
078522ab 392492008-01-31 Pavel Roskin <proski@gnu.org>
39250
39251 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 39252 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
39253 (grub_mkrescue_SOURCES): Likewise.
078522ab 39254 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
39255
ccaa8a5f 392562008-01-30 Robert Millan <rmh@aybabtu.com>
39257
39258 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
39259 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
39260 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
39261 (grub_probe_SOURCES): ... to here.
39262
39263 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
39264 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
39265 * conf/i386-ieee1275.rmk: Likewise.
39266 * conf/i386-linuxbios.rmk: Likewise.
39267 * conf/powerpc-ieee1275.rmk: Likewise.
39268
ae5a9cd7 392692008-01-30 Tristan Gingold <gingold@free.fr>
39270
39271 * kern/rescue.c: Silently accept empty lines.
39272
70bc2ef2 392732008-01-29 Bean <bean123ch@gmail.com>
39274
39275 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39276 (real_code_2): Code cleanup and change comment style.
39277 (move_memory): Avoid using 32-bit address mode.
39278
6a4d50ea 392792008-01-29 Bean <bean123ch@gmail.com>
39280
39281 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39282 (png_mod_SOURCES): New variable.
39283 (png_mod_CFLAGS): Likewise.
39284 (png_mod_LDFLAGS): Likewise.
39285
39286 * video/readers/png.c: New file.
39287
11cc30ac 392882008-01-28 Robert Millan <rmh@aybabtu.com>
39289
39290 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39291 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39292 `ifndef GRUB_MOD_GAP' hack.
39293 * util/elf/grub-mkimage.c (add_segments): Likewise.
39294
3abc589f 392952008-01-27 Robert Millan <rmh@aybabtu.com>
39296
39297 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39298 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 39299 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 39300
e1907778 393012008-01-27 Robert Millan <rmh@aybabtu.com>
39302
39303 Get grub-emu to build again (including parallel builds).
39304
39305 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39306 Split into ...
39307 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39308 (normal/execute.c_DEPENDENCIES): ... this, ...
39309 (grub-emu_DEPENDENCIES): ... and this.
39310
39311 * conf/i386-efi.rmk: Likewise.
39312 * conf/i386-linuxbios.rmk: Likewise.
39313 * conf/i386-ieee1275.rmk: Likewise.
39314 * conf/powerpc-ieee1275.rmk: Likewise.
39315 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39316
2216b101 393172008-01-27 Robert Millan <rmh@aybabtu.com>
39318
39319 * NEWS: Add a few items.
39320
f75172d9 393212008-01-27 Robert Millan <rmh@aybabtu.com>
39322
39323 Fix parallel builds with grub-emu. Based on earlier commit for
39324 grub-probe and grub-setup.
39325
39326 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39327 (util/grub-emu.c_DEPENDENCIES): ... this.
39328 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39329 (util/grub-emu.c_DEPENDENCIES): ... this.
39330 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39331 (util/grub-emu.c_DEPENDENCIES): ... this.
39332 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39333 (util/grub-emu.c_DEPENDENCIES): ... this.
39334 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39335 (util/grub-emu.c_DEPENDENCIES): ... this.
39336
3f51de77 393372008-01-27 Pavel Roskin <proski@gnu.org>
39338
39339 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39340 to create a gap between _end and the modules added to the image
39341 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39342 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39343 * util/elf/grub-mkimage.c (add_segments): Likewise.
39344
2033f53e 393452008-01-26 Pavel Roskin <proski@gnu.org>
39346
39347 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39348 just return an error.
39349
22da1f6f 393502008-01-26 Bean <bean123ch@gmail.com>
39351
39352 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39353 (grub_reiserfs_get_item): Save offset of the next item.
39354 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39355
2a9525e6 393562008-01-25 Robert Millan <rmh@aybabtu.com>
39357
39358 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39359 make all filesystem sources appear together (possibly fixing omissions
39360 while at it).
39361 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39362 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39363 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39364 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39365
39366 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39367 add `kern/file.c'.
39368 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39369 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39370 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39371 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39372
39373 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39374 (probe): Add a sanity check to make sure of our ability to read
39375 requested files when probing for filesystem type.
39376
39377 * genmk.rb: Update copyright year (2007).
39378
39379 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39380 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39381 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39382 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39383 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39384 : Remove function prototypes.
39385
b95f71b5 393862008-01-25 Robert Millan <rmh@aybabtu.com>
39387
39388 Revert my previous commits (based on wrong assumption of how grub_errno
39389 works).
39390
fe6b695a 39391 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 39392 * kern/file.c (grub_file_open): Likewise.
39393
d08bbb49 393942008-01-24 Pavel Roskin <proski@gnu.org>
39395
39396 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39397 that hang if GRUB tries to setup colors.
39398 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39399 colors for firmwares that don't support it.
39400 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39401 Recognize Open Hack'Ware, set flags to work around its
39402 limitations.
39403
605e36ed 394042008-01-24 Robert Millan <rmh@aybabtu.com>
39405
39406 * kern/file.c (grub_file_open): Do not account previous failures of
39407 unrelated functions when grub_errno is checked for.
39408 Reported by Oleg Strikov.
39409
bac332a1 394102008-01-24 Bean <bean123ch@gmail.com>
39411
39412 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39413 (grub_ufs_sblock): New member volume name.
39414 (grub_ufs_find_file): Fix string copy bug.
39415 (grub_ufs_label): Implement this function properly.
39416
39417 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39418 (grub_hfs_iterate_records): Use the correct file number for extents
39419 and catalog file. Fix problem in next index calculation.
39420 (grub_hfs_find_node): Replace recursive function call with loop.
39421 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39422
15c80c09 394232008-01-23 Robert Millan <rmh@aybabtu.com>
39424
39425 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39426 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39427 (grub_multiboot2_real_boot): New function prototype.
39428
39429 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39430 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39431
39432 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39433 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39434
305338fd 394352008-01-23 Robert Millan <rmh@aybabtu.com>
39436
39437 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39438 #ifdef'ed out grub_printf().
39439
3ea52685 394402008-01-23 Robert Millan <rmh@aybabtu.com>
39441
39442 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39443 grub_dprintf calls, since they make "debug=all" mode unusable.
39444 (grub_console_checkkey): Likewise.
39445
5882ae4b 394462008-01-23 Robert Millan <rmh@aybabtu.com>
39447
39448 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39449 `term/i386/pc/at_keyboard.c'.
39450 (pkglib_MODULES): Add `serial.mod'.
39451 (serial_mod_SOURCES): New variable.
39452 (serial_mod_CFLAGS): Likewise.
39453 (serial_mod_LDFLAGS): Likewise.
39454
39455 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39456 `<grub/powerpc/ieee1275/console.h>'.
39457 (grub_keyboard_controller_init): New function prototype.
39458 (grub_console_checkkey): Likewise.
39459 (grub_console_getkey): Likewise.
39460
39461 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39462 keyboard on i386.
39463
39464 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39465 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39466
06ab5303 394672008-01-23 Robert Millan <rmh@aybabtu.com>
39468
39469 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39470 present, "(memdisk)/boot/grub" becomes the default prefix.
39471
39472 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39473 a memdisk tarball with all the modules. Add --overlay=DIR option that
39474 allows users to overlay additional files into the image.
39475
dbb475a4 394762008-01-23 Robert Millan <rmh@aybabtu.com>
39477
39478 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39479 and `machine/memory.h'.
39480 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39481 (_multiboot_mod_SOURCES): New variable.
39482 (_multiboot_mod_CFLAGS): Likewise.
39483 (_multiboot_mod_LDFLAGS): Likewise.
39484 (multiboot_mod_SOURCES): Likewise.
39485 (multiboot_mod_CFLAGS): Likewise.
39486 (multiboot_mod_LDFLAGS): Likewise.
39487
39488 * include/grub/i386/ieee1275/loader.h: New file.
39489
39490 * include/grub/i386/ieee1275/machine.h: Likewise.
39491
39492 * include/grub/i386/ieee1275/memory.h: Likewise.
39493
39494 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39495 variable declaration.
39496 (grub_os_area_size): Likewise.
39497
39498 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39499 (grub_lower_mem, grub_upper_mem): New variables.
39500 (grub_stop_floppy): New function (just to make
39501 grub_multiboot2_real_boot() happy).
39502
39503 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39504 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39505 (grub_stop): New function.
39506 Include `"../realmode.S"' and `"../loader.S"'.
39507
39508 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39509 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39510
39511 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39512 rely on grub_multiboot2_real_boot() for final boot.
39513
25638629 395142008-01-22 Robert Millan <rmh@aybabtu.com>
39515
39516 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39517 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39518 device that doesn't look like an SD card.
39519 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39520 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39521 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39522 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39523 found.
39524
9dad816d 395252008-01-22 Robert Millan <rmh@aybabtu.com>
39526
39527 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39528 avoid claiming over our own code.
39529
34842f2d 395302008-01-22 Bean <bean123ch@gmail.com>
39531
39532 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39533 (jpeg_mod_SOURCES): New variable.
39534 (jpeg_mod_CFLAGS): Likewise.
39535 (jpeg_mod_LDFLAGS): Likewise.
39536
39537 * video/readers/jpeg.c : New file.
39538
44023a28 395392008-01-22 Bean <bean123ch@gmail.com>
39540
39541 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39542 there are no more items.
39543
bc2d8ac6 395442008-01-21 Robert Millan <rmh@aybabtu.com>
39545
39546 * kern/mm.c (grub_mm_init_region): Improve debug message.
39547
261bd4bc 395482008-01-21 Robert Millan <rmh@aybabtu.com>
39549
39550 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39551 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39552 address.
39553 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39554 a C macro.
39555 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39556 Indicates start of upper memory.
39557 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39558 (generate_image): Abort when image size is big enough to corrupt
39559 upper memory.
39560
39561 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39562 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39563 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39564 instead of hardcoding 0xA0000.
39565 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39566 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39567 instead of hardcoding 0xA0000.
39568
f970b55e 395692008-01-21 Robert Millan <rmh@aybabtu.com>
39570
39571 * disk/memdisk.c (memdisk_size): New variable.
39572 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39573 `memdisk_size'.
39574 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39575 image to dynamic memory.
39576 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39577 `memdisk_size'. Free memdisk block.
39578
1a8b0526 395792008-01-21 Robert Millan <rmh@aybabtu.com>
39580
39581 Fix detection of very small filesystems (like tar).
39582
39583 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39584 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39585 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39586 a problem with this disk).
39587
6e9b4aab 395882008-01-21 Robert Millan <rmh@aybabtu.com>
39589
39590 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39591 on grub_biosdisk_rw_standard() error.
39592
0d8837b2 395932008-01-21 Robert Millan <rmh@aybabtu.com>
39594
39595 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39596 recent changes.
39597 * kern/elf.c: Likewise.
39598 * kern/ieee1275/ieee1275.c: Likewise.
39599 * kern/powerpc/ieee1275/openfw.c: Likewise.
39600 * term/ieee1275/ofconsole.c: Likewise.
39601
ffd36e34 396022008-01-21 Robert Millan <rmh@aybabtu.com>
39603
39604 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39605
3f0093d0 39606 * include/grub/kernel.h (grub_arch_memdisk_addr)
39607 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 39608
3f0093d0 39609 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39610 (grub_arch_memdisk_size): ... to here.
ffd36e34 39611
6c391b21 396122008-01-21 Robert Millan <rmh@aybabtu.com>
39613
39614 Mostly based on bugfix from Bean.
39615
39616 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39617 attribute with hook() parameter.
39618 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39619 declaration.
39620 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39621 attribute with hook() parameter.
39622 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39623 declaration.
39624
55a581dc 396252008-01-21 Robert Millan <rmh@aybabtu.com>
39626
39627 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39628 (pkglib_MODULES): Add `memdisk.mod'.
39629 (memdisk_mod_SOURCES): New variable.
39630 (memdisk_mod_CFLAGS): Likewise.
39631 (memdisk_mod_LDFLAGS): Likewise.
39632
39633 * disk/memdisk.c: New file.
39634
39635 * include/grub/disk.h (grub_disk_dev_id): Add
39636 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39637
39638 * include/grub/i386/pc/kernel.h
39639 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39640 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39641 (grub_kernel_image_size): New variable declaration.
39642 (grub_total_module_size): Likewise.
39643 (grub_memdisk_image_size): Likewise.
39644
39645 * include/grub/i386/pc/memory.h
39646 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39647
39648 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39649 (grub_arch_memdisk_addr): New variable declaration.
39650 (grub_arch_memdisk_size): Likewise.
39651
39652 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39653 (grub_arch_memdisk_size): Likewise.
39654
39655 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39656 (codestart): Replace hardcoded `0x100000' with
39657 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39658
39659 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39660 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39661 not NULL, append the contents of the file it refers to, at the end of
39662 the compressed kernel image. Initialize `grub_memdisk_image_size'
39663 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39664 (options): Add "memdisk"|'m' option.
39665 (main): Parse --memdisk|-m option, and pass user-provided path as
39666 parameter to generate_image().
39667
3d7f54c9 396682008-01-20 Robert Millan <rmh@aybabtu.com>
39669
39670 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39671 grub_dprintf() calls from here ...
39672 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39673
0bf74728 396742008-01-20 Robert Millan <rmh@aybabtu.com>
39675
39676 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39677
39678 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39679 declaration.
39680 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39681 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39682 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 39683 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 39684 property).
39685 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39686 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39687
33bf70a7 396882008-01-19 Robert Millan <rmh@aybabtu.com>
39689
fe6b695a 39690 Get rid of confusing function (superseded by
33bf70a7 39691 `grub_ieee1275_get_integer_property')
39692 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39693 prototype.
39694 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39695 function.
39696 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39697 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 39698 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 39699
e2da7d26 397002008-01-19 Robert Millan <rmh@aybabtu.com>
39701
39702 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39703 command after "shut-down", since implementations differ on which
39704 the command for halt is.
39705
59f1fd8d 397062008-01-19 Robert Millan <rmh@aybabtu.com>
39707
39708 * include/grub/i386/linuxbios/console.h: Add header protection.
39709 (grub_keyboard_controller_init): New function prototype.
39710 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39711 (KEYBOARD_COMMAND_READ): Likewise.
39712 (KEYBOARD_COMMAND_WRITE): Likewise.
39713 (KEYBOARD_SCANCODE_SET1): Likewise.
39714 (grub_keyboard_controller_write): New function.
39715 (grub_keyboard_controller_read): Likewise.
39716 (grub_keyboard_controller_init): Likewise.
39717
39718 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39719 (grub_console_init): On coreboot/LinuxBIOS, call
39720 grub_keyboard_controller_init().
39721
5f5a7c15 397222008-01-19 Robert Millan <rmh@aybabtu.com>
39723
39724 PowerPC changes provided by Pavel Roskin.
39725
39726 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39727 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39728 don't rely on cmain() doing it.
39729 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39730 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39731
1210e168 397322008-01-16 Robert Millan <rmh@aybabtu.com>
39733
39734 * include/grub/i386/linuxbios/memory.h
39735 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39736 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39737 receive `table_header' as argument. Instead, probe for it in the
39738 known memory ranges where it can be present.
39739 (grub_available_iterate): Do not pass a fixed `table_header' address
39740 to grub_linuxbios_table_iterate().
39741
3d04eab8 397422008-01-15 Robert Millan <rmh@aybabtu.com>
39743
39744 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39745 * conf/i386-ieee1275.rmk: New file.
39746 * include/grub/i386/ieee1275/console.h: Likewise.
39747 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39748 * include/grub/i386/ieee1275/kernel.h: Likewise.
39749 * include/grub/i386/ieee1275/time.h: Likewise.
39750 * kern/i386/ieee1275/init.c: Likewise.
39751 * kern/i386/ieee1275/startup.S: Likewise.
39752
d1bc1b73 397532008-01-15 Robert Millan <rmh@aybabtu.com>
39754
39755 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39756 when pointers are 32-bit (but still do set it to one when they are
39757 64-bit).
39758
66a65807 397592008-01-15 Robert Millan <rmh@aybabtu.com>
39760
39761 * include/grub/ieee1275/ieee1275.h
39762 (grub_ieee1275_get_integer_property): New function prototype.
39763
39764 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39765 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 39766 grub_ieee1275_get_property() to handle endianness.
66a65807 39767
39768 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39769 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 39770 where appropriate.
66a65807 39771 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39772 (grub_map): Likewise.
39773 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39774
a83ccafd 397752008-01-15 Bean <bean123ch@gmail.com>
39776
39777 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39778 (grub_script_execute_cmdline): Reset grub_errno.
39779
39780 * normal/main.c (read_config_file): Reset grub_errno.
39781
39782 * normal/parse.y (script_init): New.
39783 (script): Move function and menuentry here.
39784 (delimiter): New.
39785 (command): Add delimiter at the end of command.
39786 (commands): Adjust to match the new command.
39787 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 39788 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 39789 (if): Use the new commands.
39790
39791 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39792
df6ecfc6 397932008-01-15 Robert Millan <rmh@aybabtu.com>
39794
39795 * normal/menu.c (run_menu): Move timeout message from here ...
39796 (print_timeout): ... to here.
39797 (run_menu): Use print_timeout() once during initial draw to print
39798 the whole message, and again in every clock tick to update only
39799 the number of seconds.
39800
87ae25eb 398012008-01-15 Robert Millan <rmh@aybabtu.com>
39802
39803 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39804 actual size of `available' from grub_ieee1275_get_property(), and
39805 restrict parsing to that bound.
39806
47bf09a4 398072008-01-15 Christian Franke <franke@computer.org>
39808
39809 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39810 (argp_program_version): Remove variable.
39811 (argp_program_bug_address): Likewise.
39812 (options): Convert from struct argp_option to struct option.
39813 (struct arguments): Remove.
39814 (parse_opt): Remove.
39815 (usage): New function.
39816 (main): Replace struct args members by simple variables.
39817 Replace argp_parse() by getopt_long().
39818 Add switch to evaluate options.
39819 Add missing "(...)" around root_dev in prefix string.
39820
c86f1469 398212008-01-14 Robert Millan <rmh@aybabtu.com>
39822
39823 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39824 for grub_ieee1275_exit(), in order to improve portability.
39825
e622c559 398262008-01-14 Robert Millan <rmh@aybabtu.com>
39827
39828 * util/grub.d/10_linux.in (prefix): Define.
39829 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39830
44cb1ec8 398312008-01-13 Pavel Roskin <proski@gnu.org>
39832
39833 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39834 grub_errno if no errors have been detected.
39835
1eb8c802 398362008-01-12 Robert Millan <rmh@aybabtu.com>
39837
39838 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39839 (grub_util_get_dev_abstraction): New function prototype.
39840
39841 * util/getroot.c: Include `<grub/util/getroot.h>'
39842 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39843 (grub_util_get_dev_abstraction): ... here (new function).
39844
39845 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39846 `PRINT_ABSTRACTION'.
39847 (probe): Probe for abstraction type when requested.
39848 (main): Understand `--target=abstraction'.
39849
39850 * util/i386/efi/grub-install.in: Add abstraction module to core
39851 image when it is found to be necessary.
39852 * util/i386/pc/grub-install.in: Likewise.
39853 * util/powerpc/ieee1275/grub-install.in: Likewise.
39854
39855 * util/update-grub_lib.in (font_path): Return system path without
39856 converting to GRUB path.
39857 * util/update-grub.in: Convert system path returned by font_path()
39858 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39859 abstraction module is needed for loading fonts (if any). Export
39860 that as `GRUB_PRELOAD_MODULES'.
39861 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39862 insmod commands).
39863
52bd3de9 398642008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39865
39866 Remove some unused code from reiserfs.
f19dbdb7 39867
52bd3de9 39868 * fs/reiserfs.c (struct grub_reiserfs_key)
39869 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39870 (struct grub_reiserfs_node_body): Removed.
39871 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39872 Likewise.
39873 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39874 Likewise.
39875 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39876 Likewise.
39877 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39878 Likewise.
39879 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39880 Likewise.
39881 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39882 Likewise.
39883 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39884 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39885 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39886
2f80039d 398872008-01-10 Robert Millan <rmh@aybabtu.com>
39888
39889 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39890 Determines if a file is garbage left by packaging systems, etc.
39891 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39892 for processing /etc/grub.d scripts.
39893 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39894 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39895 as a condition for processing Linux images.
39896
87888032 398972008-01-10 Pavel Roskin <proski@gnu.org>
39898
39899 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39900 to compile reiserfs.c on PowerPC.
39901
7e54fced 399022008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 39903
39904 * kern/device.c (grub_device_iterate): Do not abort device iteration
39905 when one of the devices cannot be opened.
39906 * kern/disk.c (grub_disk_open): Do not account previous failures of
39907 unrelated functions when grub_errno is checked for.
39908
5aa541e6 399092008-01-08 Robert Millan <rmh@aybabtu.com>
39910
39911 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39912 `! grub_linux_is_bzimage', change order of address comparison to make
39913 it more intuitive, and improve "too big zImage" error message.
39914
7076340d 399152008-01-08 Robert Millan <rmh@aybabtu.com>
39916
39917 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39918 `$(update-grub_DATA)'.
39919 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39920 targets.
39921
9ca70333 399222008-01-07 Robert Millan <rmh@aybabtu.com>
39923
39924 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39925 which instruction is modified by grub-setup during installation
39926 (since it wasn't obvious by only looking at this file).
39927
38ccf575 399282008-01-07 Robert Millan <rmh@aybabtu.com>
39929
39930 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39931 listing actual TODO items.
39932
f5db4291 399332008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39934
868967cf 39935 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39936 correctly.
39937 (grub_reiserfs_get_key_offset): Likewise.
39938 (grub_reiserfs_set_key_offset): Likewise.
39939 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 39940 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 39941
39942 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39943 better to remove the bitfield version completely.
f19dbdb7 39944
868967cf 399452008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 39946
f5db4291 39947 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39948 allocated from the heap, due to the fshelp implementation.
39949 (grub_reiserfs_dir): Free NODE, due to the same reason.
39950
492e6d9d 399512008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39952
39953 Mostly from Vincent Pelletier:
f19dbdb7 39954
492e6d9d 39955 * fs/reiserfs.c: New file.
f19dbdb7 39956
492e6d9d 39957 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39958 (reiserfs_mod_SOURCES): New variable.
39959 (reiserfs_mod_CFLAGS): Likewise.
39960 (reiserfs_mod_LDFLAGS): Likewise.
39961
39962 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39963 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39964 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39965 normal/color.c.
39966
9ce3e7c1 399672008-01-06 Robert Millan <rmh@aybabtu.com>
39968
39969 * normal/color.c: Remove `<grub/env.h>'.
39970
f3b58148 399712008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39972
39973 * include/grub/normal.h: Include <grub/env.h>.
39974
7ac3bcfa 399752008-01-05 Robert Millan <rmh@aybabtu.com>
39976
39977 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39978 usage example with `(hd0,1)'.
fb358190 39979 Reported by Samuel Thibault.
7ac3bcfa 39980
c8ee99d7 399812008-01-05 Robert Millan <rmh@aybabtu.com>
39982
39983 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39984 (grub_linux_boot_zimage): Rename to ...
39985 (grub_linux_boot): ... this.
39986 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39987 (grub_linux_boot_zimage): Conditionalize zImage copy.
39988
39989 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39990 (grub_linux_boot_bzimage): Remove prototype.
39991 (grub_linux_boot_zimage): Rename to ...
39992 (grub_linux_boot): ... this.
39993
39994 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39995 (grub_linux_boot): Remove function.
39996
0ece25b1 399972008-01-05 Robert Millan <rmh@aybabtu.com>
39998
39999 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
40000 (grub_env_write_color_highlight): Likewise.
40001 (grub_wait_after_message): Likewise.
40002
40003 * normal/color.c: New file.
40004
40005 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40006 (normal_mod_DEPENDENCIES): Likewise.
40007
40008 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40009 (normal_mod_DEPENDENCIES): Likewise.
40010
40011 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40012 (normal_mod_DEPENDENCIES): Likewise.
40013
40014 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40015 (normal_mod_DEPENDENCIES): Likewise.
40016
40017 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
40018 for waiting after a message is printed.
40019 * normal/main.c (read_config_file): Likewise.
40020 (grub_normal_init): Register grub_env_write_color_normal() and
40021 grub_env_write_color_highlight() hooks. Mark `color_normal' and
40022 `color_highlight' variables as global.
40023
40024 * normal/menu.c (grub_wait_after_message): New function.
40025 (grub_color_menu_normal): New variable. Replaces ...
40026 (GRUB_COLOR_MENU_NORMAL): ... this macro.
40027 (grub_color_menu_highlight): New variable. Replaces ...
40028 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
40029 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
40030 `GRUB_TERM_COLOR_STANDARD'.
40031 (print_message): Use `grub_setcolorstate' to reload colors. Rename
40032 `normal_code' and `highlight_code' to `old_color_normal' and
40033 `old_color_highlight', respectively.
40034 (grub_menu_init_page): Update colors when drawing the menu, based on
40035 `menu_color_normal' and `menu_color_highlight' variables.
40036 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
40037 a message is printed.
40038
182dd4e5 400392008-01-05 Robert Millan <rmh@aybabtu.com>
40040
40041 * kern/env.c (grub_env_context_open): Propagate hooks for global
40042 variables to new context.
40043
40044 * kern/main.c (grub_set_root_dev): Export `root' variable.
40045
ddf8f6ad 400462008-01-05 Robert Millan <rmh@aybabtu.com>
40047
40048 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 40049 discs unconditionally, since udev and others have options to provide
ddf8f6ad 40050 them.
40051
d8b43d9b 400522008-01-05 Robert Millan <rmh@aybabtu.com>
40053
40054 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
40055
2bff2de3 400562008-01-04 Christian Franke <franke@computer.org>
40057
40058 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
40059 of eisa_mmap.
40060
97eab917 400612008-01-03 Pavel Roskin <proski@gnu.org>
40062
40063 * kern/i386/linuxbios/init.c: Put "void" to all function
40064 declarations with no arguments.
40065 * kern/powerpc/ieee1275/init.c: Likewise.
40066 * term/i386/pc/at_keyboard.c: Likewise.
40067 * term/i386/pc/vga_text.c: Likewise.
40068 * util/grub-mkdevicemap.c: Likewise.
40069
b9416d00 400702008-01-02 Robert Millan <rmh@aybabtu.com>
40071
40072 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
40073 message when loaded image is out of bounds.
40074 (grub_multiboot_load_elf64): Likewise.
40075
92695df9 400762008-01-02 Pavel Roskin <proski@gnu.org>
40077
40078 * util/grub.d/10_linux.in: Try version without ".old" when
40079 looking for initrd. It's better to use initrd from the newer
40080 kernel of the same version than no initrd at all.
40081
d98d9cad 400822008-01-01 Robert Millan <rmh@aybabtu.com>
40083
40084 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
40085
dbfdce36 400862008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
40087
f19dbdb7 40088 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 40089 grub_video_get_active_render_target.
40090 (grub_video_adapter): Added unmap_color and get_active_render_target.
40091
f19dbdb7 40092 * video/video.c: Added grub_video_unmap_color and
dbfdce36 40093 grub_video_get_active_render_target.
40094 (grub_video_get_info): Changed method to accept NULL pointer as an
40095 argument to allow detection of active video adapter.
40096
40097 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
40098 grub_video_vbe_unmap_color_int.
40099 Added grub_video_vbe_unmap_color and
40100 grub_video_vbe_get_active_render_target.
40101 (grub_video_vbe_adapter): Added unmap_color and
40102 get_active_render_target.
40103
f19dbdb7 40104 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 40105 with grub_video_vbe_unmap_color_int.
40106
40107 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
40108 (DEFAULT_NORMAL_COLOR): Likewise.
40109 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
40110 (DEFAULT_FG_COLOR): Removed.
40111 (DEFAULT_BG_COLOR): Likewise.
40112 (DEFAULT_CURSOR_COLOR): Changed value.
40113 (grub_virtual_screen): Added standard_color_setting,
40114 normal_color_setting, highlight_color_setting and term_color.
40115 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
40116 (bitmap_width): Added.
40117 (bitmap_height): Likewise.
40118 (bitmap): Likewise.
40119 (set_term_color): Likewise.
40120 (grub_virtual_screen_setup): Changed to use new terminal coloring
40121 settings.
40122 (grub_gfxterm_init): Added init for bitmap.
40123 (grub_gfxterm_fini): Added destroy for bitmap.
40124 (redraw_screen_rect): Updated to use background bitmap and new
40125 terminal coloring.
40126 (scroll_up): Added optimization for case when there is no bitmap.
40127 (grub_gfxterm_cls): Fixed to use correct background color.
40128 (grub_virtual_screen_setcolorstate): Changed to use new terminal
40129 coloring.
40130 (grub_virtual_screen_setcolor): Likewise.
40131 (grub_virtual_screen_getcolor): Added.
40132 (grub_gfxterm_background_image_cmd): Likewise.
40133 (grub_video_term): Added setcolor and getcolor.
40134 (MOD_INIT): Added registration of background_image command.
40135 (MOD_TERM): Added unregistration for background_image command.
40136
c3c20931 401372007-12-30 Pavel Roskin <proski@gnu.org>
40138
40139 * loader/multiboot_loader.c: Fix multiboot command
40140 unregistration. Fix all typos in the word "multiboot".
40141
df266716 401422007-12-29 Pavel Roskin <proski@gnu.org>
94239199 40143
40144 * util/grub.d/10_linux.in: Refactor search for initrd. Add
40145 support for initrd names used in Fedora.
40146
fc6e896c 401472007-12-26 Bean <bean123ch@gmail.com>
40148
40149 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
40150 (cpio_mod_SOURCES): New variable.
40151 (cpio_mod_CFLAGS): Likewise.
40152 (cpio_mod_LDFLAGS): Likewise.
40153
40154 * fs/cpio.c: New file.
40155
40156 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
40157
40158 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40159
40160 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40161
40162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40163
533110ad 401642007-12-25 Robert Millan <rmh@aybabtu.com>
40165
40166 * include/grub/term.h (struct grub_term): Add `getcolor' function.
40167 (grub_getcolor): New function.
40168
40169 * kern/term.c (grub_getcolor): New function.
40170 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
40171 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
40172 (print_entry): Set normal and highlight colors to
40173 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
40174 respectively, before printing and restore them to old
40175 values afterwards.
40176 (grub_menu_init_page): Likewise. Fill an additional colored space
40177 that would otherwise be left blank.
40178
40179 * term/efi/console.c (grub_console_getcolor): New function.
40180 (struct grub_console_term.getcolor): New variable.
40181 * term/i386/pc/console.c (grub_console_getcolor): New function.
40182 (struct grub_console_term.getcolor): New variable.
40183 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
40184 (struct grub_console_term.getcolor): New variable.
40185
40186 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
40187 (struct grub_console_term.setcolor): Remove variable.
40188 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
40189 (struct grub_console_term.setcolor): Remove variable.
40190 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
40191 (struct grub_console_term.setcolor): Remove variable.
40192 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
40193 (struct grub_console_term.setcolor): Remove variable.
40194
4931827f 401952007-12-25 Robert Millan <rmh@aybabtu.com>
40196
40197 * configure.ac: Search for possible unifont.hex locations, and
40198 define UNIFONT_HEX if found.
40199
40200 * Makefile.in (UNIFONT_HEX): Define variable.
40201 (DATA): Rename to ...
40202 (PKGLIB): ... this. Update all users.
40203 (PKGDATA): New variable.
40204 (pkgdata_IMAGES): Rename to ...
40205 (pkglib_IMAGES): ... this. Update all users.
40206 (pkgdata_MODULES): Rename to ...
40207 (pkglib_MODULES): ... this. Update all users.
40208 (pkgdata_PROGRAMS): Rename to ...
40209 (pkglib_PROGRAMS): ... this. Update all users.
40210 (pkgdata_DATA): Rename to ...
40211 (pkglib_DATA): ... this. Update all users.
40212 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
40213 (unicode.pff, ascii.pff): New rules.
40214 (all-local): Add `$(PKGDATA)' dependency.
40215 (install-local): Process `$(PKGDATA)'.
40216
40217 * util/update-grub_lib.in (font_path): Search for *.pff files in
40218 a few more locations, including `${pkgdata}'.
40219
57e57e31 402202007-12-23 Robert Millan <rmh@aybabtu.com>
40221
40222 Patch from Bean <bean123ch@gmail.com>:
40223 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
40224 `size'.
40225
4bc72aa9 402262007-12-21 Bean <bean123ch@gmail.com>
40227
40228 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
40229 (ntfscomp_mod_SOURCES): New variable.
40230 (ntfscomp_mod_CFLAGS): Likewise.
40231 (ntfscomp_mod_LDFLAGS): Likewise.
40232
40233 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
40234 (grub_probe_SOURCES): Likewise.
40235 (grub_emu_SOURCES): Likewise.
40236
40237 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40238 (grub_emu_SOURCES): Likewise.
40239
40240 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40241 (grub_emu_SOURCES): Likewise.
40242
40243 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40244 (grub_emu_SOURCES): Likewise.
40245
40246 * fs/ntfs.c (grub_ntfscomp_func): New variable.
40247 (read_run_list): Renamed to grub_ntfs_read_run_list.
40248 (decomp_nextvcn): Moved to ntfscomp.c.
40249 (decomp_getch): Likewise.
40250 (decomp_get16): Likewise.
40251 (decomp_block): Likewise.
40252 (read_block): Likewise.
40253 (read_data): Partially moved to ntfscomp.c.
40254 (fixup): Change unsigned to grub_uint16_t.
40255 (read_mft): Change unsigned long to grub_uint32_t.
40256 (read_attr): Likewise.
40257 (read_data): Likewise.
40258 (read_run_data): Likewise.
40259 (read_run_list): Likewise.
40260 (read_mft): Likewise.
40261
40262 * fs/ntfscomp.c: New file.
40263
40264 * include/grub/ntfs.h: New file.
40265
af680a87 402662007-12-16 Robert Millan <rmh@aybabtu.com>
40267
40268 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40269 IDE disk check, since Linux is known to support 20 IDE disks.
40270 Reported by Colin Watson.
40271
84be7599 402722007-12-15 Bean <bean123ch@gmail.com>
40273
40274 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40275 (lnxboot_img_SOURCES): New variable.
40276 (lnxboot_img_ASFLAGS): Likewise.
40277 (lnxboot_img_LDFLAGS): Likewise.
40278
40279 * boot/i386/pc/lnxboot.S: New file.
40280
6af9db01 402812007-11-24 Pavel Roskin <proski@gnu.org>
40282
40283 * configure.ac: Test if '--build-id=none' is supported by the
40284 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40285 objcopy to generate incorrect binary files (binutils
40286 2.17.50.0.18-1 as shipped by Fedora 8).
40287 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40288 linking, so that build ID doesn't break the test.
40289
7361cfe6 402902007-11-24 Pavel Roskin <proski@gnu.org>
40291
40292 * include/grub/i386/time.h: use "void" in the argument list
40293 of grub_cpu_idle().
40294 * include/grub/powerpc/time.h: Likewise.
40295 * include/grub/sparc64/time.h: Likewise.
40296
1593e10c 402972007-11-18 Christian Franke <franke@computer.org>
40298
40299 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40300 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40301 This fixes the problem that function keys did not work in grub-emu.
40302
3b8db1a8 403032007-11-18 Christian Franke <franke@computer.org>
40304
40305 * disk/host.c (grub_host_open): Remove attribute unused from
40306 name parameter. Add check for "host". This fixes the problem
40307 that grub-emu does not find partitions.
40308
2e29408d 403092007-11-18 Christian Franke <franke@computer.org>
40310
40311 * util/hostfs.c (is_dir): New function.
40312 (grub_hostfs_dir): Handle missing dirent.d_type case.
40313 (grub_hostfs_read): Add missing fseek().
40314 (grub_hostfs_label): Clear label pointer. This fixes a crash
40315 of grub-emu on "ls (host)".
40316
398cd047 403172007-11-18 Christian Franke <franke@computer.org>
40318
40319 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40320 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40321 to 64 bit boundary by default.
40322
c405c391 403232007-11-18 Bean <bean123ch@gmail.com>
40324
40325 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40326 (hexdump_mod_SOURCES): New variable.
40327 (hexdump_mod_CFLAGS): Likewise.
40328 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 40329
c405c391 40330 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40331
40332 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40333
40334 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40335
40336 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40337
40338 * include/grub/hexdump.h: New file.
40339
40340 * commands/hexdump.c: New file.
40341
5cced7fd 403422007-11-10 Robert Millan <rmh@aybabtu.com>
40343
40344 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40345 in grub_outb() calls.
40346 (beep_on): Likewise.
40347
8b714eb0 403482007-11-10 Christian Franke <franke@computer.org>
40349
40350 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40351 (grub_menu_run): Likewise.
40352
ce0f1839 403532007-11-10 Robert Millan <rmh@aybabtu.com>
40354
40355 * include/grub/i386/efi/machine.h: New file.
40356 * include/grub/i386/linuxbios/machine.h: Likewise.
40357 * include/grub/i386/pc/machine.h: Likewise.
40358 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40359 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40360
40361 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40362 (serial_hw_io_addr): New variable.
40363 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40364 instead of `(unsigned short *) 0x400'.
40365
270c237d 403662007-11-10 Bean <bean123ch@gmail.com>
40367
40368 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40369
a87783bf 403702007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40371
40372 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40373 (vga_mod_SOURCES): Added.
40374 (vga_mod_CFLAGS): Likewise.
40375 (vga_mod_LDFLAGS): Likewise.
40376
40377 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40378 grub_outb() calls.
40379 (set_map_mask): Likewise.
40380 (set_read_map): Likewise.
40381 (set_read_address): Likewise.
40382 (vga_font): Removed variable.
40383 (get_vga_glyph): Removed function.
40384 (invalidate_char): Likewise.
40385 (write_char): Changed to use grub_font_get_glyph() for font
40386 information.
40387 (grub_vga_putchar): Likewise.
40388 (grub_vga_getcharwidth): Likewise.
40389
6433b448 403902007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40391
40392 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40393 flags.
40394 (pxeboot_img_LDFLAGS): Likewise.
40395 (diskboot_img_LDFLAGS): Likewise.
40396 (kernel_img_LDFLAGS): Likewise.
40397
49178511 403982007-11-06 Robert Millan <rmh@aybabtu.com>
40399
40400 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40401 in grub_outb() calls.
40402 (serial_hw_init): Likewise.
40403
53b052de 404042007-11-05 Robert Millan <rmh@aybabtu.com>
40405
40406 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40407 spaces. Skip non-regular files.
40408
5ab33bba 404092007-11-05 Robert Millan <rmh@aybabtu.com>
40410
40411 * kern/disk.c (grub_disk_firmware_fini)
40412 (grub_disk_firmware_is_tainted): New variables.
40413
40414 * include/grub/disk.h (grub_disk_firmware_fini)
40415 (grub_disk_firmware_is_tainted): Likewise.
40416
40417 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40418 (grub_disk_biosdisk_fini): ... to here.
40419 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40420 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40421 is set. Register grub_disk_biosdisk_fini() in
40422 `grub_disk_firmware_fini'.
40423
40424 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40425 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40426 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40427 to finish existing firmware disk interface.
40428
40429 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40430 (ata_mod_SOURCES): New variable.
40431 (ata_mod_CFLAGS): Likewise.
40432 (ata_mod_LDFLAGS): Likewise.
40433
0149ab7c 404342007-11-05 Robert Millan <rmh@aybabtu.com>
40435
40436 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40437 (grub_ata_wait): Reimplement using grub_millisleep().
40438
40439 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40440 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40441
be7ac41e 404422007-11-03 Marco Gerards <marco@gnu.org>
40443
40444 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40445 (CRTC_ADDR_PORT): New macro.
40446 (CRTC_DATA_PORT): Likewise.
40447 (CRTC_CURSOR): Likewise.
40448 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40449 (CRTC_CURSOR_ADDR_LOW): Likewise.
40450 (update_cursor): New function.
40451 (grub_console_real_putchar): Call `update_cursor'.
40452 (grub_console_gotoxy): Likewise.
40453 (grub_console_cls): Set the default color when clearing the
40454 screen.
40455 (grub_console_setcursor): Implemented.
40456
bb06ab2e 404572007-11-03 Marco Gerards <marco@gnu.org>
40458
40459 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40460 become activate.
40461 (grub_ata_pio_write): Likewise.
40462
40463 (grub_atapi_identify): Wait after issuing an ATA command.
40464 (grub_atapi_packet): Likewise.
40465 (grub_ata_identify): Likewise.
40466 (grub_ata_readwrite): Likewise.
40467
cf8f780b 404682007-11-03 Marco Gerards <marco@gnu.org>
40469
40470 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40471 (grub_ata_pio_write): Likewise.
40472 (grub_ata_readwrite): Use `grub_error', instead of
40473 returning `grub_errno'.
40474
ed649e54 404752007-11-03 Marco Gerards <marco@gnu.org>
40476
40477 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40478 grub_ata_pio_write once for every single sector, instead of for
40479 multiple sectors.
40480
ca25d8f0 404812007-10-31 Robert Millan <rmh@aybabtu.com>
40482
40483 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40484
40485 * conf/i386-linuxbios.rmk: New file.
40486
40487 * kern/i386/pc/hardware.c: Likewise.
40488 * term/i386/pc/at_keyboard.c: Likewise.
40489 * term/i386/pc/vga_text.c: Likewise.
40490
40491 * include/grub/i386/linuxbios/boot.h: Likewise.
40492 * include/grub/i386/linuxbios/console.h: Likewise.
40493 * include/grub/i386/linuxbios/init.h: Likewise.
40494 * include/grub/i386/linuxbios/kernel.h: Likewise.
40495 * include/grub/i386/linuxbios/loader.h: Likewise.
40496 * include/grub/i386/linuxbios/memory.h: Likewise.
40497 * include/grub/i386/linuxbios/serial.h: Likewise.
40498 * include/grub/i386/linuxbios/time.h: Likewise.
40499
40500 * kern/i386/linuxbios/init.c: Likewise.
40501 * kern/i386/linuxbios/startup.S: Likewise.
40502 * kern/i386/linuxbios/table.c: Likewise.
40503
e911ecc1 405042007-10-31 Marco Gerards <marco@gnu.org>
40505
40506 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40507 (ata_mod_SOURCES): New variable.
40508 (ata_mod_CFLAGS): Likewise.
40509 (ata_mod_LDFLAGS): Likewise.
40510
40511 * disk/ata.c: New file.
40512
40513 * include/grub/disk.h (grub_disk_dev_id): Add
40514 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 40515
7f66d0e0 405162007-10-31 Robert Millan <rmh@aybabtu.com>
40517
40518 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40519 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40520
40521 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40522 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40523
40524 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40525 `<grub/types.h>'.
40526
40527 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40528
5cd7dd46 405292007-10-27 Robert Millan <rmh@aybabtu.com>
40530
3236ca65 40531 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 40532
2ebfc90f 405332007-10-22 Robert Millan <rmh@aybabtu.com>
40534
40535 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40536 `"../realmode.S"'.
40537 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40538
73fcb0f3 405392007-10-22 Robert Millan <rmh@aybabtu.com>
40540
40541 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40542 (pkgdata_MODULES): Add `biosdisk.mod'.
40543 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40544 variables.
40545
40546 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40547 (grub_biosdisk_init): Replace with ...
40548 (GRUB_MOD_INIT(biosdisk)): ... this.
40549 (grub_biosdisk_fini): Replace with ...
40550 (GRUB_MOD_FINI(biosdisk)): ... this.
40551
40552 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40553 (grub_machine_init): Remove call to grub_biosdisk_init().
40554 (grub_machine_fini): Remove call to grub_machine_fini().
40555
40556 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40557
3381d274 405582007-10-22 Robert Millan <rmh@aybabtu.com>
40559
40560 * include/grub/time.h: New file.
40561 * include/grub/i386/time.h: Likewise.
40562 * include/grub/powerpc/time.h: Likewise.
40563 * include/grub/sparc64/time.h: Likewise.
40564
40565 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40566 instances to ...
40567 (KERNEL_MACHINE_TIME_HEADER): ... this.
40568 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40569 instances to ...
40570 (KERNEL_MACHINE_TIME_HEADER): ... this.
40571 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40572 instances to ...
40573 (KERNEL_MACHINE_TIME_HEADER): ... this.
40574
40575 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40576 (grub_millisleep): New function.
40577 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40578 (grub_millisleep): New function.
40579 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40580 Remove `grub/machine/time.h' include.
40581 (grub_millisleep): New function.
40582 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40583 Remove `grub/machine/time.h' include.
40584 (grub_millisleep): New function.
40585
40586 * include/grub/misc.h (grub_div_roundup): New function.
40587
40588 * kern/misc.c: Include `<grub/time.h>'.
40589 (grub_millisleep_generic): New function.
40590
40591 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40592 Add `time.h'.
40593 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40594 Add `time.h'.
40595 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40596 `machine/time.h'. Add `time.h'.
40597 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40598
a39a0312 405992007-10-21 Robert Millan <rmh@aybabtu.com>
40600
40601 * include/grub/misc.h (grub_max): New function.
40602
2aad70e2 406032007-10-21 Robert Millan <rmh@aybabtu.com>
40604
40605 * util/misc.c (grub_util_info): Call fflush() before returning.
40606
54b71c4b 406072007-10-20 Robert Millan <rmh@aybabtu.com>
40608
40609 * genmk.rb (Image): Copy `extra_flags' from here ...
40610 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40611
40612 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40613 to `argc' and `args' arguments.
40614
a979f513 406152007-10-17 Robert Millan <rmh@aybabtu.com>
40616
40617 * kern/i386/loader.S: New file.
40618
40619 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40620 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40621 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40622 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40623 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40624 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40625 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40626 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40627 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40628 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40629 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40630 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40631 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40632 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40633
40634 * kern/i386/realmode.S: New file.
40635
40636 * kern/i386/pc/startup.S (protstack): Moved from here ...
40637 * kern/i386/realmode.S (protstack)... to here.
40638 * kern/i386/pc/startup.S (gdt): Moved from here ...
40639 * kern/i386/realmode.S (gdt)... to here.
40640 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40641 * kern/i386/realmode.S (prot_to_real)... to here.
40642
40643 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40644 `kern/i386/realmode.S'.
40645
825fc8fd 406462007-10-17 Robert Millan <rmh@aybabtu.com>
40647
40648 * include/grub/i386/loader.h: New file.
40649
40650 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40651 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40652 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40653 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40654 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40655 * include/grub/i386/loader.h (grub_linux_prot_size)
40656 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40657 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40658 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40659 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40660
40661 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40662
e179b2f4 406632007-10-15 Robert Millan <rmh@aybabtu.com>
40664
40665 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40666 filesystem when dev->disk is unset.
40667 Do probe for filesystem even when dev->disk->has_partitions is set.
40668 In case a filesystem is found, always report it.
40669 In case it isn't, if dev->disk->has_partitions is set, report that
40670 a partition table was found instead of reporting that no filesystem
40671 could be identified.
40672
5db82af6 406732007-10-12 Robert Millan <rmh@aybabtu.com>
40674
40675 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40676 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40677
68f6ac74 40678 * include/grub/types.h (grub_host_to_target16): New macro.
40679 (grub_host_to_target32): Likewise.
40680 (grub_host_to_target64): Likewise.
40681 (grub_target_to_host16): Likewise.
40682 (grub_target_to_host32): Likewise.
40683 (grub_target_to_host64): Likewise.
5db82af6 40684
40685 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40686 Renamed from to ...
40687 (GRUB_MOD_ALIGN): ...this. Update all users.
40688
68f6ac74 40689 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40690 grub_host_to_target32.
40691 Replace grub_be_to_cpu32 with grub_target_to_host32.
40692 (load_modules): Likewise.
40693 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40694 Replace grub_be_to_cpu32 with grub_target_to_host32.
40695 Replace grub_cpu_to_be16 with grub_host_to_target16.
40696 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 40697
3cf497cc 406982007-10-12 Robert Millan <rmh@aybabtu.com>
40699
40700 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40701 * util/elf/grub-mkimage.c: ... here.
40702
40703 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40704 `util/powerpc/ieee1275/grub-mkimage.c'.
40705
c8cc3692 407062007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 40707
c8cc3692 40708 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40709 and make it easier to figure out.
40710 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40711 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40712 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40713 leave us with less than HEAP_MIN_SIZE total heap.
40714 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 40715
5c58b791 407162007-10-03 Robert Millan <rmh@aybabtu.com>
40717
40718 * include/grub/i386/io.h: New file.
40719 * commands/i386/pc/play.c (inb): Removed.
40720 (outb): Removed.
40721 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40722 with grub_outb().
afcd2ef8 40723 * term/i386/pc/serial.c (inb): Removed.
40724 (outb): Removed.
40725 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40726 with grub_outb().
40727 * term/i386/pc/vga.c (inb): Removed.
40728 (outb): Removed.
40729 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40730 with grub_outb().
5c58b791 40731
1a477ed6 407322007-10-02 Robert Millan <rmh@aybabtu.com>
40733
40734 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40736 Reported by Marcin Kurek.
40737
6b5d80fa 407382007-09-07 Robert Millan <rmh@aybabtu.com>
40739
40740 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40741 SmartFirmware version updates (as released by Sven Luther), and avoid
40742 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40743 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40744 known broken.
40745
5618afbf 407462007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40747
40748 From Hitoshi Ozeki:
40749 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40750 when merging two regions.
40751
6139dcd9 407522007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40753
508e39ee 40754 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40755 * normal/completion.c (grub_normal_do_completion): Likewise.
40756 Reported by Hitoshi Ozeki.
40757
407582007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40759
6139dcd9 40760 Do not use devices at boot in chainloading.
f19dbdb7 40761
6139dcd9 40762 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40763 (boot_part_addr): Likewise.
40764 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40765 with BOOT_DRIVE and BOOT_PART_ADDR.
40766 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40767 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40768
38da6516 407692007-08-29 Robert Millan <rmh@aybabtu.com>
40770
40771 Patch from Simon Peter <dn.tlp@gmx.net>:
40772 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40773 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40774 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40775 util/i386/pc/grub-setup.c_DEPENDENCIES.
40776 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40777 util/grub-probe.c_DEPENDENCIES.
40778 * conf/powerpc-ieee1275.rmk: Likewise.
40779
29d0928c 407802007-08-28 Robert Millan <rmh@aybabtu.com>
40781
40782 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40783 to tell grub-mkdevicemap how to name devices.
40784 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40785 feature).
40786
40787 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40788 util/i386/get_disk_name.c.
40789 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40790 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40791 util/ieee1275/get_disk_name.c.
40792
40793 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40794
40795 * DISTLIST: Add util/i386/get_disk_name.c and
40796 util/ieee1275/get_disk_name.c.
40797
40798 * util/grub-mkdevicemap.c: Replace device naming logic with
40799 grub_util_get_disk_name() calls.
40800
5a0d3cca 408012007-08-20 Robert Millan <rmh@aybabtu.com>
40802
40803 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40804 (so that it works for both plural and singular quantities).
40805
8b72db2f 408062007-08-05 Robert Millan <rmh@aybabtu.com>
40807
40808 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40809 so that [xz] isn't taken into account when determining order.
40810
352466bf 408112007-08-02 Marco Gerards <marco@gnu.org>
40812
40813 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40814 `include/multiboot2.h', `include/grub/elfload.h',
40815 `include/multiboot.h', `include/grub/multiboot.h',
40816 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40817 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40818 `kern/elf.c', `loader/multiboot_loader.c',
40819 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40820 `loader/i386/pc/multiboot2.c',
40821 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40822 `util/i386/pc/grub-mkrescue.in'. Remove
40823 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40824 `include/grub/i386/pc/util/biosdisk.h' and
40825 `include/grub/powerpc/ieee1275/multiboot.h'.
40826
8f096014 408272007-08-02 Bean <bean123ch@gmail.com>
40828
40829 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40830 (ntfs_mod_SOURCES): New variable.
40831 (ntfs_mod_CFLAGS): Likewise.
40832 (ntfs_mod_LDFLAGS): Likewise.
40833
40834 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40835 (grub_probe_SOURCES): Likewise.
40836 (grub_emu_SOURCES): Likewise.
40837
40838 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40839 (grub_emu_SOURCES): Likewise.
40840
40841 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40842 (grub_emu_SOURCES): Likewise.
f19dbdb7 40843
8f096014 40844 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40845
40846 * fs/ntfs.c: New file.
40847
9959f7db 408482007-08-02 Bean <bean123ch@gmail.com>
40849
40850 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40851
40852 * file.h (grub_file): Likewise.
40853
40854 * fshelp.h (grub_fshelp_read_file): Likewise.
40855
40856 * util/i386/pc/grub-setup.c (setup): Likewise.
40857 (save_first_sector): Likewise.
40858 (save_blocklists): Likewise.
f19dbdb7 40859
9959f7db 40860 * fs/affs.c (grub_affs_read_file): Likewise.
40861
40862 * fs/ext2.c (grub_ext2_read_file): Likewise.
40863
40864 * fs/fat.c (grub_fat_read_data): Likewise.
40865
40866 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40867
40868 * fs/hfs.c (grub_hfs_read_file): Likewise.
40869
40870 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40871
40872 * fs/jfs.c (grub_jfs_read_file): Likewise.
40873
40874 * fs/minix.c (grub_minix_read_file): Likewise.
40875
40876 * fs/sfs.c (grub_sfs_read_file): Likewise.
40877
40878 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 40879
9959f7db 40880 * fs/xfs.c (grub_xfs_read_file): Likewise.
40881
40882 * command/blocklist.c (read_blocklist): Likewise.
40883 (print_blocklist): Likewise.
40884
0a203f83 408852007-08-02 Marco Gerards <marco@gnu.org>
40886
40887 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40888 `util/hostfs.c'.
40889
40890 * disk/host.c: New file.
40891
40892 * util/hostfs.c: Likewise.
40893
40894 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40895 return `GRUB_ERR_BAD_FS'.
40896 * fs/sfs.c (grub_sfs_mount): Likewise.
40897 * fs/xfs.c (grub_xfs_mount): Likewise.
40898
40899 * include/grub/disk.h (enum grub_disk_dev_id): Add
40900 `GRUB_DISK_DEVICE_HOST_ID'.
40901
40902 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40903
e5dfe777 409042007-07-24 Jerone Young <jerone@gmail.com>
40905
f19dbdb7 40906 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 40907 modules for compilation.
40908 * conf/powerpc-ieee1275.rmk: Likewise.
40909
40910 * include/multiboot.h: Move multiboot definitions to one file. Rename
40911 many definitions to not get grub specific.
40912 * include/multiboot2.h: Create header with multiboot 2 definitions.
40913 * include/grub/multiboot.h: Header for grub specific function
40914 prototypes and definitions.
40915 * include/grub/multiboot2.h: Likewise.
40916 * include/grub/multiboot_loader.h: Likewise.
40917 * include/grub/i386/pc/multiboot.h: Removed.
40918 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40919
40920 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40921 and 2 to allow for one multiboot and module commands.
40922 * loader/multiboot2.c: Add multiboot2 functionality.
40923 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40924 and definition names.
40925 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40926 2 functions.
40927 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40928 ieee1275 specific multiboot2 code.
40929
40930 * kern/i386/pc/startup.S: Change headers and definition names for
40931 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40932
daf0f0ba 409332007-07-22 Robert Millan <rmh@aybabtu.com>
40934
40935 * geninitheader.sh: Process file specified in first parameter rather
40936 than hardcoding grub_modules_init.lst.
fe6b695a 40937 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 40938 than hardcoding grub_modules_init.h.
40939
40940 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40941 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40942 grub_probe_init.[ch] and grub_setup_init.[ch].
40943
40944 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40945 grub_modules_init.h with grub_emu_init.h.
40946 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40947 grub_probe_init.[ch] files.
40948 * conf/i386-efi.rmk: Likewise.
40949 * conf/i386-pc.rmk: Likewise.
40950 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40951 grub_setup_init.[ch] files.
40952
40953 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40954 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40955 to initialize modules rather than a list of hardcoded functions.
40956 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40957 grub_init_all() to initialize modules rather than a list of hardcoded
40958 functions.
40959
54cdc1cc 409602007-07-22 Robert Millan <rmh@aybabtu.com>
40961
40962 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40963 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40964
ad0686cc 409652007-07-22 Robert Millan <rmh@aybabtu.com>
40966
40967 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40968 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40969 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40970 flag when running on SmartFirmware.
40971 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40972 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40973 was set.
40974
40975 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40976 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40977 rather than decreasing it.
40978
40979 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40980 there's not enough space to do it, fail in the same way as when it
40981 can't be done because there are no partitions.
40982
40983 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40984 when nvsetenv failed.
40985
969c02ec 409862007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40987
40988 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40989 because this rule is automatically generated.
40990 (grub-mkrescue): Removed for the same reason as above.
40991
5a79f472 409922007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40993
40994 Migrate to GNU General Public License Version 3.
f19dbdb7 40995
5a79f472 40996 * COPYING: Replaced with the plain text version of GPLv3.
40997
40998 * config.guess: Updated from gnulib.
40999 * config.sub: Likewise.
41000
41001 * geninit.sh: Output a GPLv3 copyright notice.
41002 * geninitheader.sh: Likewise.
41003 * genmodsrc.sh: Likewise.
41004 * gensymlist.sh.in: Likewise.
41005
41006 * boot/i386/pc/boot.S: Upgraded to GPLv3.
41007 * boot/i386/pc/diskboot.S: Likewise.
41008 * boot/i386/pc/pxeboot.S: Likewise.
41009 * commands/blocklist.c: Likewise.
41010 * commands/boot.c: Likewise.
41011 * commands/cat.c: Likewise.
41012 * commands/cmp.c: Likewise.
41013 * commands/configfile.c: Likewise.
41014 * commands/echo.c: Likewise.
41015 * commands/help.c: Likewise.
41016 * commands/ls.c: Likewise.
41017 * commands/search.c: Likewise.
41018 * commands/terminal.c: Likewise.
41019 * commands/test.c: Likewise.
41020 * commands/videotest.c: Likewise.
41021 * commands/i386/cpuid.c: Likewise.
41022 * commands/i386/pc/halt.c: Likewise.
41023 * commands/i386/pc/play.c: Likewise.
41024 * commands/i386/pc/reboot.c: Likewise.
41025 * commands/i386/pc/vbeinfo.c: Likewise.
41026 * commands/i386/pc/vbetest.c: Likewise.
41027 * commands/ieee1275/halt.c: Likewise.
41028 * commands/ieee1275/reboot.c: Likewise.
41029 * commands/ieee1275/suspend.c: Likewise.
41030 * disk/loopback.c: Likewise.
41031 * disk/lvm.c: Likewise.
41032 * disk/raid.c: Likewise.
41033 * disk/efi/efidisk.c: Likewise.
41034 * disk/i386/pc/biosdisk.c: Likewise.
41035 * disk/ieee1275/ofdisk.c: Likewise.
41036 * font/manager.c: Likewise.
41037 * fs/affs.c: Likewise.
41038 * fs/ext2.c: Likewise.
41039 * fs/fat.c: Likewise.
41040 * fs/fshelp.c: Likewise.
41041 * fs/hfs.c: Likewise.
41042 * fs/hfsplus.c: Likewise.
41043 * fs/iso9660.c: Likewise.
41044 * fs/jfs.c: Likewise.
41045 * fs/minix.c: Likewise.
41046 * fs/sfs.c: Likewise.
41047 * fs/ufs.c: Likewise.
41048 * fs/xfs.c: Likewise.
41049 * hello/hello.c: Likewise.
41050 * include/grub/acorn_filecore.h: Likewise.
41051 * include/grub/arg.h: Likewise.
41052 * include/grub/bitmap.h: Likewise.
41053 * include/grub/boot.h: Likewise.
41054 * include/grub/cache.h: Likewise.
41055 * include/grub/device.h: Likewise.
41056 * include/grub/disk.h: Likewise.
41057 * include/grub/dl.h: Likewise.
41058 * include/grub/elfload.h: Likewise.
41059 * include/grub/env.h: Likewise.
41060 * include/grub/err.h: Likewise.
41061 * include/grub/file.h: Likewise.
41062 * include/grub/font.h: Likewise.
41063 * include/grub/fs.h: Likewise.
41064 * include/grub/fshelp.h: Likewise.
41065 * include/grub/gzio.h: Likewise.
41066 * include/grub/hfs.h: Likewise.
41067 * include/grub/kernel.h: Likewise.
41068 * include/grub/loader.h: Likewise.
41069 * include/grub/lvm.h: Likewise.
41070 * include/grub/misc.h: Likewise.
41071 * include/grub/mm.h: Likewise.
41072 * include/grub/net.h: Likewise.
41073 * include/grub/normal.h: Likewise.
41074 * include/grub/parser.h: Likewise.
41075 * include/grub/partition.h: Likewise.
41076 * include/grub/pc_partition.h: Likewise.
41077 * include/grub/raid.h: Likewise.
41078 * include/grub/rescue.h: Likewise.
41079 * include/grub/script.h: Likewise.
41080 * include/grub/setjmp.h: Likewise.
41081 * include/grub/symbol.h: Likewise.
41082 * include/grub/term.h: Likewise.
41083 * include/grub/terminfo.h: Likewise.
41084 * include/grub/tparm.h: Likewise.
41085 * include/grub/types.h: Likewise.
41086 * include/grub/video.h: Likewise.
41087 * include/grub/efi/api.h: Likewise.
41088 * include/grub/efi/chainloader.h: Likewise.
41089 * include/grub/efi/console.h: Likewise.
41090 * include/grub/efi/console_control.h: Likewise.
41091 * include/grub/efi/disk.h: Likewise.
41092 * include/grub/efi/efi.h: Likewise.
41093 * include/grub/efi/pe32.h: Likewise.
41094 * include/grub/efi/time.h: Likewise.
41095 * include/grub/i386/linux.h: Likewise.
41096 * include/grub/i386/setjmp.h: Likewise.
41097 * include/grub/i386/types.h: Likewise.
41098 * include/grub/i386/efi/kernel.h: Likewise.
41099 * include/grub/i386/efi/loader.h: Likewise.
41100 * include/grub/i386/efi/time.h: Likewise.
41101 * include/grub/i386/pc/biosdisk.h: Likewise.
41102 * include/grub/i386/pc/boot.h: Likewise.
41103 * include/grub/i386/pc/chainloader.h: Likewise.
41104 * include/grub/i386/pc/console.h: Likewise.
41105 * include/grub/i386/pc/init.h: Likewise.
41106 * include/grub/i386/pc/kernel.h: Likewise.
41107 * include/grub/i386/pc/loader.h: Likewise.
41108 * include/grub/i386/pc/memory.h: Likewise.
41109 * include/grub/i386/pc/multiboot.h: Likewise.
41110 * include/grub/i386/pc/serial.h: Likewise.
41111 * include/grub/i386/pc/time.h: Likewise.
41112 * include/grub/i386/pc/vbe.h: Likewise.
41113 * include/grub/i386/pc/vbeblit.h: Likewise.
41114 * include/grub/i386/pc/vbefill.h: Likewise.
41115 * include/grub/i386/pc/vbeutil.h: Likewise.
41116 * include/grub/i386/pc/vga.h: Likewise.
41117 * include/grub/ieee1275/ieee1275.h: Likewise.
41118 * include/grub/ieee1275/ofdisk.h: Likewise.
41119 * include/grub/powerpc/libgcc.h: Likewise.
41120 * include/grub/powerpc/setjmp.h: Likewise.
41121 * include/grub/powerpc/types.h: Likewise.
41122 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
41123 * include/grub/powerpc/ieee1275/console.h: Likewise.
41124 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
41125 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
41126 * include/grub/powerpc/ieee1275/loader.h: Likewise.
41127 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
41128 * include/grub/powerpc/ieee1275/time.h: Likewise.
41129 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
41130 * include/grub/sparc64/libgcc.h: Likewise.
41131 * include/grub/sparc64/setjmp.h: Likewise.
41132 * include/grub/sparc64/types.h: Likewise.
41133 * include/grub/sparc64/ieee1275/console.h: Likewise.
41134 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
41135 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
41136 * include/grub/sparc64/ieee1275/time.h: Likewise.
41137 * include/grub/util/biosdisk.h: Likewise.
41138 * include/grub/util/getroot.h: Likewise.
41139 * include/grub/util/lvm.h: Likewise.
41140 * include/grub/util/misc.h: Likewise.
41141 * include/grub/util/raid.h: Likewise.
41142 * include/grub/util/resolve.h: Likewise.
41143 * io/gzio.c: Likewise.
41144 * kern/device.c: Likewise.
41145 * kern/disk.c: Likewise.
41146 * kern/dl.c: Likewise.
41147 * kern/elf.c: Likewise.
41148 * kern/env.c: Likewise.
41149 * kern/err.c: Likewise.
41150 * kern/file.c: Likewise.
41151 * kern/fs.c: Likewise.
41152 * kern/loader.c: Likewise.
41153 * kern/main.c: Likewise.
41154 * kern/misc.c: Likewise.
41155 * kern/mm.c: Likewise.
41156 * kern/parser.c: Likewise.
41157 * kern/partition.c: Likewise.
41158 * kern/rescue.c: Likewise.
41159 * kern/term.c: Likewise.
41160 * kern/efi/efi.c: Likewise.
41161 * kern/efi/init.c: Likewise.
41162 * kern/efi/mm.c: Likewise.
41163 * kern/i386/dl.c: Likewise.
41164 * kern/i386/efi/init.c: Likewise.
41165 * kern/i386/efi/startup.S: Likewise.
41166 * kern/i386/pc/init.c: Likewise.
41167 * kern/i386/pc/lzo1x.S: Likewise.
41168 * kern/i386/pc/startup.S: Likewise.
41169 * kern/ieee1275/ieee1275.c: Likewise.
41170 * kern/powerpc/cache.S: Likewise.
41171 * kern/powerpc/dl.c: Likewise.
41172 * kern/powerpc/ieee1275/cmain.c: Likewise.
41173 * kern/powerpc/ieee1275/crt0.S: Likewise.
41174 * kern/powerpc/ieee1275/init.c: Likewise.
41175 * kern/powerpc/ieee1275/openfw.c: Likewise.
41176 * kern/sparc64/cache.S: Likewise.
41177 * kern/sparc64/dl.c: Likewise.
41178 * kern/sparc64/ieee1275/init.c: Likewise.
41179 * kern/sparc64/ieee1275/openfw.c: Likewise.
41180 * loader/efi/chainloader.c: Likewise.
41181 * loader/efi/chainloader_normal.c: Likewise.
41182 * loader/i386/efi/linux.c: Likewise.
41183 * loader/i386/efi/linux_normal.c: Likewise.
41184 * loader/i386/pc/chainloader.c: Likewise.
41185 * loader/i386/pc/chainloader_normal.c: Likewise.
41186 * loader/i386/pc/linux.c: Likewise.
41187 * loader/i386/pc/linux_normal.c: Likewise.
41188 * loader/i386/pc/multiboot.c: Likewise.
41189 * loader/i386/pc/multiboot_normal.c: Likewise.
41190 * loader/powerpc/ieee1275/linux.c: Likewise.
41191 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41192 * normal/arg.c: Likewise.
41193 * normal/cmdline.c: Likewise.
41194 * normal/command.c: Likewise.
41195 * normal/completion.c: Likewise.
41196 * normal/execute.c: Likewise.
41197 * normal/function.c: Likewise.
41198 * normal/lexer.c: Likewise.
41199 * normal/main.c: Likewise.
41200 * normal/menu.c: Likewise.
41201 * normal/menu_entry.c: Likewise.
41202 * normal/misc.c: Likewise.
41203 * normal/parser.y: Likewise.
41204 * normal/script.c: Likewise.
41205 * normal/i386/setjmp.S: Likewise.
41206 * normal/powerpc/setjmp.S: Likewise.
41207 * normal/sparc64/setjmp.S: Likewise.
41208 * partmap/acorn.c: Likewise.
41209 * partmap/amiga.c: Likewise.
41210 * partmap/apple.c: Likewise.
41211 * partmap/gpt.c: Likewise.
41212 * partmap/pc.c: Likewise.
41213 * partmap/sun.c: Likewise.
41214 * term/gfxterm.c: Likewise.
41215 * term/terminfo.c: Likewise.
41216 * term/efi/console.c: Likewise.
41217 * term/i386/pc/console.c: Likewise.
41218 * term/i386/pc/serial.c: Likewise.
41219 * term/i386/pc/vesafb.c: Likewise.
41220 * term/i386/pc/vga.c: Likewise.
41221 * term/ieee1275/ofconsole.c: Likewise.
41222 * util/biosdisk.c: Likewise.
41223 * util/console.c: Likewise.
41224 * util/genmoddep.c: Likewise.
41225 * util/getroot.c: Likewise.
41226 * util/grub-emu.c: Likewise.
41227 * util/grub-mkdevicemap.c: Likewise.
41228 * util/grub-probe.c: Likewise.
41229 * util/lvm.c: Likewise.
41230 * util/misc.c: Likewise.
41231 * util/raid.c: Likewise.
41232 * util/resolve.c: Likewise.
41233 * util/update-grub.in: Likewise.
41234 * util/update-grub_lib.in: Likewise.
41235 * util/grub.d/00_header.in: Likewise.
41236 * util/grub.d/10_hurd.in: Likewise.
41237 * util/grub.d/10_linux.in: Likewise.
41238 * util/i386/efi/grub-install.in: Likewise.
41239 * util/i386/efi/grub-mkimage.c: Likewise.
41240 * util/i386/pc/grub-install.in: Likewise.
41241 * util/i386/pc/grub-mkimage.c: Likewise.
41242 * util/i386/pc/grub-mkrescue.in: Likewise.
41243 * util/i386/pc/grub-setup.c: Likewise.
41244 * util/i386/pc/misc.c: Likewise.
41245 * util/powerpc/ieee1275/grub-install.in: Likewise.
41246 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
41247 * util/powerpc/ieee1275/misc.c: Likewise.
41248 * video/bitmap.c: Likewise.
41249 * video/video.c: Likewise.
41250 * video/i386/pc/vbe.c: Likewise.
41251 * video/i386/pc/vbeblit.c: Likewise.
41252 * video/i386/pc/vbefill.c: Likewise.
41253 * video/i386/pc/vbeutil.c: Likewise.
41254 * video/readers/tga.c: Likewise.
41255
3572d015 412562007-07-02 Robert Millan <rmh@aybabtu.com>
41257
41258 * conf/i386-efi.rmk: Replace obsolete reference to
41259 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
41260 with util/getroot.c.
41261 * conf/powerpc-ieee1275.rmk: Likewise.
41262 * conf/sparc64-ieee1275.rmk: Likewise.
41263
41264 * util/grub-emu.c (main): Fix unchecked pointer handling.
41265
2c2a681b 412662007-07-02 Robert Millan <rmh@aybabtu.com>
41267
41268 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41269 invocation to fail, in order to support partition-less media.
41270
41271 * util/i386/pc/grub-install.in: Likewise.
41272
41273 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41274 which fs or partmap modules are needed (akin to its sister scripts).
41275
41276 Also use grub-probe to get rid of unportable /proc/mounts check.
41277
41278 Print the same informational message that the other scripts do, before
fe6b695a 41279 exiting.
2c2a681b 41280
6193defe 412812007-06-23 Robert Millan <rmh@aybabtu.com>
41282
fe6b695a 41283 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 41284 a font file can be found and, if so, echo the GRUB path to it.
41285
41286 * util/update-grub.in: Handle multiple terminals depending on user
41287 input, platform availability and font file presence. Propagate
41288 variables of our findings to /etc/grub.d/ children.
41289
41290 * util/grub.d/00_header.in: Handle multiple terminals, based on
41291 environment setup by update-grub.
41292
eface1dc 412932007-06-23 Robert Millan <rmh@aybabtu.com>
41294
ba50d28f 41295 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 41296
bf697e28 412972007-06-21 Robert Millan <rmh@aybabtu.com>
41298
41299 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41300 indicate end of data section in kernel image.
41301 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41302 GRUB_KERNEL_MACHINE_DATA_END.
41303
41304 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41305 space for it.
41306 * kern/i386/efi/startup.S: Likewise.
41307
41308 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41309 during image generation. Implement --prefix option to override this
41310 patch.
41311 * util/i386/efi/grub-mkimage.c: Likewise.
41312
41313 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41314 code to make path relative to its root into a separate function.
41315
41316 * util/i386/pc/grub-install.in: Use newly provided
41317 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41318 pass the result to grub-install --prefix.
41319
baa574b4 413202007-06-13 Robert Millan <rmh@aybabtu.com>
41321
41322 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41323 DEFAULT_DEVICE_MAP.
41324 * util/grub-emu.c: Use above definitions from misc.h instead of
41325 defining them.
41326 * util/grub-mkdevicemap.c: Likewise.
41327 * util/i386/pc/grub-setup.c: Likewise.
41328 * util/grub-probe.c: Likewise.
41329 (probe): Abort with grub_util_error() when either
41330 grub_guess_root_device or grub_util_get_grub_dev fails.
41331
0215dcbf 413322007-06-12 Robert Millan <rmh@aybabtu.com>
41333
41334 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41335 "pager" assignment.
41336 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41337 "pcdata".
41338 * util/grub-probe.c (probe): Likewise for "drive_name".
41339
8af2ab7b 413402007-06-11 Robert Millan <rmh@aybabtu.com>
41341
41342 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41343 not just the cdrom one.
41344
59d31694 413452007-06-11 Robert Millan <rmh@aybabtu.com>
41346
41347 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41348 Add --pkglibdir=DIR option to override pkglibdir.
41349 Mention --image-type=TYPE in help output.
41350 Fix --grub-mkimage (it was a no-op).
fe6b695a 41351 Abort gracefully when no parameter is given.
59d31694 41352
7ee367e4 413532007-06-11 Robert Millan <rmh@aybabtu.com>
41354
41355 * util/i386/pc/grub-mkrescue.in: New file.
41356 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41357 * Makefile.in: Handle bin_SCRIPTS.
41358
29b0ed46 413592007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41360
41361 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41362 list of video modes.
41363
c0f90770 413642007-06-06 Robert Millan <rmh@aybabtu.com>
41365
41366 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41367 file doesn't exist, or if it is in a filesystem grub can't read.
41368
41369 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41370 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41371 header comment to fit in 80 columns when the variables are resolved.
41372
41373 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41374 could be identified by update-grub. Remove redundant check for
fe6b695a 41375 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 41376 handles that).
41377
fb36dc26 413782007-06-04 Robert Millan <rmh@aybabtu.com>
41379
41380 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41381
41382 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41383
41384 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41385
0c68c93e 413862007-06-04 Robert Millan <rmh@aybabtu.com>
41387
41388 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41389
41390 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41391 grub_apple_partition_map_fini.
41392
41393 * util/biosdisk.c
41394 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41395 to access >2 TiB disks).
41396
41397 Print disk->total_sectors with %llu instead of %lu, since this
41398 variable is always 64-bit (prevents wrong disk size from being displayed
41399 on either >2 TiB disk or big-endian CPU).
41400
41401 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41402 into a generic case that supports all (sane) partition maps.
41403
41404 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41405 breaks big-endian.
41406
41407 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41408 and grub_apple_partition_map_fini() after that.
41409
0f23eb74 414102007-06-01 Robert Millan <rmh@aybabtu.com>
41411
41412 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41413
41414 * util/grub.d/00_header.in: Only enable gfxterm when
41415 convert_system_path_to_grub_path() succeeds.
41416
42c71976 414172007-05-20 Robert Millan <rmh@aybabtu.com>
41418
41419 * util/update-grub_lib.in: New file.
41420 * DISTLIST: Add update-grub_lib.in.
41421 * conf/common.rmk: Generate update-grub_lib and install it in
41422 $(lib_DATA).
41423 * Makefile.in: Add install routine for $(lib_DATA).
41424
41425 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41426 function provided by update-grub_lib to support arbitrary paths of
41427 unifont.pff.
41428 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41429 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41430
5beb2291 414312007-05-19 Robert Millan <rmh@aybabtu.com>
41432
41433 * commands/i386/cpuid.c: New module.
41434 * DISTLIST: Add it.
41435 * conf/i386-efi.rmk: Enable cpuid.mod.
41436 * conf/i386-pc.rmk: Likewise.
41437
7262eca1 414382007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41439
41440 * kern/disk.c (grub_disk_read): Check return value of
41441 grub_realloc().
41442
260ba823 414432007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41444
41445 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41446 arrays.
41447 * disk/raid.c (grub_raid_open): Likewise.
41448
1ecb6cf2 414492007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41450
41451 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41452 stack instead of on the heap.
41453
41454 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41455 before doing a read on it.
41456
41457 * configure.ac: Only use -fno-stack-protector for the target
41458 environment.
f19dbdb7 41459
21c8cbb1 414602007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41461
41462 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41463 __attribute_ ((unused)) to mode_type argument.
41464
41465 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 41466
21c8cbb1 41467 * kern/misc.c (memcmp): Fix prototype.
41468
41469 * include/grub/partition.h [GRUB_UTIL]
41470 (grub_gpt_partition_map_init): Add prototype.
41471 (grub_gpt_partition_map_fini): Likewise.
41472
41473 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41474 at the right place.
41475
41476 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41477 (grub_fat_read_data): Likewise.
41478 (grub_fat_find_dir): Likewise.
41479
41480 * font/manager.c (find_glyph): Make table a const.
41481 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 41482
849d55d3 414832007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41484
41485 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41486 code, first search for device in /dev/mapper, then in /dev.
41487 (grub_util_get_grub_dev): New function.
41488 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41489 prototype.
41490 * util/grub-probe.c (probe): Remove check for RAID, call
41491 grub_util_get_grub_dev() instead of
41492 grub_util_biosdisk_get_grub_dev().
41493 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41494 grub_util_biosdisk_get_grub_dev().
41495 * util/i386/pc/grub-setup.c (main): Likewise.
41496
8fff7c2f 414972007-05-16 Robert Millan <rmh@aybabtu.com>
41498
41499 * DISTLIST: Update for the latest changes.
41500 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41501 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41502 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41503 grub/util/biosdisk.h.
41504 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41505 grub/util/biosdisk.h.
41506
48e12b52 415072007-05-16 Robert Millan <rmh@aybabtu.com>
41508
41509 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41510
46b9d128 415112007-05-16 Robert Millan <rmh@aybabtu.com>
41512
41513 * util/i386/efi/grub-install.in: New.
41514 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41515 newly added grub-install.
41516 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41517 include.
41518 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41519 grub/util/biosdisk.h.
41520 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41521 grub/util/biosdisk.h.
41522
2d1a40a9 415232007-05-16 Robert Millan <rmh@aybabtu.com>
41524
41525 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41526 * include/grub/util/biosdisk.h: ... here.
41527 * util/i386/pc/biosdisk.c: Moved to ...
41528 * util/biosdisk.c: ... here.
41529 * util/i386/pc/getroot.c: Moved to ...
41530 * util/getroot.c: ... here.
41531 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41532 * util/grub-mkdevicemap.c: ... here.
41533 * util/i386/pc/grub-probe.c: Moved to ...
41534 * util/grub-probe.c: ... here.
41535
9e26e3bc 415362007-05-15 Robert Millan <rmh@aybabtu.com>
41537
41538 * util/update-grub.in: Remove duplicated line in grub.cfg header
41539 message.
41540
57f96397 415412007-05-13 Robert Millan <rmh@aybabtu.com>
41542
41543 * util/update-grub.in: Fix a few assumptions about the devices holding
41544 /, /boot and /boot/grub being the same.
41545 * util/grub.d/00_header.in: Likewise.
41546 * util/grub.d/10_hurd.in: Likewise.
41547 * util/grub.d/10_linux.in: Likewise.
41548
41549 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41550 patterns. Use that to define the `.old' suffix as older than `'.
41551
41552 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41553
41554 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41555 the grub.cfg header message.
41556
2e610d62 415572007-05-11 Robert Millan <rmh@aybabtu.com>
41558
41559 * util/update-grub.in: Create device.map if it doesn't already exist,
41560 before attempting to run grub-probe.
41561 Check for grub-probe and grub-mkdevicemap with the same code
41562 grub-install is using.
41563 Remove test mode.
41564
3f6a10ef 415652007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41566
41567 * Makefile.in: Add the datarootdir autoconf variable.
41568
02e7b75e 415692007-05-09 Robert Millan <rmh@aybabtu.com>
41570
41571 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 41572 fail gracefully if dev->disk->partition == NULL.
02e7b75e 41573
75f396cc 415742007-05-07 Robert Millan <rmh@aybabtu.com>
41575
41576 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41577 determine partition map module.
41578 * util/i386/pc/grub-install.in: Use this feature to decide which
41579 partition module to load, instead of hardcoding pc and gpt.
41580
da65cb36 415812007-05-07 Robert Millan <rmh@aybabtu.com>
41582
41583 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41584 source directory differs from build directory.
41585
b57d6a91 415862007-05-05 Robert Millan <rmh@aybabtu.com>
41587
41588 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41589 initialisation.
41590
509d00f1 415912007-05-05 Robert Millan <rmh@aybabtu.com>
41592
41593 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41594
c48f23ef 415952007-05-05 Robert Millan <rmh@aybabtu.com>
41596
41597 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41598 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41599
20b97658 416002007-05-05 Robert Millan <rmh@aybabtu.com>
41601
41602 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41603 (grub_probe_SOURCES): Likewise.
41604 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41605 GPT and initialize dos_part and bsd_part accordingly.
41606 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41607 install_bsd_part.
41608 (main): Activate gpt module for use during partition identification,
41609 and deactivate it afterwards.
41610 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41611 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41612 partition identification, and deactivate it afterwards.
41613
99123174 416142007-05-05 Robert Millan <rmh@aybabtu.com>
41615
41616 * term/i386/pc/console.c (grub_console_fini): Call
41617 grub_term_set_current() before grub_term_unregister().
41618
ebd97f6e 416192007-05-04 Robert Millan <rmh@aybabtu.com>
41620
41621 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41622 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41623 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41624 and update-grub_DATA.
41625 * conf/common.rmk: Build and install update-grub components.
41626 * conf/common.mk: Regenerate.
41627 * util/update-grub.in: New. Core of update-grub.
41628 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41629 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41630 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41631 * util/grub.d/README: New. Document grub.d directory layout.
41632
b06a264d 416332007-05-01 Robert Millan <rmh@aybabtu.com>
41634
41635 * util/grub-emu.c: Move initialization functions
41636 grub_util_biosdisk_init() and grub_init_all() before
41637 grub_util_biosdisk_get_grub_dev(), which relies on them.
41638
41f0050e 416392007-04-19 Robert Millan <rmh@aybabtu.com>
41640
41641 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41642 it is used later.
41643
04582bb3 416442007-04-18 Jerone Young <jerone@gmail.com>
41645
f19dbdb7 41646 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 41647 stanza.
41648
08db4632 416492007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 41650
08db4632 41651 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41652 continue on and look for device node with real device name.
41653
801b76be 416542007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 41655
fe6b695a 41656 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 41657 ability.
41658 * Makefile.in: Add autoconf package transformation code.
41659 * util/i386/pc/grub-install.in: Likewise.
41660 * util/powerpc/ieee1275/grub-install.in: Likewise.
41661
6795c4e1 416622007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41663
41664 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41665 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41666 (EXT2_REVISION): Likewise.
41667 (EXT2_INODE_SIZE): Likewise.
41668 (struct grub_ext2_block_group): Added a missing member
41669 "used_dirs".
41670 (grub_ext2_read_inode): Divide by the inode size in a superblock
41671 instead of 128 to obtain INODES_PER_BLOCK.
41672 Use the macro EXT2_INODE_SIZE instead of directly using
41673 SBLOCK->INODE_SIZE.
41674
d70af616 416752007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41676
41677 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41678 superblock instead of the structure size to compute an
41679 offset. This fixes the problem that GRUB could not read a
41680 filesystem when inode size is different from 128-byte.
41681
3b801603 416822007-03-05 Marco Gerards <marco@gnu.org>
41683
41684 * normal/main.c (read_config_file): When "menu" is not set, create
41685 an initial context.
41686
4785bfe4 416872007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41688
41689 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41690 (HEAP_LIMIT): New macro.
41691 (grub_claim_heap): Claim memory up to `heaplimit'.
41692
a0cbb023 416932007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41694
41695 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41696 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41697 (_start): Likewise.
41698 (grub_arch_modules_addr): Return address after `_end'.
41699 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41700 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41701 (add_segments): Calculate `_end' from phdr size and location.
41702 (ALIGN_UP): Moved to ...
41703 * include/grub/misc.h: here.
41704 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41705 New macro.
41706 (GRUB_IEEE1275_MODULE_BASE): Removed.
41707
fd7d8eba 417082007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41709
41710 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41711 loop boundary.
41712
9b09e6fc 417132007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41714
41715 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41716 All users updated.
41717 (grub_elf64_load_hook_t): Likewise.
41718 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41719 debug output.
41720
3ce27299 417212007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41722
41723 * kern/mm.c: Update copyright.
41724 (grub_mm_debug): Correct syntax error.
41725 (grub_mm_dump_free): New function.
41726 (grub_debug_free): Call `grub_free'.
41727 * include/grub/mm.h: Update copyright.
41728 (grub_mm_dump_free): Add declaration.
41729
077d5fee 417302007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41731
41732 * include/grub/ieee1275/ieee1275.h: Update copyright.
41733 * kern/powerpc/ieee1275/init.c: Likewise.
41734 * kern/powerpc/ieee1275/openfw.c: Likewise.
41735
41736 * loader/powerpc/ieee1275/linux.c: Likewise.
41737 * include/grub/elfload.h: Likewise.
41738 * kern/elf.c: Likewise.
41739 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41740 callers.
41741 (grub_elf64_load): Likewise.
41742 (grub_elf32_load_segment): Move to a nested function.
41743 (grub_elf64_load_segment): Likewise.
41744
dc946850 417452007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41746
41747 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41748 prototype.
41749 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41750 (grub_heap_len): Likewise.
41751 (HEAP_SIZE): New macro.
41752 (grub_claim_heap): New function.
41753 (grub_machine_init): Don't claim heap directly. Call
41754 `grub_claim_heap'.
41755 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41756 (grub_available_iterate): New function.
41757
baa2a121 417582007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41759
41760 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41761 * configure.ac: Use it for testing the HOST and TARGET compilers.
41762
4fe9862e 417632006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41764
41765 * Makefile.in (enable_grub_emu): New variable.
41766 * configure.ac (--enable-grub-emu): New option.
41767 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41768 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41769 * conf/i386-pc.rmk: Likewise.
41770 * conf/powerpc-ieee1275.rmk: Likewise.
41771 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41772
a8aa5762 417732006-12-12 Marco Gerards <marco@gnu.org>
41774
41775 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41776
41777 * kern/env.c (grub_env_unset): Don't free the member `value' when
41778 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41779 pointer.
41780
41781 * normal/main.c (current_menu): Removed.
41782 (free_menu): Unset the `menu' environment variable.
41783 (grub_normal_menu_addentry): Make use of the environment variable
41784 `menu', instead of using the global `current_menu'. Allocate
41785 memory for the sourcecode of this entry.
41786 (read_config_file): New argument `nested', changed all callers.
41787 Only in the case of a new context, initialize a new menu. Set the
41788 `menu' environment variable.
41789 (grub_normal_execute): Don't set and unset the environment
41790 variable `menu' here anymore. Only free the menu when leaving the
41791 context.
41792
41793 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41794 leak.
41795
957b3a3e 417962006-12-11 Marco Gerards <marco@gnu.org>
41797
41798 * normal/menu_entry.c (run): Fix off by one bug so the last line
41799 is executed. Move the loader check to outside the loop.
41800
ef875714 418012006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41802
41803 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41804
4e739985 418052006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41806
41807 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41808 the number of sectors. Reported by Andrey Shuvikov
41809 <mr_hyro@yahoo.com>.
f19dbdb7 41810
790707f2 418112006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41812
41813 * kern/disk.c (grub_disk_read): When there is a read error, always
41814 try to read only the necessary data.
f19dbdb7 41815
790707f2 41816 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41817 disk/raid.c.
41818 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41819 prototype.
41820 [GRUB_UTIL] (grub_raid_fini): Likewise.
41821 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 41822 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 41823 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41824 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41825 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41826 and grub_raid_fini().
f19dbdb7 41827
03e58196 418282006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41829
41830 * include/grub/types.h (__unused): Rename to UNUSED.
41831 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41832 (grub_elf64_size): Likewise.
f19dbdb7 41833
ae4f23bf 418342006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41835
41836 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41837 grub_error_push and grub_error_pop in the error-handling path.
41838 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41839 length.
41840
2166cc83 418412006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41842
41843 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41844 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41845 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41846 (kernel_elf_SOURCES): Likewise.
41847 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41848 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41849 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41850 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41851 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41852 (elf_mod_SOURCES): New variable.
41853 (elf_mod_CFLAGS): Likewise.
41854 (elf_mod_LDFLAGS): Likewise.
41855 * include/grub/types.h (__unused): New macro.
41856 * include/grub/elfload.h: New file.
41857 * kern/elf.c: Likewise.
41858 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41859 (ELF32_LOADMASK): New macro.
41860 (ELF64_LOADMASK): Likewise.
41861 (vmlinux): Removed.
41862 (grub_linux_load32): New function.
41863 (grub_linux_load64): Likewise.
41864 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41865 Use grub_elf_t instead of grub_file_t.
41866
a09d5aa5 418672006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41868
41869 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41870 `catch_result' to struct set_color_args.
41871
d976fc51 418722006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41873
41874 * normal/menu.c: Include grub/script.h.
41875 * normal/menu_entry.c: Likewise.
41876 * include/grub/normal.h: Do not include grub/script.h.
41877
67507549 418782006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41879
41880 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41881
69203a99 418822006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41883
41884 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41885 disk.
41886 (grub_disk_close): Print debug messages when closing a disk.
41887 (grub_disk_read): Print debug messages when disk read fails.
41888 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41889 filesystem type.
41890 * kern/partition.c: Include misc.h.
41891 (grub_partition_iterate): Print debug messages when detecting
41892 partition type.
41893
e2b8278c 418942006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41895
41896 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41897 is negative.
41898 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41899
97b2f2ff 419002006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41901
41902 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41903 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41904
6555d655 419052006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41906
41907 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41908 instead of sizeof(lv). Patch by Michael Guntsche.
41909
4d42b77f 419102006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41911
41912 * disk/lvm.c: Rename VGS to VG_LIST.
41913 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41914 (grub_lvm_open): Likewise.
41915 Thanks to Michael Guntsche for finding this bug.
41916
5d74d927 419172006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41918
41919 * configure.ac (AC_INIT): Bumped to 1.95.
41920
a1bb27e4 419212006-10-14 Robert Millan <rmh@aybabtu.com>
41922
41923 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41924 with "/dev/.static/dev/md".
41925
e0994b8b 419262006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41927
41928 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41929 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41930 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41931 DRIVE_NAME are always freed.
41932
41933 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41934 DOS_PART, as a DOS partition is counted from one instead of zero
41935 now. Reported by Robert Millan.
41936
ddd5cee9 419372006-10-14 Robert Millan <rmh@aybabtu.com>
41938
41939 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41940 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41941 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41942 string returned by grub_guess_root_device.
41943 * util/i386/pc/grub-setup.c: Likewise.
41944 * util/i386/pc/grub-probefs.c: Likewise.
41945
41946 * util/i386/pc/grub-probefs.c: Rename to ...
41947 * util/i386/pc/grub-probe.c: ... this.
41948 * DISTLIST: Remove grub-probefs, add grub-probe.
41949 * conf/i386-efi.rmk: Likewise.
41950 * conf/i386-pc.rmk: Likewise.
41951 * util/i386/pc/grub-install.in: Likewise.
41952
41953 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41954 choose which information we want to print.
41955
2b002173 419562006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41957
41958 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41959 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41960 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41961 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41962 video/readers/tga.c and video/i386/pc/vbeutil.c.
41963
419642006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41965
41966 Added support for RAID and LVM.
f19dbdb7 41967
2b002173 41968 * disk/lvm.c: New file.
41969 * disk/raid.c: Likewise.
41970 * include/grub/lvm.h: Likewise.
f19dbdb7 41971 * include/grub/raid.h: Likewise.
2b002173 41972 * include/grub/util/lvm.h: Likewise.
41973 * include/grub/util/raid.h: Likewise.
41974 * util/lvm.c: Likewise.
41975 * util/raid.c: Likewise.
41976
41977 * include/grub/disk.h (grub_disk_dev_id): Add
41978 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41979 (grub_disk_get_size): New prototype.
41980 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41981 returns a partition.
41982 (grub_disk_get_size): New function.
f19dbdb7 41983
2b002173 41984 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41985 verbatim if grub_install_dos_part is -2.
41986
41987 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41988 and LVM devices.
41989
41990 * util/i386/pc/grub-setup.c (setup): New argument
41991 MUST_EMBED. Force embedding of GRUB when the argument is
41992 true. Close FILE before returning.
41993 (main): Add support for RAID and LVM.
f19dbdb7 41994
2b002173 41995 * conf/common.rmk: Add RAID and LVM modules.
41996 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41997 util/lvm.c.
41998 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41999
42000 * kern/misc.c (grub_strstr): New function.
42001 * include/grub/misc.h (grub_strstr): New prototype.
42002
050548d0 420032006-10-10 Tristan Gingold <tristan.gingold@bull.net>
42004
42005 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
42006
da849d2d 420072006-10-05 Tristan Gingold <tristan.gingold@bull.net>
42008
42009 * kern/misc.c (grub_strtoull): Guess the base only if not
42010 specified.
42011
97b2f2ff 420122006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 42013
42014 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
42015 PowerMac support.
42016
97b2f2ff 420172006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 42018
42019 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
42020
42021 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
42022 Remove `flags' argument. All callers changed.
42023 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
42024 (IEEE1275_IHANDLE_INVALID): New variable.
42025 (IEEE1275_CELL_INVALID): New variable.
42026 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
42027 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
42028 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
42029 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
42030 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
42031 codes from Open Firmware. All callers updated.
42032 (grub_ieee1275_next_property): Directly return Open Firmware return
42033 code.
42034 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
42035 Standardize error checking from `grub_ieee1275_get_property'.
42036 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
42037 `devalias' to `aliases'. Correct comments. Consolidate error paths.
42038
97b2f2ff 420392006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 42040
42041 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
42042 `instance_to_package_args' to `instance_to_path_args'.
42043
42044 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
42045 `grub_ieee1275_chosen'.
42046
42047 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
42048 `grub_ieee1275_interpret'.
42049
97b2f2ff 420502006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 42051
42052 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
42053
97b2f2ff 420542006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 42055
42056 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
42057 (__cmpdi): Likewise.
42058
42059 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
42060 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
42061 `grub_ssize_t'.
42062
02bb8acc 42063 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 42064
42065 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
42066 to type `grub_ssize_t'.
42067 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
42068
7f9a8531 420692006-09-22 Marco Gerards <marco@gnu.org>
42070
42071 * normal/script.c (grub_script_create_cmdmenu): Skip leading
42072 newlines.
42073
b5ef1102 420742006-09-22 Marco Gerards <marco@gnu.org>
42075
42076 * commands/echo.c: New file.
42077
42078 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
42079
42080 * conf/common.rmk (echo_mod_SOURCES): New variable.
42081 (echo_mod_CFLAGS): Likewise.
42082 (echo_mod_LDFLAGS): Likewise.
42083
2cff3677 420842006-09-22 Marco Gerards <marco@gnu.org>
42085
42086 * normal/main.c (get_line): Malloc memory instead of using
42087 preallocated memory. Removed the arguments `cmdline' and
42088 `max_len'. Updated all callers.
42089
6ba4688b 420902006-09-22 Marco Gerards <marco@gnu.org>
42091
42092 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
42093 (normal_mod_DEPENDENCIES): Likewise.
42094
42095 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
42096 (normal_mod_DEPENDENCIES): Likewise.
42097
42098 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
42099
e02ac02c 421002006-09-22 Johan Rydberg <jrydberg@gnu.org>
42101
42102 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
42103 programs.
42104 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
42105 (normal_mod_DEPENDENCIES): Likewise.
42106 * conf/i386-pc.mk: Regenerate.
42107 * conf/i386-efi.mk: Likewise
42108 * conf/common.mk: Likewise.
42109 * conf/powerpc-ieee1275.mk: Likewise.
42110 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 42111
8d252e44 421122006-09-22 Robert Millan <rmh@aybabtu.com>
42113
42114 Sync with i386 version.
42115 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
42116 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
42117
209bf7ac 421182006-09-21 Robert Millan <rmh@aybabtu.com>
42119
42120 Import from GRUB Legacy (lib/device.c):
42121 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
42122 (init_device_map) [__linux__]: Add support for I2O devices.
42123
6b146090 421242006-09-14 Marco Gerards <marco@gnu.org>
42125
42126 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
42127 `-melf_i386'.
42128
e38600a8 421292006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 42130
42131 * util/i386/pc/grub-install.in: Skip menu.lst when removing
42132 /boot/grub/*.lst.
78fa1790 42133
2952da5d 42134 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 42135
2952da5d 42136 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
42137 before adding it to device.map.
42138
01b82a64 421392006-08-15 Johan Rydberg <jrydberg@gnu.org>
42140
fe6b695a 42141 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 42142 compiles a file; using the -MD option.
42143 * conf/common.mk: Regenerate.
42144 * conf/i386-pc.mk: Likewise.
42145 * conf/i386-efi.mk: Likewise.
42146 * conf/powerpc-ieee1275.mk: Likewise.
42147 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 42148
1064790d 421492006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
42150
42151 Move the prototypes of grub_setjmp and grub_longjmp to
42152 cpu/setjmp.h, so that each architecture may specify different
42153 attributes.
f19dbdb7 42154
1064790d 42155 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
42156 (grub_longjmp): Likewise.
42157 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
42158 (grub_longjmp): Likewise.
42159 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
42160 (grub_longjmp): Likewise.
42161
42162 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
42163 [!GRUB_UTIL] (grub_longjmp): Removed.
42164
29dda3ed 421652006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
42166
42167 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
42168 "color!" method does not return any value.
42169
ad2a06ed 421702006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42171
42172 * include/grub/bitmap.h: New file.
42173
42174 * include/grub/i386/pc/vbeutil.h: Likewise.
42175
42176 * video/bitmap.c: Likewise.
42177
42178 * video/readers/tga.c: Likewise.
42179
42180 * video/i386/pc/vbeutil.c: Likewise.
42181
42182 * commands/videotest.c: Code cleanup and updated to reflect to new
42183 video API.
42184
42185 * term/gfxterm.c: Likewise.
42186
42187 * video/video.c: Likewise.
42188
42189 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
42190 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
42191 (bitmap_mod_SOURCES): New entry.
42192 (bitmap_mod_CFLAGS): Likewise.
42193 (bitmap_mod_LDFLAGS): Likewise.
42194 (tga_mod_SOURCES): Likewise.
42195 (tga_mod_CFLAGS): Likewise.
42196 (tga_mod_LDFLAGS): Likewise.
42197
42198 * include/grub/video.h (grub_video_blit_operators): New enum type.
42199 (grub_video_render_target): Changed as forward declaration and moved
42200 actual definition to be video driver specific.
42201 (grub_video_adapter.blit_bitmap): Added blitting operator.
42202 (grub_video_adapter.blit_render_target): Likewise.
42203 (grub_video_blit_bitmap): Likewise.
42204 (grub_video_blit_render_target): Likewise.
42205
42206 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
42207 driver specific render target definition.
42208 (grub_video_vbe_map_rgba): Added driver internal helper.
42209 (grub_video_vbe_unmap_color): Updated to use
42210 grub_video_i386_vbeblit_info.
42211 (grub_video_vbe_get_video_ptr): Likewise.
42212
42213 * include/grub/i386/pc/vbeblit.h
42214 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
42215 grub_video_i386_vbeblit_info.
42216 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42217 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42218 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42219 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42220 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42221 (grub_video_i386_vbeblit_index_index): Likewise.
42222 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
42223 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42224 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42225 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
42226 operator.
42227 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
42228 operator.
42229
42230 * video/i386/pc/vbeblit.c: Updated to reflect changes on
42231 include/grub/i386/pc/vbeblit.h.
42232
42233 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
42234 Updated to use grub_video_i386_vbeblit_info.
42235 (grub_video_i386_vbefill_R8G8B8): Likewise.
42236 (grub_video_i386_vbefill_index): Likewise.
42237 (grub_video_i386_vbefill): Added generic filler.
42238
42239 * video/i386/pc/vbefill.c: Updated to reflect changes on
42240 include/grub/i386/pc/vbefill.h.
42241
42242 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
42243 grub_video_i386_vbeblit_info.
42244 (grub_video_vbe_unmap_color): Likewise.
42245 (grub_video_vbe_blit_glyph): Likewise.
42246 (grub_video_vbe_scroll): Likewise.
42247 (grub_video_vbe_draw_pixel): Removed function.
42248 (grub_video_vbe_get_pixel): Likewise.
42249 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
42250 updated code to use it.
42251 (common_blitter): Added common blitter for render target and bitmap.
42252 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
42253 (grub_video_vbe_blit_render_target): Likewise.
42254
bc8c036d 422552006-07-30 Johan Rydberg <jrydberg@gnu.org>
42256
42257 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
42258 is in text mode if there is no console control protocol instance
42259 available.
42260
684a8eff 422612006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42262
42263 * include/grub/video.h: Code cleanup.
42264
42265 * include/grub/i386/pc/vbe.h: Likewise.
42266
42267 * video/i386/pc/vbe.c: Likewise.
42268
42269 * video/i386/pc/vbeblit.c: Likewise.
42270
42271 * video/i386/pc/vbefill.c: Likewise.
42272
42273 * video/video.c: Likewise. Also added more comments.
42274
5915059b 422752006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42276
42277 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42278 (struct grub_biosdisk_dap): Likewise.
42279
42280 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42281 linkage settings for all functions.
42282
90ce5d56 422832006-07-12 Marco Gerards <marco@gnu.org>
42284
42285 * configure.ac (--enable-mm-debug): Fix typo.
42286
42287 * genkernsyms.sh.in: Use proper quoting for `CC'.
42288
43e7f879 422892006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42290
42291 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42292 (normal_mod_ASFLAGS): Remove "-m32".
42293
4889bdec 422942006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42295
42296 * util/misc.c: Include config.h.
42297 [!HAVE_MEMALIGN]: Do not include malloc.h.
42298 (grub_memalign): Use posix_memalign, if present. Then, use
42299 memalign, if present. Otherwise, emit an error.
42300
42301 * util/grub-emu.c: Do not include malloc.h.
42302
42303 * include/grub/util/misc.h: Include unistd.h. This is required for
42304 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42305 D. Eades III <hde@foobar-qux.org>.
42306
42307 * configure.ac (AC_GNU_SOURCE): Added.
42308 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42309 type.
42310
fd39d4da 423112006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42312
42313 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42314 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42315
b786f3b5 423162006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42317
42318 * include/grub/types.h (grub_host_addr_t): Rename to
42319 grub_target_addr_t.
42320 (grub_host_off_t): Rename to grub_target_off_t.
42321 (grub_host_size_t): Rename to grub_target_size_t.
42322 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42323 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42324
42325 * include/grub/kernel.h (struct grub_module_header): Change type
42326 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42327 (grub_module_info): Likewise.
f19dbdb7 42328
051988bb 423292006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42330
42331 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42332 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42333 Velazquez <jesus.velazquez@gmail.com>.
42334
deae281b 423352006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42336
42337 Count partitions from 1 instead of 0 in the string representation
42338 of partitions. Still use 0-based internally.
f19dbdb7 42339
deae281b 42340 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42341 (sun_partition_map_iterate): Use grub_partition_t instead of
42342 struct grub_partition *. Cast DESC->START_CYLINDER to
42343 grub_uint64_t after converting the endian.
42344 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42345 (sun_partition_map_get_name): Add 1 to P->INDEX.
42346
42347 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42348 PCDATA->DOS_PART.
42349 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42350
42351 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42352 zero instead of one.
42353 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42354 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42355
42356 * partmap/apple.c (apple_partition_map_iterate): Change the type
42357 of POS to unsigned.
42358 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42359 (apple_partition_map_get_name): Add 1 into P->INDEX.
42360
42361 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42362 of POS to unsigned.
42363 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42364 calculate the offset of a partition.
42365 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42366 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42367
42368 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42369 SECTOR to grub_disk_addr_t.
42370 (acorn_partition_map_iterate): Likewise.
42371 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42372 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42373 top.
42374 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42375
42376 * kern/i386/pc/init.c (make_install_device): Add 1 into
42377 GRUB_INSTALL_DOS_PART.
42378
42379 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42380 conditional.
42381
524a1e6a 423822006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42383
42384 Clean up the code to support 64-bit addressing in disks and
42385 files. This change is not enough for filesystems yet.
f19dbdb7 42386
524a1e6a 42387 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42388 type of "start" to grub_uint64_t.
42389 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42390 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42391 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42392 convert addresses.
42393
42394 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42395 to grub_disk_addr_t.
42396
42397 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42398 string.
42399
42400 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42401
42402 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42403 to char *.
42404
42405 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42406
42407 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42408
42409 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42410
42411 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42412 to grub_off_t, to detect an error from grub_file_seek.
42413 (grub_multiboot_load_elf32): Likewise.
42414
42415 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42416 maximum unsigned long value when an overflow is detected.
42417 (grub_strtoull): New function.
42418 (grub_divmod64): Likewise.
42419 (grub_lltoa): use grub_divmod64.
42420
42421 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42422 grub_disk_addr_t.
42423 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42424 the pointer to next character. Use grub_strtoull instead of
42425 grub_strtoul.
42426 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42427 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42428 respectively.
42429
fe6b695a 42430 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 42431 return value is signed.
42432 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42433 test if OFFSET is less than zero, as OFFSET is unsigned now.
42434
42435 * kern/disk.c (struct grub_disk_cache): Change the type of
42436 "sector" to grub_disk_addr_t.
42437 (grub_disk_cache_get_index): Change the type of SECTOR to
42438 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42439 unsigned after shifting.
42440 (grub_disk_cache_invalidate): Change the type of SECTOR to
42441 grub_disk_addr_t.
42442 (grub_disk_cache_unlock): Likewise.
42443 (grub_disk_cache_store): Likewise.
42444 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42445 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42446 grub_disk_addr_t and grub_uint64_t, respectively.
42447 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42448 body, as the value of OFFSET is tweaked by
42449 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42450 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42451 respectively.
42452 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42453 body, as the value of OFFSET is tweaked by
42454 grub_disk_check_range. Change the types of LEN and N to
42455 grub_size_t.
42456
42457 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42458 and "saved_offset" to grub_off_t.
42459 (test_header): Cast BUF to char *.
42460 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42461 to char *.
42462 (grub_gzio_read): Change the types of OFFSET and SIZE to
42463 grub_off_t and grub_size_t, respectively.
42464
42465 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42466 Removed.
42467 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42468 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42469 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42470 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42471 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42472
42473 * include/grub/types.h (grub_off_t): Unconditionally set to
42474 grub_uint64_t.
42475 (grub_disk_addr_t): Changed to grub_uint64_t.
42476
42477 * include/grub/partition.h (struct grub_partition): Change the
42478 types of "start", "len" and "offset" to grub_disk_addr_t,
42479 grub_uint64_t and grub_disk_addr_t, respectively.
42480 (grub_partition_get_start): Return grub_disk_addr_t.
42481 (grub_partition_get_len): Return grub_uint64_t.
42482
42483 * include/grub/misc.h (grub_strtoull): New prototype.
42484 (grub_divmod64): Likewise.
42485
42486 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42487 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42488 grub_off_t, respectively.
42489 All callers and references changed.
42490
42491 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42492 grub_size_t in "read".
42493 All callers and references changed.
42494
42495 * include/grub/file.h (struct grub_file): Change the types of
42496 "offset" and "size" to grub_off_t and grub_off_t,
42497 respectively. Change the type of SECTOR to grub_disk_addr_t in
42498 "read_hook".
42499 (grub_file_read): Change the type of LEN to grub_size_t.
42500 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42501 grub_off_t.
42502 (grub_file_size): Return grub_off_t.
42503 (grub_file_tell): Likewise.
42504 All callers and references changed.
42505
42506 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42507 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42508 "write".
42509 (struct grub_disk): Change the type of "total_sectors" to
42510 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 42511 "read_hook".
524a1e6a 42512 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42513 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42514 (grub_disk_write): Likewise.
42515 All callers and references changed.
42516
42517 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42518 char * for grub_strncmp to silence gcc.
42519 (grub_iso9660_mount): Likewise.
42520 (grub_iso9660_mount): Likewise.
42521 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42522 return statement.
42523 (grub_iso9660_iterate_dir): Likewise.
42524 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42525
42526 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42527 LEN to grub_disk_addr_t and grub_size_t, respectively.
42528
42529 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42530
42531 * fs/jfs.c (grub_jfs_read_file): Likewise.
42532
42533 * fs/minix.c (grub_jfs_read_file): Likewise.
42534
42535 * fs/sfs.c (grub_jfs_read_file): Likewise.
42536
42537 * fs/ufs.c (grub_jfs_read_file): Likewise.
42538
42539 * fs/xfs.c (grub_jfs_read_file): Likewise.
42540
42541 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42542 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42543 respectively.
42544
42545 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42546 BLKNR to -1 instead of returning GRUB_ERRNO.
42547 (grub_ext2_read_file): Change the types of SECTOR and
42548 LEN to grub_disk_addr_t and grub_size_t, respectively.
42549
42550 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42551 LEN to grub_disk_addr_t and grub_size_t, respectively.
42552
42553 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42554 grub_file_read.
42555
42556 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42557 string. Do not cast SECTOR explicitly.
42558
42559 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42560 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42561 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42562 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42563 over 2TB and LBA mode is not supported, raise an error.
42564 (get_safe_sectors): New function.
42565 (grub_biosdisk_read): Use get_safe_sectors.
42566 (grub_biosdisk_write): Likewise.
42567
42568 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42569 (grub_efidisk_write): Likewise.
42570
42571 * disk/loopback.c (delete_loopback): Cosmetic changes.
42572 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42573 correctly.
42574 (grub_loopback_open): Likewise.
42575 (grub_loopback_read): Likewise. Also, change the type of POS to
42576 grub_off_t, and fix the usage of grub_memset.
42577
42578 * commands/i386/pc/play.c: Include grub/machine/time.h.
42579
42580 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42581 print FILE->SIZE.
42582
42583 * commands/configfile.c: Include grub/env.h.
42584
42585 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42586 GRUB_ERRNO directly instead. Change the type of POS to
42587 grub_off_t. Follow the coding standard.
42588
42589 * commands/blocklist.c: Include grub/partition.h.
42590 (grub_cmd_blocklist): Return an error if the underlying device is
42591 not a disk. Take the starting sector of a partition into account,
42592 if a partition is used.
42593
42594 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42595 a length field.
42596 (lba_mode): Support 64-bit addresses.
42597 (chs_mode): Likewise.
42598 (copy_buffer): Adapted to the new offsets of a length field and a
42599 segment field.
42600 (blocklist_default_start): Allocate 64-bit space.
42601
42602 * boot/i386/pc/boot.S (force_lba): Removed.
42603 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 42604 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 42605 space.
42606 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42607 is useless.
42608 (lba_mode): Refactored to support a 64-bit address. More size
42609 optimization.
42610 (setup_sectors): Likewise.
42611
53af98ad 426122006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42613
42614 * DISTLIST: Added include/grub/i386/linux.h. Removed
42615 include/grub/i386/pc/linux.h
42616
42617 * configure.ac (AC_INIT): Bumped to 1.94.
42618
42619 * config.guess: Updated from gnulib.
42620 * config.sub: Likewise.
42621 * install-sh: Likewise.
42622 * mkinstalldirs: Likewise.
42623
b4c1940a 426242006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42625
42626 * conf/common.rmk (grub_modules_init.lst): Depended on
42627 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42628 MODSRCFILES.
42629
42630 * genmk.rb (PModule::rule): Reverted the previous change.
42631
cfca1cfd 426322006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42633
42634 * conf/common.rmk (grub_modules_init.lst): Depends on
42635 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42636 that the target does not exist before producing.
42637 (grub_modules_init.h): Remove the target before generating.
42638 (grub_emu_init.c): Likewise.
42639
42640 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42641
aa6d7826 426422006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42643
42644 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42645 for the target-specific tests. Make sure that we also have the
42646 up-to-date target variables for those tests.
42647
26c607b9 426482006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42649
42650 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42651 (PModule::rule): Likewise.
42652
0162321a 426532006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42654
42655 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42656 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42657 target-specific flags should be prefixed.
42658 (PModule::rule): Likewise.
42659
6c826348 426602006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42661
42662 * configure.ac (CMP): Check if cmp is available explicitly.
42663
b977bf01 426642006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42665
42666 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42667 (target_cpu): New variable.
42668 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 42669
b977bf01 42670 * util/i386/pc/grub-install.in (host_cpu): Removed.
42671 (target_cpu): New variable.
42672 (pkglibdir): Use target_cpu instead of host_cpu.
42673
42674 * util/genmoddep.c: Removed.
f19dbdb7 42675
b977bf01 42676 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42677 instead of GRUB_HOST_SIZEOF_VOID_P.
42678 * kern/dl.c: Likewise.
42679
42680 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42681 ...
42682 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42683 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42684 (GRUB_TARGET_SIZEOF_LONG): ... this.
42685 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42686 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42687 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42688 to ...
42689 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42690 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42691 (GRUB_TARGET_SIZEOF_LONG): ... this.
42692 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42693 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42694 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42695 to ...
42696 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42697 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42698 (GRUB_TARGET_SIZEOF_LONG): ... this.
42699 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42700 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42701
42702 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42703 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42704 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42705 instead of GRUB_HOST_SIZEOF_LONG.
42706 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42707 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42708 GRUB_CPU_WORDS_BIGENDIAN.
42709 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42710 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42711 grub_host_ssize_t.
42712
42713 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42714 (genmoddep_SOURCES): Likewise.
42715 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42716 (genmoddep_SOURCES): Likewise.
42717 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42718 (genmoddep_SOURCES): Likewise.
42719 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42720 Likewise.
42721 (genmoddep_SOURCES): Likewise.
42722
42723 * genmoddep.awk: New file.
42724
42725 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42726 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42727 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42728 (PModule::rule): Likewise.
42729 (Program::rule): Likewise.
42730 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42731 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42732 respectively.
42733
42734 * configure.ac: Rewritten intensively to use host and target
42735 instead of build and host, respectively.
42736
42737 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42738 (host_cpu): Removed.
42739 (target_cpu): New variable.
42740 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42741 (BUILD_CC): Removed.
42742 (BUILD_CFLAGS): Likewise.
42743 (BUILD_CPPFLAGS): Likewise.
42744 (TARGET_CC): New variable.
42745 (TARGET_CFLAGS): Likewise.
42746 (TARGET_CPPFLAGS): Likewise.
42747 (TARGET_LDFLAGS): Likewise.
42748 (AWK): Likewise.
42749 (include): Use target_cpu instead of host_cpu.
42750 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 42751
b977bf01 42752 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42753
f09771a1 427542006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42755
42756 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42757 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42758 field 'false' to 'exec_on_false'.
42759 (grub_script_create_cmdif): Renamed argument names to reflect above
42760 changes.
42761
42762 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42763
42764 * normal/script.c (grub_script_create_cmdif): Likewise.
42765
118f4fb3 427662006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42767
42768 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42769 top.
42770 (grub_hfsplus_btree_recptr): Likewise.
42771 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42772 FILEBLOCK both to pass a block number and store next block
42773 number.
42774 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42775 overflow file correctly. Specify errors appropriately, because
42776 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42777 grub_hfsplus_btree_recptr to get the pointer to a found key.
42778 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42779 is found.
42780
42781 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42782 linux.mod.
42783 (_linux_mod_SOURCES): New variable.
42784 (_linux_mod_CFLAGS): Likewise.
42785 (_linux_mod_LDFLAGS): Likewise.
42786 (linux_mod_SOURCES): Likewise.
42787 (linux_mod_CFLAGS): Likewise.
42788 (linux_mod_LDFLAGS): Likewise.
42789
42790 * DISTLIST: Added loader/i386/efi/linux.c,
42791 loader/i386/efi/linux_normal.c and
42792 include/grub/i386/efi/loader.h.
42793
42794 * loader/i386/efi/linux.c: New file.
42795 * loader/i386/efi/linux_normal.c: Likewise.
42796 * include/grub/i386/efi/loader.h: Likewise.
42797
89a7d726 427982006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42799
42800 * commands/blocklist.c: New file.
42801
42802 * DISTLIST: Added commands/blocklist.c.
42803
42804 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 42805 color for the background, and a darker color for the foreground.
89a7d726 42806 (grub_console_checkkey): Return READ_KEY.
42807 (grub_console_cls): Set the background to
42808 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42809
42810 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42811
42812 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42813 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42814
42815 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42816 prototype.
42817
42818 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42819 BG. The spec is wrong again.
42820
42821 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42822 prototype.
42823 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42824
42825 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42826 commands/blocklist.c.
42827 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 42828
89a7d726 42829 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42830 (blocklist_mod_SOURCES): New variable.
42831 (blocklist_mod_CFLAGS): Likewise.
42832 (blocklist_mod_LDFLAGS): Likewise.
42833
75c8f258 428342006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42835
42836 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42837 duplication.
42838 (lba_mode): Use %eax more intensively to reduce the code size.
42839
da2eb181 428402006-05-20 Marco Gerards <marco@gnu.org>
42841
42842 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42843
42844 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42845 for `menuentry'.
42846 (script): Accept leading newlines.
42847 (newlines): New rule to describe 0 or more newlines.
42848 (commands): Accept `command' with trailing newline. Fixed the
42849 order in which arguments were passed to `grub_script_add_cmd'.
42850 Accept commands separated by newlines.
42851 (function): Changed to accept newlines.
42852 (menuentry) Rewritten.
42853
42854 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42855 front of the list, instead of to the end.
42856
577b4050 428572006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42858
42859 * util/i386/pc/grub-install.in (bindir): New variable.
42860 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42861 Shaver <lbgwjl@gmail.com>.
42862
0d6e1189 428632006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42864
42865 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42866 grub/machine/linux.h
42867 * loader/i386/pc/linux.c: Likewise.
42868
42869 * include/grub/i386/pc/linux.h: Moved to ...
42870 * include/grub/i386/linux.h: ... here.
42871
42872 * include/grub/i386/linux.h (struct linux_kernel_params): New
42873 struct.
f19dbdb7 42874
31b86e9f 428752006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42876
42877 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42878 checking.
42879 (grub_video_vbe_blit_glyph): Likewise.
42880 (grub_video_vbe_blit_bitmap): Likewise.
42881 (grub_video_vbe_blit_render_target): Likewise.
42882
83b984de 428832006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42884
42885 * configure.ac (--with-platform): Properly quote the square
42886 brackets.
42887
5f0413bd 428882006-05-08 Marco Gerards <marco@gnu.org>
42889
42890 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42891 this...
42892 (kernel_elf_HEADERS): ...to this. Updated all users.
42893 (grubof_symlist.c): Renamed from this...
42894 (kernel_elf_symlist.c): ...to this. Updated all users.
42895 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42896 (grubof_SOURCES): Renamed from this...
42897 (kernel_elf_SOURCES): ...to this.
42898 (grubof_HEADERS): Renamed from this...
42899 (kernel_elf_HEADERS): ...to this.
42900 (grubof_CFLAGS): Renamed from this...
42901 (kernel_elf_CFLAGS): ...to this.
42902 (grubof_ASFLAGS): Renamed from this...
42903 (kernel_elf_ASFLAGS): ...to this.
42904 (grubof_LDFLAGS): Renamed from this...
42905 (kernel_elf_LDFLAGS): ...to this.
42906
42907 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42908 this...
42909 (kernel_elf_HEADERS): ...to this. Updated all users.
42910 (grubof_symlist.c): Renamed from this...
42911 (kernel_elf_symlist.c): ...to this. Updated all users.
42912 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42913 (grubof_SOURCES): Renamed from this...
42914 (kernel_elf_SOURCES): ...to this.
42915 (grubof_HEADERS): Renamed from this...
42916 (kernel_elf_HEADERS): ...to this.
42917 (grubof_CFLAGS): Renamed from this...
42918 (kernel_elf_CFLAGS): ...to this.
42919 (grubof_ASFLAGS): Renamed from this...
42920 (kernel_elf_ASFLAGS): ...to this.
42921 (grubof_LDFLAGS): Renamed from this...
42922 (kernel_elf_LDFLAGS): ...to this.
42923
42924 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42925 `kernel.elf' instead of `grubof'.
42926
05568c2e 429272006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42928
42929 Add --with-platform to configure. Use pkglibdir instead of
42930 pkgdatadir. This is reported by Roger Leigh.
42931
42932 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42933 (host_vendor): Likewise.
42934 (host_os): Likewise.
42935 (pkgdatadir): Likewise.
42936 (platform): New variable.
42937 (pkglibdir): Likewise.
42938 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 42939
05568c2e 42940 * util/i386/pc/grub-install.in (datadir): Removed.
42941 (host_vendor): Likewise.
42942 (host_os): Likewise.
42943 (pkgdatadir): Likewise.
42944 (platform): New variable.
42945 (pkglibdir): Likewise.
42946 Use PKGLIBDIR instead of PKGDATADIR.
42947
42948 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42949 instead of GRUB_DATADIR.
42950 (main): Likewise.
42951 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42952 (main): Likewise.
42953 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42954 (main): Likewise.
42955
42956 * configure.ac (--with-platform): New option.
42957 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42958
42959 * Makefile.in: Include a makefile based on PLATFORM instead of
42960 HOST_VENDOR.
42961 (pkgdatadir): Not appended by the machine type.
42962 (pkglibdir): Appended by the machine type.
42963 (host_vendor): Removed.
42964 (platform): New variable.
42965 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42966 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42967 (uninstall): Likewise.
42968
4e93851c 429692006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42970
42971 Use the environment context in the menu. Remove the commands
42972 "default" and "timeout", and use variables instead.
f19dbdb7 42973
4e93851c 42974 * normal/menu.c: Include grub/env.h.
42975 (print_entry): Cast TITLE to silence gcc.
42976 (get_timeout): New function.
42977 (set_timeout): Likewise.
42978 (get_entry_number): Likewise.
42979 (run_menu): Use a default entry, a fallback entry and a timeout
42980 in the environment variables "default", "fallback" and
42981 "timeout". Also, tweak the default entry if it is not within the
42982 current menu entries.
42983 (grub_menu_run): Use a fallback entry in the environment variable
42984 "fallback".
42985
42986 * normal/main.c (read_config_file): Do not initialize
42987 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42988 NEWMENU->TIMEOUT.
42989 (grub_normal_execute): Use a data slot to store the menu.
42990
42991 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42992 fallback_entry and timeout.
42993 (struct grub_menu_list): Removed.
42994 (grub_menu_list_t): Likewise.
42995 (struct grub_context): Likewise.
42996 (grub_context_t): Likewise.
42997 (grub_context_get): Likewise.
42998 (grub_context_get_current_menu): Likewise.
42999 (grub_context_push_menu): Likewise.
43000 (grub_context_pop_menu): Likewise.
43001 (grub_default_init): Likewise.
43002 (grub_default_fini): Likewise.
43003 (grub_timeout_init): Likewise.
43004 (grub_timeout_fini): Likewise.
43005
43006 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
43007 and timeout.mod.
43008 (normal_mod_SOURCES): Removed normal/context.c.
43009
43010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
43011 commands/default.c, commands/timeout.c and normal/context.c.
43012 (normal_mod_SOURCES): Removed normal/context.c.
43013
43014 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
43015 commands/timeout.c and normal/context.c.
43016 (normal_mod_SOURCES): Removed normal/context.c.
43017
43018 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
43019 commands/default.c, commands/timeout.c and normal/context.c.
43020 (normal_mod_SOURCES): Removed normal/context.c.
43021
43022 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
43023 timeout.mod.
43024 (default_mod_SOURCES): Removed.
43025 (default_mod_CFLAGS): Likewise.
43026 (default_mod_LDFLAGS): Likewise.
43027 (timeout_mod_SOURCES): Removed.
43028 (timeout_mod_CFLAGS): Likewise.
43029 (timeout_mod_LDFLAGS): Likewise.
43030
43031 * DISTLIST: Removed commands/default.c, commands/timeout.c and
43032 normal/context.c.
43033
43034 * commands/default.c: Removed.
43035 * commands/timeout.c: Likewise.
43036 * normal/context.c: Likewise.
43037
1eb9cc1d 430382006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
43039
43040 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
43041
385bd9c1 430422006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
43043
43044 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
43045 "next" to "prev" for readability.
43046 (struct grub_env_sorted_var): New struct.
43047 (grub_env_context): Renamed to ...
43048 (initial_context): ... this.
43049 (grub_env_var_context): Renamed to ...
43050 (current_context): ... this.
43051 (grub_env_find): Look only at CURRENT_CONTEXT.
43052 (grub_env_context_open): Rewritten to copy exported variables from
43053 previous context.
43054 (grub_env_context_close): Rewritten according to the new
43055 scheme. Also, add an assertion to prevent the initial context from
43056 removed.
43057 (grub_env_insert): Removed the code for the sorted list.
43058 (grub_env_remove): Likewise.
43059 (grub_env_export): Simply mark the variable with
43060 GRUB_ENV_VAR_GLOBAL.
43061 (grub_env_set): A cosmetic change for naming consistency.
43062 (grub_env_get): Likewise.
43063 (grub_env_unset): Likewise.
43064 (grub_env_iterate): Rewritten to sort variables within this
43065 function.
43066 (grub_register_variable_hook): Fixed for naming consistency. Call
43067 grub_env_find again, only if NAME is not found at the first time.
43068 (mangle_data_slot_name): New function.
43069 (grub_env_set_data_slot): Likewise.
43070 (grub_env_get_data_slot): Likewise.
43071 (grub_env_unset_data_slot): Likewise.
43072
43073 * include/grub/env.h (grub_env_var_type): New enum.
43074 (GRUB_ENV_VAR_LOCAL): New constant.
43075 (GRUB_ENV_VAR_GLOBAL): Likewise.
43076 (GRUB_ENV_VAR_DATA): Likewise.
43077 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
43078 "type".
43079 (grub_env_set): Replace VAR with NAME for consistency.
43080 (grub_register_variable_hook): Likewise.
43081 (grub_env_export): Specify the name of the argument.
43082 (grub_env_set_data_slot): New prototype.
43083 (grub_env_get_data_slot): Likewise.
43084 (grub_env_unset_data_slot): Likewise.
43085
7f362539 430862006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
43087
43088 Extend the loader so that GRUB can accept a loader which comes
43089 back to GRUB when a loaded image exits. Also, this change adds
43090 support for a chainloader on EFI.
f19dbdb7 43091
7f362539 43092 * term/efi/console.c: Include grub/misc.h.
43093 (grub_console_checkkey): Display a scan code on the top for
43094 debugging. This will be removed once the EFI port gets stable.
43095 Correct the scan code mapping.
43096
43097 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
43098 allocate memory from larger regions, in order to reduce the number
43099 of allocated regions. Otherwise, the MacOSX loader panics.
43100 (filter_memory_map): Avoid less than 1MB for compatibility with
43101 other loaders.
43102 (add_memory_regions): Allocate from the tail of a region, if
43103 possible, to avoid allocating a region near to 1MB, for the MacOSX
43104 loader.
43105
43106 * kern/efi/init.c (grub_efi_set_prefix): Specify
43107 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
43108
43109 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
43110 argument IMAGE_HANDLE and specify it to get a loaded image.
43111 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
43112 grub_efi_get_loaded_image.
fe6b695a 43113 (grub_efi_get_filename): Divide the length by the size of
7f362539 43114 grub_efi_char16_t.
43115 (grub_efi_get_device_path): New function.
43116 (grub_efi_print_device_path): Print End Device Path nodes. Divide
43117 the length by the size of grub_efi_char16_t for a file path device
43118 path node.
43119
43120 * kern/loader.c (grub_loader_noreturn): New variable.
43121 (grub_loader_set): Accept a new argument NORETURN. Set
43122 GRUB_LOADER_NORETURN to NORETURN.
43123 All callers changed.
43124 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
43125 grub_machine_fini.
43126
43127 * include/grub/efi/efi.h (grub_efi_get_device_path): New
43128 prototype.
43129 (grub_efi_get_loaded_image): Take an argument to specify an image
43130 handle.
43131
43132 * include/grub/loader.h (grub_loader_set): Added one more argument
43133 NORETURN.
43134
43135 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
43136 instead of grub_efi_open_protocol.
43137 (grub_efidisk_get_device_name): Likewise.
43138 (grub_efidisk_close): Print a newline.
43139 (grub_efidisk_get_device_handle): Fixed to use
43140 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
43141 GRUB_EFI_DEVICE_PATH_TYPE.
43142
43143 * disk/efi/efidisk.c (device_path_guid): Moved to ...
43144 * kern/efi/efi.c (device_path_guid): ... here.
43145
43146 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
43147 chain.mod.
43148 (kernel_mod_HEADERS): Added efi/disk.h.
43149 (_chain_mod_SOURCES): New variable.
43150 (_chain_mod_CFLAGS): Likewise.
43151 (_chain_mod_LDFLAGS): Likewise.
43152 (chain_mod_SOURCES): Likewise.
43153 (chain_mod_CFLAGS): Likewise.
43154 (chain_mod_LDFLAGS): Likewise.
43155
43156 * DISTLIST: Added include/grub/efi/chainloader.h,
43157 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
43158
43159 * include/grub/efi/chainloader.h: New file.
43160 * loader/efi/chainloader.c: Likewise.
43161 * loader/efi/chainloader_normal.c: Likewise.
43162
c0111d6e 431632006-04-30 Marco Gerards <marco@gnu.org>
43164
43165 * commands/configfile.c (grub_cmd_source): New function.
43166 (GRUB_MOD_INIT): Register the commands `source' and `.'.
43167 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
43168
df5341da 431692006-04-30 Marco Gerards <marco@gnu.org>
43170
43171 * normal/execute.c (grub_script_execute_cmd): Change the return
43172 type to `grub_err_t'. Correctly return the error.
43173 (grub_script_execute_cmdline): In case a command line is not a
43174 command or a function, try to interpret it as an assignment.
43175
f85934bd 431762006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
43177
43178 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
43179 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
43180 skip a node whose name is obviously invalid as UTF-16,
43181 i.e. contains a NUL character. Stop the iteration when the last
43182 directory entry is found. Instead of using the return value of
43183 grub_hfsplus_btree_iterate_node, store the value in RET and use
43184 it, because the iterator can be stopped by the last directory
43185 entry.
43186
8f8a2cf8 431872006-04-30 Marco Gerards <marco@gnu.org>
43188
43189 * include/grub/env.h (grub_env_export): New prototype. Reported
43190 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
43191
a27e84ce 431922006-04-30 Marco Gerards <marco@gnu.org>
43193
43194 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
43195 size of the extents in a catalog file record.
43196
eaef0553 431972006-04-29 Marco Gerards <marco@gnu.org>
43198
43199 * commands/configfile.c (grub_cmd_configfile): Execute the
43200 configfile within its own context.
43201
43202 * include/grub/env.h (grub_env_context_open): New prototype.
43203 (grub_env_context_close): Likewise.
43204
43205 * kern/env.c (grub_env): Removed.
43206 (grub_env_sorted): Likewise.
43207 (grub_env_context): New variable.
43208 (grub_env_var_context): Likewise.
43209 (grub_env_find): Search both the active context and the global
43210 context.
43211 (grub_env_context_open): New function.
43212 (grub_env_context_close): Likewise.
43213 (grub_env_insert): Likewise.
43214 (grub_env_remove): Likewise.
43215 (grub_env_export): Likewise.
43216 (grub_env_set): Changed to use helper functions to avoid code
43217 duplication.
43218 (grub_env_iterate): Rewritten so both the current context and the
43219 global context are being used.
43220
43221 * normal/command.c (export_command): New function.
43222 (grub_command_init): Register the `export' function.
43223
7b455f4d 432242006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
43225
43226 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
43227 explicitly to suppress gcc's warnings.
43228 * fs/fat.c (grub_fat_find_dir): Likewise.
43229 (grub_fat_label): Likewise.
43230 * fs/xfs.c (grub_xfs_read_inode): Likewise.
43231 (grub_xfs_mount): Likewise.
43232 (grub_xfs_label): Likewise.
43233 * fs/affs.c (grub_affs_mount): Likewise.
43234 (grub_affs_label): Likewise.
43235 (grub_affs_iterate_dir): Likewise.
43236 * fs/sfs.c (grub_sfs_mount): Likewise.
43237 (grub_sfs_iterate_dir): Likewise.
43238 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
43239 * fs/hfs.c (grub_hfs_mount): Likewise.
43240 (grub_hfs_cmp_catkeys): Likewise.
43241 (grub_hfs_find_dir): Likewise.
43242 (grub_hfs_dir): Likewise.
43243 (grub_hfs_label): Likewise.
43244 * fs/jfs.c (grub_jfs_mount): Likewise.
43245 (grub_jfs_opendir): Likewise.
43246 (grub_jfs_getent): Likewise.
43247 (grub_jfs_lookup_symlink): Likewise.
43248 (grub_jfs_label): Likewise.
43249 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
43250 (grub_hfsplus_iterate_dir): Likewise.
43251 (grub_hfsplus_btree_iterate_node): Made static.
43252
43253 * util/grub-emu.c (prefix): New variable.
43254 (grub_machine_set_prefix): New function.
43255 (main): Do not set the environment variable "prefix" here. Only
43256 set PREFIX, which is used later by grub_machine_set_prefix.
43257
43258 * include/grub/video.h: Do not include grub/symbol.h.
43259 (grub_video_register): Not exported. This symbol is not defined in
43260 the kernel.
43261 (grub_video_unregister): Likewise.
43262 (grub_video_iterate): Likewise.
43263 (grub_video_setup): Likewise.
43264 (grub_video_restore): Likewise.
43265 (grub_video_get_info): Likewise.
43266 (grub_video_get_blit_format): Likewise.
43267 (grub_video_set_palette): Likewise.
43268 (grub_video_get_palette): Likewise.
43269 (grub_video_set_viewport): Likewise.
43270 (grub_video_get_viewport): Likewise.
43271 (grub_video_map_color): Likewise.
43272 (grub_video_map_rgb): Likewise.
43273 (grub_video_map_rgba): Likewise.
43274 (grub_video_fill_rect): Likewise.
43275 (grub_video_blit_glyph): Likewise.
43276 (grub_video_blit_bitmap): Likewise.
43277 (grub_video_blit_render_target): Likewise.
43278 (grub_video_scroll): Likewise.
43279 (grub_video_swap_buffers): Likewise.
43280 (grub_video_create_render_target): Likewise.
43281 (grub_video_delete_render_target): Likewise.
43282 (grub_video_set_active_render_target): Likewise.
43283
43284 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43285 Undefined.
43286 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43287
43288 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
43289 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43290 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43291 instead of $(srcdir)/genkernsyms.sh.
43292
43293 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43294 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43295 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43296 instead of $(srcdir)/genkernsyms.sh.
43297
43298 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
43299 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43300 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43301 instead of $(srcdir)/genkernsyms.sh.
43302
43303 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43304 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43305 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43306 instead of $(srcdir)/genkernsyms.sh.
43307
43308 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43309 genkernsyms.sh.
43310
43311 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43312 genkernsyms.sh.
43313 (gensymlist.sh): New target.
43314 (genkernsyms.sh): Likewise.
43315
43316 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43317 genkernsyms.sh.in and gensymlist.sh.in.
43318
43319 * genkernsyms.sh: Removed.
43320 * gensymlist.sh: Likewise.
f19dbdb7 43321
7b455f4d 43322 * genkernsyms.sh.in: New file.
43323 * gensymlist.sh.in: Likewise.
43324
1885bb27 433252006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43326
43327 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43328 clobber "prefix", since we may have already set it manually.
43329
71538dff 433302006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43331
43332 * kern/misc.c (abort): New alias for grub_abort.
43333
2965c7cc 433342006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43335
43336 A new machine-specific function "grub_machine_set_prefix" is
43337 defined. This is called after loading modules, so that a prefix
43338 initialization can use modules. Also, this change adds an
43339 intensive debugging feature for the memory manager via the
43340 configure option "--enable-mm-debug".
f19dbdb7 43341
2965c7cc 43342 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43343 PART.LEN.
43344
43345 * kern/sparc64/ieee1275/init.c (abort): Removed.
43346 (grub_stop): Likewise.
43347 (grub_exit): New function.
43348 (grub_set_prefix): Renamed to ...
43349 (grub_machine_set_prefix): ... this.
43350 (grub_machine_init): Do not call grub_set_prefix.
43351
43352 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43353 (grub_machine_set_prefix): ... this.
43354 (grub_machine_init): Do not call grub_set_prefix.
43355
43356 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43357 (grub_machine_init): Do not set the prefix here.
43358
43359 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43360
43361 * kern/efi/init.c: Include grub/mm.h.
43362 (grub_efi_set_prefix): New function.
43363
43364 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43365 (grub_efi_get_filename): New function.
43366 (grub_print_device_path): Renamed to ...
43367 (grub_efi_print_device_path): ... this.
43368
43369 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43370 [MM_DEBUG] (grub_realloc): Likewise.
43371 [MM_DEBUG] (grub_free): Likewise.
43372 [MM_DEBUG] (grub_memalign): Likewise.
43373 [MM_DEBUG] (grub_mm_debug): New variable.
43374 [MM_DEBUG] (grub_debug_malloc): New function.
43375 [MM_DEBUG] (grub_debug_free): New function.
43376 [MM_DEBUG] (grub_debug_realloc): New function.
43377 [MM_DEBUG] (grub_debug_memalign): New function.
43378
43379 * kern/misc.c (grub_abort): Print a newline to distinguish
43380 the message.
43381
43382 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43383 grub_set_root_dev after loading modules. This is necessary when
43384 setting a prefix depends on modules.
43385
43386 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43387 (grub_efi_print_device_path): ... this.
43388 (grub_efi_get_filename): New prototype.
43389 (grub_efi_set_prefix): Likewise.
43390
43391 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43392 and grub/disk.h.
43393 (grub_efidisk_get_device_handle): New prototype.
43394 (grub_efidisk_get_device_name): Likewise.
43395
43396 * include/grub/mm.h: Include config.h.
43397 (MM_DEBUG): Removed.
43398 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43399 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43400 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43401 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43402 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43403 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43404 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43405 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43406 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43407
43408 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43409
43410 * disk/efi/efidisk.c: Include grub/partition.h.
43411 (iterate_child_devices): New function.
43412 (add_device): First, compare only last device path nodes, so that
43413 devices are sorted by the types.
43414 (grub_efidisk_get_device_handle): New function.
43415 (grub_efidisk_get_device_name): Likewise.
43416
43417 * configure.ac (--enable-mm-debug): New option to enable the
43418 memory manager debugging feature. This makes the binary much
43419 bigger, so is disabled by default.
43420
9cacaa17 434212006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43422
43423 Use grub_abort instead of grub_stop, and grub_exit must be
43424 define in each architecture now. Also, this change adds support
43425 for EFI disks.
f19dbdb7 43426
9cacaa17 43427 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43428 (grub_getkey): New function.
43429 (grub_term_get_current): Likewise.
43430
43431 * util/i386/pc/grub-setup.c: Include grub/term.h.
43432 (grub_getkey): New function.
43433 (grub_term_get_current): Likewise.
43434
43435 * util/misc.c (grub_stop): Renamed to ...
43436 (grub_exit): ... this.
43437
43438 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43439 (grub_exit): ... this.
43440 (grub_machine_init): Use grub_abort instead of abort.
43441 (grub_stop): Removed.
43442
43443 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43444 abort.
43445
43446 * kern/i386/pc/startup.S (grub_exit): New function.
43447 (cold_reboot): New label.
43448
43449 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43450 (grub_efi_init): Call grub_efidisk_init.
43451 (grub_efi_fini): Call grub_efidisk_fini.
43452
43453 * kern/efi/efi.c: Include grub/mm.h.
43454 (grub_efi_console_control_guid): Renamed to ...
43455 (console_control_guid): ... this.
43456 (grub_efi_loaded_image_guid): Renamed to ...
43457 (loaded_image_guid): ... this.
43458 (grub_efi_locate_handle): New function.
43459 (grub_efi_open_protocol): Likewise.
43460 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43461 GRUB_EFI_CONSOLE_CONTROL_GUID.
43462 (grub_efi_exit): Removed.
43463 (grub_stop): Likewise.
43464 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43465 (grub_exit): New function.
43466 (grub_print_device_path): Likewise.
43467
43468 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43469 (grub_enter_rescue_mode): Register "exit".
43470
43471 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43472 (grub_abort): New function.
43473
43474 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43475
43476 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43477
43478 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43479
43480 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43481 (grub_print_device_path): New prototype.
43482 (grub_efi_locate_handle): Likewise.
43483 (grub_efi_open_protocol): Likewise.
43484
43485 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43486 * disk/efi/efidisk.c: Likewise.
43487
43488 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43489
43490 * include/grub/efi/console_control.h
43491 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43492
43493 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43494 last 8 bytes as an array.
43495 (GRUB_EFI_DISK_IO_GUID): New macro.
43496 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43497 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43498 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43499 grub_uint8_t.
43500 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43501 (struct grub_efi_device_path): Rename the member "sub_type" to
43502 "subtype".
43503 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43504 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43505 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43506 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43507 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43508 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43509 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43510 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43511 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43512 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43513 (struct grub_efi_pci_device_path): New structure.
43514 (grub_efi_pci_device_path_t): New type.
43515 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43516 (struct grub_efi_pccard_device_path): New structure.
43517 (grub_efi_pccard_device_path_t): New type.
43518 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43519 (struct grub_efi_memory_mapped_device_path): New structure.
43520 (grub_efi_memory_mapped_device_path_t): New type.
43521 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43522 (struct grub_efi_vendor_device_path): New structure.
43523 (grub_efi_vendor_device_path_t): New type.
43524 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43525 (struct grub_efi_controller_device_path): New structure.
43526 (grub_efi_controller_device_path_t): New type.
43527 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43528 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43529 (struct grub_efi_acpi_device_path): New structure.
43530 (grub_efi_acpi_device_path_t): New type.
43531 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43532 (struct grub_efi_expanded_acpi_device_path): New structure.
43533 (grub_efi_expanded_acpi_device_path_t): New type.
43534 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43535 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43536 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43537 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43538 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43539 (struct grub_efi_atapi_device_path): New structure.
43540 (grub_efi_atapi_device_path_t): New type.
43541 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43542 (struct grub_efi_fibre_channel_device_path): New structure.
43543 (grub_efi_fibre_channel_device_path_t): New type.
43544 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43545 (struct grub_efi_1394_device_path): New structure.
43546 (grub_efi_1394_device_path_t): New type.
43547 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43548 (struct grub_efi_usb_device_path): New structure.
43549 (grub_efi_usb_device_path_t): New type.
43550 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43551 (struct grub_efi_usb_class_device_path): New structure.
43552 (grub_efi_usb_class_device_path_t): New type.
43553 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43554 (struct grub_efi_i2o_device_path): New structure.
43555 (grub_efi_i2o_device_path_t): New type.
43556 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43557 (struct grub_efi_mac_address_device_path): New structure.
43558 (grub_efi_mac_address_device_path_t): New type.
43559 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43560 (struct grub_efi_ipv4_device_path): New structure.
43561 (grub_efi_ipv4_device_path_t): New type.
43562 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43563 (struct grub_efi_ipv6_device_path): New structure.
43564 (grub_efi_ipv6_device_path_t): New type.
43565 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43566 (struct grub_efi_infiniband_device_path): New structure.
43567 (grub_efi_infiniband_device_path_t): New type.
43568 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43569 (struct grub_efi_uart_device_path): New structure.
43570 (grub_efi_uart_device_path_t): New type.
43571 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43572 (struct grub_efi_vendor_messaging_device_path): New structure.
43573 (grub_efi_vendor_messaging_device_path_t): New type.
43574 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43575 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43576 (struct grub_efi_hard_drive_device_path): New structure.
43577 (grub_efi_hard_drive_device_path_t): New type.
43578 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43579 (struct grub_efi_cdrom_device_path): New structure.
43580 (grub_efi_cdrom_device_path_t): New type.
43581 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43582 (struct grub_efi_vendor_media_device_path): New structure.
43583 (grub_efi_vendor_media_device_path_t): New type.
43584 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43585 (struct grub_efi_file_path_device_path): New structure.
43586 (grub_efi_file_path_device_path_t): New type.
43587 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43588 (struct grub_efi_protocol_device_path): New structure.
43589 (grub_efi_protocol_device_path_t): New type.
43590 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43591 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43592 (struct grub_efi_bios_device_path): New structure.
43593 (grub_efi_bios_device_path_t): New type.
43594 (struct grub_efi_disk_io): New structure.
43595 (grub_efi_disk_io_t): New type.
43596 (struct grub_efi_block_io_media): New structure.
43597 (grub_efi_block_io_media_t): New type.
43598 (struct grub_efi_block_io): New structure.
43599 (grub_efi_block_io_t): New type.
43600
43601 * include/grub/misc.h (grub_stop): Removed.
43602 (grub_exit): New prototype.
43603 (grub_abort): Likewise.
43604
43605 * include/grub/disk.h (enum grub_disk_dev_id): Added
43606 GRUB_DISK_DEVICE_EFIDISK_ID.
43607
43608 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43609 disk/efi/efidisk.c.
43610 (kernel_syms.lst): Remove the target if an error occurs.
43611
49986a9f 436122006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43613
43614 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43615 as it was simply too buggy.
43616
970d3b8a 436172006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43618
43619 * kern/misc.c (grub_lltoa): New function.
43620 (grub_vsprintf): Added support for the long long suffix,
43621 i.e. "ll".
43622
ff04ec24 436232006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43624
43625 * Makefile.in (LDFLAGS): Add variable.
43626 (LD): Remove variable.
43627 * configure.ac: Add -m32 to LDFLAGS.
43628 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43629 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43630 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43631 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43632 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43633 variables.
43634 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43635 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43636 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43637
37e5e1a4 436382006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43639
43640 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43641 length for unknown glyph.
43642
c352d8dd 436432006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43644
2eab1c0d 43645 Add support for pre-loaded modules into the EFI port.
f19dbdb7 43646
2eab1c0d 43647 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43648 completely. Accept one more argument DIR. The caller has changed.
43649
43650 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43651
43652 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43653 (grub_efi_loaded_image_guid): New variable.
43654 (grub_efi_get_loaded_image): New function.
43655 (grub_arch_modules_addr): Likewise.
43656
43657 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43658 prototype.
43659
43660 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43661 (struct grub_efi_loaded_image): New structure.
43662 (grub_efi_loaded_image_t): New type.
43663
436642006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43665
c352d8dd 43666 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43667 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43668 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43669
6d01d6b4 436702006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43671
43672 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43673
976a4ea0 436742006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43675
43676 * DISTLIST: Added include/grub/efi/console.h,
43677 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43678 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43679
43680 * include/grub/efi/console.h: New file.
43681 * include/grub/efi/time.h: Likewise.
43682 * include/grub/i386/efi/kernel.h: Likewise.
43683 * kern/efi/init.c: Likewise.
43684 * kern/efi/mm.c: Likewise.
43685 * term/efi/console.c: Likewise.
f19dbdb7 43686
976a4ea0 43687 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43688 (grub_stop): Removed.
43689 (grub_get_rtc): Likewise.
43690 (grub_machine_init): Simply call grub_efi_init.
43691 (grub_machine_fini): Call grub_efi_fini.
43692
43693 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43694 (grub_efi_output_string): Removed.
43695 (grub_efi_stall): New function.
43696 (grub_stop): Likewise.
43697 (grub_get_rtc): Likewise.
43698
43699 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43700 (grub_efi_stall): New prototype.
43701 (grub_efi_allocate_pages): Likewise.
43702 (grub_efi_free_pages): Likewise.
43703 (grub_efi_get_memory_map): Likewise.
43704 (grub_efi_mm_init): Likewise.
43705 (grub_efi_mm_fini): Likewise.
43706 (grub_efi_init): Likewise.
43707 (grub_efi_fini): Likewise.
43708
43709 * include/grub/i386/efi/time.h: Do not include
43710 grub/symbol.h. Include grub/efi/time.h.
43711 (GRUB_TICKS_PER_SECOND): Removed.
43712 (grub_get_rtc): Likewise.
43713
43714 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43715 Added padding. The EFI spec is buggy.
43716 (GRUB_EFI_BLACK): New macro.
43717 (GRUB_EFI_BLUE): Likewise.
43718 (GRUB_EFI_GREEN): Likewise.
43719 (GRUB_EFI_CYAN): Likewise.
43720 (GRUB_EFI_RED): Likewise.
43721 (GRUB_EFI_MAGENTA): Likewise.
43722 (GRUB_EFI_BROWN): Likewise.
43723 (GRUB_EFI_LIGHTGRAY): Likewise.
43724 (GRUB_EFI_BRIGHT): Likewise.
43725 (GRUB_EFI_DARKGRAY): Likewise.
43726 (GRUB_EFI_LIGHTBLUE): Likewise.
43727 (GRUB_EFI_LIGHTGREEN): Likewise.
43728 (GRUB_EFI_LIGHTCYAN): Likewise.
43729 (GRUB_EFI_LIGHTRED): Likewise.
43730 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43731 (GRUB_EFI_YELLOW): Likewise.
43732 (GRUB_EFI_WHITE): Likewise.
43733 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43734 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43735 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43736 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43737 (GRUB_EFI_BACKGROUND_RED): Likewise.
43738 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43739 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43740 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43741 (GRUB_EFI_TEXT_ATTR): Likewise.
43742
43743 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43744 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43745 (kernel_mod_HEADERS): Added efi/time.h.
43746
83709125 437472006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43748
43749 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43750 include/grub/efi/api.h, include/grub/efi/console_control.h,
43751 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43752 include/grub/i386/efi/time.h, kern/efi/efi.c,
43753 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43754 and util/i386/efi/grub-mkimage.c.
43755
43756 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43757
43758 * genmk.rb (PModule#rule): Do not export symbols if
43759 #{prefix}_EXPORTS is set to "no".
43760
43761 * conf/i386-efi.mk: New file.
43762 * conf/i386-efi.rmk: Likewise.
43763 * include/grub/efi/api.h: Likewise.
43764 * include/grub/efi/console_control.h: Likewise.
43765 * include/grub/efi/efi.h: Likewise.
43766 * include/grub/efi/pe32.h: Likewise.
43767 * include/grub/i386/efi/time.h: Likewise.
43768 * kern/efi/efi.c: Likewise.
43769 * kern/i386/efi/init.c: Likewise.
43770 * kern/i386/efi/startup.S: Likewise.
43771 * util/i386/efi/grub-mkimage.c: Likewise.
43772
437732006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 43774
43775 * include/grub/script.h: Include <grub/parser.h> and
43776 "grub_script.tab.h".
43777 (struct grub_lexer_param): New struct.
43778 (struct grub_parser_param): Likewise.
43779 (grub_script_create_arglist): Pass the state in an argument.
43780 (grub_script_add_arglist): Likewise.
43781 (grub_script_create_cmdline): Likewise.
43782 (grub_script_create_cmdblock): Likewise.
43783 (grub_script_create_cmdif): Likewise.
43784 (grub_script_create_cmdmenu): Likewise.
43785 (grub_script_add_cmd): Likewise.
43786 (grub_script_arg_add): Likewise.
43787 (grub_script_lexer_ref): Likewise.
43788 (grub_script_lexer_deref): Likewise.
43789 (grub_script_lexer_record_start): Likewise.
43790 (grub_script_lexer_record_stop): Likewise.
43791 (grub_script_mem_record): Likewise.
43792 (grub_script_mem_record_stop): Likewise.
43793 (grub_script_malloc): Likewise.
43794 (grub_script_yylex): Likewise.
43795 (grub_script_yyparse): Likewise.
43796 (grub_script_yyerror): Likewise.
43797 (grub_script_yylex): Likewise.
43798 (grub_script_lexer_init): Return the state.
43799
43800 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43801 (grub_script_lexer_done): Likewise.
43802 (grub_script_lexer_getline): Likewise.
43803 (grub_script_lexer_refs): Likewise.
43804 (script): Likewise.
43805 (newscript): Likewise.
43806 (record): Likewise.
43807 (recording): Likewise.
43808 (recordpos): Likewise.
43809 (recordlen): Likewise.
43810 (grub_script_lexer_init): Return the state instead of setting
43811 global variables.
43812 (grub_script_lexer_ref): Use the newly added argument for state
43813 instead of globals.
43814 (grub_script_lexer_deref): Likewise.
43815 (grub_script_lexer_record_start): Likewise.
43816 (grub_script_lexer_record_stop): Likewise.
43817 (recordchar): Likewise.
43818 (nextchar): Likewise.
43819 (grub_script_yylex2): Likewise.
43820 (grub_script_yylex): Likewise.
43821 (grub_script_yyerror): Likewise.
43822
43823 * normal/parser.y (func_mem): Removed variable.
43824 (menu_entry): Likewise.
43825 (err): Likewise.
43826 (%lex-param): New parser option.
43827 (%parse-param): Likewise.
43828 (script): Always return the AST.
43829 (argument): Pass the state around.
43830 (arguments): Likewise.
43831 (grubcmd): Likewise.
43832 (commands): Likewise.
43833 (function): Likewise.
43834 (menuentry): Likewise.
43835 (if_statement): Likewise.
43836 (if): Likewise.
43837
43838 * normal/script.c (grub_script_memused): Removed variable.
43839 (grub_script_parsed): Likewise.
43840 (grub_script_malloc): Added a state argument. Use that instead of
43841 global variables.
43842 (grub_script_mem_record): Likewise.
43843 (grub_script_mem_record_stop): Likewise.
43844 (grub_script_arg_add): Likewise.
43845 (grub_script_add_arglist): Likewise.
43846 (grub_script_create_cmdline): Likewise.
43847 (grub_script_create_cmdif): Likewise.
43848 (grub_script_create_cmdmenu): Likewise.
43849 (grub_script_add_cmd): Likewise.
43850 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 43851
e2a8c904 438522006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 43853
43854 * normal/command.c (grub_command_init): Remove the title command.
43855
43856 * normal/lexer.c (grub_script_yylex): Renamed from this...
43857 (grub_script_yylex2): ... to this.
43858 (grub_script_yylex): New function. Temporary
43859 introduced to filter some tokens.
43860 (grub_script_yyerror): Print a newline.
43861
43862 * normal/main.c (read_config_file): Output information about the
43863 lines that contain errors. Wait for a key after all lines have
43864 been processed. Don't return an empty menu.
43865
43866 * normal/parser.y (func_mem): Don't initialize.
43867 (menu_entry): Likewise.
43868 (err): New variable.
43869 (script): Don't return anything when an error was encountered.
43870 (ws, returns): Removed rules.
43871 (argument): Disabled concatenated variable support.
43872 (arguments): Remove explicit separators.
43873 (grubcmd): Likewise.
43874 (function): Likewise.
43875 (menuentry): Likewise.
43876 (if): Likewise.
43877 (commands): Likewise. Add error handling.
43878
43879 * normal/script.c (grub_script_create_cmdline): If
43880 `grub_script_parsed' is 0, assume the parser encountered an error.
43881
c9a86192 438822006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43883
43884 * configure.ac: Add support for EFI. Fix the typo
43885 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43886
70f3b243 438872006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43888
43889 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43890 foreign multibyte characters should be shown correctly.
43891
65f201ad 438922006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43893
43894 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43895 calculation.
43896 (read_config_file): Made it to close file before returning.
43897
b4b93674 438982006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43899
43900 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43901 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43902 video/i386/pc/vbefill.c.
43903
43904 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43905 video/i386/pc/vbefill.c.
43906
43907 * include/grub/video.h (grub_video_blit_format): New enum.
43908 (grub_video_mode_info): Added new member blit_format.
43909 (grub_video_get_blit_format): New function prototype.
43910
43911 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43912 function prototype.
43913 (grub_video_vbe_map_rgb): Likewise.
43914 (grub_video_vbe_unmap_color): Likewise.
43915
43916 * include/grub/i386/pc/vbeblit.h: New file.
43917
43918 * include/grub/i386/pc/vbefill.h: New file.
43919
43920 * video/video.c (grub_video_get_blit_format): New function.
43921 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43922 (grub_video_vbe_map_rgb): Likewise.
43923 (grub_video_vbe_unmap_color): Likewise.
43924
43925 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43926 optimized fills.
43927 (grub_video_vbe_blit_render_target): Changed to use more optimized
43928 blits.
43929 (grub_video_vbe_setup): Added detection for optimized settings.
43930 (grub_video_vbe_create_render_target): Likewise.
43931
43932 * video/i386/pc/vbeblit.c: New file.
43933
43934 * video/i386/pc/vbefill.c: New file.
43935
c2379b9c 439362006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43937
43938 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43939 here...
43940
43941 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43942 parsing to support both hex and dec ranges. If filename was missing
43943 show usage information.
43944
bd0d7896 439452006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43946
43947 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43948 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43949
43950 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43951 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43952 (video_mod_SOURCES): Added.
43953 (video_mod_CFLAGS): Likewise.
43954 (video_mod_LDFLAGS): Likewise.
43955 (gfxterm_mod_SOURCES): Likewise.
43956 (gfxterm_mod_CFLAGS): Likewise.
43957 (gfxterm_mod_LDFLAGS): Likewise.
43958 (videotest_mod_SOURCES): Likewise.
43959 (videotest_mod_CFLAGS): Likewise.
43960 (videotest_mod_LDFLAGS): Likewise.
43961 (vesafb_mod_SOURCES): Removed.
43962 (vesafb_mod_CFLAGS): Likewise.
43963 (vesafb_mod_LDFLAGS): Likewise.
43964 (vga_mod_SOURCES): Likewise.
43965 (vga_mod_CFLAGS): Likewise.
43966 (vga_mod_LDFLAGS): Likewise.
43967
43968 * commands/videotest.c: New file.
43969
43970 * font/manager.c (fill_with_default_glyph): Modified to use
43971 grub_font_glyph.
43972 (grub_font_get_glyph): Likewise.
43973 (fontmanager): Renamed from this...
43974 (font_manager): ... to this.
43975
43976 * include/grub/font.h (grub_font_glyph): Added new structure.
43977 (grub_font_get_glyph): Modified to use grub_font_glyph.
43978
43979 * include/grub/misc.h (grub_abs): Added as inline function.
43980
43981 * include/grub/video.h: New file.
43982
43983 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43984 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43985 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43986 (grub_vbe_get_controller_info): Renamed from this...
43987 (grub_vbe_bios_get_controller_info): ... to this.
43988 (grub_vbe_get_mode_info): Renamed from this...
43989 (grub_vbe_bios_get_mode_info): ... to this.
43990 (grub_vbe_set_mode): Renamed from this...
43991 (grub_vbe_bios_set_mode): ... to this.
43992 (grub_vbe_get_mode): Renamed from this...
43993 (grub_vbe_bios_get_mode): ... to this.
43994 (grub_vbe_set_memory_window): Renamed from this...
43995 (grub_vbe_bios_set_memory_window): ... to this.
43996 (grub_vbe_get_memory_window): Renamed from this...
43997 (grub_vbe_bios_get_memory_window): ... to this.
43998 (grub_vbe_set_scanline_length): Renamed from this...
43999 (grub_vbe_set_scanline_length): ... to this.
44000 (grub_vbe_get_scanline_length): Renamed from this...
44001 (grub_vbe_bios_get_scanline_length): ... to this.
44002 (grub_vbe_set_display_start): Renamed from this...
44003 (grub_vbe_bios_set_display_start): ... to this.
44004 (grub_vbe_get_display_start): Renamed from this...
44005 (grub_vbe_bios_get_display_start): ... to this.
44006 (grub_vbe_set_palette_data): Renamed from this...
44007 (grub_vbe_bios_set_palette_data): ... to this.
44008 (grub_vbe_set_pixel_rgb): Removed.
44009 (grub_vbe_set_pixel_index): Likewise.
44010
44011 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
44012 from this...
44013 (grub_vbe_bios_get_controller_info): ... to this.
44014 (grub_vbe_get_mode_info): Renamed from this...
44015 (grub_vbe_bios_get_mode_info): ... to this.
44016 (grub_vbe_set_mode): Renamed from this...
44017 (grub_vbe_bios_set_mode): ... to this.
44018 (grub_vbe_get_mode): Renamed from this...
44019 (grub_vbe_bios_get_mode): ... to this.
44020 (grub_vbe_set_memory_window): Renamed from this...
44021 (grub_vbe_bios_set_memory_window): ... to this.
44022 (grub_vbe_get_memory_window): Renamed from this...
44023 (grub_vbe_bios_get_memory_window): ... to this.
44024 (grub_vbe_set_scanline_length): Renamed from this...
44025 (grub_vbe_set_scanline_length): ... to this.
44026 (grub_vbe_get_scanline_length): Renamed from this...
44027 (grub_vbe_bios_get_scanline_length): ... to this.
44028 (grub_vbe_set_display_start): Renamed from this...
44029 (grub_vbe_bios_set_display_start): ... to this.
44030 (grub_vbe_get_display_start): Renamed from this...
44031 (grub_vbe_bios_get_display_start): ... to this.
44032 (grub_vbe_set_palette_data): Renamed from this...
44033 (grub_vbe_bios_set_palette_data): ... to this.
44034 (grub_vbe_bios_get_controller_info): Fixed problem with registers
44035 getting corrupted after calling it. Added more pushes and pops.
44036 (grub_vbe_bios_set_mode): Likewise.
44037 (grub_vbe_bios_get_mode): Likewise.
44038 (grub_vbe_bios_get_memory_window): Likewise.
44039 (grub_vbe_bios_set_scanline_length): Likewise.
44040 (grub_vbe_bios_get_scanline_length): Likewise.
44041 (grub_vbe_bios_get_display_start): Likewise.
44042 (grub_vbe_bios_set_palette_data): Likewise.
44043
44044 * normal/cmdline.c (cl_set_pos): Refresh the screen.
44045 (cl_insert): Likewise.
44046 (cl_delete): Likewise.
44047
44048 * term/gfxterm.c: New file.
44049
44050 * term/i386/pc/vesafb.c: Removed file.
44051
44052 * video/video.c: New file.
44053
44054 * video/i386/pc/vbe.c (real2pm): Added new function.
44055 (grub_video_vbe_draw_pixel): Likewise.
44056 (grub_video_vbe_get_video_ptr): Likewise.
44057 (grub_video_vbe_get_pixel): Likewise
44058 (grub_video_vbe_init): Likewise.
44059 (grub_video_vbe_fini): Likewise.
44060 (grub_video_vbe_setup): Likewise.
44061 (grub_video_vbe_get_info): Likewise.
44062 (grub_video_vbe_set_palette): Likewise.
44063 (grub_video_vbe_get_palette): Likewise.
44064 (grub_video_vbe_set_viewport): Likewise.
44065 (grub_video_vbe_get_viewport): Likewise.
44066 (grub_video_vbe_map_color): Likewise.
44067 (grub_video_vbe_map_rgb): Likewise.
44068 (grub_video_vbe_map_rgba): Likewise.
44069 (grub_video_vbe_unmap_color): Likewise.
44070 (grub_video_vbe_fill_rect): Likewise.
44071 (grub_video_vbe_blit_glyph): Likewise.
44072 (grub_video_vbe_blit_bitmap): Likewise.
44073 (grub_video_vbe_blit_render_target): Likewise.
44074 (grub_video_vbe_scroll): Likewise.
44075 (grub_video_vbe_swap_buffers): Likewise.
44076 (grub_video_vbe_create_render_target): Likewise.
44077 (grub_video_vbe_delete_render_target): Likewise.
44078 (grub_video_vbe_set_active_render_target): Likewise.
44079 (grub_vbe_set_pixel_rgb): Remove function.
44080 (grub_vbe_set_pixel_index): Likewise.
44081 (index_color_mode): Remove static variable.
44082 (active_mode): Likewise.
44083 (framebuffer): Likewise.
44084 (bytes_per_scan_line): Likewise.
44085 (grub_video_vbe_adapter): Added new static variable.
44086 (framebuffer): Likewise.
44087 (render_target): Likewise.
44088 (initial_mode): Likewise.
44089 (mode_in_use): Likewise.
44090 (mode_list): Likewise.
44091
5f97350b 440922006-03-10 Marco Gerards <marco@gnu.org>
44093
44094 * configure.ac (AC_INIT): Bumped to 1.93.
44095
44096 * DISTLIST: Added `include/grub/hfs.h'.
44097
a3c5c6f8 440982006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
44099
44100 * boot/i386/pc/boot.S (general_error): Before looping, try INT
44101 18H, which might help the BIOS falling back to next boot media.
44102
6de53d26 441032006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
44104
44105 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
44106 Poe Chen <poe.poechen@gmail.com>.
44107
77c4a393 441082006-01-17 Marco Gerards <marco@gnu.org>
44109
44110 * include/grub/normal.h: Include <grub/script.h>.
44111 (grub_command_list): Removed struct.
44112 (grub_command_list_t): Removed type.
44113 (grub_menu_entry): Remove members `num' and `command_list'. Add
44114 members `commands' and `sourcecode'.
44115 * include/grub/script.h: Add inclusion guards.
44116 (grub_script_cmd_menuentry): New struct.
44117 (grub_script_execute_menuentry): New prototype.
44118 (grub_script_lexer_record_start): Likewise.
44119 (grub_script_lexer_record_stop): Likewise.
44120 * normal/execute.c (grub_script_execute_menuentry): New function.
44121 * normal/lexer.c (record, recording, recordpos, recordlen): New
44122 variables.
44123 (grub_script_lexer_record_start): New function.
44124 (grub_script_lexer_record_stop): Likewise.
44125 (recordchar): Likewise.
44126 (nextchar): Likewise.
44127 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
44128 2048 as the buffer size. Add the tokens `menuentry' and `@'.
44129 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
44130 (current_menu): New variable.
44131 (free_menu): Mainly rewritten.
44132 (grub_normal_menu_addentry): New function.
44133 (read_config_file): Rewritten.
44134 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 44135 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 44136 the menu entry.
44137 (run): Mainly rewritten.
44138 * normal/parser.y (menu_entry): New variable.
44139 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
44140 (menuentry): New rule.
44141 (command): Add `menuentry'.
44142 (if_statement): Allow additional returns before `fi'.
44143 * normal/script.c (grub_script_create_cmdmenu): New function.
44144
144f1f98 441452006-01-03 Marco Gerards <marco@gnu.org>
44146
44147 * INSTALL: GNU Bison is required.
44148 * configure.ac: Rewritten the test to detect Bison.
44149 * Makefile.in (YACC): New variable. Reported by Xun Sun
44150 <xun.sun.cn@gmail.com>.
44151
af4b2d89 441522006-01-03 Marco Gerards <marco@gnu.org>
44153
44154 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
44155 the HFS+ filesystem to filesystem blocks.
44156 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
44157 GCC warning is silenced.
44158
15643b71 441592006-01-03 Marco Gerards <marco@gnu.org>
44160
44161 * partmap/apple.c (apple_partition_map_iterate): Convert the data
44162 read from disk from big endian to host byte order.
44163
00905879 441642006-01-03 Hollis Blanchard <hollis@penguinppc.org>
44165
44166 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
44167 documentation.
44168 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
44169 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
44170 embedded HFS+ filesystem.
44171 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
44172 (grub_hfs_sblock): Move from here...
44173 * include/grub/hfs.h: To here... New file.
44174 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
44175 documentation.
44176 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
44177 New macros.
44178 (grub_hfsplus_volheader): Change type of member `magic' to
44179 `grub_uint16_t'.
44180 (grub_hfsplus_data): Add new member `embedded_offset'.
44181 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
44182 returned block.
44183 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
44184 Calculate the offset.
44185
8899bc3e 441862005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44187
44188 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
44189 Removed.
44190 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
44191
ae8c0277 441922005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44193
44194 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
44195 ENV->NAME is NULL after allocating ENV->VALUE.
44196
07084456 441972005-12-25 Marco Gerards <marco@gnu.org>
44198
44199 * kern/env.c (grub_env_set): Rewritten the error handling code.
44200
4750f5f1 442012005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44202
44203 * geninit.sh: Made more robust, and more portable.
44204
50214199 442052005-12-25 Marco Gerards <marco@gnu.org>
44206
44207 Add support for Apple HFS+ filesystems.
f19dbdb7 44208
50214199 44209 * fs/hfsplus.c: New file.
44210
44211 * DISTLIST: Added `fs/hfsplus.c'.
44212
44213 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
44214 (hfsplus_mod_SOURCES): New variable.
44215 (hfsplus_mod_CFLAGS): Likewise.
44216 (hfsplus_mod_LDFLAGS): Likewise.
44217 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
44218 (grub_setup_SOURCES): Likewise.
44219 (grub_mkdevicemap_SOURCES): Likewise.
44220 (grub_emu_SOURCES): Likewise.
44221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44222
44223 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
44224
44225 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
44226
befaed6c 442272005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44228
44229 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
44230 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
44231 include/grub/parser.h, include/grub/script.h, kern/parser.c,
44232 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
44233 normal/lexer.c, normal/parser.y, normal/script.c, and
44234 partmap/gpt.c.
44235 Removed kern/sparc64/cache.c.
44236
44237 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
44238 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
44239 grub_emu_init.c.
44240
44241 * configure.ac (AC_INIT): Bumped to 1.92.
44242
6a124103 442432005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
44244
44245 * kern/err.c (grub_error_push): Added new function to support error
44246 stacks.
44247 (grub_error_pop): Likewise.
44248 (grub_error_stack_items): New local variable to support error stacks.
44249 (grub_error_stack_pos): Likewise.
44250 (grub_error_stack_assert): Likewise.
44251 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
44252 stack depth.
44253 (grub_print_error): Added support to print errors from error stack.
44254
44255 * include/grub/err.h (grub_error_push): Added function prototype.
44256 (grub_error_pop): Likewise.
44257
be973c1b 442582005-12-09 Hollis Blanchard <hollis@penguinppc.org>
44259
44260 * configure.ac: Accept `powerpc64' as host_cpu.
44261 (amd64): Rename to `biarch32'.
44262
44263 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
44264 non-cacheline-aligned addresses.
44265
44266 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
44267 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44268 if `size' is non-zero.
44269
b04216ab 442702005-12-03 Marco Gerards <mgerards@xs4all.nl>
44271
44272 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44273 and `cd' to make sure the filename is not prefixed with a
44274 directory name.
44275 (pkgdata_MODULES): Add `gpt.mod'.
44276 (gpt_mod_SOURCES): New variable.
44277 (gpt_mod_CFLAGS): Likewise.
44278 (gpt_mod_LDFLAGS): Likewise.
44279
44280 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44281
44282 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44283 New macro.
44284
44285 * partmap/gpt.c: New file.
44286
44287 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44288 GPT partition map is detected.
44289
41730ed9 442902005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44291
44292 * commands/i386/pc/play.c: New file.
44293 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44294 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44295 macros.
f19dbdb7 44296
95dc3643 442972005-11-27 Marco Gerards <mgerards@xs4all.nl>
44298
44299 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44300 ((unused))' to silence gcc warning.
44301
1569ec51 443022005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44303
44304 * configure.ac: Correct `AC_PROG_YACC' test.
44305
9abde152 443062005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44307
44308 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44309 check before installing files.
44310
44b83271 443112005-11-22 Mike Small <smallm@panix.com>
44312
44313 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44314 number regex so multidigit numbers are recognized correctly.
44315
443162005-11-22 Mike Small <smallm@panix.com>
44317
44318 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44319 debugging message before attempting to claim memory.
44320 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44321 multiple addresses in case of failure.
44322
9c12956b 443232005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44324
44325 * term/tparm.c (get_space): Remove empty `if' statement.
44326
44327 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44328
44329 * kern/parser.c (check_varstate): Rename `state' to 's'.
44330
aeaf81d9 443312005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44332
44333 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44334 variable definitions to the beginning of each function. Sort stack
44335 variables by size.
44336 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44337 `buf' argument to `char *'.
44338
79bbb63f 443392005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44340
44341 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44342 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44343 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 44344 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44345 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44346 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44347 configfile.mod, search.mod, gzio.mod and test.mod.
44348 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44349 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44350 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44351 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44352 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44353 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44354 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44355 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44356 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44357 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44358 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44359 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44360 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44361 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44362 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44363 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44364 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44365 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44366 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44367 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44368 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44369 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44370 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44371
44372 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44373 `grep --include'.
44374 (pkgdata_MODULES): Add test.mod.
44375
233b1628 443762005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44377
44378 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44379 appending to variables with "+=".
44380 (PModule): Use full pathname to generate *.lst filenames.
44381
44382 * Makefile.in: Fixed list rules moved from genmk.rb.
44383 (.DELETE_ON_ERROR): New special target.
44384 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44385
44386 * conf/i386-pc.rmk: Include conf/common.mk.
44387 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44388 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 44389 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44390 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44391 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44392 configfile.mod, search.mod, gzio.mod and test.mod.
44393 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44394 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44395 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44396 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44397 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44398 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44399 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44400 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44401 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44402 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44403 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44404 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44405 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44406 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44407 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44408 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44409 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44410 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44411 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44412 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44413 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44414 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44415 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44416 here...
44417 * conf/common.rmk: ... to here. New file.
44418
44419 * conf/common.mk: New file.
44420
16f820c8 444212005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44422
44423 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44424 (grub_script.tab.c): ... here.
44425
44426 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44427 (grub_script.tab.c): ... here.
44428
44429 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44430 (grub_script.tab.c): ... here.
44431
44432 * normal/command.c (grub_command_find): Fixed a memory leak of
44433 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44434
63ba1554 444352005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44436
44437 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44438 "@" which marks the start of a comment on ARM.
44439 (VARIABLE): Likewise.
44440
7f67dc13 444412005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44442
79bbb63f 44443 Add support for Linux/ADFS partition tables.
7f67dc13 44444
44445 * partmap/acorn.c: New file.
44446
44447 * include/grub/acorn_filecore.h: Likewise.
44448
44449 * DISTLIST: Added `partmap/acorn.c' and
44450 `include/grub/acorn_filecore.h'.
f19dbdb7 44451
7f67dc13 44452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44453 `partmap/acorn.c'.
44454 (pkgdata_MODULES): Add `acorn.mod'.
44455 (acorn_mod_SOURCES): New variable.
44456 (acorn_mod_CFLAGS): Likewise.
44457
44458 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44459 `partmap/acorn.c'.
44460 (pkgdata_MODULES): Add `acorn.mod'.
44461 (acorn_mod_SOURCES): New variable.
44462 (acorn_mod_CFLAGS): Likewise.
44463
44464 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44465 (pkgdata_MODULES): Add `acorn.mod'.
44466 (acorn_mod_SOURCES): New variable.
44467 (acorn_mod_CFLAGS): Likewise.
44468 (acorn_mod_LDFLAGS): Likewise.
44469
44470 * include/types.h (grub_disk_addr_t): New typedef.
44471
6d099807 444722005-11-13 Marco Gerards <mgerards@xs4all.nl>
44473
44474 * geninit.sh: New file.
44475
44476 * geninitheader.sh: Likewise.
44477
44478 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44479 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44480 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44481 * commands/configfile.c (grub_configfile_init)
44482 (grub_configfile_fini): Likewise.
44483 * commands/default.c (grub_default_init, grub_default_fini):
44484 Likewise.
44485 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44486 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44487 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44488 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44489 Likewise.
44490 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44491 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44492 Likewise.
44493 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 44494 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 44495 Likewise.
44496 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44497 Likewise.
fe6b695a 44498 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 44499 Likewise.
44500 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44501 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44502 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44503 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44504 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44505 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44506 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44507 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44508 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44509 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44510 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44511 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44512 * partmap/amiga.c (grub_amiga_partition_map_init)
44513 (grub_amiga_partition_map_fini): Likewise.
44514 * partmap/apple.c (grub_apple_partition_map_init)
44515 (grub_apple_partition_map_fini): Likewise.
44516 * partmap/pc.c (grub_pc_partition_map_init)
44517 (grub_pc_partition_map_fini): Likewise.
44518 * partmap/sun.c (grub_sun_partition_map_init,
44519 grub_sun_partition_map_fini): Likewise.
44520 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44521 Likewise.
44522
44523 * util/grub-emu.c: Include <grub_modules_init.h>.
44524 (main): Don't initialize and de-initialize any modules directly,
44525 use `grub_init_all' and `grub_fini_all' instead.
44526
44527 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44528 `grub_vesafb_mod_init'.
44529 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44530 all users.
44531 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44532 `grub_vga_mod_init'. Updated all users.
44533 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 44534
6d099807 44535 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44536 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44537 rules.
44538
44539 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44540 Generate a function to initialize the module in utilities.
44541 Updated all callers.
44542 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44543 initialize the module in utilities. Updated all callers.
44544
9046bcf0 445452005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44546
44547 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44548 escape sequence and a literal ^L to clear the screen.
44549
44550 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44551 when returning from Open Firmware.
44552
d13ea639 445532005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44554
44555 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44556 (grub_ofconsole_height): Likewise.
44557 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44558 manually insert a '\n'.
44559 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44560 `grub_ofconsole_height'. Return early if these are already set.
44561
a8fcf206 445622005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44563
44564 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44565 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44566 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44567 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44568 and `normal/script.c'.
44569 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44570 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44571 (test_mod_SOURCES): New variable.
44572 (test_mod_CFLAGS): Likewise.
44573 (test_mod_LDFLAGS): Likewise.
44574 (pkgdata_MODULES): Add `test.mod'.
44575 (grub_script.tab.c): New rule.
44576 (grub_script.tab.h): Likewise.
44577
b6b32745 445782005-11-07 Marco Gerards <mgerards@xs4all.nl>
44579
44580 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44581 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44582 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44583 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44584 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44585 (test_mod_SOURCES): New variable.
44586 (test_mod_CFLAGS): Likewise.
44587 (pkgdata_MODULES): Add `test.mod'.
44588 (grub_script.tab.c): New rule.
44589 (grub_script.tab.h): Likewise.
44590
daac212a 445912005-11-06 Marco Gerards <mgerards@xs4all.nl>
44592
44593 Add initial scripting support.
44594
44595 * commands/test.c: New file.
44596 * include/grub/script.h: Likewise.
44597 * normal/execute.c: Likewise.
44598 * normal/function.c: Likewise.
44599 * normal/lexer.c: Likewise.
44600 * normal/parser.y: Likewise.
44601 * normal/script.c: Likewise.
44602
44603 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 44604
daac212a 44605 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44606 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44607 `normal/function.c' and `normal/script.c'.
44608 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44609 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 44610 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44611 variables.
daac212a 44612 (pkgdata_MODULES): Add `test.mod'.
44613 (grub_script.tab.c): New rule.
44614 (grub_script.tab.h): Likewise.
44615
44616 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44617
44618 * include/grub/normal.h (grub_test_init): New prototype.
44619 (grub_test_fini): Likewise.
f19dbdb7 44620
daac212a 44621 * normal/command.c: Include <grub/script.h>.
44622 (grub_command_execute): Rewritten.
f19dbdb7 44623
daac212a 44624 * util/grub-emu.c (main): Call `grub_test_init' and
44625 `grub_test_fini'.
44626
77500b2b 446272005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44628
44629 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44630 to 0.
44631 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44632 there are no pending characters.
44633
e45deb9e 446342005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44635
44636 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44637 `grub_strndup' to drop device arguments. Replace unnecessary
44638 `grub_strndup' with `grub_strdup'.
44639
4ce32619 446402005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44641
44642 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44643 `debug' environment variable has been set.
44644
446452005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 44646
4ce32619 44647 * Makefile.in (install-local): Use $(DATA).
44648 (uninstall): Likewise.
44649 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44650 (sbin_UTILITIES): ... to here.
44651 (sbin_SCRIPTS): New variable.
44652 (grub_install_SOURCES): New variable.
44653 * util/powerpc/ieee1275/grub-install.in: New file.
44654 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44655 variable.
44656 (add_segments): Call `grub_util_get_path'.
44657
25fe6f03 446582005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44659
44660 From Timothy Baldwin:
44661 * commands/ls.c (grub_ls_list_files): Close FILE with
44662 grub_file_close.
44663 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44664
04ccf3ec 446652005-10-24 Marco Gerards <mgerards@xs4all.nl>
44666
44667 * include/grub/parser.h: New file.
44668
44669 * kern/parser.c: Likewise.
44670
44671 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44672 (grub_setup_SOURCES): Likewise.
44673 (grub_probefs_SOURCES): Likewise.
44674 (grub_emu_SOURCES): Likewise.
44675 (kernel_img_HEADERS): Add `parser.h'.
44676
44677 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44678 (grub_emu_SOURCES): Add `kern/parser.c'.
44679 (grubof_SOURCES): Likewise.
44680
44681 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44682 (grubof_SOURCES): Add `kern/parser.c'.
44683
44684 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44685
44686 * kern/misc.c (grub_split_cmdline): Removed function.
44687
44688 * kern/rescue.c: Include <grub/parser.h>.
44689 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44690 of `grub_split_cmdline'.
44691
44692 * normal/command.c: Include <grub/parser.h>.
44693 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44694 of `grub_split_cmdline'.
44695
44696 * normal/completion.c: Include <grub/parser.h>.
44697 (cmdline_state): New variable.
44698 (iterate_dir): End the filename with a quote depending on the
44699 command line state.
44700 (get_state): new function.
44701 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44702 split the arguments and determine the current argument. When the
44703 argument string is not quoted, escape all spaces.
44704
6d8f4b0e 447052005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44706
44707 * normal/sparc64/setjmp.S: New file.
44708
15cf03ed 447092005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44710
44711 * include/grub/sparc64/libgcc.h: New file.
44712 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44713 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44714 normal/sparc64/setjmp.c.
44715
03e8661a 447162005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44717
44718 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44719 * kern/sparc64/cache.S: New file.
44720 * kern/sparc64/cache.c: Removed.
44721 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44722 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44723 -mtune=ultrasparc.
44724 (COMMON_LDFLAGS): Add -melf64_sparc.
44725 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44726 (grubof_SOURCES): Use cache.S instead of cache.c.
44727 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44728 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44729 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44730 commented though.
44731 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44732 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44733 (linux_mod_CFLAGS): Commented out.
44734 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44735 out because module isn't built.
44736 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44737 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44738 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44739 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44740 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44741 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44742 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44743 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44744 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44745 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44746 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44747 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44748 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44749 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44750
34eeec8a 447512005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44752
44753 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44754 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44755 longer, because HFS should not be used on PC.
44756
708367a3 447572005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44758
44759 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44760 consistently within the loop.
44761
6fa1251a 447622005-10-15 Marco Gerards <mgerards@xs4all.nl>
44763
44764 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44765 directory can not be read.
44766
4801580b 447672005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44768
44769 * configure.ac (AC_INIT): Increase the version number to 1.91.
44770
44771 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44772 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44773 term/i386/pc/serial.c.
44774
219ad426 447752005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44776
44777 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44778 file size must be permitted.
44779
44780 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44781 between %ah and %al.
44782
688e5699 447832005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44784
44785 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44786 grub_uint64_t.
44787 Call the hook with a NUL-terminated filename.
44788 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44789 grub_cpu_to_be32.
44790
44791 * kern/term.c (cursor_state): New variable.
44792 (grub_term_set_current): Reset the cursor state on a new
44793 terminal.
44794 (grub_setcursor): Rewritten to use CURSOR_STATE.
44795 (grub_getcursor): New function.
44796
44797 * include/grub/term.h (grub_getcursor): New prototype.
44798
44799 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44800 integers on ARM. Reported by Timothy Baldwin
44801 <T.E.Baldwin99@members.leeds.ac.uk>.
44802
bb34586c 448032005-10-11 Marco Gerards <mgerards@xs4all.nl>
44804
44805 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44806 allocated.
44807 (grub_sfs_dir): Likewise.
44808
9a909877 448092005-10-09 Marco Gerards <mgerards@xs4all.nl>
44810
44811 Add support for the SFS filesystem.
44812
44813 * fs/sfs.c: New file.
44814
44815 * DISTLIST: Added `fs/sfs.c'.
44816
44817 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44818 (grub_probefs_SOURCES): Likewise.
44819 (grub_emu_SOURCES): Likewise.
44820 (pkgdata_MODULES): Add `sfs.mod'.
44821 (sfs_mod_SOURCES): New variable.
44822 (sfs_mod_CFLAGS): Likewise.
44823 (sfs_mod_LDFLAGS): Likewise.
44824
44825 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44826 (pkgdata_MODULES): Add `sfs.mod'.
44827 (sfs_mod_SOURCES): New variable.
44828 (sfs_mod_CFLAGS): Likewise.
44829
44830 * util/grub-emu.c (main): Call `grub_sfs_init' and
44831 `grub_sfs_fini'.
44832
44833 * include/grub/fs.h (grub_sfs_init): New prototype.
44834 (grub_sfs_fini): Likewise.
44835
57bdbde3 448362005-10-07 Marco Gerards <mgerards@xs4all.nl>
44837
44838 Add support for the AFFS filesystem.
44839
44840 * fs/affs.c: New file.
44841
44842 * DISTLIST: Added `fs/affs.c'.
44843
44844 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44845 (grub_probefs_SOURCES): Likewise.
44846 (grub_emu_SOURCES): Likewise.
44847 (pkgdata_MODULES): Add `affs.mod'.
44848 (affs_mod_SOURCES): New variable.
44849 (affs_mod_CFLAGS): Likewise.
44850 (affs_mod_LDFLAGS): Likewise.
44851
44852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44853 (pkgdata_MODULES): Add `affs.mod'.
44854 (affs_mod_SOURCES): New variable.
44855 (affs_mod_CFLAGS): Likewise.
44856
44857 * util/grub-emu.c (main): Call `grub_affs_init' and
44858 `grub_affs_fini'.
44859
44860 * include/grub/fs.h (grub_affs_init): New prototype.
44861 (grub_affs_fini): Likewise.
44862
047b67e0 448632005-10-01 Marco Gerards <mgerards@xs4all.nl>
44864
44865 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44866
59b8208a 448672005-10-01 Marco Gerards <mgerards@xs4all.nl>
44868
44869 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44870 `-m32' to CFLAGS.
44871
44872 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44873 linking.
f19dbdb7 44874
59b8208a 44875 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44876 (COMMON_LDFLAGS): New variable.
44877 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44878 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44879 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44880 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44881 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44882 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44883 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44884 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44885 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44886 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44887 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44888 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44889 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44890 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44891 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44892 variables.
44893 (normal_mod_ASFLAGS): Add `-m32'.
44894
44895 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44896 (grub_host_size_t, grub_host_ssize_t): New types.
44897 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 44898 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 44899 `GRUB_HOST_SIZEOF_VOID_P'.
44900
44901 * include/grub/kernel.h (struct grub_module_header): Type of
44902 member offset changed to `grub_host_off_t'. Type of member size
44903 changed to `grub_host_size_t'.
44904 (struct grub_module_info): Type of member offset changed to
44905 `grub_host_off_t'. Type of member size changed to
44906 `grub_host_size_t'.
44907
b4093103 449082005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44909
44910 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 44911
b4093103 44912 * kern/i386/pc/startup.S (multiboot_header): New label.
44913 (multiboot_entry): Likewise.
44914 (multiboot_trampoline): Likewise.
44915
44916 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44917 Increased to 0x4A0.
44918
44919 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44920 put parentheses after a question mark.
44921 [!GRUB_UTIL] (my_mod): New variable.
44922
44923 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44924
b2499b29 449252005-09-28 Marco Gerards <mgerards@xs4all.nl>
44926
44927 Adds support for the XFS filesystem. Btrees are not supported
44928 yet.
44929
44930 * fs/xfs.c: New file.
44931
44932 * DISTLIST: Added `fs/xfs.c'.
44933
44934 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44935 (grub_probefs_SOURCES): Likewise.
44936 (grub_emu_SOURCES): Likewise.
44937 (pkgdata_MODULES): Add `xfs.mod'.
44938 (xfs_mod_SOURCES): New variable.
44939 (xfs_mod_CFLAGS): Likewise.
44940
44941 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44942 (pkgdata_MODULES): Add `xfs.mod'.
44943 (xfs_mod_SOURCES): New variable.
44944 (xfs_mod_CFLAGS): Likewise.
44945
44946 * util/grub-emu.c (main): Call `grub_xfs_init' and
44947 `grub_xfs_fini'.
44948
44949 * include/grub/fs.h (grub_xfs_init): New prototype.
44950 (grub_xfs_fini): Likewise.
44951
f19dbdb7 44952
83d37a62 449532005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44954
44955 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44956 color modes, allow greater than 16 colors to be configured as
44957 a default palette.
44958
47d2d65e 449592005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44960
44961 * normal/completion.c (complete_arguments): Add the qualifier
44962 const into OPTIONS.
44963
44964 From Omniflux <omniflux+lists@omniflux.com>:
44965 * include/grub/terminfo.h: New file.
44966 * include/grub/tparm.h: Likewise.
44967 * include/grub/i386/pc/serial.h: Likewise.
44968 * term/terminfo.c: Likewise.
44969 * term/tparm.c: Likewise.
44970 * term/i386/pc/serial.c: Likewise.
44971 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44972 serial.mod.
44973 (terminfo_mod_SOURCES): New variable.
44974 (terminfo_mod_CFLAGS): Likewise.
44975 (serial_mod_SOURCES): Likewise.
44976 (serial_mod_CFLAGS): Likewise.
44977
48b671ff 449782005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44979
44980 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44981 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44982 and kern/powerpc/ieee1275/cmain.c, respectively.
44983
44984 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44985 * kern/powerpc/ieee1275/crt0.S: ... here.
44986
44987 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44988 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 44989
48b671ff 44990 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44991 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44992 instead of boot/powerpc/ieee1275/crt0.S and
44993 boot/powerpc/ieee1275/cmain.c, respectively.
44994
44995 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44996 sectors. It was not used anyway.
44997
09fc77a7 449982005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44999
45000 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
45001 `unused parameter' warning.
45002
003789c7 450032005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45004
45005 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
45006 function.
45007 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
45008 getcharwidth.
45009
67f44c86 450102005-08-28 Marco Gerards <metgerards@student.han.nl>
45011
45012 * include/grub/normal.h (enum grub_completion_type): Added
45013 `GRUB_COMPLETION_TYPE_ARGUMENT'.
45014
45015 * normal/cmdline.c (print_completion): Handle
45016 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
45017 * normal/menu_entry.c (store_completion): Likewise.
45018
45019 * normal/completion.c (complete_arguments): New function.
45020 (grub_normal_do_completion): Call `complete_arguments' when the
45021 current words start with a dash.
45022
0b5abe02 450232005-08-27 Marco Gerards <metgerards@student.han.nl>
45024
45025 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
45026 `gzio.mod' instead of `io.mod').
45027
d9864ee1 450282005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
45029
45030 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
45031 (DISTDIRS): Added io and video.
45032 Rewrite the search routine to make an output consistently.
45033
45034 * DISTLIST: Added conf/sparc64-ieee1275.mk,
45035 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
45036 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
45037 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
45038 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
45039 util/powerpc/ieee1275/misc.c.
f19dbdb7 45040
d9864ee1 45041 * include/grub/gzio.h: New file.
45042 * io/gzio.c: Likewise.
f19dbdb7 45043
d9864ee1 45044 * kern/file.c (grub_file_close): Call grub_device_close only if
45045 FILE->DEVICE is not NULL.
45046
45047 * include/grub/mm.h [!NULL] (NULL): New macro.
45048
45049 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
45050
45051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
45052 (pkgdata_MODULES): Added gzio.mod.
45053 (gzio_mod_SOURCES): New variable.
45054 (gzio_mod_CFLAGS): Likewise.
45055
45056 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
45057 (pkgdata_MODULES): Added gzio.mod.
45058 (gzio_mod_SOURCES): New variable.
45059 (gzio_mod_CFLAGS): Likewise.
45060
45061 * commands/cat.c: Include grub/gzio.h.
45062 (grub_cmd_cat): Use grub_gzfile_open instead of
45063 grub_file_open.
f19dbdb7 45064
d9864ee1 45065 * commands/cmp.c: Include grub/gzio.h.
45066 (grub_cmd_cmp): Use grub_gzfile_open instead of
45067 grub_file_open.
45068
45069 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
45070 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
45071 grub_file_open.
45072 (grub_rescue_cmd_module): Likewise.
45073
fa46f4b5 450742005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45075
45076 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
45077 kern/sparc64/ieee1275/init.c because it contains _start.
45078 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
45079
e9211b5d 450802005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45081
45082 * configure.ac: Add support for sparc64 host with ieee1275
45083 firmware.
45084 * configure: Generated from configure.ac.
45085 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
45086 instead of int.
45087 (grub_ofdisk_read): Likewise.
45088 (grub_ofdisk_open): Use %p to print pointer values, and cast the
45089 pointers as (void *) to remove a warning.
45090 (grub_ofdisk_close): Likewise.
45091 (grub_ofdisk_read): Likewise.
45092 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
45093 returns, so make it return void to remove a warning.
45094 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
45095 Corresponding prototype change.
45096 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
45097 values, and cast the pointers as (void *) to remove a warning.
45098 (grub_mm_dump): Likewise.
45099 * conf/sparc64-ieee1275.mk: New file.
45100 * conf/sparc64-ieee1275.rmk: Likewise.
45101 * include/grub/sparc64/setjmp.h: Likewise.
45102 * include/grub/sparc64/types.h: Likewise.
45103 * include/grub/sparc64/ieee1275/console.h: Likewise.
45104 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
45105 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
45106 * include/grub/sparc64/ieee1275/time.h: Likewise.
45107 * kern/sparc64/cache.c: Likewise.
45108 * kern/sparc64/dl.c: Likewise.
45109 * kern/sparc64/ieee1275/init.c: Likewise.
45110 * kern/sparc64/ieee1275/openfw.c: Likewise.
45111
385c6a92 451122005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
45113
45114 * util/console.c (grub_ncurses_putchar): If C is greater than
45115 0x7f, set C to a question mark.
45116 (grub_ncurses_getcharwidth): New function.
45117 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
45118 getcharwidth.
45119
45120 * normal/menu.c (print_entry): Made aware of Unicode. First,
45121 convert TITLE to UCS-4, and predict the cursor position by
45122 grub_getcharwidth.
45123
45124 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
45125 const to SRC.
45126 * kern/misc.c (grub_utf16_to_utf8): Likewise.
45127
16ccb8b1 451282005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45129
45130 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
45131 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
45132 grub_strcat.
45133
45134 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
45135 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
45136 grub_strcpy and grub_strlen. Take it into account that a space
45137 character is inserted as a delimiter.
45138
6a85ce79 451392005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45140
45141 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 45142 invalid magic in the error.
6a85ce79 45143
45144 * commands/search.c: New file.
f19dbdb7 45145
6a85ce79 45146 * util/grub-emu.c (main): Call grub_search_init and
45147 grub_search_fini.
45148
45149 * kern/rescue.c (grub_rescue_print_disks): Removed.
45150 (grub_rescue_print_devices): New function.
45151 (grub_rescue_cmd_ls): Use grub_device_iterate with
45152 grub_rescue_print_devices instead of grub_disk_dev_iterate with
45153 grub_rescue_print_disks.
45154
45155 * kern/partition.c (grub_partition_iterate): Return the result of
45156 PARTMAP->ITERATE instead of GRUB_ERRNO.
45157
45158 * kern/device.c: Include grub/partition.h.
45159 (grub_device_iterate): New function.
45160
45161 * include/grub/partition.h (grub_partition_iterate): Return int
45162 instead of grub_err_t.
45163
45164 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
45165 prototype.
45166 [GRUB_UTIL] (grub_search_fini): Likewise.
45167
45168 * include/grub/device.h (grub_device_iterate): New prototype.
45169
45170 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45171 commands/search.c.
45172 (pkgdata_MODULES): Added search.mod.
45173 (search_mod_SOURCES): New variable.
45174 (search_mod_CFLAGS): Likewise.
45175
45176 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
45177 (pkgdata_MODULES): Added search.mod.
45178 (search_mod_SOURCES): New variable.
45179 (search_mod_CFLAGS): Likewise.
45180
45181 * commands/ls.c (grub_ls_list_disks): Renamed to ...
45182 (grub_ls_list_devices): ... this, and use grub_device_iterate.
45183 All callers changed.
45184
45185 * DISTLIST: Added commands/search.c.
45186
ef095434 451872005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45188
45189 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
45190 conversion.
45191 (grub_getcharwidth): New function.
45192
45193 * kern/misc.c (grub_utf8_to_ucs4): New function.
45194
45195 * include/grub/term.h (struct grub_term): Added a new member
45196 "getcharwidth".
45197 (grub_getcharwidth): New prototype.
45198
45199 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
45200
45201 * term/i386/pc/console.c (map_char): New function. Segregated from
45202 grub_console_putchar.
45203 (grub_console_putchar): Use map_char.
45204 (grub_console_getcharwidth): New function.
45205 (grub_console_term): Specified grub_console_getcharwidth as
45206 getcharwidth.
45207
45208 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
45209 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
45210
45211 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
45212 GRUB_ERRNO.
45213 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
45214 on grub_strtoul completely.
45215 (write_char): Declare local variables in the beginning of the
45216 function.
45217 (grub_vesafb_getcharwidth): New function.
45218 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
45219 getcharwidth.
45220
1f0a95e4 452212005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
45222
45223 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
45224 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
45225 commands/i386/pc/vbetest.c.
45226
45227 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
45228 call grub_vbe_get_controller_info again, because the returned
45229 information is volatile.
45230 (grub_vbe_set_video_mode): Mostly rewritten.
45231 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
45232 grub_vbe_status_t correctly.
45233 (grub_vbe_get_video_mode_info): Likewise.
45234 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
45235 several if statements.
45236
45237 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
45238 * commands/i386/pc/vbeinfo.c: ... this.
45239
45240 * commands/i386/pc/vbe_test.c: Renamed to ...
45241 * commands/i386/pc/vbetest.c: ... this.
45242
45243 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
45244 ...
45245 (grub_cmd_vbeinfo): ... this. Save video modes before
45246 iterating. Skip a video mode, if it is not available, not enough
45247 information is given or it is monochrome. Show the memory
45248 model. Leave the interpretation of MODEVAR to grub_strtoul
45249 completely.
45250 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
45251 (GRUB_MOD_FINI): Likewise.
45252
45253 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
45254 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
45255 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
45256 duplicated grub_env_get. Leave the interpretation of MODEVAR to
45257 grub_strtoul completely.
45258 (real2pm): Removed.
45259 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
45260 (GRUB_MOD_FINI): Likewise.
45261
45262 * normal/misc.c: Include grub/mm.h.
45263
45264 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
45265 vbe_list_modes with vbetest.mod and vbeinfo.mod.
45266 (vbe_list_modes_mod_SOURCES): Removed.
45267 (vbe_list_modes_mod_CFLAGS): Likewise.
45268 (vbe_test_mod_SOURCES): Likewise.
45269 (vbe_test_mod_CFLAGS): Likewise.
45270 (vbeinfo_mod_SOURCES): New variable.
45271 (vbeinfo_mod_CFLAGS): Likewise.
45272 (vbetest_mod_SOURCES): Likewise.
45273 (vbetest_mod_CFLAGS): Likewise.
45274
992ffbbe 452752005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45276
45277 * normal/misc.c: New file.
45278
45279 * DISTLIST: Added normal/misc.c.
f19dbdb7 45280
992ffbbe 45281 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45282 DISK to HOOK. Call HOOK with DISK.
45283 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45284 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45285 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45286
45287 * normal/menu_entry.c (struct screen): Added a new member
45288 "completion_shown".
45289 (completion_buffer): New global variable.
45290 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45291 (store_completion): New function.
45292 (complete): Likewise.
45293 (clear_completions): Likewise.
45294 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45295 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45296 a tab, call complete.
45297
45298 * normal/completion.c (disk_dev): Removed.
45299 (print_simple_completion): Likewise.
45300 (print_partition_completion): Likewise.
45301 (print_func): New global variable.
45302 (add_completion): Do not take the arguments WHAT or PRINT any
45303 longer. Added a new argument TYPE. Instead of printing directly,
45304 call PRINT_FUNC if not NULL.
45305 All callers changed.
45306 (complete_device): Use a local variable DEV instead of
45307 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45308 (grub_normal_do_completion): Take a new argument HOOK. Do not
45309 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45310 empty string, return NULL instead.
45311 All callers changed.
45312
45313 * normal/cmdline.c (print_completion): New function.
45314
45315 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45316 to HOOK.
45317 All callers changed.
45318
45319 * kern/disk.c (grub_print_partinfo): Removed.
45320
45321 * include/grub/partition.h (struct grub_partition_map): Add a new
45322 argument DISK into HOOK of ITERATE.
45323 (grub_partition_iterate): Add a new argument DISK to HOOK.
45324
45325 * include/grub/normal.h (enum grub_completion_type): New enum.
45326 (grub_completion_type_t): New type.
45327 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45328 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45329 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45330 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45331 (grub_normal_do_completion): Added a new argument HOOK.
45332 (grub_normal_print_device_info): New prototype.
45333
45334 * include/grub/disk.h (grub_print_partinfo): Removed.
45335
45336 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45337 (normal_mod_SOURCES): Likewise.
45338 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45339 (normal_mod_SOURCES): Likewise.
45340
45341 * commands/ls.c (grub_ls_list_disks): Use
45342 grub_normal_print_device_info instead of grub_print_partinfo. Free
45343 PNAME.
45344 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45345 duplicating the code.
45346
0bd41162 453472005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45348
45349 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 45350 follow GCS more precisely.
45351 * commands/i386/pc/vbe_test.c: Likewise.
45352 * include/grub/i386/pc/vbe.h: Likewise.
45353 * term/i386/pc/vesafb.c: Likewise.
45354 * video/i386/pc/vbe.c: Likewise.
0bd41162 45355
6323696a 453562005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45357
45358 * DISTLIST: Added term/i386/pc/vesafb.c
45359 DISTLIST: Added video/i386/pc/vbe.c
45360 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45361 DISTLIST: Added commands/i386/pc/vbe_test.c.
45362 * commands/i386/pc/vbe_list_modes.c: New file.
45363 * commands/i386/pc/vbe_test.c: Likewise.
45364 * term/i386/pc/vesafb.c: Likewise.
45365 * video/i386/pc/vbe.c: Likewise.
45366 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45367 (grub_vbe_probe) Added prototype.
45368 (grub_vbe_set_video_mode) Likewise.
45369 (grub_vbe_get_video_mode) Likewise.
45370 (grub_vbe_get_video_mode_info) Likewise.
45371 (grub_vbe_set_pixel_rgb) Likewise.
45372 (grub_vbe_set_pixel_index) Likewise.
45373 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45374 (pkgdata_MODULES): Added vesafb.mod.
45375 (pkgdata_MODULES): Added vbe_list_modes.mod.
45376 (pkgdata_MODULES): Added vbe_test.mod.
45377 (vbe_mod_SOURCES): Added.
45378 (vbe_mod_CFLAGS): Likewise.
45379 (vesafb_mod_SOURCES): Likewise.
45380 (vesafb_mod_CFLAGS): Likewise.
45381 (vbe_list_modes_mod_SOURCES): Likewise.
45382 (vbe_list_modes_mod_CFLAGS): Likewise.
45383 (vbe_test_mod_SOURCES): Likewise.
45384 (vbe_test_mod_CFLAGS): Likewise.
45385
0a74e62f 453862005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45387
0a74e62f 45388 * normal/command.c (grub_command_execute): If INTERACTIVE is
45389 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45390 CMDLINE. Disable the pager if INTERACTIVE is true.
45391 All callers are changed.
45392
45393 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45394 before reading a config file.
45395 * normal/main.c (read_config_file): Even if a command is not
45396 found, register it if it is within an entry.
45397
45398 * util/grub-emu.c: Include sys/types.h and unistd.h.
45399 (options): Added --hold.
45400 (struct arguments): Added a new member "hold".
45401 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45402 missing.
45403 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45404 cleared by a debugger, if it is not zero.
45405
45406 * include/grub/normal.h (grub_command_execute): Add an argument
45407 INTERACTIVE.
45408
e51f85ae 454092005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45410
45411 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45412
e9c6f39b 454132005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45414
45415 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45416 program with another one, because the old one didn't detect a bug
45417 in gcc-3.4. Always use regparm 2, because the new test is still
45418 not enough for gcc-4.0. Someone must investigate a simple test
45419 case which detects a bug in gcc-4.0.
45420
8de3495c 454212005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45422
45423 * DISTLIST: Added normal/completion.c.
45424
45425 * normal/completion.c: New file.
f19dbdb7 45426
8de3495c 45427 * term/i386/pc/console.c (grub_console_getwh): New function.
45428 (grub_console_term): Assign grub_console_getwh to getwh.
45429
45430 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45431 function is defined in normal/completion.c as
45432 grub_normal_do_completion.
45433 (grub_cmdline_get): Use grub_normal_do_completion instead of
45434 grub_tab_complete.
45435
45436 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45437 returns non-zero, otherwise return 0.
45438 (grub_partition_iterate): First, probe the partition map. Then,
45439 call ITERATE only for this partition map.
45440
45441 * kern/misc.c (grub_strncmp): Rewritten.
45442
45443 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45444 returns non-zero. Otherwise return 0.
45445
45446 * include/grub/partition.h (grub_partition_map_iterate): Return
45447 int instead of void.
45448
45449 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45450
45451 * include/grub/misc.h (grub_strncmp): Change the type of N to
45452 grub_size_t.
45453
45454 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45455 of void.
45456
45457 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 45458 unsigned explicitly before comparing it with I.
8de3495c 45459
45460 * kern/main.c (grub_env_write_root): Add the attribute unused into
45461 VAR.
45462
45463 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45464 normal/completion.c.
45465 (normal_mod_SOURCES): Likewise.
45466 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45467 (normal_mod_SOURCES): Likewise.
45468
45469 * normal/command.c (grub_iterate_commands): If ITERATE returns
45470 non-zero, return one immediately.
45471
e85e144b 454722005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45473
45474 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45475 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45476 descriptions.
45477 (grub_vbe_get_controller_info): New function.
45478 (grub_vbe_get_mode_info): Likewise.
45479 (grub_vbe_set_mode): Likewise.
45480 (grub_vbe_get_mode): Likewise.
45481 (grub_vbe_set_memory_window): Likewise.
45482 (grub_vbe_get_memory_window): Likewise.
45483 (grub_vbe_set_scanline_length): Likewise.
45484 (grub_vbe_get_scanline_length): Likewise.
45485 (grub_vbe_set_display_start): Likewise.
45486 (grub_vbe_get_display_start): Likewise.
45487 (grub_vbe_set_palette_data): Likewise.
45488 * include/grub/i386/pc/vbe.h: New file.
45489
c46153d2 454902005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45491
45492 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45493 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45494 * DISTLIST: Likewise.
45495 * kern/ieee1275/of.c: Moved to ...
45496 * kern/ieee1275/ieee1275.c: ... here.
45497
0cb90c45 454982005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45499
45500 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45501 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45502 Pass 0 as `end' parameter to grub_strtoul().
45503
a19fb360 455042005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45505
45506 * include/grub/powerpc/ieee1275/console.h: Do not include
45507 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45508 ifdef.
45509 (grub_console_cur_color): Remove i386-specific prototype.
45510 (grub_console_real_putchar): Likewise.
45511 (grub_console_checkkey): Likewise.
45512 (grub_console_getkey): Likewise.
45513 (grub_console_getxy): Likewise.
45514 (grub_console_gotoxy): Likewise.
45515 (grub_console_cls): Likewise.
45516 (grub_console_setcursor): Likewise.
45517 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45518 Include <grub/machine/console.h>.
45519 * term/ieee1275/ofconsole.c: Likewise.
45520
4ac9bd04 455212005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45522
45523 * Makefile.in (LIBLZO): New variable.
45524
45525 * configure.ac: Check for LZO version 2.
45526
45527 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45528 lzo/lzo1x.h instead of lzo1x.h.
45529
45530 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45531 of -llzo.
45532
45533 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45534 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45535
45536 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45537 copying the data from PARTITION to P.
45538
f4917dfd 455392005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45540
45541 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45542 negative, unload the module.
45543
45544 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45545 map is "pc_partition_map" but not "pc".
45546 (usage): Fix the description. The options are --boot-image and
45547 --core-image but not --boot-file or --core-file.
45548 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45549 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45550 DEFAULT_DIRECTORY.
45551
45552 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45553 --core-file. Specify INSTALL_DEVICE as an argument.
45554
45555 * util/console.c: Include config.h.
45556 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45557 [HAVE_NCURSES_H]: Include ncurses.h.
45558 [HAVE_CURSES_H]: Include curses.h.
45559 [!A_NORMAL] (A_NORMAL): Defined as zero.
45560 [!A_STANDOUT] (A_STANDOUT): Likewise.
45561
45562 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45563 -lncurses.
45564 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45565
45566 * configure.ac: Check for curses libraries and headers.
45567
45568 * Makefile.in (LIBCURSES): New variable.
45569
45570 * genmk.rb (Script::rule): Set the executable bits.
45571
45572 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45573 name of the PC partition map is "pc_partition_map" but not "pc".
45574
0e143073 455752005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45576
45577 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45578 (modules): Likewise.
45579 (usage): Added descriptions for --modules and --grub-probefs.
45580 Handle --modules and --grub-probefs. Save the arguments in MODULES
45581 and GRUB_PROBEFS, respectively.
45582 Auto-detect a filesystem module against GRUBDIR. If the result is
45583 empty and modules are not specified explicitly, abort the
45584 installation. Add the result to MODULES.
45585
45586 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45587 disk/powerpc/ieee1275/ofdisk.c,
45588 include/grub/powerpc/ieee1275/init.h and
45589 term/powerpc/ieee1275/ofconsole.c.
45590 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45591 term/ieee1275/ofconsole.c.
45592
45593 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45594
45595 * COPYING: Upgraded to the latest version. Only the address of the
45596 FSF office has changed.
f19dbdb7 45597
efd6e6d5 455982005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45599
45600 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45601 kern/ieee1275.c with kern/ieee1275/of.c.
45602
45603 * kern/ieee1275.c: Moved to ...
45604 * kern/ieee1275/of.c: ... here.
45605
8ceafda2 456062005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45607
45608 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 45609 readability.
8ceafda2 45610
45611 * config.guess: Updated to the latest version from gnulib.
45612 * config.sub: Likewise.
45613 * install.sh: Likewise.
45614 * mkinstalldirs: Likewise.
45615
45616 * include/grub/console.h: Removed. This file is arch-specific. Do
45617 not put this in include/grub.
45618
45619 * include/grub/i386/pc/console.h: Resurrected.
45620
45621 * util/console.c: Include grub/machine/console.h instead of
45622 grub/console.h.
45623 * util/grub-emu.c: Likewise.
45624
267f6cd9 456252005-08-04 Marco Gerards <metgerards@student.han.nl>
45626
45627 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45628 hardcoded value.
f19dbdb7 45629
267f6cd9 45630 From Vincent Pelletier <subdino2004@yahoo.fr>
45631 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45632 Redefined to use grub_getwh.
45633 (grub_term): New member named getwh.
45634 (grub_getwh): New prototype.
45635 * kern/term.c (grub_getwh): New function.
45636 * term/i386/pc/console.c (grub_console_getwh): New function.
45637 (grub_console_term): New member `getwh'.
45638 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45639 (grub_vga_term): New member `getwh'.
0b5abe02 45640 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 45641 grub_ssize_t.
45642 (grub_ofconsole_getw): New function.
45643 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45644 (grub_ofconsole_term): New field named getwh and new initial
45645 value.
45646
3be7266d 456472005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45648
45649 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45650 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45651 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45652 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45653 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45654 of <grub/machine/ieee1275.h>.
45655 * commands/ieee1275/reboot.c: Likewise.
45656 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45657 * kern/ieee1275.c: ... to here. All users updated. Change all
45658 parameter structs to use new type `grub_ieee1275_cell_t'.
45659 * term/powerpc/ieee1275/ofconsole.c: Move ...
45660 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45661 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45662 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45663 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45664 to return int.
45665 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45666 Remove unused prototypes. All users updated.
45667 * include/grub/powerpc/ieee1275/console.h: Removed.
45668 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45669 `grub_ieee1275_cell_t'.
45670 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45671 Cast comparisons with -1 to the correct type.
45672 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45673 type to match `grub_ieee1275_entry_fn'.
45674
8b5f3938 456752005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45676
45677 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45678
45679 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45680 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45681 partmap/sun.c.
45682 (grub_probefs_SOURCES): New variable.
45683
45684 * util/i386/pc/grub-probefs.c: New file.
45685
45686 * util/i386/pc/grub-setup.c (main): Call
45687 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45688 grub_hfs_init and grub_jfs_init to initialize the system. Call
45689 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45690 grub_pc_partition_map_fini to finish the system.
45691
ea409713 456922005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45693
45694 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45695 function.
45696 (grub_multiboot_load_elf32): Likewise.
45697 (grub_multiboot_is_elf64): Likewise.
45698 (grub_multiboot_load_elf64): Likewise.
45699 (grub_multiboot_load_elf): Likewise.
45700 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45701 an ELF32 or ELF64 file.
45702 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45703
45704 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45705 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45706 NULL before calling FS->LABEL.
45707 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45708 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45709 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45710 before calling FS->LABEL.
45711
141a288b 457122005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45713
45714 * util/i386/pc/grub-install.in (datadir): New variable.
45715 (libdir): Removed.
45716 (pkgdatadir): New variable.
45717 (pkglibdir): Removed.
45718
0d5f8a54 457192005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45720
45721 * DISTLIST: Added util/i386/pc/grub-install.in.
45722
45723 * util/i386/pc/grub-install.in: New file.
45724
45725 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45726 (grub_install_SOURCES): Likewise.
45727
45728 * genmk.rb: Added support for scripts.
45729 (Script): New class.
45730 (scripts): New variable.
45731
45732 * Makefile.in (install-local): Install sbin_SCRIPTS by
45733 INSTALL_SCRIPT.
45734 (uninstall): Remove sbin_SCRIPTS.
45735
45736 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45737 device, try to get a GRUB device by
45738 grub_util_biosdisk_get_grub_dev.
45739 Free DEST_DEV.
45740
45741 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45742 description for --device-map.
45743
5f968e1e 457442005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45745
45746 Change the semantics of variable hooks. They now return strings
45747 instead of error values.
f19dbdb7 45748
5f968e1e 45749 * util/i386/pc/grub-setup.c: Include grub/env.h.
45750 (setup): Use grub_device_set_root instead of grub_env_set.
45751
45752 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45753 grub_env_get instead of grub_device_set_root and
45754 grub_device_get_root, respectively.
45755
45756 * kern/main.c (grub_env_write_root): New function.
45757 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45758 grub_env_set instead of grub_device_set_root.
45759
45760 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45761 many variables.
45762 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45763 rather than calling ENV->WRITE_HOOK afterwards.
45764 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45765 passing a pointer of a pointer.
45766 (grub_register_variable_hook): Change the types of "read_hook" and
45767 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45768 respectively.
45769 Allocate the default empty string on the heap, because this string
45770 may be freed later.
45771
45772 * kern/device.c: Include grub/env.h.
45773 (grub_device_set_root): Removed.
45774 (grub_device_get_root): Likewise.
45775 (grub_device_open): Use grub_env_get instead of
45776 grub_device_get_root.
45777
45778 * include/grub/env.h (grub_env_read_hook_t): New type.
45779 (grub_env_write_hook_t): Likewise.
45780 (grub_env_var): Change the types of "read_hook" and "write_hook"
45781 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45782 (grub_register_variable_hook): Likewise.
45783
45784 * include/grub/device.h (grub_device_set_root): Removed.
45785 (grub_device_set_root): Likewise.
45786
45787 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45788 make sure that DIRNAME terminates with '/', so that
45789 grub_fat_find_dir will fail if PATH is not a directory.
45790
45791 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45792 from DIRNAME.
45793 Use the qualifier auto for print_files and print_files_long.
45794 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45795 as a regular file.
45796 Put a newline only if there is no error.
45797 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45798 used.
45799
896f0afd 458002005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45801
45802 * kern/partition.c (grub_partition_probe): Initialize PART to
45803 NULL. Otherwise, when no partition map is registered, this returns
45804 a garbage.
45805
b28b81b2 458062005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45807
45808 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45809 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45810 valid.
45811
5f3607e0 458122005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45813
45814 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45815 information on each device, if it does not have partitions. Print
45816 "Device" instead of "Disk", because this function is not specific
45817 to disk devices.
45818
45819 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45820 static to ensure that it is put on the memory rather than a
45821 register.
45822
502c87e8 458232005-07-17 Yoshinori Okuji <okuji@enbug.org>
45824
45825 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45826 (grub_cat_init): Likewise.
45827 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45828 (options): Likewise.
45829 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45830 (grub_configfile_init): Likewise.
45831 * font/manager.c (GRUB_MOD_INIT): Likewise.
45832 * commands/help.c (GRUB_MOD_INIT): Likewise.
45833 (grub_help_init): Likewise.
45834 * normal/command.c (grub_command_init): Likewise.
45835 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45836 * disk/loopback.c (grub_loop_init): Likewise.
45837 (GRUB_MOD_INIT): Likewise.
45838 * commands/ls.c (grub_ls_init): Likewise.
45839 (GRUB_MOD_INIT): Likewise.
45840 (options): Likewise.
45841 * commands/boot.c (grub_boot_init): Likewise.
45842 (GRUB_MOD_INIT): Likewise.
45843 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45844 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45845 (GRUB_MOD_INIT): Likewise.
45846 * commands/cmp.c (grub_cmp_init): Likewise.
45847 (GRUB_MOD_INIT): Likewise.
45848
45849 * normal/arg.c: Use <> instead of "" to include header files.
45850 (SHORT_ARG_HELP): New macro.
45851 (SHORT_ARG_USAGE): Likewise.
45852 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45853 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45854 descriptions.
45855 (find_short): Check if C is 'h' or 'u' explicitly.
45856 (grub_arg_show_help): Use space characters instead of tabs. Treat
45857 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45858 are shown with --help and --usage only if they are not used for
45859 the command itself.
45860 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45861 'h' and 'u'.
45862
45863 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45864 const into "longarg". Change the type of "shortarg" to int.
45865
f806d18e 458662005-07-17 Yoshinori Okuji <okuji@enbug.org>
45867
45868 * boot/i386/pc/boot.S (boot_drive_check): New label.
45869
45870 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45871 macro.
45872
45873 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45874 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45875
e293232b 458762005-07-17 Yoshinori Okuji <okuji@enbug.org>
45877
45878 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45879 When turning off Gate A20, skip the check and return immediately,
45880 because this is not fatal usually.
45881
ebedfd00 458822005-07-17 Yoshinori Okuji <okuji@enbug.org>
45883
45884 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45885 be 0x7C00 instead of 0x8000.
45886
45887 * boot/i386/pc/pxeboot.S: Rewritten.
45888
45889 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45890 EXT_C.
45891 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45892 result.
45893
654fc59f 458942005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45895
45896 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45897 robustness. This routine now supports a BIOS call and System
45898 Control Port A to modify the gate A20.
45899
45900 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45901 Increased to 0x440.
45902
09f9923f 459032005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45904
45905 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45906 device path and resulting ihandle.
45907 (grub_ofdisk_close): dprintf the ihandle being closed.
45908 (grub_ofdisk_read): dprintf function parameters.
45909 * kern/mm.c (grub_mm_init_region): Likewise.
45910 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45911 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45912 size, and boot arguments.
45913 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45914 before loading into memory.
45915 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45916 before loading into memory.
45917
7ef504d8 459182005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45919
45920 * kern/mm.c: Added much documentation.
45921 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45922 8, set to 5 instead of 8.
45923
e0f050c2 459242005-07-10 Yoshinori Okuji <okuji@enbug.org>
45925
45926 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45927
45928 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45929 (grub_mkdevicemap_SOURCES): New variable.
45930
45931 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45932 lib/device.c of GRUB Legacy.
45933
7224189a 459342005-07-10 Yoshinori Okuji <okuji@enbug.org>
45935
45936 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45937 instead of PATH is NULL.
45938
68c864eb 459392005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45940
45941 * commands/cmp.c (BUFFER_SIZE): New macro.
45942 (grub_cmd_cmp): Close the right file at the right time. Compare
45943 only data just read. Don't report files of different size as
45944 identical. Dynamically allocate buffers. Move variable
45945 declarations at the beginning of function.
45946
e6f3e614 459472005-07-09 Yoshinori Okuji <okuji@enbug.org>
45948
45949 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45950 reverse.
45951
f8f1559a 459522004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45953
45954 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45955 when backspace is pressed at beginning of line.
45956
39c9d41d 459572005-07-03 Yoshinori Okuji <okuji@enbug.org>
45958
45959 * DISTLIST: Added genfslist.sh.
45960
45961 * normal/main.c (fs_module_list): New variable.
45962 (autoload_fs_module): New function.
45963 (read_fs_list): Likewise.
45964 (grub_normal_execute): Call read_fs_list.
45965
45966 * kern/fs.c (grub_fs_autoload_hook): New variable.
45967 (grub_fs_probe): Added support for auto-loading.
45968
45969 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45970 (grub_fs_module_list_t): New type.
45971
45972 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45973 (grub_fs_autoload_hook): New prototype.
45974
45975 * genfslist.sh: New file.
f19dbdb7 45976
39c9d41d 45977 * genmk.rb: Added a rule to generate a filesystem list.
45978
121c1d83 459792005-06-30 Marco Gerards <metgerards@student.han.nl>
45980
45981 * configure.ac: Fix the test for cross-compiling.
45982
45983 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45984 define GRUB_UTIL anymore.
45985
45986 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45987 so this function works on other systems than just big endian.
45988 (load_modules): Likewise.
45989 (add_segments): Likewise.
45990
e75d76e1 459912005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45992
45993 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45994 contains `l' modifier, get a long from va_arg().
45995
50b5a0a7 459962005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45997
45998 * kern/mm.c (grub_free): If the next free block which is being
45999 merged is the first free block, set the first block to the block
46000 being freed.
46001 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
46002
89371b20 460032005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46004
46005 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
46006 `grub_ieee1275_chosen'.
46007
168d6e58 460082005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46009
46010 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
46011 (grub_ieee1275_chosen): New variable.
46012 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
46013 `chosen'.
46014 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
46015 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46016 Rename first argument to `phandle' for consistency.
46017 (grub_ieee1275_get_property_length): Likewise.
46018 (grub_ieee1275_next_property): Likewise. Change type of first argument
46019 to grub_ieee1275_phandle_t.
46020 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
46021 Move export next to declaration.
46022 (grub_ieee1275_chosen): New variable.
46023 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
46024 Correct cosmetic typo.
46025 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
46026 `grub_ieee1275_chosen'.
46027 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
46028 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
46029 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
46030 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
46031 `grub_ieee1275_chosen'.
46032
ca5baa3f 460332005-05-10 Hollis Blanchard <hollis@penguinppc.org>
46034
46035 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
46036 /chosen/bootargs.
46037 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
46038 /chosen/bootargs as "variable=value" pairs.
46039
708b345f 460402005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
46041
46042 * include/grub/misc.h (grub_dprintf): New macro.
46043 (grub_real_dprintf): New prototype.
46044 (grub_strword): Likewise.
46045 (grub_iswordseparator): Likewise.
46046 * kern/misc.c (grub_real_dprintf): New function.
46047 (grub_strword): Likewise.
46048 (grub_iswordseparator): Likewise.
46049
f4c5e67c 460502005-04-30 Hollis Blanchard <hollis@penguinppc.org>
46051
46052 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
46053 (roundup): Remove macro.
46054 (grub_ieee1275_flags): Make static.
46055 (grub_ieee1275_realmode): Remove.
46056 (grub_ieee1275_test_flag): New function.
46057 (grub_ieee1275_set_flag): Likewise.
46058 (find_options): Rename to `grub_ieee1275_find_options'; update
46059 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
46060 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
46061 (cmain): New prototype.
46062 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
46063 `grub_ieee1275_flags' directly.
46064 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
46065 machine/biosdisk.h.
46066 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
46067 Don't include grub/machine/init.h.
46068 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
46069 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46070 Remove prototype.
46071 (grub_ieee1275_realmode): Likewise.
46072 (grub_ieee1275_flag): New enum.
46073 (grub_ieee1275_test_flag): New prototype.
46074 (grub_ieee1275_set_flag): New prototype.
46075 * include/grub/powerpc/ieee1275/init.h: Remove file.
46076 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
46077 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
46078 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
46079 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
46080 comment.
46081 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
46082 `grub_ieee1275_test_flag'.
46083 (grub_ieee1275_encode_devname): Likewise.
46084
ed16607e 460852005-04-21 Hollis Blanchard <hollis@penguinppc.org>
46086
46087 * include/grub/powerpc/ieee1275/ieee1275.h
46088 (grub_ieee1275_encode_devname): New prototype.
46089 (grub_ieee1275_get_filename): Likewise.
46090 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
46091 function.
46092 (grub_set_prefix): Likewise.
46093 (grub_machine_init): Call grub_set_prefix.
46094 * kern/powerpc/ieee1275/openfw.c: Fix typos.
46095 (grub_parse_type): New enum.
46096 (grub_ieee1275_get_devargs): New function.
46097 (grub_ieee1275_get_devname): Likewise.
46098 (grub_ieee1275_parse_args): Likewise.
46099 (grub_ieee1275_get_filename): Likewise.
46100 (grub_ieee1275_encode_devname): Likewise.
46101
be369920 461022005-03-30 Marco Gerards <metgerards@student.han.nl>
46103
46104 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
46105 `grub_loader_unset'.
46106
a5ce3a4a 461072005-03-26 Hollis Blanchard <hollis@penguinppc.org>
46108
46109 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
46110 instead of grub_ieee1275_interpret.
46111 (grub_halt_init): New function.
46112 (grub_halt_fini): Likewise.
46113 (GRUB_MOD_INIT): Correct message grammar.
46114 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
46115 instead of grub_ieee1275_interpret.
46116 (grub_reboot_init): New function.
46117 (grub_reboot_fini): Likewise.
46118 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
46119 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
46120 util/i386/pc/misc.c with commands/ieee1275/halt.c,
46121 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
46122 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
46123 function.
46124 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
46125 Add prototype.
46126 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
46127 prototype.
46128 (grub_halt): Likewise.
46129 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
46130 (cmain): Remove __attribute__((unused)).
46131 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
46132 (grub_heap_len): Likewise.
46133 (grub_machine_fini): New function.
46134 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
46135 (grub_halt): Likewise.
46136 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
46137 function.
46138 * util/powerpc/ieee1275/misc.c: New file.
46139
0058f771 461402005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
46141
46142 * DISTLIST: New file.
46143 * gendistlist.sh: Likewise.
f19dbdb7 46144
0058f771 46145 * Makefile.in (COMMON_DISTFILES): Removed.
46146 (BOOT_DISTFILES): Likewise.
46147 (CONF_DISTFILES): Likewise.
46148 (DISK_DISTFILES): Likewise.
46149 (FS_DISTFILES): Likewise.
46150 (INCLUDE_DISTFILES): Likewise.
46151 (KERN_DISTFILES): Likewise.
46152 (LOADER_DISTFILES): Likewise.
46153 (TERM_DISTFILES): Likewise.
46154 (UTIL_DISTFILES): Likewise.
46155 (DISTFILES): Likewise.
46156 (uninstall): Uninstall files in $(pkgdata_DATA).
46157 (DISTLIST): New target.
46158 (distdir): Use the contents of the file DISTLIST to get a list of
46159 distributed files.
46160
46b3b8a5 461612005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
46162
46163 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
46164 descriptor. This is ported from GRUB Legacy.
46165
46166 * gencmdlist.sh: Added an extra semicolon to make it work with
46167 old sed versions. Reported by Robert Bihlmeyer
46168 <robbe@orcus.priv.at>.
46169
5822ff87 461702005-03-08 Yoshinori Okuji <okuji@enbug.org>
46171
46172 Automatic loading of commands is supported.
f19dbdb7 46173
5822ff87 46174 * normal/main.c (read_command_list): New function.
46175 (grub_normal_execute): Call read_command_list.
46176
46177 * normal/command.c (grub_register_command): Return zero or CMD.
46178 Allocate CMD->NAME from the heap.
46179 Initialize CMD->MODULE_NAME to zero.
46180 Find the same name as well. If the same command is found and it is
46181 a dummy command, overwrite members. If it is not a dummy command,
46182 return zero.
46183 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
46184 (grub_command_find): If a dummy command is found, load a module
46185 and retry to find a command only once.
46186
46187 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
46188 make sure that each command is loaded.
46189
46190 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
46191 macro.
46192 (struct grub_command): Remove const from the member `name'.
46193 Add a new member `module_name'.
46194 (grub_register_command): Return grub_command_t.
46195
46196 * commands/help.c (grub_cmd_help): Call grub_command_find to make
46197 sure that each command is loaded.
46198
46199 * genmk.rb (PModule::rule): Specify a module name without the
46200 suffix ".mod" to gencmdlist.sh.
46201
7b1f4b57 462022005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46203
46204 * gencmdlist.sh: New file.
f19dbdb7 46205
7b1f4b57 46206 * genmk.rb (PModule::rule): Generate a rule for a command list.
46207 Clean command.lst.
46208 Generate command.lst from $(COMMANDFILES).
46209
46210 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
46211 (DATA): Added $(pkgdata_DATA).
46212 (install-local): Install files in $(pkgdata_DATA).
46213
062aaf39 462142005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46215
46216 * term/i386/pc/vga.c (debug_command): Removed.
46217 (GRUB_MOD_INIT): Do not register the command "debug".
46218
46219 From Hollis Blanchard:
46220 * commands/configfile.c: New file.
46221 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46222 commands/configfile.c.
46223 (pkgdata_MODULES): Added configfile.mod.
46224 (configfile_mod_SOURCES): New variable.
46225 (configfile_mod_CFLAGS): Likewise.
46226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46227 commands/configfile.c.
46228 (pkgdata_MODULES): Added configfile.mod.
46229 (configfile_mod_SOURCES): New variable.
46230 (configfile_mod_CFLAGS): Likewise.
46231 * util/grub-emu.c (main): Call grub_configfile_init and
46232 grub_configfile_fini.
46233 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
46234 prototype.
46235 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 46236
cee01aa6 462372005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46238
46239 * normal/arg.c (grub_arg_show_help): Do not show the bug report
46240 address.
46241
46242 * commands/help.c (grub_cmd_help): Do not print newlines after
46243 the last command in print_command_help.
46244
93f3a1d8 462452005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46246
46247 * commands/default.h: New file.
46248 * commands/timeout.h: Likewise.
46249 * normal/context.c: Likewise.
f19dbdb7 46250
93f3a1d8 46251 * util/misc.c: Do not include sys/times.h.
46252 Include sys/time.h and grub/machine/time.h.
46253 (grub_get_rtc): Rewritten with gettimeofday.
46254
46255 * util/grub-emu.c (main): Call grub_default_init and
46256 grub_timeout_init before grub_normal_init, and call
46257 grub_timeout_fini and grub_default_fini after grub_main.
46258
46259 * util/console.c (grub_ncurses_checkkey): Return the read
46260 character or -1.
46261
46262 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
46263 timeouts.
46264
46265 * normal/main.c (read_config_file): Push MENU. If this fails,
46266 print an error and wait for a user input.
46267 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46268 If a menu is empty or an error occurs, pop MENU.
46269 (grub_normal_execute): Pop and free MENU after grub_menu_run
46270 returns.
46271
46272 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46273
46274 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46275 include time.h.
46276 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46277 without GRUB_UTIL.
46278 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46279 time.h.
46280 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46281 without GRUB_UTIL.
46282
46283 * include/grub/normal.h (struct grub_menu_list): New struct.
46284 (grub_menu_list_t): New type.
46285 (struct grub_context): New struct.
46286 (grub_context_t): New type.
46287 (grub_register_command): Got rid of EXPORT_FUNC.
46288 (grub_unregister_command): Likewise.
46289 (grub_context_get): New prototype.
46290 (grub_context_get_current_menu): Likewise.
46291 (grub_context_push_menu): Likewise.
46292 (grub_context_pop_menu): Likewise.
46293 [GRUB_UTIL] (grub_default_init): Likewise.
46294 [GRUB_UTIL] (grub_default_fini): Likewise.
46295 [GRUB_UTIL] (grub_timeout_init): Likewise.
46296 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46297
46298 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46299 commands/timeout.c and normal/context.c.
46300 (pkgdata_MODULES): Added default.mod and timeout.mod.
46301 (normal_mod_SOURCES): Added normal/context.c.
46302 (default_mod_SOURCES): New variable.
46303 (default_mod_CFLAGS): Likewise.
46304 (timeout_mod_SOURCES): Likewise.
46305 (timeout_mod_CFLAGS): Likewise.
46306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46307 conf/i386-pc.rmk.
46308 (pkgdata_MODULES): Added default.mod and timeout.mod.
46309 (normal_mod_SOURCES): Added normal/context.c.
46310 (default_mod_SOURCES): New variable.
46311 (default_mod_CFLAGS): Likewise.
46312 (timeout_mod_SOURCES): Likewise.
46313 (timeout_mod_CFLAGS): Likewise.
46314
46315 * Makefile.in (all-local): Added $(MKFILES).
46316
4ed2e1dd 463172005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46318
46319 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46320 (grub_emu_SOURCES): Likewise.
46321 (pkgdata_MODULES): Add `sun.mod'.
46322 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46324 `partmap/sun.c'.
46325 (pkgdata_MODULES): Add `sun.mod'.
46326 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46327 * include/grub/partition.h (grub_sun_partition_map_init): New
46328 prototype.
46329 (grub_sun_partition_map_fini): Likewise.
46330 * partmap/sun.c: New file.
46331 * util/grub-emu.c (main): Initialize and de-initialize the sun
46332 partitionmap support.
46333
4d4e372e 463342005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46335
46336 This implements an Emacs-like menu entry editor.
f19dbdb7 46337
4d4e372e 46338 * normal/menu_entry.c: New file.
f19dbdb7 46339
4d4e372e 46340 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46341 characters to ASCII.
46342 (saved_char): New variable.
46343 (grub_ncurses_checkkey): Rewritten completely.
46344 (grub_ncurses_getkey): Likewise.
46345 (grub_ncurses_init): Call raw instead of cbreak.
46346
46347 * normal/menu.c (print_entry): Do not put a space.
46348 (init_page): Renamed to ...
46349 (grub_menu_init_page): ... this. All callers changed.
46350 (edit_menu_entry): Removed.
46351 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46352
46353 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46354
46355 * kern/misc.c (grub_vprintf): Call grub_refresh.
46356
46357 * normal/menu.c (DISP_LEFT): Renamed to ...
46358 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46359 * normal/menu.c (DISP_UP): Renamed to ...
46360 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46361 * normal/menu.c (DISP_RIGHT): Renamed to ...
46362 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46363 * normal/menu.c (DISP_DOWN): Renamed to ...
46364 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46365 * normal/menu.c (DISP_HLINE): Renamed to ...
46366 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46367 * normal/menu.c (DISP_VLINE): Renamed to ...
46368 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46369 * normal/menu.c (DISP_UL): Renamed to ...
46370 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46371 * normal/menu.c (DISP_UR): Renamed to ...
46372 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46373 * normal/menu.c (DISP_LL): Renamed to ...
46374 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46375 * normal/menu.c (DISP_LR): Renamed to ...
46376 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46377 * normal/menu.c (TERM_WIDTH): Renamed to ...
46378 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46379 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46380 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46381 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46382 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46383 * normal/menu.c (TERM_MARGIN): Renamed to ...
46384 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46385 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46386 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46387 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46388 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46389 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46390 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46391 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46392 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46393 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46394 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46395 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46396 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46397 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46398 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46399 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46400 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46401 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46402 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46403 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46404 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46405 All callers changed.
46406
46407 * include/grub/normal.h: New prototype.
46408
46409 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46410 normal/menu_entry.c.
46411 (normal_mod_SOURCES): Likewise.
46412 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46413 (normal_mod_SOURCES): Likewise.
46414
e6b92c8a 464152005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46416
46417 * include/grub/normal.h (grub_halt_init): New prototype.
46418 (grub_halt_fini): Likewise.
46419 (grub_reboot_init): Likewise.
46420 (grub_reboot_fini): Likewise.
46421
46422 * util/grub-emu.c: Include signal.h.
46423 (main_env): New global variable.
46424 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46425 catch C-c.
46426 (grub_machine_fini): New function.
46427 (main): Call grub_halt_init and grub_reboot_init before
46428 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46429 Call setjmp with MAIN_ENV to go back afterwards.
46430 Call grub_machine_fini right before return.
46431
46432 * include/grub/util/misc.h: Include setjmp.h.
46433 (main_env): New prototype.
46434
46435 * include/grub/kernel.h (grub_machine_fini): New prototype.
46436 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46437 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46438
46439 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46440 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46441 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 46442
e6b92c8a 46443 * util/i386/pc/misc.c: New file.
f19dbdb7 46444
e6b92c8a 46445 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46446 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46447 commands/i386/pc/reboot.c.
46448
c642636f 464492005-02-14 Guillem Jover <guillem@hadrons.org>
46450
46451 * include/grub/dl.h (grub_dl_check_header): New prototype.
46452 (grub_arch_dl_check_header): Change return type to grub_err_t,
46453 remove size parameter and export function. Update all callers.
46454 * kern/dl.c (grub_dl_check_header): New function.
46455 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46456 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46457 are inside the core.
46458 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46459 independent ELF header checks.
46460 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46461 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46462 `grub_dl_check_header' instead of explicit checks. Check for the
46463 ELF type.
46464 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46465 `grub_dl_check_header' instead of explicit checks. Remove arch
46466 specific ELF header checks.
46467
e6b92c8a 46468 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46469 argument SIZE.
46470
5eabe94b 464712005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46472
46473 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46474 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46475
1b14a681 464762005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46477
46478 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 46479 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 46480 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 46481 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 46482 * partmap/amiga.c (amiga_partition_map_iterate): Return
46483 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46484 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46485
aca108aa 464862005-02-01 Guillem Jover <guillem@hadrons.org>
46487
46488 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46489 help info.
46490
c9f9c556 464912005-01-31 Marco Gerards <metgerards@student.han.nl>
46492
46493 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46494 Removed prototype.
46495 (grub_rescue_cmd_linux): New prototype.
46496 (grub_rescue_cmd_initrd): Likewise.
46497 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46498 `bi_rec'.
46499 (grub_linux_release_mem): Release the memory for the initrd.
46500 (grub_load_linux): Renamed from this...
46501 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46502 Changed `entry' not to be static. Loop over memory regions to
46503 find another one when the default fails.
46504 (grub_rescue_cmd_initrd): New function.
46505 (grub_linux_init): Remove function.
46506 (grub_linux_fini): Likewise.
46507 (GRUB_MOD_INIT): Register `initrd'.
46508 (GRUB_MOD_FINI): Unregister `initrd'.
46509 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46510 Function removed.
46511 (grub_linux_normal_fini): Likewise.
46512 (GRUB_MOD_INIT): Register `initrd'.
46513 (GRUB_MOD_FINI): Unregister `initrd'.
46514
990cf3aa 465152005-01-31 Marco Gerards <metgerards@student.han.nl>
46516
46517 * commands/help.c: New file.
46518 * normal/arg.c (show_help): Renamed to...
46519 (grub_arg_show_help): ... this.
46520 * commands/i386/pc/halt.c: New file.
46521 * commands/i386/pc/reboot.c: Likewise.
46522 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46523 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46524 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46525 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46526 variables.
46527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46528 `commands/help.c'.
46529 (pkgdata_MODULES): Add `help.mod'.
46530 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46531 * grub/i386/pc/init.h (grub_reboot): New prototype.
46532 (grub_halt): Likewise.
46533 * include/grub/normal.h (grub_arg_show_help): New prototype.
46534 (grub_help_init): Likewise.
46535 (grub_help_fini): Likewise.
46536 * util/grub-emu.c (main): Initialize and deinitialize the help
46537 command.
46538
46539 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46540
46541 * normal/command.c (grub_command_init): Fixed the description of
46542 the `set' and `unset' commands.
46543
465442005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 46545
46546 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46547 function.
46548 * commands/ieee1275/halt.c: New file.
46549 * commands/ieee1275/reboot.c: Likewise.
46550 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46551 `__attribute__ ((unused))'. Some GCS related fixed.
46552 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46553 (grub_suspend_fini): Likewise.
46554 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46555 and `halt.mod'.
46556 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46557 (halt_mod_CFLAGS): New variables.
46558 * include/grub/powerpc/ieee1275/ieee1275.h
46559 (grub_ieee1275_interpret): New prototype.
46560
1ab09cc7 465612005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46562
46563 * include/grub/misc.h (memmove): New prototype.
46564 (memcpy): Likewise.
46565
8b8cbdb2 465662005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46567
46568 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46569 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46570
e3741a27 465712005-01-22 Marco Gerards <metgerards@student.han.nl>
46572
46573 * kern/misc.c (grub_strndup): Function rewritten.
46574
776bd780 465752005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46576
46577 * normal/menu.c (TERM_WIDTH): Macro redefined.
46578 (TERM_TOP_BORDER_Y): Likewise.
46579 (draw_border): Replaced while-loop by a for-loop. Make the number
46580 of lines consistent with the number of lines displayed in
46581 print_entries. Added a margin below the rectangle.
46582 (print_entry): Make the entry fit in the rectangle.
46583 (print_entries): Display the scroll arrows next to the right
46584 border.
46585
78026bce 465862005-01-21 Marco Gerards <metgerards@student.han.nl>
46587
46588 * fs/minix.c (grub_minix_find_file): Reserve more space for
46589 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46590 `grub_strncpy' to copy `path' into it.
46591
67bbaf0f 465922005-01-21 Marco Gerards <metgerards@student.han.nl>
46593
46594 Add the loopback device, a device via which files can be accessed
46595 as devices.
f19dbdb7 46596
67bbaf0f 46597 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46598 (pkgdata_MODULES): Add loopback.mod.
46599 (loopback_mod_SOURCES): New variable.
46600 (loopback_mod_CFLAGS): Likewise.
46601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46602 `disk/loopback.c'.
46603 (pkgdata_MODULES): Add loopback.mod.
46604 (loopback_mod_SOURCES): New variable.
46605 (loopback_mod_CFLAGS): Likewise.
46606 * disk/loopback.c: new file.
46607 * include/grub/normal.h (grub_loop_init): New prototype.
46608 (grub_loop_fini): New prototype.
46609 * util/grub-emu.c (main): Initialize and de-initialize loopback
46610 support.
46611 * include/grub/disk.h (grub_disk_dev_id): Add
46612 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46613
6f1c18bd 466142005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46615
46616 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46617 function.
46618 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46619 (suspend_mod_SOURCES): New variable.
46620 (suspend_mod_CFLAGS): Likewise.
46621 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46622 New prototype.
46623 * commands/ieee1275/suspend.c: New file.
46624
b38551da 466252005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46626
46627 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 46628 ((unused))' to `__attribute__ ((used))'.
b38551da 46629 (GRUB_MOD_FINI): Likewise.
46630 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46631 * genmk.rb (PModule): Assign space to common symbols when linking
46632 modules.
46633
777aff39 466342005-01-20 Marco Gerards <metgerards@student.han.nl>
46635
46636 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46637 `unsigned' arguments to `grub_size_t'.
46638 (grub_malloc): Likewise.
46639 (grub_realloc): Likewise.
46640 (grub_memalign): Likewise.
46641 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46642 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46643 * util/misc.c (grub_malloc): Likewise.
46644 (grub_realloc): Likewise.
46645 * kern/mm.c (get_header_from_pointer): Change the casts to
46646 `unsigned' into a cast to `grub_size_t'.
46647
46648 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46649 point to `currnode' when `currnode' is changed.
46650
46651 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46652 Schottelius <nico-linux@schottelius.org>.
46653
d0ff18e1 466542005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46655
46656 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46657 (note_path): Remove variable.
46658 (GRUB_IEEE1275_NOTE_NAME): New macro.
46659 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46660 (grub_ieee1275_note_hdr): New structure.
46661 (grub_ieee1275_note_desc): Likewise.
46662 (grub_ieee1275_note): Likewise.
46663 (load_note): Remove `dir' argument. All callers updated. Remove
46664 `note_img' and `path'. Do not load a file from `note_path'.
46665 Initialize a struct grub_ieee1275_note and write that to `out'.
46666 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46667
4ca7004c 466682005-01-05 Marco Gerards <metgerards@student.han.nl>
46669
46670 * util/misc.c (grub_util_read_image): Revert last change. It
46671 called `grub_util_read_at', which seeks from the beginning of the
46672 file.
46673
0b412211 466742005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46675
46676 * TODO: Add note about endianness in grub-mkimage.
46677 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46678 section.
46679 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46680 (grub_mkimage_SOURCES): New target.
46681 * include/grub/kernel.h (grub_start_addr): Remove variable.
46682 (grub_end_addr): Likewise.
46683 (grub_total_module_size): Likewise.
46684 (grub_kernel_image_size): Likewise.
46685 (GRUB_MODULE_MAGIC): New constant.
46686 (grub_module_info): New structure.
46687 (grub_arch_modules_addr): New prototype.
46688 (grub_get_end_addr): Remove prototype.
46689 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46690 * include/grub/powerpc/ieee1275/kernel.h: New file.
46691 * include/grub/util/misc.h (grub_util_get_fp_size): New
46692 prototype.
46693 (grub_util_read_at): Likewise.
46694 (grub_util_write_image_at): Likewise.
46695 * kern/main.c (grub_get_end_addr): Remove function.
46696 (grub_load_modules): Call grub_arch_modules_addr instead of using
46697 grub_end_addr. Look for a grub_module_info struct in memory. Use
46698 the grub_module_info fields instead of calling grub_get_end_addr
46699 as loop conditions. Move grub_add_unused_region code here.
46700 (grub_add_unused_region): Remove function.
46701 * kern/i386/pc/init.c: Include grub/cache.h.
46702 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46703 one call to add_mem_region.
46704 (grub_arch_modules_addr): New function.
46705 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46706 (grub_total_module_size): Likewise.
46707 Include grub/machine/kernel.h.
46708 (grub_arch_modules_addr): New function.
46709 * util/grub-emu.c (grub_end_addr): Remove variable.
46710 (grub_total_module_size): Likewise.
46711 (grub_arch_modules_addr): New function.
46712 * util/misc.c: Include unistd.h.
46713 (grub_util_get_fp_size): New function.
46714 (grub_util_read_at): Likewise.
46715 (grub_util_write_image_at): Likewise.
46716 (grub_util_read_image): Call grub_util_read_at.
46717 (grub_util_write_image): Call grub_util_write_image_at.
46718 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46719 additional memory in kernel_img for a struct grub_module_info.
46720 Fill in that grub_module_info.
46721 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46722
458786f8 467232005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46724
46725 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46726 New function.
46727 * include/grub/powerpc/ieee1275/ieee1275.h
46728 (grub_ieee1275_milliseconds): New prototype.
46729 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46730 Change to 1000.
46731 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46732 grub_ieee1275_milliseconds.
46733
ac507d1b 467342005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46735
46736 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46737 variable.
46738 (find_options): New function.
46739 (cmain): Call find_options.
46740 * include/grub/powerpc/ieee1275/ieee1275.h
46741 (grub_ieee1275_realmode): New extern variable.
46742 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46743 grub_map if grub_ieee1275_realmode is false.
46744
6b8fd1c4 467452004-12-29 Marco Gerards <metgerards@student.han.nl>
46746
46747 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46748 lines are inserted and make it work like readline. Reported by
46749 Vincent Pelletier <subdino2004@yahoo.fr>.
46750
8514a1e0 467512004-12-28 Marco Gerards <metgerards@student.han.nl>
46752
46753 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46754
46755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46756 `kern/powerpc/cache.S'.
46757
924b6140 467582004-12-27 Marco Gerards <metgerards@student.han.nl>
46759
46760 * genmk.rb: Handle the `Program' class in the main loop. Written
46761 by Johan Rydberg <jrydberg@gnu.org>.
46762 (Program): New class.
46763 (programs): New variable.
46764 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46765 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46766 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46767 (help_arch): Function removed.
46768 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46769 `powerpc/libgcc.h' and `loader.h'.
46770 (pkgdata_PROGRAMS): New variable.
46771 (sbin_UTILITIES): Variable removed.
46772 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46773 (grubof_SOURCES): Variable re-defined so it only includes the
46774 core functionality.
46775 (grubof_CFLAGS): Remove `-DGRUBOF'.
46776 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46777 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46778 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46779 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46780 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46781 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46782 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46783 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46784 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46785 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46786 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46787 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46788 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46789 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46790 (pc_mod_CFLAGS): New variables.
46791 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46792 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46793 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46794 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46795 Moved from here...
46796 * include/grub/i386/pc/init.h (grub_os_area_addr)
46797 (rub_os_area_size): ... to here.
46798 * include/grub/powerpc/ieee1275/ieee1275.h
46799 (grub_ieee1275_entry_fn): Export symbol.
46800 * include/grub/powerpc/ieee1275/init.h: New file.
46801 * include/grub/powerpc/libgcc.h: Likewise.
46802 * include/grub/cache.h: Likewise.
46803 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46804 <hollis@penguinppc.org>.
46805 * kern/dl.c: Include <grub/cache.h>.
46806 (grub_dl_flush_cache): New function.
46807 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46808 for this module.
46809 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46810 (grub_console_init): Removed prototypes.
46811 (grub_machine_init): Don't initialize the modules anymore.
46812 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46813 static.
46814 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46815 Macro undef removed.
46816 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46817 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46818 relocation `R_PPC_REL32'. Return an error when the relocation is
46819 unknown.
46820 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46821 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46822 * util/misc.c (grub_arch_sync_caches): Likewise.
46823
e4b47e0c 468242004-12-19 Marco Gerards <metgerards@student.han.nl>
46825
46826 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46827 `symlist.c', add `grubof_symlist.c'.
46828 (symlist.c): Variable removed.
46829 (grubof_HEADERS): Variable added.
46830 (grubof_symlist.c): New target.
46831 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46832 `kernel_img_HEADERS'.
46833 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46834 * kern/powerpc/dl.c: New file.
46835 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46836 Function removed.
46837 (grub_arch_dl_relocate_symbols): Likewise.
46838 (grub_register_exported_symbols): Likewise.
46839
4ceb3636 468402004-12-13 Marco Gerards <metgerards@student.han.nl>
46841
46842 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46843 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46844 to fail instead. Reported by Vincent Pelletier
46845 <subdino2004@yahoo.fr>.
46846
46847 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46848 it is not allocated. Reported by Vincent Pelletier
46849 <subdino2004@yahoo.fr>.
46850
46851 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46852 output so the output looks better.
f19dbdb7 46853
3f1578fe 468542004-12-04 Marco Gerards <metgerards@student.han.nl>
46855
46856 Modulize the partition map support and add support for the amiga
46857 partition map.
f19dbdb7 46858
3f1578fe 46859 * commands/ls.c: Include <grub/partition.h> instead of
46860 <grub/machine/partition.h>.
46861 * kern/disk.c: Likewise.
46862 * kern/rescue.c: Likewise.
46863 * loader/i386/pc/chainloader.c: Likewise.
46864 * normal/cmdline.c: Likewise.
46865 * kern/powerpc/ieee1275/init.c: Likewise.
46866 (grub_machine_init): Call `grub_pc_partition_map_init',
46867 `grub_amiga_partition_map_init' and
46868 `grub_apple_partition_map_init'.
46869 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46870 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46871 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46872 `partition.h' and `pc_partition.h'.
46873 (grub_setup_SOURCES): Remove
46874 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46875 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46876 (grub_emu_SOURCES): Likewise.
46877 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46878 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46879 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46880 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46881 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46882 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46883 (grubof_SOURCES): Likewise.
46884 * disk/i386/pc/partition.c: File removed.
46885 * disk/powerpc/ieee1275/partition.c: Likewise.
46886 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46887 * include/grub/i386/pc/partition.h: Likewise.
46888 * kern/partition.c: New file.
46889 * partmap/amiga.c: Likewise.
46890 * partmap/apple.c: Likewise.
46891 * partmap/pc.c: Likewise.
46892 * include/grub/partition.h: Likewise..
46893 * include/grub/pc_partition.h: Likewise.
46894 * util/grub-emu.c: Include <grub/partition.h> instead of
46895 <grub/machine/partition.h>.
46896 (main): Call `grub_pc_partition_map_init',
46897 `grub_amiga_partition_map_init' and
46898 `grub_apple_partition_map_init' and deinitialize afterwards.
46899 * util/i386/pc/biosdisk.c: Include `#include
46900 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46901 `<grub/machine/partition.h>'.
46902 * util/i386/pc/grub-setup.c: Likewise.
46903 * util/i386/pc/biosdisk.c: Likewise.
46904 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46905 partition information in case of a PC partition.
46906 * util/i386/pc/grub-setup.c: Include `#include
46907 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46908 `<grub/machine/partition.h>'.
46909 (setup): Only access the PC specific partition information in case
46910 of a PC partition.
46911
0ef4ced9 469122004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 46913
0ef4ced9 46914 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46915 (grub_longjmp): Likewise.
46916 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46917 20.
46918 * normal/powerpc/setjmp.S: New file.
46919 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46920 `normal/powerpc/setjmp.S'.
46921 (grubof_CFLAGS): Add `-DGRUBOF'.
46922 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46923 [GRUB_UTIL && !GRUBOF].
f19dbdb7 46924
19950e29 469252004-11-16 Marco Gerards <metgerards@student.han.nl>
46926
46927 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46928 property named `name'. Correctly handle the error returned by
46929 `grub_ieee1275_finddevice' if a device can not be opened.
46930
a2fea427 469312004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46932
46933 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46934 `actual' for negativity.
46935 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46936 kern/fshelp.c.
46937
41ea0ea3 469382004-11-01 Marco Gerards <metgerards@student.han.nl>
46939
46940 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46941 (PAGE_OFFSET): New macro.
46942 (CRTC_ADDR_PORT): Likewise.
46943 (CRTC_DATA_PORT): Likewise.
46944 (START_ADDR_HIGH_REGISTER): Likewise.
46945 (START_ADDR_LOW_REGISTER): Likewise.
46946 (GRAPHICS_ADDR_PORT): Likewise.
46947 (GRAPHICS_DATA_PORT): Likewise.
46948 (READ_MAP_REGISTER): Likewise.
46949 (INPUT_STATUS1_REGISTER): Likewise.
46950 (INPUT_STATUS1_VERTR_BIT): Likewise.
46951 (page): New variable.
46952 (wait_vretrace): New function.
46953 (set_read_map): Likewise.
46954 (set_start_address): Likewise.
46955 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46956 the right page.
46957 (check_vga_mem): Take the page into account.
46958 (write_char): Likewise.
46959 (write_cursor): Likewise.
46960 (scroll_up): Likewise. Copy the page to the page that is not
46961 shown and switch between both pages.
46962 (grub_vga_putchar): Fix off by one error.
46963 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46964 account.
46965
ad0bd20b 469662004-11-01 Marco Gerards <metgerards@student.han.nl>
46967
46968 Add support for iso9660 (including rockridge).
f19dbdb7 46969
ad0bd20b 46970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46971 (iso9660_mod_SOURCES): New variable.
46972 (iso9660_mod_CFLAGS): Likewise.
46973 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46974 * include/grub/fs.h (grub_iso9660_init): New prototype.
46975 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46976 * fs/iso9660.c: New file.
46977
46978 * include/grub/misc.h (grub_strncat): New prototype.
46979 * kern/misc.c (grub_strncat): New function.
f19dbdb7 46980
ad0bd20b 46981 * fs/hfs.c (grub_hfs_mount): Translate the error
46982 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46983 * fs/jfs.c (grub_jfs_mount): Likewise.
46984 * fs/ufs.c (grub_ufs_mount): Likewise.
46985
a5477a59 469862004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46987
46988 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46989 which initialized BAT registers.
46990 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46991 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46992 Move from here...
46993 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46994 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46995 ... to here.
46996 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46997 (grub_mapclaim): Likewise.
46998 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46999 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
47000 hand.
47001
9304c1f8 470022004-10-19 Hollis Blanchard <hollis@penguinppc.org>
47003
47004 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
47005 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
47006 -ffreestanding and -msoft-float.
47007
86f4ae25 470082004-10-15 Hollis Blanchard <hollis@penguinppc.org>
47009
47010 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
47011 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
47012 set in grub_ieee1275_flags.
47013
38912228 470142004-10-14 Hollis Blanchard <hollis@penguinppc.org>
47015
47016 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
47017 prototype.
47018 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
47019 grub_console_init first.
47020 Change the memory range used for grub_ieee1275_claim and
47021 grub_mm_init_region.
47022 Print an error message if the claim fails.
47023 Include <grub/misc.h>.
47024
d1923dc8 470252004-10-13 Hollis Blanchard <hollis@penguinppc.org>
47026
47027 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
47028 Call grub_children_iterate for device nodes of type `scsi',
47029 `ide', or `ata'.
47030 (grub_ofdisk_open): Remove manual device alias resolution.
47031 Fix memory leak when device cannot be opened.
f19dbdb7 47032 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 47033 (grub_children_iterate): New prototype.
47034 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
47035 New function.
47036 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
47037 Return -1 if args.size was -1.
47038
4512e4f3 470392004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47040
47041 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
47042 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
47043 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
47044 Open Firmware's memory for it; claim memory from _start to _end.
47045 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
47046 (_end): New extern.
47047 (_start): Zero BSS from __bss_start to _end.
47048 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
47049 New extern.
47050 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
47051
4d61feb0 470522004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47053
ad0bd20b 47054 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
47055 -1 if args.base was -1.
4d61feb0 47056
026fa2f9 470572004-10-08 Hollis Blanchard <hollis@penguinppc.org>
47058
47059 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
47060 escape sequence instead of a literal ^L. Also call
47061 grub_ofconsole_gotoxy.
47062
9f2220ef 470632004-10-03 Hollis Blanchard <hollis@penguinppc.org>
47064
47065 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
47066 void * arguments to grub_addr_t. All callers updated. Also make
47067 the `result' argument optional.
47068 (grub_ieee1275_release): change void * arguments to grub_addr_t.
47069 All callers updated.
47070
8a572cd7 470712004-09-22 Hollis Blanchard <hollis@penguinppc.org>
47072
47073 * commands/ls.c (grub_ls_list_files): Use the string following the
47074 initial ')', if present, as the filesystem path.
47075 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
47076
47077 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
47078
18aa81f2 470792004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
47080
47081 Make the source code of the menu interface more readable.
f19dbdb7 47082
18aa81f2 47083 * normal/menu.c: Include grub/mm.h.
47084 (TERM_WIDTH): New macro.
47085 (TERM_HEIGHT): Likewise.
47086 (TERM_INFO_HEIGHT): Likewise.
47087 (TERM_MARGIN): Likewise.
47088 (TERM_SCROLL_WIDTH): Likewise.
47089 (TERM_TOP_BORDER_Y): Likewise.
47090 (TERM_LEFT_BORDER_X): Likewise.
47091 (TERM_BORDER_WIDTH): Likewise.
47092 (TERM_MESSAGE_HEIGHT): Likewise.
47093 (TERM_BORDER_HEIGHT): Likewise.
47094 (TERM_NUM_ENTRIES): Likewise.
47095 (TERM_FIRST_ENTRY_Y): Likewise.
47096 (TERM_ENTRY_WIDTH): Likewise.
47097 (TERM_CURSOR_X): Likewise.
47098 (draw_border): Use macros instead of magic numbers.
47099 (print_entry): Likewise.
47100 (print_entries): Likewise.
47101 (run_menu): Likewise. Also, handle the key 'e'.
47102 (run_menu_entry): Ignore empty command lines.
47103 (print_message): Added a new argument EDIT. If EDIT is true,
47104 print a different message.
47105 (init_page): Likewise.
47106 (edit_menu_entry): New function. Not implemented yet.
47107
b47efe30 471082004-09-17 Marco Gerards <metgerards@student.han.nl>
47109
47110 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
47111 can be loaded from normal mode.
f19dbdb7 47112
b47efe30 47113 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
47114 `multiboot.mod'.
47115 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
47116 (multiboot_mod_CFLAGS): New variables.
47117 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 47118 * loader/i386/pc/multiboot_normal.c: Likewise.
47119
b47efe30 47120 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
47121 attribute `unused'.
f19dbdb7 47122
b47efe30 47123 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
47124 `fdiro' to read the mode information from instead of `diro'.
47125
47126 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
47127 looking up a symlink.
47128
47129 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
47130 macro.
47131 * normal/command.c (grub_command_execute): Don't parse the
47132 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
47133 flags of the command.
47134
47135 * normal/menu.c (grub_menu_run): Fix typo.
47136
da75ac71 471372004-09-14 Hollis Blanchard <hollis@penguinppc.org>
47138
47139 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
47140
47141 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
47142 `y + 1' instead of `y - 1'.
47143
47144 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 47145
062b24c2 471462004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
47147
47148 From Hollis Blanchard <hollis@penguinppc.org>:
47149 * kern/misc.c (memmove): New alias for grub_memmove.
47150 (memcmp): New alias for grub_memcmp.
47151 (memset): New alias for grub_memset.
f19dbdb7 47152 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 47153 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 47154 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 47155 (grub_ieee1275_get_property): Likewise.
f19dbdb7 47156
8ddad845 471572004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
47158
47159 Added normal mode command `chainloader' as module chain.mod, which
47160 depends on normal.mod and _chain.mod.
f19dbdb7 47161
8ddad845 47162 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
47163 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
47164 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
47165 Deleted prototype.
47166 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
47167 but arguments parsing moved to ...
47168 (grub_chainloader_cmd): ... here. New function.
47169 * include/grub/i386/pc/chainloader.h: New file.
47170 * loader/i386/pc/chainloader_normal.c: Likewise.
47171
2c1f4ce3 471722004-09-11 Marco Gerards <metgerards@student.han.nl>
47173
47174 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
47175 (grub_mkimage_LDFLAGS): Likewise.
47176 (grub_emu_SOURCES): Likewise.
47177 (kernel_img_HEADERS): Added fshelp.h.
47178 * fs/ext2.c: Include <grub/fshelp.h>.
47179 (FILETYPE_REG): New macro.
47180 (FILETYPE_INO_REG): Likewise.
47181 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
47182 Changed all users.
47183 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
47184 all users.
47185 (grub_fshelp_node): New struct.
47186 (grub_ext2_data): Added member `diropen'. Changed member `inode'
47187 to a pointer.
47188 (grub_ext2_get_file_block): Removed function.
47189 (grub_ext2_read_block): New function.
47190 (grub_ext2_read_file): Replaced parameter `data' by `node'.
47191 This function was written.
47192 (grub_ext2_mount): Read the root inode. Create a diropen struct.
47193 (grub_ext2_find_file): Removed function.
47194 (grub_ext2_read_symlink): New function.
47195 (grub_ext2_iterate_dir): Likewise.
47196 (grub_ext2_open): Rewritten.
47197 (grub_ext2_dir): Rewritten.
47198 * include/grub/fshelp.h: New file.
47199 * fs/fshelp.c: Likewise.
47200
3c52136a 472012004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
47202
47203 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
47204 (print_message): Add a missing newline.
47205 (run_menu): Added timeout support.
47206 (run_menu_entry): New local function.
47207 (grub_menu_run): Added support for booting.
47208
47209 * kern/loader.c (grub_loader_is_loaded): New function.
47210
47211 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
47212 (grub_get_rtc): Exported.
47213
47214 * include/grub/i386/pc/time.h: Include grub/symbol.h.
47215 (grub_get_rtc): Exported.
47216
47217 * include/grub/normal.h (struct grub_command_list): Remove
47218 constant from the member `command'.
47219
47220 * include/grub/loader.h (grub_loader_is_loaded): Declared.
47221
47222 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
47223
47224 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
47225
aa033560 472262004-08-28 Marco Gerards <metgerards@student.han.nl>
47227
47228 Add support for the JFS filesystem.
47229
47230 * fs/jfs.c: New file.
47231 * include/grub/fs.h (grub_jfs_init): New prototype.
47232 (grub_jfs_fini): New prototype.
47233 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
47234 (grub_emu_SOURCES): Likewise.
47235 (pkgdata_MODULES): Add jfs.mod.
47236 (jfs_mod_SOURCES): New variable.
47237 (jfs_mod_CFLAGS): Likewise.
47238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
47239 (grubof_SOURCES): Likewise.
47240 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
47241
47242 * fs/fat.c (grub_fat_find_dir): Convert the filename little
47243 endian to the host endian.
47244 (grub_fat_utf16_to_utf8): Move function from there...
47245 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 47246 the endianness of the source string anymore.
aa033560 47247 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
47248
94bc45af 472492004-08-24 Marco Gerards <metgerards@student.han.nl>
47250
47251 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
47252 (grub_boot_fini) [GRUB_UTIL]: Likewise.
47253 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
47254 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 47255
94bc45af 47256 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
47257 (grub_hfs_iterate_dir): Make the function static. Add prototypes
47258 for `node_found' and `it_dir'.
47259 (grub_hfs_dir): Add prototype for `dir_hook'.
47260
47261 * fs/minix.c (grub_minix_get_file_block): Add prototype for
47262 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
47263 and `indir32' to silence a gcc warning.
47264
47265 * include/grub/fs.h (grub_hfs_init): New prototype.
47266 (grub_hfs_fini): Likewise.
f19dbdb7 47267
47268
97543f08 472692004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47270
47271 Each disk device has its own id now. This is useful to make use
47272 of multiple disk devices.
f19dbdb7 47273
97543f08 47274 * include/grub/disk.h (grub_disk_dev_id): New enum.
47275 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47276 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47277
47278 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47279 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47280
47281 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47282 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47283
47284 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47285 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47286
47287 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47288 "id" which is used by the cache manager.
47289
47290 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47291 of just "GRUB".
47292
64372eb4 472932004-08-18 Marco Gerards <metgerards@student.han.nl>
47294
47295 * fs/hfs.c: New file.
47296 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47297 (grub_emu_SOURCES): Likewise.
47298 (pkgdata_MODULES): Add hfs.mod.
47299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47300 (grubof_SOURCES): Likewise.
47301 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47302
47303 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47304 * kern/misc.c (grub_strncasecmp): Add function.
47305
cc61b58f 473062004-08-14 Marco Gerards <metgerards@student.han.nl>
47307
47308 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47309 with parentheses.
47310
47311 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47312 (grub_ext2_dir): In case the directory entry type is unknown, read
47313 it from the inode.
47314
0ef123f6 473152004-08-02 Peter Bruin <pjbruin@dds.nl>
47316
47317 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47318 grub_load_linux instead of grub_rescue_cmd_linux as second
47319 argument of grub_rescue_register_command.
47320
47321 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47322
a447c5df 473232004-07-27 Marco Gerards <metgerards@student.han.nl>
47324
47325 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47326 function.
47327 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47328 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47329 `loader/powerpc/ieee1275/linux.c',
47330 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47331 * include/grub/powerpc/ieee1275/ieee1275.h
47332 (grub_ieee1275_release): New prototype.
47333 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47334 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47335 normal, boot, linux and linux_normal.
47336 * loader/powerpc/ieee1275/linux.c: New file.
47337 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47338
5a9e3546 473392004-07-12 Marco Gerards <metgerards@student.han.nl>
47340
47341 * normal/arg.c (grub_arg_parse): Correct error handling after
47342 reallocating the argumentlist (check if `argl' is not null instead
47343 of checking if `args' is not null).
47344 * kern/mm.c (grub_realloc): Return the same pointer when using the
47345 same region, instead of returning the header address.
47346
e15199cb 473472004-07-11 Marco Gerards <metgerards@student.han.nl>
47348
47349 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47350 one block instead of two when looking for the initial partition.
47351 (grub_partition_probe): Initialize the local variable `p' with 0.
47352 Use base 10 for the grub_strtoul call.
47353 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47354 need for one local variable.
47355 (grub_strtoul): Don't add the new value to `num', instead of that
47356 just assign it.
47357
020616c2 473582004-07-11 Marco Gerards <metgerards@student.han.nl>
47359
47360 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47361 (pxeboot_img_SOURCES): New variable.
47362 (pxeboot_img_ASFLAGS): Likewise.
47363 (pxeboot_img_LDFLAGS): Likewise.
47364 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47365 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47366 <lode_leroy@hotmail.com>.
47367
6c51eb64 473682004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47369
47370 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47371 there was no input.
47372
cfb12aff 473732004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47374
47375 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47376 the history buffer logic.
47377
6eabba74 473782004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47379
47380 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47381 (FILETYPE_INO_SYMLINK): New macros.
47382 (grub_ext2_find_file): Check if the node is a directory using the
47383 inode stat information instead of using the filetype in the
47384 dirent. Exclude the first character of an absolute symlink.
47385 (grub_ext2_dir): Mask out the filetype part of the mode member of
47386 the inode.
47387
66e19ef8 473882004-05-24 Marco Gerards <metgerards@student.han.nl>
47389
47390 Add support for UFS version 1 and 2. Add support for the minix
47391 filesystem version 1 and 2, both the variants with 14 and 30 long
47392 filenames.
f19dbdb7 47393
66e19ef8 47394 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47395 fs/minix.c.
47396 (grub_emu_SOURCES): Likewise.
47397 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47398 (ufs_mod_SOURCES): New variable.
47399 (ufs_mod_CFLAGS): Likewise.
47400 (minix_mod_SOURCES): Likewise.
47401 (minix_mod_CFLAGS): Likewise.
47402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47403 fs/minix.c.
47404 (grubof_SOURCES): Likewise.
47405 * fs/ufs.c: New file.
47406 * fs/minix.c: New file.
47407 * include/grub/fs.h (grub_ufs_init): New prototype.
47408 (grub_ufs_fini): Likewise.
47409 (grub_minix_init): Likewise.
47410 (grub_minix_fini): Likewise.
47411 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47412 minix fs.
47413
cc2e748a 474142004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47415
47416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47417 commands/ls.c, commands/terminal.c, commands/boot.c,
47418 commands/cmp.c and commands/cat.c.
47419 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47420
47421 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47422 "env.h"
47423
4b13b216 474242004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47425
47426 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47427 and grub_, respectively. Because the conversion is trivial and
47428 mechanical, I omit the details here. Please refer to the CVS
47429 if you need more information.
47430
6a142551 474312004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47432
47433 * include/pupa: Renamed to ...
47434 * include/grub: ... this.
47435 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47436 * util/i386/pc/grub-mkimage.c: ... this.
47437 * util/i386/pc/pupa-setup.c: Renamed to ...
47438 * util/i386/pc/grub-setup.c: ... this.
47439 * util/pupa-emu.c: Renamed to ...
47440 * util/grub-emu.c: ... this.
47441
e56cdf21 474422004-03-29 Marco Gerards <metgerards@student.han.nl>
47443
47444 Add support for the newworld apple macintosh (PPC). This has been
47445 tested on the powerbook 2000 only. It only adds support for
47446 generic ieee1275 functions, console and disk support. This should
47447 be easy to port to other architectures with support for Open
47448 Firmware.
f19dbdb7 47449
e56cdf21 47450 * configure.ac: Accept the powerpc as host_cpu. In the case of
47451 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47452 specific tests are only executed while building for the i386.
47453 Inverse test for crosscompile.
47454 * genmk.rb (Utility): Allow assembler files.
47455 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47456 * conf/powerpc-ieee1275.rmk: New file.
47457 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47458 * disk/powerpc/ieee1275/partition.c: Likewise.
47459 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47460 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47461 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47462 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47463 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47464 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47465 * include/pupa/powerpc/ieee1275/loader.h
47466 * include/pupa/powerpc/setjmp.h: Likewise.
47467 * include/pupa/powerpc/types.h: Likewise.
47468 * kern/powerpc/ieee1275/init.c: Likewise.
47469 * kern/powerpc/ieee1275/openfw.c: Likewise.
47470 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47471
47472 These files were written by Johan Rydberg
47473 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 47474
e56cdf21 47475 * boot/powerpc/ieee1275/cmain.c: New file.
47476 * boot/powerpc/ieee1275/crt0.S: Likewise.
47477 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47478 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47479
8c8cc205 474802004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47481
47482 * Makefile.in: Update copyright.
47483 * genmodsrc.sh: Likewise.
47484 * gensymlist.sh: Likewise.
47485 * term/i386/pc/vga.c: Indent correctly.
47486
47487 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47488 bugreporting address.
47489 * util/i386/pc/pupa-setup.c (usage): Likewise,
47490 (main): Call pupa_ext2_init and pupa_ext2_fini.
47491
f19dbdb7 47492 * fs/fat.c (log2): Renamed to ...
8c8cc205 47493 (fat_log2): ... this.
47494 All callers changed.
47495 * kern/misc.c (memcpy): Alias to pupa_memmove.
47496 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47497 lvalue cast.
47498 * util/console.c (pupa_ncurses_fini): Return 0.
47499
47500 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47501 Move fail label here.
47502 [__GNU__]: Don't warn when using stat.
47503 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47504 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47505 long int. Use strtol instead of strtoul.
f19dbdb7 47506
db1771cf 475072004-03-14 Marco Gerards <metgerards@student.han.nl>
47508
47509 * commands/boot.c: New file.
47510 * commands/cat.c: Likewise.
47511 * commands/cmp.c: Likewise.
47512 * commands/ls.c: Likewise.
47513 * commands/terminal.c: Likewise.
47514 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47515 (pupa_register_command): Changed interface to match the new
47516 argument parser.
47517 (pupa_command_execute): Changed (almost rewritten) so it uses
47518 pupa_split_command. Added support for setting variables using the
47519 syntax `foo=bar'.
47520 (rescue_command): Changed to work with the new argument parser.
47521 (terminal_command): Moved from here to commands/terminal.c.
47522 (set_command): New function.
47523 (unset_command): New function.
47524 (insmod_command): New function.
47525 (rmmod_command): New function.
47526 (lsmod_command): New function.
47527 (pupa_command_init): Don't initialize the command terminal
47528 anymore. Initialize the commands set, unset, insmod, rmmod and
47529 lsmod.
47530 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47531 (kernel_img_HEADERS): Add arg.h and env.h.
47532 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47533 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47534 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47535 normal/arg.c.
47536 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47537 terminal.mod.
47538 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47539 (boot_mod_SOURCES): New variable.
47540 (terminal_mod_SOURCES): Likewise.
47541 (ls_mod_SOURCES): Likewise.
47542 (cmp_mod_SOURCES): Likewise.
47543 (cat_mod_SOURCES): Likewise.
47544
47545 * normal/arg.c: New file.
47546 * kern/env.c: Likewise.
47547 * include/pupa/arg.h: Likewise.
47548 * include/pupa/env.h: Likewise.
47549 * font/manager.c (font_command): Changed to match argument parsing
47550 interface changes.
47551 (PUPA_MOD_INIT): Likewise.
47552 * hello/hello.c (pupa_cmd_hello): Likewise.
47553 (PUPA_MOD_INIT): Likewise.
47554 * include/pupa/disk.h: Include <pupa/device.h>.
47555 (pupa_print_partinfo): New prototype.
47556 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47557 (pupa_dl_get_prefix): Likewise.
47558 * include/pupa/misc.h: Include <pupa/err.h>.
47559 (pupa_isgraph): New prototype.
47560 (pupa_isdigit): Likewise.
47561 (pupa_split_cmdline): Likewise.
47562 * include/pupa/normal.h: Include <pupa/arg.h>.
47563 (pupa_command): Changed the prototype of the member `func' to
47564 match the argument parsing interface. Added member `options'.
47565 (pupa_register_command): Updated to match function.
47566 (pupa_arg_parse): New prototype.
47567 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47568 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47569 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47570 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47571 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47572 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47573 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47574 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47575 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47576 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47577 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47578 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47579 * kern/disk.c: Include <pupa/file.h>.
47580 (pupa_print_partinfo): New function.
47581 * kern/dl.c: Include <pupa/env.h>.
47582 (pupa_dl_dir): Variable removed.
47583 (pupa_dl_load): Use the environment variable `prefix' instead of
47584 the variable pupa_dl_dir.
47585 (pupa_dl_set_prefix): Function removed.
47586 (pupa_dl_get_prefix): Likewise.
47587 * kern/i386/pc/init.c: Include <pupa/env.h>.
47588 (pupa_machine_init): Use the environment variable `prefix' instead of
47589 using pupa_dl_set_prefix to set the prefix.
47590 * kern/main.c: Include <pupa/env.h>.
47591 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47592 using pupa_dl_get_prefix to get the prefix.
47593 * kern/misc.c: Include <pupa/env.h>.
47594 (pupa_isdigit): New function.
47595 (pupa_isgraph): Likewise.
47596 (pupa_ftoa): Likewise.
47597 (pupa_vsprintf): Added support for printing values of the type
47598 `double'. Make it possible to format variable output when using
47599 formatting like `%1.2%f'.
47600 (pupa_split_cmdline): New function.
47601 * kern/rescue.c: Include <pupa/env.h>.
47602 (next_word): Removed function.
47603 (pupa_rescue_cmd_prefix): Likewise.
47604 (pupa_rescue_cmd_set): New function.
47605 (pupa_rescue_cmd_unset): New function.
47606 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47607 split the command line instead of splitting it here. Added
47608 support for setting variables using the syntax `foo=bar'. Don't
47609 initialize the prefix command anymore. Initialized the set and
47610 unset commands.
47611 * normal/cmdline.c: Include <pupa/env.h>.
47612 (pupa_tab_complete): Added prototypes for print_simple_completion,
47613 print_partition_completion, add_completion, iterate_commands,
47614 iterate_dev, iterate_part and iterate_dir. Moved code to print
47615 partition information from here to kern/disk.c.
fe6b695a 47616 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 47617 * normal/main.c: Include <pupa/env.h>.
47618 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47619 instead of using pupa_dl_get_prefix to get the prefix.
47620 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47621 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47622 warning.
47623 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47624 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47625 ((unused))' to silence a gcc warning.
47626 (pupa_vga_setcolor): Likewise.
47627 (debug_command): Changed to match argument parsing
47628 interface changes.
47629 * util/pupa-emu.c: Include <pupa/env.h>.
47630 (options): Added 0's for unused fields to silence a gcc warning.
47631 (argp): Likewise.
47632 (main): Use the environment variable `prefix' instead of using
47633 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47634 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47635 and terminal.
47636
47637 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47638 * util/misc.c: Include <malloc.h>.
47639 (pupa_malloc): Rewritten so errors are correctly reported.
47640 (pupa_realloc): Likewise.
47641 (pupa_memalign): Likewise.
47642 (pupa_mm_init_region): Declare unused variables with
47643 `__attribute__ ((unused))' to silence a gcc warning.
47644 * normal/i386/setjmp.S: Remove tab at the end of the file to
47645 silence a gcc warning.
47646 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47647 variables with `__attribute__ ((unused))' to silence a gcc
47648 warning.
47649 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47650 local variable i unsigned to silence a gcc warning.
47651
47652 * kern/term.c: Include <pupa/misc.h>.
47653 (pupa_more_lines): New variable.
47654 (pupa_more): Likewise.
47655 (pupa_putcode): When the pager is active pause at the end of every
47656 screen.
47657 (pupa_set_more): New function.
47658 * include/pupa/term.h (pupa_set_more): New prototype.
47659
47660
3b1139cb 476612004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47662
47663 Now this project is GRUB 2 rather than PUPA. The location of
47664 the CVS repository was moved to GRUB's.
f19dbdb7 47665
3b1139cb 47666 * configure.ac: Use bug-grub as the reporting address.
47667 Use GRUB instead of PUPA.
47668 Change the version number to 1.90.
47669
8367695c 476702004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47671
47672 * genkernsyms.sh: Updated copyright information.
47673 * genmk.rb: Likewise.
47674 * genmodsrc.sh: Likewise.
47675 * gensymlist.sh: Likewise.
47676 * boot/i386/pc/boot.S: Likewise.
47677 * boot/i386/pc/diskboot.S: Likewise.
47678 * disk/i386/pc/biosdisk.c: Likewise.
47679 * disk/i386/pc/partition.c: Likewise.
47680 * font/manager.c: Likewise.
47681 * fs/ext2.c: Likewise.
47682 * fs/fat.c: Likewise.
47683 * include/pupa/boot.h: Likewise.
47684 * include/pupa/device.h: Likewise.
47685 * include/pupa/disk.h: Likewise.
47686 * include/pupa/dl.h: Likewise.
47687 * include/pupa/elf.h: Likewise.
47688 * include/pupa/err.h: Likewise.
47689 * include/pupa/file.h: Likewise.
47690 * include/pupa/font.h: Likewise.
47691 * include/pupa/fs.h: Likewise.
47692 * include/pupa/kernel.h: Likewise.
47693 * include/pupa/loader.h: Likewise.
47694 * include/pupa/misc.h: Likewise.
47695 * include/pupa/mm.h: Likewise.
47696 * include/pupa/net.h: Likewise.
47697 * include/pupa/normal.h: Likewise.
47698 * include/pupa/rescue.h: Likewise.
47699 * include/pupa/setjmp.h: Likewise.
47700 * include/pupa/symbol.h: Likewise.
47701 * include/pupa/term.h: Likewise.
47702 * include/pupa/types.h: Likewise.
47703 * include/pupa/i386/setjmp.h: Likewise.
47704 * include/pupa/i386/types.h: Likewise.
47705 * include/pupa/i386/pc/biosdisk.h: Likewise.
47706 * include/pupa/i386/pc/boot.h: Likewise.
47707 * include/pupa/i386/pc/console.h: Likewise.
47708 * include/pupa/i386/pc/init.h: Likewise.
47709 * include/pupa/i386/pc/kernel.h: Likewise.
47710 * include/pupa/i386/pc/linux.h: Likewise.
47711 * include/pupa/i386/pc/loader.h: Likewise.
47712 * include/pupa/i386/pc/memory.h: Likewise.
47713 * include/pupa/i386/pc/multiboot.h: Likewise.
47714 * include/pupa/i386/pc/partition.h: Likewise.
47715 * include/pupa/i386/pc/time.h: Likewise.
47716 * include/pupa/i386/pc/vga.h: Likewise.
47717 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47718 * include/pupa/util/getroot.h: Likewise.
47719 * include/pupa/util/misc.h: Likewise.
47720 * include/pupa/util/resolve.h: Likewise.
47721 * kern/device.c: Likewise.
47722 * kern/disk.c: Likewise.
47723 * kern/dl.c: Likewise.
47724 * kern/err.c: Likewise.
47725 * kern/file.c: Likewise.
47726 * kern/fs.c: Likewise.
47727 * kern/loader.c: Likewise.
47728 * kern/main.c: Likewise.
47729 * kern/misc.c: Likewise.
47730 * kern/mm.c: Likewise.
47731 * kern/rescue.c: Likewise.
47732 * kern/term.c: Likewise.
47733 * kern/i386/dl.c: Likewise.
47734 * kern/i386/pc/init.c: Likewise.
47735 * kern/i386/pc/lzo1x.S: Likewise.
47736 * kern/i386/pc/startup.S: Likewise.
47737 * loader/i386/pc/chainloader.c: Likewise.
47738 * loader/i386/pc/linux.c: Likewise.
47739 * loader/i386/pc/multiboot.c: Likewise.
47740 * normal/cmdline.c: Likewise.
47741 * normal/command.c: Likewise.
47742 * normal/main.c: Likewise.
47743 * normal/menu.c: Likewise.
47744 * normal/i386/setjmp.S: Likewise.
47745 * term/i386/pc/console.c: Likewise.
47746 * term/i386/pc/vga.c: Likewise.
47747 * util/console.c: Likewise.
47748 * util/genmoddep.c: Likewise.
47749 * util/misc.c: Likewise.
47750 * util/pupa-emu.c: Likewise.
47751 * util/resolve.c: Likewise.
47752 * util/unifont2pff.rb: Likewise.
47753 * util/i386/pc/biosdisk.c: Likewise.
47754 * util/i386/pc/getroot.c: Likewise.
47755 * util/i386/pc/pupa-mkimage.c: Likewise.
47756 * util/i386/pc/pupa-setup.c: Likewise.
47757
e6eced71 477582004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47759
47760 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47761 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47762 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47763 reading and reset it after reading.
47764 (pupa_ext2_close): Return PUPA_ERR_NONE.
47765
47766 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47767 Correct value.
47768 (struct linux_kernel_header): Add kernel_version and
47769 initrd_addr_max.
47770 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47771 pupa_file_read succeeds.
47772 (pupa_rescue_cmd_initrd): Implement.
47773
5aded270 477742003-12-03 Marco Gerards <metgerards@student.han.nl>
47775
47776 * fs/ext2.c (pupa_ext2_label): New function.
47777 (pupa_ext2_fs): Added label.
47778 * fs/fat.c (pupa_fat_label): New function.
47779 (pupa_fat_fs): Added label.
47780 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47781
47782 * kern/misc.c (pupa_strndup): New function.
47783 * include/pupa/misc.h (pupa_strndup): New prototype.
47784
47785 * include/pupa/normal.h: Include <pupa/err.h>.
47786 (pupa_set_history): New prototype.
47787 (pupa_iterate_commands): New prototype.
47788 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47789 <pupa/disk.h>, <pupa/file.h>.
47790 (hist_size): New variable.
47791 (hist_lines): Likewise.
47792 (hist_end): Likewise.
47793 (hist_used): Likewise.
47794 (pupa_set_history): New function.
47795 (pupa_history_get): Likewise.
47796 (pupa_history_add): Likewise.
47797 (pupa_history_replace): Likewise.
47798 (pupa_tab_complete): Likewise.
47799 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47800 completion shows partitionnames while completing partitions, this
47801 feature was suggested by Jeff Bailey.
47802 * normal/command.c (pupa_iterate_commands): New function.
47803 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47804 (pupa_normal_init): Initialize history buffer.
47805 (PUPA_MOD_INIT): Likewise.
47806 (pupa_normal_fini): Free the history buffer.
47807 (PUPA_MOD_FINI): Likewise.
47808
47809 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47810 key.
47811
47812 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47813 * configure.ac [i386]: Check for regparam bug.
47814 (NESTED_FUNC_ATTR) [! i386]: Defined.
47815
1f7315a3 478162003-11-17 Marco Gerards <metgerards@student.han.nl>
47817
47818 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47819 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47820 (pupa_emu_SOURCES): New variable.
47821 (pupa_emu_LDFLAGS): Likewise.
47822 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47823 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47824 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47825 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47826 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47827 (pupa_jmp_buf): New typedef.
47828 (pupa_setjmp) [PUPA_UTIL]: New macro.
47829 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47830 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47831 (pupa_refresh): New prototype.
47832 * include/pupa/util/getroot.h: New file.
47833 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47834 it.
47835 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47836 (pupa_rescue_cmd_cat): Likewise.
47837 (pupa_rescue_cmd_ls): Likewise.
47838 (pupa_rescue_cmd_testload): Likewise.
47839 (pupa_rescue_cmd_lsmod): Likewise.
47840 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47841 * normal/menu.c (run_menu): Likewise.
47842 * kern/term.c (pupa_cls): Likewise.
47843 (pupa_refresh): New function.
47844 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47845 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47846 * util/console.c: New file.
f19dbdb7 47847
1f7315a3 47848 * util/i386/pc/getroot.c: New file.
47849 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47850 (pupa_putchar): New function.
47851 (pupa_refresh): Likewise.
47852 (xgetcwd): Function moved to ...
47853 (strip_extra_slashes): Likewise.
47854 (get_prefix): Likewise.
f19dbdb7 47855 * util/i386/pc/getroot.c: ... here.
1f7315a3 47856 (find_root_device): Function moved and renamed to...
47857 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47858 Changed all callers.
47859 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47860 and renamed to...
47861 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47862 Changed all callers.
47863 * util/misc.c (pupa_memalign): New function.
47864 (pupa_mm_init_region): Likewise.
47865 (pupa_register_exported_symbols): Likewise.
47866 (pupa_putchar): Function removed.
47867 * util/pupa-emu.c: New file.
47868
9a5c1ade 478692003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47870
47871 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47872 (_multiboot_mod_SOURCES): New variable.
47873 (_multiboot_mod_CFLAGS): Likewise.
47874 * loader/i386/pc/multiboot.c: New file.
47875 * include/pupa/i386/pc/multiboot.h: Likewise.
47876 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47877 (pupa_multiboot_real_boot): New function.
47878 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47879 (pupa_multiboot_real_boot): New prototype.
47880 (pupa_rescue_cmd_multiboot): Likewise
47881 (pupa_rescue_cmd_module): Likewise.
47882
47883 * kern/loader.c (pupa_loader_set): Continue when
47884 pupa_loader_unload_func() fails.
47885 (pupa_loader_unset): New function.
47886 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47887
47888 * kern/misc.c (pupa_stpcpy): New function.
47889 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47890
8e72a9c0 478912003-11-12 Marco Gerards <metgerards@student.han.nl>
47892
47893 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47894 for available extensions.
47895
47896 * include/pupa/i386/pc/time.h: New file.
47897 * kern/disk.c: Include <pupa/machine/time.h>.
47898 (PUPA_CACHE_TIMEOUT): New macro.
47899 (pupa_last_time): New variable.
47900 (pupa_disk_open): Flush the cache when there was a timeout.
47901 (pupa_disk_close): Reset the timer.
47902 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47903 pupa_currticks.
47904 * util/misc.c: Include <sys/times.h>
47905 (pupa_get_rtc): New function.
47906
c4adbd32 479072003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47908
47909 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47910 as blocks.
47911 (pupa_ext2_get_file_block): Use blocks member.
47912
47913 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47914 first block. Return -1 instead of pupa_errno on error.
47915
bfd30f06 479162003-10-27 Marco Gerards <metgerards@student.han.nl>
47917
47918 * README: In the pupa-mkimage example use _chain instead of chain
47919 and ext2 instead of fat.
47920 * TODO: Replace ext2fs with jfs as an example. Add an item for
47921 adding journal playback for ext2fs.
47922 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47923 (pkgdata_MODULES): Added ext2.mod.
47924 (ext2_mod_SOURCES): New variable.
47925 (ext2_mod_CFLAGS): Likewise.
47926 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47927 * include/pupa/misc.h (pupa_strncpy): New prototype.
47928 (pupa_strcat): Likewise.
47929 (pupa_strncmp): Likewise.
47930 * kern/misc.c (pupa_strcat): Enable function.
47931 (pupa_strncpy): New function.
47932 (pupa_strncmp): Likewise.
47933 * fs/ext2.c: New file.
f19dbdb7 47934
bfd30f06 47935 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47936 when the read failed before retrying.
47937 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47938 (_FILE_OFFSET_BITS): Likewise.
47939 * configure.ac: Added AC_SYS_LARGEFILE.
47940
98d15063 479412003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47942
47943 * genmk.rb (PModule#rule): Make sure to get only symbol names
47944 from the output of nm.
59cad637 47945 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 47946
18d9c7cd 479472003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47948
47949 I forgot to check in these changes for a long time. This adds
47950 incomplete support for VGA console, and this is still very
47951 buggy. Also, a lot of consideration is required for I18N,
47952 UNICODE, and VGA font issues. Therefore, assume that this is
47953 such that "better than nothing".
f19dbdb7 47954
18d9c7cd 47955 * font/manager.c: New file.
47956 * include/pupa/font.h: Likewise.
47957 * include/pupa/i386/pc/vga.h: Likewise.
47958 * term/i386/pc/vga.c: Likewise.
47959 * util/unifont2pff.rb: Likewise.
47960
47961 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47962 (pkgdata_MODULES): Added vga.mod and font.mod.
47963 (vga_mod_SOURCES): New variables.
47964 (vga_mod_CFLAGS): Likewise.
47965 (font_mod_SOURCES): Likewise.
47966 (font_mod_CFLAGS): Likewise.
47967
47968 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47969
47970 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 47971 (struct pupa_term): Added init and fini.
18d9c7cd 47972 Changed the argument of putchar to pupa_uint32_t.
47973
47974 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47975 (pupa_console_real_putchar): New prototype.
47976 (pupa_console_putchar): Removed.
47977 (pupa_console_checkkey): Exported.
47978 (pupa_console_getkey): Likewise.
47979
47980 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47981 characters.
47982
47983 * kern/term.c (pupa_term_set_current): Rewritten.
47984 (pupa_putchar): Likewise.
47985 (pupa_putcode): New function.
47986
47987 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47988 (pupa_console_real_putchar): ... this.
47989 (pupa_vga_set_mode): New function.
47990 (pupa_vga_get_font): Likewise.
47991
47992 * normal/command.c: Include pupa/term.h.
47993 (terminal_command): New function.
47994 (pupa_command_init): Register the command "terminal".
47995
47996 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47997 (DISP_UP): Likewise.
47998 (DISP_RIGHT): Likewise.
47999 (DISP_DOWN): Likewise.
48000 (DISP_HLINE): Likewise.
48001 (DISP_VLINE): Likewise.
48002 (DISP_UL): Likewise.
48003 (DISP_UR): Likewise.
48004 (DISP_LL): Likewise.
48005 (DISP_LR): Likewise.
48006
48007 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 48008
977329f5 480092003-02-08 NIIBE Yutaka <gniibe@m17n.org>
48010
48011 * util/resolve.c (pupa_util_resolve_dependencies): BUG
48012 FIX. Reverse the path_list.
48013
48014 * include/pupa/normal.h: Export pupa_register_command and
48015 pupa_unregister_command.
48016
48017 * hello/hello.c (pupa_cmd_hello): New module.
48018 * conf/i386-pc.rmk: Added hello.mod.
48019
1f5ab428 480202003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
48021
48022 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 48023
1f5ab428 48024 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
48025 (compress_kernel): New variable.
48026 (generate_image): Heavily modified to support compressing a
48027 large part of the core image.
48028
48029 * util/misc.c (pupa_util_read_image): Fix a file descriptor
48030 leak.
48031 (pupa_util_load_image): New function.
48032
48033 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
48034 (pupa_compressed_size): New variable.
48035 (codestart): Enable Gate A20 here.
48036 Decompress the compressed part of the core image.
48037 Rearrange the code to put functions and variables which are
48038 required for initialization in the non-compressed part.
48039 Include lzo1x.S.
48040
48041 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
48042 here.
48043
48044 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
48045
f19dbdb7 48046 * include/pupa/i386/pc/kernel.h
1f5ab428 48047 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
48048 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
48049 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48050 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48051 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
48052
48053 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
48054
48055 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
48056 (Utility#rule): Likewise.
48057
48058 * configure.ac: Check if LZO is available.
48059
ce5bf700 480602003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
48061
48062 * include/pupa/normal.h: New file.
48063 * include/pupa/setjmp.h: Likewise.
48064 * include/pupa/i386/setjmp.h: Likewise.
48065 * normal/cmdline.c: Likewise.
48066 * normal/command.c: Likewise.
48067 * normal/main.c: Likewise.
48068 * normal/menu.c: Likewise.
48069 * normal/i386/setjmp.S: Likewise.
f19dbdb7 48070
ce5bf700 48071 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
48072 (pupa_rescue_cmd_initrd): Likewise.
48073
48074 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
48075 Likewise.
48076
48077 * kern/i386/pc/startup.S (translation_table): New variable.
48078 (translate_keycode): New function.
48079 (pupa_console_getkey): Call translate_keycode.
48080
48081 * kern/rescue.c (attempt_normal_mode): New function.
48082 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
48083 it failed, print a message.
48084
48085 * kern/mm.c (pupa_real_malloc): Print more information when a
48086 free magic is broken.
48087 (pupa_free): If the first free header is not free actually, set
48088 it to P.
48089
48090 * kern/main.c (pupa_load_normal_mode): Just load the module
48091 "normal".
48092 (pupa_main): Don't print the message
48093 "Entering into rescue mode..." here.
48094
48095 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
48096 Declared.
48097 (pupa_rescue_cmd_initrd): Likewise.
48098 (pupa_rescue_cmd_initrd): Likewise.
48099
48100 * include/pupa/symbol.h (FUNCTION): Specify the type.
48101 (VARIABLE): Likewise.
48102
48103 * include/pupa/err.h (pupa_err_t): Added
48104 PUPA_ERR_UNKNOWN_COMMAND.
48105
48106 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
48107 (pupa_dl_get_prefix): Likewise.
48108
48109 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
48110 Added _chain.mod and _linux.mod instead of chain.mod and
48111 linux.mod.
48112 (chain_mod_SOURCES): Renamed to ...
48113 (_chain_mod_SOURCES): ... this.
48114 (chain_mod_CFLAGS): Renamed to ...
48115 (_chain_mod_CFLAGS): ... this.
48116 (linux_mod_SOURCES): Renamed to ...
48117 (_linux_mod_SOURCES): ... this.
48118 (linux_mod_CFLAGS): Renamed to ...
48119 (_linux_mod_CFLAGS): ... this.
48120 (normal_mod_SOURCES): New variable.
48121 (normal_mod_CFLAGS): Likewise.
48122 (normal_mod_ASFLAGS): Likewise.
48123
481242003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
48125
48126 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
48127 possible.
48128
fe6b695a 48129 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 48130 recursively.
48131 (pupa_dl_unref): Unrefer depending modules recursively.
48132 Don't call pupa_dl_unload implicitly, because PUPA can crash if
48133 a module is unloaded before one depending on that module is
48134 unloaded.
48135 (pupa_dl_unload): Unload depending modules explicitly,
48136 if possible.
48137
c04da074 481382003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
48139
48140 * include/pupa/i386/pc/linux.h: New file.
48141 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 48142
c04da074 48143 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
48144 Removed.
48145 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
48146 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
48147 of PUPA_CHAINLOADER_BOOT_SECTOR.
48148
48149 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
48150 (pupa_linux_prot_size): New variable.
48151 (pupa_linux_tmp_addr): Likewise.
48152 (pupa_linux_real_addr): Likewise.
48153 (pupa_linux_boot_zimage): New function.
48154 (pupa_linux_boot_bzimage): Likewise.
48155
48156 * kern/i386/pc/init.c (struct mem_region): New structure.
48157 (MAX_REGIONS): New macro.
48158 (mem_regions): New variable.
48159 (num_regions): Likewise.
48160 (pupa_os_area_addr): Likewise.
48161 (pupa_os_area_size): Likewise.
48162 (pupa_lower_mem): Likewise.
48163 (pupa_upper_mem): Likewise.
48164 (add_mem_region): New function.
48165 (compact_mem_regions): Likewise.
48166 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
48167 the size of the conventional memory and that of so-called upper
48168 memory (before the first memory hole).
48169 Instead of adding each found region to free memory, use
48170 add_mem_region and add them after removing overlaps.
48171 Also, add only 1/4 of the upper memory to free memory. The rest
48172 is used for loading OS images. Maybe this is ad hoc, but this
48173 makes it much easier to relocate OS images when booting.
48174
48175 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
48176 (pupa_enter_rescue_mode): Don't register initrd and module.
48177
48178 * kern/mm.c: Include pupa/dl.h.
48179
48180 * kern/main.c: Include pupa/file.h and pupa/device.h.
48181
48182 * kern/loader.c (pupa_loader_load_module_func): Removed.
48183 (pupa_loader_load_module): Likewise.
48184
48185 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
48186 ``.o''.
48187
48188 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
48189 (pupa_linux_tmp_addr): Likewise.
48190 (pupa_linux_real_addr): Likewise.
48191 (pupa_linux_boot_zimage): Likewise.
48192 (pupa_linux_boot_bzimage): Likewise.
48193
48194 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
48195 (pupa_upper_mem): Likewise.
48196 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
48197 module is too dangerous.
48198
48199 * include/pupa/loader.h (pupa_os_area_addr): Declared.
48200 (pupa_os_area_size): Likewise.
48201 (pupa_loader_set): Remove the first argument. Loader doesn't
48202 manage modules or initrd any longer.
48203 (pupa_loader_load_module): Removed.
48204
48205 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
48206 (linux_mod_SOURCES): New variable.
48207 (linux_mod_CFLAGS): Likewise.
48208
a13f9237 482092003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
48210
48211 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
48212 the length of a blocklist correctly.
48213
48214 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
48215 Use ioctl only if the OS file is a block device.
48216 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
48217 not very useful for normal files.
48218
48219 * kern/main.c (pupa_set_root_dev): New function.
48220 (pupa_load_normal_mode): Likewise.
48221 (pupa_main): Call those above.
48222
48223 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
48224 pupa_uint16_t.
48225
48226 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
48227
a5ffe966 482282003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
48229
48230 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
48231 (setup): Configure the installed partition information and the
48232 dl prefix.
48233
48234 * loader/i386/pc/chainloader.c (my_mod): New variable.
48235 (pupa_chainloader_unload): New function.
48236 (pupa_rescue_cmd_chainloader): Refer itself.
48237 (PUPA_MOD_INIT): Save its own module in MY_MOD.
48238
48239 * kern/i386/pc/startup.S (install_partition): Removed.
48240 (version_string): Likewise.
48241 (config_file): Likewise.
48242 (pupa_install_dos_part): New variable.
48243 (pupa_install_bsd_part): Likewise.
48244 (pupa_prefix): Likewise.
48245 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
48246
48247 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
48248 and pupa/misc.h.
48249 (make_install_device): New function.
48250 (pupa_machine_init): Set the dl prefix.
48251
48252 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
48253 (buf): Renamed to ...
48254 (linebuf): ... this.
48255 (pupa_rescue_cmd_prefix): New function.
48256 (pupa_rescue_cmd_insmod): Likewise.
48257 (pupa_rescue_cmd_rmmod): Likewise.
48258 (pupa_rescue_cmd_lsmod): Likewise.
48259 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
48260 rmmod and lsmod.
48261
48262 * kern/mm.c (pupa_memalign): If failed even after invalidating
48263 disk caches, unload unneeded modules and retry.
48264
48265 * kern/misc.c (pupa_memmove): New function.
48266 (pupa_memcpy): Removed.
48267 (pupa_strcpy): New function.
48268 (pupa_itoa): Made static.
48269
48270 * kern/dl.c (pupa_dl_iterate): New function.
48271 (pupa_dl_ref): Likewise.
48272 (pupa_dl_unref): Likewise.
48273 (pupa_dl_unload): Return if succeeded or not.
48274 (pupa_dl_unload_unneeded): New function.
48275 (pupa_dl_unload_all): Likewise.
48276 (pupa_dl_init): Renamed to ...
48277 (pupa_dl_set_prefix): ... this.
48278 (pupa_dl_get_prefix): New function.
48279
48280 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48281 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48282 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48283 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48284 (pupa_install_dos_part): Declared.
48285 (pupa_install_bsd_part): Likewise.
48286 (pupa_prefix): Likewise.
48287 (pupa_boot_drive): Likewise.
48288
48289 * include/pupa/types.h: Fix a typo.
48290
48291 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48292 pupa_memmove.
48293 (pupa_memmove): Declared.
48294 (pupa_strcpy): Likewise.
48295
48296 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48297 pupa_mod_init takes one argument, its own module.
48298 (pupa_dl_unload_unneeded): Declared.
48299 (pupa_dl_unload_all): Likewise.
48300 (pupa_dl_ref): Likewise.
48301 (pupa_dl_unref): Likewise.
48302 (pupa_dl_iterate): Likewise.
48303 (pupa_dl_init): Renamed to ...
48304 (pupa_dl_set_prefix): ... this.
48305 (pupa_dl_get_prefix): Declared.
48306
48307 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 48308 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 48309 unloaded.
48310 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48311 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48312
48313 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48314 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48315
012d7999 483162003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48317
48318 * util/i386/pc/pupa-setup.c (setup): Define the internal
48319 function find_first_partition_start at the top level, because GCC
48320 3.0.x cannot compile internal functions in deeper scopes
48321 correctly.
48322 (find_root_device): Use lstat instead of stat.
48323 Don't follow symbolic links.
48324 Fix the path-constructing code.
48325
48326 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48327 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48328 by a BLKGETSIZE ioctl first, because block devices don't fill
48329 the member st_mode of the structure stat on Linux.
48330 [__linux__] (linux_find_partition): Use a temporary buffer
48331 REAL_DEV for the working space. Copy it to DEV before returning.
48332 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48333 buffer cache consistent.
48334 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48335 strncmp. The previous value was merely wrong.
48336 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48337
48338 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48339 FAT size is 12. The previous value was merely wrong.
48340
48341 * kern/main.c (pupa_main): Don't split the starting message from
48342 newlines.
48343
48344 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48345 LF, because BIOS goes crazy about character attributes in this
48346 case.
48347
1cc73a62 483482003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48349
48350 * include/i386/pc/util/biosdisk.h: New file.
48351 * util/i386/pc/biosdisk.c: Likewise.
48352 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 48353
1cc73a62 48354 * Makefile.in (INCLUDE_DISTFILES): Added
48355 include/pupa/i386/pc/util/biosdisk.h.
48356 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48357 directory util/i386/pc.
48358 (install-local): Added a rule for sbin_UTILITIES.
48359 (uninstall): Likewise.
48360
48361 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48362
48363 * util/misc.c (xrealloc): New function.
48364 (pupa_malloc): Likewise.
48365 (pupa_free): Likewise.
48366 (pupa_realloc): Likewise.
48367 (pupa_stop): Likewise.
48368 (pupa_putchar): Likewise.
48369
48370 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48371
48372 * include/pupa/util/misc.h (xrealloc): Declared.
48373
48374 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48375 macro.
48376 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48377 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48378
48379 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48380 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48381
48382 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48383 way should be implemented.
48384 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48385
48386 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48387 the size of NAME for safety.
48388 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48389 0x88.
48390
48391 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48392 (pupa_setup_SOURCES): Likewise.
48393
48394 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48395
08b70fe8 483962002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48397
48398 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48399 bunch of pushl's from pusha, because this destroys the return
48400 value.
48401
62ddcc8f 484022002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48403
48404 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48405 This means that any missing prototypes could be fatal. Also, you
48406 must take care when writing assembly code. See the comments at
48407 the beginning of startup.S, for more details.
f19dbdb7 48408
62ddcc8f 48409 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48410 compilation mechanism.
48411 (pupa_chainloader_real_boot): Likewise.
48412 (pupa_biosdisk_rw_int13_extensions): Likewise.
48413 (pupa_biosdisk_rw_standard): Likewise.
48414 (pupa_biosdisk_check_int13_extensions): Likewise.
48415 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48416 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48417 (pupa_get_memsize): Likewise.
48418 (pupa_get_mmap_entry): Likewise.
48419 (pupa_console_putchar): Likewise.
48420 (pupa_console_setcursor): Likewise.
48421 (pupa_getrtsecs): Use pushl instead of push.
48422
48423 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48424 memory instead of the stack for a mmap entry, because some
48425 BIOSes may ignore the maximum size and overflow.
48426
48427 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48428
48429 * genmk.rb (PModule#rule): Compile automatically generated
48430 sources with module-specific CFLAGS as well as other sources.
48431
9962ed99 484322002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48433
48434 * configure.ac: Check ld.
48435 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48436 respectively, before checking endianness and sizes.
48437
48438 * Makefile.in (LD): New variable.
f19dbdb7 48439
abdfc3c5 484402002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48441
48442 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48443
6a161fa9 484442002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48445
48446 * Changelog: New file.
48447