]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/Makefile.core.def (legacycfg): Enable on EFI.
[grub2.git] / ChangeLog
CommitLineData
ec2dd179
VS
12013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
4
872dac83
VS
52013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
8 Remove dprintf.
9 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
10
90ec4b7f
VS
112013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12
13 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
14 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
15 * grub-core/loader/powerpc/ieee1275/linux.c
16 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
17
f32555dd
VS
182013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
19
20 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
21 Look for /boot-rom as well as /rom/boot-rom.
22
38649799
VS
232013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24
25 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
26 handling when creating text_layer failed.
27 * grub-core/video/video.c (grub_video_create_render_target):
28 Set result to 0 on error.
29 (grub_video_delete_render_target): Do not dereference NULL.
30
aeace7f7
VS
312013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32
33 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
34 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
35 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
36 (grub_linux_load64): Mask out 2 high bits.
37
4eafa175
AB
382013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
39
40 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
41 more place.
42
daaa64bd
VS
432013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
44
45 Add support for pseries and other bootinfo machines to grub-mkrescue.
46
47 Tested by: Paulo Flabiano Smorigo.
48
d0d2daa6
VS
492013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
50
51 * util/grub-mkrescue.in: Add GPT for EFI boot.
52
b193e100
VS
532013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
54
55 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
56 It improves performance in qemu.
57
a0f8f3ac
VS
582013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
59
60 * build-aux/snippet: Add missing gnulib files.
61
284df0e2
AB
622013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
63
64 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
65
740201f3
AB
662013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
67
68 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
69
a7e03923
PJ
702013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
712013-04-15 Peter Jones <pjones@redhat.com>
72
73 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
74 sectors.
75 Based on patch by Peter Jones.
76
25fc51a8
VS
772013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
78
79 Fix DMRAID partition handling.
80
88017d47
VS
812013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
82
83 * tests/grub_cmd_date.in: Skip on sparc64.
84
fa7d914e
VS
852013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
86
87 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
88 firmware error messages.
89
cbe57a48
VS
902013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
91
92 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
93 source and destination differ.
94
21aecce0
VS
952013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
96
97 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
98 detection.
99
25092d29
VS
1002013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
101
102 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
103 match config-util.h to avoid warnings and increase compatibility.
104
79451522 1052013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 1062013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
107
108 Add option to compress files on install/image creation.
109
78b7d77b
VS
1102013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
111
112 * docs/grub-dev.texi: Rearrange menu to match the section order.
113 Reported by: Bryan Hundven.
114
cc2fa5ec
VS
1152013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
116
117 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
118
b49fe879
VS
1192013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
120
121 Move GRUB out of system area when using xorriso 1.2.9 or later.
122
5351da81
VS
1232013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
124
125 * tests/grub_cmd_date.in: Add missing exit 1.
126
c9d586ea
VS
1272013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
128
129 * tests/partmap_test.in: Skip on sparc64.
130
3f729741
VS
1312013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
132
133 Support grub-shell on sparc64.
134
8ca86b3a
VS
1352013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
136
137 Support mkrescue on sparc64.
138
aa1af9bb
VS
1392013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
140
141 Allow IEEE1275 ports on path even if it wasn't detected automatically.
142 Needed on OpenBIOS due to incomplete device tree.
143
ac4fea79
VS
1442013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
145
146 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
147 would be otherwise excluded.
148
1492013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
150
151 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
152 Inline name defines used only once.
153
fe22b071
VS
1542013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
155
156 Fix memory leaks in ofnet.
157 Reported by: Francesco Lavra.
158
9d21381b
VS
1592013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
160
161 * docs/man/grub-glue-efi.h2m: Add missing file.
162
07aec23c
VS
1632013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
164
165 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
166
67ab8353
VS
1672013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
168
169 Better support Apple Intel Macs on CD.
170
ba44ca6d
VS
1712013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
172
173 Replace stpcpy with grub_stpcpy in tools.
174
bbdd6305
VS
1752013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
176
177 Handle Japanese special keys.
178 Reported by: Hiroyuki YAMAMORI.
179 Codes supplied by: Hiroyuki YAMAMORI.
180
8573d302
VS
1812013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
182
183 * util/grub-mkimage.c: Document memdisk implying --prefix.
184
d70dbab7
VS
1852013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
186
187 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
188 much we can do about it anyway.
189
51a4c3e3
AN
1902013-04-12 Aleš Nesrsta <starous@volny.cz>
191
192 Fix handling of split transfers.
193
92c8f58d
VS
1942013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
195
196 * grub-core/net/http.c: Fix bad free.
197
b7d17a49
VS
1982013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
199
200 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
201 than buffer size.
202
a3d566d4
VS
2032013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
204
205 Disable partmap check on i386-ieee1275 due to openfirmware issues.
206
a936af56
VS
2072013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
208
209 * tests/util/grub-shell.in: Fix it on powerpc.
210
51212234
VS
2112013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
212
213 Turn off QEMU ACPI-way since new releases don't have shutdown port
214 anymore.
215
a21eec9e
VS
2162013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
217
218 * docs/grub.texi: Update coreboot status info.
219
e3734b84
VS
2202013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
221
222 * tests/grub_cmd_date.in: New test for datetime.
223
f9d40055
VS
2242013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
225
226 * tests/partmap_test.in: Fix missing qemudisk setting.
227
dbc56d8f
VS
2282013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
229
230 Support i386-ieee1275 grub-mkrescue and make check on it.
231
a79b8a15
VS
2322013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
233
234 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
235 feature for it.
236
48f39bb4
VS
2372013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
238
239 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
240 GRUB_CMDLINE_XEN_DEFAULT.
241 Reported by: Marc Warne (GigaTux) <gigatux>
242
053cfcdd
VS
2432013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
244
245 Import new gnulib.
246
93cd84df
VS
2472013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
248
249 Use ACPI shutdown intests as traditional port was removed.
250
f4b1fa4f
AB
2512013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
252
253 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
254 distinction.
255
49818a59
VS
2562013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
257
258 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
259 Fix few warining messages and leaks while on it.
260
9277a306
AB
2612013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
262
263 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
264 links under grub-core/lib/libgcrypt-grub/mpi.
265
d5e2a158
VS
2662013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
267
268 Fix ia64-efi image generation on big-endian machines. Deduplicate
269 some code while on it.
270 Reported by: Leif Lindholm.
271
18866643
AB
2722013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
273
274 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
275 as extra_dist.
276
ca53deb8
AB
2772013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
278
279 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
280
d4c4b8e1
BH
2812013-04-08 Bryan Hundven <bryanhundven@gmail.com>
282
283 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
284 texinfo-5.1.
285
47043f95
VS
2862013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
287
288 * grub-core/normal/term.c: Few more fixes for menu entry editor
289 rendering.
290 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
291
a3216068
VS
2922013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
293
294 * grub-core/normal/term.c: Few more fixes for menu entry editor
295 rendering.
296 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
297
21026747
AB
2982013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
299
300 * conf/Makefile.extra-dist (EXTRA_DIST): Add
301 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
302
59624ca8
AB
3032013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
304
305 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
306 instead of hardcoding grub.mo.
307
1f44478c
FN
3082013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
309
310 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
311
eeada7b1
VS
3122013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
313
314 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
315 grub-core/disk/geli.c.
316
132867de
VS
3172013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
318
319 * util/grub-mkfont.c: Prefer enum to #define.
320
de73de17
VS
3212013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
322
323 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
324
1865baa7
VS
3252013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
326
327 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
328
ce7d92a9
VS
3292013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
330
331 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
332
52eab656
VS
3332013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
334
335 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
336
98b23b95
VS
3372013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
338
339 * include/grub/bsdlabel.h: Use enums.
340
0467a5dd
VS
3412013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
342
343 Move GRUB_CHAR_BIT to types.h.
344
16cc9f03
AB
3452013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
346
347 * docs/grub.texi: Document more user commands.
348
3152aecb
AB
3492013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
350
351 * docs/grub.texi: Document menuentry --id option.
352
c506fc30
FL
3532013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
354
355 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
356
aa428238
VS
3572013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
358
359 Unify file copying setup across different install scripts. Add
360 options for performing partial install.
361
efe0cdda
PJ
3622013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3632013-04-04 Peter Jones <pjones@redhat.com>
364
365 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
366
f75835bd
VS
3672013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
368
369 Use TSC as a possible time source on i386-ieee1275.
370
2cd5ce6c
VS
3712013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
372
373 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
374 Init err.
375
c9625630
VS
3762013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
377
378 * util/grub-setup.c (setup): Handle some corner cases.
379
be008941
VS
3802013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
383
1a78d573
VS
3842013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
385
386 * grub-core/commands/verify.c: Save verified file to avoid it being
387 tampered with after verification was done.
388
db8ff59f
VS
3892013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
390
391 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
392 reported width by one to compensate for curesor algorithm problem.
393
91bf46b1
VS
3942013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
395
396 Fix screen corruption in menu entry editor and simplify the code
397 flow while on it.
398
a7b1d693
AB
3992013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
400
401 * util/grub-mount.c (fuse_init): Return error if fuse_main
402 failed.
403
31df9ad8
FL
4042013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
405
406 * include/grub/elf.h: Add missing ARM relocation codes and fix
407 existing ones.
408
07f392eb
VT
4092013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
410
411 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
412
9efd73ec 4132013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
4142013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
415
416 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
417 into account when calculating radius.
418
4192013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
420
421 * grub-core/gfxmenu/view.c: Fix off-by-one error.
422
4985ddaa
VT
4232013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
424
425 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
426
8c3635ff
RS
4272013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
428
429 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
430 missing closing bracket.
431
74a35e69
RS
4322013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
433
434 * INSTALL: Mention xorriso requirement.
435
40f1c000
AB
4362013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
437
438 * grub-core/commands/verify.c: Fix hash algorithms values for
439 the first three hashes - they start with 1, not with 0.
440
e75fdee4
VS
4412013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
442
443 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
444 Try terminating EFI services several times due to quirks in some
445 implementations.
446
33028f4c
CW
4472013-03-26 Colin Watson <cjwatson@ubuntu.com>
448
449 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
450 skipping Event, Device, Processor, PowerRes, ThermalZone, and
451 BankField extended opcodes.
452 (get_sleep_type): Add minimal scope handling (just enough to
453 handle setting the scope to the root path).
454 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
455 * include/grub/acpi.h: Add enumeration values for Event, Device,
456 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
457
33871a10
VT
4582013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
459
460 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
461 memory leak.
462
8990963a
VS
4632013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
464
465 * grub-core/disk/ahci.c: Give more time for AHCI request.
466
daae8f9e
VS
4672013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
468
469 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
470 command.
471
6a7fb94b
VS
4722013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
473
474 Replace the region at 0 from coreboot tables to available in BSD
475 memory map.
476
ff99babd
VS
4772013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
478
479 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
480 non-BIOS platforms.
481
30d6b1b2
VS
4822013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
483
484 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
485 platforms.
486
6ccd0b31
VS
4872013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
488
489 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
490 handling of multi-device filesystems.
491
23c9cc04
VS
4922013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
493
494 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
495 platforms.
496
ce50dbd7
VS
4972013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
498
499 Add new 'proc' filesystem framework and put luks_script into it.
500
d975e8d5
VS
5012013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
502
503 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
504 and qemu.
505
e73ba5e8
VS
5062013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
507
508 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
509
92750e4c
VS
5102013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
511
512 Add ability to generate newc additions on runtime.
513
0ec45a68
VS
5142013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
515
516 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
517 description.
518
320abd43
VS
5192013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
520
521 * po/POTFILES.in: Regenerate.
522
d7a6506e
VS
5232013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
524
525 * grub-core/commands/verify.c (hashes): Add several hashes
526 from the spec.
527
8fe05def
VS
5282013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
529
530 Slight improve in USB-related boot-time checkpoints.
531
524e2766
VS
5322013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
533
534 * grub-core/commands/boottime.c: Fix copyright header.
535
cc19857a
VS
5362013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
537
538 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
539 coreboot tables content. Support for cbmemc.
540
ef8810e9
VS
5412013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
542
543 Fix a conflict between ports structures with 2 controllers of
544 same kind.
545
e9dabdfa
VS
5462013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
547
548 * include/grub/boottime.h: Add missing file.
549
f6df57d2
VS
5502013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
551
552 Initialize USB ports in parallel to speed-up boot.
553
d745dda7
VS
5542013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
555
556 Fix USB devices not being detected when requested
557 due to delayed attach.
558
e5a2dd7b
VS
5592013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
560
e744219b
VS
561 Implement boot time analysis framework.
562
5632013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
564
565 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
566 descriptor to just receive it as argument rather than endpoint
567 address.
568
5dd6f587
VS
5692013-03-19 Aleš Nesrsta <starous@volny.cz>
570
571 Better estimate the maximum USB transfer size.
572
2f1071d5
VS
5732013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
574
575 Resend a packet if we got the wrong buffer in status.
576
46ecfc49
VS
5772013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
578
579 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
580 multiplication rather than division.
581
ea811130
VS
5822013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
583
584 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
585 than divisions.
586
d2789cf0
VS
5872013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
590 operations to have intended shifts and not divisions.
591
a9c94590
VS
5922013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
593
594 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
595 intended shifts rather than division.
596
84cfe81b
VS
5972013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
598
599 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
600 computation for some years before epoch. Avode confusing division
601 while on it.
602
21344ef6
VS
6032013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
604
605 * grub-core/video/i386/pc/vbe.c
606 (grub_video_vbe_print_adapter_specific_info): Replace division by
607 shifts.
608
3f2b4d1a
VS
6092013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
610
611 Adjust types in gdb module to have intended unsigned shifts rather than
612 signed divisions.
613
3dac5878
VS
6142013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
617 maximum size is 4G - 1 on hfs
618
5341c0fb
VS
6192013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
620
621 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
622
fc3ff2a2
VS
6232013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
624
625 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
626 function.
627
81455e8e
AB
6282013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
629
630 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
631 causing gcc error with gcc 4.7.1.
632
efd4f117
NZ
6332013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
634
635 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
636 dereference null pointer. While the code is technically correct, gcc
637 may eliminate a null check if pointer is already dereferenced.
638
e11645f4
NZ
6392013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
640
641 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
642 OOM check.
643 * grub-core/normal/term.c (read_terminal_list): Likewise.
644
77468368
VS
6452013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
646
647 Lift up core size limits on some platforms. Fix potential memory
648 corruption with big core on small memory systems. Document remaining
649 limits.
650
f6b58fe5
VS
6512013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
652
653 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
654 gotoxy to 0,0.
655
19ce697d
VS
6562013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
657
658 Remove all trampoline support. Add -Wtrampolines when
659 present. Remove symbols used for trampolines to make
660 link fail if trampolines are present.
661
73b5d90f
VS
6622013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
663
664 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
665 append out of its parent.
666
cb758e96
VS
6672013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
668
669 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
670 parent.
671
3188131f
VS
6722013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
673
674 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
675 all vars to a macro. All users updated.
676
e42b2514
VS
6772013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
678
679 * grub-core/disk/ieee1275/nand.c: Fix compilation on
680 i386-ieee1275.
681
83e1a1a1
VS
6822013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
683
684 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
685
1d5a880f
VS
6862013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
687
688 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
689
6e4146c4
VS
6902013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
691
692 Move to more hookless approach in IEEE1275 devices handling.
693
99fcda8a
VS
6942013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
695
696 * grub-core/kern/term.c (grub_term_normal_color),
697 (grub_term_highlight_color): Add back lost defaults.
698
73bf57e2
VS
6992013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
700
701 Make elfload not use hooks. Opt for flags and iterators instead.
702
7f8c105f
VS
7032013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
706 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
707
396d4091
VS
7082013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * grub-core/script/execute.c (gettext_append): Remove nested functions.
711
7122013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
713
714 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
715 hook pass-through parameter. All users updated and unnested.
716
74a27421
VS
7172013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
718
719 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
720 out of its parent.
721
b46d4213
VS
7222013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
723
724 * grub-core/fs/hfs.c: Remove nested functions.
725
e114c3cc
VS
7262013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
727
728 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
729 the context through.
730 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
731
f9b7d780
VS
7322013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
733
734 * util/grub-editenv.c (list_variables): Move print_var out of its
735 parent.
736
ca9c2608
VS
7372013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
738
739 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
740 function.
741
5d983f5f
VS
7422013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
743
744 * grub-core/gentrigtables.c: Make tables const.
745
3056d3e7
VS
7462013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
747
748 Remove nested functions from videoinfo iterators.
749
e2303774
VS
7502013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
751
752 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
753 for 64-bit platforms.
754
f42e3a2f
VS
7552013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
756
757 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
758 a FOR_CHILDREN macro.
759
be174e5e
VS
7602013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
761
762 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
763 platform from firmware path.
764
0789b672
VS
7652013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
766
767 Enable linux16 on non-BIOS systems for i.a. memtest.
768
769 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
770 correctly.
771 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
772
005a9c32
VS
7732013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
774
775 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
776 Fix end of table condition.
777
ff2b3cd9
VS
7782013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
779
780 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
781 out of its parent.
782
4fc40ff8
VS
7832013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
784
785 * grub-core/fs/jfs.c: Remove nested functions.
786
be42d97a
VS
7872013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
788
789 * grub-core/fs/minix.c: Remove nested functions.
790
99373ce4
VS
7912013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
792
793 * grub-core/fs/iso9660.c: Remove nested functions.
794
5aec2afe
VS
7952013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
796
797 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
798 of parent function.
799
6c69e691
VS
8002013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
801
802 * util/grub-fstest.c: Remove nested functions.
803
43c91882
VS
8042013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
805
806 * grub-core/loader/machoXX.c: Remove nested functions.
807
4eb8b756
CW
8082013-02-27 Colin Watson <cjwatson@ubuntu.com>
809
810 Remove nested functions from disk and file read hooks.
811
812 * include/grub/disk.h (grub_disk_read_hook_t): New type.
813 (struct grub_disk): Add read_hook_data member.
814 * include/grub/file.h (struct grub_file): Likewise.
815 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
816 argument.
817
818 Update all callers.
819
df6da5a5
AB
8202012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
821
822 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
823 Fix off by one error in enumerating extended partitions.
824
21aecde5
AB
8252013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
826
827 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
828 memory leak if device name is not found.
829
f1a19118
AB
8302013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
831
832 * grub-core/normal/menu_entry.c (update_screen): remove
833 unused variable `off' which caused scroll down arrow to be always shown.
834
958bfd20
AB
8352013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
836
837 * grub-core/normal/menu_entry.c (insert_string): fix off by one
838 access to unallocated memory.
839
b7b78edb
AB
8402013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
841
842 * Makefile.util.def: Add partmap/msdos.c to common library.
843 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
844 * grub-core/disk/ldm.c: Check for existence of
845 GRUB_PC_PARTITION_TYPE_LDM.
846
28d468d6
VS
8472013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
848
849 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
850 sizes and display sector size.
851
d55ffb02
VS
8522013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
853
854 Implement new command cmosdump.
855
b5ea6ce0
VS
8562013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
857
858 Support Openfirmware disks with non-512B sectors.
859
860 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
861 size of the disk.
862 * (grub_ofdisk_get_block_size): New function.
863 * (grub_ofdisk_prepare): Use the correct block size.
864 * (grub_ofdisk_read): Likewise.
865 * (grub_ofdisk_write): Likewise.
866 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
867 New proto.
868
cc0e476f
VS
8692013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
870
871 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
872
c5dbdc33
VS
8732013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
874
875 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
876 on first error.
877
3f078c0f
VS
8782013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
879
880 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
881 freeing it.
882
66a93674
VS
8832013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
884
885 Implement USBDebug (full USB stack variant).
886
c9f0c134
VS
8872013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
888
889 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
890 unless they have unexpected values.
891
cfe1288b
VS
8922013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
895 grub_print_error.
896
e42b9969
VS
8972013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
898
899 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
900 zero-out of port structure.
901
cf94fd62
VS
9022013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
905 of extended attributes.
906
f81ef4b5
AB
9072013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
908
909 * util/grub-install.in: change misleading comment about
910 device.map creation
911
af18fdb4
VS
9122013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
913
914 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
915 when menu highlight color isn't set.
916
08bcec50
M
9172013-01-27 C. Masloch <pushbx@38.de>
918
919 Improve FreeDOS direct loading support compatibility.
920
921 * include/grub/i386/relocator.h (grub_relocator16_state):
922 New member ebp.
923 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
924 variable.
925 (grub_relocator16_boot): Handle %ebp.
926 * grub-core/lib/i386/relocator16.S: Likewise.
927 * grub-core/loader/i386/pc/freedos.c:
928 Load BPB to pass kernel which partition to load from.
929 Check that kernel file is not too large.
930 Set register dl to BIOS unit number as well.
931
7782b8a6
CW
9322013-01-22 Colin Watson <cjwatson@ubuntu.com>
933
934 * util/grub-reboot.in (usage): Document the need for
935 GRUB_DEFAULT=saved.
936 * util/grub-set-default.in (usage): Likewise.
937 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
938
e661c180
VS
9392013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
940
941 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
942 than defining WORDS_BIGENDIAN manually.
943
1c22ca9a
VS
9442013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
947 invariants.
948
d44892fe
CW
9492013-01-21 Colin Watson <cjwatson@ubuntu.com>
950
951 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
952 nested.
953 (blit_comb: add_device_width): Likewise.
954
5fdbaed1
CW
9552013-01-21 Colin Watson <cjwatson@ubuntu.com>
956
957 Remove nested functions from USB iterators.
958
959 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
960 (grub_usb_controller_iterate_hook_t): Likewise.
961 (grub_usb_iterate): Add hook_data argument.
962 (grub_usb_controller_iterate): Likewise.
963 (struct grub_usb_controller_dev.iterate): Likewise.
964
965 Update all implementations and callers.
966
4250985a
VS
9672013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
968
969 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
970 margin when not needed.
971
7d8848f3
VS
9722013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
973
bc136973 974 Make color variables global instead of it being per-terminal.
7d8848f3
VS
975
9762013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
977
bc136973
VS
978 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
979 asterisk.
7d8848f3 980
ed12a003
CW
9812013-01-21 Colin Watson <cjwatson@ubuntu.com>
982
983 Fix powerpc and sparc64 build failures caused by un-nesting memory
984 map iterators.
985
6a0db449
CW
9862013-01-21 Colin Watson <cjwatson@ubuntu.com>
987
988 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
989 parameter declarations.
990
ccd86b21
VS
9912013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
992
993 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
994
822b726b
VS
9952013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
996
997 Improve spkmomdem reliability by adding a separator between bytes.
998
115c2cc1
CW
9992013-01-21 Colin Watson <cjwatson@ubuntu.com>
1000
1001 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
1002 an Acer registration utility with several sightings in the wild.
1003 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
1004
fc524edf
CW
10052013-01-21 Colin Watson <cjwatson@ubuntu.com>
1006
1007 Remove nested functions from filesystem directory iterators.
1008
1009 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
1010 (struct grub_fs.dir): Add hook_data argument.
1011
1012 Update all implementations and callers.
1013
53d3e4e3
CW
10142013-01-21 Colin Watson <cjwatson@ubuntu.com>
1015
1016 * docs/grub.texi (Multi-boot manual config): Fix typo for
1017 "recommended".
1018
c821711f
LL
10192013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1020
1021 * util/grub-mkimage.c (main): Postpone freeing arguments.output
1022 until after its use in generate_image.
1023
6a0debbd
CW
10242013-01-20 Colin Watson <cjwatson@ubuntu.com>
1025
1026 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
1027 initrd size to addr_min, since the initrd will be allocated after
1028 this address.
1029
f41e08db
AB
10302013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1031
1032 * conf/Makefile.common: Fix autogen rules to pass definition
1033 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
1034
77529e0f
LL
10352013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1036
1037 * include/grub/elf.h: Update ARM definitions based on binutils.
1038
b879aa7b
VS
10392013-01-20 Aleš Nesrsta <starous@volny.cz>
1040
1041 Split long USB transfers into short ones.
1042
8eb8284d
AB
10432013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1044
1045 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
1046 is interrupted by ESC.
1047
08dad2dc
VS
10482013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * util/grub-script-check.c (main): Uniform the error message.
1051
6c724b85
CW
10522013-01-20 Colin Watson <cjwatson@ubuntu.com>
1053
1054 Remove nested functions from ELF iterators.
1055
25239370
CW
10562013-01-20 Colin Watson <cjwatson@ubuntu.com>
1057
1058 Remove nested functions from device iterators.
1059
1060 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
1061 (grub_arc_iterate_devs): Add hook_data argument.
1062 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
1063 (struct grub_ata_dev.iterate): Add hook_data argument.
1064 * include/grub/device.h (grub_device_iterate_hook_t): New type.
1065 (grub_device_iterate): Add hook_data argument.
1066 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
1067 (struct grub_disk_dev.iterate): Add hook_data argument.
1068 (grub_disk_dev_iterate): Likewise.
1069 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
1070 Likewise.
1071 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
1072 Likewise.
1073 * include/grub/partition.h (grub_partition_iterate_hook_t): New
1074 type.
1075 (struct grub_partition_map.iterate): Add hook_data argument.
1076 (grub_partition_iterate): Likewise.
1077 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
1078 (struct grub_scsi_dev.iterate): Add hook_data argument.
1079
1080 Update all callers.
1081
6c0314d6
CW
10822013-01-20 Colin Watson <cjwatson@ubuntu.com>
1083
1084 Fix typos for "developer" and "development".
1085
600dc5f1
VS
10862013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 Add license header to spkmodem-recv.c.
1089
17334a6b
VS
10902013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 Rewrite spkmodem to use PIT for timing. Double the speed.
1093
7d462559
VS
10942013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 Add new command pcidump.
1097
b78d6c32
VS
10982013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 New terminal outputs using serial: morse and spkmodem.
1101
34f71cb8
VS
11022013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 Improve bidi handling in entry editor.
1105
4542e71b
VS
11062013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
1109 argument to prevent name collision.
1110
09fd6d82
CW
11112013-01-15 Colin Watson <cjwatson@ubuntu.com>
1112
1113 Remove nested functions from script reading and parsing.
1114
1115 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
1116 getline_data argument, passed to getline.
1117 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
1118 getline_data argument, passed to grub_parser_split_cmdline.
1119 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
1120 lexerstate->getline_data to lexerstate->getline.
1121 (grub_script_lexer_init): Add getline_data argument, saved in
1122 lexerstate->getline_data.
1123 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
1124 argument, passed to grub_script_parse.
1125 * grub-core/script/script.c (grub_script_parse): Add getline_data
1126 argument, passed to grub_script_lexer_init.
1127 * include/grub/parser.h (grub_parser_split_cmdline): Update
1128 prototype. Update all callers to pass appropriate getline data.
1129 (struct grub_parser.parse_line): Likewise.
1130 (grub_rescue_parse_line): Likewise.
1131 * include/grub/reader.h (grub_reader_getline_t): Add void *
1132 argument.
1133 * include/grub/script_sh.h (struct grub_lexer_param): Add
1134 getline_data member.
1135 (grub_script_parse): Update prototype. Update all callers to pass
1136 appropriate getline data.
1137 (grub_script_lexer_init): Likewise.
1138 (grub_normal_parse_line): Likewise.
1139
1140 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
1141 data argument.
1142 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
1143 static instead of nested. Rename to ...
1144 (grub_parser_execute_getline): ... this.
1145 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
1146 data argument.
1147 * grub-core/normal/main.c (read_config_file: getline): Make static
1148 instead of nested. Rename to ...
1149 (read_config_file_getline): ... this.
1150 (grub_normal_read_line): Add unused data argument.
1151 * grub-core/script/execute.c (grub_script_execute_sourcecode:
1152 getline): Make static instead of nested. Rename to ...
1153 (grub_script_execute_sourcecode_getline): ... this.
1154 * util/grub-script-check.c (main: get_config_line): Make static
1155 instead of nested.
1156
d0d4b8a0
CW
11572013-01-15 Colin Watson <cjwatson@ubuntu.com>
1158
1159 Remove nested functions from memory map iterators.
1160
1161 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
1162 argument, passed to hook.
1163 * grub-core/kern/i386/coreboot/mmap.c
1164 (grub_linuxbios_table_iterate): Likewise.
1165 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
1166 instead of nested.
1167 (grub_machine_mmap_iterate): Add hook_data argument.
1168 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
1169 Add hook_data argument, passed to hook.
1170 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
1171 Likewise.
1172 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
1173 Likewise.
1174 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
1175 Likewise.
1176 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
1177 Likewise.
1178 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
1179 Likewise.
1180 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
1181 Likewise.
1182 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
1183 (grub_machine_mmap_iterate): Likewise.
1184 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
1185 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
1186 prototype.
1187 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
1188 Remove NESTED_FUNC_ATTR from here and from all users.
1189 (grub_mmap_iterate): Update prototype.
1190 (grub_efi_mmap_iterate): Update prototype. Update all callers to
1191 pass appropriate hook data.
1192 (grub_machine_mmap_iterate): Likewise.
1193
1194 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
1195 static instead of nested.
1196 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
1197 Rename to ...
1198 (lsmmap_hook): ... this.
1199 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
1200 Likewise.
1201 (grub_efiemu_mmap_fill: fill_hook): Likewise.
1202 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
1203 heap_init): Likewise.
1204 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
1205 Rename to ...
1206 (mmap_iterate_hook): ... this.
1207 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
1208 Likewise.
1209 * grub-core/lib/ieee1275/relocator.c
1210 (grub_relocator_firmware_get_max_events: count): Likewise.
1211 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
1212 to ...
1213 (grub_relocator_firmware_fill_events_iter): ... this.
1214 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
1215 hook): Likewise. Rename to ...
1216 (grub_relocator_alloc_chunk_align_iter): ... this.
1217 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
1218 Rename to ...
1219 (generate_e820_mmap_iter): ... this.
1220 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
1221 Rename to ...
1222 (count_hook): ... this.
1223 (grub_linux_boot: hook): Likewise. Rename to ...
1224 (grub_linux_boot_mmap_find): ... this.
1225 (grub_linux_boot: hook_fill): Likewise. Rename to ...
1226 (grub_linux_boot_mmap_fill): ... this.
1227 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
1228 hook): Likewise. Rename to ...
1229 (grub_fill_multiboot_mmap_iter): ... this.
1230 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
1231 hook): Likewise. Rename to ...
1232 (count_hook): ... this.
1233 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
1234 hook): Likewise. Rename to ...
1235 (grub_fill_multiboot_mmap_iter): ... this.
1236 * grub-core/loader/powerpc/ieee1275/linux.c
1237 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
1238 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
1239 Likewise. Rename to ...
1240 (alloc_phys_choose): ... this.
1241 (determine_phys_base: get_physbase): Likewise.
1242 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
1243 find_hook): Likewise.
1244 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
1245 (malloc_hook: count_hook): Likewise.
1246 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
1247 Likewise. Rename to ...
1248 (lower_hook): ... this.
1249 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1250 (upper_hook): ... this.
1251 (grub_mmap_get_post64: hook): Likewise. Rename to ...
1252 (post64_hook): ... this.
1253 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
1254 Likewise. Rename to ...
1255 (lower_hook): ... this.
1256 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1257 (upper_hook): ... this.
1258 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
1259 (grub_mmap_iterate: fill_hook): Likewise.
1260 (fill_mask): Pass addr and mask within a single struct.
1261 (grub_cmd_badram: hook): Make static instead of nested. Rename
1262 to ...
1263 (badram_iter): ... this.
1264 (grub_cmd_cutmem: hook): Likewise. Rename to ...
1265 (cutmem_iter): ... this.
1266
22099030
VS
12672013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
1270 delimit path in strings using quotes.
1271 * util/getroot.c (grub_guess_root_devices): Likewise.
1272 (grub_make_system_path_relative_to_its_root): Likewise.
1273 * util/grub-probe.c (probe): Likewise.
1274 * util/ieee1275/ofpath.c (find_obppath): Likewise.
1275 (xrealpath): Likewise.
1276
4a9950ec
VS
12772013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 Fix compilation with older compilers.
1280
1281 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
1282 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
1283 declarations.
1284 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
1285 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
1286 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
1287 identifier with b.
1288 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
1289 * include/grub/crypto.h: Add type defines.
1290 * util/import_gcrypth.sed: Remove duplicate type defines.
1291
adcc6020
VS
12922013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 New command list_trusted.
1295
1296 * grub-core/commands/verify.c (grub_cmd_list): New function.
1297
a4528937
CW
12982013-01-13 Colin Watson <cjwatson@ubuntu.com>
1299
1300 * util/grub-mkimage.c (generate_image): Fix "size of public key"
1301 info message.
1302
ca3a7446
CW
13032013-01-13 Colin Watson <cjwatson@ubuntu.com>
1304
1305 Remove nested functions from PCI iterators.
1306
1307 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
1308 passed to hook. Update all callers to pass appropriate hook data.
1309 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
1310 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
1311 Remove NESTED_FUNC_ATTR from here and from all users.
1312 (grub_pci_iterate): Update prototype.
1313 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
1314 instead of nested. Rename to ...
1315 (grub_cs5536_find_iter): ... this.
1316 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
1317 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
1318 Likewise.
1319 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1320 Likewise.
1321 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1322 Likewise.
1323 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1324 Likewise.
1325 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1326 * grub-core/video/radeon_fuloong2e.c
1327 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1328 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1329 find_card): Likewise.
1330 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1331 Likewise.
1332
f8e98fee
VS
13332013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1334
1335 * grub-core/commands/verify.c: Mark messages for translating.
1336
055b36b6
VS
13372013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1340 fatal.
1341
f7ff879b
VS
13422013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1345 fatal.
1346
13472013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
1348
1349 * autogen.sh: Do not try to delete nonexistant files.
1350 * util/import_gcrypth.sed: Add some missing header removals.
1351
01323d49
CW
13522013-01-12 Colin Watson <cjwatson@ubuntu.com>
1353
1354 Clean up dangling references to grub-setup.
1355 Fixes Ubuntu bug #1082045.
1356
1357 * docs/grub.texi (Images): Refer generally to grub-install rather
1358 than directly to grub-setup.
1359 (Installing GRUB using grub-install): Remove direct reference to
1360 grub-setup.
1361 (Device map) Likewise.
1362 (Invoking grub-install): Likewise.
1363 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1364 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1365 * util/grub-install.in (usage): Likewise.
1366
1367 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1368 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1369 grub-setup.
1370 * configure.ac: Remove grub_setup output variable.
1371
1372 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1373 to grub-bios-setup.
1374 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1375 grub-setup to grub-sparc64-setup.
1376
5e3b8dcb
VS
13772013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1378
1379 Import gcrypt public-key cryptography and implement signature checking.
1380
535714bd
VS
13812013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 * grub-core/fs/ntfs.c: Ue more appropriate types.
1384 * grub-core/fs/ntfscomp.c: Likewise.
1385 * include/grub/ntfs.h: Likewise.
1386
3e4f3566
VS
13872013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 Support Apple FAT binaries on non-Apple platforms.
1390
1391 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1392 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1393 Likewise.
1394 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1395 Apple FAT binaries.
1396
4dedb13f
VS
13972013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1400 sector devices.
1401
f8861eaf
CW
14022013-01-07 Colin Watson <cjwatson@ubuntu.com>
1403
1404 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1405 explicitly zeroing elements.
1406 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1407 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1408 of elements in a structure already allocated using grub_zalloc.
1409 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1410
86065b0a
CW
14112013-01-07 Colin Watson <cjwatson@ubuntu.com>
1412
1413 * docs/grub.texi (grub_cpu): New subsection.
1414 (grub_platform): Likewise.
1415
c6f1e92f
VS
14162013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1417
1418 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1419
f797ec85
VS
14202013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1423 divisions.
1424
033d0b4b
VS
14252013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1426
1427 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1428 * grub-core/fs/ntfscomp.c: Likewise.
1429 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1430 (grub_ntfs_comp): Likewise.
1431
21d1b9a0
VS
14322013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1435 Rename to ...
1436 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1437 of groups_per_block. All users updated.
1438
10ca8645
VS
14392013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1442 grub_error properly.
1443 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1444 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1445
a4c3ed4c
VS
14462013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1449 always in /boot/zfs.
1450 Reported by: Yuta Satoh.
1451
0b716507
YS
14522013-01-03 Yuta Satoh <nigoro>
1453
1454 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1455 ${grub_probe}
1456
00c05e22
VS
14572013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1458
1459 * configure.ac: Extend -Wno-trampolines to host.
1460
dadddb76
VS
14612013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1462
1463 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1464 entry->len = 0.
1465
54ce53ca
CW
14662013-01-03 Colin Watson <cjwatson@ubuntu.com>
1467
1468 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1469 (Invoking grub-script-check): Likewise.
1470
8912efca
CW
14712013-01-03 Colin Watson <cjwatson@ubuntu.com>
1472
1473 * docs/grub.texi (Invoking grub-mount): New section.
1474 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1475
c3fc8394
CW
14762013-01-02 Colin Watson <cjwatson@ubuntu.com>
1477
1478 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1479 test failures, so that a failing unit test correctly causes 'make
1480 check' to fail.
1481
45d26abb
CW
14822013-01-02 Colin Watson <cjwatson@ubuntu.com>
1483
1484 Fix failing printf test.
1485
1486 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1487 '$' in the correct order when collecting type information.
1488
971dd2c6
CW
14892013-01-02 Colin Watson <cjwatson@ubuntu.com>
1490
1491 * docs/grub.texi (configfile): Explain environment variable
1492 handling.
1493 (source): New section.
1494 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1495
5c67ea6c
CW
14962012-12-31 Colin Watson <cjwatson@ubuntu.com>
1497
1498 Remove several trivially-unnecessary uses of nested functions.
1499
1500 * grub-core/commands/i386/pc/sendkey.c
1501 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1502 instead of nested.
1503 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1504 Rename to ...
1505 (legacy_file_getline): ... this.
1506 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1507 Likewise.
1508 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1509 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1510 to ...
1511 (probe_dummy_iter): ... this.
1512 * grub-core/kern/i386/coreboot/mmap.c
1513 (grub_linuxbios_table_iterate: check_signature): Likewise.
1514 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1515 check_varstate): Likewise. Mark inline.
1516 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1517 an additional parameter.
1518 (find_long: fnd_long): Likewise. Pass two additional parameters.
1519 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1520 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1521 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1522 Likewise. Rename to ...
1523 (grub_cmos_find_port_iter): ... this.
1524 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1525 Rename to ...
1526 (find_rtc_iter): ... this.
1527
1528 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1529 function directly into the function body, since it is only called
1530 once.
1531
33a68ac6
CW
15322012-12-30 Colin Watson <cjwatson@ubuntu.com>
1533
1534 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1535 __attribute__ ((unused)).
1536 * grub-core/video/bochs.c (find_card): Likewise.
1537 * grub-core/video/cirrus.c (find_card): Likewise.
1538 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1539 * grub-core/video/sis315pro.c (find_card): Likewise.
1540 * grub-core/video/sm712.c (find_card): Likewise.
1541
608b647a
CW
15422012-12-28 Colin Watson <cjwatson@ubuntu.com>
1543
1544 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1545 Fixes Savannah bug #37821.
1546
fd49ceb3
CW
15472012-12-28 Colin Watson <cjwatson@ubuntu.com>
1548
1549 Apply program name transformations at build-time rather than at
1550 run-time. Fixes Debian bug #696465.
1551
1552 * acinclude.m4 (grub_TRANSFORM): New macro.
1553 * configure.ac: Create output variables with transformed names for
1554 most programs.
1555 * util/bash-completion.d/grub-completion.bash.in: Use
1556 pre-transformed variables for program names.
1557 * util/grub-install.in: Likewise.
1558 * util/grub-kbdcomp.in: Likewise.
1559 * util/grub-mkconfig.in: Likewise.
1560 * util/grub-mkconfig_lib.in: Likewise.
1561 * util/grub-mknetdir.in: Likewise.
1562 * util/grub-mkrescue.in: Likewise.
1563 * util/grub-mkstandalone.in: Likewise.
1564 * util/grub-reboot.in: Likewise.
1565 * util/grub-set-default.in: Likewise.
1566 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1567 * tests/util/grub-shell-tester.in: Remove unused assignment.
1568 * tests/util/grub-shell.in: Likewise.
1569 * util/grub.d/00_header.in: Likewise.
1570
7024b3c0
CW
15712012-12-28 Colin Watson <cjwatson@ubuntu.com>
1572
1573 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1574
1575 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1576 HAVE_RAW_DECL_GETS.
1577 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1578
e3501b13
VS
15792012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1582 Reported by: Eriks Latosheks <foresterlv>.
1583
b40c88a9
VS
15842012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * docs/grub.texi (Network): Update instructions on generating netboot
1587 image.
1588
ce96d01c
VS
15892012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1590
1591 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1592 around device name if necessarry.
1593
0f596201
PFS
15942012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1595
1596 * util/grub-install.in: Follow the symbolic link parameter added
1597 to the file command.
1598
600d5bdb
AB
15992012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1600
1601 * util/grub-install.in: Remove stale TODO.
1602
64ebd2f4
PFS
16032012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1604
1605 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1606 dynamic allocation for the bootpath buffer.
1607
74b2fe3e
DTB
16082012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1609
1610 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1611 window too small.
1612
969b804f
VS
16132012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1616 argument rather than font name. All users updated.
1617 (grub_gfxterm_set_window): Likewise.
1618
b9f5ebd6
VT
16192012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1620
1621 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1622 from working.
1623
258f43b7
VS
16242012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1625
1626 * util/getroot.c (convert_system_partition_to_system_disk): Support
1627 nbd disks.
1628
cc1ce5f9
VS
16292012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1632 infinite loop on corrupted FS.
1633
e77a16ca
VS
16342012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 Fix big-endian mtime.
1637
1638 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1639 together sec and usec.
1640 (grub_ufs_dir): Use correct byteswapping for UFS time.
1641
d9c48c7b
VS
16422012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1643
1644 Support big-endian UFS1.
1645
1646 * Makefile.util.def (libgrubmods): Add ufs_be.c
1647 * grub-core/Makefile.core.def (ufs1_be): New module.
1648 * grub-core/fs/ufs_be.c: New file.
1649 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1650 the file.
1651
2f9f40ba
LL
16522012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1653
1654 * include/grub/types.h: Fix functionality unaffecting typo in
1655 GRUB_TARGET_WORDSIZE conditional macro.
1656
48ff0889
PFS
16572012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1658
1659 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1660
03711240
GS
16612012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1662
1663 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1664 that /netbsd appears first (when it exists).
1665
a31b11bd
CJ
16662012-10-12 Christoph Junghans <ottxor@gentoo.org>
1667
1668 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1669 Fixes Savannah bug #37558.
1670
e8a5d5d4
CW
16712012-10-12 Colin Watson <cjwatson@ubuntu.com>
1672
1673 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1674 description of extract_entries_configfile.
1675
16762012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
1677
1678 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1679 preferred_address.
1680 (grub_cmd_linux): Likewise.
1681 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1682 preferred_lifetime. Update all users.
1683
288c757d
CW
16842012-09-26 Colin Watson <cjwatson@ubuntu.com>
1685
1686 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1687 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1688
0d35da3f
CW
16892012-09-26 Colin Watson <cjwatson@ubuntu.com>
1690
1691 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1692 errors from grub-probe to /dev/null, not stdout.
1693
b78c3127
VS
16942012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1697 sector 1.
1698
473959f0
CW
16992012-09-24 Colin Watson <cjwatson@ubuntu.com>
1700
1701 * util/grub-install.in: Make the error message if $source_dir
1702 doesn't exist more useful.
1703
794c8c33
CW
17042012-09-22 Colin Watson <cjwatson@ubuntu.com>
1705
1706 Fix grub-emu build on FreeBSD.
1707
1708 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1709 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1710 headers on Linux.
1711 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1712 implementation is currently Linux-specific.
1713 * util/getroot.c (exec_pipe): Define only on Linux or when either
1714 libzfs or libnvpair is unavailable.
1715 (find_root_devices_from_poolname): Remove unused path variable.
1716
86d08fdb
CW
17172012-09-19 Colin Watson <cjwatson@ubuntu.com>
1718
1719 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1720 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1721 should fit before end == 63.
1722
735abf54
CW
17232012-09-19 Colin Watson <cjwatson@ubuntu.com>
1724
1725 * util/grub-setup.c (write_rootdev): Remove unused core_img
1726 parameter. Update all callers.
1727 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1728 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1729 GRUB_SETUP_BIOS.
1730
140acd3c
VS
17312012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1734 (grub_add_tab): New function.
1735 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1736 * util/grub.d/10_illumos.in: Likewise.
1737 * util/grub.d/10_kfreebsd.in: Likewise.
1738 * util/grub.d/10_linux.in: Likewise.
1739 * util/grub.d/10_netbsd.in: Likewise.
1740 * util/grub.d/10_windows.in: Likewise.
1741 * util/grub.d/10_xnu.in: Likewise.
1742 * util/grub.d/20_linux_xen.in: Likewise.
1743 * util/grub.d/30_os-prober.in: Likewise.
1744
7ddffdad
VS
17452012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1746
1747 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1748 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1749 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1750 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1751 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1752 ieee1275-nocursor.
1753 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1754 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1755
4e092454
VS
17562012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1757
1758 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1759 le-conversion.
1760 Reported by: BURETTE, Bernard.
1761
735abf54 17622012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
1763
1764 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1765 from comment.
1766
dfd39dbd
CW
17672012-09-14 Colin Watson <cjwatson@ubuntu.com>
1768
1769 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1770 IEEE1275 machines. Fixes powerpc-emu compilation.
1771 * include/grub/terminfo.h: Likewise.
1772
3bfa763c
VS
17732012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1776 a const pointer.
1777 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1778 const pointer.
1779 (efiemu_set_variable): Make vendor_guid a const pointer.
1780
250e475b
VS
17812012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 Don't require grub-mkconfig_lib to generate manpages for programs.
1784
1785 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1786 dependencies, don't add grub-mkconfig_lib.
1787 (program): Pass empty adddeps.
1788 (script): Pass grub-mkconfig_lib as adddeps.
1789
592fd0e4
VS
17902012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1793 * util/getroot.c (grub_find_device): Likewise.
1794 (get_mdadm_uuid): Likewise.
1795 (grub_util_is_imsm): Likewise.
1796 (grub_util_pull_device): Likewise.
1797 * util/grub-probe.c (probe): Likewise.
1798
801a3027
BG
17992012-09-10 Benoit Gschwind <gschwind>
1800
1801 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1802 (devs): Add devpath_8.
1803
c5052c81
PJ
18042012-09-08 Peter Jones <pjones@redhat.com>
1805
1806 * grub-core/Makefile.core.def (efifwsetup): New module.
1807 * grub-core/commands/efi/efifwsetup.c: New file.
1808 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1809 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1810 New define.
1811 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1812
8e832f71
JS
18132012-09-05 Jiri Slaby <jslaby@suse.cz>
1814
1815 * configure.ac: Add SuSe path.
1816
f0f55752
CW
18172012-09-05 Colin Watson <cjwatson@ubuntu.com>
1818
1819 * NEWS: Fix typo.
1820
ecadc4c2
CW
18212012-09-05 Colin Watson <cjwatson@ubuntu.com>
1822
1823 * util/import_gcry.py: Sort cipher_files, to make build system
1824 generation more deterministic.
1825
64498f25
VS
18262012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1827
1828 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1829 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1830 (grub_set_datetime): Likewise.
1831
9cc836a2
VS
18322012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1835 warnings.
1836
bcfcea01
VS
18372012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1840
a4099485
VS
18412012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1842
1843 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1844
265c162a
CW
18452012-09-04 Colin Watson <cjwatson@ubuntu.com>
1846
1847 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1848 required for checkouts from bzr, but it may be useful for users or
1849 distributors wishing to update translations against a tarball
1850 distribution, and it can be helpful for the tarball to be a superset
1851 of what's in bzr.
1852
3d171e95
CW
18532012-09-04 Colin Watson <cjwatson@ubuntu.com>
1854
1855 * Makefile.am (EXTRA_DIST): Add
1856 grub-core/tests/boot/linux.init-mips.S,
1857 grub-core/tests/boot/linux.init-ppc.S, and
1858 grub-core/tests/boot/linux-ppc.cfg.
1859
f2c2503e
CW
18602012-09-04 Colin Watson <cjwatson@ubuntu.com>
1861
1862 * grub-core/mmap/mips/loongson: Remove empty directory.
1863
18642012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
1865
1866 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1867 gone.
1868
ab2163d5
CW
18692012-09-04 Colin Watson <cjwatson@ubuntu.com>
1870
1871 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1872 grub-sparc64-setup.
1873
ce938140
GS
18742012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1875
1876 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1877
529f58a5
GS
18782012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1879
1880 * po/POTFILES.in: Regenerated.
1881
16cf79e9
GS
18822012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1883
1884 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1885 (NetBSD): New subsection.
1886
39b27f1e 18872012-07-22 Ales Nesrsta <starous@volny.cz>
1888
1889 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1890 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1891
a885261b
VS
18922012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1895 * util/grub.d/10_hurd.in: Add missing quoting.
1896 * util/grub.d/10_illumos.in: Likewise.
1897 * util/grub.d/10_kfreebsd.in: Likewise.
1898 * util/grub.d/10_linux.in: Likewise.
1899 * util/grub.d/20_linux_xen.in: Likewise.
1900
7bd29c01
VS
19012012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1902
1903 New command `lsefi'.
1904
1905 * grub-core/Makefile.core.def (lsefi): New module.
1906 * grub-core/commands/efi/lsefi.c: New file.
1907 * include/grub/efi/api.h: Add more GUIDs.
1908
ac625d8f
VS
19092012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1910
1911 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1912 (grub_bsd_elf32_hook): Likewise.
1913 (grub_bsd_elf64_size_hook): Likewise.
1914 (grub_bsd_elf64_hook): Likewise.
1915 (grub_bsd_load_elf): Likewise.
1916
e73bb801
VS
19172012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1920 if hash function is unavailable.
1921 (dec_stream_header): Likewise.
1922
e81db8b5
VS
19232012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1926 filter state.
1927
d187a1c3
VS
19282012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1929
1930 Fix coreboot compilation.
1931
1932 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1933 (grub_vga_text_init_real): ... this.
1934 (grub_vga_text_fini): Rename to ...
1935 (grub_vga_text_fini_real): ... this.
1936
91a05f64
VS
19372012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1938
1939 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1940
6af96df7
VS
19412012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1942
1943 * grub-core/lib/legacy_parse.c: Support clear and testload.
1944
4d569e12
VS
19452012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1948
073b57bb
VS
19492012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1952
a706f4cc
VS
19532012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1954
1955 * grub-core/net/tftp.c (ack): Fix endianness problem.
1956 (tftp_receive): Likewise.
1957 Reported by: Michael Davidsaver.
1958
e7850aa9
VS
19592012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1962
19632012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1964
1965 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1966 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1967 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1968
35692881
VS
19692012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1970
1971 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1972 efi_mmap_size.
1973 Reported by: Stuart Hayes.
1974
c35fc5bd
VS
19752012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1978
1979 * grub-core/Makefile.core.def (mda_text): New module.
1980 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1981 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1982 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1983 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1984 here.
1985 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1986 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1987 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1988 here.
1989 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1990 to ..
1991 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1992 ... here
1993 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1994 here.
1995 * grub-core/term/i386/vga_common.c: Removed.
1996 * include/grub/i386/vga_common.h: Likewise.
1997 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1998 (grub_vga_cr_bw_read): Likewise.
1999 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
2000 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
2001 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
2002 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
2003 grub_vga_cr_read/grub_vga_cr_write.
2004 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
2005
5f91f701
VS
20062012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 * configure.ac: Bump version to 2.00.
2009 * grub-core/normal/main.c (features): Add feature_200_final.
2010
0c4f85f6
VS
20112012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
20122012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
2013
2014 * NEWS: Fix unclarity and language mistakes.
2015
f923ad22
VS
20162012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
2019 additional size to 3 pages.
2020 Reported by: Stuart Hayes.
2021
d22029ba
VS
20222012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2023
2024 * NEWS: Add 2.00 entry.
2025
58eee08f
VS
20262012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2027
2028 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
2029 put explicit "/" for empty path.
2030 (wildcard_expand): Improve dprintf.
2031
c59bdff7
VS
20322012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2033
2034 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
2035 it's equal to currnode. This can happen with "" symlink.
2036
5e6a440a
YB
20372012-06-27 Yves Blusseau <blusseau@zetam.org>
2038
2039 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
2040 echo shell command by printf command.
2041
73a68bcb
VS
20422012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
2045 the value returned by firmware is the maximal position, not diumension.
2046 (grub_terminfo_output_state): Use a more sane fallback.
2047
392a603b
VS
20482012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
2051
42d0867f
VS
20522012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
2055 frequency to 150 MHz.
2056
489509f4
VS
20572012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2058
2059 Apple fixes.
2060
2061 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
2062 __APPLE_
2063 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
2064 definition.
2065 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
2066
9f3fc883
VS
20672012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2068
2069 Handle slash in HFS label.
2070
2071 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
2072 (grub_hfs_dir): Tanslate slash.
2073 (grub_hfs_label): Don't translate slash.
2074
54853fd7
VS
20752012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2076
2077 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
2078 network protocol listing since it introduces problematic dependency on
2079 net module.
2080
4dc02ddf
VS
20812012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2082
2083 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
2084
c50c867d
VS
20852012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 Init video early on yeeloong to avoid being rebooted by watchdog.
2088
2089 * grub-core/Makefile.am (gensm712): New target.
2090 (sm712_start.S): Likewise.
2091 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
2092 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
2093 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
2094 description.
2095 * include/grub/vga.h: Move registry definitions to...
2096 * include/grub/vgaregs.h: ... here.
2097
5f92c8a1
VS
20982012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2099
2100 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
2101 signedness.
2102
e9e6f111
VS
21032012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2104
2105 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
2106 platforms with firmware disk drivers in the core.
2107
754ad9eb
VS
21082012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
2111 informative verbose message.
2112 (read_lv): Handle 64-bit segment size.
2113
315654c2
VS
21142012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2115
2116 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
2117
fb022c79
VS
21182012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
2121 character but still remove trainling spaces.
2122 (grub_fat_label): Ignore archive flag.
2123
8645f72c
VS
21242012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
2127 cast between linux_kernel_header and linux_kernel_params.
2128
36498496
VS
21292012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
2132 type for size.
2133 (grub_raid6_recover_func_t): Likewise.
2134 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
2135 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2136
0b5ea6b8
VS
21372012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2138
2139 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
2140
650cfcfe
GS
21412012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
2142
2143 Fix overflow.
2144
2145 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
2146 [__NetBSD__]: Add explicit cast before bitshift.
2147
8a4d6a44
VS
21482012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2149
2150 * configure.ac: Bump to 2.00~rc1.
2151
2fb97ed3
VS
21522012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2153
2154 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
2155 half of $a0.
2156
1fa097dc
VS
21572012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
21582012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
2159
2160 * docs/grub.texi: Fix search syntax.
2161 (Multi-boot manual config): Put msdos rather than GPT example.
2162 Grammar corrections.
2163
c890ba78
VS
21642012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2165
2166 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
2167
0f92dca7
VS
21682012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
2171
3988c4a0
VS
21722012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2173
2174 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
2175 message on double free. Put the value of magic in case of mismatch.
2176
9e86d4c5
VS
21772012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 Speed-up video on yeeloong.
2180
2181 * grub-core/video/sm712.c (framebuffer): Remove render_target and
2182 add cached_ptr.
2183 (grub_video_sm712_video_fini): Unmap cached_ptr.
2184 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
2185 (grub_video_sm712_set_active_render_target): Removed.
2186 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2187 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
2188 sync caches.
2189
ed24c312
VS
21902012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 Avoid flushing the same line multiple times on loongson.
2193
2194 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
2195 Step in 32 bytes and not 1 byte.
2196 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
2197 Likewise.
2198
d1718e7d
VS
21992012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
2202 subvolumes.
2203
982f1909
VS
22042012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 Implement flow control for http.
2207
2208 * grub-core/net/http.c (parse_line): Handle response 206.
2209 (http_receive): Stall if too many packets are in the queue.
2210 (http_establish): Fix range header.
2211 (http_seek): Fix double free.
2212 (http_close): Likewise.
2213 (http_packets_pulled): New function.
2214 (grub_http_protocol): Set http_seek
2215 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
2216 (ack_real): Set window depending on i_stall.
2217 (grub_net_send_tcp_packet): Likewise.
2218 (grub_net_tcp_stall): New function.
2219 (grub_net_tcp_unstall): Likewise.
2220 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
2221 (grub_net_tcp_unstall): Likewise.
2222
bd407d6e
VS
22232012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 * grub-core/net/tftp.c: Decrease stall to 50 packets.
2226
c7564b8e
VS
22272012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
2230
a3706162
VS
22312012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * tests/util/grub-shell.in: Fix a typo.
2234
b27069e0
VS
22352012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 Implement flow control for tftp.
2238
2239 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
2240 packets but stop only if stop condition is satisfied.
2241 (grub_net_fs_read_real): Call packets_pulled after real read. Use
2242 `stall' instead of `eof' as stop condition.
2243 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
2244 (http_err): Likewise.
2245 * grub-core/net/tftp.c (ack): Replace the first argument with data
2246 instead of socket.
2247 (tftp_receive): Stall if too many packets are in wait queue.
2248 (tftp_packets_pulled): New function.
2249 (grub_tftp_protocol): Set packets_pulled.
2250 * include/grub/net.h (grub_net_packets): New field count.
2251 (grub_net_put_packet): Increment count.
2252 (grub_net_remove_packet): Likewise.
2253 (grub_net_app_protocol): New field `packets_pulled'.
2254 (grub_net): New field `stall'.
2255
6b9cfac6
VS
22562012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
2259 sync part to handle them.
2260
f35abd81
VS
22612012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
2264 * grub-core/net/drivers/ieee1275/ofnet.c
2265 (grub_ieee1275_net_config_real): Likewise.
2266
0e7ec820
VS
22672012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
2270 the direct route for server/gateway.
2271
9d611a31
VS
22722012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2273
2274 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
2275 IP address to server name since we may not hame the DNS.
2276
418f45ab
VS
22772012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
2280 freeing random buffer on failure.
2281 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
2282
44a0efc1
VS
22832012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
2286
531e2241
VS
22872012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
2290 reserved bytes.
2291 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
2292 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
2293 Handle malloc error correctly.
2294
cde393c9
VS
22952012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2296
2297 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
2298 blocks.
2299
538478d0
VS
23002012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
2303 increment.
2304
9b55efe0
VS
23052012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
2308 none is explicitly specified.
2309
9eb832c3
VS
23102012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
2313 while reallocating.
2314
d6b7c7c9
VS
23152012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2316
2317 Respect netmask from bootp/dhcp.
2318
2319 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2320 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2321 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2322 into ...
2323 (grub_net_add_ipv4_local): ... this.
2324 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2325 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2326 (grub_net_add_ipv4_local): New proto.
2327
67caf9eb
VS
23282012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2329
2330 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2331 determining EFI memory map size.
2332
43657558
VS
23332012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2334
2335 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2336
eb6d0dd3
VS
23372012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2340 when looking for partition separator.
2341
31230544
VS
23422012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2345 Escape commas.
2346
918a2517
VS
23472012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2348
2349 Restructure FAT driver to avoid hook in label reading as it hits a
2350 GCC bug.
2351
2352 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2353 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2354 (grub_fat_iterate_dir): Split into ...
2355 (grub_fat_iterate_init): ... this, ...
2356 (grub_fat_iterate_fini): ... this, ...
2357 (grub_fat_iterate_dir_next): ... and this. All users updated.
2358
9f1d654e
VS
23592012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2360
2361 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2362 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2363 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2364 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2365 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2366 New fields last_key and last_key_time.
2367 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2368 extended key-esc into extended key-extended key.
2369
52f0f643
VS
23702012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 Avoid unnecessary memcpy of whole video buffer.
2373
2374 * grub-core/video/fb/video_fb.c (dirty): New struct.
2375 (framebuffer): Add members current_dirty and previous_dirty.
2376 (dirty): New function.
2377 (grub_video_fb_fill_rect): Update dirty.
2378 (common_blitter): Likewise.
2379 (grub_video_fb_scroll): Likewise.
2380 (doublebuf_blit_update_screen): Copy only dirty part.
2381 (doublebuf_pageflipping_update_screen): Likewise.
2382 (grub_video_fb_doublebuf_blit_init): Init dirty.
2383 (doublebuf_pageflipping_init): Likewise.
2384 (grub_video_fb_setup): Likewise.
2385
e169a180
VS
23862012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2389 poll rate.
2390
48556879
VS
23912012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 Fix wildcard regexp dot and other special characters handling.
2394 Reported by: Robert Mabee.
2395
2396 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2397 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2398 (split_path): Trigger expansion on '?'.
2399 (unescape): New function.
2400 (wildcard_expand): Unescape parts copied without globbing.
2401 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2402 (grub_script_arglist_to_argv): Don't unescape expansions.
2403
0494408e
VS
24042012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2405
2406 * include/grub/net.h (grub_net_card): New member txbufsize.
2407 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2408 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2409 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2410 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2411 txbufsize.
2412 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2413 compatible property to check for macs. Set
2414 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2415 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2416 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2417 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2418 (send_card_buffer): Use txbuf.
2419 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2420 nested function out of the parent while on it.
2421
cc35fe8f
VS
24222012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2423
2424 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2425 presence check.
2426 (grub_ieee1275_net_config_real): Fix config pointer.
2427
970a0a09
VS
24282012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2431 filename parsing to non-block devices.
2432
3e19bf87
VS
24332012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2436
c62d1a0c
VS
24372012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2440 All users updated.
2441
ef76bec3
VS
24422012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2445 UUID search command even if hints probing failed.
2446
24472012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
2448
2449 * po/POTFILES.in: Regenerated.
2450
70aaf305
VS
24512012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 Speed-up video on fuloong.
2454
2455 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2456 New function.
2457 (grub_pci_device_unmap_range): Handle non-cached address.
2458 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2459 add direct_ptr.
2460 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2461 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2462 (grub_video_sis315pro_set_active_render_target): Removed.
2463 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2464 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2465 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2466 sync caches.
2467 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2468 New proto.
2469
10400f0b
VS
24702012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 * docs/grub.texi (Multi-boot manual config): New section.
2473
ba67e2c6
VS
24742012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 Avoid slow read-back from VRAM.
2477
2478 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2479 Move from here ...
2480 * grub-core/video/fb/video_fb.c
2481 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2482 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2483 (front_target): Remove front_target. Add pages.
2484 (grub_video_fb_init): Skip setting front_pages.
2485 (grub_video_fb_fini): Likewise.
2486 (doublebuf_blit_update_screen): Use pages.
2487 (grub_video_fb_doublebuf_blit_init): Likewise.
2488 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2489 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2490 (grub_video_fb_setup): Prefer doublebuffing.
2491
377c98cb
VS
24922012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2493
2494 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2495 gzio.
2496
eac49cff
VS
24972012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2498
2499 Add loongson tests.
2500
2501 * tests/util/grub-shell.in: Handle loongson.
2502 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2503 drivers.
2504 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2505 Reboot instead of shutdown if REBOOT is defined.
2506
0321415e
VS
25072012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2510 sized ports since unlike on real hardware qemu supports only 32-bit
2511 regs.
2512
3f2bdd8f
VS
25132012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2514
2515 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2516 * util/grub-mkrescue.in: Handle loongson.
2517
29a049c9
VS
25182012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2521 Set is_part appropriately.
2522 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2523 names. Canonicalize partition without full disk.
2524
4abde346
VS
25252012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2526
2527 Revert usb-quiesce since it's wrong.
2528
2529 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2530 (grub_ofdisk_init): Don't do quiesce.
2531
61f1d93b
VS
25322012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2533
2534 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2535 PowerMac workaround to Xserves as well.
2536 Information supplied by: Benjamin Herrenschmidt.
2537
a09eb541
VS
25382012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2539
2540 Don't assume that beginning address is also the entry point on ppc.
2541
2542 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2543 (grub_linux_boot): Use linux_entry.
2544 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2545 (grub_linux_load64): Likewise.
2546
505b3c9b
VS
25472012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2550
cbe0b4ef
VS
25512012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2552
2553 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2554 needlessly lose the console.
2555
3006e981
VS
25562012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2557
2558 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2559 space.
2560
4e5a96b0
VS
25612012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2562
7da036bb
VS
2563 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2564 than current grub_get_rtc() not implemented when booted with
2565 coreboot without TSC.
2566
2567 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2568 Add machine/time.h to kernel headers on loongson.
2569 * grub-core/Makefile.core.def (kernel): Remove
2570 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2571 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2572 (grub_get_rtc): Likewise.
2573 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2574 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2575 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2576 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2577 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2578 rather than installing known non-working time source.
2579 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2580 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2581 * include/grub/time.h: Don't include machine/time.h.
2582 * include/grub/efi/time.h: Removed.
2583 * include/grub/i386/efi/time.h: Likewise.
2584 * include/grub/i386/ieee1275/time.h: Likewise.
2585 * include/grub/powerpc/ieee1275/time.h: Likewise.
2586 * include/grub/sparc64/ieee1275/time.h: Likewise.
2587 * include/grub/x86_64/efi/time.h: Likewise.
2588
25892012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2590
2591 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
2592
2593 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2594 value.
2595 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2596 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2597 with dotless variants when any combining above is present.
2598
5561c22d
VS
25992012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2602 text and not binary.
2603
96f7e60e
VS
26042012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2605
2606 Stop polling as soon as we have the packet we were waiting for.
2607
2608 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2609 All users updated.
2610 * grub-core/net/arp.c (have_pending): New var.
2611 (pending_req): Likewise.
2612 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2613 stop indicator.
2614 (grub_net_arp_receive): Set have_pending.
2615 * grub-core/net/dns.c (recv_data): New field stop.
2616 (recv_hook): Set stop.
2617 (grub_net_dns_lookup): Init stop and use as stop condition.
2618 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2619 condition.
2620 * grub-core/net/net.c (grub_net_poll_cards): New argument
2621 stop_condition. Stop when it goes true.
2622 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2623 indicator.
2624 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2625
3e747239
VS
26262012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2627
2628 Keep TX and RX buffers on EFI rather than always allocate new ones.
2629
2630 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2631 card. All users updated.
2632 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2633 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2634 (get_card_packet): Likewise.
2635 (grub_efinet_findcards): Init new fields.
2636
f695e99a
VS
26372012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2638
2639 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2640 compilation error on sparc64.
2641
9e5e66d1
VS
26422012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2643
2644 Use ITC on IA64 rather than broken routine based on daytime.
2645
2646 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2647 ia64.
2648 (grub_get_rtc) [__ia64__]: Likewise.
2649 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2650 (get_itc): New function.
2651 (grub_rtc_get_time_ms): Likewise.
2652 (grub_machine_init): Calibrate ITC.
2653 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2654 Keep only on non-ia64. Don't export since it's broken and used only
2655 if TSC is unavailable.
2656
a1767404
VS
26572012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2660 even if it's used.
2661 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2662 Skip if parent is unused.
2663
34b2bced
VS
26642012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2667
5e619f40
VS
26682012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2669
2670 Fix wildcard escaping.
2671
2672 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2673 * grub-core/script/execute.c (wildcard_escape): .. to here.
2674 Don't escape dot.
2675 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2676 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2677 Don't escape dot.
2678 * grub-core/script/execute.c (gettext_append): Always escape.
2679 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2680 * grub-core/script/yylex.l: Don't cut away the escaping.
2681 * tests/grub_script_echo1.in: Add tests with wildcard.
2682
c8ca5855
VS
26832012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2684
2685 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2686 (ftdi_hw_configure): Likewise.
2687 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2688 define.
2689 (real_config): Handle 1.5 stop bits.
2690 (pl2303_hw_configure): Likewise.
2691
7183452c
VS
26922012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * Makefile.am: Add ppc linux bootcheck.
2695 * grub-core/tests/boot/linux-ppc.cfg: New file.
2696 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2697
f57c84cd
VS
26982012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2699
2700 * tests/grub_script_expansion.in: Skip network protocols.
2701
ecfc6207
VS
27022012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2703
2704 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2705
8d03d284
VS
27062012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2707
2708 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2709 --rom-directory.
2710 Add -graft-points.
2711
61c42af0
VS
27122012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 ESCC serial driver for conducting sautomated tests in qemu.
2715 Not tested on real hardware.
2716
2717 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2718 * grub-core/term/ieee1275/escc.c: New file.
2719 * grub-core/Makefile.core.def (escc): New module.
2720
08fd1291
VS
27212012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2724 invalid on error.
2725 (serial_hw_fetch): Don't read invalid handle.
2726 (serial_hw_put): Don't write into invalid handle.
2727
08dafeea
VS
27282012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 Add a 1.5 stop bits value.
2731
2732 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2733 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2734 GRUB_SERIAL_STOP_BITS_1_5.
2735
9068fdcf
VS
27362012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2737
2738 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2739 value rather than let it uninited.
2740
f4d5820f
VS
27412012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 * grub-core/commands/wildcard.c (+check_file): New function.
2744 (wildcard_expand): Don't expand to non-existing files, expand with
2745 suffix and not attempt to expand if not needed.
2746
3d2de9a7
VS
27472012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2748
2749 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2750 out of partitions containing other partitions.
2751
c5c81ff9
VS
27522012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2753
2754 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2755 on some qemu versions with GRUB.
2756
2757 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2758 define.
2759 (grub_openbsd_bootarg_pcibios): New struct.
2760 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2761 Add PCIINFO.
2762
08a14e0b
VS
27632012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2764
2765 * tests/util/grub-shell.in: Trim firmware output on EFI.
2766
cede3ca3
VS
27672012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2770 and coreboot since it's already in kernel.
2771
558d3a60
VS
27722012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2773
2774 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2775 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2776 to here. New return value start. All users updated.
2777 Recursively scan linear mappings.
2778 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2779 proto.
2780 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2781 Use grub_util_get_dm_node_linear_info.
2782 * util/getroot.c (convert_system_partition_to_system_disk): Use
2783 grub_util_info rather than grub_dprintf.
2784 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2785
60fde14d
VS
27862012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2789
2790 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2791 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2792
24bd8838
VS
27932012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * include/grub/types.h (grub_set_unaligned64): New function.
2796 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2797 (setup): Likewise.
2798
7bc06a49
VS
27992012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2800
2801 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2802 (grub_ofdisk_fini): Quiesce USB devices.
2803
49cea015
VS
28042012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2807 caches.
2808
8dcbe03b
VS
28092012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2810
2811 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2812
5b258735
VS
28132012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * grub-core/disk/pata.c (grub_pata_pio_read)
2816 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2817 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2818
37ba07eb
VS
28192012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 Extend automated tests to qemu-mips.
2822
2823 * Makefile.am: reorganise tests and enable qemu-mips.
2824 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2825 * grub-core/tests/boot/linux.init-mips.S: New file.
2826 * tests/partmap_test.in: Handle ata0 disks.
2827 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2828 non-pc i386.
2829
070038f8
VS
28302012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2831
2832 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2833 ia64.
2834 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2835 quotes while on it.
2836
004be2cd
VS
28372012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2840 (grub_halt): Likewise.
2841 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2842
b1622487
VS
28432012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * grub-core/term/serial.c (grub_serial_register)
2846 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2847 the behaviour in line with x86 platforms.
2848
b7b4ab33
VS
28492012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2852 (grub_ata_strncpy): Likewise.
2853 (grub_ata_identify): Add missing byteswaps.
2854
5e3535ae
VS
28552012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2858 byte-swap.
2859 (screen_read_char): Likewise.
2860 (grub_vga_text_cls): Likewise.
2861
c21b17e6
VS
28622012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2863
2864 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2865 filenames.
2866 (make_file_path): Likewise.
2867
bf293dec
VS
28682012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2871 machines.
2872 Tested by: Paulo Flabiano Smorigo.
2873 Crucial information about API supplied by: Coleen <Last name unknown>.
2874 Reviewed by: Coleen <Last name unknown>.
2875
81f6ef0e
VS
28762012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 * util/grub-mkimage.c: Disable -Wcast-align.
2879
7284143a
VS
28802012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2883 as they are fatal.
2884
b99f3e00
VS
28852012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2886
2887 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2888
944f752d
VS
28892012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2890
2891 * util/grub-probe.c (escape_of_path): Fix double free.
2892
6cce6f38
VS
28932012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 * grub-core/commands/videoinfo.c (hook): Show pitch.
2896
1e1eb50e
VS
28972012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2898
2899 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2900
1c715b5a
VS
29012012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2902
2903 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2904 (probe): Add ieee1275 to OFW devices.
2905
007ae52d
VS
29062012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2909
4557a36d
VS
29102012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 Handle IBM OFW path.
2913
2914 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2915 available.
2916 (of_path_of_scsi): Handle vdevice.
2917
efbeefe9
VS
29182012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2919
2920 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2921 Allocate in multiples of 16 to avoid adding a few bytes free region the
2922 windows bugs upon.
2923
15a940bb
VS
29242012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2927 Allocate in multiples of 16 to avoid adding a few bytes free region the
2928 windows bugs upon.
2929 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2930
6e5efd60
VS
29312012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2934 resolutions.
2935 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2936 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2937
0d3d137e
IS
29382012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2939
2940 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2941
45dbe300
VS
29422012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2945 resulted in \\ at the end of the line.
2946
6d8db947
VS
29472012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2950 (grub_parser_cmdline_state): Likewise.
2951 (grub_parser_split_cmdline): Likewise.
2952
de89d338
VS
29532012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2954
2955 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2956 /dev/root and /dev/dm-*.
2957
00d41dee
VS
29582012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2959
2960 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2961 fix partially stale display.
2962
f95d1f11
VS
29632012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2964
2965 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2966 substraction.
2967
6297e197
VS
29682012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2969
2970 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2971 Fix MBR remapping workaround.
2972 (grub_util_biosdisk_read) [__linux__]: Likewise.
2973
8a7ecad3
VS
29742012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2977
2b34f944
VS
29782012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2979
2980 * configure.ac: Bump to beta6.
2981
684aef11
CW
29822012-05-31 Christer Weinigel <christer@weinigel.se>
2983
2984 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2985
05b0bb91
VS
29862012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2989 (grub_cmd_linux): Likewise.
2990
bda36bfa
CW
29912012-05-31 Christer Weinigel <christer@weinigel.se>
2992
2993 Fix EHCI low-speed.
2994
2995 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2996 (GRUB_EHCI_MULT_TWO): Likewise.
2997 (GRUB_EHCI_MULT_THREE): Likewise.
2998 (GRUB_EHCI_CMASK_MASK): New enum value.
2999 (GRUB_EHCI_SMASK_MASK): Likewise.
3000 (GRUB_EHCI_CMASK_OFF): Likewise.
3001 (GRUB_EHCI_SMASK_OFF): Likewise.
3002 (grub_ehci_pci_iter): Enable periodic schedule.
3003 (grub_ehci_parse_notrun): Likewise.
3004 (grub_ehci_restore_hw): Likewise.
3005 (grub_ehci_setup_qh): Set flags for low speed transfers.
3006 (grub_ehci_find_qh): Use periodic list for low speed.
3007 (grub_ehci_setup_transfer): Check periodic queue as well.
3008 (grub_ehci_check_transfer): Likewise.
3009 (grub_ehci_cancel_transfer): Cancel periodic transfer.
3010
e12bcb1c
PFS
30112012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3012
3013 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
3014 parameter is used.
3015
bcc75fb3
PJ
30162012-05-31 Peter Jones <pjones@redhat.com>
3017
3018 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
3019 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
3020 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
3021
f19cb95e
VS
30222012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
3025 uninited variable. Allocate at least setup_sects.
3026
a4e5ca80
VS
30272012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 Fix handling of EFI with big memory maps.
3030
3031 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
3032 (real_mode_mem): Likewise.
3033 (real_mode_target): Likewise.
3034 (real_mode_pages): Likewise.
3035 (prot_mode_pages): Likewise.
3036 (linux_params): New var.
3037 (linux_cmdline): Likewise.
3038 (free_pages): Don't set real mode variables.
3039 (allocate_pages): Don't allocate real mode memory.
3040 (grub_e820_add_region): Remove the limit.
3041 (grub_linux_boot): Allocate and copy real mode memory.
3042 (grub_linux_unload): Free linux_cmdline.
3043 (grub_cmd_linux): Use temporary storage for parameters.
3044 (grub_cmd_initrd): Likewise.
3045 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
3046 (linux_kernel_params): Make it 1K big.
3047
ddb73558
VS
30482012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 * Makefile.util.def: Remove -Wno-format.
3051 * grub-core/Makefile.core.def: Likewise.
3052
1c4afb60
VS
30532012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * tests/cmp_unit_test.c: Add missing failure message.
3056 * tests/example_unit_test.c: Likewise.
3057 * tests/printf_unit_test.c: Likewise.
3058
941e3a6d
VS
30592012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3060
3061 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
3062 relaxation of protective MBR requirements.
3063
b105df76
VS
30642012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * configure.ac: Add condition for COND_HOST_XNU.
3067 * Makefile.util.def (10_xnu): New script.
3068 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
3069
84e1569e
VS
30702012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
3073 objconv bug.
3074
130c0f77
VS
30752012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3076
3077 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
3078 Binary on other platforms stays identical.
3079
6fd0b143
VS
30802012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
3083 Apple.
3084
0af1751d
VS
30852012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3086
3087 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
3088
176d5f7d
VS
30892012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3090
3091 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
3092 rather than defining size_t ourselves to avoid conflict.
3093
7de5e20a
VS
30942012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3095
3096 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
3097 initialisation to avoid __bzero reference.
3098
f7143efe
VS
30992012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
3102 version.
3103 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
3104 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
3105 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
3106 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
3107 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
3108
e6ad0555
VS
31092012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3110
3111 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
3112 * grub-core/kern/misc.c: Likewise.
3113 * grub-core/loader/i386/xnu.c: Likewise.
3114 * include/grub/i386/tsc.h: Likewise.
3115 * include/grub/symbol.h: Likewise.
3116
4a5a3c4a
VS
31172012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
3120 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
3121 on older compiler.
3122
037f6d90
VS
31232012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3126 Implement Apple flavour.
3127 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
3128
f7194551
VS
31292012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
3132 (memmove) [__APPLE__]: Likewise.
3133 (memcpy) [__APPLE__]: Likewise.
3134 (memset) [__APPLE__]: Likewise.
3135 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
3136 (memmove) [__APPLE__]: Likewise.
3137 (memcpy) [__APPLE__]: Likewise.
3138 (memset) [__APPLE__]: Likewise.
3139
85a730ca
VS
31402012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3141
3142 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
3143 dependency discard.
3144
40e80b94
VS
31452012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * grub-core/normal/main.c (read_config_file): Provide config_file and
3148 config_directory.
3149 * util/grub.d/41_custom.in: Use config_directoy when available.
3150
9da59c32
VS
31512012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3152
3153 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
3154 (grub_bfs_dir): Likewise.
3155
2787ae53
PJ
31562012-05-27 Peter Jones <pjones@redhat.com>
3157
3158 The old code gives arguments to a printf function which can't work
3159 correctly, and the compiler complains.
3160
3161 * grub-core/tests/example_functional_test.c (example_test): Add
3162 missing text.
3163 * grub-core/tests/lib/test.c (add_failure): Rewrite.
3164 * include/grub/test.h (grub_test_assert_helper): New declaration.
3165 (grub_test_assert): Use grub_test_assert_helper.
3166
526ef13d
VS
31672012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
3170 (exfctest): ... this to avoid overlong filenames.
3171 All users updated.
3172
20dd511c
VS
31732012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3174
3175 Handle "." and ".." on squashfs.
3176
3177 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
3178 Make inode numbers into stack.
3179 (grub_squash_read_symlink): Use stack.
3180 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
3181 (make_root_node): Fill stack.
3182 (grub_squash_open): Use stack.
3183
1d80c62a
VS
31842012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
3187 freeing.
3188
d336f652
VS
31892012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3190
3191 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
3192 stderr on test calls.
3193
8b43f587
VS
31942012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3195
3196 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
3197
80a3dc3f
VS
31982012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3199
3200 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
3201
47e297d4
VS
32022012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3203
3204 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
3205 "..".
3206
df042ccb
VS
32072012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
3210 (grub_hfsplus_iterate_dir): Add "." and "..".
3211
fc977f48
VS
32122012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3213
3214 * grub-core/fs/cpio.c (canonicalize): Handle "..".
3215 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
3216
f3250e5f
VS
32172012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
3220 (find_path): Handle "." and "..".
3221
fd8ed4c5
VS
32222012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
3225 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
3226 (grub_affs_iterate_dir): Handle hardlinks.
3227
4ce776d2
MG
32282012-05-26 Matthew Garrett <mjg@redhat.com>
3229
3230 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
3231 (grub_efi_console_fini): Likewise.
3232 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
3233 (grub_video_gop_fill_mode_info): Rename to ...
3234 (grub_video_gop_fill_real_mode_info): ... this.
3235 (grub_video_gop_fill_mode_info): New function.
3236 (grub_video_gop_setup): Setup double framebuffer.
3237 (grub_video_gop_get_info_and_fini): Use original framebuffer.
3238 Free offscreen.
3239 (grub_video_gop_swap_buffers): Copy framebuffer.
3240 (grub_video_gop_fini): Free offscreen buffer.
3241 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
3242 New enum.
3243 (grub_efi_gop_blt_pixel): New struct.
3244
683031ba
VS
32452012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * gentpl.py: Remove error disabling for objconv.
3248
c2deb798
VS
32492012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 * configure.ac: Remove -Wunitialized as it's not available on older
3252 compilers.
3253
32542012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
3255
3256 Fix extent overflow comparator.
3257
3258 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
3259 (grub_hfsplus_read_block): Set type.
3260 (grub_hfsplus_cmp_extkey): Compare type.
3261
d6b1fd36
VS
32622012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
3263
3264 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
3265
0a9aa0f6
VS
32662012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
3269 than 0.
3270
8360e159
VS
32712012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
3274 (dejavu_bold_14.pf2): New target.
3275
501b9e4b
VS
32762012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 * configure.ac: Fix djvu font detection.
3279
7026b0e2
VS
32802012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3281
3282 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
3283 ext* instead of ext2.
3284
c2a51ade
VS
32852012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
3288 name with \0.
3289
8f803a5d
JU
32902012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
3291
3292 * docs/grub-dev.texi: Remove dot from .png.
3293
13c6353f
VS
32942012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
3297 protective entry in any slot.
3298 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
3299 if protective entry is found in any slot.
3300
3301 Protective entry in non-first slot make no sense but is a widespread
3302 brain damage.
3303
4cf6be1b
VS
33042012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3305
3306 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
3307
937d1c44
VS
33082012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3309
3310 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
3311 with old reiserfs.
3312 (grub_reiserfs_open): Don't free root.
3313
021d90ec
VS
33142012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3315
3316 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
3317 after freeing for safety.
3318
967b2b64
VS
33192012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3320
3321 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3322 Reported by: Jordan Uggla.
3323
34274d02
JU
33242012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3325
967b2b64
VS
3326 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3327 actual implementation. Specifically, clarify that the grub menu will
3328 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3329 passed.
34274d02 3330
dcaaae9d
BH
33312012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3332
3333 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3334 of r0.
3335
7086ad52
VS
33362012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3337
3338 Remove unjustified hard dependency of normal.mod on gfxterm.
3339
3340 * include/grub/term.h (grub_term_output): New member fullscreen.
3341 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3342 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3343 (grub_gfxterm): Set .fullscreen.
3344 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3345 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3346
37ed2c9b
VS
33472012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3348
3349 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3350 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 3351 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 3352
a4469c88
VS
33532012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3356
4e461486
VS
33572012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3360 a bad FS.
3361
aa78f5c4
VS
33622012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3363
3364 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3365 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3366
197626b5
VS
33672012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3368
3369 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3370 (grub_jfs_mount): Fill caseins.
3371 (grub_jfs_find_file): Respect caseins.
3372
8ad3f28c
VS
33732012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3376 through UTF-16.
3377
0c6c324e
VS
33782012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3379
3380 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3381 New argument origpath. All users updated.
3382
c6666ba6
VS
33832012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3384
3385 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3386 (read_attr): Ensure that we read start of possibly compressed block.
3387
e28e5fe5
VS
33882012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3389
3390 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3391 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3392 All users updated.
3393
5fc23ab2
VS
33942012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3395
3396 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3397 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3398 (dejavu.pf2): Replace with ...
3399 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3400 this.
3401
79dbc21c
VS
34022012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3403
3404 * util/grub.d/20_linux_xen.in: Add missing line.
3405
d2fcfb0c
VS
34062012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3407
3408 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3409 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3410 (grub_utf16_to_utf8): Likewise.
3411
5560e9d6
VS
34122012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3413
3414 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3415 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3416 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3417 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3418 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3419 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3420
34212012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
3422
3423 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3424 a bad FS.
3425
5560e9d6 34262012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
3427
3428 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3429 (grub_udf_read_symlink): Handle read_string failure.
3430
5eae3175
VS
34312012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3434 comment.
3435
c1ad82db
VS
34362012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3437
3438 Fix handling of UDF symlinks.
3439
3440 * grub-core/fs/udf.c (read_string): New argument outbuf.
3441 All users updated.
3442 (grub_ufs_read_symlink): Rename to ...
3443 (grub_udf_read_symlink): ... this. All users updated.
3444 Handle symlinks with more than one component.
3445
33eca6e0
VS
34462012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3449 symlinks. Replace leading colon with a slash.
3450
57f4a70b
VS
34512012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3454 filename.
3455
38c8ee20
VS
34562012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3457
3458 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3459 match in inner node.
3460
2e57f28f
VS
34612012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3462
3463 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3464 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3465 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3466 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3467 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3468 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3469 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3470 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3471 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3472
fe8c2f11
VS
34732012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 Use grub-probe and not cmp to check that disk is empty.
3476
3477 * util/grub-install.in: Use grub-probe for zero-check.
3478 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3479 (probe): Handle PRINT_ZERO_CHECK.
3480 (argp_parser): Handle -t zero_check.
3481
34822012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
3483
3484 Flush block cache on adding disk to device map.
3485
3486 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3487 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3488 adding.
3489 (read_device_map): Likewise.
3490 (open_device): Flush on opening.
3491
690434e8
VS
34922012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3495 (handle_symlink): Fix off-by-one error.
3496 Canonicalize the target.
3497 (grub_cpio_dir): Canonicalize the name.
3498 Fix memory leak.
3499 Set directory.
3500 (grub_cpio_open): Canonicalize the name.
3501
742d2be6
VS
35022012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3503
3504 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3505 handling.
3506
3244fe96
VS
35072012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3508
3509 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3510 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3511
8aeb1837
VS
35122012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3513
3514 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3515 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 3516 All users updated.
8aeb1837 3517
9133fd05
VS
35182012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3521 counterpart.
3522
6d521c5b
VS
35232012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 Fix UFS1 big file support.
3526
3527 * grub-core/fs/ufs.c (INODE): Removed.
3528 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3529 64-bit.
3530 (INODE_MODE): Simplify.
3531 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3532 (grub_ufs_lookup_symlink): Don't use INODE.
3533
21b82e17
VS
35342012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3537
3538 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3539 (grub_minix_data): Replace log_block_size with block_size.
3540 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3541 (grub_minix_mount): Fill block_size.
3542
35432012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
3544
3545 * configure.ac: Bump to beta5.
3546
f417ed04
VS
35472012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 Fix wrapped HFS+ handling.
3550
3551 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3552 blocks_start. All users updated.
3553 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3554 wrapping offset.
3555 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3556
607d282b
VS
35572012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 Fix long symlinks on reiserfs.
3560
3561 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3562 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3563 (grub_reiserfs_iterate_dir): Save size for non-directories.
3564 (grub_reiserfs_open): Don't reread stat block as we already know the
3565 size.
3566 (grub_reiserfs_read): Split into...
3567 (grub_reiserfs_read_real): ... and ...
3568 (grub_reiserfs_read): ...this.
3569
ae16024d
VS
35702012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 Fix non-indexed JFS.
3573
3574 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3575 (grub_jfs_data): New field namecomponentlen.
3576 (grub_jfs_mount): Fill namecomponentlen.
3577 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3578
eea1e26e
VS
35792012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3582 * tests/grub_script_echo1.in: Add tests.
3583
df760f77
VS
35842012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3585
3586 * util/grub-install.in: Ignore empty devicetree directory.
3587
5efb817d
B
35882012-05-08 Bean <bean123ch@gmail.com>
3589
3590 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3591 All users updated.
3592 (free_rsm): Free header as well.
3593 (free_old_fragments): Fix memory leak.
3594 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3595 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3596 (destroy_pq): Likewise.
3597 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3598
668ea6d2
VS
35992012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3600
3601 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3602 resulting hash as a precaution.
3603
1739b1fe
VS
36042012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3607 '_' in variable names.
3608 * grub-core/net/net.c (grub_net_network_level_interface_register):
3609 Likewise.
3610
6ae485aa
VS
36112012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 Fix AFFS with non-512B blocks.
3614
3615 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3616 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3617 (grub_affs_data): Replace blocksize with log_blocksize.
3618 (grub_affs_read_block): Fix non-512B blocks.
3619 (grub_affs_read_symlink): Likewise.
3620 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3621 (grub_affs_read): Fix non-512B blocks.
3622 (grub_affs_label): Likewise.
3623 (grub_affs_mtime): Likewise.
3624 (grub_affs_mount): Fix block detection routine.
3625
d20fab84
VS
36262012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 Add filesystem mtime to AFFS.
3629
3630 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3631 (aftime2ctime): New function.
3632 (grub_affs_dir): Use aftime2ctime.
3633 (grub_affs_label): Fix return value.
3634 (grub_affs_mtime): New function.
3635 (grub_affs_fs): Add mtime.
3636
e87b10f5
VS
36372012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3640 UTF-8.
3641
7dceec9b
VS
36422012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3645 UTF-8.
3646
2f48221f
VS
36472012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3650
dacd85cf
VS
36512012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3654 flags.
3655 (FLAGS_CASE_SENSITIVE): New enum value.
3656 (cache_entry): New struct.
3657 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3658 cache_size and cache.
3659 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3660 Add log_blocksize and fshelp_flags.
3661 (grub_sfs_read_extent): Handle non-512 blocks.
3662 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3663 (grub_sfs_read_file): Handle non-512 blocks.
3664 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3665 fshelp_flags.
3666 (grub_sfs_read_symlink): Handle non-512 blocks.
3667 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3668 (grub_sfs_dir): Free cache.
3669 (grub_sfs_close): Likewise.
3670
24e9a854
VS
36712012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3674 filesystems.
3675
62ace64d
VS
36762012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3679
83b2e89c
VS
36802012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3681
3682 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3683
75ccaea3
VS
36842012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3685
3686 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3687 (grub_sfs_read_extent): Likewise.
3688 (grub_sfs_read_block): Likewise.
3689 (grub_sfs_mount): Likewise.
3690 (grub_sfs_iterate_dir): Likewise.
3691 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3692 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3693
1b8463f2
VS
36942012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 Fix errors on compressed NTFS with 512B clusters.
3697
3698 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3699 types.
3700 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3701 not 0.
3702 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3703 Relax check for inline extents.
3704 (ntfscomp): Return correct -1 on error and not 0.
3705
4f8e368f
VS
37062012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * util/grub-install.in: Fix handling of prefix containing spaces.
3709
6f5d5ee8
VS
37102012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3713 (grub_squash_read_data): Fix offset byte-swapping.
3714
ce41ab7a
VS
37152012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3718 per common usage and preffered in several parts of code.
3719 (grub_memcmp): Likewise.
3720 (grub_strncmp): Likewise.
3721 * include/grub/misc.h (grub_strcasecmp): Likewise.
3722 (grub_strncasecmp): Likewise.
3723 * Makefile.util.def (cmp_test): New test.
3724 (grub_script_strcmp): Likewise.
3725 * tests/cmp_unit_test.c: New file.
3726 * tests/grub_script_strcmp.in: Likewise.
3727 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3728
49717bf4
VS
37292012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3730
3731 * include/grub/pci.h: Move enums into no-asm part.
3732
0a308f64
VS
37332012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3734
3735 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3736
1796965f
ST
37372012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3738
3739 * util/getroot.c (find_hurd_root_device): Try to make error message
3740 and comments to translators clearer.
3741
4e9b2819
VS
37422012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3745
076aeb50
VS
37462012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3749 btrfs.
3750
19424d94
VS
37512012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * docs/grub.cfg: Update.
3754
ebb73076
VS
37552012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * docs/grub.texi (PXE): Remove not present variables.
3758
9a1b669c
VS
37592012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3760
3761 * grub-core/net/net.c (defserver_set_env): New function.
3762 (defserver_get_env): Likewise.
3763 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3764
d38bf7d3
VS
37652012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3768 entries.
3769
37702012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
3771
3772 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3773 * grub-core/kern/emu/hostdisk.c: Likewise.
3774
e5e4ca48
ST
37752012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3776
3777 Handle hurd userspace partitions.
3778
3779 * util/getroot.c (find_hurd_root_device): New function.
3780 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3781
56bb5dd5
VS
37822012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3785 names.
3786 Reported by: Bastian Blank.
3787
9e8bc27a
VS
37882012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3789
3790 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3791 crossing page boundary.
3792
aa01499d
VS
37932012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3794
3795 Fix B-tree search in BFS, especially in presence of non-ASCII
3796 characters.
3797
3798 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3799 (find_in_b_tree): Use standard bsearch + btree algorithm.
3800
57006035
VS
38012012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3804 and so on.
3805
9d34bb85
MG
38062012-05-03 Matthew Garrett <mjg@redhat.com>
38072012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3808
3809 Suspend broadcom cards in order to stop their DMA.
3810
3811 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3812 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3813 (pci): Don't build on x86 EFI.
3814 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3815 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3816 New function.
3817 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3818 stop_broadcom if running on EFI.
3819 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3820 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3821 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3822 (grub_pci_find_capability): New proto.
3823
01aab997
VS
38242012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 * docs/grub.texi: Remove dot from the extension as it apparently
3827 doesn't work with some makeinfo versions.
3828
fbd8dca6
VS
38292012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3832 with GRUB expectance.
3833
dab797f4
VS
38342012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3837
1516bfb4
VS
38382012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3841 zero after directory block since last entry may be not 0-terminated if
3842 it ends on block boundary. Use continue instead of if spanning whole
3843 loop.
3844
a3a0eace
VS
38452012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 Support 4K sectors UDF inline files.
3848
3849 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3850 (grub_udf_extended_file_entry): Likewise.
3851 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3852 All users updated.
3853 (get_fshelp_size): New function.
3854 (grub_udf_read_icb): Read whole block.
3855 (grub_udf_iterate_dir): Likewise.
3856 (grub_udf_dir): Likewise.
3857 (grub_udf_open): Likewise.
3858
c82f16c1
VS
38592012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3862
59fd2aac
VS
38632012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3864
3865 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3866 inline symlinks in addition to workaround.
3867
3b4afb4d
VS
38682012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3871
f45c794a
VS
38722012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3875
f25cecbd
VS
38762012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3879
bb9a34e8
VS
38802012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 Fix reiserfs big seek times.
3883
3884 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3885 exact. All users updated.
3886 (grub_reiserfs_read): Use nearest btree search for seeking.
3887 Fix return value on error.
3888
dc478aea
VS
38892012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3890
3891 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3892 entries.
3893 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3894 * docs/grub.texi: Update menuentry description.
3895
8db10f47
VS
38962012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3899 crash when embedding onto filesystem.
3900
bcb288ed
VS
39012012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3902
3903 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3904 name.
3905
a626fdd7
VS
39062012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3907
3908 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3909
b2f68477
VS
39102012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3911
3912 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3913 commit.
3914
ba15b2af
B
39152012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
39162012-05-01 Bean <bean123ch@gmail.com>
3917
3918 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3919
a188012e
VS
39202012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3923 Special behaviour for len = 0 to read whole file isn't used anywhere and
3924 can cause buffer ovewrflows in several places.
3925
f0a53ed2
VS
39262012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3929
5ed554f0
VS
39302012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3931
3932 Handle RAIDZ on non-512B sectors.
3933
3934 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3935 max_children_ashift.
3936 (fill_vdev_info_real): Fill max_children_ashift.
3937 (read_device): Use max_children_ashift.
3938
ddc58357
VS
39392012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3942
e3282399
VS
39432012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3944
3945 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3946 disk names.
3947 * docs/grub.texi: Update device.map parts.
3948
ee618bd4
VS
39492012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 Don't scan into non-diskfilter devices having diskfilter names.
3952
3953 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3954 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3955 handling.
3956 (scan_disk_hook): New function.
3957
bdf88864
B
39582012-04-29 Bean <bean123ch@gmail.com>
3959
3960 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3961 allocation.
3962
32745f51
MK
39632012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3964
3965 * configure.ac: Detect starfield theme font path
3966 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3967
bc95c8c0
VS
39682012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3969
3970 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3971 geometry on serial consoles.
3972
147fbcab
VS
39732012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3974
3975 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3976 because of network consoles.
3977
0f42c889
VS
39782012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3979
3980 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3981 handling.
3982
4a3594c9
VS
39832012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3986 falls on Q syndrom.
3987
5cb53879
VS
39882012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3989
3990 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3991 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3992
b282dfe5
VS
39932012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3996 Allocate at lest 8192 for temporary buffer as required for lzo.
3997
daa59f47
VS
39982012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
4001 to cluster_bits, since it's already added in.
4002 (grub_fat_read_data): Likewise.
4003
986748ce
VS
40042012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
4007 as long as cluster size is multiple of 512 bytes.
4008
a20f6ad0
VS
40092012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 * util/grub-mkrescue.in: Fix locale directory.
4012
385f9abb
VS
40132012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4014
4015 * grub-core/kern/emu/hostdisk.c (map): Make static.
4016
1c557d30
B
40172012-04-23 Bean <bean123ch@gmail.com>
4018
4019 * util/grub-fstest.c (fstest): Add missing break.
4020
524b5d3a
ST
40212012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
4022
4023 Fix hurd build.
4024
4025 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
4026 not define nr variable.
fe4824e9 4027 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
4028 find_root_devices_from_poolname, find_root_devices_from_libzfs,
4029 grub_find_device): Do not define.
524b5d3a 4030
9a06490c
VS
40312012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 Fix kfreebsd compile and behaviour.
4034
4035 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
4036 format-security.
4037 * util/getroot.c: Fix wait.h include.
4038 (grub_guess_root_devices): Error if grub_find_device fails.
4039 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
4040 (grub_util_get_dev_abstraction): Likewise.
4041 (grub_util_pull_device): Likewise.
4042 (grub_util_get_grub_dev): Likewise.
4043 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
4044
48143d96
VS
40452012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4046
4047 Fix and unify wholedisk detection.
4048
4049 * util/getroot.c (convert_system_partition_to_system_disk): New argument
4050 is_part. All users updated.
4051 (device_is_wholedisk): Removed.
4052 (grub_util_biosdisk_get_grub_dev): Use is_part.
4053
ebbd24f3
VS
40542012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
4057 mode.
4058
56f7aa1e
VS
40592012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4060
4061 * configure.ac: Bump to beta4.
4062
9c815e01
VS
40632012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4064
4065 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
4066 --fs-uuid --set UUID syntax.
4067
59e2651a
VS
40682012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4069
4070 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
4071 disunification.
4072
54e03cfc
VS
40732012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4074
4075 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
4076
81092a75
MK
40772012-04-18 Mads Kiilerich <mads@kiilerich.com>
4078
4079 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
4080
f8315e14
MG
40812012-04-18 Mike Gilbert <floppym@gentoo.org>
4082
4083 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
4084
1501ac21
B
40852012-04-18 Bean <bean123ch@gmail.com>
4086
4087 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
4088 place.
4089
cb7f944e
VS
40902012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4091
4092 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
4093 users updated.
4094 (grub_util_biosdisk_read): Handle Linux partitions not exactly
4095 corresponding to GRUB partitions.
4096 (grub_util_biosdisk_write): Likewise.
4097
b72d44a1
VS
40982012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4099
4100 Scan mdraid before LVM.
4101
4102 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
4103 (grub_diskfilter_register_front): ... this.
4104 (grub_diskfilter_register_back): New function.
4105 All users of grub_diskfilter_register updated.
4106
33d918b8
VS
41072012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * util/grub-install.in: Fix an automatic target detection bug.
4110
c6ca973d
VS
41112012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 * util/grub-install.in: New option --efi-directory.
4114
b41be562
VS
41152012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4116
4117 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
4118 boot services if we have no other choice.
4119
41202012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4121
4122 * util/grub-mknetdir.in: Rename --override-directory to --directory and
4123 document it.
4124 * tests/util/grub-shell.in: Update to --directory.
4125
e0595a73
VS
41262012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4127
4128 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
4129
4ed80652
VS
41302012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
4133 (grub_minix_read_file): Likewise.
4134 (grub_minix_read_inode): Likewise.
4135 (grub_minix_find_file): Likewise.
4136 (grub_minix_dir): Likewise.
4137
56008077
VS
41382012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4139
4140 * util/grub-setup.c (setup): Fix partition handling and blocklist
4141 check.
4142
ee520775
VS
41432012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4144
4145 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
4146 redundant buggy overlap check.
4147
16fc9293
VS
41482012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
4151 and grub-mknetdir.
4152
9bab65c4
VS
41532012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
4156 kh.loadflags on pre-2.00 kernels.
4157
3c491b47
VS
41582012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4159
4160 Terminate UNDI and PXE before launching the payload to avoid problems
4161 with DMA.
4162
4163 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
4164 (grub_loader_flags): ... this. All users updated.
4165 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
4166 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
4167 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
4168 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
4169 function.
4170 (grub_pxe_restore): Likewise.
4171 (fini_hnd): New var.
4172 (GRUB_MOD_INIT): Register shutdown hook.
4173 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
4174 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
4175 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
4176 (grub_loader_set): Rename second argument to flags.
4177
851ffada
VS
41782012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
4181 written bytes.
4182 (grub_get_num_of_utf8_bytes): New function.
4183 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
4184 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
4185 executing it.
4186 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
4187 (grub_ucs4_to_utf8): Change return type.
4188
491c57a8
VS
41892012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4190
4191 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
4192 warning.
851ffada
VS
4193 * grub-core/fs/bfs.c (hop_level): Likewise.
4194 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 4195
756773df
VS
41962012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 * grub-core/lib/adler32.c: Recode due to license unclearness.
4199
fd556a96
VS
42002012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
4203 (test_header): Likewise.
4204
9f9d3f69
VS
42052012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4206
4207 Fix --help formatting.
4208
4209 * util/grub-mkconfig_lib.in (print_option_help): New function.
4210 (grub_fmt): Likewise.
4211 * util/grub-install.in: Use print_option_help and grub_fmt.
4212 * util/grub-kbdcomp.in: Likewise.
4213 * util/grub-mkconfig.in: Likewise.
4214 * util/grub-mknetdir.in: Likewise.
4215 * util/grub-mkrescue.in: Likewise.
4216 * util/grub-mkstandalone.in: Likewise.
4217 * util/grub-reboot.in: Likewise.
4218 * util/grub-set-default.in: Likewise.
4219 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4220
561ec77e
VS
42212012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4222
4223 * linguas.sh: Remove autogenerated *.po.
4224
7ec2b021
VS
42252012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 * po/README: Move language fetcing to ...
4228 * linguas.sh: ... here.
4229 * po/README: Point to linguas.sh.
4230
a88f3270
VS
42312012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4232
4233 * po/README: Exclude ko.po due to disclaimer problems.
4234
d61357ce
VS
42352012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
4238 len = 0.
4239 (grub_gettext_translate_real): Handle 0th string.
4240 (grub_gettext_translate): Ensure that "" isn't translated.
4241
505e41dc
VS
42422012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
4245 TRANSLATORS comment.
4246 (grub_diskfilter_print_partmap): Propagate changing of error into
4247 warning.
4248
e44092db
VS
42492012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
4252 to uint64_t to prevent overflow.
4253 (grub_diskfilter_lv): Increase start_extent and extent_count
4254 to uint64_t to prevent overflow.
4255
9b83956a
VS
42562012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 * configure.ac: Increase version.
4259
da0d5b3f
VS
42602012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4261
4262 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
4263
4264 * po/Rules-translit: New file.
4265 * po/arabic.sed: Likewise.
4266 * po/cyrillic.sed: Likewise.
4267 * po/greek.sed: Likewise.
4268 * po/hebrew.sed: Likewise.
4269 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
4270 * po/Makefile.in.in: Add extra_dist4.
4271
ac66b453
VS
42722012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 Handle big-endian minixfs (fixes minixfs tests on bigendian).
4275
4276 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
4277 modify names. Introduce MODE_BIGENDIAN.
4278 * grub-core/fs/minix_be.c: New file.
4279 * grub-core/fs/minix2_be.c: Likewise
4280 * grub-core/fs/minix3_be.c: Likewise.
4281 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
4282 minix3_be.
4283 * grub-core/Makefile.core.def (minix_be): New module.
4284 (minix2_be): Likewise.
4285 (minix3_be): Likewise.
4286
42872012-04-01 Felix <email@hamburg.de>
4288
4289 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
4290 (devs): Add MBP 2011.
4291
0a2d5a82
VS
42922012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4293
4294 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
4295
d1625889
VS
42962012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * grub-core/normal/cmdline.c (print_completion): New field
4299 prompt_len.
4300 (grub_cmdline_get): Handle width properly.
4301
6d36a236
VS
43022012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4303
4304 * grub-core/commands/lsacpi.c (options): Add missing terminator.
4305
9576977e
VS
43062012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4307
4308 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 4309 after 29th of February.
9576977e 4310
d73ff15d
VS
43112012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 Fix exfat endianness handling.
4314
4315 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
4316 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
4317 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
4318 Byte-swap utf16 when necessary.
4319 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4320
bbb39a45
AB
43212012-03-31 Anton Blanchard <anton@samba.org>
43222012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4323
4324 Fix btrfs endianness handling.
4325
4326 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4327 (lower_bound): Make root uint64_t. Use root in le.
4328 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4329 (find_path): Fix template key init.
4330 (grub_btrfs_dir): Fix mtime byteswap.
4331 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4332
354e0af7
VS
43332012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4336 recursion_depth. Break infinite resursions. All users updated.
4337
4e75f21c
VS
43382012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4339
4340 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4341 after free.
4342 Reported by: Peter Jones.
4343
25581802
AB
43442012-03-31 Anton Blanchard <anton@samba.org>
4345
4346 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4347 8 bit values.
4348
08fbf92e
VS
43492012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4350
4351 * util/grub-install.in: Fix nvram call for PreP.
4352
5d1182a6
VS
43532012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4356 the error when some elements are missing into a warning.
4357
3f8cdd90
VS
43582012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4361
51006716
CW
43622012-03-28 Colin Watson <cjwatson@ubuntu.com>
4363
4364 * docs/grub.texi (Invoking grub-probe): New section.
4365 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4366
e1bd676b
VS
43672012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 Fix tab and wide character handling in editor and menu.
4370
4371 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4372 agglomerate control characters with combining marks.
4373 (bidi_line_wrap): Allow break on tab.
4374 (grub_unicode_get_comb_start): New function.
4375 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4376 and tab correctly.
4377 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4378 with a space.
4379 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4380 fixed_tab_size. All users updated.
4381 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4382 (grub_term_getcharwidth): Handle \t.
4383 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4384 and copy.
4385
22e6a774
VS
43862012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 Handle big-endian mdraid.
4389
4390 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4391 * grub-core/Makefile.core.def (mdraid09_be): New module.
4392 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4393 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4394 * grub-core/disk/mdraid_linux_be.c: New file.
4395
3c0eae66
VS
43962012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4399
b6cf74c9
VS
44002012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4403 missing quotes which caused confusion among translators.
4404
83c93b9c
VS
44052012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 * util/grub-mkconfig_lib.in: Fix typo.
4408
ac6fd218
VS
44092012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4412 spaces.
4413 * tests/grub_script_leading_whitespace.in: New file.
4414 * Makefile.util.def (grub_script_leading_whitespace): New test.
4415
ba287dd8
VS
44162012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4419 to work.
4420
d2d58d0a
VS
44212012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4424 starts with control character.
4425
0382d9bb
VS
44262012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4429 overflow.
4430 (grub_gdb_outbuf): Likewise.
4431
d83ff9f9
VS
44322012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4435 zero terminator. Fixes a crash.
4436
2282da4a
VS
44372012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4440 beyond 4 GiB.
4441 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4442 images independently of preffered adderss field.
4443
0ae4f0bd
VS
44442012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4445
4446 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4447 * grub-core/commands/regexp.c: Likewise.
4448 * grub-core/loader/i386/linux.c: Likewise.
4449 * grub-core/partmap/msdos.c: Likewise.
4450 * grub-core/script/execute.c: Likewise.
4451 * grub-core/term/gfxterm.c: Likewise.
4452
546fbe9b
VS
44532012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4454
4455 Add variable parsing in $"..." and fix several mismatches with bash.
4456
4457 * Makefile.util.def (grub_script_gettext): New test.
4458 * grub-core/script/execute.c (parse_string): New function.
4459 (gettext_append): Likewise.
4460 (grub_script_arglist_to_argv): Use gettext_append.
4461 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4462 * tests/grub_script_gettext.in: New file.
4463
9fdb2d7b
VS
44642012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4465
4466 Fix handling of leading spaces in scripts.
4467
4468 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4469 spaces.
4470 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4471 other than skipping \r. All users updated.
4472 * tests/grub_script_echo1.in: Add space-related tests.
4473 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4474
1a1ac4f6
VS
44752012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4476
4477 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4478
b63d89b6
VS
44792012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4480
4481 * configure.ac: Bump up the version to beta2.
4482
17f38c0f
VS
44832012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4484
4485 Fix gettext reload bugs (e.g. inability to disable gettext
4486 once enabled).
4487
4488 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4489 main_context and secondary_context. All functions updated.
4490 (grub_gettext_translate): Rename to ...
4491 (grub_gettext_translate_real): ... this. Return NULL on failed
4492 translate.
4493 (grub_gettext_translate): Handle secondary context.
4494 (grub_gettext_delete_list): Close file and zero-out the context.
4495 (grub_mofile_open): Don't call grub_gettext_delete_list.
4496 Don't close file.
4497 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4498 if locale="" to avoid pointless error message.
4499 (grub_gettext_env_write_lang): Update lang even if load fails.
4500 Handle secondary context.
4501 (grub_gettext_reread_prefix): New function.
4502 (read_main): Likewise.
4503 (read_secondary): Likewise.
4504 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4505 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4506 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4507 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4508
8e56f870
VS
45092012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 * configure.ac: Decrease warning level to avoid spurious warnings and
4512 to be able to compile with GCC 4.2.
4513 * Makefile.util.def: Remove -Wno-error=logical-op.
4514
82f6d455
WB
45152012-03-10 William Bittner <william.bittner@gmail.com>
4516
4517 * util/import_unicode.py: Add missing brackets around string for
4518 python 3 support.
4519
1ecd61a4
VS
45202012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 Fix efi chainloader on network root.
4523
4524 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4525 network devices.
4526 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4527 New function.
4528
14361ee8
VS
45292012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4530
4531 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4532 unused show_text member.
4533 * docs/grub.texi: Document "text" property.
4534
922aabf3
VS
45352012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4538 in dprintf.
4539
ec316771
VS
45402012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4541
4542 Fix IMSM handling on Fedora.
4543
4544 * util/getroot.c (grub_util_is_imsm): New function.
4545 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4546
0f021838
VS
45472012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 * Makefile.am: Strip gold section.
4550 * conf/Makefile.common: Likewise.
4551 * gentpl.py: Likewise.
4552 * grub-core/Makefile.core.def: Likewise.
4553 * grub-core/genmod.sh.in: Likewise.
4554
1039c8eb
VS
45552012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4556
4557 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4558 * util/grub.d/20_linux_xen.in: Likewise.
4559 Based on Debian patch.
4560
6dd412cd
VS
45612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4562
4563 * util/grub.d/10_linux.in: Fix syntax error resulting in
4564 Richard Laager's patch.
4565 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4566
3fd8bae5
VS
45672012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4568
4569 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4570 dependencies.
4571
7eea1671
RL
45722012-03-10 Richard Laager <rlaager@wiktel.com>
4573
4574 * util/grub.d/10_linux.in: Fix ZFS root passing.
4575
e8e0566b
VS
45762012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4577
4578 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4579 * grub-core/commands/xnu_uuid.c: Likewise.
4580 * grub-core/loader/efi/appleloader.c: Likewise.
4581 * grub-core/script/execute.c: Likewise.
4582 * grub-core/script/main.c: Likewise.
4583 * util/grub-mkfont.c: Likewise.
4584
1acc5b1f
VS
45852012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4586
4587 * util/grub-mkfont.c (options): Use more appropriate "select" that
4588 "set" for face index.
4589
35d70620
VS
45902012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4591
4592 * util/grub-editenv.c (options): Gettextize command summaries.
4593
c9eb96b5
VS
45942012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4595
4596 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4597 "out of memory" error messagge.
4598
1f493136
VS
45992012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4600
4601 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4602 of diskfilter for diskfilter on diskfilter support.
4603
6d790129
VS
46042012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4605
4606 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4607
005f46c9
VS
46082012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4609
4610 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4611 themes/starfield.
4612
c8f778a0
VS
46132012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4616
de1e64eb
VS
46172012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4618
4619 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4620
c6d54211
VS
46212012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4622
4623 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4624 of error message.
4625
dd390777
VS
46262012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4627
4628 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4629
5fd1c522
VS
46302012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4631
4632 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4633 message.
c6d54211 4634 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 4635
fae01f6c
VS
46362012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4639 Gettextize.
4640 * util/grub-mount.c (options): Likewise.
4641
292fdaff
VS
46422012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4643
4644 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4645 gettextize.
4646 * grub-core/commands/search_wrap.c (options): Likewise.
4647
ecdbae77
VS
46482012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4649
4650 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4651
52bfedfa
VS
46522012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4655 size calculation.
4656 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4657 none is known.
4658
55b20e58
VS
46592012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4660
4661 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4662 "temporary" since it's used in identifier and is limited in space.
4663
fda9d101
VS
46642012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 * po/POTFILES.in: Regenerate. Include *.h since they contain
4667 translatable strings as well.
4668
6a0295e2
VS
46692012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4670
4671 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4672 byte-swap on big-endian.
4673 Reported by: Lennart Sorensen
4674
807fb77c
VS
46752012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4676
4677 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4678 (allocate_pages): Improve dprintf.
4679 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4680 code32_start. Fill code32_start and kernel_alignment in params.
4681 (grub_cmd_initrd): Use prot_init_space.
4682
61ac50ba
VS
46832012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4684
4685 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4686
abdd26dd
VS
46872012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4688
4689 * util/grub-install.in: Add missing dot at the end of sentence.
4690
6e69da9c
VS
46912012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4692
4693 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4694 * grub-core/commands/videotest.c: Likewise.
4695 * grub-core/loader/i386/linux.c: Likewise.
4696
4a929343
VS
46972012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4698
4699 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4700 sentence.
4701 Reported by: Milo Casagrande.
4702
bb51c6c6
VS
47032012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4706 * grub-core/commands/gptsync.c: Likewise.
4707 * grub-core/commands/hashsum.c: Likewise.
4708 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4709 * grub-core/commands/legacycfg.c: Likewise.
4710 * grub-core/io/gzio.c: Likewise.
4711 * grub-core/net/net.c: Likewise.
4712 * grub-core/term/gfxterm.c: Likewise.
4713 * grub-core/term/terminfo.c: Likewise.
4714 * grub-core/tests/test_blockarg.c: Likewise.
4715 * grub-core/video/video.c: Likewise.
4716 * util/grub-install.in: Likewise.
4717 * util/grub-mkfont.c: Likewise.
4718
b2b149cb
VS
47192012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4720
4721 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4722
c7c080ad
VS
47232012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 4726 Reported by: David Prévot.
c7c080ad 4727
f2e243c0
VS
47282012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4731 description.
4732
09963c76
VS
47332012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4734
4735 * util/grub-script-check.c (main): Fix a syntax error message which was
4736 unclear.
4737
a50514a8
VS
47382012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4739
4740 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4741
4650daec
VS
47422012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4743
4744 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4745 messages.
4746
47472012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
4748
4749 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4750 without argument.
4751 * util/grub-mount.c (options): Likewise.
4752
bbc5a342
VS
47532012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4754
4755 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4756
ef292a87
VS
47572012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4758
4759 * grub-core/net/http.c: Add TRANSLATORS comments.
4760 * grub-core/normal/cmdline.c: Likewise.
4761 * grub-core/normal/misc.c: Likewise.
4762 * grub-core/partmap/msdos.c: Likewise.
4763 * grub-core/parttool/msdospart.c: Likewise.
4764 * grub-core/script/execute.c: Likewise.
4765 * grub-core/script/main.c: Likewise.
4766 * grub-core/term/terminfo.c: Likewise.
4767 * grub-core/video/bitmap.c: Likewise.
4768 * util/grub-install.in: Likewise.
4769 * util/grub-mkimage.c: Likewise.
4770 * util/grub-mklayout.c: Likewise.
4771 * util/grub-setup.c: Likewise.
4772
0fc19bd0
VS
47732012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4776 with similar messages in grub-fstest.
4777
d95862ef
VS
47782012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4779
4780 * util/grub-install.in: Unify "option requires an argument" message
4781 with similar messages in other files.
4782 * util/grub-mkconfig.in: Likewise.
4783
b7308f90
VS
47842012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * util/grub-set-default.in: Replace printf with gettext_printf (the
4787 string in in question is already translated from grub-reboot)
4788
559dc587
VS
47892012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4790
4791 * configure.ac: Bump up the version to beta1.
4792
1a11761f
VS
47932012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4796 case when min_align = 0.
4797
24539abd
VS
47982012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4799
4800 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4801 and fix a case when line_start overflows.
4802
32bd735b
VS
48032012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 * util/grub-reboot.in (usage): Mention id posibility.
4806 * util/grub-set-default.in (usage): Likewise.
4807
1a2fd1e6
VS
48082012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4811 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4812 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4813 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4814 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4815 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4816 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4817
90eeab76
VS
48182012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4819
4820 * grub-core/commands/menuentry.c (options): Remove
4821 GRUB_ARG_OPTION_REPEATABLE.
4822 Reported by: Andreas Vogel
4823
5ad1be82
AV
48242012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4825
4826 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4827
cb055286
HE
48282012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4829
4830 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4831 error.
4832
93b1cd79
VS
48332012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4834
4835 Use sort -V by the idea of Georgi Georgiev.
4836
4837 * util/grub-mkconfig_lib.in (version_sort): New function.
4838 (version_test_numeric): Use version_sort.
4839
0cdc126c
VS
48402012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 Use submenus in grub-mkconfig.
4843
4844 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4845 * util/grub-mkconfig_lib.in (grub_quote): New function.
4846 (gettext_printf): Use gettext and not gettext_quoted to fix several
4847 messages.
4848 * util/grub.d/10_hurd.in: Use submenus.
4849 * util/grub.d/10_kfreebsd.in: Likewise.
4850 * util/grub.d/10_linux.in: Likewise.
4851 * util/grub.d/10_netbsd.in: Likewise.
4852 * util/grub.d/20_linux_xen.in: Likewise.
4853 * util/grub.d/30_os-prober.in: Likewise.
4854 * util/grub.d/10_illumos.in: Add missing quoting.
4855 * util/grub.d/10_windows.in: Likewise.
4856
d9bef9bc
VS
48572012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4858
4859 Fix menu title instability bug.
4860
4861 * grub-core/commands/menuentry.c (options): New option --id.
4862 (grub_normal_add_menu_entry): New argument id. All users updated.
4863 (grub_cmd_menuentry): Handle --id.
4864 (grub_menu_init): Accept unknown arguments.
4865 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4866 feature_menuentry_options.
4867 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4868 saved_entry.
4869 (get_entry_number): Match with id as well.
4870 * include/grub/menu.h (grub_menu_entry): New member id.
4871 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4872 * util/grub.d/00_header.in: Define menuentry_id_option.
4873 * util/grub.d/10_hurd.in: Define id.
4874 * util/grub.d/10_illumos.in: Likewise.
4875 * util/grub.d/10_kfreebsd.in: Likewise.
4876 * util/grub.d/10_linux.in: Likewise.
4877 * util/grub.d/10_netbsd.in: Likewise.
4878 * util/grub.d/10_windows.in: Likewise.
4879 * util/grub.d/20_linux_xen.in: Likewise.
4880 * util/grub.d/30_os-prober.in: Likewise.
4881
48822012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
4883
4884 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4885 "scope" with "body".
4886
7c8d0ce7
VS
48872012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4890 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4891 prot_size and prot_file_size.
4892
49de079b
VS
48932012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4896 All users updated. If easily=1 require raid-5/-6 to be full.
4897 (is_node_readable): Likewise.
4898 (scan_devices): Scan incomplete but readable LVs at the end.
4899 (grub_diskfilter_memberlist): Pull missing devices.
4900 (insert_array): Skip scanning until device is complete or scan is
4901 done otherwise.
4902 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4903 check.
4904 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4905 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4906
aff05d45
MG
49072012-03-03 Matthew Garrett <mjg@redhat.com>
49082012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 Avoid EFI boot services when loading Linux.
4911
4912 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4913 avoid_efi_bootservices. All users updated.
4914 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4915 argument avoid_efi_bootservices. All users updated.
4916 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4917 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4918 align, min_align, relocatable, prefered_address. All users updated.
4919 Allocate avoiding boot services if kernel is relocatable.
4920 (grub_cmd_linux): Check if kernel is relocatable.
4921 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4922 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4923 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4924 avoid_efi_boot_services.
4925 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4926 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4927 (linux_kernel_params): Likewise.
4928
3935dde2
MG
49292012-03-03 Matthew Garrett <mjg@redhat.com>
49302012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4931
4932 Use EDID on EFI.
4933
4934 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4935 datasize_out.
4936 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4937 modes. Set gop_handle.
4938 (grub_video_gop_get_edid): New function.
4939 (grub_gop_get_preferred_mode): Likewise.
4940 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4941 (grub_video_efi_gop_adapter): Set .get_edid.
4942 * include/grub/efi/edid.h: New file.
4943 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4944
32107ec0
VS
49452012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4946
4947 * util/grub-install.in: Load efivars unconditionally.
4948
e70a2c50
VS
49492012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 * po/Rules-piglatin: Change suffix from .po-update-en to
4952 .po-update-en-piglatin.
4953
8f9cace1
VS
49542012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4955
4956 Add a pig farm.
4957
4958 * po/piglatin.sed: New file.
4959 * po/en@piglatin.header: Likewise.
4960 * po/Rules-piglatin: Likewise.
4961 * po/README: Add en@piglatin to autogenerated languages.
4962
8f95d002
VS
49632012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4964
4965 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4966 "Command for ...".
4967 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4968 "Check" since we don't check anything.
4969 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4970 is 64-bit one.
4971 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4972 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4973 (grub_md_sha512_real): Likewise.
4974
805a8dcc
VS
49752012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 * grub-core/commands/gptsync.c: Fix typographic quoting.
4978 * grub-core/commands/ieee1275/suspend.c: Likewise.
4979 * grub-core/commands/parttool.c: Likewise.
4980 * grub-core/commands/search_wrap.c: Likewise.
4981 * grub-core/commands/videoinfo.c: Likewise.
4982 * grub-core/gfxmenu/gui_label.c: Likewise.
4983 * grub-core/hello/hello.c: Likewise.
4984 * grub-core/kern/emu/main.c: Likewise.
4985 * grub-core/net/net.c: Likewise.
4986 * grub-core/normal/menu.c: Likewise.
4987 * grub-core/normal/menu_text.c: Likewise.
4988 * grub-core/normal/misc.c: Likewise.
4989 * util/grub-editenv.c: Likewise.
4990 * util/grub-install.in: Likewise.
4991 * util/grub-kbdcomp.in: Likewise.
4992 * util/grub-mkconfig.in: Likewise.
4993 * util/grub-mknetdir.in: Likewise.
4994 * util/grub-mkrescue.in: Likewise.
4995 * util/grub-mkstandalone.in: Likewise.
4996 * util/grub-reboot.in: Likewise.
4997 * util/grub-set-default.in: Likewise.
4998 * util/grub-setup.c: Likewise.
4999 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5000
40211ab8
VS
50012012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5002
5003 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
5004 * grub-core/commands/keystatus.c: Likewise.
5005 * grub-core/commands/loadenv.c: Likewise.
5006 * grub-core/commands/probe.c: Likewise.
5007 * grub-core/commands/regexp.c: Likewise.
5008 * grub-core/commands/true.c: Likewise.
5009 * grub-core/commands/videoinfo.c: Likewise.
5010 * grub-core/disk/cryptodisk.c: Likewise.
5011 * grub-core/disk/ldm.c: Likewise.
5012 * grub-core/disk/loopback.c: Likewise.
5013 * grub-core/disk/luks.c: Likewise.
5014 * grub-core/fs/zfs/zfsinfo.c: Likewise.
5015 * grub-core/kern/disk.c: Likewise.
5016 * grub-core/kern/emu/hostdisk.c: Likewise.
5017
0c7d99c7
VS
50182012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
5021 * util/grub-install.in: Add missing quote in the comment.
5022
e7d2559b
VS
50232012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5024
5025 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
5026 * grub-core/commands/lsmmap.c: Likewise.
5027 * grub-core/commands/minicmd.c: Likewise.
5028 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
5029 * grub-core/commands/regexp.c: Likewise.
5030 * grub-core/gdb/gdb.c: Likewise.
5031 * grub-core/term/gfxterm.c: Likewise.
5032 * util/grub-mkconfig.in: Likewise.
5033 * util/grub-mkfont.c: Likewise.
5034 * util/grub-mklayout.c: Likewise.
5035 * util/grub-mknetdir.in: Likewise.
5036 * util/grub-mkrescue.in: Likewise.
5037 * util/grub.d/30_os-prober.in: Likewise.
5038
49ce9e50
VS
50392012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5040
5041 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
5042 with "Direct color" and "Packed" with "Packed pixel".
5043 (grub_cmd_videoinfo): Simplify legend.
5044
e4b791fa
VS
50452012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5048 absolutely unclear error message.
5049
fd1265cb
VS
50502012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * util/grub-mkstandalone.in: Remove confusing leftover print.
5053
8822a8a0
VS
50542012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
5057 comments.
5058 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
5059 (GRUB_MOD_INIT): Likewise.
5060 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
5061 VGA mode.
5062 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
5063 comments.
5064 * util/grub-install.in (usage): Likewise.
5065 Spell ID in whole letters.
5066 Add missing ending dot.
5067 Quote variables.
5068 * util/grub-reboot.in: Fix capitalisation.
5069 * util/grub-set-default.in: Likewise.
5070
937fd0cc
VS
50712012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
5074 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
5075 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
5076 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
5077 Disable -Werror for -Wdeprecated-declarations.
5078 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
5079 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
5080 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
5081 (grub_util_get_grub_dev): Make luks handling dependent on
5082 HAVE_DEVICE_MAPPER and not __linux__.
5083 (get_win32_path): Fix format security.
5084 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
5085 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
5086 Don't try grub_find_zpool_from_dir.
5087 (grub_make_system_path_relative_to_its_root) [!__linux__]:
5088 #ifdef-out paresdir.
5089
1bab1ae3
VS
50902012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * util/grub-pe2elf.c (usage): Add missing noreturn.
5093 (write_section_data): Rename name to shname to avoid shadowing.
5094 (write_symbol_table): Rename name to symname to avoid shadowing.
5095 Fix write_reloc_section call.
5096
ef023e42
VS
50972012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
5100 to ensure that it's after the last byte of .text.
5101
48afcb75
VS
51022012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 * util/ieee1275/ofpath.c (my_isdigit): New function.
5105 (trailing_digits): Use my_isdigit.
5106 (strip_trailing_digits): Likewise.
5107
88d51eff
VS
51082012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
5111 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
5112
17edc2ba
VS
51132012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 * grub-core/kern/i386/pc/startup.S: Define __start.
5116
ad5518d7
VS
51172012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5118
5119 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
5120 strip already transforms he format.
5121
9e95e1bf
VS
51222012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5123
5124 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
5125
9cc3ee5c
VS
51262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5127
5128 * util/grub-install.in: Add missing gettext init.
5129 * util/grub-kbdcomp.in: Likewise.
5130 * util/grub-mkconfig.in: Likewise.
5131 * util/grub-mknetdir.in: Likewise.
5132 * util/grub-mkrescue.in: Likewise.
5133 * util/grub-mkstandalone.in: Likewise.
5134 * util/grub-reboot.in: Likewise.
5135 * util/grub-set-default.in: Likewise.
5136 * util/grub.d/00_header.in: Likewise.
5137 * util/grub.d/10_hurd.in: Likewise.
5138 * util/grub.d/10_windows.in: Likewise.
5139 * util/grub.d/30_os-prober.in: Likewise.
5140 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5141
49e08a06
VS
51422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5143
5144 * po/Rules-swiss: Fix header comment.
5145
3809cb41
AV
51462012-02-29 Andreas Vogel <anvoit>
5147
5148 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
5149 resulted in leak of arguments.
5150
fa6ec573
VS
51512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5152
5153 * grub-core/boot/i386/pc/startup_raw.S: Use separate
5154 reed_solomon_size const definition instead of computing it since
5155 Apple assembler doesn't support the later.
5156
22899b9c
VS
51572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5158
5159 * gentpl.py (kernel): Rewrite Apple part.
5160
a132afc3
VS
51612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5162
5163 * include/grub/kernel.h (FOR_MODULES): Check module magic.
5164
9d742bd4
VS
51652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 * util/grub-mkimagexx.c (locate_sections): Support non-standard
5168 ELF section gap.
5169 (load_image): Likewise.
5170
f04a9a21
VS
51712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5172
5173 * configure.ac: Fix a typo in previous commit.
5174
46cf439c
VS
51752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5176
5177 Don't add -Wl,-N on Apple platform.
5178
5179 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
5180 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
5181
c4c48c54
VS
51822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5183
5184 * grub-core/Makefile.core.def (lzma_decompress): Use
5185 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
5186
31a12124
VS
51872012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 * grub-core/genmod.sh.in: Rewrite the Apple part.
5190
4f3aa1af
VS
51912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5192
5193 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
5194 comparison.
5195
7bd8b0c7
VS
51962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 * acinclude.m4 (grub_CHECK_PIC): New test.
5199 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
5200
97304d7c
VS
52012012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5202
5203 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
5204 to avoid the warning.
5205
fb883812
VS
52062012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5207
5208 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
5209 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
5210 after. All users updated.
5211
a121c964
VS
52122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5213
5214 Use the common size routine in hostfs so we can read disks as well.
5215
5216 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
5217 (grub_util_get_fd_size): ... this. Return size in bytes.
5218 All users updated.
5219 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
5220 grub_util_get_fd_size.
5221
c66d6410
VS
52222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
5225 Add blocksize retrieval.
5226
dfc8aeb0
VS
52272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5228
5229 * configure.ac: Restore CFLAGS after efiemu check.
5230
403e25a5
VS
52312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5232
5233 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
5234 Apple bug.
5235
382775d1
VS
52362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5237
5238 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
5239
6fd4e6e4
VS
52402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
5243 (grub_cmd_halt): Likewise.
5244
bea359d6
VS
52452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
5248 for local arithmetics.
5249 Break %sp init into 2 instructions.
5250 Add 0 byte at the end.
5251
32eb6ee1
VS
52522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5253
5254 * grub-core/disk/diskfilter.c (read_segment): Initialise err
5255 before loops.
5256
e8377389
VS
52572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5258
5259 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
5260 for context.
5261
8cb17de7
VS
52622012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5263
5264 * grub-core/disk/ldm.c (make_vg): Init part.name.
5265 (grub_ldm_detect): Silence spurious warning.
5266 (grub_util_is_ldm): Likewise.
5267
595717e6
VS
52682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5269
5270 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
5271 sane value to avoid a spurious warning.
5272
c4b7e588
VS
52732012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5274
5275 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
5276 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
5277
59824957
VS
52782012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5279
5280 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
5281 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
5282
70115b99
VS
52832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5284
5285 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
5286 hardcoding the relevant info.
5287
56733740
VS
52882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
5291 missing const qualifiers.
5292 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
5293
43481481
VS
52942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * util/getroot.c [__APPLE__]: Add missing includes.
5297 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
5298
3cb38f01
VS
52992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * util/grub-mkimage.c (generate_image): Silence spurious warning.
5302
d9dbf11e
VS
53032012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5304
5305 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
5306 avoid conflicts.
5307
0c42a45d
VS
53082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5309
5310 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
5311
46c34eb0
VS
53122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5313
5314 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
5315 and grub_file_close call.
5316
99ce1597
VS
53172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5318
5319 Add LZSS Mach-O support (needed for new xnu kernelcache).
5320
5321 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5322 * grub-core/loader/lzss.c: New file.
5323 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5324 on Mach-O open failure.
5325 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5326 Don't free cmdsXX in uncompressedXX is set.
5327 (grub_macho_file): Init new fields.
5328 New argument is_64bit. All users updated.
5329 Handle compressed. Error out if no suitable architecture is found.
5330 Don't close file.
5331 (grub_macho_open): New argument is_64bit. All users updated.
5332 * grub-core/loader/macho32.c: Add defines for new fields.
5333 * grub-core/loader/macho64.c: Likewise.
5334 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5335 (grub_macho_parse): Handle compressed.
5336 Defer actual processing if compressed.
5337 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5338 "filename". All users updated.
5339 (grub_macho_size): New argument "filename". All users updated.
5340 (grub_macho_get_entry_point): Likewise.
5341 (grub_macho_load): Handle compressed.
5342 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5343 (GRUB_MACHO_LZSS_OFFSET): New define.
5344 (grub_decompress_lzss): New proto.
5345 * include/grub/machoload.h (grub_macho_file): New fields to handle
5346 compressed.
5347 (grub_macho_contains_macho64): Remove proto.
5348 (grub_macho_contains_macho32): Likewise.
5349 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5350
ebd17d6f
VS
53512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5352
5353 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5354
2702b4e4
VS
53552012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 Fix make dist.
5358
5359 * Makefile.am (starfield_theme_files): New var.
5360 (starfield_DATA): Use starfield_theme_files.
5361 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5362 Add bootcheck-related files.
5363 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5364 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5365 and font_char_metrics.txt.
5366 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5367 (setjmp): Add lib/ia64/longjmp.S.
5368 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5369 * po/POTFILES.in: Regenerate.
5370 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5371 DISTFILES.common.extra1.
5372 * util/devicemap.c: Removed.
5373 * grub-core/lib/i386/relocator_backward.S: Likewise.
5374 * util/import_gcry.py: Remove unused files. Add extra_dist for
5375 ChangeLog.
5376
cf1adfdf
VS
53772012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5378
5379 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5380 grub_gettext_delete_list before changing grub_gettext_max to avoid
5381 running out of array bounds.
5382
53832012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
5384
5385 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5386 grub_vga_text_init/grub_vga_text_fini.
5387
cf1adfdf 53882012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
5389
5390 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5391
541d92e9
VS
53922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * configure.ac: Bump to 2.00~beta0.
5395
7931dddf
VS
53962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5397
5398 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5399 missing initialisation.
5400
f1b16fa3
VS
54012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5402
5403 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5404
83ddae23
VS
54052012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5406
5407 Support v2 xnu boot arguments.
5408
5409 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5410 New argument fsbfreq_out.
5411 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5412 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5413 be used.
5414 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5415 darwin_version.
5416 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5417 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5418 (grub_xnu_boot_params): Rename to ...
5419 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5420 (grub_xnu_boot_params_v2): New struct.
5421
dc693fe6
VS
54222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5425 zeroing of CRC field before computing CRC.
5426
5a6e39c2
VS
54272012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5428
5429 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5430 Change order of allocations to decrease fragmentation.
5431
6c21f5d7
VS
54322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5433
5434 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5435
cfe456dc
CW
54362012-02-27 Colin Watson <cjwatson@ubuntu.com>
5437
5438 Use write-combining MTRR to speed up video with buggy BIOSes.
5439
5440 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5441 (cpuid): New define.
5442 (rdmsr): Likewise.
5443 (wrmsr): Likewise.
5444 (mtrr_base): Likewise.
5445 (mtrr_mask): Likewise.
5446 (grub_vbe_enable_mtrr_entry): New function.
5447 (grub_vbe_enable_mtrr): Likewise.
5448 (grub_vbe_disable_mtrr): Likewise.
5449 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5450 control off to BIOS.
5451 (grub_video_vbe_init): Fill mtrr.
5452 (grub_video_vbe_fini): Disable mtrr.
5453 (grub_video_vbe_get_info_and_fini): Likewise.
5454 (grub_video_vbe_setup): Enable mtrr.
5455
e3c78337
CW
54562012-02-27 Colin Watson <cjwatson@ubuntu.com>
5457
5458 * include/grub/partition.h (grub_partition_map): Change prototype of
5459 embed to take a maximum value for nsectors.
5460 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5461 * include/grub/fs.h (grub_fs): Likewise.
5462 * grub-core/partmap/msdos.c (embed_signatures): New array.
5463 (pc_partition_map_embed): Check for and avoid sectors matching any
5464 of the signatures in embed_signatures, up to max_nsectors.
5465 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5466 returned sector map to max_nsectors.
5467 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5468 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5469 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5470 * util/grub-setup.c (setup): Allow for the embedding area being
5471 split into multiple blocklists. Tell dest_partmap->embed the
5472 maximum number of sectors we care about.
5473
54742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5477 Specify blocklist_install and reserver_first_sector for all fs.
5478 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5479 blocklists.
5480
984b973f
VS
54812012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5482
5483 * util/grub-install.in: Clarify strings.
5484 Fix source dir check.
5485
f122e0d6
RL
54862012-02-27 Richard Laager <rlaager@wiktel.com>
5487
5488 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5489 "zfs" and "fuse.zfs" as synonyms.
5490
071114bb
VS
54912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 * configure.ac: Put platform and target_cpu substitutions back since
5494 they are used for directories.
5495
817e6abc
RL
54962012-02-27 Richard Laager <rlaager@wiktel.com>
54972012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5498
5499 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5500 * util/grub.d/20_linux_xen.in: Likewise.
5501
897b7419
RL
55022012-02-27 Richard Laager <rlaager@wiktel.com>
5503
5504 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5505 with full paths.
5506
a414bd15
RL
55072012-02-27 Richard Laager <rlaager@wiktel.com>
5508
5509 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5510 unescape.
5511
30ac48c4
VS
55122012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 Don't use insecure popen in getroot.
5515
5516 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5517 (exec_pipe): ... here.
5518 (find_root_devices_from_poolname): Use exec_pipe.
5519
53f13848
VS
55202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 Remove platform and target_cpu replacement.
5523
5524 * configure.ac: Remove platform and target_cpu substitutions.
5525 * tests/util/grub-shell.in: Use modinfo.
5526 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5527 explicitly.
5528
90cb2803
VS
55292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 Autodetect platform in grub-install but allow override.
5532
5533 * util/grub-install.in: Autodetect platform. Support --target and
5534 --directory. Read platform from modinfo.sh.
5535
b9136427
VS
55362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5537
5538 Support btrfs multi-volume probe.
5539
5540 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5541 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5542 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5543 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5544 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5545 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5546 grub_find_root_devices_from_btrfs if on btrfs.
5547
c36e5cd1
VS
55482012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5549
5550 Remove any awareness of *.c util files about target.
5551
5552 * Makefile.util.def (grub-setup): Split to ...
5553 (grub-bios-setup): ... and this.
5554 (grub-sparc64-setup): ... and this.
5555 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5556 * docs/man/grub-setup.h2m: Split into ...
5557 * docs/man/grub-sparc64-setup.h2m: ... this.
5558 * docs/man/grub-bios-setup.h2m: ... and this.
5559 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5560 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5561 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5562 (grub_target_addr_t): Remove.
5563 (grub_target_size_t): Remove.
5564 (grub_target_ssize_t): Remove.
5565 * util/grub-install.in: Use new grub-*-setup.
5566 * util/grub-mkimagexx.c (Elf_Word): New define.
5567 (Elf_Half): Likewise.
5568 (Elf_Section): Likewise.
5569 (ELF_ST_TYPE): Likewise.
5570 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5571 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5572
584b2f8a
VS
55732012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5574
5575 Replace grub_target_addr with more appropriate types.
5576
5577 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5578 grub_target_addr with grub_addr.
5579 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5580 grub_target_addr with grub_port.
5581 (grub_cmd_write): Likewise.
5582 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5583 grub_target_addr with grub_addr.
5584 (grub_cmd_write): Likewise.
5585 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5586
5a0dc6fb
VS
55872012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5590 const qualifier for vendor_guid.
5591
786aff6e
VS
55922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5595 const qualifier.
5596 (efiemu_memequal): Likewise.
5597 (find_variable): Likewise.
5598
49017b17
VS
55992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 Fix missing console prototype on qemu-mips.
5602
5603 * include/grub/mips/qemu_mips/console.h: New file.
5604
c5988629
MG
56052012-02-27 Matthew Garrett <mjg@redhat.com>
56062012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5609 * include/grub/efi/efi.h: Likewise.
5610 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5611 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5612 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5613 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5614 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5615 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5616
e33f8d69
MG
56172012-02-27 Matthew Garrett <mjg@redhat.com>
5618
5619 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5620
fb312cd9
VS
56212012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5622
5623 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5624 error.
5625
7134247c
VS
56262012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5627
5628 * configure.ac: Remove inappropriate use of program_transform_name
5629 on grubdir and bootdir but allow explicit specification of those
5630 variables.
5631
6a313124
VS
56322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5633
5634 * util/grub-mknetdir.in (grub_prefix): Removed.
5635 (subdir): Use @bootdirname@ and @grubdirname@.
5636
2311c5ca
VS
56372012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5638
5639 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5640
7d5d60f7
VS
56412012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * po/POTFILES.in: Regenerated.
5644
8151bc82
VS
56452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5646
5647 Remove improper use of program_transform_name on pkglibrootdir.
5648
5649 * configure.ac (pkglibrootdir): Removed.
5650 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5651 * util/grub-mkimage.c: Likewise.
5652
b4a6a533
VS
56532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5654
5655 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5656 warning.
5657
668f304f
VS
56582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * util/grub-install.in: Use file identifier if no UUID is available
5661 or user explicitly prompted for it.
5662
665f2341
NP
56632012-02-27 Navdeep Parhar <nparhar@gmail.com>
5664
5665 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5666 (freebsd_get_zfs): New function.
5667 (grub_freebsd_boot): Pass zfs UUID.
5668 (grub_cmd_freebsd): Set zfs UUID.
5669
8151bc82 56702012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
5671
5672 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5673 pkglibrootdir.
5674
e4c498a1
MG
56752012-02-27 Mike Gilbert <floppym@gentoo.org>
5676
5677 Add configure flag to control libzfs integration.
5678
5679 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5680
1e9a9a3f
VS
56812012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5684 device.
5685 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5686 small devices.
5687
036985b8
VS
56882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5689
5690 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5691 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5692 be used on non-modules.
5693
5694 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5695 Rename to grub_boot_init.
5696 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5697 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5698 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5699 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5700 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5701 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5702 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5703 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5704 includes.
5705 (grub_machine_init): Remove empty inits.
5706 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5707 includes.
5708 (grub_machine_init): Remove empty inits.
5709 * grub-core/term/arc/console.c: Remove explicit proto.
5710 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5711 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5712 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5713 grub_at_keyboard_fini.
5714 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5715 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5716 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5717 grub_gfxterm_fini.
5718 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5719 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5720 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5721 grub_vgatext_fini.
5722 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5723 * grub-core/term/serial.c (GRUB_MOD_INIT)
5724 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5725 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5726 grub_serial_fini.
5727 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5728 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5729 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5730 grub_terminfo_fini.
5731 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5732 (GRUB_MOD_FINI): Likewise.
5733 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5734 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5735 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5736 grub_video_radeon_fuloong2e_fini.
5737 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5738 [LOONGSON]: Rename to grub_video_sis315pro_init.
5739 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5740 grub_video_sis315pro_fini.
5741 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5742 [LOONGSON]: Rename to grub_video_sm712_init.
5743 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5744 grub_video_sm712_fini.
5745 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5746 (grub_at_keyboard_fini): Likewise.
5747 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5748 Don't declare grub_{modname}_init.
5749 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5750 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5751 New proto.
5752 (grub_keylayouts_fini) [!EMU]: Likewise.
5753 * include/grub/serial.h (grub_serial_init) [!EMU]:
5754 New proto.
5755 (grub_serial_fini) [!EMU]: Likewise.
5756 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5757 New proto.
5758 (grub_terminfo_fini) [!EMU]: Likewise.
5759 * include/grub/video.h (grub_font_init) [!EMU]:
5760 New proto.
5761 (grub_font_fini) [!EMU]: Likewise.
5762 (grub_gfxterm_init) [!EMU]: Likewise.
5763 (grub_gfxterm_fini) [!EMU]: Likewise.
5764 (grub_video_sm712_init) [!EMU]: Likewise.
5765 (grub_video_sm712_fini) [!EMU]: Likewise.
5766 (grub_video_sis315pro_init) [!EMU]: Likewise.
5767 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5768 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5769 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5770
d5534665
VS
57712012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 Make nand a prefix for nand devices.
5774
5775 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5776
10133b5f
VS
57772012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5778
5779 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5780 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5781
8e307a62
VS
57822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5783
5784 * include/grub/env.h (grub_env_find): Remove prototype.
5785 * grub-core/kern/env.c (grub_env_find): Make static.
5786 (grub_env_set): Remove useless set.
5787
a4c65f34
VS
57882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5789
5790 * grub-core/kern/i386/realmode.S: Remove useless align.
5791
d87893d5
VS
57922012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 * include/grub/dl.h (grub_dl_load_file): Don't export.
5795
50159add
VS
57962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5799 grub_dprintf.
5800
b2582b84
VS
58012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5804 grub_errors.
5805 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5806 not reloading whole superblock but only the part which is really needed.
5807 Remove useless grub_errors.
5808 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5809 grub_errors.
5810
e2a83395
VS
58112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 Don't export grub_get_rtc.
5814
5815 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5816 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5817
e7d2a906
VS
58182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5819
5820 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5821
6cf1363b
VS
58222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5823
5824 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 5825 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 5826
eece3349
VS
58272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 Remove prio_list.
5830
5831 * include/grub/list.h (grub_prio_list): Removed.
5832 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5833 GRUB_COMMAND_PRIO_MASK.
5834 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5835 GRUB_COMMAND_FLAG_ACTIVE.
5836 (grub_prio_list_insert): Removed.
5837 (grub_prio_list_remove): Likewise.
5838 (GRUB_AS_PRIO_LIST): Likewise.
5839 (GRUB_AS_PRIO_LIST_P): Likewise.
5840 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5841 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5842 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5843 * grub-core/kern/command.c (grub_register_command_prio): Inline
5844 the prio_list code.
5845 (grub_unregister_command): Likewise.
5846
94f064b4
VS
58472012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5848
5849 Fix interrupt mixup from previous commit.
5850
5851 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5852 (grub_realidt): New var.
5853 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5854 Load idt.
5855 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5856 New declaration.
5857 (grub_relocator16_boot): Set grub_relocator16_idt.
5858 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5859 (LOCAL(realidt)): ... this.
5860 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5861 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5862 (grub_realidt): New variable.
5863
27317084
VS
58642012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5867 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5868 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5869 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5870 Gettextize.
5871 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5872 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5873 * po/POTFILES.in: Regenerate.
5874
47b40053
VS
58752012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5876
5877 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5878 errors.
5879
2b343101
VS
58802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5881
5882 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5883 \0.
5884 (add_length): Likewise.
5885
ff27c3dd
LK
58862012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
58872012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5888
5889 GDB serial and backtrace support.
5890
5891 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5892 (prot_to_real): Likewise.
5893 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5894 * grub-core/Makefile.core.def (backtrace): New module.
5895 (gdb): Likewise.
5896 * grub-core/gdb/cstub.c: New file.
5897 * grub-core/gdb/gdb.c: Likewise.
5898 * grub-core/gdb/i386/idt.c: Likewise.
5899 * grub-core/gdb/i386/machdep.S: Likewise.
5900 * grub-core/gdb/i386/signal.c: Likewise.
5901 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 5902 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
5903 * include/grub/backtrace.h: Likewise.
5904 * include/grub/gdb.h: Likewise.
5905 * include/grub/i386/gdb.h: Likewise.
5906
59072012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
5908
5909 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5910 New function.
5911 (add_length): Likewise.
5912 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5913 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5914 proto.
5915 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5916 __argp_get_display_len.
5917
ff27c3dd 59182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
5919
5920 $"..." support in scripts.
5921
5922 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5923 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5924 * grub-core/script/yylex.l: Likewise.
5925 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5926 value.
5927
ff27c3dd 59282012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
5929
5930 * gentpl.py: Remove obsolete pkglib_DATA handling.
5931
ff27c3dd 59322012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
5933
5934 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5935 mailing list.
5936
5937 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5938 * util/grub-kbdcomp.in: Likewise.
5939 * util/grub-mkconfig.in: Likewise.
5940 * util/grub-mkconfig_lib.in: Likewise.
5941 * util/grub-mknetdir.in: Likewise.
5942 * util/grub-mkrescue.in: Likewise.
5943 * util/grub-mkstandalone.in: Likewise.
5944 * util/grub-reboot.in: Likewise.
5945 * util/grub-set-default.in: Likewise.
5946 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5947
ff27c3dd 59482012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
5949
5950 Remove GRUB_PREFIX.
5951
5952 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5953 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5954 used for backward compatibility.
5955
ff27c3dd 59562012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
5957
5958 Add new all_video module.
5959
5960 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5961 * grub-core/Makefile.core.def (all_video): New module.
5962 * grub-core/genmoddep.awk: Generate dependency of all_video from
5963 video.lst.
5964 * grub-core/lib/fake_module.c: New file.
5965 * grub-core/normal/main.c (features): Add feature_all_video_module.
5966 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5967 don't do explicit search again.
47454da5 5968 insmod all_video in load_video if available.
22c7ce85 5969
ff27c3dd 59702012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
5971
5972 Another round of string clarification and adding TRANSLATORS comments.
5973
ff27c3dd 59742012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
5975
5976 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5977
ff27c3dd 59782012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
5979
5980 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5981 to grub_ssize_t.
5982 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5983 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5984
ff27c3dd 59852012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
5986
5987 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5988 trailing newline implicitly. All users updated.
5989
ff27c3dd 59902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
5991
5992 Implement serial on IEEE1275 and EFI.
5993
5994 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5995 on emu. Mention arc and emu as the only platforms without serial
5996 support.
5997 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5998 ieee1275 platforms.
5999 * grub-core/term/efi/serial.c: New file.
6000 * grub-core/term/ieee1275/serial.c: Likewise.
6001 * grub-core/term/serial.c (grub_serial_find): Disable direct port
6002 specification if no ns8250 driver is available.
6003 (grub_cmd_serial): Likewise.
6004 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
6005 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
6006 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
6007 (grub_efi_parity_type_t): New type.
6008 (grub_efi_stop_bits_t): Likewise.
6009 (grub_efi_serial_io_interface): New struct.
6010 * include/grub/serial.h (grub_serial_port): Make 'broken' field
6011 available for all interfaces.
6012 Add EFI and IEEE1275 fields.
6013 (grub_ofserial_init): New proto.
6014 (grub_efiserial_init): Likeiwse.
6015 * util/grub.d/00_header.in: Don't check for the presence of serial
6016 module.
6017
ff27c3dd 60182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
6019
6020 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
6021 name as if it was an alias.
6022
114076ef
VS
60232012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6024
6025 * grub-core/commands/lsacpi.c (options): Fix typo.
6026
6a656b0e
VS
60272012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6028
6029 Convert grub-emu to argp.
6030
6031 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
6032 emu.
6033 * util/argp_common.c: Rename to ...
6034 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
6035 Add missing includes.
6036 * grub-core/kern/emu/main.c: Convert to argp.
6037 * po/POTFILES.in: Regenerate.
6038 * util/grub-install.in (usage): Make first letter lowcase in messages
6039 for uniformity.
6040 * util/grub-setup.c (options): Likewise.
6041
1e3f8ae8
VS
60422012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
6045 Put back accidently commented-out code.
6046
ed167a80
VS
60472012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6048
6049 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
6050 loop check using Brent algorithm.
6051 (grub_hfsplus_btree_search): Likewise.
6052
6753c0ec
VS
60532012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 * util/grub-install.in: Fix usage of wrong device for PreP install.
6056
4e27343f
VS
60572012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6058
6059 * conf/Makefile.common (CFLAGS_GNULIB): Add
6060 -Wno-unsafe-loop-optimizations.
6061 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
6062 on tools.
6063 * grub-core/commands/legacycfg.c: Add pragma to skip
6064 -Wunsafe-loop-optimizations.
6065 (check_password_md5_real): Fix loop counter type.
6066 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
6067 reading.
6068 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
6069 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
6070 loop condition.
6071 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
6072 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
6073 * grub-core/net/net.c (grub_net_route_address): Add safety loop
6074 condition.
6075 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
6076 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
6077 avoid possible infinite loops.
6078 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
6079 and -Wunsafe-loop-optimizations.
6080 * grub-core/script/yylex.l: Likewise.
6081 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
6082 (print_glyphs): Avoid infinite loops.
6083 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
6084
697f18b0
GS
60852012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
6086
6087 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
6088 to avoid infinite loop.
6089 (disp_acpi_rsdt_table): Likewise.
6090
274416e8
VS
60912012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * grub-core/font/font.c (grub_font_load): Add support for default
6094 path for fonts ($prefix/fonts).
6095 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
6096 for checking if string is a path.
6097 * grub-core/normal/main.c (features): Add feature_default_font_path.
6098 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
6099 * util/grub.d/00_header.in: Use default directory if possible.
6100 * util/grub-install.in: Install unicode.pf2.
6101
b3e08622
VS
61022012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
6105 * po/Rules-swiss: New file.
6106 * po/swiss.sed: Likewise.
6107
fe42ce09
VS
61082012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 * grub-core/fs/btrfs.c (find_device): Fix typos.
6111 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
6112 * util/grub-mkrelpath.c (argp_parser): Likewise.
6113 Reported by: Yuri Chornoivan.
6114
72f1d065
DO
61152012-02-23 Dalet Omega <daletomega@gmail.com>
6116
6117 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
6118 for usual informative messages.
6119
c5884973
DO
61202012-02-23 Dalet Omega <daletomega@gmail.com>
6121
6122 Starfield theme.
6123
6124 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
6125 * conf/Makefile.common: Define starfielddir.
6126 * configure.ac: Configure starfield.
6127 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
6128 * themes/starfield/README: Likewise.
6129 * themes/starfield/blob_w.png: Likewise.
6130 * themes/starfield/boot_menu_c.png: Likewise.
6131 * themes/starfield/boot_menu_e.png: Likewise.
6132 * themes/starfield/boot_menu_n.png: Likewise.
6133 * themes/starfield/boot_menu_ne.png: Likewise.
6134 * themes/starfield/boot_menu_nw.png: Likewise.
6135 * themes/starfield/boot_menu_s.png: Likewise.
6136 * themes/starfield/boot_menu_se.png: Likewise.
6137 * themes/starfield/boot_menu_sw.png: Likewise.
6138 * themes/starfield/boot_menu_w.png: Likewise.
6139 * themes/starfield/slider_c.png: Likewise.
6140 * themes/starfield/slider_n.png: Likewise.
6141 * themes/starfield/slider_s.png: Likewise.
6142 * themes/starfield/src/blob_nw.xcf: Likewise.
6143 * themes/starfield/src/bootmenu/: Likewise.
6144 * themes/starfield/src/bootmenu/center.xcf: Likewise.
6145 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
6146 * themes/starfield/src/bootmenu/side.xcf: Likewise.
6147 * themes/starfield/src/slider_c.xcf: Likewise.
6148 * themes/starfield/src/slider_n.xcf: Likewise.
6149 * themes/starfield/src/slider_s.xcf: Likewise.
6150 * themes/starfield/src/terminalbox/: Likewise.
6151 * themes/starfield/src/terminalbox/center.xcf: Likewise.
6152 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
6153 * themes/starfield/src/terminalbox/side.xcf: Likewise.
6154 * themes/starfield/starfield.png: Likewise.
6155 * themes/starfield/terminal_box_c.png: Likewise.
6156 * themes/starfield/terminal_box_e.png: Likewise.
6157 * themes/starfield/terminal_box_n.png: Likewise.
6158 * themes/starfield/terminal_box_ne.png: Likewise.
6159 * themes/starfield/terminal_box_nw.png: Likewise.
6160 * themes/starfield/terminal_box_s.png: Likewise.
6161 * themes/starfield/terminal_box_se.png: Likewise.
6162 * themes/starfield/terminal_box_sw.png: Likewise.
6163 * themes/starfield/terminal_box_w.png: Likewise.
6164 * themes/starfield/theme.txt: Likewise.
6165
17d73325
VS
61662012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6167
6168 * util/grub.d/00_header.in: Add missing export theme.
6169
dbebaf92
VS
61702012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6171
6172 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
6173 already included.
6174 Reported by: Eren D.
6175
3d68bffb
VS
61762012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6177
6178 * conf/Makefile.common (grubdatadir): Removed.
6179 (Makefile.am): Move eveything grubdata to pkgdata.
6180
4b59234d
VS
61812012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6182
6183 * grub-core/commands/acpihalt.c (get_sleep_type):
6184 Remove unused variable.
6185
463dcadc
VS
61862012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6187
6188 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
6189 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
6190 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
6191 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
6192 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
6193 i18n with gettext no-op.
6194 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
6195 GRUB_ACPI_OPCODE_STRING_CONST.
6196 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
6197 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
6198
e5b90c82
VS
61992012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * po/POTFILES.in: Regenerate.
6202
2a704ca9
VS
62032012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6204
6205 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
6206 -Wno-error=missing-noreturn.
6207
84f9d341
VS
62082012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
6211 condition to avoid possibly infinite loops.
6212 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
6213 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
6214
d46683f9
VS
62152012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6216
6217 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
6218 condition to avoid possibly infinite loops.
6219
c44866b2
VS
62202012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
6223 on show_error.
6224
96790539
VS
62252012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
6228
1ba7e295
VS
62292012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6230
6231 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
6232
21ffe8f1
VS
62332012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 * util/bin2h.c (usage): Add missing attribute noreturn.
6236
0ccb6b3c
VS
62372012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6238
6239 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
6240 if the size isn't divisible by 512.
6241
b00d7fb6
VS
62422012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6243
6244 Make list_push and list_remove functions rather than inline functions
6245 to decrease size and avoid aliasing violations.
6246
6247 * include/grub/list.h (grub_list_push): Move to ...
6248 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
6249 * include/grub/list.h (grub_list_remove): Move to ...
6250 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
6251
9d369087
VS
62522012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6253
6254 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
6255 and -Wunused-result.
6256
af0250d9
VS
62572012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6258
6259 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
6260 Reported by: Seth Goldberg
6261
aad32b14
VS
62622012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6263
6264 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
6265
ac96441c
ST
62662012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6267
6268 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
6269 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
6270 command line.
6271 * docs/grub.texi (Simple configuration): Document
6272 GRUB_CMDLINE_GNUMACH.
6273
62742012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
6275
6276 * conf/Makefile.common (platform_SCRIPTS): New variable.
6277 (platform_PROGRAMS): Likewise.
6278 * gentpl.py: Mark *,module and *.image for install.
6279 * grub-core/gdb_grub.in: Add a notice of expected environment.
6280 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
6281 (gmodule.pl): Likewise.
6282
ac96441c 62832012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
6284
6285 Replace grub_checkkey with grub_getkey_noblock.
6286
6287 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
6288 (grub_getkey_noblock): ... this. All users updated.
6289
ac96441c 62902012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
6291
6292 * grub-core/kern/emu/console.c: Move to ...
6293 * grub-core/term/emu/console.c: ...here.
6294 (grub_ncurses_getkey): Fix return value if no key is detected.
6295
e51b5666
VS
62962012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6297
6298 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
6299 (grub_unit_test_fini): Likewise.
6300 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
6301
63022012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6303
6304 * include/grub/test.h (GRUB_UNIT_TEST)
6305
d9a62292
VS
63062012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6307
6308 * grub-core/script/execute.c (grub_script_break): Clarify logic.
6309 Better error handling.
6310 (grub_script_return): Likewise.
6311 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6312
77c9182f
VS
63132012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6314
6315 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
6316 rimplicit redifinition.
6317
edb13cf9
VS
63182012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6319
6320 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6321 GRUB.
6322
a9e9dc7c
VS
63232012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6324
6325 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6326 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6327 prompt here.
6328
b4ba8e02
VS
63292012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6332 as GRUB_ERR_BUG. Don't malloc if no device is available.
6333
dded5540
VS
63342012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6335
6336 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6337 Mark calling with invalid term as GRUB_ERR_BUG.
6338
0cf69874
VS
63392012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6340
6341 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6342 packets rather than raising an error.
6343
59bfe502
VS
63442012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6347 in if.
6348
db5fc596
VS
63492012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6352 diagnostic to dprintf.
6353 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6354
e4b7f404
VS
63552012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6356
6357 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6358 device name.
6359
e7b02f9e
VS
63602012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6361
6362 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6363 (grub_ntfs_iterate_dir): Likewise.
6364
0331e102
VS
63652012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6366
6367 Efiemu stylistic fixes and gettext.
6368
6369 * grub-core/efiemu/i386/loadcore32.c
6370 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6371 * grub-core/efiemu/i386/loadcore64.c
6372 (grub_arch_efiemu_relocate_symbols64): Likewise.
6373 * grub-core/efiemu/i386/pc/cfgtables.c
6374 (grub_machine_efiemu_init_tables): Likewise.
6375 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6376 (grub_efiemu_loadcore_initXX): Add a filename argument.
6377 All users updated.
6378 Improved error message.
6379 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6380 Add a filename argument.
6381 All users updated.
6382 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6383 Reclassify double relocation as GRUB_ERR_BUG.
6384
306fc074
VS
63852012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6388 handling.
6389
794d8ef2
VS
63902012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6393 on partition.
6394
63952012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
6396
6397 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6398
794d8ef2 63992012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
6400
6401 Improve string. Gettextize.
6402
78dde88e
VS
64032012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6404
6405 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6406 utils.
6407 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6408
4786a90f
VS
64092012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6410
6411 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6412 [GRUB_UTIL]: New function.
6413 (insert_array) [GRUB_UTIL]: Store partmaps.
6414 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6415 partmaps.
6416 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6417 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6418 (probe_abstraction): Print diskfilter and not raid.
6419 Reported by: Lennart Sorensen
6420
0b6225bd
VS
64212012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6422
6423 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6424 * util/grub-mkimagexx.c (MASK3): New define.
6425 (add_value_to_slot_20b): Use MASK3.
6426 (add_value_to_slot_21): Likewise.
6427 (relocate_addresses): Fix format specification.
6428 (load_image): Explicitly init symtab_section.
6429
b055f8f6
VS
64302012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6431
6432 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6433 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6434
b77c2fb7
VS
64352012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6438 on powerpc.
6439 Reported by: Lennart Sorensen
6440
e3ec28ab
VS
64412012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6442
6443 * gentpl.py: Add missing license header.
6444 * docs/grub.texi: Update copyright year.
6445
c8d9ead6
GS
64462012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6447
6448 Source grub-mkconfig_lib from the build directory at build time.
6449 Suggested by: Vladimir Serbinenko.
6450
6451 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6452 * util/grub-install.in: Define pkgdatadir if not already set, and source
6453 grub-mkconfig_lib from there.
6454 * util/grub-kbdcomp.in: Likewise.
6455 * util/grub-mkconfig.in: Likewise.
6456 * util/grub-mknetdir.in: Likewise.
6457 * util/grub-mkrescue.in: Likewise.
6458 * util/grub-mkstandalone.in: Likewise.
6459 * util/grub-reboot.in: Likewise.
6460 * util/grub-set-default.in: Likewise.
6461 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6462
ebcecdf1
VS
64632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6464
6465 Increase warning level.
6466
6467 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6468 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6469 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6470 (TARGET_CFLAGS): Likewise.
6471 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6472 * grub-core/Makefile.core.def (decompressor_xz): Add
6473 -Wno-unreachable-code.
6474 (normal): Add -Wno-redundant-decls.
6475 (xzio): Add -Wno-unreachable-code.
6476 (lzopio): Add -Wno-redundant-decls -Wno-error.
6477 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6478 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6479 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6480 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6481 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6482 * grub-core/kern/i386/coreboot/init.c: Add exception to
6483 -Wsuggest-attribute=noreturn.
6484 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6485 * grub-core/kern/ia64/dl_helper.c: Likewise.
6486 * grub-core/kern/mips/dl.c: Likewise.
6487 * grub-core/kern/sparc64/dl.c: Likewise.
6488 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6489 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6490 (memcmp): Likewise.
6491 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6492 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6493 * grub-core/loader/mips/linux.c: Likewise.
6494 * grub-core/loader/multiboot_elfxx.c: Likewise.
6495 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6496 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6497 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6498 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6499 fixme.
6500 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6501 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6502 Fix prototype.
6503
37bb97fe
VS
65042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6505
6506 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6507 address.
6508
29a3550b
VS
65092012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6512 Avoid improper use of strings.
6513 (grub_cmd_legacy_initrdnounzip): Likewise.
6514
dfdffd0d
VS
65152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6518 attribute.
6519 (grub_util_info): Likewise.
6520 (grub_util_error): Likewise.
6521
102fae4a
VS
65222012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6525 * util/grub-fstest.c (fstest): Likewise.
6526
7e94d044
VS
65272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6530 (grub_md_sha512_real): Likewise.
6531 (grub_util_get_geli_uuid): Likewise.
6532 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6533 (grub_util_biosdisk_open): Fix format specification.
6534 Respect format security.
6535 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6536 (xrealloc): Likewise.
6537 (xasprintf): Likewise.
6538
5ebd9769
VS
65392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * util/import_gcry.py: Include grub/crypto.h in init.c.
6542
495fc8c1
VS
65432012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6546 (generate_image): Make prefix a const char *.
6547 Fix format specifications. Respect format security.
6548 Avoid void * arithmetics.
6549 Avoid shadowing.
6550 (argp_parser): Remove unused variable. Respect format security.
6551 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6552 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6553 (count_funcs): Remove unused variable.
6554 (relocate_addresses): Fix format specification.
6555 Disable x86-64 with elf32. Remove unused variables.
6556 (add_fixup_entry): Avoid shadowing.
6557 (make_reloc_section): Fix format specification.
6558 Use assert.
6559 (locate_sections): Fix format specifications.
6560 (load_image): Avoid shadowing.
6561
043c2ea3
VS
65622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6563
6564 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6565 Fix format specifications. Respect format security.
6566 Don't translate already translated grub_errmsg.
6567 (argp_parser): Remove unused variable
6568
3ec65a81
VS
65692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6572
a4d9fe4a
VS
65732012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6576 (main): Likewise. Use xmalloc. Respect format security.
6577
15b81d49
VS
65782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6581 a const char *.
6582 (argp_parser): Remove unused variable.
6583
31731fc0
VS
65842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6585
6586 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6587 (add_pixel): Make static.
6588 (add_font): Likewise.
6589 (write_string_section): Make name and str a const char *.
6590 (write_be16_section): Make name a const char *.
6591 (print_glyphs): Make static.
6592 (write_font_ascii_bitmap): Likewise.
6593 (write_font_width_spec): Likewise.
6594 (write_font_pf2): Likewise.
6595 (argp_parser): Remove unused variable.
6596 Respect format security.
6597 (main): Avoid shadowing. Respect format security.
6598
0809527b
VS
65992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 * util/grub-editenv.c (argp_parser): Make static.
6602 (create_envblk_file): Use xmalloc.
6603 (open_envblk_file): Likewise.
6604 Resepect format security.
6605 (set_variables): Respect format security.
6606
45b0c8b7
VS
66072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 * util/getroot.c (grub_find_device): Respect format security.
6610 (get_mdadm_uuid): Remove unused variable.
6611 (grub_util_pull_device): Dont call gettext on already translated
6612 grub_errmsg.
6613 (find_system_device): Remove unused variable.
6614 (grub_util_get_grub_dev): Likewise.
6615 (grub_make_system_path_relative_to_its_root): Respect format security.
6616
1b024b4e
VS
66172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 * util/grub-fstest.c (execute_command): Make first argument
6620 a const char *.
6621 (read_file): Avoid shadowing.
6622 Reuse underlying error message if device open fails.
6623 (cmd_cmp): Respect format security.
6624 (root): Make const char *.
6625 (fstest): Remove args argument and use global copy.
6626 Respect format security.
6627 (argp_parser): Make static.
6628 (main): Make default_root const char *.
6629
5d1d4e28
VS
66302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6631
6632 * util/grub-mount.c (root): Make const char *.
6633 (execute_command): Make first argument a const char *.
6634 (fuse_init): Respect format security.
6635 (argp_parser): Make static. Remove unused variable.
6636 (main): Make default_root a const char *.
6637 Respect format security.
6638
36eb7379
VS
66392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6640
6641 * util/grub-probe.c (probe): Don't call gettext on already translated
6642 grub_errmsg.
6643 Remove unused variables.
6644 (argp_parser): Remove unused variable.
6645
76fb2ea9
VS
66462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6647
6648 * util/grub-script-check.c (argp_parser): Remove unused variable.
6649 (main): Rename read to curread to avoid shadowing.
6650
56c98584
VS
66512012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 * util/misc.c (grub_util_write_image_at): Fix format specification.
6654 (grub_util_write_image): Likewise.
6655 (grub_script_execute_argument_to_string): Removed (unused).
6656 (grub_script_execute_menuentry): Likewise.
6657 (grub_putchar): Likewise.
6658
164ebb48
VS
66592012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6660
6661 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6662 (FUNCTION) [GRUB_UTIL]: Likewise.
6663 (VARIABLE) [GRUB_UTIL]: Likewise.
6664
44318d61
VS
66652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6666
6667 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6668 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6669
31a26002
VS
66702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6673 buffer.
6674
66752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6678 (LzmaEnc_SaveState): Removed (unused).
6679 (LzmaEnc_RestoreState): Likewise.
6680 (LzmaEnc_InitPriceTables): Made static.
6681 (LzmaEnc_Construct): Likewise.
6682 (LzmaEnc_FreeLits): Likewise.
6683 (LzmaEnc_Destruct): Likewise.
6684 (LzmaEnc_Init): Likewise.
6685 (LzmaEnc_InitPrices): Likewise.
6686 (LzmaEnc_Finish): Likewise.
6687 (LzmaEnc_PrepareForLzma2): Removed (unused).
6688 (LzmaEnc_MemPrepare): Likewise.
6689 (LzmaEnc_GetNumAvailableBytes): Likewise.
6690 (LzmaEnc_GetCurBuf): Likewise.
6691 (LzmaEnc_CodeOneMemBlock): Likewise.
6692
6fa67967
VS
66932012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6696 (grub_util_ldm_embed): Likewise.
6697
9a7428e6
VS
66982012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6699
6700 * util/grub-editenv.c (print_var): Rename name to varname to
6701 avoid shadowing.
6702 (main): Rename index to curindex to avoid shadowing.
31a26002 6703 Make filename a const char *.
9a7428e6 6704
4f96abd1
VS
67052012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6708 to arg_getline to avoid shadowing.
6709
44d10dad
VS
67102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6713 disk_ to avoid shadowing.
6714
340ba63e
VS
67152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6718 curindex to avoid shadowing.
6719 Make static.
6720 (MatchFinder_GetNumAvailableBytes): Make static.
6721
22965bce
VS
67222012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6725 avoid shadowing.
6726
7b5784d4
VS
67272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6730 argument from encrypt to do_encrypt to avoid shadowing.
6731
6f48ca01
VS
67322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6735 incorrect nesting of #if's.
6736
a4ea2dff
VS
67372012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6738
6739 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6740 checks which are always false on some platforms.
6741 (grub_cmd_lsacpi): Likewise.
6742 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6743 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6744 Likewise.
6745
def9fc1b
VS
67462012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6749 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6750
a67b2a04
VS
67512012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6754 re_dfa_t to avoid breaking alignment invariants.
6755 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6756 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6757
44c6828d
VS
67582012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6759
6760 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6761 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6762
bebe0dd0
VS
67632012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6764
6765 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6766 Fix declaration.
6767
a9cdb3cf
VS
67682012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6771 conserve alignment invariants.
6772 (grub_ehci_ehcc_read16): Likewise.
6773 (grub_ehci_oper_read32): Likewise.
6774 (grub_ehci_oper_write32): Likewise.
6775 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6776 Conserve alignment invariants.
6777
ccc3b1b8
VS
67782012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6781 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6782 declarations.
6783
987fbd95
VS
67842012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6785
6786 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6787 Remove unused variable.
6788
0df363f3
VS
67892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6792 Remove set in if.
6793
b2c0c4a6
VS
67942012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6795
6796 * include/grub/net.h: Remove double declarations.
6797
690c531f
VS
67982012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 Remove "payload" command in ia64 Linux loader since I couldn't
6801 find any evidence of it being used for anything.
6802 Replace "relocate" command with an environment variable
6803
6804 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6805 fields.
6806 (ia64_boot_payload): Removed.
6807 (last_payload): Likewise.
6808 (RELOCATE_OFF): Likewise.
6809 (RELOCATE_ON): Likewise.
6810 (RELOCATE_FORCE): Likewise.
6811 (relocate): Likewise.
6812 (free_pages): Don't free payloads.
6813 (grub_load_elf64): Use common error messages.
6814 Use "linux_relocate" variable.
6815 Increase the space after boot_params.
6816 (grub_cmd_payload): Removed.
6817 (grub_cmd_relocate): Likewise.
6818 (grub_cmd_fpswa): Improve messages.
6819 (cmd_payload): Removed.
6820 (cmd_relocate): Likewise.
6821 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6822 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6823
01783768
VS
68242012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 Convert UHCI to DMA framework.
6827
6828 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6829 (grub_uhci_pci_iter): Fill new members
6830 (grub_alloc_td): Use P2V and V2P functions.
6831 (grub_free_queue): Likewise.
6832 (grub_alloc_qh): Likewise.
6833 (grub_uhci_setup_transfer): Likewise.
6834 (grub_uhci_check_transfer): Likewise.
6835
43206939
VS
68362012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6837
6838 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6839 Remove assignment in if while on it.
6840
571e140e
VS
68412012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6842
6843 * util/grub-mkstandalone.in: Fix modules directory.
6844
a9d96eeb
VS
68452012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6848 on i386-pc target.
6849 (argp_parser): Accept "auto" as compression specification.
6850
e4e37e8d
VS
68512012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6852
6853 Fix `help' with unloaded modules.
6854
6855 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6856 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6857 (grub_dyncmd_dispatcher): Small stylistic fix.
6858 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6859 explicit help is requested.
6860
e1ea3ade
VS
68612012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6864 Explicitly init restart while on it.
6865
27556881
VS
68662012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6869 uninited variable.
6870
d65f6b36
VS
68712012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6872
6873 * util/grub-mknetdir.in: Use . rather than source for POSIX
6874 compatibility.
6875
0a1e473c
VS
68762012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6879
ce6647c8
VS
68802012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6883 variable.
6884
66747894
VS
68852012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6886
6887 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6888 without quotes.
6889
71645f6e
VS
68902012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6891
6892 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6893
0e1c1f61
VS
68942012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6897 iteration of partitions.
6898
9c4b5c13
VS
68992012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 Improve gettext support. Stylistic fixes and error handling fixes while
6902 on it.
6903
215c90cb
VS
69042012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6907 part. Instead setup the correct stack in RM.
6908 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6909 for stack.
6910 * include/grub/i386/relocator_private.h: New file.
6911
b5c1f9bf
VS
69122012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6915 argument.
6916 * util/grub-fstest.c (options): Add missing DEVICE part.
6917
b525fd83
VS
69182012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 Clarify and unify messages.
6921
6922 * grub-core/commands/hashsum.c (options): Unify messages.
6923 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6924 literal-only message as translatable.
6925 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6926 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6927 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6928 commands.
6929 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6930 key, not the key used to unlock. Clarify what it's used for.
6931 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6932 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6933 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6934 * util/grub-editenv.c (options): Unify "verbose" message.
6935 * util/grub-fstest.c (read_file): Unify error message.
6936 (fstest): Add quotes around commands.
6937 (options): Unify "verbose" message.
6938 * util/grub-install.in: Add quotes around variable name.
6939 * util/grub-kbdcomp.in: Unify error message.
6940 * util/grub-mkfont.c (main): Likewise.
6941 * util/grub-mkrescue.in: Likewise.
6942 * util/grub-mklayout.c (options): Unify "verbose" message.
6943 * util/grub-mkstandalone.in: Unify help and verbose messages.
6944 * util/grub-mount.c (options): Unify "verbose" message.
6945 * util/grub-probe.c (options): Likewise.
6946 * util/grub-script-check.c (options): Likewise.
6947 * util/grub-setup.c (setup): Unify no-terminator message.
6948 (options): Use DEVICE and not DEV.
6949 Unify "verbose" message.
6950 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6951
0ae70393
VS
69522012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6953
6954 Improve and unify messages.
6955
6956 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6957 name. All users updated.
6958 Print filename in error.
6959 (read_device_map): Print filename in error.
6960 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6961 (grub_util_get_os_disk): Likewise.
6962 (grub_util_biosdisk_get_grub_dev): Likewise.
6963 (grub_util_check_block_device): Likewise.
6964 (grub_util_check_char_device): Likewise.
6965 (grub_make_system_path_relative_to_its_root): Likewise.
6966 * util/grub-editenv.c (create_envblk_file): Likewise.
6967 (open_envblk_file): Likewise.
6968 (write_envblk): Likewise.
6969 * util/grub-fstest.c (cmd_cp): Likewise.
6970 (cmd_cat): Likewise.
6971 (cmd_cmp): Likewise.
6972 * util/grub-menulst2cfg.c (main): Likewise.
6973 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6974 (write_font_width_spec): Likewise.
6975 (write_font_pf2): Likewise.
6976 * util/grub-mkimage.c (generate_image): New argument outname.
6977 All users updated.
6978 Remove unreacheable message.
6979 (options): Unify messages.
6980 (help_filter): Likewise.
6981 * util/grub-mklayout.c (usage): Removed (unused).
6982 (main): Print filename in error.
6983 * util/grub-mkrescue.in: Fix wrong quoting.
6984 * util/grub-setup.c (setup): Print filename in error.
6985 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6986 (check_sas): Likewise.
6987 * util/misc.c (grub_util_get_fp_size): Removed.
6988 (grub_util_get_image_size): Print filename in error.
6989 (grub_util_read_at): Removed.
6990 (grub_util_read_image): Print filename in error.
6991 (grub_util_load_image): Likewise.
6992 (grub_util_write_image_at): New argument filename. All users updated.
6993 Print filename in error.
6994 (grub_util_write_image): New argument filename. All users updated.
6995 Print filename in error.
6996 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6997 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6998
0a96117d
VS
69992012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7000
7001 * grub-core/Makefile.core.def (pxechain): New module.
7002 * grub-core/loader/i386/pc/pxechainloader.c: New file.
7003 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
7004 function.
7005 (grub_pc_net_config_real): Use grub_pxe_get_cached.
7006 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
7007
aca002f7
VS
70082012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
7011 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
7012 * include/grub/err.h (grub_error_saved): New struct.
7013 (grub_errmsg): Make array size explicit.
7014 * include/grub/misc.h (grub_error_save): New function.
7015 (grub_error_load): Likewise.
7016 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
7017 (grub_error_push): Update `errno' member name.
7018 (grub_error_pop): Likewise
7019 * grub-core/net/tftp.c (tftp_data): New member save_err.
7020 (tftp_receive): Save error.
7021 (tftp_open): Restore error.
7022
a51dab13
VS
70232012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7024
7025 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
7026 to real mode down to execute A20-related code in protected mode as
7027 intended.
7028
eb6e6649
GS
70292012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7030
7031 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
7032 NULL when the argument `level' has an unexpected value.
7033
92cd0f6e
VS
70342012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 Move platform-dependent files from $prefix to $prefix/$platform.
7037
7038 * config.h.in (GRUB_TARGET_CPU): New definition.
7039 (GRUB_PLATFORM): Likewise.
7040 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
7041 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
7042 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
7043 * grub-core/kern/dl.c (grub_dl_load): Likewise.
7044 * grub-core/normal/autofs.c (read_fs_list): Likewise.
7045 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
7046 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
7047 * grub-core/normal/term.c (read_terminal_list): Likewise.
7048 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
7049 $prefix/locale.
7050 (grub_gettext_init_ext): Likewise.
7051 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
7052 grub_platform.
7053 * util/grub-install.in: Update directories.
7054 * util/grub-mknetdir.in: Likewise.
7055 * util/grub-mkrescue.in: Likewise.
7056
db606889
VS
70572012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7058
7059 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
7060 grub_error framework. All users updated.
7061
c39992a4
VS
70622012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7063
7064 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
7065 lists (by always binsearching), improve caching (cache strings
7066 used for binsearch, not only results), improve
7067 maintainability (by using more structured binary search) and correct
7068 error handling.
7069
1e5ec32f
VS
70702012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7071
7072 * grub-core/script/execute.c (grub_script_return): Fix warning.
7073
ac576cde
VS
70742012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 * grub-core/script/execute.c (grub_script_return): Fix potential
7077 NULL-dereference.
7078 Reported by: Jim Meyering.
7079
498453f6
VS
70802012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7081
7082 * po/POTFILES.in: Regenerate.
7083 * util/grub-install.in: Gettextize the strings missed in first pass.
7084
8be63f2e
VS
70852012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7086
7087 * Makefile.util.def (grub-mkdevicemap): Removed.
7088 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
7089 * include/grub/util/deviceiter.h: Removed.
7090 * util/deviceiter.c: Likewise.
7091 * util/getroot.c (grub_util_get_os_disk): New function.
7092 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
7093 replacement for EFI.
7094 * util/grub-mkdevicemap.c: Removed.
7095 * util/grub-probe.c (probe): Handle PRINT_DISK.
7096 (argp_parser): Handle -t disk.
7097
8e1e4e39
VS
70982012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7099
7100 * util/grub-mkfont.c: Migrate to argp.
7101 * util/grub-mklayout.c: Likewise.
7102 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7103 * util/grub-mkrelpath.c: Likewise.
7104 * util/grub-probe.c: Likewise.
7105 * util/grub-script-check.c: Likewise.
7106
4459819a
VS
71072012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7108
7109 * util/grub-reboot.in: Add missing datarootdir.
7110 Add missing newline.
7111 * util/grub-set-default.in: Add missing datarootdir.
7112 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
7113 * util/grub-mkrescue.in: Likewise.
7114
f65741c7
VS
71152012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
7118
c1a33466
VS
71192012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7120
7121 * util/grub-kbdcomp.in: Add decent help and gettextize.
7122 * docs/man/grub-kbdcomp.h2m: New file.
7123
c76899a0
VS
71242012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7125
7126 Migrate grub-mkimage.c to argp.
7127
7128 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
7129 (grub-setup): Likewise.
7130 * util/grub-setup.c (print_version): Move to ...
7131 * util/argp_common.c (print_version): ... here.
7132 * util/grub-setup.c (argp_program_version_hook): Move to ...
7133 * util/argp_common.c (argp_program_version_hook): ... here.
7134 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
7135 safety.
7136 * util/grub-mkimage.c (main): Migrate to argp.
7137
57db0757
VS
71382012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 * util/grub-mkrescue.in: Use same message as
7141 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
7142 for better translations.
7143
18534ad9
VS
71442012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
7147 options with generic grub-mkrescue.in with the goal of future
7148 merge.
7149
c84ba308
VS
71502012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7151
7152 * grub-core/kern/mm.c: Add missing include of i18n.h
7153 * grub-core/lib/relocator.c: Likewise.
7154
347998c2
VS
71552012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7156
7157 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
7158 error.
7159 (allocate_pages): Check return value.
7160 Replace fatal with error.
7161 (grub_linux_boot): Replace printf with dprintf.
7162 Check find_mmap_size return value.
7163 Replace fatal with error.
7164 Don't call grub_machine_fini.
7165 (grub_load_elf64): Replace printf with dprintf.
7166 (grub_cmd_linux): Likewise.
7167 (grub_cmd_initrd): Likewise.
7168 (grub_cmd_payload): Likewise.
7169
c779226e
VS
71702012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7171
7172 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
7173 message.
7174 * grub-core/video/radeon_fuloong2e.c
7175 (grub_video_radeon_fuloong2e_setup): Likewise.
7176 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
7177 * grub-core/video/video.c (grub_video_set_mode): Don't override
7178 standard out of memory message.
7179
dc87d45a
GS
71802012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7181
7182 NetBSD disk wedge support.
7183
7184 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
7185 [__NetBSD__]: Handle NetBSD disk wedges.
7186 * util/getroot.c (convert_system_partition_to_system_disk)
7187 [__NetBSD__]: Likewise.
7188
055f856f
MW
71892012-02-03 Mark Wooding <mdw@distorted.org.uk>
7190
7191 * util/grub-mkconfig.in: Use umask rather than chmod to create
7192 grub.cfg.new to avoid insecure grub.cfg.
7193
4a9f8346
VS
71942012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * grub-core/commands/ls.c: Gettextize.
7197 * grub-core/commands/setpci.c: Likewise.
7198 * grub-core/commands/videotest.c: Likewise.
7199 * grub-core/disk/geli.c: Likewise.
7200 * grub-core/kern/mm.c: Likewise.
7201 * grub-core/lib/relocator.c: Likewise.
7202 * grub-core/loader/efi/appleloader.c: Likewise.
7203 * grub-core/loader/i386/xnu.c: Likewise.
7204 * grub-core/loader/ia64/efi/linux.c: Likewise.
7205 * grub-core/loader/xnu.c: Likewise.
7206 * grub-core/net/dns.c: Likewise.
7207 * grub-core/net/net.c: Likewise.
7208 * grub-core/script/lexer.c: Likewise.
7209 * grub-core/script/parser.y: Likewise.
7210 * grub-core/script/yylex.l: Likewise.
7211 * util/getroot.c: Likewise.
7212 * util/grub-setup.c: Likewise.
7213
a646a366
VS
72142012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7215
7216 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
7217 number.
7218
54e2be26
VS
72192012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7220
7221 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
7222
f7c71e68
VS
72232012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7224
7225 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
7226 macro.
7227 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
7228 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
7229
a32d5c71
VS
72302012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
7233 * util/grub-install.in: Gettextize.
7234 * util/grub-mkconfig.in: Likewise.
7235 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
7236 if not available.
7237 (grub_warn): Gettextize.
7238 * util/grub-mknetdir.in: Gettextize.
7239 * util/grub-mkrescue.in: Likewise.
7240 * util/grub-mkstandalone.in: Likewise.
7241 * util/grub-reboot.in: Likewise.
7242 * util/grub-set-default.in: Likewise.
7243 * util/grub.d/00_header.in: Likewise.
7244 * util/grub.d/10_hurd.in: Likewise.
7245 * util/grub.d/10_kfreebsd.in: Likewise.
7246 * util/grub.d/10_linux.in: Likewise.
7247 * util/grub.d/10_netbsd.in: Likewise.
7248 * util/grub.d/10_windows.in: Likewise.
7249 * util/grub.d/20_linux_xen.in: Likewise.
7250 * util/grub.d/30_os-prober.in: Likewise.
7251 * po/POTFILES-shell.in: Regenerate.
7252
69edd81a
RL
72532012-02-03 Richard Laager <rlaager@wiktel.com>
7254
7255 * util/grub-mkimage.c (main): Fix format-security warning.
7256 * util/grub-mkrelpath.c (main): Likewise.
7257 * util/grub-probe.c (main): Likewise.
7258
65f08dbf
RL
72592012-02-03 Richard Laager <rlaager@wiktel.com>
7260
7261 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
7262 failure.
7263 Put back lost PRINT_DRIVE.
7264
e9084abe
RL
72652012-02-03 Richard Laager <rlaager@wiktel.com>
7266
7267 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
7268 (grub_guess_root_devices): Replace strlen with sizeof.
7269 Avoid crash.
7270 (find_root_devices_from_poolname): Remove unused variable.
7271 Handle raidzN.
7272
cf5f7ee7
VS
72732012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 Support install on multi-device filesystems.
7276
7277 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
7278 (grub_guess_root_devices): ...this. Return char **. All users updated.
7279 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
7280 Removed.
7281 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
7282 (find_root_devices_from_poolname): ... here.
7283 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
7284 Support zfs-fuse.
7285 (grub_guess_root_device): Rename to ...
7286 (grub_guess_root_devices): ... this. Return char **. All users updated.
7287 * util/grub-install.in: Handle multi-device filesystems.
7288 * util/grub-probe.c (probe). Make device_names a char **. Add delim
7289 argument. All users updated.
7290 Handle multi-device filesystems.
7291 Use 'delim' as separator.
7292 Remove device check to allow filesystems on file.
7293 (main): Support -0 argument. Handle multi-device.
7294 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
7295 Fix a cross-device check while on it.
7296 (arguments): Remove root_dev.
7297 (argp_parser): Remove -r.
7298 (main): Remove root_dev.
7299
2f53a9ed
VS
73002012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7301
7302 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
7303
17e1d934
VS
73042012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
7307 symbol.
7308 Reported by: NODA, Kai <nodakai>.
7309
d3e3fab5
VS
73102012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7311
7312 Fix ehci on amd64.
7313
7314 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
7315 pointers.
7316 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
7317 (grub_ehci_setup_qh): Likewise.
7318 (grub_ehci_find_qh): Likewise.
7319 (grub_ehci_transaction): Likewise.
7320 (grub_ehci_setup_transfer): Likewise.
7321 (grub_ehci_check_transfer): Likewise.
7322 (grub_ehci_portstatus): Likewise.
7323 (grub_ehci_detect_dev): Likewise.
7324 (grub_ehci_transfer_controller_data): New field td_last_phys.
7325 (grub_ehci_setup_transfer): Fill td_last_phys.
7326 (grub_ehci_check_transfer): Use td_last_phys.
7327
3008675b
SG
73282012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7329
7330 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7331 if no submenu is present.
7332
fc9b5652
AN
73332012-02-01 Aleš Nesrsta <starous@volny.cz>
7334
7335 CBI support.
7336
7337 * include/grub/usb.h (grub_usbms_protocol_t): New values
7338 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7339 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7340 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7341 (grub_usbms_dev): Add subclass, protocol and intrpt.
7342 Remove in_maxsz and out_maxsz.
7343 (grub_usbms_reset): Rename to ...
7344 (grub_usbms_bo_reset): .. this.
7345 (grub_usbms_cbi_cmd): New function.
7346 (grub_usbms_cbi_reset): Likewise.
7347 (grub_usbms_reset): Likewise.
7348 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7349 (grub_usbms_transfer): Rename to ...
7350 (grub_usbms_transfer_bo): ... this.
7351 (grub_usbms_transfer_cbi): Likewise.
7352 (grub_usbms_transfer): Likewise.
7353
a2b81d53
AN
73542012-02-01 Aleš Nesrsta <starous@volny.cz>
73552012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7356
7357 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7358 the support for the CS5536 modification thereos and few bugfixes.
7359
7360 * grub-core/Makefile.core.def (ehci): New module.
7361 * grub-core/bus/usb/ehci.c: New file.
7362 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7363 port and hubaddr. All users updated.
7364 Save port and hubaddr into dev structure.
7365 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7366 define.
7367 * include/grub/pci.h (grub_dma_phys2virt): New function.
7368 (grub_dma_virt2phys): Likewise.
7369 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7370
b1d51f02
VS
73712012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7372
7373 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7374 check as some mkfs implementations omit it.
7375
fc694106
VS
73762012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7377
7378 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7379
6c0920e3
VS
73802012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7381
7382 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7383 Add new member volname2.
7384 (grub_jfs_label): Use volname2 if available.
7385
d1a46f9a
VS
73862012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7387
7388 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7389 over last_mounted as seen in image generated by mkfs.nilfs2.
7390 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7391
dec8ed14
VS
73922012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7393
7394 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7395 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7396 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7397
7397c69b
VS
73982012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7401 over the sector.
7402
b3fe42ad
VS
74032012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7404
7405 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7406 subvolume name (by removing a bogus and useless check).
7407
10476bb0
VS
74082012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7411 sizeof while on it.
7412
9c08ad87
VS
74132012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7416 (grub_scsi_read_capacity10): ... this.
7417 (grub_scsi_read_capacity16): New function.
7418 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7419 0xffffffff.
7420 Fix off-by-one error.
7421 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7422 64-bit unsigned.
7423 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7424 (grub_scsi_read_capacity10): ... this.
7425 (grub_scsi_read_capacity_data): Rename to ...
7426 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7427 (grub_scsi_read_capacity16): New struct.
7428 (grub_scsi_read_capacity16_data): Likewise.
7429 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7430 grub_scsi_cmd_read_capacity10.
7431 New command grub_scsi_cmd_read_capacity16.
7432
bc8d0f45
VS
74332012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7434
7435 SCSI >2TiB support.
7436
7437 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7438 (grub_scsi_write16): Likewise.
7439 (grub_scsi_read): Use read16 when necessary.
7440 (grub_scsi_write): Likewise.
7441 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7442 (grub_scsi_write16): Likewise.
7443 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7444
cc774926
VS
74452012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7446
7447 SCSI write support (for usbms mainly).
7448
7449 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7450 a const pointer.
7451 (grub_scsi_write): Implement.
7452 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7453
67639fd7
VS
74542012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7457 variable.
7458
9079d3ed
VS
74592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7462
c6a6f204
VS
74632012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7464
7465 * po/POTFILES.in: Regenerate.
7466
ecbf8cd1
VS
74672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7470 with grub_printf to avoid unnecessary fatal failure.
7471
0b3b3b38
VS
74722012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7473
7474 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7475 (INT_MAX): Likewise.
7476 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7477 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7478 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7479 (strcpy): Likewise.
7480 (strstr): Likewise.
7481 (strchr): Likewise.
7482 (strncpy): Likewise.
7483 (strcat): Likewise.
7484 (strncat): Likewise.
7485 (strcoll): Likewise.
7486 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7487 (GRUB_INT_MAX): Likewise.
7488
db7337a3
VS
74892012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7492 unexpected error.
7493 (optimize_utf8): Likewise.
7494 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7495
f37c87e1
VS
74962012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7497
7498 * grub-core/boot/i386/pc/lnxboot.S: Use
7499 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7500 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7501 location.
7502 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7503 definition.
7504 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7505
63fe43f3
VS
75062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7507
7508 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7509 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7510 now to avoid double free.
7511 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7512 hostdisk.
7513 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7514 * util/grub-probe.c (escape_of_path): Always return a new copy.
7515 (print_full_name): Escape path.
7516 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7517 Fix hints on abstractions.
7518
ebe2c961
VS
75192012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7520
7521 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7522 Don't add "root" line if no compatibility hont is available.
7523 Suggested by: Seth Goldberg.
7524
2b5336a2
VS
75252012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7528 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7529 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7530 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7531
74310bd8
VS
75322012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7533
7534 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7535
c30582ba
VS
75362012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7537
7538 * util/grub-pe2elf.c (ehdr): Make static.
7539 (shdr): Likewise.
7540 (num_sections): Likewise.
7541 (offset): Likewise.
7542
5f47782c
VS
75432012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7544
7545 Eliminate ofpath limits and possible overflows.
7546
7547 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7548 (OF_PATH_MAX): Removed.
7549 (MAX_DISK_CAT): New const.
7550 (find_obppath): Use allocated rather than preallocated buffer.
7551 Return result. Argument of_path removed. All users updated.
7552 Add missing fdstat.
7553 (xrealpath): New function.
7554 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7555 Allocate rather than use preallocated buffer. All users updated.
7556 (__of_path_common): Use allocated rather than preallocatecd buffer.
7557 Return result. Argument of_path removed. All users updated.
7558 (vendor_is_ATA): Read only needed part form the file.
7559 (check_sas): Allocate depending on contents rather than fixed.
7560 (main) [STANDALONE]: Handle NULL result.
7561
f990cbf9
VS
75622012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7565
9c6e84b8
VS
75662012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7567
7568 Cryptodisk write support.
7569
7570 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7571 (grub_cryptodisk_decrypt): Moved logic to ...
7572 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7573 (grub_cryptodisk_write): Implement.
7574 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7575 (grub_util_fd_write): ... this. Make global.
7576 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7577
87cf9744
VS
75782012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7579
7580 * include/grub/list.h (grub_list_remove): Don't crash if element is
7581 removed twice.
7582
ca8c0baf
VS
75832012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7584
7585 Rename ofconsole to console.
7586
7587 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7588 as sysnonym to console.
7589 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7590 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7591 Rename grub_ofconsole_ to grub_console_. All users updated
7592 (grub_console_term_output): Rename "ofconsole" to "console".
7593 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7594 as "console".
7595
64c8b8f6
VS
75962012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7597
7598 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7599 handling.
7600 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7601 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7602 GRUB_DISK_DEVICE_FILE_ID.
7603
f6c434d5
VS
76042012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7607 and improve performance.
7608
5858b42d
VS
76092012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7610
7611 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7612 missing ieee1275/ prefix on whole disk.
7613
4ed3c26b
VS
76142012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7617 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7618
df71143e
VS
76192012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7622
076e7c0f
VS
76232012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7624
7625 Merge common RAID and LVM logic to an abstract diskfilter.
7626 Add LDM support using the same framework.
7627
7628 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7629 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7630 (libgrubmods): Remove grub-core/disk/raid.c and
7631 grub-core/partmap/gpt.c.
7632 * grub-core/Makefile.core.def (ldm): New module.
7633 (raid): Renamed to diskfilter. All users updated.
7634 * grub-core/disk/raid.c: Moved to ...
7635 * grub-core/disk/diskfilter.c: ... here.
7636 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7637 (lv_num): New var.
7638 (find_array): Renamed to ...
7639 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7640 (grub_is_array_readable): Renamed to ...
7641 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7642 (insert_array): New argument id.
7643 (is_node_readable): New function.
7644 (scan_device): Rename to ...
7645 (scan_disk): .. this. Restrict to one disk.
7646 (scan_devices): New function.
7647 (grub_diskfilter_iterate): Support multi-LV.
7648 Skip invisible and nameless LVs.
7649 (grub_diskfilter_memberlist): Support multi-LV.
7650 (grub_diskfilter_read_node): New function.
7651 (grub_raid_read): Most of logic moved to ...
7652 (read_segment): ... here
7653 (read_lv): New function.
7654 (grub_diskfilter_get_vg_by_uuid): New function.
7655 (grub_diskfilter_make_raid): Likewise.
7656 * grub-core/disk/ldm.c: New file.
7657 * grub-core/disk/lvm.c (vg_list): Removed.
7658 (lv_count): Likewise.
7659 (scan_depth): Likewise.
7660 (is_lv_readable): Likewise.
7661 (grub_lvm_getvalue): Advance pointer past the number.
7662 (find_lv): Removed.
7663 (do_lvm_scan): Refactored into ...
7664 (grub_lvm_detect): ... this. Support raid.
7665 (grub_lvm_iterate): Removed.
7666 (grub_lvm_memberlist): Likewise.
7667 (grub_lvm_open): Likewise.
7668 (grub_lvm_close): Likewise.
7669 (read_lv): Likewise.
7670 (read_node): Likewise.
7671 (is_node_readable): Likewise.
7672 (is_lv_readable): Likewise.
7673 (grub_lvm_read): Likewise.
7674 (grub_lvm_write): Likewise.
7675 (grub_lvm_dev): Use diskfilter
7676 (GRUB_MOD_INIT): Likewise.
7677 (GRUB_MOD_FINI): Likewise.
7678 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7679 new interface.
7680 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7681 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7682 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7683 grub_diskfilter_read_node.
7684 Fix a bug with xor.
7685 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7686 grub_diskfilter_read_node.
7687 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7688 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7689 (grub_disk_dev_iterate): Move from here...
7690 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7691 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7692 Make global.
7693 (grub_hostdisk_find_partition_start): Likewise.
7694 (grub_hostdisk_os_dev_to_grub_drive): New function.
7695 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7696 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7697 * util/getroot.c (make_device_name): ... here.
7698 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7699 Move to ...
7700 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7701 * grub-core/kern/emu/hostdisk.c
7702 (convert_system_partition_to_system_disk): Move to ...
7703 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7704 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7705 * util/getroot.c (device_is_wholedisk): ... here.
7706 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7707 * util/getroot.c (find_system_device): ... here.
7708 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7709 Move to ...
7710 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7711 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7712 Move to ...
7713 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7714 Handle LDM.
7715 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7716 Move to ...
7717 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7718 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7719 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7720 DISKFILTER.
7721 * include/grub/raid.h: Renamed to ...
7722 * include/grub/diskfilter.h: ... this.
7723 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7724 (GRUB_RAID_LAYOUT_*): Make into array.
7725 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7726 (grub_diskfilter_vg): New struct.
7727 (grub_diskfilter_pv_id): Likewise.
7728 (grub_raid_member): Removed.
7729 (grub_raid_array): Likewise.
7730 (grub_diskfilter_pv): New struct.
7731 (grub_diskfilter_lv): Likewise.
7732 (grub_diskfilter_segment): Likewise.
7733 (grub_diskfilter_node): Likewise.
7734 (grub_diskfilter_get_vg_by_uuid): New proto.
7735 (grub_raid_register): Inline.
7736 (grub_diskfilter_unregister): Likewise.
7737 (grub_diskfilter_make_raid): New proto.
7738 (grub_diskfilter_vg_register): Likewise.
7739 (grub_diskfilter_read_node): Likewise.
7740 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7741 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7742 (grub_util_is_ldm): Likewise.
7743 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7744 (grub_hostdisk_find_partition_start): Likewise.
7745 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7746 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7747 New definition.
7748 (grub_gpt_partition_map_iterate): New proto.
7749 * include/grub/lvm.h (grub_lvm_vg): Removed.
7750 (grub_lvm_pv): Likewise.
7751 (grub_lvm_lv): Likewise.
7752 (grub_lvm_segment): Likewise.
7753 (grub_lvm_node): Likewise.
7754 * util/getroot.c [...]
7755 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7756 (probe_abstraction): Likewise.
7757 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7758 (main): Remove dead logic.
7759
8a7f9b9c
VS
77602012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7761
7762 Simplify root device discover and don't fail when trying to open
7763 incorrect devices.
7764
7765 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7766 function.
7767 (get_diskname_from_path): Likewise.
7768 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7769 of iterating.
7770
30545b85
VS
77712012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7772
7773 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7774
28ea58cf
VS
77752012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7778 pastthe end.
7779
692dabca
VS
77802012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 * util/grub-install.in: Add missing \.
7783 Reported by: gentoofan
7784
f6e4ea70
VS
77852012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7788 (direct_read): Use correct compressed size.
7789 (grub_squash_read_data): Likewise.
7790
77912012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
7792
7793 * docs/grub.texi (Platform limitations): New section.
7794 (Platform-specific operations): Likewise.
7795 * docs/grub-dev.texi (Porting): Likewise.
7796
76261110
VS
77972012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7798
7799 IEEE1275 disk write support.
7800
7801 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7802 const void *.
7803 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7804 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7805 and seek loginc to ...
7806 (grub_ofdisk_prepare): ... here.
7807 (grub_ofdisk_write): Implement.
7808
fc36d603
VS
78092012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7810
7811 ARC disk write support.
7812
7813 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7814 (reopen): New argument writable. All users updated.
7815 Handle required access mode.
7816 (grub_arcdisk_write): Implement.
7817 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7818 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7819
e06c2e7a
VS
78202012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7821
7822 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7823 (read_sblock): Don't attempt to read superblocks outside the disk size.
7824
ff447958
VS
78252012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7826
7827 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7828 first superblock to find the second one when possible.
7829
9e88df39
VS
78302012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7831
7832 * util/grub-install.in: Fix an ARC bug.
7833 Print a warning if no platform-specific setup is available.
7834
bb26e4ff
VS
78352012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7836
7837 Use static allocation rather than scratch pointer in reed_solomon.
7838 It decreases its size significantly and avoids a variable in .text.
7839
7840 * grub-core/lib/reed_solomon.c (scratch): Removed.
7841 (chosenstat): New const or static array.
7842 (sigma): Likewise.
7843 (errpot): Likewise.
7844 (errpos): Likewise.
7845 (sy): Likewise.
7846 (mstat): Likewise.
7847 (errvals): Likewise.
7848 (eqstat): Likewise.
7849 (pol_evaluate): Replace x with log_x argument. All users updated.
7850 (syndroms): Removed.
7851 (gauss_solve): Use statically allocated arrays.
7852 (rs_recover): Likewise.
7853 Calculate syndroms directly.
7854 (decode_block): Use statically allocated arrays.
7855 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7856 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7857
2e13ede5
VS
78582012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7859
7860 Eliminate fixed limit on reed solomon decoder length.
7861
7862 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7863 rather than hardcoding the address.
7864 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7865 no_reed_solomon_length.
7866 Move gate_a20 to no-reed-solomon part.
7867 Don't force a particular size of no reed-solomon part.
7868 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7869 Removed.
7870 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7871 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7872
f8a9ab12
VS
78732012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7874
7875 * grub-core/commands/wildcard.c (match_files): Handle filenames
7876 without explicit device.
7877 (wildcard_expand): Don't add explicit device if not already present.
7878 * tests/grub_script_echo1.in: Add a new expansion test.
7879
87edb894
VS
78802012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7881
7882 Replace single-linked with double-linked lists. It results in more
7883 compact and more efficient code.
7884
7885 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7886 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7887 (grub_list_remove): Moved from here ...
7888 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7889 (grub_prio_list_insert): Set prev.
7890 * include/grub/list.h (grub_list): Add prev. All users updated.
7891
48b391e9
VS
78922012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7893
7894 Handle newer autotools. Add some missing quotes while on it.
7895
7896 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7897 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7898 (pkgdata_DATA): ... here.
7899 * Makefile.util.def (update-grub_lib): Removed.
7900 * conf/Makefile.common (pkglib_DATA): Removed.
7901 (pkglib_SCRIPTS): Likewise.
7902 (pkgdata_DATA): New variable.
7903 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7904 needed.
7905 Add missing quotes.
7906 Remove unused variable while on it.
7907 * tests/util/grub-shell.in: Likewise.
7908 * util/grub-install.in: Likewise.
7909 * util/grub-mkconfig.in: Likewise.
7910 * util/grub-mknetdir.in: Likewise.
7911 * util/grub-mkrescue.in: Likewise.
7912 * util/grub-mkstandalone.in: Likewise.
7913 * util/grub.d/00_header.in: Likewise.
7914 * util/grub.d/10_hurd.in: Likewise.
7915 * util/grub.d/10_illumos.in: Likewise.
7916 * util/grub.d/10_kfreebsd.in: Likewise.
7917 * util/grub.d/10_linux.in: Likewise.
7918 * util/grub.d/10_netbsd.in: Likewise.
7919 * util/grub.d/10_windows.in: Likewise.
7920 * util/grub.d/20_linux_xen.in: Likewise.
7921 * util/grub.d/30_os-prober.in: Likewise.
7922 * util/update-grub_lib.in: Removed.
7923
79242012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
7925
7926 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7927 a workaround for intel problem.
7928
66832792
PRP
79292012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
79302012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
79312012-01-23 pfsmorigo
7932
7933 * util/grub-install.in: Support dd'in into PreP partition.
7934 * util/grub-probe.c (probe): Support discovering partition type.
7935 (main): Support -t msdos_parttype.
7936
7816a17e
VS
79372012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7938
7939 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7940 infinite recursion using counter.
7941 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7942 init to skip it if the magic check fails.
7943 (dec_stream_header): Init s->crc32.
7944
8f9d3a8c
ZB
79452012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
79462012-01-22 Zachary Bedell <pendorbound@gmail.com>
79472012-01-22 Richard Laager <rlaager@wiktel.com>
7948
7949 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7950 All users updated.
7951 (find_bestub): Determine correct size.
7952 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7953 (scan_disk): Align the size down.
7954 Call check pool before find_bestub to have ashift.
7955
b055dd32
VS
79562012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7957
7958 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7959 dprintf in no-malloc zone.
7960
d779e9bd
ML
79612012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7962
7963 * configure.ac: Add back in test for limits.h.
7964
b508af69
VS
79652012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7966
7967 Support 4K-sector NTFS.
7968
7969 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7970 (grub_ntfs_data): Remove blocksize.
7971 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7972 Remove data argument. All users updated.
7973
dad9c8b5
VS
79742012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7975
7976 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7977 being in .text to avoid dprel references.
7978 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7979 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7980 (grub_arch_highmemsize): Likewise.
7981 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7982 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7983 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7984
d43a777e
VS
79852012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7986
7987 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7988
7989 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7990 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7991
34e4208f
VS
79922012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7993
7994 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7995 GRUB_UTIL.
7996 (grub_set_datetime_cmos): Likewise.
7997
3ec0fc1c
VS
79982012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7999
8000 Make XZ compression parameters dependent on target and not host CPU.
8001
8002 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
8003 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
8004
22489834
VS
80052012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8006
8007 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
8008 set but not used variable.
8009
8502fbca
VS
80102012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
8013 created when no uuid support is compiled into mkfs.reiser.
8014
76df2068
VS
80152012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8016
8017 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
8018 (utf8_to_macroman): Do the opposite.
8019 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
8020
64e3f8f6
VS
80212012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8022
8023 * configure.ac: Refise build qemu_mips w/o unifont.
8024
9c271078
VS
80252012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8026
8027 Eliminate grub_min/grub_max prone to overflow usage.
8028
8029 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
8030 (poll_nonroot_hub): Likewise.
8031 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
8032 (grub_affs_label): Likewise.
8033 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
8034 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
8035 (grub_hfs_label): Likewise.
8036 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
8037 * grub-core/fs/zfs/zfs.c (MIN): Remove.
8038 (zap_leaf_array_equal): Use grub_size. Remove MIN.
8039 (zap_leaf_array_get): Likewise.
8040 (dnode_get_path): Likewise.
8041 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
8042 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
8043 * grub-core/script/execute.c (grub_script_break): Likewise.
8044 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
8045 grub_max.
8046 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
8047 * include/grub/misc.h (grub_min): Removed.
8048 (grub_max): Likewise.
8049
80662dbc
VS
80502012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8051
8052 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
8053 direct.inode = 0.
8054
e6da1467
VS
80552012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8056
8057 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
8058
b1ac4cb1
VS
80592012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8060
8061 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
8062
b4bf7c3b
VS
80632012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8064
8065 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
8066 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
8067
8ee1101a
VS
80682012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8069
8070 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
8071 rather than a hack for grub_strncasemap.
8072
80732012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8074
8075 Support multiple initrds
8076 Note: part of this was accidently committed in r3739.
8077
8078 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
8079 initrd.
8080 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8081 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8082 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8083 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8084 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8085
4d1e2bc9
VS
80862012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8087
8088 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
8089 disks with unknown size.
8090 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
8091
75b49ebe
VS
80922012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 Remove defines pertaining to arbitrary limits not affecting GRUB
8095 anymore.
8096
8097 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
8098 (EXT2_MAX_SYMLINKCNT): Likewise.
8099 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
8100 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
8101 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
8102 (GRUB_PXE_MAX_BLKSIZE): Likewise.
8103 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
8104 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
8105 (DN_MAX_OBJECT_SHIFT): Likewise.
8106 (DN_MAX_OFFSET_SHIFT): Likewise.
8107 (DN_MAX_OBJECT): Likewise.
8108 (DNODES_PER_LEVEL_SHIFT): Likewise.
8109 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
8110 (SPA_MAXBLOCKSIZE): Likewise.
8111 (SPA_BLOCKSIZES): Likewise.
8112 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
8113 (MZAP_MAX_BLKSZ): Likewise.
8114
74a1dce7
VS
81152012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8116
8117 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
8118 handle NULL appropriately.
8119 Remove MIN.
8120
30c7d3ce
VS
81212012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8122
8123 Fix efiemu.
8124
8125 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
8126 cpu/types.h.
8127 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
8128 * configure.ac: Fix efiemu check.
8129
3c76ea0c
VS
81302012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8131
8132 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
8133 grub_probe.
8134 Reported by: adamwill
8135
7e532280
SG
81362012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
8137
8138 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
8139
30492374
VS
81402012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8141
8142 Fix handling of wide characters in gfxterm.
8143
8144 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
8145 (clear_char): Likewise.
8146 (paint_char): Skip code == NULL chars.
8147 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
8148
e70cb72f
VS
81492012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8150
8151 * grub-core/normal/charset.c: Move comment to right place.
8152
5c827cf9
VS
81532012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8154
8155 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
8156 (GRUB_AFFS_FLAG_FFS): Put back where it was.
8157 (grub_affs_mount): Revert the correct version checking.
8158
53603892
VS
81592012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8160
8161 * docs/grub.texi (Unicode): Mention several other unsupported features.
8162
ff094b9b
VS
81632011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8164
8165 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
8166 case statements as compile-time one.
8167 (direct_read): Prevent spurious warnings.
8168 (grub_squash_read_data): Likewise.
8169
c029da8a
VS
81702011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8171
8172 Various squash4 fixes and LZO and XZ support.
8173
8174 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
8175 Add xzembed source files.
8176 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
8177 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
8178 (grub_squash_inode): New subtype long_dir.
8179 (SQUASH_TYPE_LONG_DIR): New inode type.
8180 (COMPRESSION): New enum.
8181 (XZBUFSIZ): New const.
8182 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
8183 (read_chunk): Use data->decompress.
8184 (zlib_decompress): New function.
8185 (lzo_decompress): Likewise.
8186 (xz_decompress): Likewise.
8187 (squash_mount): Set new data fields.
8188 (grub_squash_iterate_dir): Handle long dir.
8189 (squash_unmount): Free xzdec and xzbuf.
8190 (grub_squash_open): Check ino type.
8191 (direct_read): Stylistic fixes. Use data->decompress.
8192 (grub_squash_read_data): Likewise.
8193 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
8194 (get_byte): Likewise.
8195 (grub_zlib_disk_read): Removed.
8196 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
8197 (GRUB_POSIX_BOOL_DEFINED): New define.
8198 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
8199 * grub-core/lib/xzembed/xz.h: Addmissing includes.
8200 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
8201 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
8202
7a45a539
VS
82032011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8204
8205 Don't override more informative errors.
8206
8207 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
8208 * grub-core/font/font.c (open_section): Likewise.
8209 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
8210 filename. Don't override errors.
8211 (grub_cmd_openbsd_ramdisk): Don't override errors.
8212 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
8213 (grub_cmd_initrd): Likewise.
8214 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8215 (grub_cmd_initrd): Likewise.
8216 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
8217 (grub_cmd_linux): Likewise.
8218 (grub_cmd_initrd): Likewise.
8219 (grub_cmd_payload): Likewise.
8220 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8221 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
8222 (grub_cmd_module): Likewise.
8223 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8224 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8225 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
8226 (grub_cmd_xnu_mkext): Likewise.
8227 (grub_cmd_xnu_ramdisk): Likewise.
8228 (grub_xnu_check_os_bundle_required): Likewise.
8229 (grub_xnu_load_kext_from_dir): Likewise.
8230 (grub_cmd_xnu_kextdir): Likewise.
8231 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
8232
b2d004db
VS
82332011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8234
8235 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
8236 as 1024 in block size field. Found on one of my test images.
8237 Small optimisation while on it.
8238
ec000eac
VS
82392011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8240
8241 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
8242 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
8243 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
8244 performance fixes while on it.
8245 (grub_sfs_close): Fix memory leak while on it.
8246 (grub_sfs_label): Convert Latin1 to UTF-8.
8247
f50e1165
VS
82482011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8249
8250 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
8251 space to avoid overflows.
8252 (grub_hfs_label): Convert from macroman to UTF-8.
8253
2ae254de
VS
82542011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
8257
0108f491
VS
82582011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8259
8260 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
8261
f45f5f89
VS
82622011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8263
8264 * unicode: Import Unicode 6.0 data.
8265
4d8c4765
VS
82662011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8267
63fa8ef9
VS
8268 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
8269 outside of range.
8270
82712011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8272
8273 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
8274
8275 * include/grub/charset.h (grub_getend): New function.
8276 * grub-core/script/function.c (grub_script_function_find): Use
8277 grub_getend.
8278 * grub-core/normal/completion.c (add_completion): Likewise.
8279
f3cb4a4e
VS
82802011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8281
8282 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
8283 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
8284 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
8285 (GRUB_UNICODE_TAG_END): Likewise.
8286 (GRUB_UNICODE_LAST_VALID): Likewise.
8287
5da8dbc5
VS
82882011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8289
8290 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
8291 len and make it smaller. All users updated.
8292 * util/import_unicode.py: Put length and not end character.
8293 Check length.
8294
8569f13d
VS
82952011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8296
8297 Make better Unicode-compliant and unify some UTF-8 code pathes.
8298
8299 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
8300 valid character.
8301 (grub_is_valid_utf8): Use grub_utf8_process.
8302 Check resulting code range.
8303 (grub_utf8_to_ucs4): Use grub_utf8_process.
8304 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
8305 valid character.
8306
cc4fddf5
VS
83072011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8308
8309 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
8310
bbc47747
VS
83112011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8312
8313 * docs/grub.texi (Filesystems): Mention AFS.
8314
f63d6bf4
VS
83152011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8316
8317 * docs/grub.texi (Filesystems): Clarify restrictions.
8318 (Regexp): Mention non-Unicode regexp behaviour.
8319 (Other): Mention non-Unicode matching behaviour.
8320
74bbf0db
VS
83212011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8322
f63d6bf4 8323 Make HFS implementation use MacRoman.
74bbf0db
VS
8324
8325 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8326 (macroman): New const array.
8327 (macroman_to_utf8): New function.
8328 (utf8_to_macroman): Likewise.
8329 (grub_hfs_find_dir): Use utf8_to_macroman.
8330 (grub_hfs_dir): Use macroman_to_utf8.
8331 Set case_insensitive.
8332
4ea0316e
VS
83332011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8334
8335 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8336
d3c13cbd
VS
83372011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8338
8339 Integrate hints into autogeneration scripts.
8340
8341 * docs/grub.texi (Filesystems): Add a hostdisk example.
8342 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8343 (grub-probe): Add ofpath.
8344 * gentpl.py: Remove group nosparc64.
8345 * grub-core/commands/search.c (cache_entry): New struct.
8346 (cache): New var.
8347 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8348 * grub-core/commands/search_wrap.c (options): Add platform-specific
8349 hint options.
8350 (grub_cmd_search): Handle platform-specific hints.
8351 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8352 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8353 (grub_util_biosdisk_data): Likewise.
8354 (grub_util_biosdisk_open): Set device_map.
8355 (read_device_map): Handle "" as indication of no map.
8356 Set device_map.
8357 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8358 (grub_util_biosdisk_get_compatibility_hint): New function.
8359 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8360 * include/grub/emu/hostdisk.h
8361 (grub_util_biosdisk_get_compatibility_hint): New proto.
8362 * util/grub-install.in: Don't call grub-mkdevicemap.
8363 Add platform-specific hint to load.cfg.
8364 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8365 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8366 hints. Set root preliminary to compatibility hint, not to OS name.
8367 * util/grub-probe.c (PRINT_*): Add hints.
8368 (print): Make static.
8369 (escape_of_path): New function.
8370 (guess_bios_drive): Likewise.
8371 (guess_efi_drive): Likewise.
8372 (guess_baremetal_drive): Likewise.
8373 (print_full_name): Likewise.
8374 (probe): Handle hints.
8375 (main): Likewise.
8376 * util/ieee1275/devicemap.c: Removed.
8377 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8378 updated.
8379 (grub_util_devname_to_ofpath): Return NULL on failure.
8380
8381 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8382 resource leak.
8383 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8384
8385 * po/POTFILES.in: Regenerated.
8386
8387 Allow purely long options
8388
8389 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8390 (SHORT_ARG_USAGE): Likewise.
8391 (grub_arg_show_help): Compare opt with help_options.
8392 (parse_option): Receive opt as argument. If makes big simplificatons.
8393 All users updated
8394
00ce2df3
VS
83952011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8396
8397 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8398 Restructure to avoid warning.
8399
e77e325f
VS
84002011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8401
8402 * util/grub-install.in: Account for possible escaped comma in device
8403 name.
8404
165099ea
VS
84052011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8406
8407 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8408 channel.
8409
ce4a999d
VS
84102011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8411
8412 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8413 allocation and zero-setting.
8414 (grub_ieee1275_get_devname): Check that alias is complete.
8415
379586ad
VS
84162011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8417
8418 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8419 unaligned segments.
8420
9197b0ad
VS
84212011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8422
8423 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8424 prefix.
8425 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8426 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8427 Add ieee1275 prefix.
8428
edddb7f9
VS
84292011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8430
8431 * docs/grub.texi (Filesystems): Update.
8432
a1a8b1b9
VS
84332011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8434
8435 Support odc, newc and bigendian cpio formats.
8436
8437 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8438 * grub-core/Makefile.core.def (newc): New module.
8439 (odc): Likewise.
8440 (cpio_be): Likewise.
8441 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8442 (MAGIC): Likewise.
8443 (MAGIC2): Likewise.
8444 (head) [MODE_ODC]: Adapt for the format.
8445 (head) [MODE_NEWC]: Likewise.
8446 (head) [!MODE_*]: Write fields of interest as arrays.
8447 (MAGIC_USTAR): Removed.
8448 (read_number) [MODE_NEWC]: Change to hex.
8449 (read_number) [!MODE_*]: Parse binary arrays.
8450 (grub_cpio_find_file): Factor out the code for better structure and
8451 always use read_number.
8452 (grub_cpio_mount): Use MAGIC and MAGIC2.
8453 (grub_cpio_dir): Exit on first hook non-0 return.
8454 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8455 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8456 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8457 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8458 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8459 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8460 * grub-core/fs/newc.c: New file.
8461 * grub-core/fs/odc.c: Likewise.
8462 * grub-core/fs/cpio_be.c: Likewise.
8463
58eba9ee
VS
84642011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8465
8466 Fix handling of tar numbers occupying the whole field.
8467
8468 * grub-core/fs/cpio.c (read_number): New function.
8469 (grub_cpio_find_file): Use read_number instead of strtoull.
8470
a54a0e12
VS
84712011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8472
8473 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8474 occupying the whole field size.
8475
a6120aca
LA
84762011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8477
8478 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8479
a93964ce
VS
84802011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8481
8482 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8483
3ea1ca46
SG
84842011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8485
8486 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8487 TARGET_IMG_LDFLAGS.
8488
b87f7ef2
VS
84892011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8492 (mountinfo_entry): Increase the field size to take escaping into
8493 account.
8494 (find_root_device_from_libzfs): Add one byte to size of strings for
8495 security.
8496
62092395
VS
84972011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8500 an assert.
8501 * util/grub-setup.c (setup): Likewise.
8502
1f0b1a77
VS
85032011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8504
8505 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8506 _LzmaDecodeA.
8507
8eba9997
VS
85082011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8509
8510 * docs/grub.texi (Internationalisation): New section.
8511
dd0c91e9
VS
85122011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * docs/grub.texi (Loopback booting): New section.
8515
85162011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
8517
8518 * util/grub-mkstandalone.in: Fix minor typo errors.
8519
198e150a
VS
85202011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8521
8522 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8523
8524 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8525 net/icmp.c and net/icmp6.c.
8526 (http): New module.
8527 (priority_queue): Likewise.
8528 * grub-core/io/bufio.c: Rewritten.
8529 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8530 TYPE_WITH_CONFIGFILE_OPTION.
8531 (legacy_commands): Add bootp and dhcp.
8532 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8533 (grub_legacy_parse): Likewise.
8534 * grub-core/lib/priority_queue.c: New file.
8535 * grub-core/net/arp.c: Add missing license header.
8536 (arp_find_entry): Removed.
8537 (arp_find_entry): Likewise.
8538 (grub_net_arp_resolve): Rename to ...
8539 (grub_net_arp_send_request): ...this.
8540 (grub_net_arp_receive): New card argument.
8541 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8542 Set router and DNS server.
8543 (grub_net_configure_by_dhcp_ack): Handle routing information.
8544 (grub_cmd_bootp): Set checksum.
8545 (grub_bootp_init): Remove net_dhcp.
8546 * grub-core/net/dns.c: New file.
8547 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8548 completion.
8549 (get_card_packet): Handle allocation.
8550 (grub_efinet_findcards): Set mtu.
8551 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8552 (get_card_packet): Handle allocation.
8553 (emucard): Set mtu.
8554 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8555 (GRUB_MOD_INIT): Set mtu.
8556 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8557 mtu.
8558 (get_card_packet): Handle allocation.
8559 (grub_ofnet_findcards): Set mtu.
8560 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8561 assert.
8562 (grub_net_recv_ethernet_packet): Handle IPv6.
8563 * grub-core/net/http.c: New file.
8564 * grub-core/net/icmp.c: Likewise.
8565 * grub-core/net/icmp6.c: Likewise.
8566 * grub-core/net/ip.c (ip6addr): New type.
8567 (ip6hdr): Likewise.
8568 (reassemble): Likewise.
8569 (cmp): New function.
8570 (reassembles): New variable.
8571 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8572 (id): New variable.
8573 (send_fragmented): New function.
8574 (grub_net_send_ip_packet): Rename to ...
8575 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8576 Handle non-UDP.
8577 (grub_net_recv_ip_packets): Rename to ...
8578 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8579 (free_rsm): New function.
8580 (free_old_fragments): Likewise.
8581 (grub_net_recv_ip4_packets): New function.
8582 (grub_net_send_ip6_packet): Likewise.
8583 (grub_net_send_ip_packet): Likewise.
8584 (grub_net_recv_ip6_packets): Likewise.
8585 (grub_net_recv_ip_packets): Likewise.
8586 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8587 (LINK_LAYER_CACHE_SIZE): New const.
8588 (link_layer_find_entry): New function.
8589 (grub_net_link_layer_add_address): Likewise.
8590 (grub_net_link_layer_resolve_check): Likewise.
8591 (grub_net_link_layer_resolve): Likewise.
8592 (grub_net_ipv6_get_slaac): Likewise.
8593 (grub_net_ipv6_get_link_local): Likewise.
8594 (grub_cmd_ipv6_autoconf): Likewise.
8595 (parse_ip): Handle one number representation.
8596 (parse_ip6): New functoion.
8597 (match_net): Handle IPv6.
8598 (grub_net_resolve_address): Handle IPv6 and DNS.
8599 (grub_net_resolve_net_address): Handle IPv6.
8600 (route_cmp): New function.
8601 (grub_net_route_address): Find best route.
8602 (grub_net_addr_to_str): Handle IPv6.
8603 (grub_net_addr_cmp): New function.
8604 (grub_net_add_addr): Register local route.
8605 (print_net_address): Handle net address.
8606 (grub_net_poll_cards): Retransmit TCP.
8607 (grub_net_poll_cards_idle_real): Likewise.
8608 (have_ahead): New function.
8609 (grub_net_seek_real): Use underlying seek.
8610 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8611 * grub-core/net/tcp.c: New file.
8612 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8613 (cmp): New function.
8614 (ack): Likewise.
8615 (tftp_receive): Handle unordered input.
8616 (destroy_pq): New function.
8617 (tftp_close): Close pq.
8618 * grub-core/net/udp.c: Put missing license header.
8619 (grub_net_udp_socket): New function.
8620 (udp_socket_register): Likewise.
8621 (grub_net_udp_close): Likewise.
8622 (grub_net_recv_udp_packet): Check checksum.
8623 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8624 * include/grub/misc.h (grub_memchr): New function.
8625 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8626 (grub_net_card_driver): Return buf in recv.
8627 (grub_net_slaac_mac_list): New struct.
8628 (grub_network_level_protocol_id): Add ipv6.
8629 (grub_net_network_level_addr): Likewise.
8630 (grub_net_network_level_net_addr): Likewise.
8631 (grub_net_app_protocol): Add seek.
8632 (grub_net_socket): Removed.
8633 (grub_net_sockets): Likewise.
8634 (grub_net_socket_register): Likewise.
8635 (grub_net_socket_unregister): Likewise.
8636 (FOR_NET_SOCKETS): Likewise.
8637 (grub_net_add_addr): Add const.
8638 (GRUB_NET_BOOTP_*): New enum.
8639 (grub_net_addr_cmp): New proto.
8640 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8641 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8642 (grub_net_hwaddr_to_str): NEw proto.
8643 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8644 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8645 (grub_dns_init): New proto.
8646 (grub_dns_fini): Likewise.
8647 (grub_net_tcp_retransmit): Likewise.
8648 (grub_net_link_layer_add_address): Likewise.
8649 (grub_net_link_layer_resolve_check): Likewise.
8650 (grub_net_link_layer_resolve): Likewise.
8651 (grub_net_dns_lookup): Likewise.
8652 (grub_net_add_dns_server): Likewise.
8653 (grub_net_remove_dns_server): Likewise.
8654 (GRUB_NET_TRIES): New const.
8655 (GRUB_NET_INTERVAL): Likewise.
8656 * include/grub/net/arp.h: Mostly rewritten.
8657 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8658 * include/grub/net/ip.h: Mostly rewritten.
8659 * include/grub/net/netbuff.h: Indent.
8660 * include/grub/net/tcp.h: New file.
8661 * include/grub/net/udp.h: Mostly rewritten.
8662 * include/grub/priority_queue.h: New file.
8663 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8664 (grub_swap_bytes64_compile_time): Likewise.
8665 (grub_cpu_to_be16_compile_time): Likewise.
8666 (grub_cpu_to_be32_compile_time): Likewise.
8667 (grub_cpu_to_be64_compile_time): Likewise.
8668 (grub_be_to_cpu64_compile_time): Likewise.
8669
215c1800
VS
86702011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8671
8672 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8673 UINT_TO_PTR with cast.
8674
c17e546c
VS
86752011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8676
8677 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8678 don't use them.
8679
ff6b18b6
VS
86802011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8683 already there.
8684
70ffcc93
VS
86852011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8688 confusing ipxe.
8689
e5f4d260
VS
86902011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8693 Add missing const attribute.
8694 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8695 Likewise.
8696 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8697 Likewise.
8698
8e54b4b7
VS
86992011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8702 misaligned access.
8703 (serpent_setkey): Likewise.
8704 (serpent_encrypt_internal): Likewise.
8705 (serpent_decrypt_internal): Likewise.
8706 (serpent_encrypt): Don't put an alignment-increasing cast.
8707 (serpent_decrypt): Likewise.
8708 (serpent_test): Likewise.
8709
813c0a2b
VS
87102011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8711
8712 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8713
f2b60fbd
VS
87142011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8717
8718 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8719 grub_addr_t casts.
8720 (PTR_TO_UINT64): Likewise.
8721 (PTR_TO_UINT32): Likewise.
8722
5ef5c511
VS
87232011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8724
8725 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8726 because of stack.
8727 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8728 limit.
8729
c476e6df
VS
87302011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8731
8732 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8733 text_width > available width a bit more gracefully.
8734
384ad7cc
VS
87352011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8736
8737 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8738 current address calculation.
8739
96f8caf8
VS
87402011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8741
8742 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8743 stack.
8744 (encode_block): Likewise.
8745
276b7a8b
VS
87462011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8747
8748 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8749 certainety.
8750
e3fd394a
VS
87512011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8752
8753 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8754 non-RS part to avoid RS messing with GDT.
8755 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8756 Increase to suit in realmode routines.
8757
87582011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8759
8760 * grub-core/kern/i386/realmode.S: Increase alignment.
8761 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8762
ee9c2e7a
VS
87632011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8764
8765 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8766 be deterministic.
8767 (syndroms): Compute 0 syndrom.
8768 (rs_recover): Use 0 syndrom.
8769
7a7f7cc9
VS
87702011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8771
8772 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8773
a14b16d1
VS
87742011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8777 brackets.
8778
9f59e9fc
VS
87792011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8780
ca1b552c
VS
8781 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8782 account.
8783 (get_top_pad): Likewise.
8784 (get_right_pad): Likewise.
8785 (get_bottom_pad): Likewise.
8786
87872011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8788
8789 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 8790
e739d698
VS
87912011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8794 attribute as the structure isn't guaranteed to be properly aligned.
8795 (grub_efi_pci_device_path): Likewise.
8796 (grub_efi_pccard_device_path): Likewise.
8797 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8798 specify the size of `memory_type'.
8799 (grub_efi_vendor_device_path): Likewise.
8800 (grub_efi_controller_device_path): Likewise.
8801 (grub_efi_acpi_device_path): Likewise.
8802 (grub_efi_expanded_acpi_device_path): Likewise.
8803 (grub_efi_atapi_device_path): Likewise.
8804 (grub_efi_scsi_device_path): Likewise.
8805 (grub_efi_fibre_channel_device_path): Likewise.
8806 (grub_efi_1394_device_path): Likewise.
8807 (grub_efi_usb_device_path): Likewise.
8808 (grub_efi_usb_class_device_path): Likewise.
8809 (grub_efi_i2o_device_path): Likewise.
8810 (grub_efi_mac_address_device_path): Likewise.
8811 (grub_efi_ipv4_device_path): Likewise.
8812 (grub_efi_ipv6_device_path): Likewise.
8813 (grub_efi_infiniband_device_path): Likewise.
8814 (grub_efi_uart_device_path): Likewise.
8815 (grub_efi_vendor_messaging_device_path): Likewise.
8816 (grub_efi_hard_drive_device_path): Likewise.
8817 (grub_efi_cdrom_device_path): Likewise.
8818 (grub_efi_vendor_media_device_path): Likewise.
8819 (grub_efi_file_path_device_path): Likewise.
8820 (grub_efi_protocol_device_path): Likewise.
8821 (grub_efi_piwg_device_path): Likewise.
8822 (grub_efi_bios_device_path): Likewise.
8823
cb8f88ea
VS
88242011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8825
8826 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8827 (grub_ucs4_to_utf8_alloc): Likewise.
8828 (grub_ucs4_to_utf8): Likewise.
8829 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8830 (grub_ucs4_to_utf8_alloc): Likewise.
8831
309e5352
VS
88322011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8833
8834 AFFS never uses unicode.
8835
8836 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8837 (grub_latin1_to_utf8): New inline function.
8838 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8839
e7987e1b
VS
88402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8841
8842 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8843 overflow.
8844
efc2616e
VS
88452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8846
8847 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8848 (grub_squash_dirent_header): Likewise.
8849 (read_chunk): Don't double swap.
8850 (grub_squash_iterate_dir): Fix swap sizes.
8851
3c349f5a
VS
88522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8853
8854 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8855
b453412d
VS
88562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8857
8858 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8859 (grub_hfs_iterate_dir): Likewise.
8860
12e9d4d1
VS
88612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8862
8863 Fix video on platforms where unaligned access is forbidden.
8864 Make several optimisations while on it.
8865
8866 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8867 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8868 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8869 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8870 Disable.
8871 (grub_video_fbblit_replace_16bit_1bit):
8872 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8873 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8874 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8875 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8876 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8877 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8878 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8879 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8880 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8881 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8882 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8883 (grub_video_fbblit_replace_index_RGB888): Likewise.
8884 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8885 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8886 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8887 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8888 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8889 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8890 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8891 Disable.
8892 (grub_video_fbblit_blend_XXX565_1bit):
8893 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8894 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8895 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8896 void *.
8897 * grub-core/video/fb/video_fb.c (common_blitter)
8898 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8899 (grub_video_fb_create_render_target_from_pointer)
8900 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8901 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8902 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8903 definition.
8904 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8905
ace96609
VS
89062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8907
8908 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8909 HH22 and HM10 relocations.
8910
fd261d73
VS
89112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8912
8913 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8914
e59b7857
VS
89152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8918 allocation succeeded.
8919
9b4baaa4
VS
89202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8921
8922 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8923 argument a u8 pointer. All users updated.
8924 Handle unaligned buffers.
8925
dc713193
VS
89262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8927
8928 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8929 add_part to workaround compiler bug.
8930
30dd48c2
VS
89312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8932
8933 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8934
0c6087a8
VS
89352011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8936
8937 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8938 Reserve alignment invariants.
8939 (grub_multiboot_load): Likewise.
8940 (retrieve_video_parameters): Likewise.
8941 (grub_multiboot_make_mbi): Likewise.
8942
c2e77777
VS
89432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8946 incorrect pointer.
8947
b70b6d11
VS
89482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8949
8950 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8951 (grub_pata_pio_write): Likewise.
8952
02a2bf83
VS
89532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 Add noreturn attributes and remove unreachable code.
8956
8957 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8958 code.
8959 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8960 code. Mark as noreturn.
8961 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8962 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8963 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8964 unreachable code.
8965 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8966 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8967 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8968 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8969 * include/grub/kernel.h (grub_main): Mark as noreturn.
8970 * include/grub/reader.h (grub_rescue_run): Likewise.
8971
2019d09e
VS
89722011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8973
8974 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8975 redundant declaration.
8976
d1c501ee
VS
89772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8980 redundant declaration.
8981 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8982
61664420
VS
89832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8984
8985 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8986 to ensure alignment.
8987 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8988 alignment. Ensure tmp alignment.
8989 (grub_cmd_hdparm): Ensure buf alignment.
8990 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8991 to ensure alignment.
8992 (grub_ata_dumpinfo): Ensure text alignment.
8993 (grub_atapi_identify): Preserve alignment invariant.
8994 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8995
0d51ee20
VS
89962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8997
8998 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8999 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
9000 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
9001 * include/grub/misc.h (grub_reboot)
9002 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
9003 (grub_halt) [__mips__]: Likewise.
9004
753ef8c1
VS
90052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9006
9007 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
9008 Remove redundant declaration.
9009 (grub_mmap_get_post64): Likewise.
9010 (grub_mmap_get_upper): Likewise.
9011 (grub_mmap_get_lower): Likewise.
9012
85c85365
VS
90132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9014
9015 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
9016 uint32_t * to ensure alignment.
9017 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
9018
a23f2cc4
VS
90192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9020
93018f64
VS
9021 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
9022 uint16_t * to ensure alignment.
9023 (sun_pc_partition_map_iterate): Make `block' a union to ensure
9024 alignment.
9025
90262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
9029 to ensure alignment.
9030 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
9031
58acccd6
VS
90322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * grub-core/fs/ntfs.c (u16at): Make into inline function.
9035 Handle unaligned pointers.
9036 (u32at): Likewise.
9037 (u64at): Likewise.
9038 (fixup): Use byte access instead of v16at.
9039 (find_attr): Fix imporper usage of v32at.
9040 (read_data): Likewise.
9041 (list_file): Handle byte-swapping and unaligned strings.
9042 (grub_ntfs_label): Likewise.
9043
9b05cad7
VS
90442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9045
9046 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
9047 as it's not necessarily aligned.
9048
b3950b84
VS
90492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9050
9051 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
9052 redundant declaration.
9053 (grub_serial_init): Likewise.
9054 (grub_terminfo_init): Likewise.
9055
fcd232b7
VS
90562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9057
9058 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
9059 function.
9060 (ZAP_HASH_IDX): Likewise.
9061 (ZAP_LEAF_HASH_SHIFT): Likewise.
9062 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
9063 (LEAF_HASH): Likewise.
9064 (ZAP_LEAF_NUMCHUNKS): Likewise.
9065 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
9066 alignment invariants. Return pointer. All users updated.
9067 (ZAP_LEAF_ENTRY): Make into inline function.
9068 (NBBY): Removed.
9069 (xor): LIkewise.
9070 (xor_out): Use grub_crypto_xor.
9071 (dnode_get_path): Use grub_get_unaligned.
9072 (nvlist_find_value): Likewise.
9073 (grub_zfs_nvlist_lookup_uint64): Likewise.
9074 (grub_zfs_nvlist_lookup_string): Likewise.
9075 (get_nvlist_size): Likewise.
9076 (grub_zfs_open): Likewise.
9077 (fill_fs_info): Likewise.
9078 (grub_zfs_dir): Likewise.
9079 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
9080 alignment invariants.
9081 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
9082 necessarily aligned.
9083
f138623a
VS
90842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9085
9086 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
9087
564840dc
VS
90882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
9091 arithmetic to conserve alignment invariants.
9092
9b40df20
VS
90932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
9096 redundant declaration.
9097 (grub_efiemu_mm_obtain_request): Likewise.
9098 (grub_efiemu_prepare): Likewise.
9099
d1c930f9
VS
91002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9101
9102 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
9103 to match types.
9104
4c5f3056
VS
91052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9106
9107 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
9108 case of aunaligned recptr.
9109 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
9110 alignment.
9111 (grub_hfsplus_btree_search): Handle unaligned index.
9112
728cba91
VS
91132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9114
9115 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
9116 to get freetag and skip.
9117
eb561f31
VS
91182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
9121 array.
9122 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
9123 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
9124
20993fbb
VS
91252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9126
9127 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
9128 name for checksum and fix allocation algorithm.
9129
1f313b94
VS
91302011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9131
9132 * include/grub/types.h (grub_properly_aligned_t): New type.
9133 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
9134 (grub_get_unaligned16): Add explicit casts.
9135 (grub_get_unaligned32): Likewise.
9136 (grub_get_unaligned64): Likewise.
9137 (grub_set_unaligned16): New function.
9138 (grub_set_unaligned32): Likewise.
9139
47ae27ec
VS
91402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9141
9142 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9143
78c2cd1c
VS
91442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9145
9146 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
9147 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
9148 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
9149
53072f9b
VS
91502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9151
9152 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
9153 conditionals.
9154
055dc239
VS
91552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9156
9157 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
9158 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
9159
496bd074
VS
91602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9161
9162 Unify and improve RAID and crypto xor.
9163
9164 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
9165 changed to grub_crypto_xor
9166 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
9167 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
9168 Use bigger types when possible.
9169
ef6e4335
VS
91702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9171
9172 * grub-core/disk/raid.c (scan_devices): Fix condition.
9173
5d048bf2
VS
91742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9175
9176 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
9177 Make name a const ptr.
9178
ee533335
VS
91792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9180
9181 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
9182 first argument a const pointer.
9183 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
9184 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
9185 proto.
9186 (grub_children_iterate): Likewise.
9187 (grub_machine_mmap_iterate): Remove redundant declaration.
9188
cc8f3668
VS
91892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9190
9191 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
9192 (grub_cmd_acpi) [!x86]: Disable EBDA.
9193
c5fc563a
VS
91942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 Enable UTF8 in gnulib regexp.
9197
9198 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
9199 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
9200 (isupper): Use grub_isupper.
9201 (isascii): New inline function.
9202 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
9203 * grub-core/lib/posix_wrap/wctype.h: Likewise.
9204 * grub-core/normal/charset.c (grub_utf8_process): New function.
9205 (grub_utf8_to_utf16): Use grub_utf8_process.
9206 (grub_encode_utf8_character): New function.
9207 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
9208 * include/grub/charset.h (grub_utf8_process): New declaration.
9209 (grub_encode_utf8_character): Likewise.
9210 * include/grub/misc.h (grub_islower): New inline function.
9211 (grub_isupper): Likewise.
9212 (grub_strchrsub): Moved down to fix the definitions.
9213
0af2346f
VS
92142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
9217 specification.
9218
74dbd244
VS
92192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9220
9221 * include/grub/loader.h (grub_loader_register_preboot_hook):
9222 Use struct preboot * and not void * for handle. All users updated.
9223 (grub_loader_unregister_preboot_hook): Likewise.
9224
1bc8f60d
VS
92252011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
9226
9227 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
9228 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
9229 UTF-16-BE. All users updated.
9230 (grub_hfsplus_cmp_catkey): Fix unicode handling.
9231 (grub_hfsplus_iterate_dir): Likewise.
9232 (grub_hfsplus_label): Likewise.
9233
48d6e456
VS
92342011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
9235
9236 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
9237
bf3a3857
VS
92382011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
9239
9240 Add missing const qualifiers.
9241
9242 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
9243 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
9244 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
9245 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
9246 (grub_lvm_check_flag): Likewise.
9247 * grub-core/efiemu/i386/coredetect.c
9248 (grub_efiemu_get_default_core_name): Likewise
9249 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9250 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
9251 * grub-core/fs/ntfs.c (fixup): Likewise.
9252 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
9253 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
9254 (fzap_lookup): Likewise.
9255 (zap_lookup): Likewise.
9256 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
9257 * grub-core/lib/legacy_parse.c (check_option): Likewise.
9258 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
9259 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
9260 (grub_freebsd_add_meta_module): Likewise.
9261 (grub_cmd_freebsd_module): Likewise.
9262 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
9263 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
9264 (grub_xnu_writetree_get_size): Likewise.
9265 (grub_xnu_writetree_toheap_real): Likewise.
9266 (grub_xnu_find_key): Likewise.
9267 (grub_xnu_create_key): Likewise.
9268 (grub_xnu_create_value): Likewise.
9269 (grub_xnu_register_memory): Likewise.
9270 (grub_xnu_check_os_bundle_required): Likewise.
9271 (grub_xnu_scan_dir_for_kexts): Likewise.
9272 (grub_xnu_load_kext_from_dir): Likewise.
9273 * grub-core/normal/color.c (color_list): Likewise.
9274 * grub-core/normal/completion.c (current_word): Likewise.
9275 * grub-core/normal/menu_entry.c (insert_string): Likewise.
9276 * grub-core/term/serial.c (grub_serial_find): Likewise.
9277 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
9278 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
9279 Likewise.
9280 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
9281 (grub_freebsd_add_meta_module): Likewise.
9282 * include/grub/lib/arg.h (grub_arg_option): Likewise.
9283 * include/grub/net.h (grub_net_card_driver): Likewise.
9284 (grub_net_card): Likewise.
9285 (grub_net_app_protocol): Likewise.
9286 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
9287 * include/grub/serial.h (grub_serial_find): Likewise.
9288 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
9289 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
9290 (grub_xnu_create_value): Likewise.
9291 (grub_xnu_find_key): Likewise.
9292 (grub_xnu_scan_dir_for_kexts): Likewise.
9293 (grub_xnu_load_kext_from_dir): Likewise.
9294
9295 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
9296 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
9297 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
9298 Moved from here ...
9299 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
9300
112b4837
CW
93012011-11-28 Colin Watson <cjwatson@ubuntu.com>
9302
9303 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
9304
49e891ac
VS
93052011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
9306
9307 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
9308 (read_device): Fix size calculation.
9309
fd258e5c
RM
93102011-11-25 Robert Millan <rmh@gnu.org>
9311
9312 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
9313 (find_root_device_from_libzfs): Add zpool output parser to be used
9314 as fallback when libzfs isn't available.
9315
78845dc2
SG
93162011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
9317
9318 * po/Makefile.in.in: Add missing escape-continuation.
9319
adac5211
VS
93202011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9321
9322 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9323
10b64f1c
VS
93242011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9325
9326 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9327
bb416954
VS
93282011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9331
bdfe9eeb
VS
93322011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9335
581ffa8a
VS
93362011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9337
9338 * grub-core/lib/adler32.c: Add missing license specification.
9339 * grub-core/lib/crc64.c: Likewise.
9340 * grub-core/loader/i386/pc/plan9.c: Likewise.
9341 * grub-core/partmap/plan.c: Likewise.
9342
2536cf64
LK
93432011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9344
9345 Add facility to debug GRUB with gdb under qemu.
9346
9347 * grub-core/gdb_grub.in: New file.
9348 * grub-core/gmodule.pl.in: Likewise.
9349 * grub-core/Makefile.core.def (gmodule.pl): New script.
9350 (gdb_grub): Likewise.
9351
bc108a4a
VS
93522011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9353
9354 * util/grub-mount.c (argp_parser): Accept relative pathes.
9355 * util/grub-fstest.c (argp_parser): Likewise.
9356
111c1778
VS
93572011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9358
9359 Plan9 support.
9360
9361 * Makefile.util.def (libgrubmods): Add
9362 grub-core/partmap/plan.c.
9363 * docs/grub.texi: Notice Plan9 support.
9364 * grub-core/Makefile.core.def (plan9): New module.
9365 (part_plan): Likewise.
9366 * grub-core/loader/i386/pc/plan9.c: New file.
9367 * grub-core/partmap/plan.c: Likewise.
9368 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9369 define.
9370 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9371 * include/grub/mm.h (grub_extend_alloc): New inline function.
9372
c30be3b6
VS
93732011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9374
9375 Make Reed-Solomon faster by using power of generator representation of
9376 GF(256)*.
9377
9378 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9379 (gf_double_t): Likewise.
9380 (gf_invert): Removed.
9381 (gf_powx): New array.
9382 (gf_powx_inv): Likewise.
9383 (scratch): Move higher.
9384 (gf_reduce): Removed.
9385 (gf_mul): Use powx.
9386 (gf_invert): Likewise.
9387 (init_inverts): Replaced with ...
9388 (init_powx): ...this. All users updated.
9389 (pol_evaluate): Replace multiplications with additions.
9390 (rs_encode): Likewise.
9391 (gauss_eliminate): Call gf_invert.
9392 (grub_reed_solomon_add_redundancy): Call init_powx.
9393 (grub_reed_solomon_recover): Call init_powx unconditionally.
9394
fa5aeffc
VS
93952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9396
9397 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9398
a346b81c
VS
93992011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9400
9401 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9402 disk->partiton for safety.
9403
d89ee414
VS
94042011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9405
9406 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9407 Fix a memory leak.
9408 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9409
91ee7b6d
VS
94102011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9411
9412 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9413
91e5a33d
VS
94142011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9415
9416 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9417
9edd7be2
VS
94182011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 Fix spaces handling in proc/self/mountinfo.
9421
9422 * util/getroot.c (unescape): New function.
9423 (grub_find_root_device_from_mountinfo): Use unescape.
9424
ba102053
VS
94252011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9426
9427 Support ZFS embedding.
9428
9429 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9430 (grub_zfs_fs): Register grub_zfs_embed.
9431
aa94b870
VS
94322011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9433
9434 Fix MIPS compilation.
9435
9436 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9437 * include/grub/offsets.h: Rename decompressor fields from
9438 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9439 * util/grub-mkimage.c (image_targets): Use new names.
9440
5fbdac14
VS
94412011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9442
9443 Defer multiboot device parsing until we're in compressed part.
9444
9445 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9446 bsd_part. setdevice has fallen into disuse.
9447 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9448 (bsd_part): Likewise.
9449 (boot_dev): New variable.
9450 (multiboot_trampoline): Don't parse multiboot device.
9451 Pass multiboot device in %edx.
9452 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9453 grub_boot_device.
9454 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9455 Likewise.
9456 * grub-core/kern/i386/pc/startup.S: Save edx.
9457 (grub_boot_drive): Removed.
9458 (grub_install_dos_part): Likewise.
9459 (grub_install_bsd_part): Likewise.
9460 (grub_boot_device): New variable.
9461 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9462 (grub_install_bsd_part): Likewise.
9463 (grub_boot_drive): Likewise.
9464 (grub_boot_device): New variable.
9465 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9466 Removed.
9467 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9468 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9469 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9470 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9471 * util/grub-install.in: Remove redundant condition.
9472
691cbb58
VS
94732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9474
9475 Fix bug introduced by previous commit.
9476
9477 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9478
60240b8b
VS
94792011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 Use decompressors framework on i386-pc. It increases core size
9482 by 46 bytes but improves compatibility and maintainability.
9483
9484 * grub-core/Makefile.core.def (lzma_decompress): New image.
9485 (kernel): Add i386_pc_ldflags.
9486 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9487 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9488 to real_to_prot, prot_to_real and device info.
9489 * include/grub/offsets.h: Renamed decompressor offsets.
9490 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9491 (image_target_desc): Remove raw_size and rename decompressor fields.
9492 (compress_kernel): Handle lzma.
9493 (generate_image): Handle decompressors on i386-pc.
9494
e9d3421c
VS
94952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9496
9497 * configure.ac: Add -fno-asynchronous-unwind-tables.
9498
2b23074a
VS
94992011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 Move assembly code to C by using intwrap. It increases core size
9502 by 88 bytes but improves compatibility and maintainability.
9503
9504 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9505 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9506 ... here. Translated to C.
9507 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9508 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9509 ... here. Translated to C.
9510 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9511 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9512 ... here. Translated to C.
9513 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9514 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9515 ... here. Translated to C.
9516 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9517 * grub-core/term/i386/pc/console.c (grub_console_cls):
9518 ... here. Translated to C.
9519 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9520 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9521 ... here. Translated to C.
9522 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9523 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9524 Translated to C.
9525 * grub-core/term/i386/pc/console.c (int10_9): New function.
9526 (grub_console_putchar): Likewise.
9527 * include/grub/i386/pc/console.h: Removed the not anymore shared
9528 functions.
9529
678f4b67
VS
95302011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9531
9532 Move grub_chainloader_real_boot out of the kernel.
9533
9534 * grub-core/Makefile.am: Remove machine/loader.h.
9535 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9536 Removed.
9537 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9538 variable.
9539 (grub_relocator16_keep_a20_enabled): Likewise.
9540 (grub_relocator16_boot): Fill new variables.
9541 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9542 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9543 relocator.
9544 (grub_chainloader_unload): Likewise.
9545 (grub_chainloader_cmd): Likewise.
9546 * include/grub/i386/pc/loader.h: Removed.
9547 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9548 and esi. All initialisers updated.
9549
4626edf6
VS
95502011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
95512011-11-12 Colin Watson <cjwatson@ubuntu.com>
9552
9553 * Makefile.util.def (grub-mount): New util.
9554 * .bzrignore: Add grub-mount.
9555 * configure.ac: Check for fuse and enable grub-mount if available.
9556 * docs/man/grub-mount.h2m: New file.
9557 * util/grub-mount.c: Likewise.
9558
10f0117b
VS
95592011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 * grub-core/commands/efi/fixvideo.c: Gettextize.
9562 * grub-core/commands/hashsum.c: Likewise.
9563 * grub-core/commands/i386/cmostest.c: Likewise.
9564 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9565 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9566 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9567 * grub-core/commands/lsmmap.c: Likewise.
9568 * grub-core/commands/menuentry.c: Likewise.
9569 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9570 * grub-core/commands/setpci.c: Likewise.
9571 * grub-core/loader/i386/bsd.c: Likewise.
9572 * grub-core/loader/i386/linux.c: Likewise.
9573 * util/getroot.c: Likewise.
9574 * util/grub-editenv.c: Likewise.
9575 * util/grub-fstest.c: Likewise.
9576 * util/grub-mkfont.c: Likewise.
9577 * util/grub-mkimage.c: Likewise.
9578 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9579 * util/grub-pe2elf.c: Likewise.
9580 * util/grub-probe.c: Likewise.
9581 * util/grub-setup.c: Likewise.
9582 * util/ieee1275/ofpath.c: Likewise.
9583 * util/misc.c: Likewise.
9584 * util/raid.c: Likewise.
9585
566f779b
RM
95862011-11-11 Robert Millan <rmh@gnu.org>
9587
9588 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9589 __attribute__((unused)) from `os_dev', which *is* being used.
9590
b50787de
VS
95912011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9592
9593 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9594 forgotten define.
9595 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9596 GRUB_IA64_DL_GOT_ALIGN.
9597 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9598 GRUB_IA64_DL_TRAMP_ALIGN.
9599
119d11c8
VS
96002011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9601
9602 Replace grub_fatal with normal errors in i386 linux loader.
9603
9604 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9605 (allocate_pages): Check find_efi_mmap_size return value.
9606 (grub_e820_add_region): Return error.
9607 (grub_linux_boot): Check mmap return value.
9608
6e0632e2
VS
96092011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * grub-core/commands/acpihalt.c: Gettextized.
9612 * grub-core/commands/cacheinfo.c: Likewise.
9613 * grub-core/commands/cmp.c: Likewise.
9614 * grub-core/commands/efi/loadbios.c: Likewise.
9615 * grub-core/commands/gptsync.c: Likewise.
9616 * grub-core/commands/ieee1275/suspend.c: Likewise.
9617 * grub-core/commands/legacycfg.c: Likewise.
9618 * grub-core/commands/memrw.c: Likewise.
9619 * grub-core/commands/minicmd.c: Likewise.
9620 * grub-core/commands/parttool.c: Likewise.
9621 * grub-core/commands/time.c: Likewise.
9622 * grub-core/commands/videoinfo.c: Likewise.
9623 * grub-core/disk/geli.c: Likewise.
9624 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9625 * grub-core/disk/luks.c: Likewise.
9626 * grub-core/disk/lvm.c: Likewise.
9627 * grub-core/font/font_cmd.c: Likewise.
9628 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9629 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9630 * grub-core/gfxmenu/view.c: Likewise.
9631 * grub-core/kern/emu/hostdisk.c: Likewise.
9632 * grub-core/kern/emu/main.c: Likewise.
9633 * grub-core/kern/emu/misc.c: Likewise.
9634 * grub-core/kern/emu/mm.c: Likewise.
9635 * grub-core/kern/mips/arc/init.c: Likewise.
9636 * grub-core/kern/mips/loongson/init.c: Likewise.
9637 * grub-core/kern/partition.c: Likewise.
9638 * grub-core/lib/i386/halt.c: Likewise.
9639 * grub-core/lib/mips/arc/reboot.c: Likewise.
9640 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9641 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9642 * grub-core/loader/i386/xnu.c: Likewise.
9643 * grub-core/loader/multiboot.c: Likewise.
9644 * grub-core/net/bootp.c: Likewise.
9645 * grub-core/net/net.c: Likewise.
9646 * grub-core/normal/term.c: Likewise.
9647 * grub-core/partmap/bsdlabel.c: Likewise.
9648 * grub-core/parttool/msdospart.c: Likewise.
9649 * grub-core/term/gfxterm.c: Likewise.
9650 * grub-core/term/terminfo.c: Likewise.
9651 * grub-core/video/i386/pc/vbe.c: Likewise.
9652 * util/grub-menulst2cfg.c: Likewise.
9653 * util/grub-mkdevicemap.c: Likewise.
9654 * util/grub-mklayout.c: Likewise.
9655 * util/grub-mkrelpath.c: Likewise.
9656 * util/grub-script-check.c: Likewise.
9657 * util/ieee1275/grub-ofpathname.c: Likewise.
9658 * util/resolve.c: Likewise.
9659
073aa7a9
VS
96602011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 Support %1$d syntax.
9663
9664 * tests/printf_unit_test.c: New file.
9665 * Makefile.util.def (printf_test): New test.
9666 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9667
c76b5417
VS
96682011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9669
9670 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9671 fix.
9672
df067ad1
VS
96732011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9674
9675 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9676 dprintf.
9677 * grub-core/font/font.c (grub_font_load): Likewise.
9678
5b289bc5
VS
96792011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9680
9681 * util/grub-macho2img.c: Add comment concerning gettext.
9682 * grub-core/lib/legacy_parse.c: Likewise.
9683
c1860f87
VS
96842011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9685
9686 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9687 (grub_xvasprintf): Likewise.
9688
d35d0d37
VS
96892011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9690
9691 Add const keyword to grub_env_get and gettextize week days.
9692
9693 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9694 (grub_read_hook_datetime): Return const char *.
9695 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9696 updated.
9697 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9698 Mark for gettext.
9699 (grub_get_weekday_name): Return const char *. Call gettext.
9700 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9701 char * and len as the argument. All users updated.
9702 (grub_script_argv_split_append): Receive const char *.
9703 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9704 * include/grub/env.h (grub_env_get): Likewise.
9705 (grub_env_read_hook_t): Return const char *.
9706 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9707 (grub_script_argv_split_append): Likewise.
9708
9aed8a71
VS
97092011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9712
067fdf00
VS
97132011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9714
9715 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9716 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9717
a8bd9d39
VS
97182011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9719
9720 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9721 Fix prototype.
9722
f7ce5baf
VS
97232011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9724
9725 Fix mips compilation.
9726
9727 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9728 normal decoder.
9729 (hashes): Use in embed decoder as well (for sizes).
9730 (dec_stream_header): Fix embed decompressor logic.
9731 (dec_stream_footer): Likewise.
9732
9bb182f3
VS
97332011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9734
9735 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9736 an error and not a fatal on unrecognised relocation types.
9737
63a9e6f6
VS
97382011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9739
9740 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9741 Issue error rather than printf on unknown arguments.
9742
4c458569
VS
97432011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9744
9745 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9746 Make buf a const.
9747
e2d22baf
VS
97482011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9749
9750 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9751 Fix module name.
9752
53dc8590
VS
97532011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9754
9755 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9756 leftover debug printf.
9757
6c189294
VS
97582011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9759
9760 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9761
f7688369
VS
97622011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9763
9764 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9765 A stylistic fix.
9766
11a775a3
VS
97672011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9770
33f784e8
SL
97712011-11-10 Shea Levy <slevy@tieronedesign.com>
9772
9773 Allow all modules to perform serial IO
9774
9775 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9776 * include/grub/serial.h (grub_serial_port_configure): New inline
9777 function.
9778 (grub_serial_port_fetch): Likewise.
9779 (grub_serial_port_put): Likewise.
9780 (grub_serial_port_fini): Likewise.
9781 (grub_serial_find): New proto.
9782
f6276525
VS
97832011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9784
9785 Put symlink at the end of the node and fix a potential
9786 memory corruption.
9787
9788 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9789 Make symlink into an array.
9790 (set_rockridge): Set have_symlink and alloc_dirents.
9791 (grub_iso9660_read_symlink): Use new layout.
9792 (grub_iso9660_iterate_dir): Fix memory corruption.
9793 Use new layout.
9794 (grub_iso9660_dir): Set have_symlink.
9795 (grub_iso9660_open): Likewise.
9796
c3591189
VS
97972011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9798
9799 Remove local keyword.
9800
9801 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9802 (version_test_gt): Likewise.
9803 (version_find_latest): Likewise.
9804 (gettext_printf): Likewise.
9805 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9806
cb544caa
VS
98072011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9810
45bd824d
VS
98112011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 Fix ZFS memory and resource leaks.
9814
9815 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9816 All users updated.
9817 Free type on exit.
9818 (fill_vdev_info): New parameter inserted. All users updated.
9819 (check_pool_label): Likewise.
9820 (scan_disk): Likewise.
9821 (scan_devices): Close non-inserted disks.
9822 (fzap_iterate): Free l.
9823 (unmount_device): Free children descripto memory.
9824
ad9a2f44
VS
98252011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9826
9827 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9828 argument (access out of bounds).
9829
6b68db81
VS
98302011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9831
9832 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9833 >= 6 drives.
9834
28840fda
VS
98352011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9836
9837 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9838 Fix declaration.
9839
8a5a3a5b
VS
98402011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9841
9842 Fix several memory leaks.
9843
9844 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9845 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9846 (grub_cpio_dir): Likewise.
9847 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9848 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9849 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9850 (grub_romfs_label): Likewise.
9851 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9852 (squash_unmount): New function.
9853 (grub_squash_dir): Fix memory leak.
9854 (grub_squash_open): Likewise.
9855 (grub_squash_read): Likewise.
9856 (grub_squash_mtime): Likewise.
9857 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9858 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9859 * util/grub-fstest.c (fstest): Likewise.
9860
57b01250
VS
98612011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9862
9863 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9864 avoid accessing beyond the array.
9865
19e81ba7
VS
98662011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9867
9868 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9869
52b656c0
VS
98702011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9871
9872 Several AFFS fixes.
9873
9874 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9875 (GRUB_AFFS_FLAG_FFS): Removed.
9876 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9877 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9878 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9879 (grub_fshelp_node): Make block 32-bit.
9880 Add block_cache and last_block_cache.
9881 (grub_affs_read_block): Fill and use block cache.
9882 (grub_affs_read_file): Removed.
9883 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9884 boot block.
9885 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9886 safety.
9887 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9888 space.
9889 (grub_affs_close): Free block cache.
9890 (grub_affs_read): Use grub_fshelp_read_file directly.
9891
438a746a
VS
98922011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9893
9894 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9895 with no error set.
9896
49a45021
VS
98972011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9898
9899 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9900 used variable.
9901 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9902 Likewise.
9903
3ae17eb8
VS
99042011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9905
9906 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9907
9908 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9909 byteswap when needed.
9910
27610c38
VS
99112011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 Fix FreeBSD compilation.
9914
9915 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9916 to avoid circular dependency.
9917 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9918 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9919 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9920
4a19b601
VS
99212011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 Fix ZFS crypto error types.
9924
9925 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9926 (grub_gcm_decrypt): Likewise.
9927 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9928 from PBKDF2.
9929
958ee221
VS
99302011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9931
9932 Illumos support.
9933
9934 * Makefile.util.def (10_illumos): New script.
9935 * configure.ac: Set COND_HOST_ILLUMOS.
9936 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9937 Support Illumos calls.
9938 (find_partition_start) [__sun__]: Likewise.
9939 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9940 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9941 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9942 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9943 device.
9944 * util/grub-probe.c (probe) [__sun__]: Do character check.
9945 * util/grub.d/10_illumos.in: New file.
9946
cac14fb6
VS
99472011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9948
9949 Support escaped commas in hostdisk.
9950
9951 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9952 (find_grub_drive): Use unescape_cmp.
9953 (make_device_name): Escape commas.
9954
78e08dc3
VS
99552011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9958
9f421dd1
VS
99592011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9960
9961 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9962 variable.
9963
ed64e9e2
VS
99642011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 Support trampoline jumps on powerpc.
9967
9968 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9969 __ia64__ path.
9970 (grub_dl_load_segments): Set mod->sz.
9971 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9972 segments.
9973 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9974 (jump): Likewise.
9975 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9976 function.
9977 (trampoline): New struct.
9978 (trampoline_template): New const.
9979 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9980 * include/grub/dl.h (grub_dl): Add sz element.
9981 [__powerpc__]: Follow __ia64__.
9982 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9983 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9984 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9985 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9986
3084ede4
VS
99872011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9988
9989 ZFS crypto support.
9990
9991 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9992 * grub-core/Makefile.core.def (zfscrypt): New module.
9993 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9994 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9995 it. All users updated.
9996 (grub_zfs_decrypt): New var.
9997 (grub_zfs_load_key): Likewise.
9998 (zio_checksum_functions): Add SHA256+MAC.
9999 (zio_checksum_verify): Handle incomplete comparison due to MAC.
10000 (zio_read): Handle encrypted blocks.
10001 (zap_verify): Remove incorrect check.
10002 (fzap_iterate): Handle non-standard fzap.
10003 (zap_iterate): Likewise.
10004 (zap_iterate_u64): New function.
10005 (dnode_get_fullpath): Load keys.
10006 * grub-core/fs/zfs/zfscrypt.c: New file.
10007 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
10008 (grub_crypto_ecb_encrypt): Make input const.
10009 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
10010 (grub_crypto_ecb_encrypt): Make input const.
10011 (GRUB_CIPHER_AES): New macro.
10012 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
10013 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
10014 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
10015 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
10016 prefix. All users updated.
10017 (grub_zfs_add_key): New proto.
10018 (grub_zfs_decrypt): Likewise.
10019 (grub_zfs_load_key): Likewise.
10020 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
10021 * util/grub-fstest.c (options): Add -K option.
10022 (argp_parser): Likewise.
10023
b632b404
VS
100242011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10025
10026 Support zle compression on ZFS.
10027
10028 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
10029 (decomp_table): Add zle.
10030 * include/grub/zfs/zio.h (zio_compress): Add zle.
10031
c7ba4f69
VS
100322011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10033
10034 Support BtrFS embedding.
10035
10036 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
10037 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
10038 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
10039 * util/grub-setup.c (setup): Use fs embedding if available.
10040 Add additional sanity check.
10041
455377d9
VS
100422011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10043
10044 * util/grub-install.in: Fix condition for config_opt.
10045
c2fd16ca
VS
100462011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10047
10048 Support third redundancy strip on raidz3.
10049
10050 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
10051 Return error on singularity. All users updated.
10052 (read_device): Don't stop on 3rd failure on raidz3.
10053
8622923b
VS
100542011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10055
10056 Support case-insensitive ZFS subvolumes.
10057
10058 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
10059 All users updated.
10060 (zap_hash): Likewise.
10061 (name_cmp): New function.
10062 (zap_leaf_array_equal): New parameter case_insensitive.
10063 All users updated.
10064 (zap_leaf_lookup): Likewise.
10065 (fzap_lookup): Likewise.
10066 (zap_lookup): Likewise.
10067 (dnode_get_path): New parameter case_insensitive. Retrieve case
10068 sensitiviness of a volume. All users updated.
10069 (dnode_get_fullpath): New parameter case_insensitive.
10070 All users updated.
10071 (grub_zfs_dir): Set info.case_insensitiveness.
10072
95f2e860
VS
100732011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10074
10075 Support second redundancy strip on raidz(2,3).
10076
10077 * grub-core/fs/zfs/zfs.c (powx): New array.
10078 (powx_inv): Likewise.
10079 (poly): New const.
10080 (xor_out): New function.
10081 (gf_mul): Likewise.
10082 (recovery): Likewise.
10083 (read_device): Use second redundancy strip.
10084
11ee4389
VS
100852011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 Use a power of generator representation of GF(256) multiplication group
10088 to save space time and complexity.
10089
10090 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
10091 (raid6_table2): Likewise.
10092 (powx): New array.
10093 (powx_inv): Likewise.
10094 (poly): New const.
10095 (grub_raid_block_mul): Replace with ...
10096 (grub_raid_block_mulx): ...this.
10097 (grub_raid6_init_table): Rewritten.
10098 (grub_raid6_recover): Use power of generator representation.
10099
09e2763f
VS
101002011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
10103 for the right device.
10104
8bec9a28
VS
101052011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10106
10107 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
10108 expected by grub-mkimage and it's more clear since there is no implicit
10109 padding.
10110
dbd3a32e
VS
101112011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10112
10113 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
10114 disk.
10115 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10116
182c872a
PMH
101172011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
10118
10119 * util/grub-mkrescue.in: Fix handling xorriso option.
10120
1e51cabd
VS
101212011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
10124 NULL.
10125
9cc3581d 101262011-11-03 crocket <crockabiscuit@gmail.com>
10127
10128 * util/grub.d/10_linux.in: Add Slackware initrd naming.
10129
158dc1ea
VS
101302011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10131
10132 XZ CRC64 and SHA256 support.
10133
10134 * Makefile.util.def (libgrubmods): Add crc64.c.
10135 * grub-core/Makefile.core.def (crc64): New module.
10136 * grub-core/lib/crc64.c: New file.
10137 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
10138 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
10139 Fix the type.
10140 (MAX_HASH_SIZE): New define.
10141 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
10142 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
10143 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10144 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10145 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
10146 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
10147 Handle non-crc32 hashes.
10148 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
10149 (dec_stream_header): Handle non-crc32 hashes.
10150 (dec_stream_footer): Likewise.
10151 (dec_block_header): Likewise.
10152 (dec_main): Likewise.
10153 (xz_dec_init): Likewise.
10154 (xz_dec_reset): Likewise.
10155 (xz_dec_end): Likewise.
10156 * util/import_gcry.py: Add CRC64 line.
10157
9d9b3d2f
VS
101582011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10159
10160 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
10161 as well.
10162
7d0ac931
VS
101632011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10164
10165 Make reiserfs label retrieval similar to other *_label functions.
10166
10167 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
10168 (REISERFS_MAX_LABEL_LENGTH): Removed.
10169 (REISERFS_LABEL_OFFSET): Likewise.
10170 (grub_reiserfs_label): Rewritten.
10171
101722011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10173
10174 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
10175 field.
10176
cf5ba824
VS
101772011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10178
10179 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
10180
17744004
VS
101812011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
10182
10183 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
10184 drive failure on both raidz and raidz2.
10185
aca5aefc
VS
101862011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
10187
10188 Fix RAIDZ(2) for >= 5 devices.
10189
10190 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
10191 asize argument. All users updated.
10192
ce8ca56e
VS
101932011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10194
10195 Fix RAIDZ(2).
10196
10197 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
10198 (fill_vdev_info_real): Set ashift.
10199 (read_device): Rewrite RAIDZ part based on reverse engineering.
10200
7c01e783
VS
102012011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10202
10203 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
10204 don't report potentially unavialiable fields in debug output.
10205 (find_path): Fix double-free and memory leak.
10206
ce109e84
VS
102072011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10208
10209 Read label on UFS1.
10210
10211 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
10212 (grub_ufs_fs): Always set .label.
10213
87661123
VS
102142011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 Use shifts in UFS.
10217
10218 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
10219 (grub_ufs_data): New field log2_blksz.
10220 (grub_ufs_read_file): Use shifts.
10221 (grub_ufs_mount): Check block size and logarithm it.
10222
46bc1dc2
VS
102232011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10224
10225 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
10226 long symlinks.
10227
19ee2987
VS
102282011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10229
10230 Handle symlinks and long names on tar and cpio.
10231
10232 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
10233 (ATTR_FILE): Likewise.
10234 (ATTR_DIR): Likewise.
10235 (ATTR_LNK): Likewise.
10236 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
10237 (grub_cpio_find_file): Fill mode, handle linkname field as well as
10238 L and K entries.
10239 (grub_cpio_mount): Zero-fill data.
10240 (handle_symlink): New function.
46bc1dc2
VS
10241 (grub_cpio_dir): Handle symlinks.
10242 (grub_cpio_open): Likewise.
10243 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 10244
c83a08d8
VS
102452011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 Fix iso9660 filename limitations and fix memory leaks.
10248
10249 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
10250 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
10251
45cdd3ea
VS
102522011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 Fix JFS file name length limitations.
10255
10256 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
10257 (grub_jfs_diropen): Fix maximum filename length.
10258 (grub_jfs_getent): Fix filename length.
10259 (grub_jfs_lookup_symlink): Fix size checks.
10260
94ef05c2
VS
102612011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10262
10263 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
10264 string.
10265
785ab8c7
VS
102662011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10267
eb0b6b45
VS
10268 Leverage BFS implementation to read AFS.
10269
10270 * Makefile.util.def (libgrubmods): Add afs.c.
10271 * grub-core/Makefile.core.def (afs): New module
10272 * grub-core/fs/afs.c: New file.
10273 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
10274
102752011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 10278
c4a1628f
VS
102792011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10280
10281 * grub-core/fs/bfs.c: Run indent.
10282
5825b379
VS
102832011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10284
10285 BFS implementation based on the specification.
10286
10287 * grub-core/fs/bfs.c: New file.
10288 * Makefile.util.def (libgrubmods): Add bfs.c.
10289 * grub-core/Makefile.core.def (bfs): New module.
10290
42b2a706
VS
102912011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 * util/grub-fstest.c (cmd_cp): Clarify error message.
10294 (cmd_cmp): Likewise.
10295
61b99bfc
YB
102962011-10-30 Yves Blusseau <blusseau@zetam.org>
10297
10298 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
10299 and befs_be.
10300
faba3d16
VS
103012011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 Remove afs and befs because of copyright problem.
10304
10305 * grub-core/fs/afs.c: Removed.
10306 * grub-core/fs/afs_be.c: Removed.
10307 * grub-core/fs/befs.c: Removed.
10308 * grub-core/fs/befs_be.c: Removed.
10309 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
10310 * grub-core/Makefile.core.def (afs): Removed.
10311 (afs_be): Likewise.
10312 (befs): Likewise.
10313 (befs_be): Likewise.
10314
c39224b0
VS
103152011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 Prefer rockridge over Joliet.
10318
10319 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10320 to ...
10321 (set_rockridge): ... here.
10322 (grub_iso9660_mount): Check rockridge on the primary label when
10323 discovering. Ignore Joliet if Rockridge is present.
10324
e551115a
VS
103252011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10326
10327 Use shifts in nilfs2.
10328
10329 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10330 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10331 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10332 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10333 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10334 (grub_nilfs2_entries_per_block): Replaced with ...
10335 (grub_nilfs2_log_entries_per_block_log): ... this.
10336 (grub_nilfs2_blocks_per_group): Replaced with ...
10337 (grub_nilfs2_blocks_per_group_log): ... this.
10338 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10339 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10340 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10341 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10342 (grub_nilfs2_palloc_entry_offset): Replaced ...
10343 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10344 (grub_nilfs2_dat_translate): Use shifts.
10345 (grub_nilfs2_read_inode): Likewise.
10346 (GRUB_MOD_INIT): Ensure that logs are correct.
10347
564dd58c
VS
103482011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10349
10350 Use shifts in minix filesystem.
10351
10352 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10353 (GRUB_MINIX_ZONE2SECT): Likewise.
10354 (grub_minix_data): Replace block_size with log_block_size.
10355 (grub_minix_read_file): Use shifts.
10356 (grub_minix_mount): Check block size and take a logarithm.
10357
ed9ba06d
VS
103582011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10359
10360 Use shifts in squash4.
10361
10362 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10363 (squash_mount): Check block size and take logarithm.
10364 (direct_read): Use shifts.
10365
ad03fe76
VS
103662011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10367
10368 Correct befs block counting logic.
10369
10370 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10371 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10372 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10373 (grub_afs_read_inode): Use block_shift.
10374 (RANGE_SHIFT): New definition.
10375 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10376 unexpected conditions, use shifts and appropriate types.
10377 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10378
6563f63d
VS
103792011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10380
10381 * grub-core/disk/raid.c (scan_devices): Check partition.
10382 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10383
5b1ae25f
VS
103842011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10385
10386 Support BFS (befs) UUID.
10387
10388 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10389 (grub_afs_small_data_element_header): New struct.
10390 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10391 (grub_afs_read_attribute) [MODE_BFS]: New function.
10392 (grub_afs_iterate_dir): Allocate for complete inode.
10393 (grub_afs_mount): Likewise.
10394 (grub_afs_uuid) [MODE_BFS]: New function.
10395 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10396
f8d82408
VS
103972011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10398
10399 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10400 (zfs_unmount): Fix memory leak.
10401
5773fb64
VS
104022011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10403
10404 Support NTFS reparse points.
10405
10406 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10407 (symlink_descriptor): New struct.
10408 (grub_ntfs_read_symlink): New function.
10409 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10410 (grub_ntfs_open): Likewise.
10411
91c3fdde
VS
104122011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10413
10414 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10415
3be82e10
VS
104162011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10417
10418 fstest xnu_uuid subcommand.
10419
10420 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10421 grub-core/commands/xnu_uuid.c.
10422 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10423 (fstest): Handle xnu_uuid.
10424 (options): Document xnu_uuid.
10425 (argp_parser): Parse xnu_uuid.
10426
8e32442e
VS
104272011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10428
10429 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10430 -l argument. Add newline at the end if printing.
10431 (GRUB_MOD_INIT): Document -l.
10432
52a05075
VS
104332011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10434
10435 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10436
1869edb5
VS
104372011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10438
10439 ZFS multi-device and version 33 support.
10440
10441 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10442 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10443 (grub_zfs_data): Add multidev-ice-related fields.
10444 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10445 (dva_get_offset): Make dva const.
10446 (zfs_fetch_nvlist): New function.
10447 (fill_vdev_info_real): Likewise.
10448 (fill_vdev_info): Likewise.
10449 (check_pool_label): Likewise.
10450 (scan_disk): Likewise.
10451 (scan_devices): Likewise.
10452 (read_device): Likewise.
10453 (read_dva): Likewise.
10454 (zio_read_gang): Use read_dva.
10455 (zio_read_data): Likewise.
10456 (zap_leaf_lookup): Add missing endian conversion.
10457 (zap_verify): Add missing endian conversion. All users updated.
10458 (fzap_lookup): Likewise.
10459 (fzap_iterate): Likewise.
10460 (dnode_get_path): Handle SA bonus.
10461 (nvlist_find_value): Make input const. All users updated.
10462 (unmount_device): New function.
10463 (zfs_unmount): Use unmount_device.
10464 (zfs_mount): Use scan_disk.
10465 (zfs_mtime): New function.
10466 (grub_zfs_open): Handle system attributes.
10467 (fill_fs_info): Likewise.
10468 (grub_zfs_dir): Likewise.
10469 (grub_zfs_fs): Add mtime.
10470 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10471 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10472 (SA_MTIME_OFFSET): Likewise.
10473 (SA_SYMLINK_OFFSET): Likewise.
10474 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10475 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10476 (fstest): Support zfsinfo.
10477 (argp_parser): Likewise.
10478
186b4028
VS
104792011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10480
10481 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10482 error.
10483
104842011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
10485
10486 ZFS fixes.
10487
10488 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10489 sharing the same block. Iterate over correct number of indices.
10490 (dnode_get_path): Handle symlinks correctly.
10491
c0584900
VS
104922011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10495
67e2bd71
VS
104962011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 Read label on HFS+.
10499
10500 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10501 (grub_hfsplus_btree_search): Fix types.
10502 (grub_hfsplus_label): Implement.
10503
e9cc6b7b
VS
105042011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10505
10506 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10507
19832ddb
VS
105082011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10509
10510 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10511
66b40850
VS
105122011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10513
10514 Fix symlink handling on iso9660.
10515
10516 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10517 All users updated.
10518 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10519 (grub_iso9660_read_symlink): Moved most of code ...
10520 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10521
db821363
VS
105222011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10523
10524 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10525 Use union to avoid breaking strict-aliasing rules.
10526
e1211949
VS
105272011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10528
10529 Support multi-extent iso files.
10530
10531 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10532 Add node.
10533 (grub_fshelp_node): Revamp. All users updated.
10534 (FLAG_*): New enum.
10535 (read_node): New function.
10536 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10537 All users updated.
10538 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10539 (get_node_size): New function.
10540 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10541 entries.
10542 Fix memory leak on . and ..
10543 (grub_iso9660_read): Use read_node.
10544 (grub_iso9660_close): Free node.
10545
d4888031
VS
105462011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10547
10548 Fix tar 4G limit and handle paths containing dot.
10549
10550 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10551 (canonicalize): New function.
10552 (grub_cpio_find_file): Use canonicalize. Store offs in
10553 grub_disk_addr_t.
10554 (grub_cpio_dir): Use grub_disk_addr_t.
10555 (grub_cpio_open): Likewise.
10556
9f12e664
VS
105572011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10558
10559 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10560
10561 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10562 unused flags.
10563 (grub_squash_inode): Add long_file and block_size.
10564 (grub_squash_cache_inode): New struct.
10565 (grub_squash_dirent): Make types into enum.
10566 (SQUASH_TYPE_LONG_REGULAR): New type.
10567 (grub_squash_frag_desc): Add field size.
10568 (SQUASH_BLOCK_FLAGS): New enum.
10569 (grub_squash_data): Use grub_squash_cache_inode.
10570 (grub_fshelp_node): Make ino_chunk 64-bit.
10571 (read_chunk): Minor argument change. All users updated.
10572 (squash_mount): Use correct le_to_cpu.
10573 (grub_squash_open): Handle LONG_REGULAR.
10574 (direct_read): New function.
10575 (grub_squash_read_data): Handle blocks correctly.
10576
9f326fba
VS
105772011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10578
10579 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10580
f4d9b64b
VS
105812011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10582
10583 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10584
5bbd28b8
VS
105852011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10586
10587 Fix 2G limit on ZFS.
10588
10589 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10590 types.
10591 (uberblock_verify): Likewise.
10592 (dmu_read): Likewise.
10593 (grub_zfs_read): Likewise. Remove invalid cast.
10594
68c72069
VS
105952011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10596
10597 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10598 (grub_jfs_blkno): Fix incorrect shift.
10599 (grub_jfs_read_file): Use more appropriate types.
10600
6e536dc8
VS
106012011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10602
10603 Support triple indirect on minix2 and minix3.
10604
10605 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10606 Declare triple_indir_zone.
10607 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10608 indirect.
10609
e0864e7a
VS
106102011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10611
10612 Minix FS fixes.
10613
10614 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10615 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10616 Rename ctime to mtime. All users updated.
10617 (grub_minix_get_file_block): Fix types and double indirect computations.
10618
89481cab
VS
106192011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10620
10621 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10622 if no label is found.
10623 (grub_fat_iterate_dir): Fix file size type.
10624 (grub_fat_iterate_dir): Likewise.
10625
f646e143
VS
106262011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10627
10628 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10629 save some space.
10630 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10631 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10632
534d769e
VS
106332011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10634
10635 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10636
e084ba18
VS
106372011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10638
10639 * util/import_gcry.py: Accept space between # and include.
10640
3471ecdf
VS
106412011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10642
10643 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10644
124df5f6
VS
106452011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10646
10647 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10648
10649 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10650 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10651 yylex_strncpy.
10652 * grub-core/script/yylex.l: Add fine-grained #pragma.
10653
4defb8d5
VS
106542011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10657 New inline function.
10658 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10659 Likewise.
10660 (memset) [GRUB_UTIL]: Likewise.
10661 (memcmp) [GRUB_UTIL]: Likewise.
10662
4e94ae65
VS
106632011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10664
10665 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10666 inline function rather than a define.
10667
18c575e5
VS
106682011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10669
10670 * util/grub-setup.c: Add missing include.
10671
f8bc22a8
VS
106722011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10673
10674 * util/ieee1275/grub-ofpathname.c: Add missing include.
10675
3ce69fc9
VS
106762011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10677
10678 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10679 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10680 Likewise.
10681
d1e293bb
VS
106822011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10683
10684 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10685 grub_memcmp usage.
10686
7a5c54a4
VS
106872011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10688
10689 * util/grub-install.in: Add datarootdir as per automake manual
10690 suggestion.
10691 * util/grub-mknetdir.in: Likewise.
10692
106932011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
10694
10695 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10696 suggestion.
10697 * util/grub.d/10_kfreebsd.in: Likewise.
10698 * util/grub.d/10_linux.in: Likewise.
10699 * util/grub.d/10_netbsd.in: Likewise.
10700 * util/grub.d/10_windows.in: Likewise.
10701 * util/grub.d/20_linux_xen.in: Likewise.
10702
766f7d08
VS
107032011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10704
10705 Remove redundant grub_kernel_image_size.
10706
10707 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10708 _edata and _start.
10709 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10710 the small code. It moves it only by few bytes but simplifies the code.
10711 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10712 _start.
10713 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10714 (grub_kernel_image_size): Removed.
10715 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10716 (grub_kernel_image_size): Removed.
10717 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10718 compiled with Apple toolchain.
10719 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10720 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10721 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10722 (grub_total_module_size): Likewise.
10723 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10724 Removed.
10725 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10726 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10727 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10728 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10729 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10730 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10731 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10732 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10733 Removed.
10734 (grub_total_module_size): Removed.
10735 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10736 (image_targets): Likewise.
10737 Set .compressed_size to no field on sparc.
10738 (generate_image): Remove kernel_image_size handling.
10739
fcf1d672
SJ
107402011-10-19 Szymon Janc <szymon@janc.net.pl>
10741
10742 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10743 NULL pointer dereference.
10744
de9c615e
VS
107452011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10746
10747 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10748 done with a dedicated section.
10749
10750 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10751 Ensure the correct position of boot_path.
10752 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10753 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10754 other fields.
10755 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10756 * include/grub/boot.h: Removed. All references removed.
10757 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10758 Removed.
10759 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10760
e55599dc
VS
107612011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10762
10763 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10764 name.
10765
36dd20ad
VS
107662011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10767
10768 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10769
f8f72eb8
VS
107702011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10771
10772 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10773 Don't add the bogus brackets.
10774
a374751b
VS
107752011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10776
10777 ExFAT support.
10778
10779 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10780 * grub-core/Makefile.core.def (exfat): New module.
10781 * grub-core/fs/exfat.c: New file.
10782 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10783 (GRUB_FAT_ATTR_*): Make into an enum.
10784 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10785 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10786 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10787 (GRUB_FAT_MAXFILE): Removed.
10788 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10789 (grub_current_fat_bpb_t): New type.
10790 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10791 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10792 (grub_fat_dir_node_t): New type.
10793 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10794 (fat_log2) [MODE_EXFAT]: Removed.
10795 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10796 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10797 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10798 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10799 (grub_fat_label) [MODE_EXFAT]: New function.
10800 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10801 reserved_first_sector to 0.
10802
544c2487
VS
108032011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10804
10805 Move grub_reboot out of the kernel.
10806
10807 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10808 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10809 * grub-core/lib/efi/reboot.c: ... here.
10810 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10811 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10812 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10813 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10814 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10815 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10816 * grub-core/lib/ieee1275/reboot.c: ... here.
10817 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10818 * grub-core/lib/mips/arc/reboot.c: ... here.
10819 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10820 * grub-core/lib/mips/loongson/reboot.c: ...here.
10821 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10822 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10823 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10824 * include/grub/i386/reboot.h: New file.
10825 * include/grub/mips/loongson/ec.h: Fix includes.
10826 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10827 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10828 * grub-core/lib/i386/reboot.c: New file.
10829
a97501d2
VS
108302011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10831
10832 Make grub_prefix into module to fix the arbitrary limit and save
10833 some space.
10834
10835 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10836 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10837 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10838 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10839 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10840 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10841 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10842 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10843 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10844 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10845 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10846 * include/grub/ia64/efi/kernel.h: Removed.
10847 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10848 (grub_prefix): Removed.
10849 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10850 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10851 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10852 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10853 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10854 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10855 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10856 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10857 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10858 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10859 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10860 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10861 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10862 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10863 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10864 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10865 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10866 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10867 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10868 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10869 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10870 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10871 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10872 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10873 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10874 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10875 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10876 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10877 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10878 from module.
10879 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10880 prefix_end.
10881 (image_targets): Likewise.
10882 (generate_image): Put prefix as a module.
10883
39705fad
VS
108842011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10885
10886 Replace grub_module_iterate with FOR_MODULES.
10887
10888 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10889 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10890 (grub_efi_modules_addr): ...this.
10891 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10892 (grub_efi_init): Set grub_modbase.
10893 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10894 (grub_modbase): New variable.
10895 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10896 (grub_modbase): New variable.
10897 (grub_machine_init): Set grub_modbase.
10898 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10899 (grub_modbase): New variable.
10900 (grub_machine_init): Set grub_modbase.
10901 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10902 (grub_modbase): New variable.
10903 (grub_machine_init): Set grub_modbase.
10904 * grub-core/kern/main.c (grub_module_iterate): Remove.
10905 (grub_modules_get_end): Use grub_modbase.
10906 (grub_load_modules): Use FOR_MODULES.
10907 (grub_load_config): Likewise.
10908 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10909 (grub_modbase): New variable.
10910 (grub_machine_init): Set grub_modbase.
10911 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10912 (grub_modbase): New variable.
10913 (grub_machine_init): Set grub_modbase.
10914 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10915 Removed.
10916 (grub_modbase): New variable.
10917 (grub_machine_init): Set grub_modbase.
10918 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10919 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10920 (grub_module_iterate): Likewise.
10921 (grub_modbase): New variable declaration.
10922 (FOR_MODULES): New macro.
10923
2afb7f6c
VS
109242011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10925
10926 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10927 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10928
366e34fa
VS
109292011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10930
10931 Fix few obvious type discrepancies.
10932
10933 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10934 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10935 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10936 variable.
10937 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10938 and connected types.
10939 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10940 offset.
10941 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10942 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10943 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10944 and connected types.
10945
177b960e
VS
109462011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10947
10948 Fix python 3.x incompatibilities.
10949
10950 * gentpl.py: Put brackets around print strings.
10951 * util/import_gcry.py: Open explicitly as utf-8.
10952 Use in instead of has_key.
10953
3b619ae1
VS
109542011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10957 (GRUB_XFS_INO_AGBITS): Make into inline function.
10958 (GRUB_XFS_INO_INOINAG): Likewise.
10959 (GRUB_XFS_INO_AG): Likewise.
10960 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10961 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10962 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10963 (GRUB_XFS_EXTENT_SIZE): Likewise.
10964 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10965 (GRUB_XFS_NEXT_DIRENT): Likewise.
10966 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10967 (grub_xfs_read_file): Fix offset type.
10968
8bcebcb8
RM
109692011-10-15 Robert Millan <rmh@gnu.org>
10970
10971 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10972
0017e5ef
RM
109732011-10-15 Robert Millan <rmh@gnu.org>
10974
10975 Fix build problem on FreeBSD and GNU/kFreeBSD.
10976
10977 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10978
d8919552
VS
109792011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10980
10981 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10982
10983 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10984 types.
10985 (grub_hfsplus_btree_recoffset): Likewise.
10986 (grub_hfsplus_btree_recptr): Likewise.
10987 (grub_hfsplus_find_block): Likewise.
10988 (grub_hfsplus_btree_search): Likewise.
10989 (grub_hfsplus_read_block): Likewise.
10990 (grub_hfsplus_read_file): Likewise.
10991 (grub_hfsplus_mount): Likewise.
10992 (grub_hfsplus_btree_iterate_node): Likewise.
10993 (grub_hfsplus_btree_search): Likewise.
10994 (grub_hfsplus_iterate_dir): Likewise.
10995 (grub_hfsplus_read): A small code simplification.
10996
c81296b6
VS
109972011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10998
10999 * grub-core/kern/emu/hostdisk.c
11000 (convert_system_partition_to_system_disk): Don't assume that children
11001 of mapper nodes are mapper nodes.
11002
0eb8ffb1
VS
110032011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11004
11005 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
11006 * include/grub/misc.h (grub_isxdigit): New function.
11007 * grub-core/video/colors.c (my_isxdigit): Removed. All users
11008 switched to grub_isxdigit.
11009 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
11010 number starting with a letter.
11011
a98f4a08
RM
110122011-10-09 Robert Millan <rmh@gnu.org>
11013
11014 LVM support for FreeBSD and GNU/kFreeBSD.
11015
11016 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
11017 GNU/kFreeBSD.
11018 (LVM_DEV_MAPPER_STRING): Move from here ...
11019 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
11020 * util/getroot.c: Include `<grub/util/lvm.h>'.
11021 (grub_util_get_dev_abstraction): Enable
11022 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
11023 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
11024 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
11025 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
11026 support it.
11027 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
11028 GNU/kFreeBSD.
11029 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
11030 when LVM abstraction is required for ${GRUB_DEVICE}.
11031
050e8e90
SJ
110322011-10-06 Szymon Janc <szymon@janc.net.pl>
11033
11034 Add support for LZO compression in GRUB:
11035 - import of minilzo library,
11036 - LZO decompression for btrfs,
11037 - lzop files decompression.
11038
11039 * grub-core/io/lzopio.c: New file.
11040 * grub-core/lib/adler32.c: Likewise.
11041 * grub-core/lib/minilzo/lzoconf.h: Likewise.
11042 * grub-core/lib/minilzo/lzodefs.h: Likewise.
11043 * grub-core/lib/minilzo/minilzo.c: Likewise.
11044 * grub-core/lib/minilzo/minilzo.h: Likewise.
11045 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
11046 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
11047 grub-core/lib/minilzo/minilzo.c to common.
11048 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
11049 cflags in cppflags.
11050 * grub-core/Makefile.core.def (btrfs): Likewise.
11051 * grub-core/Makefile.core.def (lzopio): New module.
11052 (adler32): Likewise.
11053 * grub-core/fs/btrfs.c: Include minilzo.h.
11054 (GRUB_BTRFS_COMPRESSION_LZO): New define.
11055 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
11056 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
11057 (grub_btrfs_lzo_decompress): New function.
11058 (grub_btrfs_extent_read): Add support for LZO compression type.
11059 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
11060 (GRUB_USHRT_MAX): Likewise.
11061 (GRUB_UINT_MAX): Likewise.
11062 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
11063 (UINT_MAX): Likewise.
11064 (CHAR_BIT): Likewise.
11065 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
11066 grub-core/lib/posix_wrap/limits.h
11067 (UCHAR_MAX): Likewise.
11068 * include/grub/file.h (grub_file_filter_id): New compression filter
11069 GRUB_FILE_FILTER_LZOPIO.
11070 * include/grub/file.h (grub_file_filter_id): Set
11071 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
11072 * include/grub/types.h (grub_get_unaligned16): New function.
11073 (grub_get_unaligned32): Likewise.
11074 (grub_get_unaligned64): Likewise.
11075 * util/import_gcry.py (cryptolist): Add adler32.
11076
0eb8ffb1
VS
110772011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
11078
11079 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
11080 in perspective decreases the complexity of build system and fixes
11081 compilation right now.
11082
ce79cc99 110832011-10-01 Ales Nesrsta <starous@volny.cz>
11084
11085 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
11086 (fixed problem related to using UHCI with coreboot).
11087
8667a314
BC
110882011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
11089
11090 * gentpl.py: Use Autogen macros so that the output template file
11091 (Makefile.tpl) size is reduced.
11092
fc5efcc0
MK
110932011-09-29 Mads Kiilerich <mads@kiilerich.com>
11094
11095 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
11096 extra_dist.
11097
d1ab689d
ML
110982011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11099
11100 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
11101 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
11102
c05de032
ML
111032011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11104
11105 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
11106 _fullpath.
11107
cca7ccd8
ML
111082011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11109
11110 Remove extra declaration of sleep for mingw32.
11111
11112 * util/misc.c (sleep) [__MINGW32__]: Removed.
11113 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
11114
e0b0dc83
GS
111152011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
11116
11117 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
11118 type and packname.
11119 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
11120 Resurrected.
11121 (NETBSD_BTINFO_BOOTWEDGE): New definition.
11122 (grub_netbsd_btinfo_bootwedge): New struct.
11123 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11124 New function.
11125 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
11126
91a1a164
TH
111272011-09-28 Thomas Haller <thomas.haller@fen-net.de>
11128
11129 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
11130 loader.
11131
2ded951e
AB
111322011-09-28 Andreas Born <futur.andy@googlemail.com>
11133
11134 Fix incorrect identifiers in bash-completion.
11135
11136 * util/bash-completion.d/grub-completion.bash.in
11137 (_grub_mkpasswd-pbkdf2): Rename to ...
11138 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
11139 (_grub_script-check): Rename to ...
11140 (_grub_script_check): ... this. All users updated.
11141
69915030
VS
111422011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
11143
11144 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11145 Return 0 if disk isn't biosdisk.
11146
20fd15f9
GS
111472011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11148
11149 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
11150 on NetBSD.
11151 * Makefile.util.def (grub-fstest): Likewise.
11152
1a7d7db9
GS
111532011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11154
11155 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
11156 Get sector size from disk label.
11157
2221ab6c
CW
111582011-09-05 Colin Watson <cjwatson@ubuntu.com>
11159
11160 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
11161 */README* as well as README*.
11162 Reported by: Axel Beckert.
11163
ca51c4a0
VS
111642011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
11167 case of less than 256 MiB of RAM.
11168
ab80f326
VS
111692011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11170
11171 * grub-core/commands/wildcard.c (make_regex): Handle @.
11172
4155e697
VS
111732011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11174
11175 * util/grub-install.in: Move cryptodisk logic to appropriate place.
11176
ab178c08
SJ
111772011-08-21 Szymon Janc <szymon@janc.net.pl>
11178
11179 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
11180 AC_LANG_CONFTEST macros.
11181
7dc3c686
SJ
111822011-08-20 Szymon Janc <szymon@janc.net.pl>
11183
11184 Add grub-fstest option to uncompress data for commands.
11185
11186 * util/grub-fstest.c (uncompress): New var.
11187 (options): New option -u.
11188
fe8d4a7b
SJ
111892011-08-20 Szymon Janc <szymon@janc.net.pl>
11190
11191 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
11192 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
11193
a5219af1
SJ
111942011-08-20 Szymon Janc <szymon@janc.net.pl>
11195
11196 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
11197 file type was not recognized correctly (not gzip or corrupted).
11198
f87abff5
VS
111992011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11200
11201 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
11202 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
11203
d94497ea
VS
112042011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11205
11206 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
11207 loongson.
11208 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
11209 video_radeon_fuloong2e.
11210 * grub-core/video/radeon_fuloong2e.c: New file.
11211 * include/grub/video.h (grub_video_id_t): Add new ID
11212 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
11213
0d1fd011
VS
112142011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11215
11216 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
11217 define.
11218 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
11219 that PRID matches the detected subplatform and reset the subplatform
11220 if it doesn't.
11221
84beb0ee
VS
112222011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11223
11224 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
11225
1227c133
VS
112262011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11227
11228 Fix PCI iterating on functions >= 4.
11229
11230 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
11231 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
11232 Removed.
11233 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
11234 (grub_pci_read): Fix bitmask.
11235 (grub_pci_read_word): Likewise.
11236 (grub_pci_read_byte): Likewise.
11237 (grub_pci_write): Likewise.
11238 (grub_pci_write_word): Likewise.
11239 (grub_pci_write_byte): Likewise.
11240
9594c689
VS
112412011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11242
11243 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
11244 can still be specified in TARGET_CFLAGS)
11245
14a2562c
VS
112462011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11247
11248 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
11249
11250 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
11251 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
11252 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
11253 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
11254 (FULOONG): Rename to ...
11255 (FULOONG2F): ... this. All users updated.
11256 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
11257 (machtype_fuloong2f_str): ... this.
11258 (machtype_fuloong2e_str): New string.
11259 Check for machtype_fuloong2e_str.
11260 * grub-core/loader/mips/linux.c (loongson_machtypes)
11261 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
11262 * grub-core/term/serial.c (loongson_defserial)
11263 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
11264 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
11265 loongson_defserial.
11266 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
11267 Rename to ...
11268 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
11269 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
11270 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
11271 to IMAGE_FULOONG2F_FLASH. All users updated.
11272 (image_targets): Rename images.
11273 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
11274
b526cbb6
SJ
112752011-08-19 Szymon Janc <szymon@janc.net.pl>
11276
11277 Make enable of disk cache statistics code configurable.
11278
11279 * configure.ac: --enable-cache-stats added.
11280 * config.h.in (DISK_CACHE_STATS): New define.
11281 * grub-core/Makefile.core.def (cacheinfo): New command.
11282 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
11283 * grub-core/commands/cacheinfo.c: New file.
11284 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
11285 moved to cacheinfo.c.
11286 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
11287 debug code.
11288 * include/grub/disk.h: Likewise.
11289
fb739ccd
SJ
112902011-08-19 Szymon Janc <szymon@janc.net.pl>
11291
11292 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
11293 * grub-core/Makefile.am: Likewise.
11294
2bba8cfd
VS
112952011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11296
11297 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
11298 non-zero pull.
11299
43526629
VS
113002011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11301
11302 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
11303 All users updated.
11304 (grub_jfs_lookup_symlink): Use correct starting inode.
11305
5c144cc8
VS
113062011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11307
11308 * util/grub-setup.c (main): Add missing gcry initialisation.
11309
b1257f65
VS
113102011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11311
11312 Don't accept text modes on EFI when booting Linux.
11313
11314 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
11315 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
11316
828bc390
ML
113172011-08-15 Mario Limonciello <mario_limonciello@dell.com>
113182011-08-15 Colin Watson <cjwatson@ubuntu.com>
11319
11320 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11321 use of "/path/.." as in grub-install for EFI as well as handling
11322 symlinks correctly.
11323 Fixes Debian bug #637768.
11324
5f60ccac
CW
113252011-08-15 Colin Watson <cjwatson@ubuntu.com>
11326
11327 * util/grub-probe.c: Remove duplicate #include.
11328
6dc212f9
RM
113292011-08-10 Robert Millan <rmh@gnu.org>
11330
11331 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11332
11333 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11334 function.
11335 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11336 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11337
66816d85
RM
113382011-08-03 Robert Millan <rmh@gnu.org>
11339
11340 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11341 la_array as packed.
11342 Reported by: Zachary Bedell
11343
20168fca
CW
113442011-07-26 Colin Watson <cjwatson@ubuntu.com>
11345
11346 * configure.ac: The Loongson port requires grub-mkfont due to its
11347 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11348 be built.
11349
303b6246
CW
113502011-07-26 Colin Watson <cjwatson@ubuntu.com>
11351
11352 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11353 processing arguments (otherwise help2man fails when GRUB has not yet
11354 been installed).
11355
6795300e
VS
113562011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11357
41aa28ea
VS
11358 New script grub-mkstandalone.
11359
11360 * Makefile.util.def (grub-mkstandalone): New script.
11361 * docs/man/grub-mkstandalone.h2m: New file.
11362 * util/grub-mkstandalone.in: Likewise.
11363
113642011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11365
11366 Support ATA disks with 4K sectors.
6795300e
VS
11367
11368 * include/grub/ata.h (grub_ata): New member log_sector_size.
11369 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11370 (grub_ata_identify): Read sector size.
11371 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11372
92227597
VS
113732011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11374
11375 * util/grub-install.in: Don't use uhci outside of x86.
11376
c77069f5
VS
113772011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11378
11379 * util/grub-mkrescue.in: Add missing quotes.
11380
113812011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
11382
11383 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11384 dereference.
11385
583168a2
VS
113862011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11387
11388 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11389
6be1c01f
VS
113902011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11391
11392 * include/grub/video.h: add missing EXPORT_FUND on
11393 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11394
a1167439
VS
113952011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11396
11397 * include/grub/mips/kernel.h: Fix define conflict.
11398
bf66054f
VS
113992011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11400
11401 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11402 all four ways.
11403
8fc4fa45
CW
114042011-07-21 Colin Watson <cjwatson@ubuntu.com>
11405
11406 Preferred resolution detection for VBE.
11407
11408 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11409 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11410 the Flat Panel extension, in line with the X.org VESA driver.
11411 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11412 New function.
11413 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11414 (grub_vbe_bios_read_edid): Likewise.
11415 (grub_vbe_get_preferred_mode): Likewise.
11416 (grub_video_vbe_setup): When the mode is "auto", try to get the
11417 preferred mode from VBE, and use the largest mode that is no larger
11418 than the preferred mode (some BIOSes expose a preferred mode that is
11419 not in their mode list!). If this fails, fall back to 640x480 as a
11420 safe conservative choice.
11421 (grub_video_vbe_get_edid): New function.
11422 (grub_video_vbe_adapter): Add get_edid.
11423 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11424 (struct grub_video_adapter): Add get_edid.
11425 (grub_video_edid_checksum): Add prototype.
11426 (grub_video_edid_preferred_mode): Likewise.
11427 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11428 structure.
11429
11430 * grub-core/commands/videoinfo.c (print_edid): New function.
11431 (grub_cmd_videoinfo): Print EDID if available.
11432
11433 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11434 is more appropriate on a wider range of platforms than 640x480.
11435 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11436 documentation.
11437
ca5572a9
VS
114382011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11439
11440 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11441
e4bcf625
VS
114422011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * po/POTFILES.in: Regenerate.
11445
c4edd548
VS
114462011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11447
11448 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11449 incorrect memory usage.
11450
16a2bab0
VS
114512011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11452
11453 * util/grub-install.in: Source grub-mkconfig_lib.
11454
2e418de6
VS
114552011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11456
11457 Remove getroot.c from core on emu platform.
11458
11459 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11460 kern/emu/raid.c.
11461 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11462 useless.
11463 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11464 * util/getroot.c (get_win32_path): ... here.
11465 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11466 * util/getroot.c (fini_libzfs): ... here.
11467 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11468 * util/getroot.c (grub_get_libzfs_handle): ... here.
11469 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11470 Moved from here...
11471 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11472 * grub-core/kern/emu/misc.c
11473 (grub_make_system_path_relative_to_its_root): Moved from here...
11474 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11475 * grub-core/kern/emu/getroot.c: Moved from here ...
11476 * util/getroot.c: ... here. All users updated.
11477 * grub-core/kern/emu/raid.c: Moved from here ...
11478 * util/raid.c: ... here. All users updated.
11479
def9832a
VS
114802011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * po/POTFILES.in: Regenerate.
11483
cd8fe79a
VS
114842011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11485
11486 Fix compilation on GNU/Linux.
11487
11488 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11489 Disable geli.
11490 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11491 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11492 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11493
a251b719
VS
114942011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
114952011-07-07 Michael Gorven <michael@gorven.za.net>
114962011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11497
11498 LUKS and GELI support.
11499
11500 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11501 grub-core/disk/luks.c, grub-core/disk/geli.c,
11502 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11503 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11504 grub-core/lib/arg.c.
11505 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11506 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11507 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11508 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11509 (grub-bin2h): Add libgcry.a.
11510 (grub-mkimage): Likewise.
11511 (grub-mkrelpath): Likewise.
11512 (grub-script-check): Likewise.
11513 (grub-editenv): Likewise.
11514 (grub-mkpasswd-pbkdf2): Likewise.
11515 (grub-pe2elf): Likewise.
11516 (grub-fstest): Likewise.
11517 (grub-mkfont): Likewise.
11518 (grub-mkdevicemap): Likewise.
11519 (grub-probe): Likewise.
11520 (grub-ofpath): Likewise.
11521 (grub-mklayout): Likewise.
11522 (example_unit_test): Likewise.
11523 (grub-menulst2cfg): Likewise.
11524 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11525 * grub-core/Makefile.core.def (cryptodisk): New module.
11526 (luks): Likewise.
11527 (geli): Likewise.
11528 * grub-core/disk/AFSplitter.c: New file.
11529 * grub-core/disk/cryptodisk.c: Likewise.
11530 * grub-core/disk/geli.c: Likewise.
11531 * grub-core/disk/luks.c: Likewise.
11532 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11533 grub_util_is_lvm.
11534 (grub_util_get_dm_abstraction): New function.
11535 (grub_util_follow_gpart_up): Likewise.
11536 (grub_util_get_geom_abstraction): Likewise.
11537 (grub_util_get_dev_abstraction): Use new functions.
11538 (grub_util_pull_device): Pull GELI and LUKS.
11539 (grub_util_get_grub_dev): Handle LUKS and GELI.
11540 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11541 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11542 (follow_geom_up): Removed.
11543 (grub_util_fd_seek): New function.
11544 (open_device): Use grub_util_fd_seek.
11545 (nread): Rename to ..
11546 (grub_util_fd_read): ... this. All users updated.
11547 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11548 (grub_crypto_cbc_decrypt): Likewise.
11549 (grub_crypto_hmac_write): Likewise.
11550 (grub_crypto_hmac_buffer): Likewise.
11551 (grub_password_get): Extend to util.
11552 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11553 New member modname.
11554 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11555 * include/grub/cryptodisk.h: New file.
11556 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11557 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11558 LUKS and GELI.
11559 (grub_util_follow_gpart_up): New proto.
11560 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11561 (grub_util_fd_read): Likewise.
11562 (grub_cryptodisk_cheat_mount): Likewise.
11563 (grub_util_cryptodisk_print_uuid): Likewise.
11564 (grub_util_get_fd_sectors): Likewise.
11565 * util/grub-fstest.c (mount_crypt): New var.
11566 (fstest): Mount crypto if requested.
11567 (options): New option -C.
11568 (argp_parser): Parse -C.
11569 (main): Init and fini gcry.
11570 * util/grub-install.in: Support cryptodisk install.
11571 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11572 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11573 cryptodisk.
11574 (prepare_grub_to_access_device): Likewise.
11575 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11576 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11577 (probe_cryptodisk_uuid): New function.
11578 (probe_abstraction): Likewise.
11579 (probe): Use new functions.
11580 * util/import_gcry.py: Create Makefile.utilgcry.def.
11581 Add modname member.
11582
9bfdcbbc
VS
115832011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11584
11585 Lazy device scanning.
11586
11587 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11588 (grub-setup): Remove util/raid.c.
11589 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11590 * grub-core/disk/lvm.c (scan_depth): New variable.
11591 (grub_lvm_iterate): Rescan if necessary.
11592 (find_lv): New function based on grub_lvm_open.
11593 (grub_lvm_open): Use find_lv. Rescan on error.
11594 (is_node_readable): New function.
11595 (is_lv_readable): Likewise.
11596 (grub_lvm_scan_device): Skip already found disks.
11597 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11598 Stop if searched device is found and readable.
11599 * grub-core/disk/raid.c (inscnt): New variable.
11600 (scan_depth): Likewise.
11601 (scan_devices): New function based on grub_raid_register. Abort if
11602 looked for device is found.
11603 (grub_raid_iterate): Rescan if needed.
11604 (find_array): NEw function based on -grub_raid_open.
11605 (grub_raid_open): Use find_array and rescan.
11606 (insert_array): Set became_readable_at.
11607 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11608 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11609 New function.
11610 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11611 (grub_util_pull_device): New function.
11612 (grub_util_get_grub_dev): Call grub_util_pull_device.
11613 * util/raid.c: Moved to ..
11614 * grub-core/kern/emu/raid.c: ... here.
11615 (grub_util_raid_getmembers): New parameter "bootable".
11616 All users updated. Support 1.x.
11617 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11618 All users updated.
11619 * include/grub/disk.h (grub_disk_pull_t): New enum.
11620 (grub_disk_dev): Change iterate prototype.
11621 All users updated.
11622 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11623 New proto.
11624 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11625 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11626 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11627 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11628 All users updated.
11629 * include/grub/util/raid.h: Removed.
11630
1c358e59
VS
116312011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11632
11633 * po/POTFILES.in: Regenerate.
11634
abee94ed
VS
116352011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11636
11637 Unify sparc init with other ieee1275.
11638
11639 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11640 instead of kern/sparc64/ieee1275/init.c.
11641 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11642 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11643 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11644 grub/machine/kernel.h.
11645 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11646 (grub_claim_heap) [__sparc__]: Use sparc version.
11647 (grub_machine_init): Moved args parsing to
11648 (grub_parse_cmdline): ...this.
11649 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11650 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11651 New definition.
11652 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11653
11654 Move BOOTP to separate file.
11655
11656 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11657 * grub-core/net/net.c: Move all BOOTP functions to
11658 * grub-core/net/bootp.c: ... here.
11659
11660 Use frame interface on PXE.
11661
11662 * grub-core/Makefile.core.def (pxecmd): Removed.
11663 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11664 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11665 * grub-core/i386/pc/pxe.c: Moved from here ...
11666 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11667 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11668 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11669
11670 EFI network support.
11671
11672 * grub-core/Makefile.core.def (efinet): New module.
11673 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11674 here...
11675 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11676 All users updated.
11677 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11678 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11679 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11680 * grub-core/net/drivers/efi/efinet.c: New file.
11681 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11682 (grub_efi_net_config): New extern var.
11683
11684 Various cleanups and bugfixes.
11685
11686 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11687 error.
11688 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11689 disk declared as partition.
11690 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11691 leak on failure.
11692 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11693 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11694 (grub_debug_zalloc): Likewise.
11695 (grub_debug_realloc): Likewise.
11696 (grub_debug_memalign): Likewise.
11697 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11698 Check that target is IPv4.
11699 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11700 local-mac-address as fallback.
11701 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11702 memory leak.
11703 * grub-core/net/ip.c (ipchksum): Rename to ...
11704 (grub_net_ip_chksum): ... this. All users updated.
11705 (grub_net_recv_ip_packets): Special handling for DHCP.
11706 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11707
11708 Unify prefix handling
11709
11710 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11711 (grub_machine_get_bootlocation): ... this.
11712 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11713 (grub_machine_get_bootlocation): ... this.
11714 (grub_prefix): New variable.
11715 (prefix): Removed.
11716 (root_dev): New variable.
11717 (dir): Likewise.
11718 (main): Use new variables.
11719 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11720 Revamped into ...
11721 (grub_machine_get_bootlocation): ... this.
11722 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11723 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11724 (grub_machine_get_bootlocation): ... this.
11725 (grub_machine_set_prefix): Removed.
11726 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11727 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11728 Revamped into ...
11729 (grub_machine_get_bootlocation): ... this.
11730 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11731 (grub_set_prefix_and_root): ... this. All users updated.
11732 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11733 Revamped into ...
11734 (grub_machine_get_bootlocation): ... this.
11735 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11736 (grub_machine_get_bootlocation): New proto.
11737 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11738
11739 Less intrusive and more reliable seek on network implementation.
11740
11741 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11742 (grub_file_seek): Don't call grub_file_net_seek.
11743 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11744 (grub_net_fs_read_real): .. this.
11745 (grub_net_seek_real): Use net->offset.
11746 (grub_net_fs_read): Seek if necessary.
11747
11748 Unify IEEE1275 netwotk config with the other platforms.
11749
11750 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11751 New variable.
11752 (grub_machine_get_bootlocation): Support network.
11753 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11754 Support type and device parsing.
11755 (grub_ieee1275_get_device_type): New function.
11756 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11757 into ...
11758 (grub_ieee1275_net_config_real): ... this.
11759 (grub_ofnet_probecards): Removed.
11760 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11761 * include/grub/ieee1275/ofnet.h: Removed.
11762 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11763 extern var.
11764 (grub_ieee1275_get_device_type): New function.
11765
11766 Unify network device closing across platforms and make more robust.
11767
11768 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11769 grub_grubnet_fini.
11770 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11771 already.
11772 * grub-core/net/net.c (grub_net_network_level_interface_register):
11773 Update num_ifaces.
11774 (grub_net_card_unregister): Close all interfaces.
11775 (receive_packets): Don't poll if no iterfaces are registered.
11776 Open if necessary.
11777 (grub_net_fini_hw): New function.
11778 (grub_net_restore_hw): Likewise.
11779 (fini_hnd): New variable.
11780 (GRUB_MOD_INIT): Register preboot hook.
11781 (GRUB_MOD_FINI): Run and unregister preboot hook.
11782
11783 Poll network cards when idle.
11784
11785 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11786 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11787 * grub-core/net/net.c (receive_packets): Save last poll time.
11788 (grub_net_poll_cards_idle_real): New function.
11789 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11790 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11791 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11792
11793 Rename ofnet interfaces.
11794
11795 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11796 (grub_ofnet_findcards): Use ofnet_%s names.
11797
11798 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11799
11800 Cleanup socket opening.
11801
11802 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11803 (grub_net_fs_close): Likewise.
11804 (grub_net_fs_read_real): Use eof member.
11805 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11806 (+grub_net_udp_close): New inline function.
11807
11808 * include/grub/net/tftp.h: Moved to the top of ...
11809 * grub-core/net/tftp.c: ... here.
11810 * include/grub/net/ip.h: Moved mostly to the top of ...
11811 * grub-core/net/ip.c: ... here.
11812 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11813 * grub-core/net/ethernet.c: ... here.
11814
11815 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11816
11817 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11818 FS name.
11819
11820 * include/grub/net/ip.h (ipv4_ini): Removed.
11821 (ipv4_fini): Likewise.
11822
11823 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11824 (grub_net_send_ip_packets): Likewise.
11825
cf1337aa
VS
118262011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11827
11828 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11829 grub_read_cmos prototype.
11830
93c06ff9
VS
118312011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11832
11833 VGA text support in qemu-mips
11834
11835 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11836 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11837 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11838 text.
11839 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11840 * grub-core/kern/vga_init.c: ... this.
11841 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11842 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11843 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11844 Adjust.
11845 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11846 GRUB_MACHINE_PCI_IO_BASE.
11847
748ccabe
VS
118482011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11849
11850 MIPS qemu flash support.
11851
11852 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11853 magic.
11854 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11855 (grub_machine_init): Probe memory if its size isn't known.
11856 * util/grub-mkimage.c (image_targets): Add flash targets.
11857 (generate_image): Handle flash targets.
11858
d7345994
VS
118592011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11860
11861 MIPS qemu at_keyboard support.
11862
11863 * gentpl.py (videoinkernel): Add qemu-mips.
11864 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11865 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11866 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11867 modules.
11868 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11869 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11870 * grub-core/term/serial.c (grub_serial_register)
11871 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11872
a07a81b3
VS
118732011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11874
11875 CMOS support on sparc.
11876
11877 * gentpl.py (cmos): Add powerpc and sparc.
11878 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11879 powerpc and sparc.
11880 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11881 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11882 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11883 grub_set_datetime_cmos.
11884 * grub-core/lib/ieee1275/cmos.c: New file.
11885 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11886 (find_rtc): Set no_ieee1275_rtc on error.
11887 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11888 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11889 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11890 fail. Move value to argument. All users updated
11891 (grub_cmos_write): Likewise.
11892 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11893 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11894 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11895 grub_get_datetime_cmos and grub_set_datetime_cmos.
11896
77546584
GS
118972011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11898
11899 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11900 sourcing grub-mkconfig_lib.
11901 * util/update-grub_lib.in: Likewise.
11902 * util/grub.d/00_header.in: Likewise.
11903 * util/grub.d/10_hurd.in: Likewise.
11904 * util/grub.d/10_kfreebsd.in: Likewise.
11905 * util/grub.d/10_linux.in: Likewise.
11906 * util/grub.d/10_netbsd.in: Likewise.
11907 * util/grub.d/10_windows.in: Likewise.
11908 * util/grub.d/20_linux_xen.in: Likewise.
11909 * util/grub.d/30_os-prober.in: Likewise.
11910
54894791
CW
119112011-06-28 Colin Watson <cjwatson@ubuntu.com>
11912
11913 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11914 default_bg_color rather than black.
11915 (grub_gfxterm_fullscreen): Likewise.
11916 (grub_gfxterm_background_color_cmd): Save new background color in
11917 default_bg_color.
11918
8d5d8444
VS
119192011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11920
11921 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11922
5afeb5bd
VS
119232011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11924
11925 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11926 mismerge.
11927
ba7df45e
VS
119282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11929
11930 Chainloading on coreboot support.
11931
11932 * grub-core/Makefile.core.def (chain): Add coreboot.
11933 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11934
d0b526b2
VS
119352011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11938 if it happens.
11939
5ff1d945
VS
119402011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11941
11942 Implement time command.
11943
11944 * grub-core/Makefile.core.def (time): New module.
11945 * grub-core/commands/time.c: New file.
11946 * grub-core/script/parser.y: Remove "time" keyword.
11947 * grub-core/script/yylex.l: Likewise.
11948
5ebaad7e
VS
119492011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11950
11951 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11952
bdea3798
VS
119532011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11956 when handling leftovers.
11957
b28c5655
VS
119582011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11959
11960 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11961 so that help2man doesn't fail.
11962
b6f945dc
VS
119632011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11964
11965 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11966 type in pointers on sparc64.
11967 (get_card_packet): Likewise.
11968
f9b75e8a
CW
119692011-06-27 Colin Watson <cjwatson@ubuntu.com>
11970
11971 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11972 with `*'.
11973 (grub_cmd_videoinfo): Fetch current video mode.
11974
1e3d9b86
VS
119752011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11976
11977 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11978 because of underlying system restrictions.
11979
efff4b1c
VS
119802011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11981
11982 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11983 necessary.
11984
9fc9ce37
VS
119852011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11986
11987 Coreboot video support.
11988
11989 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11990 (vbe): Likewise.
11991 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11992 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11993 here ...
11994 * grub-core/kern/i386/int.S: ... here.
11995 * grub-core/video/i386/pc/vbe.c: Updated includes.
11996 * grub-core/video/i386/pc/vga.c: Likewise.
11997 * include/grub/i386/coreboot/memory.h
11998 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11999 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
12000 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
12001 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
12002 Disable interrupts.
12003 * include/grub/i386/pc/vga.h: Removed. All users updated.
12004
41bec7fe
VS
120052011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12006
12007 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
12008 definitions for dprintf.
12009 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
12010
ca80309d
VS
120112011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
12014 prototype.
12015 (get_card_packet): Likewise.
12016
9e322ce8
YB
120172011-06-26 Yves Blusseau <blusseau@zetam.org>
12018
12019 Display the path of the file when file is not found
12020
12021 * grub-core/fs/fat.c: Display the filename when file is not found.
12022 * grub-core/fs/fshelp.c: Likewise.
12023 * grub-core/fs/hfs.c: Likewise.
12024 * grub-core/fs/jfs.c: Likewise.
12025 * grub-core/fs/minix.c: Likewise.
12026 * grub-core/fs/ufs.c: Likewise.
12027 * grub-core/fs/btrfs.c: Likewise.
12028 * grub-core/commands/i386/pc/play.c: Likewise.
12029
cbf597af
SJ
120302011-06-26 Szymon Janc <szymon@janc.net.pl>
12031
12032 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
12033 pointer checks before calling grub_free().
12034 * grub-core/commands/wildcard.c (match_devices): Likewise.
12035 * grub-core/commands/wildcard.c (match_files): Likewise.
12036 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
12037 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
12038 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
12039 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
12040 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
12041 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
12042 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
12043 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
12044 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
12045
6295b32f
P
120462011-06-25 Patrick <p55@mailinator.com>
12047
12048 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
12049
77c0840b
VS
120502011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
12053 (grub_pxe_send): Likewise.
12054 (GRUB_MOD_INIT): Fix types.
12055
40ea05de
SJ
120562011-06-24 Szymon Janc <szymon@janc.net.pl>
12057
12058 * grub-core/io/xzio.c: Fix code style issues
12059
90162423
MRA
120602011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
120612011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
12062
12063 Network infrastructure.
12064 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
12065
12066 * include/grub/net/arp.h: New file.
90162423
MRA
12067 * include/grub/net/device.h: Likewise.
12068 * include/grub/net/ethernet.h: Likewise.
12069 * include/grub/net/ip.h: Likewise.
12070 * include/grub/net/netbuff.h: Likewise.
12071 * include/grub/net/tftp.h: Likewise.
12072 * include/grub/net/udp.h: Likewise.
12073 * include/grub/ieee1275/ofnet.h: Likewise.
12074 * include/grub/emu/export.h: Likewise.
12075 * include/grub/net.h: Likewise.
12076 * grub-core/net/arp.c: Likewise.
12077 * grub-core/net/ethernet.c: Likewise.
12078 * grub-core/net/ip.c: Likewise.
12079 * grub-core/net/udp.c: Likewise.
12080 * grub-core/net/tftp.c: Likewise.
12081 * grub-core/net/netbuff.c: Likewise.
12082 * grub-core/net/net.c: Likewise.
12083 * grub-core/net/drivers/emu/emunet.c: Likewise.
12084 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
12085 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
12086 export.h.
12087 * grub-core/Makefile.core.def (net): New module.
12088 (tftp): Likewise.
12089 (ofnet): Likewise.
12090 (emunet): Likewise.
12091 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
12092 network protocols.
12093 * grub-core/kern/device.c (grub_net_open) : New variable.
12094 (grub_device_open): Handle network device.
12095 (grub_device_close): Likewise.
12096 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
12097 (grub_grubnet_fini): Likewise.
12098 (grub_file_seek): Seek in network device.
12099 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
12100 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
12101 network root.
12102 (grub_machine_fini): Call grub_grubnet_fini.
12103 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
12104 network.
12105 (grub_ieee1275_get_aliasdevname): New function.
12106 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
12107 Add unofficial Solaris network info.
12108 (grub_multiboot_make_mbi): Likewise.
12109 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
12110 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
12111 * include/grub/device.h (grub_fs): Removed.
12112 * include/grub/err.h (grub_err_t): Add network-related values.
12113 * include/grub/i386/pc/pxe.h: Removed bootp parts.
12114 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
12115 (grub_ieee1275_get_aliasdevname): New proto.
12116 * include/grub/net.h: Rewritten.
423a1849 12117
031f22a0
VS
121182011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12119
12120 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
12121 names.
12122
4388ca72
VS
121232011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12124
12125 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
12126 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
12127 it truncates the output.
12128 Reported by: Ximin Luo.
12129
98e2f506
VS
121302011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12131
12132 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
12133
2a5e94d8
VS
121342011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12135
12136 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
12137 partmap before abstraction.
12138
535c1910
AK
121392011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
12140
12141 * util/grub-mkconfig_lib.in: Add missing quotes.
12142
bc09e1a2
VS
121432011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12144
12145 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
12146 old method if mountinfo would return /dev/root and /dev/root doesn't
12147 exist.
12148
290766fb
VS
121492011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12150
12151 ZFS zlib support
12152
12153 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
12154 (decomp_table): Add zlib entries.
12155 (zio_read): USe 8 bits for compression function rather than 3.
12156 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
12157
121582011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12159
12160 * grub-core/disk/ahci.c: Add missing license statements.
12161 * grub-core/fs/romfs.c: Likewise.
12162 * grub-core/lib/ia64/setjmp.S: Likewise.
12163 * grub-core/loader/i386/pc/freedos.c: Likewise.
12164 * grub-core/loader/ia64/efi/linux.c: Likewise.
12165 * grub-core/video/colors.c: Likewise.
12166 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
12167
5ab3f48a
VS
121682011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12169
12170 AHCI support.
12171
12172 * grub-core/Makefile.core.def (ata_pthru): Removed.
12173 (ahci): New module.
12174 (pata): Likewise.
12175 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
12176 on unload.
12177 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
12178 readwrite.
12179 (grub_hdparm_do_check_powermode_cmd): Likewise.
12180 (grub_hdparm_do_smart_cmd): Likewise.
12181 (grub_hdparm_set_val_cmd): Likewise.
12182 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
12183 * grub-core/disk/ahci.c: New file.
12184 * grub-core/disk/ata.c: Factor out the low-level part into ...
12185 * grub-core/disk/pata.c: ... here.
12186 * grub-core/disk/ata_pthru.c: Contents moved to ...
12187 * grub-core/disk/pata.c: ... here.
12188 * grub-core/disk/scsi.c (grub_scsi_names): New array.
12189 (grub_scsi_iterate): Use grub_scsi_names.
12190 (grub_scsi_open): Likewise.
12191 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
12192 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
12193 (grub_ata_regs_t): New struct.
12194 (grub_disk_ata_pass_through_parms): Likewise.
12195 (grub_ata_device): Renamed to ...
12196 (grub_ata): ... this.
12197 (grub_ata_dev): New struct.
12198 Removed all low-level inline functions.
12199 * include/grub/scsi.h: Add PATA and AHCI subsystems.
12200 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
12201 iterate hooks and open. All users updated.
12202 * util/grub-install.in: Handle AHCI disk module.
12203
c31dc5f5
SJ
122042011-06-23 Szymon Janc <szymon@janc.net.pl>
12205
12206 Add support for DRI and RSTn markers in JPEG files.
12207
12208 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
12209 (JPEG_MARKER_RST0): Likewise.
12210 (JPEG_MARKER_RST1): Likewise.
12211 (JPEG_MARKER_RST2): Likewise.
12212 (JPEG_MARKER_RST3): Likewise.
12213 (JPEG_MARKER_RST4): Likewise.
12214 (JPEG_MARKER_RST5): Likewise.
12215 (JPEG_MARKER_RST6): Likewise.
12216 (JPEG_MARKER_RST7): Likewise.
12217 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
12218 (grub_jpeg_decode_dri): New function.
12219 (grub_jpeg_decode_sos): Move image data related part into
12220 grub_jpeg_decode_data function.
12221 (grub_jpeg_decode_data): New function.
12222 (grub_jpeg_reset): New function.
12223 (grub_jpeg_decode_jpeg): Handle new markers.
12224
fe12fd5b
VS
122252011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12226
12227 * util/ieee1275/ofpath.c (check_sas): Close fd.
12228 (main): Free of_path.
12229 Reported by: David Volgyes <dvolgyes>.
12230
03147f46
VS
122312011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12232
12233 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
12234 Reported by: David Volgyes <dvolgyes>.
12235
cad3237f
VS
122362011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12237
12238 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
12239 file after stat.
12240 Reported by: David Volgyes <dvolgyes>.
12241
13548d26
VS
122422011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12243
12244 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
12245
12246 Reported by: David Volgyes <dvolgyes>.
12247
e061a1b5
VS
122482011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12249
12250 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
12251 Prevent memory leak.
12252
1abe47dc
VS
122532011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12254
12255 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
12256 (main): Close file.
e061a1b5 12257 Reported by: David Volgyes <dvolgyes>.
1abe47dc 12258
fbc62666
VS
122592011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12260
12261 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
12262 to continue if allocation is failed.
12263
12264 Reported by: David Volgyes <dvolgyes>.
12265
e98c83e9
DV
122662011-06-23 David Volgyes <dvolgyes>
12267
12268 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
12269 dereference.
12270
a199a8cd
VS
122712011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12272
12273 Fix spurious warning.
12274
12275 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
12276 (acorn_partition_map_find): Use .bin member.
12277
e2d1dba0
VS
122782011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12279
12280 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
12281 /dev/root as a valid device.
12282
8a5d6919
JM
122832011-06-23 Jim Meyering <meyering@redhat.com>
12284
e2d1dba0
VS
12285 Avoid NULL deref in grub_device_open.
12286
8a5d6919
JM
12287 * grub-core/kern/device.c (grub_device_open): Don't dereference
12288 a NULL pointer upon failed grub_env_get.
12289
f7db6f4a
VS
122902011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12291
12292 Support non-512B sectors and agglomerate reads.
12293
12294 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
12295 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
12296 (disk_io_guid): Removed.
12297 (make_devices): Locate solely by BlockIO.
12298 (grub_efidisk_open): Fill log_sector_size and total_sectors.
12299 (grub_efidisk_read): Use read_blocks.
12300 (grub_efidisk_write): Use write_blocks.
12301 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
12302 log_sector_size.
12303 (get_safe_sectors): Handle non-512B sectors.
12304 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
12305 sectors.
12306 (grub_biosdisk_write): Handle non-512B sectors.
12307 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
12308 (grub_scsi_read): Remove special non-512B block handling (now handled
12309 one level up).
12310 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
12311 and do sanity checks.
12312 (grub_disk_adjust_range): Handle non-512B sectors.
12313 (transform_sector): New function.
12314 (grub_disk_read_small): Likewise.
12315 (grub_disk_read): Rewritten.
12316 (grub_disk_write): Handle non-512B sectors.
12317 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
12318 log_sector_size.
12319 (open_device): Use log_sector_size.
12320 (grub_util_biosdisk_read): Likewise.
12321 (grub_util_biosdisk_write): Likewise.
12322 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12323 non-512B sectors.
12324 (pc_partition_map_embed): Likewise.
12325 * include/grub/disk.h (grub_disk): New field log_sector_size.
12326 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12327 (GRUB_DISK_CACHE_BITS): Increased to 6.
12328 * util/grub-fstest.c (fstest): New command testload.
12329 (argp_parser): Likewise.
12330
881ac815
RM
123312011-06-16 Robert Millan <rmh@gnu.org>
12332
12333 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12334 `ata' driver on kernel of FreeBSD 9.
12335
12336 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12337 (get_ataraid_disk_name): New functions.
12338 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12339 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12340 get_ataraid_disk_name() and get_ada_disk_name().
12341
1e9aef7d
CW
123422011-06-13 Colin Watson <cjwatson@ubuntu.com>
12343
12344 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12345 input format.
12346
351c7c8a
CW
123472011-05-29 Colin Watson <cjwatson@ubuntu.com>
12348
12349 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12350 `ftp.gnu.org' for `alpha.gnu.org'.
12351
6b4e6430
CW
123522011-05-27 Colin Watson <cjwatson@ubuntu.com>
12353
12354 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12355 partitions under /dev/disk/by-id/.
12356
c64db050
CW
123572011-05-27 Colin Watson <cjwatson@ubuntu.com>
12358
12359 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12360 after ten consecutive open failures. Scanning all the way up to
12361 10000 is excessive and can cause serious performance problems in
12362 some configurations.
12363 Fixes Ubuntu bug #787461.
12364
245f4aba
VS
123652011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12366
12367 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12368 opening new one.
12369
f767c929
VS
123702011-05-21 Colin Watson <cjwatson@ubuntu.com>
123712011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12372
12373 Don't stat devices unless we have to.
12374
12375 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12376 dir == /dev/mapper.
12377 (grub_guess_root_device): Use already known os_dev if possible.
12378 * grub-core/kern/emu/hostdisk.c
12379 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12380 if device is known to be a dm one.
12381
f35fa3a6
CW
123822011-05-20 Colin Watson <cjwatson@ubuntu.com>
12383
12384 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12385 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12386 Reported by: Pawel Tecza.
12387
9a79fcf2
VS
123882011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12389
12390 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12391 (lsefisystab): Likewise.
12392 (lssal): Likewise.
12393 (lsefimmap): Likewise.
12394 (hdparm): Enable on qemu-mips.
12395 (setjmp): Add ia64 nodist.
12396 (serial): Simplify tags.
12397
63e3eea9
CW
123982011-05-18 Colin Watson <cjwatson@ubuntu.com>
12399
12400 * Makefile.util.def (grub-ofpathname): Install manual page.
12401
09728256
CW
124022011-05-18 Colin Watson <cjwatson@ubuntu.com>
12403
12404 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12405
8b63a142
CW
124062011-05-18 Colin Watson <cjwatson@ubuntu.com>
12407
12408 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12409
e775d8ed
VS
124102011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12411
12412 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12413 into dprintf.
12414
bf947d36
VS
124152011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 Use full 64-bit division.
12418
12419 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12420 (grub_divmod64): ... this.
12421 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12422 version.
12423
b84f26c5
CW
124242011-05-18 Colin Watson <cjwatson@ubuntu.com>
12425
12426 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12427 `source'.
12428
5626056f
CW
124292011-05-18 Colin Watson <cjwatson@ubuntu.com>
12430
12431 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12432 to avoid accidents when debugging with 'sh -x'.
12433 * grub-core/gensyminfo.sh.in: Likewise.
12434 * tests/example_scripted_test.in: Likewise.
12435 * tests/grub_cmd_regexp.in: Likewise.
12436 * tests/grub_script_blanklines.in: Likewise.
12437 * tests/grub_script_dollar.in: Likewise.
12438 * tests/grub_script_expansion.in: Likewise.
12439 * tests/grub_script_final_semicolon.in: Likewise.
12440 * tests/partmap_test.in: Likewise.
12441 * tests/util/grub-shell-tester.in: Likewise.
12442 * tests/util/grub-shell.in: Likewise.
12443
e2965f4a
CW
124442011-05-18 Colin Watson <cjwatson@ubuntu.com>
12445
12446 Move gfxmenu color handling to video, so that gfxterm can use it
12447 too.
12448
12449 * grub-core/gfxmenu/named_colors.c: Move to ...
12450 * grub-core/video/colors.c: ... here. Rename
12451 grub_gui_get_named_color to grub_video_get_named_color.
12452 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12453 * grub-core/video/colors.c (my_isxdigit): ... here.
12454 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12455 Move to ...
12456 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12457 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12458 to ...
12459 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12460
12461 * include/grub/gui.h (grub_gui_color_t): Move to ...
12462 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12463 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12464 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12465 * include/grub/gui.h (grub_gui_map_color): Move to ...
12466 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12467 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12468 to ...
12469 * include/grub/video.h (grub_video_get_named_color): ... here.
12470 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12471 * include/grub/video.h (grub_video_parse_color): ... here.
12472
12473 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12474 video/colors.c.
12475 (gfxmenu): Remove gfxmenu/named_colors.c.
12476 (video) [videomodules]: Add video/colors.c.
12477
12478 Add a background_color command.
12479
12480 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12481 function.
12482 (GRUB_MOD_INIT): Register background_color command.
12483 (GRUB_MOD_FINI): Unregister background_color command.
12484 (redraw_screen_rect): Allow blend/replace of text layer to be
12485 controlled independently from whether there is a background bitmap.
12486 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12487 changing bitmap.
12488
1e4b4390
VS
124892011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12490
26618ff0
VS
12491 Patch BPB in ntldr and chainloader --bpb.
12492
1e4b4390
VS
12493 * grub-core/fs/fat.c: Include grub/fat.h.
12494 (grub_fat_bpb): Moved to ...
12495 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12496 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12497 grub/ntfs.h.
12498 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12499 Moved from here...
12500 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12501 here.
12502 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12503 New function.
12504 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12505 (GRUB_MOD_INIT): Show --bpb.
12506 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12507 * grub-core/normal/main.c (features): New variable.
12508 (GRUB_MOD_INIT): Set feature_* variables.
12509 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12510 proto.
12511 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12512
cf02731e
VS
125132011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12514
12515 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12516 for cleanness.
12517
e3a1073f
VS
125182011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12519
12520 FreeDOS direct loading support.
12521
12522 * docs/grub.texi (Supported OS): Add FreeDOS.
12523 * grub-core/Makefile.core.def (freedos): New module.
12524 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12525 variable.
12526 (grub_relocator16_boot): Handle %ebx.
12527 * grub-core/lib/i386/relocator16.S: Likewise.
12528 * grub-core/loader/i386/pc/freedos.c: New file.
12529
05caa461
VS
125302011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12531
12532 Long Linux command line support.
12533
12534 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12535 (maximal_cmdline_size): New variable.
12536 (allocate_pages): Use maximal_cmdline_size.
12537 (grub_cmd_linux): Set and use maximal_cmdline_size.
12538 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12539 (allocate_pages): Use maximal_cmdline_size.
12540 (grub_cmd_linux): Set and use maximal_cmdline_size.
12541 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12542 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12543 and cmdline_size.
12544
a2491e23
VS
125452011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
125462011-05-18 Colin Watson <cjwatson@ubuntu.com>
12547
12548 Improve devmapper support
12549
12550 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12551 (grub_util_is_lvm): New function.
12552 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12553 than lvm if not dmraid.
12554 Handle mapped md nodes.
12555 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12556 (grub_util_device_is_mapped): ... this. Make always available. All users
12557 updated.
12558 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12559 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12560 dmraid nodes.
12561 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12562
6ad6223e
VS
125632011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12564
12565 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12566
12567 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12568 * grub-core/modinfo.sh.in: New file.
12569 * grub-core/Makefile.core.def (modinfo.sh): New script.
12570 * util/grub-mknetdir.in: Use modinfo.sh.
12571 * util/grub-mkrescue.in: Likewise.
12572
543a8f6e
VS
125732011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12574
12575 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12576 Fix potential usage of Elf32 instead of Elf64 when compiling on
12577 32-bit architecture. Add endianness macros while on it.
12578
4959e111
VS
125792011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12580
12581 Use mipsel- rather than mips- in directories involving mipsel ports to
12582 allow both endiannesses coexist.
12583
12584 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12585 mips. All conditions adjusted.
12586 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12587 variable.
12588 * util/grub-install.in: Adjust conditions to take renaming into account.
12589 * util/grub-mkimage.c (image_targets): Likewise. New target
12590 mips-qemu_mips-elf for bigendian mips.
12591
35341bbc
VS
125922011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12593
12594 Avoid unnecessary copying on MIPS.
12595
12596 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12597 early if src == dest.
12598 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12599 compression is none.
12600
b772baed
VS
126012011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12602
12603 Reduce memory footprint on SGI by putting modules before the kernel
12604 as opposed to after.
12605
12606 * grub-core/Makefile.core.def (kernel): Increase linking address.
12607 (none_decompress): Likewise.
12608 (xz_decompress): Likewise.
12609 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12610 address.
12611 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12612 layout change.
12613 (grub_arch_modules_addr): New function.
12614 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12615 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12616 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12617 here.
12618 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12619 (grub_total_modules_size): ... this. Make global.
12620 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12621 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12622 New definition.
12623 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12624 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12625 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12626 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12627 * util/grub-mkimage.c (image_target_desc): New flag
12628 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12629 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12630 (generate_image): Handle images with modules before kernel.
12631
566a1917
VS
126322011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12633
12634 Prevent potential loss of memory map by overwrite on qemu-mips.
12635
12636 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12637 Save ram size in $s4.
12638 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12639 All users changed to grub_arch_memsize.
12640 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12641 Loongson.
12642 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12643 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12644 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12645 external variable.
12646
5d420cd9
CW
126472011-05-17 Colin Watson <cjwatson@ubuntu.com>
12648
12649 * .bzrignore: Remove grub-dumpbios.
12650
d064b830
CW
126512011-05-17 Colin Watson <cjwatson@ubuntu.com>
12652
12653 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12654 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12655 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12656 existing options which append).
12657 * docs/grub.texi (Simple configuration): Document new options.
12658 Reported by: Ian Jackson. Fixes Debian bug #617538.
12659
3ca2b466
CW
126602011-05-17 Colin Watson <cjwatson@ubuntu.com>
12661
12662 * util/grub-fstest.c (cmd_cat): New function.
12663 (fstest): Handle CMD_CAT.
12664 (options): Add cat.
12665 (argp_parser): Handle cat.
12666
24c9143a
CW
126672011-05-17 Colin Watson <cjwatson@ubuntu.com>
12668
12669 * Makefile.util.def (grub-bin2h): Don't install.
12670 * docs/man/grub-bin2h.h2m: Remove.
12671
90f7ac19
VS
126722011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12673
12674 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12675 place.
12676
8d4a5178
VS
126772011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12678
12679 Reenable qemu-mips port.
12680
12681 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12682 Fix small arc bug while on it.
12683 * gentpl.py: Handle qemu_mips.
12684 * grub-core/Makefile.am: Likewise.
12685 * grub-core/Makefile.core.def: Likewise.
12686 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12687 inappropriate includes.
12688 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12689 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12690 * grub-core/kern/main.c (grub_modules_get_end)
12691 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12692 * grub-core/kern/mips/qemu-mips: Moved to ..
12693 * grub-core/kern/mips/qemu_mips: ... this.
12694 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12695 (grub_machine_init): Call terminfo_init and serial_init.
12696 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12697 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12698 New variable.
12699 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12700 parameter passing.
12701 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12702 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12703 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12704 * include/grub/mips/qemu_mips/cmos.h: New file.
12705 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12706 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12707 Removed.
12708 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12709 Use correct mips-style address.
12710 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12711 (GRUB_TICKS_PER_SECOND): Removed.
12712 (grub_get_rtc): Likewise.
12713 (grub_cpu_idle): Likewise.
12714 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12715 New definition.
12716 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12717 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12718 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12719 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12720 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12721 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12722 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12723 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12724
400b9371
VS
127252011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12726
12727 SGI ARCS port.
12728
12729 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12730 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12731 platforms.
12732 * configure.ac: New target mips-arc.
12733 * gentpl.py: Likewise.
12734 * grub-core/Makefile.am: Likewise.
12735 * grub-core/Makefile.core.def: Likewise.
12736 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12737 (none_decompress): Likewise.
12738 (lsdev): New module.
12739 (datetime): Use lib/arc/datetime.c on ARC.
12740 (part_dvh): New module.
12741 * grub-core/commands/arc/lsdev.c: New file.
12742 * grub-core/disk/arc/arcdisk.c: Likewise.
12743 * grub-core/kern/mips/arc/init.c: Likewise.
12744 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12745 aligned addresses.
12746 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12747 support.
12748 (grub_arch_dl_relocate_symbols): Likewise.
12749 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12750 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12751 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12752 platforms.
12753 * grub-core/lib/arc/datetime.c: New file.
12754 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12755 pci.h on non-loongson.
12756 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12757 (grub_linux_boot): Set unused registers to 0.
12758 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12759 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12760 * grub-core/mmap/mips/uppermem.c: ...here.
12761 * grub-core/partmap/dvh.c: New file.
12762 * grub-core/term/arc/console.c: Likewise.
12763 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12764 (grub_terminfo_set_current): Add terminal "arc".
12765 (grub_terminfo_readkey): Support ARC sequences.
12766 * include/grub/arc/arc.h: New file.
12767 * include/grub/arc/console.h: Likewise.
12768 * include/grub/disk.h (grub_disk_dev_id): Add
12769 GRUB_DISK_DEVICE_ARCDISK_ID.
12770 * include/grub/mips/arc/kernel.h: New file.
12771 * include/grub/mips/arc/memory.h: Likewise.
12772 * include/grub/mips/arc/time.h: Likewise.
12773 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12774 * include/grub/mips/kernel.h (grub_halt): ... here.
12775 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12776 here...
12777 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12778 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12779 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12780 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12781 proto.
12782 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12783 from here ...
12784 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12785 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12786 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12787 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12788 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12789 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12790 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12791 (grub_phys_addr_t): Moved from here ...
12792 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12793 (grub_vtop): Moved from here ...
12794 * include/grub/mips/memory.h (grub_vtop): ... here.
12795 (grub_map_memory): Moved from here ...
12796 * include/grub/mips/memory.h (grub_map_memory): ... here.
12797 (grub_unmap_memory): Moved from here ...
12798 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12799 (grub_machine_mmap_iterate): Moved from here ...
12800 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12801 (grub_mmap_get_lower): Moved from here ...
12802 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12803 (grub_mmap_get_upper): Moved from here ...
12804 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12805 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12806 here ...
12807 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12808 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12809 here ...
12810 * include/grub/mips/time.h (grub_get_rtc): ... here.
12811 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12812 here ...
12813 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12814 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12815 here ...
12816 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12817 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12818 definition.
12819 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12820 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12821 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12822 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12823 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12824 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12825 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12826 (GRUB_MACHINE_LINK_ADDR): Likewise.
12827 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12828 to 6.
12829 * util/grub-install.in: Run dvhtool on ARC.
12830 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 12831 (generate_image): Handle ECOFF output for mips-arc.
400b9371 12832
c8ecc840
VS
128332011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12834
12835 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12836 blocks.
12837
153a4b55
VS
128382011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12839
12840 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12841 after enabling port.
12842
ff44d107
VS
128432011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 Skip incorrect USB devices.
12846
12847 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12848 configcnt == 0.
12849 * include/grub/usb.h (grub_usb_err_t): New enum value
12850 GRUB_USB_ERR_BADDEVICE.
12851
638dbe4f
VS
128522011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12853
12854 Fuloong video init support.
12855
12856 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12857 well.
12858 (grub_vga_read_arx): New function.
12859 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12860 definition.
12861 (framebuffer): New members io, mmioptr and mmiobase.
12862 (read_sis_cmd): New function.
12863 (write_sis_cmd): Likewise.
12864 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12865 rather than 640x400.
12866 * grub-core/video/sis315_init.c: New file.
12867
c3fc520c
VS
128682011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12869
12870 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12871 non-loongson.
12872 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12873 to grub_dl_register_symbol.
12874
67b1e5c9
VS
128752011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12876
12877 Fix compilation errors.
12878
12879 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12880 potentially unused.
12881 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12882 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12883 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12884 to loongson machines.
12885
b756f75f
VS
128862011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12887
12888 Several FS mtime support.
12889
12890 * grub-core/fs/affs.c (grub_affs_time): New struct.
12891 (grub_affs_file): New field mtime.
12892 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12893 type. Removed 'size'. New field 'di'. All users updated.
12894 (grub_affs_mount): Simplify checsum checking.
12895 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12896 (grub_affs_dir): Handle mtime.
12897 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12898 (grub_cpio_dir): Likewise.
12899 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12900 (grub_hfs_filerec): New field mtime.
12901 (grub_hfs_dir): Handle mtime.
12902 (grub_hfs_mtime): New function.
12903 (grub_hfs_fs): Register grub_hfs_mtime.
12904 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12905 (grub_iso9660_dir): New field mtime.
12906 (grub_fshelp_node): New field dirent.
12907 (iso9660_to_unixtime): New function.
12908 (iso9660_to_unixtime2): Likewise.
12909 (grub_iso9660_read_symlink): Use node->dirent.
12910 (grub_iso9660_iterate_dir): Likewise.
12911 (grub_iso9660_dir): Set mtime.
12912 (grub_iso9660_mtime): New function.
12913 (grub_iso9660_fs): Register grub_iso9660_mtime.
12914 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12915 (grub_jfs_inode): New fields atime, ctime and mtime.
12916 (grub_jfs_dir): Set mtime.
12917 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12918 * grub-core/fs/ntfs.c (list_file): Set mtime.
12919 (grub_ntfs_dir): Likewise.
12920 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12921 (grub_reiserfs_iterate_dir): Set mtime.
12922 (grub_reiserfs_dir): Likewise.
12923 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12924 (grub_fshelp_node): Likewise.
12925 (grub_sfs_iterate_dir): Set mtime.
12926 (grub_sfs_dir): Likewise.
12927 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12928 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12929 (grub_xfs_inode): New fields atime, mtime, ctime.
12930 (grub_xfs_dir): Set mtime.
12931 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12932 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12933 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12934
12935 Support UDF symlinks.
12936
12937 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12938 (grub_ufs_read_symlink): New function. All users updated.
12939
12940 Check amiga partmap checksum.
12941
12942 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12943 (grub_amiga_partition): Likewise.
12944 (amiga_partition_map_checksum): New function.
12945 (amiga_partition_map_iterate): Check checksum.
12946
5470225d
VS
129472011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12948
12949 ROMFS support.
12950
12951 * Makefile.util.def (libgrubmods.a): Add romfs.
12952 * grub-core/Makefile.core.def (romfs): New module.
12953 * grub-core/fs/romfs.c: New file.
12954
d4680a35
VS
129552011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 Squashfs v4 support.
12958
12959 * Makefile.util.def (libgrubmods.a): Add squash4.
12960 * grub-core/Makefile.core.def (squash4): New module.
12961 * grub-core/fs/squash4.c: New file.
12962 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12963 disk_input_start, disk_input.
12964 (get_byte): Handle disk_input.
12965 (grub_zlib_disk_read): New function.
12966 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12967
bcb18e74
FZ
129682011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
129692011-05-15 Feiran Zheng <famcool@gmail.com>
12970
12971 * Makefile.util.def (libgrubmods.a): Add minix3.
12972 * grub-core/Makefile.core.def (minix3): New module.
12973 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12974 (GRUB_MINIX_BSIZE): Removed.
12975 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12976 (grub_minix_ino_t): New type.
12977 (grub_minix_le_to_cpu_ino): New macro.
12978 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12979 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12980 (grub_minix_data): New field block_size.
12981 (grub_minix_read_file): Handle 64-bit correctly.
12982 * grub-core/fs/minix3.c: New file.
12983
32297d5f
TG
129842011-05-15 Tristan Gingold <gingold@free.fr>
129852011-05-15 Robert Millan <rmh.grub@aybabtu.com>
129862011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12987
12988 IA64 support.
12989
12990 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12991 * configure.ac: Add ia64-efi target.
12992 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12993 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12994 * gentpl.py: Add ia64_efi platform.
12995 Rename x86_efi to efi and Add ia64-efi. All users updated.
12996 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12997 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12998 Remove kern/generic/rtc_get_time_ms.c on EFI.
12999 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
13000 kern/ia64/dl_helper.c on ia64-efi.
13001 Add kern/emu/cache.c on emu.
13002 (linux): Use on loader/ia64/efi/linux.c on ia64.
13003 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
13004 whether symbol is a function.
13005 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
13006 (grub_symbol): New field 'isfunc'.
13007 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
13008 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
13009 (grub_dl_load_segments): Place all sections into the same region.
13010 [__ia64__]: Create trampolines and got.
13011 [GRUB_MACHINE_EMU]: Call mprotect.
13012 (grub_dl_resolve_symbols): Resolve symbol type as well.
13013 [__ia64__]: Create function descriptors.
13014 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
13015 (grub_rtc_get_time_ms): ... this. Expressions simplified.
13016 (grub_get_rtc): New function.
13017 * grub-core/kern/emu/cache.c [__ia64__]: New file.
13018 * grub-core/kern/emu/cache.S: Renamed to ...
13019 * grub-core/kern/emu/cache_s.S: ... this.
13020 [__ia64__]: Add a nop.
13021 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
13022 [__ia64__]: New function.
13023 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
13024 * grub-core/kern/ia64/dl.c: New file.
13025 * grub-core/kern/ia64/dl_helper.c: Likewise.
13026 * grub-core/kern/ia64/efi/init.c: New file.
13027 * grub-core/kern/ia64/efi/startup.S: Likewise.
13028 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
13029 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
13030 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
13031 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
13032 * grub-core/loader/ia64/efi/linux.c: New file.
13033 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
13034 (GRUB_MOD_DEP): Likewise.
13035 (grub_dl) [__ia64__]: New fields got and tramp.
13036 (grub_dl): New field 'base'.
13037 (grub_dl_register_symbol): New argument isfunc. All users updated.
13038 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
13039 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
13040 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
13041 (grub_ia64_dl_get_tramp_got_size): New proto.
13042 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
13043 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
13044 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
13045 * include/grub/efi/api.h: Skip call wrappers on ia64.
13046 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
13047 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
13048 * include/grub/elf.h (ELF_ST_INFO): New definition.
13049 * include/grub/ia64/efi/kernel.h: New file.
13050 * include/grub/ia64/efi/memory.h: Likewise.
13051 * include/grub/ia64/efi/time.h: Likewise.
13052 * include/grub/ia64/kernel.h: Likewise.
13053 * include/grub/ia64/setjmp.h: Likewise (from glibc).
13054 * include/grub/ia64/time.h: New file.
13055 * include/grub/ia64/types.h: Likewise.
13056 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
13057 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
13058 New protos.
13059 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
13060 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
13061 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
13062 * util/grub-mkimage.c (image_target_desc): New field pe_target.
13063 All users updated.
13064 (EFI64_HEADER_SIZE): New definition. All users updated.
13065 (image_targets): Add ia64-efi.
13066 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
13067 jumpers_addr. All users updated.
13068 Create function descriptors.
13069 (count_funcs): New function.
13070 (unaligned_uint32): New struct.
13071 (MASK20): New definition.
13072 (MASK19): Likewise.
13073 (MASKF21): Likewise.
13074 (add_value_to_slot_20b): New function.
13075 (add_value_to_slot_21_real): Likewise.
13076 (add_value_to_slot_21): Likewise.
13077 (ia64_kernel_trampoline): New struct.
13078 (nopm): New variable.
13079 (jump): Likewise.
13080 (make_trampoline): New function.
13081 (relocate_addresses): Handle ia64.
13082 (make_reloc_section): Likewise.
13083 (load_image): Likewise.
13084
983b414d
VS
130852011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13086
13087 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
13088 warning. Move variables before code while on it.
13089
5d063cdc
VS
130902011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13091
13092 Fuloong support.
13093
13094 * configure.ac: Rename yeeloong platform to loongson. All users updated.
13095 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
13096 * grub-core/boot/mips/loongson/fuloong.S: New file.
13097 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
13098 Explicitly init CS5536.
13099 [FULOONG]: Don't use serial until CS5536 is available.
13100 Set GPIO based on dumps.
13101 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
13102 [FULOONG]: Handle GPIO and memory controller differences.
13103 Parse machine type in $a2.
13104 * grub-core/boot/mips/startup_raw.S: Determine and save the
13105 architecture.
13106 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
13107 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
13108 init on architecture type.
13109 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
13110 SIS315E. Don't init at_keyboard on fuloong.
13111 (grub_halt): Support Fuloong.
13112 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
13113 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
13114 (loongson_machtypes): New array.
13115 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
13116 type.
13117 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
13118 config. All users updated. Handle CS5536 serial.
13119 * grub-core/term/serial.c (grub_serial_register): Conditionalise
13120 default port on machine type. Register serial as inactive.
13121 * grub-core/video/sis315pro.c: New file.
13122 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
13123 definition.
13124 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
13125 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
13126 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
13127 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
13128 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
13129 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
13130 to ...
13131 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
13132 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
13133 definition.
13134 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
13135 (grub_arch_machine): New extern var.
13136 * include/grub/mips/loongson/serial.h
13137 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
13138 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
13139 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
13140 (GRUB_MACHINE_SERIAL_PORT0): ... this.
13141 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
13142 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
13143 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
13144 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
13145 * include/grub/term.h (grub_term_register_input_inactive): New inline
13146 function.
13147 (grub_term_register_output_inactive): Likewise.
13148 * include/grub/video.h (grub_video_driver_id): New value
13149 GRUB_VIDEO_DRIVER_SIS315PRO.
13150 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
13151 New field "names". All users updated.
13152 New field value IMAGE_FULOONG_FLASH.
13153 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
13154
6ada82d1
JU
131552011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
13156
13157 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
13158 and add some clarification.
13159
90c571a4
VS
131602011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13161
13162 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
13163 platforms if kernel is compressed.
13164
de04eecf
VS
131652011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13166
13167 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
13168 unused modules since currently referrence counter isn't reliable and
13169 there isn't much memory to recover there anyway.
13170
57688121
VS
131712011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
13174 rather than resetting it to allow modules to reference themselves
13175 in init.
13176
3d2c7e35
VS
131772011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13178
13179 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
13180 counter on dependencies since grub_dl_unref already handles this.
13181
b25db218
VS
131822011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13183
13184 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
13185 on error if not already done.
13186
25a45338
VS
131872011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13188
13189 Fix few potential memory misusage.
13190
13191 * grub-core/font/font.c (load_font_index): Don't free char_index to
13192 avoid double free.
b25db218
VS
13193 (grub_font_load): Zero-fill font at alloc for safety.
13194 Close file on error.
13195 (free_font): Free bmp_idx.
25a45338 13196
0cac83df
VS
131972011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13198
13199 * docs/grub.texi (Installation): Fix several outdated claims.
13200
2217a143
VS
132012011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13202
13203 Handle module_license on windows.
13204
13205 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
13206 sections shifted.
13207 (insert_string): Make argument const char * instead of char *.
13208 (write_section_data): Handle long section names.
13209 Handle module_license.
13210
d4de6b01
VS
132112011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
13214 handle class-free menuentries.
13215 (grub_normal_add_menu_entry): Add a check to be sure.
13216
4c2a3b43
VS
132172011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13218
13219 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
13220 PgUp and PgDown.
13221
85c6210f
VS
132222011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13223
13224 * configure.ac: Bump version to 1.99.
13225
36084912
VS
132262011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13227
13228 Give ATA device a bit more time on first try in order to allow disks
13229 to spin up.
13230
13231 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
13232 if dev->present is 1. Reset dev->present on failure.
13233 (grub_ata_device_initialize): Set dev->present to 1.
13234 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
13235 (grub_ata_device): New member 'present'.
13236
bda0e219
VS
132372011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13238
13239 * util/grub-mkimage.c (generate_image): Update hash.
13240
19e1c41b
VS
132412011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13242
13243 Flush caches on DMA memory.
13244
13245 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
13246 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
13247 (grub_dma_free): Likewise.
13248 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
13249
91bbcc0c
VS
132502011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13251
13252 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
13253 to avoid asm treating ld and sd as macros.
13254
60ddfad3
VS
132552011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13256
13257 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
13258 decompressor.
13259
a298aa04
VS
132602011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13261
13262 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
13263 grub_decompress_core since later would fail if grub_decompress_core
13264 is too far.
13265
9b44feca
VS
132662011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
13269 R_MIPS_JALR since it's used by newer compiler.
13270
56dbe7b4
VS
132712011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
13272
13273 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
13274
52856af2
VS
132752011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13276
13277 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
13278 file_path to 0 for surety.
13279 (grub_chainloader_boot): Set exit_data to NULL.
13280 Unset the loader once done.
13281 (grub_cmd_chainloader): Fix confusing error message if file is empty.
13282
9c9bfc6d
VS
132832011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13284
13285 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
13286 unknown key into a dprintf.
13287
dd94a3df
VS
132882011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13289
13290 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
13291 on first non-existant partition.
13292
fa68d99c
VS
132932011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13294
13295 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
13296 openning fails.
13297 Reported by: Mark Korenberg.
13298
157effb7
VS
132992011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13300
13301 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
13302 overflow.
13303
ea75312f
VS
133042011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13305
13306 * util/grub-mkimage.c (main): Explicitely flush and sync the output
13307 before closing to ensure that it will be readable by grub-setup.
13308
072b5d31
VS
133092011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13310
13311 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
13312 (devpath_1): Use MAKE_PIWG_PATH.
13313 (devpath_2): Likewise.
13314 (devpath_3): Likewise.
13315 (devpath_4): Likewise.
13316 (devpath_5): Likewise.
13317 (devpath_6): Likewise.
13318
13319 The appleldr.mod was checked that to be binary identical to previous
13320 version.
13321
7fae0051
Z
133222011-05-05 Zach <mikezackles>
13323
13324 Support 2010 Macbooks.
13325
13326 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13327 (devs): Add devpath_6.
13328
7c515bee
VS
133292011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13330
13331 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13332 /dev/random. /dev/urandom is good enough for our purposes (salting).
13333
ed660bd8
VS
133342011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13335
13336 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13337
ee5614b7
VS
133382011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13339
13340 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13341 hexadecimal.
13342
664889a6
VS
133432011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13344
13345 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13346 and not 0 on failure.
13347
bd405bbc
CW
133482011-05-03 Colin Watson <cjwatson@ubuntu.com>
13349
13350 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13351 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13352 disk; otherwise grub_fs_probe will not fall back to the next
13353 filesystem.
13354 (grub_pxefs_open): Likewise, for consistency.
13355 Reported and tested by: Ezekiel Grave.
13356
4ebff753
CW
133572011-05-03 Colin Watson <cjwatson@ubuntu.com>
13358
13359 * tests/partmap_test.in: Don't hardcode path to parted.
13360 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13361
8f942553
CW
133622011-05-01 Colin Watson <cjwatson@ubuntu.com>
13363
13364 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13365 of `ls' to find out which devices are available.
13366
3c62402d
VS
133672011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13368
13369 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13370 than source address for efi mmap buffer.
13371
723f63f2
VS
133722011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13373
13374 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13375 wrong action on non-detecting the magic.
13376
68797f92
VS
133772011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13378
13379 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13380 already supplied by another part of the module (fixes compilation on
13381 FreeBSD).
13382
6be8715d
VS
133832011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13384
13385 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13386 match the one used by mdadm.
13387
e91dba5b
CW
133882011-04-21 Colin Watson <cjwatson@ubuntu.com>
13389
13390 * po/README: Add instructions for creating po/LINGUAS.
13391
c85140b3
CW
133922011-04-21 Colin Watson <cjwatson@ubuntu.com>
13393
13394 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13395 #551428.
13396
13397 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13398 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13399 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13400 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13401 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13402 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13403 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13404 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13405 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13406 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13407 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13408 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13409 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13410 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13411 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13412 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13413 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13414 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13415 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13416 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13417 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13418 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13419
92051871
CW
134202011-04-21 Colin Watson <cjwatson@ubuntu.com>
13421
13422 * grub-core/kern/emu/getroot.c
13423 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13424 test that was incorrectly reintroduced in r3214.
13425 Reported by: Ian Dall. Fixes Savannah bug #33133.
13426
b13f79a4
CW
134272011-04-21 Colin Watson <cjwatson@ubuntu.com>
13428
13429 Fix stack pointer handling in 16-bit relocator.
13430
13431 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13432 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13433 Fixes Ubuntu bug #683904.
13434
9b710a88
VS
134352011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13436
13437 * configure.ac: Bump version to 1.99~rc2.
13438
d97e7b59
VS
134392011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13440
13441 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13442 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13443 * grub-core/lib/x86_64/setjmp.S: Likewise.
13444 * grub-core/lib/mips/setjmp.S: Likewise.
13445 * grub-core/lib/powerpc/setjmp.S: Likewise.
13446 * grub-core/lib/sparc64/setjmp.S: Likewise.
13447
0624551c
VS
134482011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13449
13450 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13451 * grub-core/lib/efi/datetime.c: Likewise.
13452
e8f28d4c
VS
134532011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13454
13455 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13456 New function.
13457 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13458 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13459 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13460
bba79a15
VS
134612011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13462
13463 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13464 bitmap.
13465 (grub_gfxterm_term_init): Likewise.
13466
abc474ef
VS
134672011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13468
13469 Take into account the decorations the computing menu entry width.
13470
13471 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13472 (grub_gfxmenu_create_box): Register get_border_width.
13473 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13474 if available.
13475 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13476 get_border_width.
13477
e74b3947
EP
134782011-04-18 Endres Puschner <code@e7p.de>
13479
13480 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13481 Don't skip first class.
13482
34faa595
VS
134832011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13484
13485 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13486 chunks.
13487 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13488
93a777e3
VS
134892011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13490
13491 Complete 64-bit division support.
13492
13493 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13494 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13495 * include/grub/misc.h (grub_divmod64): Rename to ...
13496 (grub_divmod64_full): ... this.
13497 (grub_divmod64): New inline function.
13498
a5102d94
VS
134992011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13500
13501 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13502
f3fb7b36
VS
135032011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13504
13505 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13506 performing the necessary test.
13507
9ac718b0
VS
135082011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13511 (kfreebsd.elf): Likewise.
13512 (pc-chainloader.elf): Likewise.
13513 (ntldr.elf): Likewise.
13514
50d2cc5a
VS
135152011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13516
13517 Identify RAID by its UUID rather than (guessed) name.
13518
13519 * grub-core/disk/raid.c (ascii2hex): New function.
13520 (grub_raid_open): Accept mduuid/%s specification.
13521 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13522 (get_mdadm_uuid): ... this.
13523 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13524
e03f7bea
VS
135252011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13528 to negative size.
13529
e74c3112
CW
135302011-04-13 Colin Watson <cjwatson@ubuntu.com>
13531
13532 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13533 btrfs subvolume.
13534 * util/grub.d/20_linux_xen.in: Likewise.
13535
78fa584f
CW
135362011-04-13 Colin Watson <cjwatson@ubuntu.com>
13537
13538 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13539 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13540
13541 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13542 Build a list of relevant visible mounts using the mnt_id and
13543 parent_mnt_id fields, and then scan that list at the end.
13544
9d5f8162
CW
135452011-04-12 Colin Watson <cjwatson@ubuntu.com>
13546
13547 * docs/grub.texi (normal): New section.
13548 (normal_exit): New section.
13549 (Embedded configuration): Add reference to normal.
13550 (GRUB only offers a rescue shell): Likewise.
13551 * docs/grub-dev.texi (Error Handling): Fix typo.
13552
09a9d66f
CW
135532011-04-12 Colin Watson <cjwatson@ubuntu.com>
13554
13555 * NEWS: Drop obsolete entry about probe-only btrfs support.
13556
0c676933
CW
135572011-04-12 Colin Watson <cjwatson@ubuntu.com>
13558
13559 * util/import_gcry.py: Fix typo.
13560
ec9f5e0d
VS
135612011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13562
13563 * NEWS: Add btrfs support.
13564
fe6b2cba
VS
135652011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
135662011-04-11 Colin Watson <cjwatson@ubuntu.com>
13567
13568 BtrFS support. Written by me (Vladimir) with important bugfixes and
13569 even more important testing by Colin.
13570
13571 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13572 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13573 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13574 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13575 mem_input_off and mem_input. All users updated to accept in-RAM input.
13576 (gzio_seek): New function.
13577 (test_zlib_header): Likewise.
13578 (grub_gzio_read): Likewise.
13579 (grub_zlib_decompress): Likewise.
13580 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13581 Accept partial and non-virtual mounts.
13582 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13583 avoid receiving /dev/dm-X as device.
13584 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13585 Handle bind and partial mounts.
13586 * grub-core/lib/crc.c: New file.
13587 * include/grub/deflate.h: Likewise.
13588 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13589 proto.
13590 * include/grub/lib/crc.h: New file.
13591
e745cf0c
VS
135922011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13593
13594 Implement automatic module license checking according to new GNU
13595 guidelines.
13596
13597 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13598 (grub_dl_load_core): Use grub_dl_check_license.
13599 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13600 (GRUB_MOD_LICENSE): Likewise.
13601 (GRUB_MOD_DUAL_LICENSE): Likewise.
13602 All modules updated.
13603
2a9bc016
CW
136042011-04-11 Colin Watson <cjwatson@ubuntu.com>
13605
13606 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13607 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13608 loaders.
13609 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13610
8a3bc88e
VS
136112011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13612
13613 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13614
af869a4a
VS
136152011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13616
13617 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13618 failed.
13619
9ee8d94f
VS
136202011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13621
13622 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13623 parenthesis in the middle of the filename.
13624
b01abe3e
VS
136252011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13626
13627 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13628 rather than trying to put initrd way too high.
13629 Reported by: Ryan Lortie <desrt@desrt.ca>
13630
335bda1e
VS
136312011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13632
13633 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13634 improperly removed string.
13635
5ca1a64d
VS
136362011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13637
13638 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13639 is_disk.
13640 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13641 (open_device) Likewise.
13642 (grub_util_biosdisk_close): Likewise.
d8ce9995 13643 Reported by: Mark Korenberg.
5ca1a64d 13644
cbac5b1e
AK
136452011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13646
13647 * util/grub-mkconfig_lib.in: Add missing quotes.
13648
088cdb65
CW
136492011-04-10 Colin Watson <cjwatson@ubuntu.com>
13650
13651 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13652 is NULL.
13653
8b8a81fa
VS
136542011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13655
13656 Dynamically count the number of lines for the lower banner.
13657
13658 * grub-core/normal/menu_entry.c (per_term_screen): New member
13659 num_entries.
13660 (print_down): Use num_entries.
13661 (update_screen): Likewise.
13662 (grub_menu_entry_run): Set num_entries.
13663 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13664 num_entries.
13665 (grub_print_message_indented): Move real part to ...
13666 (grub_print_message_indented_real): ... here. Additional argument
13667 dry_run.
13668 (draw_border): Additional argument num_entries.
13669 (print_message): Additional argument dry_run.
13670 (print_entries): Receive menu viewer data.
13671 (grub_menu_init_page): New argment num_entries.
13672 (menu_text_set_chosen_entry): Use num_entries.
13673 (grub_menu_try_text): Likewise.
13674 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13675 All users updated.
13676 (grub_ucs4_count_lines): New function.
13677 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13678 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13679 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13680 (grub_term_border_height): Likewise.
13681 (grub_term_num_entries): Likewise.
13682
277f955b
VS
136832011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13684
13685 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13686 Remove now unused string.
13687
536ce85a
CW
136882011-04-09 Colin Watson <cjwatson@ubuntu.com>
13689
13690 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13691 build system.
13692 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13693
13694 (Comment): Fix typo.
13695 (Getting started): General copy-editing.
13696 (Typical Development Experience): Likewise.
13697 (Error Handling): Likewise.
13698 (Video API): Likewise.
13699
2cf09e32
CW
137002011-04-09 Colin Watson <cjwatson@ubuntu.com>
13701
13702 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13703 throughout.
13704
1ec652f4
VS
137052011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13706
13707 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13708 directory.
13709
2c583728
CW
137102011-04-08 Colin Watson <cjwatson@ubuntu.com>
13711
13712 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13713 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13714 "development".
13715
d7a565e9
VS
137162011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13717
13718 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13719 grub_strcpy since the lines aren't necessarily 0-terminated.
13720
7c2e4909
VS
137212011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13722
13723 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13724 root on legacy.
13725
34c09785
VS
137262011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13727
13728 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13729 (GRUB_MOD_INIT): DEVICE isn't optional.
13730
6a6f8058
VS
137312011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13732
13733 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13734 word on new line if it's too long anyway. Fixes a hang.
13735
2e335e90
VS
137362011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13737
13738 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13739 const.
13740 * util/grub-setup.c (main): Reuse md device name if available.
13741 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13742 not GRUB name as argument.
13743 Based on patch by: Florian Wagner <fwagner>.
13744
10a7a867
VS
137452011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13746
13747 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13748 Place mbi on low memory for better compatibility.
13749
7a3d6cd9
VS
137502011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13751
13752 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13753
18dd6b47
VS
137542011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
137552011-04-08 Colin Watson <cjwatson@ubuntu.com>
13756
13757 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 13758 * conf/Makefile.common: Likewise.
18dd6b47 13759
3c0e3f14
VS
137602011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13761
f7148863
VS
13762 * grub-core/normal/menu.c: Add missing include.
13763
137642011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13765
13766 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 13767
6d1fa41f
MZ
137682011-04-08 Martin Zuther <mzuther@mzuther.de>
13769
13770 * util/grub-mkconfig.in: Ignore emacsen backup.
13771
478182a8
VS
137722011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13773
13774 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13775 on open.
13776 (grub_util_biosdisk_close): Likewise.
13777
72a89a54
VS
137782011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13779
13780 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13781 const attribute and use grub_isdigit.
13782
b5ebecfa
A
137832011-04-06 Andrey <dev_null@ukr.net>
13784
13785 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13786 gcc warning.
13787
7755f66e
VS
137882011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13789
13790 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13791 useful grub_dprintf's.
13792
461121ff
VS
137932011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13794
13795 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13796
2a961775
VS
137972011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13798
13799 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13800
adf594cc
VS
138012011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13802
13803 Output errors if theme loading failed.
13804
13805 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13806 grub_gfxterm_fullscreen on error paths to ...
13807 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13808 theme loading error.
13809
665900a3
VS
138102011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13811
13812 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13813 space for older compilers.
13814 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13815
a562b479
VS
138162011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13817
13818 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13819 and report them as not RAID members since they are useless for GRUB.
13820 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13821
850e9373
VS
138222011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13823
13824 Increase LVM implementation robustness in order not to crash on
13825 configurations like pvmove. Previously code assumed that in some places
13826 only lvs or only pvs are used whereas it seems that they are used
13827 interchangeably.
13828
13829 * grub-core/disk/lvm.c (read_node): New function.
13830 (read_lv): Use read_node.
13831 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13832 Match volumes only at the end when all lvs are found. Take both
13833 pvs (first) and lvs (second) into account.
13834 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13835 mirror_* into node_*. All users updated.
13836 (grub_lvm_stripe): Merge this ...
13837 (grub_lvm_mirror): ... and this ...
13838 (grub_lvm_node): ... into this. All users updated.
13839
6f332153
VS
138402011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13841
13842 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13843 of function to allow further scanning for LVMs.
13844
829ea451
VS
138452011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13846
13847 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13848 on failed seek as it breaks open fd reusage.
13849
09ceb9a5
VS
138502011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13851
13852 * util/grub-install.in: Add a recommendation to use --recheck before
13853 reporting bugs.
13854
67e11623
VS
138552011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13856
13857 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13858 are obtained.
13859
caee5efd
VS
138602011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 GRUB developper manual based on existing Internals section and
13863 contributions by the various authors with active copyright assignment.
13864
13865 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13866 * docs/font_char_metrics.png: New file.
13867 * docs/font_char_metrics.txt: Likewise.
13868 * docs/grub-dev.texi: Likewise.
13869 * docs/grub.texi (Internals): Move from here ...
13870 * docs/grub-dev.texi: ... here.
13871
2cccc747
CW
138722011-04-01 Colin Watson <cjwatson@ubuntu.com>
13873
13874 Store the loopback device as data on loopback grub_disk structures,
13875 rather than the file it points to. This fixes use of freed memory
13876 if an existing loopback device is replaced.
13877
13878 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13879 disk->data, not dev->file.
13880 (grub_loopback_read): Adjust file assignment to match.
13881 Fixes Ubuntu bug #742967.
13882
186ae367
CW
138832011-04-01 Colin Watson <cjwatson@ubuntu.com>
13884
13885 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13886 when replacing an existing device.
13887
cfed2ad0
VS
138882011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13889
13890 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13891 memory corruptions.
13892
13893 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13894 unsigned.
13895 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13896 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13897 (grub_jfs_read_inode): Likewise.
13898 (grub_jfs_opendir): Likewise. Remove now useless casts.
13899 (grub_jfs_getent): Likewise.
13900 Make ino a grub_uint32_t rather than int.
13901 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13902 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13903 division and module with bit operations.
13904 (grub_jfs_find_file): Make ino a grub_uint32_t.
13905 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13906
05d2ed32
CW
139072011-04-01 Colin Watson <cjwatson@ubuntu.com>
13908
13909 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13910 warning. (This was in fact always initialised before use, but GCC
13911 wasn't smart enough to prove that.)
13912 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13913
91dc6073
VS
139142011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13915
13916 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13917 stack alignment.
13918 (efi_wrap_1): Likewise.
13919 (efi_wrap_2): Likewise.
13920 (efi_wrap_3): Likewise.
13921 (efi_wrap_4): Likewise.
13922 (efi_wrap_5): Likewise.
13923 (efi_wrap_6): Likewise.
13924 (efi_wrap_10): Likewise.
13925 Based on information by: Red Hat/Peter Jones.
13926
a8afc1d1
CW
139272011-03-31 Colin Watson <cjwatson@ubuntu.com>
13928
13929 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13930 set-but-not-used variable.
13931
a826cc7d
CW
139322011-03-31 Colin Watson <cjwatson@ubuntu.com>
13933
13934 * docs/grub.texi (Simple configuration): Be more explicit about
13935 GRUB_DEFAULT, and add an example.
13936 Reported by: Leslie Rhorer.
13937
875b67ba
CW
139382011-03-30 Colin Watson <cjwatson@ubuntu.com>
13939
13940 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13941 shell".
13942
fd7cd914
AS
139432011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13944
13945 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13946 * util/grub.d/20_linux_xen.in: Likewise.
13947
090b1b6a
VS
139482011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13949
13950 * util/grub.d/10_linux.in: Try alternative config filenames where
13951 we parse config file.
13952 * util/grub.d/20_linux_xen.in: Likewise.
13953
baad885c
AS
139542011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13955
13956 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13957 * util/grub.d/20_linux_xen.in: Likewise.
13958
241e41f5
VS
139592011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13960
13961 * grub-core/disk/raid.c (insert_array): Add few potentially
13962 useful grub_util_info.
13963 (grub_raid_register): Likewise.
13964
56445fb2
VS
139652011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13966
13967 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13968 Preserve partition number in mdadm code path.
13969
c871b1c6
VS
139702011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13971
13972 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13973 few potentially useful grub_util_info.
13974
5e631b4f
CW
139752011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13976
13977 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13978
2d5d0333
CW
139792011-03-30 Colin Watson <cjwatson@ubuntu.com>
13980
13981 * docs/grub.texi (default): Use @example rather than nested
13982 itemized lists to avoid breaking gendocs.
13983
3d7ed04e
CW
139842011-03-30 Colin Watson <cjwatson@ubuntu.com>
13985
13986 * docs/grub.texi (Future): Update.
13987
abf04200 139882011-03-30 Colin Watson <cjwatson@ubuntu.com>
13989
13990 * docs/grub.texi (Environment): New chapter.
13991 (Changes from GRUB Legacy): Link to "Environment block" section for
13992 details of limitations.
13993 (Simple configuration): Likewise. Link to documentation of gfxmode
13994 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13995 respectively.
13996 (Shell-like scripting): Note that normal variables are stored in the
13997 environment.
13998 (gettext): Link to documentation of lang and locale_dir.
13999 (list_env): New section.
14000 (load_env): New section.
14001 (save_env): New section.
14002
14003 (Reporting bugs): Fix typo.
14004
e1ad0edd
VS
140052011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14006
14007 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
14008 the example.
14009
5d803174
VS
140102011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14011
14012 * grub-core/term/at_keyboard.c (set_scancodes)
14013 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
14014
2a2da1d0
CW
140152011-03-30 Colin Watson <cjwatson@ubuntu.com>
14016
14017 * docs/grub.texi (Menu-specific commands): Remove some semantics
14018 that were true in GRUB Legacy but not in GRUB 2.
14019 (submenu): New section.
14020 (false): New section.
14021 (read): New section.
14022 (true): New section.
14023
a7527639
CW
140242011-03-30 Colin Watson <cjwatson@ubuntu.com>
14025
14026 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
14027
140282011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
14029
14030 * docs/grub.texi (Simple configuration): Explain some of the
14031 current limitations of grub-mkconfig.
8a748df2 14032 Reported by: Leslie Rhorer.
e30af029 14033
fc858482
VS
140342011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14035
14036 Old macs search for boot.efi rather than for bootia32.efi.
14037
14038 * util/grub-install.in: Copy bootia32.efi to boot.efi.
14039 * util/grub-mkrescue.in: Likewise.
14040 Suggested by: Peter Jones.
14041
e1eb511d
VS
140422011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14043
14044 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
14045
70e75364
VS
140462011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
14049 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
14050 (grub_lvm_mirror): New struct.
14051 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
14052 (grub_lvm_iterate): Iterate only visible volumes.
14053 (grub_lvm_read): Factor out to ..
14054 (read_lv): ... this. Support mirrors.
14055 (grub_lvm_read): New wrapper function.
14056 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
14057 stripped or mirrored.
14058
fc18f6a3
VS
140592011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14060
14061 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
14062
5c650f4c
CW
140632011-03-29 Colin Watson <cjwatson@ubuntu.com>
14064
14065 * docs/grub.texi (loopback): New section.
14066
61d7156b
CW
140672011-03-29 Colin Watson <cjwatson@ubuntu.com>
14068
14069 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
14070 removed -p option.
14071
994b8264
CW
140722011-03-29 Colin Watson <cjwatson@ubuntu.com>
14073
14074 * docs/grub.texi (BIOS installation): New section, partly based on
14075 previous text in other sections.
14076 (Installing GRUB using grub-install): Replace BIOS discussion with a
14077 cross-reference.
14078 (Images): Likewise.
14079
9e4d19e0
VS
140802011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14081
14082 * grub-core/kern/emu/hostdisk.c (find_partition_start)
14083 [HAVE_DIOCGDINFO]: Add safety checks.
14084
a307c0b2
VS
140852011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
14088 per default compiled in kernel and prior to 8.0 isn't shipped at all.
14089
b4db4f39
CW
140902011-03-29 Colin Watson <cjwatson@ubuntu.com>
14091
14092 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
14093 real_sb->size is zero (e.g. RAID-0), get the disk size from
14094 real_sb->data_size instead.
14095 Fixes Ubuntu bug #743136.
14096
35e5f84c
VS
140972011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14098
14099 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
14100 printf clauses for printing size and start.
14101
d2e29d81
VS
141022011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14103
14104 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
14105 Reported and tested by: Timothy Nikkel.
14106
ed5587af
VS
141072011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14108
14109 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
14110 (dirty_region_add_real): ... this.
14111 (dirty_region_add): Don't discard margin refresh when performing
14112 scheduled repaint.
14113
a1dc717c
VS
141142011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14115
14116 * grub-core/lib/relocator.c (allocate_regstart)
14117 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
14118 terminals are capabple of malloc-free operation.
14119 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14120 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14121
9f3677d3
VS
141222011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
14123
14124 * util/grub-setup.c: Copy the partition table zone if floppy support
14125 is disabled, even if no partition table is found.
14126
14127 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
14128 during POST if an invalid partition table is contained in the PBR
14129 of the active partition when GRUB is installed to a partition.
14130
24148725
CW
141312011-03-28 Colin Watson <cjwatson@debian.org>
14132
14133 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
14134 comment.
14135
f329eda7
CW
141362011-03-28 Colin Watson <cjwatson@debian.org>
14137
14138 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
14139 to be specific about what kind of RAID device we're scanning for.
14140
c482ad98
SG
141412011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
14142
14143 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
14144 return freed string.
14145
5ee04984
VS
141462011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14147
14148 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
14149
f4727da9
VS
141502011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14151
14152 Use libgeom on FreeBSD to detect partitions.
14153
14154 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
14155 (grub-mkrelpath): Likewise.
14156 (grub-script-check): Likewise.
14157 (grub-editenv): Likewise.
14158 (grub-mkpasswd-pbkdf2): Likewise.
14159 (grub-fstest): Likewise.
14160 (grub-mkfont): Likewise.
14161 (grub-mkdevicemap): Likewise.
14162 (grub-probe): Likewise.
14163 (grub-setup): Likewise.
14164 (grub-ofpathname): Likewise.
14165 (grub-mklayout): Likewise.
14166 (example_unit_test): Likewise.
14167 (grub-menulst2cfg): Likewise.
14168 * grub-core/Makefile.core.def (grub-emu): Likewise.
14169 (grub-emu-lite): Likewise.
14170 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
14171 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
14172 define HAVE_DIOCGDINFO.
14173 (follow_geom_up) [FreeBSD]: New function.
14174 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
14175 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
14176 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
14177 unconditionally of HAVE_DIOCGDINFO.
14178
82fe6c75
VS
141792011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14180
14181 Fix FreeBSD compilation problem.
14182
14183 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
14184 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
14185
4c6c9431
CW
141862011-03-24 Colin Watson <cjwatson@ubuntu.com>
14187
14188 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
14189 Switch back to page zero before loading a kernel, since some kernel
14190 drivers expect that.
14191 Thanks to: Felix Kuehling.
14192
c7064d94
VS
141932011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14194
14195 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
14196 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
14197 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
14198
3f71cded
VS
141992011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14200
14201 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
14202 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
14203
ef6de21a
VS
142042011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14205
14206 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
14207 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
14208 malloc is disabled.
14209
8bc66a2c
VS
142102011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14211
14212 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
14213 for modules headers when counting the needed allocation size.
14214
5657722c
VS
142152011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14216
14217 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
14218 if no ASCII character is found to prevent crash.
14219
41a85f55
AK
142202011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
14221
14222 * grub-core/video/bitmap.c (match_extension): Ignore case.
14223
59e1e5f1
VS
142242011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14225
14226 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
14227
bd4d051a
VS
142282011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14229
14230 * grub-core/script/parser.y: Declare "time" as valid argument.
14231
bae7fcc1
PJ
142322011-03-23 Peter Jones <pjones@redhat.com>
14233
14234 Fix incorrect assert failure reporting.
14235
14236 * grub-core/tests/example_functional_test.c (example_test): Add
14237 a failure comment.
14238 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
14239 (failure_start): ...this. Check that malloc succeeded.
14240 Don't call xvasprintf. Return failure struct.
14241 (failure_append_vtext): New function.
14242 (failure_append_text): Likewise.
14243 (add_failure): Likewise.
14244 (grub_test_assert_helper): Likewise.
14245 * include/grub/test.h (grub_test_assert_helper): New declaration.
14246 (grub_test_assert): Macro rewritten.
14247
537dc9be
VS
142482011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
14251
fa3e01bf
VS
142522011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14253
14254 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
14255
b1d28404
VS
142562011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14257
14258 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
14259 into GRUB-style one.
14260
2e3e2e09
VS
142612011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14262
14263 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
14264 error and not grub_errno.
14265 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
14266
ed57e557
VS
142672011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14268
14269 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
14270 GRUB_USB_SPEED_NONE in case of failure and not the error code.
14271
d1611f01
VS
142722011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14273
14274 * grub-core/efiemu/i386/pc/cfgtables.c
14275 (grub_machine_efiemu_init_tables): Make declaration a prototype.
14276 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
14277 (grub_xnu_unlock): Likewise.
14278 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
14279
7d4e39d6
VS
142802011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14281
14282 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
14283 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
14284 * grub-core/commands/hashsum.c (aliases): Likewise.
14285 * grub-core/commands/setpci.c (pci_registers): Likewise.
14286 * grub-core/disk/usbms.c (attach_hook): Likewise.
14287 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
14288 (zio_checksum_table): Likewise.
14289 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
14290 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
14291 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
14292 * grub-core/lib/relocator.c (leftovers): Likewise.
14293 (extra_blocks): Likewise.
14294 * grub-core/loader/i386/bsd.c (relocator): Likewise.
14295 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
14296 (modules_last): Likewise.
14297 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
14298 (devices): Likewise.
14299 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
14300 (modules_last): Likewise.
14301 * grub-core/normal/auth.c (users): Likewise.
14302 * grub-core/normal/context.c (initial_menu): Likewise.
14303 (current_menu): Likewise.
14304 * grub-core/normal/crypto.c (crypto_specs): Likewise.
14305 * grub-core/term/serial.c (grub_serial_ports): Likewise.
14306 (grub_serial_terminfo_input_template): Likewise.
14307 (grub_serial_terminfo_output_template): Likewise.
14308 (grub_serial_terminfo_input): Likewise.
14309 (grub_serial_terminfo_output): Likewise.
14310 (registered): Likewise.
14311 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
14312
40fc4659
VS
143132011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14314
14315 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
14316 grub_video_mode_type_t.
14317 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
14318 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
14319 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14320
2da48d28
VS
143212011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14322
14323 * util/grub-install.in: Correct the x86-64 name as x86_64.
14324
9b43bf39
CW
143252011-03-11 Colin Watson <cjwatson@ubuntu.com>
14326
14327 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14328 initial chunk read from the kernel always includes GRUB's multiboot
14329 header, which is now outside the first sector.
14330
be1a7ce0
CW
143312011-03-09 Colin Watson <cjwatson@ubuntu.com>
14332
14333 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14334 cached mmap_size, so that this works correctly when called multiple
14335 times.
14336 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14337
83a3c48d
CW
143382011-03-09 Colin Watson <cjwatson@ubuntu.com>
14339
14340 * docs/grub.texi (Simple configuration): Tidy up formatting.
14341
57d75699
SJ
143422011-03-07 Szymon Janc <szymon@janc.net.pl>
14343
14344 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14345 Set-but-not-used variable removed.
14346
028501a0
VS
143472011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14348
14349 Workaround yet another IEEE1275 bug.
14350
14351 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14352 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14353 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14354 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14355 is set.
14356 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14357 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14358
d998657d
VS
143592011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14360
14361 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14362 error.
14363
fee7cdd4
CW
143642011-02-11 Colin Watson <cjwatson@ubuntu.com>
14365
14366 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14367 empty, since in that case we can only generate either nothing or a
14368 syntactically invalid configuration file.
14369 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14370
97286eb5
CW
143712011-02-09 Colin Watson <cjwatson@ubuntu.com>
14372
14373 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14374 (Making a GRUB bootable CD-ROM): Likewise.
14375 (Invoking grub-mkrescue): New section.
14376 Reported by: Yann Dirson. Fixes Debian bug #612585.
14377
22b28eb3
CW
143782011-02-09 Colin Watson <cjwatson@ubuntu.com>
14379
14380 * util/grub-install.in: Remove unnecessary brackets from tr
14381 arguments.
14382 * util/grub.d/10_hurd.in: Likewise.
14383 * util/grub.d/10_kfreebsd.in: Likewise.
14384 * util/grub.d/10_linux.in: Likewise.
14385 * util/grub.d/20_linux_xen.in: Likewise.
14386 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14387
7e735e43
CW
143882011-02-08 Colin Watson <cjwatson@ubuntu.com>
14389
14390 * include/grub/file.h (not_easly_seekable): Rename to ...
14391 (not_easily_seekable): ... this. Update all users.
14392
800f1881
CW
143932011-01-28 Colin Watson <cjwatson@ubuntu.com>
14394
14395 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14396 grub-mkrescue.
14397
3281d3d6
VS
143982011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14399
14400 * util/grub-mkimage.c (generate_image): Refuse to create the images
14401 bigger than the actual flash (512K) in Loongson machines. 512K is also
14402 the biggest chip supported by them.
14403
3533413c
VS
144042011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14405
14406 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14407
73ae4f4f
VS
144082011-01-22 Anthony DeRobertis <anthony@derobert.net>
14409
14410 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14411 super_offset field.
14412
37f4f608
VS
144132011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14414
14415 * util/grub-install.in: Ignore install device on platforms
14416 where it doesn't make sense. Always use UUIDs except on pc, efi and
14417 sparc64.
14418 Reported by: Daniel Kahn Gillmor.
14419
03a4ccb5
VS
144202011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14421
14422 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14423
ffc8f4d8
VS
144242011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14425
14426 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14427 (iterate_real): Don't rely on partition being non-NULL.
14428
80f23be7
VS
144292011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14430
14431 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14432 supported platforms. Put a compile time assert for this rather than
14433 generate a warning with 32-bit shift.
14434
5d4f4dd5
VS
144352011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14436
14437 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14438 logical expression more readable.
14439
e489601a
VS
144402011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14441
14442 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14443 even if some elements have a name.
14444 Reported by: Alexander GQ Gerasiov.
14445
96e0a6ea
CW
144462011-01-22 Colin Watson <cjwatson@ubuntu.com>
14447
14448 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14449 path unreadable if `grub-probe -t abstraction' fails, for example if
14450 memberlist fails on an LVM volume group.
14451 Reported by: Darius Jahandarie.
14452
81431e2b
CW
144532011-01-22 Colin Watson <cjwatson@ubuntu.com>
14454
14455 * docs/grub.texi (Simple configuration): Document
14456 GRUB_PRELOAD_MODULES.
14457
5e79d66a
CW
144582011-01-17 Colin Watson <cjwatson@ubuntu.com>
14459
14460 * .bzrignore: Remove nonexistent grub-pbkdf2.
14461
646ada34
VS
144622011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14463
14464 * configure.ac: Bump version to 1.99~rc1.
14465
04360337
VS
144662011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14467
14468 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14469 for safety.
14470
46c9db88
VS
144712011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14472
14473 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14474 module.
14475
144762011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
14477
14478 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14479
4fbf1852
VS
144802011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14483 diskdevid.
14484
f1632d4d
VS
144852011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14486
14487 Fix compilation on cygwin.
14488
14489 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14490 -R .drectve on cygwin.
14491 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14492 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14493 (COND_CYGWIN): New condition.
14494 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14495 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14496 not @TARGET_OBJ2ELF@.
14497 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14498 type to determine whether aux is to be used.
14499
0b5e127b
VS
145002011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14501
14502 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14503 realpath'ed device string.
14504 Handle floppy (somewhat).
14505 Issue error in unknown case rather than garbage.
14506 Reported by: Axel Beckert.
14507
173b71e9
VS
145082011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14509
14510 * util/grub.d/00_header.in (load_video): Handle the case when no video
14511 drivers available.
14512 Thanks to: Axel Beckert.
14513
f8f479db
VS
145142011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14517 variable. Fixes problem on big endian platforms.
14518
8fc0a245
VS
145192011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14520
14521 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14522 It doesn't work well there.
14523
b8494fbe
VS
145242011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14525
14526 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14527 warning.
14528 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14529 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14530 counter.
14531
b44a558c
VS
145322011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14533
14534 Use alias->path rather than buggy "canon".
14535
14536 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14537 (ofdisk_hash_add): New argument curcan. All users updated.
14538
51fa856c
CW
145392011-01-11 Colin Watson <cjwatson@ubuntu.com>
14540
14541 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14542
9da068a5
VS
145432011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14544
14545 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14546 loadmask before doing any calculations. Use correct type for offset.
14547 (grub_linux_load64): Likewise.
14548
86205c94
CW
145492011-01-11 Colin Watson <cjwatson@ubuntu.com>
14550
14551 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14552 with NULL.
14553 (console_grub_equivalences_unshift): Likewise.
14554 Reported by: Daniel Dehennin.
14555
4531a206
VS
145562011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14557
14558 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14559 (set_env_limn_ro): Likewise.
14560 (GRUB_MOD_INIT): Likewise.
14561 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14562 ARRAY_SIZE while on it.
14563 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14564 * grub-core/normal/context.c (grub_env_export): Move from here ...
14565 * grub-core/kern/env.c (grub_env_export): ... here.
14566 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14567 prefix.
14568 * grub-core/kern/main.c (grub_main): Export root and prefix.
14569 * include/grub/env.h (grub_env_export): Export.
14570 Reported by: Seth Goldberg.
14571
45146057
VS
145722011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14573
14574 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14575 Take into account space used by ELF sections and multiboot palette.
14576 Reported by: Grégoire Sutre.
14577
f093110b
VS
145782011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14579
14580 * BUGS: New file.
14581
3395fe52
VS
145822011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14583
14584 Pass more appropriate video id to Linux.
14585
14586 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14587 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14588 fill have_vga.
14589 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14590 shift params->lfb_size.
14591 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14592
c2fa6cbb
VS
145932011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14594
14595 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14596
b3ff6ff0
VS
145972011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14598
14599 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14600 separator and pass bootpath/devid even if only one of them is available.
14601 Reported by: Seth Goldberg.
14602
ae67942e
VS
146032011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14604
14605 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14606 implementations bug on them.
14607
14608 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14609 memory.
14610 (filter_memory_map): Likewise.
14611
d570097a
VS
146122011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14613
14614 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14615 Reported by: nebuchadnezzar.
14616
a508e776
VS
146172011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14618
14619 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14620 Reported by: nebuchadnezzar.
14621
dcb883b1
VS
146222011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14623
14624 Submenu default support.
14625
14626 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14627 auto_boot. All users updated.
14628 Declared static.
14629 Handle chosen and default with submenus.
14630 (grub_menu_execute_with_fallback): Declared static.
14631 Don't notify failure if autobooted. Upper level does it.
14632 (menuentry_eq): New function.
14633 (get_entry_number): Use menuentry_eq.
14634 (show_menu): New parameter "autobooted". All users updated.
14635 (grub_show_menu): Likewise.
14636 * include/grub/normal.h (grub_show_menu): Likewise.
14637 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14638 (grub_menu_execute_with_fallback): Likewise.
14639
6fef99b4
VS
146402011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14641
14642 * util/grub-mklayout.c (usage): Update help text.
14643
47a77af5
VS
146442011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14645
14646 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14647
ce6bb3ee
VS
146482011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14649
14650 * util/grub-menulst2cfg.c (main): Trim the line.
14651
db87be2a
VS
146522011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14653
14654 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14655 (grub_machine_init): Don't check amount of low memory as reportedly
14656 INT 12h can be broken and if low memory is too low we wouldn't have
14657 gotten into grub_machine_init anyway.
14658
c49849cc
VS
146592011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14660
14661 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14662 (grub_machine_mmap_iterate): Take low memory into account
14663
b1969b30
VS
146642011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14665
14666 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14667 badfs.
14668 Reported by: TiCPU.
14669
cf0eaf13
VS
146702011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14671
14672 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14673 members errors.
14674
1f060f39
GS
146752011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14676
14677 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14678 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14679
a21e5672
GS
146802011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14681
14682 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14683 openbsd and netbsd types being in part_bsd module.
14684
c88172fa
VS
146852011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14686
14687 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14688 (_FILE_OFFSET_BITS): Likewise.
14689 Reported by: Seth Goldberg.
14690
53798c4b
GS
146912011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14692
14693 * configure.ac: Check for libdevmapper header.
14694
e7121b69
VS
146952011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14696
14697 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14698 avoid aliasing.
14699 (fzap_lookup): Likewise.
14700 (dnode_get): Likewise.
14701 (make_mdn): Likewise.
14702 (zfs_mount): Likewise.
14703 (fzap_iterate): Use temporary pointer to avoid aliasing.
14704 (grub_zfs_read): Likewise.
14705 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14706 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14707 pointers to avoid aliasing.
14708 (grub_cmd_xnu_kernel64): Likewise.
14709 (grub_xnu_load_driver): Likewise.
14710
fc836af9
VS
147112011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14712
14713 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14714 aliasing warning.
14715 (grub_cmd_terminal_output): Likewise.
14716 Reported and tested by: Grégoire Sutre.
14717
f9f37648
VS
147182011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14719
14720 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14721 warning.
14722 Reported and tested by: Grégoire Sutre.
14723
ec1dfd63
VS
147242011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14725
14726 * configure.ac: Do CPU substitution even if it's specified explicitly.
14727 Reported and tested by: Alain Greppin.
14728
9462775a
VS
147292011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14730
14731 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14732 Reported and tested by: Alain Greppin.
14733
0fd48e35
VS
147342011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14735
14736 Satisfy some bison versions need for inttypes.h.
14737
14738 * grub-core/lib/posix_wrap/inttypes.h: New file.
14739 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14740 (int16_t): Likewise.
14741 (int32_t): Likewise.
14742 (int64_t): Likewise.
14743 Reported and tested by: Alain Greppin.
14744
43f1bc83
VS
147452011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14746
14747 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14748 Silence spurious warning.
14749 Reported and tested by: Alain Greppin.
14750
64d1f041
SJ
147512011-01-07 Szymon Janc <szymon@janc.net.pl>
14752
14753 * docs/grub.texi (Support automatic decompression): Update with xz
14754 decompression support.
14755
25953e10
SJ
147562011-01-07 Szymon Janc <szymon@janc.net.pl>
14757
14758 Improve loaders' kernel command line handling.
14759
14760 * grub-core/lib/cmdline.c: New file.
14761 * include/grub/lib/cmdline.h: Likewise.
14762 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14763 grub_create_loader_cmdline to create kernel command line.
14764 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14765 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14766 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14767 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14768 (linux): Add lib/cmdline.c on common.
14769
e72d259f
VS
147702011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14771
14772 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14773 inopos might be unaligned.
14774
c0cf26da
VS
147752011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14776
14777 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14778 endian transformations.
14779 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14780 Based on report by: Doug Nazar.
14781
0ca09e6c
DN
147822011-01-07 Doug Nazar <nazard.michi@gmail.com>
14783
14784 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14785 array->members[i].start_sector.
14786 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14787
014b6806
VS
147882011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14789
14790 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14791 Reported and tested by: Grégoire Sutre.
14792
415502c2
CW
147932011-01-06 Colin Watson <cjwatson@ubuntu.com>
14794
14795 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14796 avoid causing test failures by clearing the screen.
14797
71b6a2b7
CW
147982011-01-06 Colin Watson <cjwatson@ubuntu.com>
14799
14800 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14801 Fix prefix check to handle the case where dir ends with a slash
14802 (most significantly, "/" itself).
14803 Reported by: Michael Vogt.
14804
b3f8d28a
VS
148052011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14806
14807 Run terminfo_cls on initing terminfo output to clear the screen and
14808 move the cursor to (0,0).
14809
14810 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14811 Call grub_terminfo_output_init.
14812 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14813 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14814 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14815
4c3e4f37
VS
148162011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14817
14818 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14819 only when needed.
14820
488f71f1
VS
148212011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14822
14823 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14824 CTRL.
14825
18a38098
VS
148262011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14827
14828 The E820 type 5 is BADRAM, not EXEC_CODE.
14829
14830 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14831 (GRUB_E820_BADRAM): New define.
14832 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14833 into reserved. Propagate BADRAM.
14834 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14835 (GRUB_E820_BADRAM): New define.
14836
9eae2084
VS
148372011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14838
14839 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14840 Ignore the memory post-4G.
14841 (grub_relocator_firmware_alloc_region): Additional debug statement.
14842
ebc71d28
VS
148432011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14844
14845 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14846 names.
14847 Reported by: David Pravec.
14848
446fa400
VS
148492011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14850
14851 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14852 BIOSes.
14853
a0159f37
VS
148542011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14855
14856 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14857 Prevent overflow.
14858 (grub_reed_solomon_recover): Likewise.
14859
e5146ca1
VS
148602011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14861
14862 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14863
148642011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
14865
14866 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14867 variable.
14868
5b1bdf12
CW
148692011-01-04 Colin Watson <cjwatson@ubuntu.com>
14870
14871 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14872 descriptions of extract_legacy_entries_source and
14873 extract_legacy_entries_configfile.
14874 Reported by: Seung Soo, Ha.
14875
99d925aa
CW
148762011-01-03 Colin Watson <cjwatson@ubuntu.com>
14877
14878 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14879 on devices that do not implement function 0.
14880
4af0504b
DV
148812011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14882
14883 * grub-core/fs/hfsplus.c: Make parent unsigned.
14884 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14885 overflows.
14886 (grub_hfsplus_cmp_extkey): Likewise
14887
469ee10a
VS
148882011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14889
14890 * util/grub-install.in: Correctly use bootloader_id and not
14891 GRUB_DISTRIBUTOR on efibootmgr line.
14892
323a8e9c
VS
148932011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14894
14895 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14896
1b394975
IC
148972010-12-31 Ian Campbell <ijc@hellion.org.uk>
14898
14899 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14900 Xen and reorder menu item wording to make it clearer that this entry
14901 will launch Xen. Print separate messages when loading Xen and
14902 Linux.
14903
275bff5f
VS
149042010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14905
14906 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14907 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14908 loop in case of incorrect amiga partmap.
14909
307806cb
VS
149102010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14911
14912 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14913 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14914 Reported by:EHeM.
14915
b12b923e
VS
149162010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14917
14918 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14919 spurious warning.
14920 Reported by: crocket
14921
14b48a19
VS
149222010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14923
14924 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14925 Preload EFIemu.
14926 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14927
693db2df
VS
149282010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14931 is loaded
14932 (grub_cmd_xnu_kextdir): Likewise.
14933 (grub_cmd_xnu_splash): Likewise.
14934
c7638645
VS
149352010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14936
14937 Avoid using Reed-Solomon with 0 redundancy.
14938
14939 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14940 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14941 or 0 redundancy.
14942 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14943 (grub_reed_solomon_recover): Likewise.
14944
25dd4780
VS
149452010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14946
14947 Don't use disk subsystem in freebsd_boot.
14948
14949 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14950 (freebsd_biosdev): Likewise.
14951 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14952 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14953
0b2db943
VS
149542010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14955
14956 Handling of files of unknown size is currently limited. They can't be
14957 used e.g. for initrd or modules. Moreover gzip handling of not
14958 easily seekable files is buggy. Disable unknown file size for now. May
14959 be inefficient but works.
14960
14961 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14962 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14963
5c408d0f
MP
149642010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14965
14966 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14967 floppy probe.
14968
190a011a
JD
149692010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14970
14971 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14972
022d01b8
SL
149732010-12-25 Shea Levy <shlevy>
14974
14975 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14976
c4855fdc
VS
149772010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14978
14979 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14980 Windows Server 2008.
14981 Reported by: Devin Giddings.
14982
0354b867
VS
149832010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14984
14985 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14986 writing an error message because of async power management.
14987 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14988 (grub_reboot): Likewise.
14989
ab66c69f
JU
149902010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14991
14992 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14993 keep unit tests from failing when they shouldn't.
14994
1426ef35
CW
149952010-12-21 Colin Watson <cjwatson@ubuntu.com>
14996
14997 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14998 previous patch increased the size of the RS code by 20 bytes (at
14999 least with gcc-4.4), so increase this by 20 bytes to match.
15000 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15001
20641b6b
CW
150022010-12-21 Colin Watson <cjwatson@ubuntu.com>
15003
15004 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
15005 scratch area. Make sure to initialise chosen in standalone mode as
15006 well as non-standalone.
15007 Reported by: Robert Hooker and Andy Whitcroft.
15008 Tested by: Andy Whitcroft.
15009
d060ad60
CW
150102010-12-21 Colin Watson <cjwatson@ubuntu.com>
15011
15012 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
15013 constructing a new unescaped string and passing it to grub_xputs in
15014 one go, rather than passing characters to grub_printf one at a time.
15015
b889cfad
CW
150162010-12-21 Colin Watson <cjwatson@ubuntu.com>
15017
15018 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
15019 initialising utf16.
15020
4e01b6c8
CW
150212010-12-21 Colin Watson <cjwatson@ubuntu.com>
15022
15023 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
15024 comment. Add an extra layer of quotation, requiring the output of
15025 this function to be used in a printf format string.
15026 (gettext_printf): New function.
15027 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
15028 Extract translatable strings from here-documents and use a temporary
15029 variable instead, so that xgettext can find them.
15030 * util/grub.d/10_kfreebsd.in: Likewise.
15031 * util/grub.d/10_linux.in: Likewise.
15032 * util/grub.d/20_linux_xen.in: Likewise.
15033
15034 * po/grub.d.sed: New file.
15035 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
15036 arguments. Set c-format flags on all strings extracted from
15037 util/grub.d/ (xgettext refuses to include these itself for strings
15038 it extracted from a shell file, but these really are c-format).
15039
5318fe98
VS
150402010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15041
15042 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
15043 Avoid next pointing to nowhere.
15044
6c85b743
VS
150452010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15046
15047 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
15048 rather than assuming than rootblock is exactly in the middle.
15049 (grub_affs_label): Likewise.
15050
a2a08a35
VS
150512010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15052
15053 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
15054 reserved_first_sector to 0.
15055 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
15056 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
15057 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
15058
7059d1ec
VS
150592010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15060
15061 Fix handling of UTF-16 UDF labels.
15062
15063 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
15064 (read_string): .. here.
15065 (grub_udf_label): Use read_string.
15066
30aff4cb
BC
150672010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
15068
15069 * grub-core/normal/menu_entry.c (run): Execute commands from menu
15070 editor under argument scope.
15071 Reported by: Jordan Uggla
15072
5cf86f4b
VS
150732010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15074
15075 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
15076
32570200
CW
150772010-12-18 Colin Watson <cjwatson@ubuntu.com>
15078
15079 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
15080 line, and other keys scroll an entire page (previous handling was
15081 for \r and \n to scroll a page and other keys to scroll two lines).
15082
e1dffcf2
VS
150832010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15084
15085 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15086 Set ptrdest to correct get_physical_target_address rather than
15087 incorrect get_virtual_current_address.
15088
b04298cf 150892010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
15090
15091 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
15092 correct cat to grub_uint8_t * rather than grub_uint32_t *.
15093
5367ecd3
CW
150942010-12-10 Colin Watson <cjwatson@ubuntu.com>
15095
15096 * .bzrignore: Ignore grub-core/rs_decoder.S.
15097
1fb430f8
CW
150982010-12-10 Colin Watson <cjwatson@ubuntu.com>
15099
15100 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
15101 .mo/.mo.gz opening sequence to ...
15102 (grub_mofile_open_lang): ... here.
15103 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
15104 * util/grub.d/00_header.in (grub_lang): Include country part of
15105 locale.
15106 Reported by: Mario Limonciello.
15107
a94a6671
RM
151082010-12-09 Robert Millan <rmh@gnu.org>
15109
15110 * NEWS: Document addition of ZFS support.
15111
24b7938b
CW
151122010-12-04 Colin Watson <cjwatson@ubuntu.com>
15113
15114 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
15115 rather than `/ 2', as the latter requires -Wa,--divide which would
15116 require bumping our minimum binutils version.
15117
bddc3ef6
BC
151182010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
15119
15120 * util/grub-script-check.c (main): Print script line number on
15121 error.
15122
bf78d5b2
RM
151232010-12-01 Robert Millan <rmh@gnu.org>
15124
15125 * grub-core/fs/zfs/zfs.c: New file.
15126 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
15127 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
15128 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
15129 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15130
15131 * include/grub/zfs/dmu.h: Likewise.
15132 * include/grub/zfs/dmu_objset.h: Likewise.
15133 * include/grub/zfs/dnode.h: Likewise.
15134 * include/grub/zfs/dsl_dataset.h: Likewise.
15135 * include/grub/zfs/dsl_dir.h: Likewise.
15136 * include/grub/zfs/sa_impl.h: Likewise.
15137 * include/grub/zfs/spa.h: Likewise.
15138 * include/grub/zfs/uberblock_impl.h: Likewise.
15139 * include/grub/zfs/vdev_impl.h: Likewise.
15140 * include/grub/zfs/zap_impl.h: Likewise.
15141 * include/grub/zfs/zap_leaf.h: Likewise.
15142 * include/grub/zfs/zfs.h: Likewise.
15143 * include/grub/zfs/zfs_acl.h: Likewise.
15144 * include/grub/zfs/zfs_znode.h: Likewise.
15145 * include/grub/zfs/zil.h: Likewise.
15146 * include/grub/zfs/zio.h: Likewise.
15147 * include/grub/zfs/zio_checksum.h: Likewise.
15148
15149 * Makefile.util.def: Build ZFS into libgrubmods.
15150 * grub-core/Makefile.core.def: Build zfs.mod.
15151
3f0f3831
SJ
151522010-11-30 Szymon Janc <szymon@janc.net.pl>
15153
15154 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
15155 variable.
15156 * grub-core/commands/wildcard.c (match_files): Likewise.
15157
3a4253b2
RM
151582010-11-30 Robert Millan <rmh@gnu.org>
15159
15160 * grub-core/loader/i386/bsd.c
15161 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
15162 whether kernel is loaded using grub_loader_is_loaded(), rather
15163 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
15164 certain error conditions.
15165
8c317b27
RM
151662010-11-30 Robert Millan <rmh@gnu.org>
15167
c5c9cd3e
RM
15168 * grub-core/commands/echo.c: Include `<grub/term.h>'.
15169 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 15170
49d3ab46
VS
151712010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15172
15173 Avoid using tricks for initialising endian variables.
15174
15175 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
15176 Make const.
15177 (GRUB_MOD_INIT): Don't byte-swap.
15178 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15179 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
15180 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
15181 (grub_swap_bytes32_compile_time): Likewise.
15182 (grub_cpu_to_le32_compile_time): Likewise.
15183 (grub_cpu_to_le16_compile_time): Likewise.
15184
f420a804
VS
151852010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15186
15187 * util/grub-setup.c (setup): Stop recommending --force. People who
15188 understand the dangers of blocklists are able to find this option
15189 anyway and the ones who don't shouldn't use it anyway.
15190
4e7db17b
RM
151912010-11-26 Robert Millan <rmh@gnu.org>
15192
15193 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
15194 Update all users.
15195
9be57a0d
CW
151962010-11-26 Colin Watson <cjwatson@ubuntu.com>
15197
15198 Fix LVM-on-RAID probing.
15199
15200 * util/grub-probe.c (probe): Remember which disk was detected as
15201 RAID (perhaps an LVM physical volume). Use that disk's raidname
15202 rather than that of the top-level disk.
15203
2c7859b3 152042010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 15205
d7647bb6
BC
15206 Fix cmdline argument quotes for setparams command of menuentry
15207 definitions.
7e623b0d
BC
15208
15209 * grub-core/commands/menuentry.c (setparams_prefix): Use single
15210 quotes for arguments.
f866fe80 15211 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 15212 grub_strchrsub function instead.
f866fe80 15213
7955bea0 15214 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 15215
74f72a64
CW
152162010-11-24 Colin Watson <cjwatson@ubuntu.com>
15217
15218 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
15219 effort by skipping "." and ".." entries up-front.
15220 Suggested by: Michael Lazarev.
15221
5a407278
CW
152222010-11-24 Colin Watson <cjwatson@ubuntu.com>
15223
15224 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
15225 ldflags to ldadd, to fix link line ordering.
15226 (none_decompress): Likewise.
15227
3030d8ec
CW
152282010-11-24 Colin Watson <cjwatson@ubuntu.com>
15229
15230 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
15231 platforms.
15232 (grub-emu-lite): Remove kern/emu/cache.S.
15233
b7fbac12
CW
152342010-11-23 Colin Watson <cjwatson@ubuntu.com>
15235
15236 * util/deviceiter.c (compare_devices): If the by-id link for a
15237 device couldn't be resolved, fall back to sorting by the by-id link
15238 rather than segfaulting.
15239 Reported and tested by: Daniel Mierswa.
15240
5225f328
CW
152412010-11-23 Colin Watson <cjwatson@ubuntu.com>
15242
15243 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
15244 ldflags, to fix link line ordering.
15245
038b3ce8
CW
152462010-11-23 Colin Watson <cjwatson@ubuntu.com>
15247
15248 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
15249 linkers are picky about this.
15250
bf16e98e
CW
152512010-11-23 Colin Watson <cjwatson@ubuntu.com>
15252
15253 * grub-core/Makefile.am (command.lst): Adjust sed expression
15254 ordering so that extended and priority commands aren't treated as
15255 ordinary commands.
15256
7242bab6
CW
152572010-11-23 Colin Watson <cjwatson@ubuntu.com>
15258
15259 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15260 Remove byte-swapping function calls, which are not valid in
15261 structure initialisers.
15262 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
15263 non-const.
15264 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
15265 grub_gpt_partition_type_bios_boot.
15266
14e8b279
CW
152672010-11-22 Colin Watson <cjwatson@ubuntu.com>
15268
15269 Fix test program build on GNU/kFreeBSD.
15270
15271 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
15272 $(LIBNVPAIR)' library dependencies.
15273
e6f63338 152742010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
15275
15276 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
15277
cf8ffc38
CW
152782010-11-22 Colin Watson <cjwatson@ubuntu.com>
15279
15280 * util/grub-install.in: Remove excessive quoting that broke
15281 installations to RAID devices.
15282
7f8b0fd7
VS
152832010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15284
15285 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
15286 bootloader version instead of 0.
15287
dfd240b1
VS
152882010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15289
15290 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
15291 warning.
15292
7b61e609
VS
152932010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15294
15295 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
15296 retrieve the metadat sector if size isn't known.
15297 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15298
9dfe92d0
RM
152992010-11-18 Robert Millan <rmh@gnu.org>
15300
15301 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
15302 with grub_memcmp().
15303
41cc919e
VS
153042010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
15305
15306 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
15307 arrow.
15308 Reported by: Jordan Uggla.
15309
1afcc914
VS
153102010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15311
15312 Make better UTF compliant.
15313
15314 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
15315 sequences as incorrect.
15316 (grub_is_valid_utf8): Likewise.
15317 (grub_utf8_to_ucs4): Likewise.
15318 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
15319 (grub_ucs4_to_utf8_alloc): Likewise.
15320 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15321
f1808884
VS
153222010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15323
15324 Make legacy_source behave like source.
15325
15326 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15327 grub_show_menu.
15328 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15329
24ec575b
CW
153302010-11-16 Colin Watson <cjwatson@debian.org>
15331
15332 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15333 (-Wunused implies -Wunused-parameter, but not vice versa).
15334
72b7c7aa
CW
153352010-11-16 Colin Watson <cjwatson@ubuntu.com>
15336
15337 * configure.ac: Make error messages less confusing by testing for
15338 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15339 accepted, but produces a diagnostic if something else is wrong).
15340
e98937aa
VS
153412010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15342
15343 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15344 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15345 (now unused).
15346 (grub_keyboard_controller_init)
15347 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15348 read the initial state since controller isn't inited yet.
15349
f6bbabc3
VS
153502010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15351
15352 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15353 allocate_regbeg may need to create new chunk header.
15354
22e7dbb2
VS
153552010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15356
15357 Fix quoting in legacy parser.
15358
15359 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15360 single quotes.
15361 (grub_legacy_parse): Likewise.
15362 Reported by: Jordan Uggla.
15363 Tested by: Jordan Uggla.
15364
03f80960
VS
153652010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15366
15367 Don't add -lgcc on i386 and x86_64.
15368
15369 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15370 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15371 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15372
779dc15b
VS
153732010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15374
15375 * configure.ac: Add -Wno-trampolines when supported.
15376
d20a3b37
MV
153772010-11-14 Modestas Vainius <modax@debian.org>
15378
15379 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15380 fakeraid.
15381
e5360933
GC
153822010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15383
15384 Add generic logical block size support for UDF.
15385
15386 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15387 (GRUB_UDF_BLKSZ): Removed.
15388 (struct grub_udf_data): New field "lbshift" to hold the logical block
15389 size of the file system in log2 format. All users updated.
15390 (sblocklist): Change type to unsigned.
15391 (grub_udf_mount): Change type of "sblklist" to unsigned.
15392 Move AVDP search before VRS recognition, because the latter requires
15393 knowledge of the logical block size, which is detected during the
15394 former.
15395 Detect and validate logical block size during AVDP search, adding
15396 support for block sizes 512, 1024 and 4096.
15397 Make VRS recognition independent of block size.
15398
cb0229c5
GC
153992010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15400
15401 Properly handle deleted files on UDF.
15402
15403 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15404 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15405 set.
15406
406858a8
GC
154072010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15408
15409 Support reading files larger than 2 GiB.
15410
15411 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15412 "offset" to grub_off_t.
15413 (grub_udf_read_file): Likewise for parameter "pos".
15414
130da6a7
VS
154152010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15416
15417 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15418 unavailable.
15419 (Simple configuration): Refer to Changes from GRUB Legacy about
15420 save_env availability.
15421
65e93f6b
VS
154222010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15423
15424 * util/grub-install.in: Ignore empty partition table detection
15425 instead of trying to include part_ module.
15426
1fd08bf1
VS
154272010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15428
15429 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15430 LVM on RAID support.
15431
de1a024f
VS
154322010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15433
15434 Properly define WORDS_BIGENDIAN in wrapped environments.
15435
15436 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15437 definition.
15438 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15439
15440 Reported by: Manoel Rebelo Abranches.
15441 Tested by: Manoel Rebelo Abranches.
15442
bc5dd0b9
VS
154432010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15444
15445 * util/grub-mkconfig.in: Fix quoting.
15446
58c184be
VS
154472010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15448
15449 Support big ext2 files.
15450
15451 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15452 (grub_ext2_read_block): Support triple indirect blocks.
15453 (grub_ext2_read_file): Use 64-bit types and read size_high.
15454 (grub_ext2_open): Read size_high.
15455 Reported by: Ximin Luo.
15456 Tested by: Manoel Rebelo Abranches.
15457
5f0c02b3
VS
154582010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15459
15460 * util/grub-install.in: Handle filenames containing spaces.
15461 Reported by: Jordan Uggla.
15462 Tested by: Jordan Uggla.
15463
4417aae6
VS
154642010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15465
15466 * util/grub-mkconfig.in (grub_script_check): New variable.
15467 Use grub_script_check instead of grub-script-check.
15468 Reported by: Barry Jackson.
15469
7625a68e
VS
154702010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15471
15472 * docs/grub.texi (menu): Correct the order.
15473 Reported by: D. Hugh Redelmeier.
15474
10001ac5
VS
154752010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15476
15477 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15478 jump.
15479
9c4cf53b
MRA
154802010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15481
10001ac5
VS
15482 * include/grub/elfload.h (grub_elf32_size): New parameter.
15483 All users updated.
9c4cf53b
MRA
15484 Return maximum segments alignment.
15485 (grub_elf64_size): Likewise.
15486 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15487 Return maximum segments alignment.
15488 (grub_elf64_size): Likewise.
15489 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
15490 (grub_linux_claimmap_iterate): New function. Uses the
15491 "available" property in the "memory" node for memory allocation
15492 for kernel in the PowerPC loader.
9c4cf53b
MRA
15493 (grub_linux_load32): Correctly find linux entry point offset.
15494 (grub_linux_load64): Likewise.
15495
d2bf06bf
RM
154962010-11-07 Robert Millan <rmh@gnu.org>
15497
15498 On mips-yeeloong, build with -march=loongson2f when this flag is
15499 available (GCC >= 4.4).
15500 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15501 `-march=mips3'.
15502 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15503 or otherwise add -march=mips3.
15504
898c99a2
BC
155052010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15506
87220a68
BC
15507 Suppress shell expansion on echo '*' and echo "*" like cases.
15508 Reported by: Jordan Uggla.
898c99a2
BC
15509
15510 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15511 string arguments before shell expansion.
15512 * tests/grub_cmd_echo.in: New testcases.
15513
4f9b406a
RM
155142010-11-07 Robert Millan <rmh@gnu.org>
15515
15516 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15517 transition.
15518
80c6d25e
VS
155192010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15520
15521 * grub-core/kern/emu/hostdisk.c
15522 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15523
4a1a0153
VS
155242010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15525
15526 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15527 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15528 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15529
34706ddc
VS
155302010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15531
15532 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15533
6972dea9
VS
155342010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15535
15536 * util/grub-install.in: Replace useless recomendation to pass
15537 --modules with a recomendation to report a bug.
15538
9c693bd6
VS
155392010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15540
15541 Properly register serial terminfo.
15542 Reported by: Jordan Uggla
15543
15544 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15545 const.
15546 (grub_serial_terminfo_output_template): Likewise.
15547 (grub_cmd_serial): Register "serial" with terminfo.
15548 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15549 grub_serial_terminfo_output.
15550
6c9e4c0c
RM
155512010-11-05 Robert Millan <rmh@gnu.org>
15552
15553 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15554 needed).
15555
b9b3839f
RM
155562010-11-05 Robert Millan <rmh@gnu.org>
15557
15558 On Yeeloong, pass machine type information to Linux.
15559
15560 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15561 (LOONGSON_MACHTYPE): New macro, set to
15562 "machtype=lemote-yeeloong-2f-8.9inches".
15563 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15564 additional argument to Linux.
15565
1a3aaff4
RM
155662010-11-04 Robert Millan <rmh@gnu.org>
15567
15568 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15569 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15570 (its SATA disks are detected as slaveless IDE master drives on
15571 kFreeBSD).
15572 Reported by Carsten Aulbert.
15573
a75f4f62
CW
155742010-11-02 Colin Watson <cjwatson@ubuntu.com>
15575
15576 * util/bin2h.c (main): Fix spelling error in generated output.
15577
33b4b0c6
GS
155782010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15579
15580 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15581
2b36fbf4
VS
155822010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15583
15584 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15585 vga= option is supplied.
15586
74aaf558
VS
155872010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15588
15589 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15590 * util/grub.d/10_kfreebsd.in: Likewise.
15591 * util/grub.d/10_linux.in: Likewise.
15592 * util/grub.d/20_linux_xen.in: Likewise.
15593
6428dec3
VS
155942010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15595
15596 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15597 argument as an argument to no-argument option.
15598
f8729d98
VS
155992010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15600
15601 * util/grub.d/10_linux.in: Add missing load_video with explicit
15602 GRUB_GFXPAYLOAD_LINUX.
15603
89d68fa6
VS
156042010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15605
15606 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15607
3a1197cd
VS
156082010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15609
15610 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15611 elements with invlid index.
15612 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15613 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15614 members.
15615 * include/grub/raid.h (grub_raid_member): New struct.
15616 (grub_raid_array): Transform devices and start_sector into usage of
15617 grub_raid_member. All users updated
15618 (allocated_devs): New member.
15619
71574288
VS
156202010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15621
15622 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15623 is modified
15624
8d40ec65
BC
156252010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15626
15627 NetBSD build fix for getline function conflict from gnulib.
15628
15629 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15630 components that depend on gnulib headers.
15631 (libgrubmods.a): Renamed from earlier libgrub.a.
15632 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15633
95b9257e
VS
156342010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15635
15636 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15637 install rather than creating a broken install.
15638
26c53dc6
VS
156392010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15640
15641 * util/grub-setup.c (argp): Remove misleading example of installing to
15642 a partition.
15643
4171b3c5
VS
156442010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15645
15646 * util/grub-setup.c (setup): Clarify the error message.
15647
18568d18
VS
156482010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15651
4f6a2e21
VS
156522010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15653
15654 * grub-core/kern/emu/misc.c
15655 (grub_make_system_path_relative_to_its_root)
15656 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15657
156582010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
15659
15660 * grub-core/kern/emu/misc.c
15661 (grub_make_system_path_relative_to_its_root): Revert r2882.
15662
e138c458
VS
156632010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15664
15665 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15666 useless field head. All users updated.
15667 (free_subchunk): Correct handling of IN_REGION subchunk.
15668
0cbcdf0e
CW
156692010-10-22 Colin Watson <cjwatson@ubuntu.com>
15670
15671 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15672 (Supported kernels): Likewise.
15673
b65ea155
GS
156742010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15675
15676 Make mktemp invocations portable.
15677
15678 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15679 exit if mktemp fails.
15680 * tests/grub_script_blockarg.in: Likewise.
15681 * tests/partmap_test.in: Likewise.
15682 * tests/util/grub-shell-tester.in: Likewise.
15683 * tests/util/grub-shell.in: Likewise.
15684 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15685 * Makefile.am: Likewise, and chain shell commands with `&&'
15686 instead of ';'.
15687 * util/grub-mkrescue.in: Use the same explicit template as above, and
15688 exit if mktemp fails.
15689
05f43cdd
BC
156902010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15691
15692 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15693 Linux kernel, reported by Dennis Schridde.
15694
800e6a9b
SJ
156952010-10-17 Szymon Janc <szymon@janc.net.pl>
15696
15697 * grub-core/normal/auth.c (grub_auth_check_authentication):
15698 Set-but-not-used variable removed.
15699
d82df574
VS
157002010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15701
15702 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15703 32-bit linux protocol.
15704
7bced458
VS
157052010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15706
15707 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15708 cursor shape for sanity.
15709
5b027690
VS
157102010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15711
15712 * docs/grub.texi (Installation): Document buggy BIOS install.
15713
ba5f65cf
VS
157142010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15715
15716 * docs/grub.texi (Installation): Indent.
15717
fdf2ec9c
VS
157182010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15719
15720 * util/grub-setup.c (setup): New parameter allow_floppy.
15721 (arguments): New member allow_floppy.
15722 (argp_parser): Handle --allow-floppy.
15723 (main): Pass allow_floppy.
15724 * util/grub-install.in: New option --allow-floppy passed though to
15725 grub-setup.
15726
861dfd4c
VS
157272010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15728
15729 * util/grub-install.in: Handle partitionless disks.
15730
f77a8c24
VS
157312010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15732
15733 * util/grub-setup.c (setup): Don't clean blocklists before readability
15734 verfification.
15735
27d9ee32
VS
157362010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15737
15738 * docs/grub.texi (Installation): Document embedding zone. Remove
15739 obsolete grub-install example.
15740
6bdda8f8
SJ
157412010-10-16 Szymon Janc <szymon@janc.net.pl>
15742
15743 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15744 Set-but-not-used variable ifdef'ed.
15745 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15746 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15747 variable removed.
15748 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15749 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15750 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15751 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15752 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15753 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15754 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15755 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15756 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15757 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15758 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15759 Likewise.
15760
e19b016b
VS
157612010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15762
15763 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15764 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15765 enum value.
15766
6c8d3002
VS
157672010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15768
15769 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15770 synonym to _S5_. Needed for some DSDTs.
15771
c32b51c9
VS
157722010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15773
15774 Userspace ACPI parser debugging.
15775
15776 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15777 headers and add relevant defines. Don't include standard headers.
15778 (main) [GRUB_DSDT_TEST]: New function.
15779 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15780 Don't declare functions.
15781
fbfbeb39
VS
157822010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15783
15784 Remove dead grub_efi_mm_fini.
15785
15786 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15787 (ALLOCATED_PAGES_SIZE): Likewise.
15788 (MAX_ALLOCATED_PAGES): Likewise.
15789 (allocated_pages): Likewise.
15790 (grub_efi_allocate_pages): Don't record allocated pages.
15791 (grub_efi_free_pages): Likewise.
15792 (grub_efi_mm_init): Likewise.
15793 (grub_efi_mm_fini): Removed.
15794
65f7ed7c
VS
157952010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15796
15797 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15798 (grub_efi_mm_init): Take into account the memory map size increase.
15799
24977b44
VS
158002010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15801
15802 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15803 (serial_hw_put): Wait based on real time rather than port reads. Don't
15804 roken ports.
15805 * include/grub/serial.h (grub_serial_port): New field broken.
15806
1eb01cd2
RM
158072010-10-16 Robert Millan <rmh@gnu.org>
15808
15809 * grub-core/kern/emu/misc.c
15810 (grub_make_system_path_relative_to_its_root): Fix premature return
15811 when processing non-root ZFS filesystems.
5f8b440b 15812 Reported by Sergio Talens-Oliag.
1eb01cd2 15813
2d5fed60
RM
158142010-10-15 Robert Millan <rmh@gnu.org>
15815
15816 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15817 guarantee compressed ones are processed first.
15818
d0f4c1ea
VS
158192010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15820
15821 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15822 grub_efiemu_autocore.
15823
d87c681f
VS
158242010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15825
15826 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15827 rather than 0x1b.
15828 (grub_console_getkey): Use correct jae opcode rather than ja.
15829
219b3564
RM
158302010-10-12 Robert Millan <rmh@gnu.org>
15831
15832 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15833 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15834 variable. All references updated.
15835
15836 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15837
20c6bb7e
VS
158382010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15839
15840 Correctly distinguish mdraid flavours.
15841
15842 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15843 (insert_array): New argument raid.
15844 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15845 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15846 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15847
74baff84
VS
158482010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15849
15850 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15851 handling of special keys.
15852
3ef068df 158532010-10-02 Aleš Nesrsta <starous@volny.cz>
15854
c7980ad9
VS
15855 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15856 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 15857
a9455194 158582010-10-02 Aleš Nesrsta <starous@volny.cz>
15859
c7980ad9
VS
15860 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15861 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15862 users updated.
a9455194 15863 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 15864 Use right endpoint when querying descriptor.
a9455194 15865
441cfe65
VS
158662010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15867
15868 Clear out 0x80 color bit on EFI.
15869 Tested by: decoder
15870 Reported by: decoder and meta tech.
15871
15872 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15873 (grub_console_setcolorstate): Clear out 0x80 bit.
15874 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15875 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15876 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15877
bf26bcc4
VS
158782010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15879
15880 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15881 Set to "auto".
15882
6e3c515d
VS
158832010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15884
15885 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15886 mo_file after freeing.
15887
e6d983ba
VS
158882010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15889
15890 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15891
74ccb5b5
VS
158922010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15893
15894 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15895 flags.
15896
17821956
VS
158972010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15898
15899 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15900 usage.
15901
ee74fa48
VS
159022010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15903
15904 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15905
15906 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15907 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15908 and terminfo.h when needed.
15909 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15910 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15911 (terminfo): Enable only on terminfokernel.
15912 (extcmd): Likewise.
15913 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15914 * include/grub/lib/arg.h: Likewise.
15915 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15916 incorrect usage of ->.
15917
aa438e68
VS
159182010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15919
15920 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15921 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15922
57994012
VS
159232010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15924
15925 Fix coreboot compilation.
15926
15927 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15928 Take VBE info into account even if only text is supported.
15929 (fill_vbe_info): Take into account the case when only VGA text
15930 is supported.
15931 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15932 on coreboot, multiboot and qemu.
15933
2a406611
VS
159342010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15935
15936 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15937 debug messages.
15938 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15939
d33613fc
VS
159402010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15941
15942 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15943 parameters.
15944
44a1b432
VS
159452010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15946
15947 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15948 if they were BSD-style.
15949
edde54e6
VS
159502010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15951
15952 * grub-core/boot/i386/pc/lnxboot.S: Replace
15953 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15954 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15955
b65830fa
VS
159562010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15957
15958 Write embedding zone using Reed-Solomon.
15959
15960 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15961 * grub-core/Makefile.am (rs_decoder.S): New target.
15962 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15963 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15964 (multiboot): Move to RS part.
15965 (post_reed_solomon): New label.
15966 (grub_boot_drive): Move to non-RS part since it's modified in memory
15967 on boot.
15968 Include rs_decoder.S.
15969 * grub-core/lib/reed_solomon.c: New file.
15970 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15971 New definition.
15972 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15973 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15974 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15975 * include/grub/partition.h (grub_partition_map): Change prototype of
15976 embed to allow returning additional sectors.
15977 * include/grub/reed_solomon.h: New file.
15978 * util/grub-setup.c (setup): Handle Reed-Solomon.
15979
0b4b227f
CW
159802010-09-28 Colin Watson <cjwatson@ubuntu.com>
15981
15982 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15983 i386 and x86-64 definedness tests.
15984
f772623b
YB
159852010-09-27 Yves Blusseau <blusseau@zetam.org>
15986
15987 Fix generation of kernel_syms.lst
15988
15989 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15990 ASM_PREFIX
15991
8e57a6ca
RM
159922010-09-26 Robert Millan <rmh@gnu.org>
15993
15994 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15995
15996 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15997 the pool is an array of devices, iterate through it and return the
15998 first device that passes a stat() test (instead of blindly returning
15999 the first one).
16000
f9130836
RM
160012010-09-26 Robert Millan <rmh@gnu.org>
16002
16003 Build fixes for GNU/kFreeBSD.
16004
16005 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
16006 to programs that require ZFS conversion.
16007 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
16008 kernels that don't have FLOPPY_MAJOR.
16009
96510faf
BC
160102010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16011
16012 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
16013
449333eb
BC
160142010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16015
16016 Fix grub-emu build.
16017
16018 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
16019 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
16020 mdraid09 and mdraid1x.
16021
e1fd1939
CW
160222010-09-24 Colin Watson <cjwatson@ubuntu.com>
16023
16024 Re-enable grub-extras.
16025
16026 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
16027 avoid confusing Automake. Run autogen only twice, once for the top
16028 level and once for grub-core. Add Makefile.util.def and
16029 Makefile.core.def from extra modules to the appropriate autogen
16030 invocations. If Makefile.common exists in an extra module, include
16031 it in both Makefile.util.am and grub-core/Makefile.core.am;
16032 similarly, include any Makefile.util.common file in Makefile.util.am
16033 and any Makefile.core.common file in grub-core/Makefile.core.am.
16034 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
16035 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
16036 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
16037 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
16038
16039 * gentpl.py (gvar_add): Turn GVARS into a set.
16040 (global_variable_initializers): Sort global variables on output.
16041 (vars_init): New function.
16042 (first_time): Likewise.
16043 (library): Ensure that non-global variable initialisations are
16044 emitted before the first time we emit code for a library block.
16045 Append to variables rather than setting them. Only emit
16046 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
16047 each conditional path.
16048 (program): installdir() emits an Autogen macro, so must be passed to
16049 var_add rather than gvar_add.
16050 (data): Likewise.
16051 (script): Likewise.
16052 (rules): New function, centralising handling for different target
16053 types. Set up Guile association lists for first_time and vars_init,
16054 and send most output to a diversion so that variable initialisations
16055 can be emitted first.
16056 (module_rules): Use new rules function.
16057 (kernel_rules): Likewise.
16058 (image_rules): Likewise.
16059 (library_rules): Likewise.
16060 (program_rules): Likewise.
16061 (script_rules): Likewise.
16062 (data_rules): Likewise.
16063
16064 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
16065
16066 * .bzrignore: Add contrib and grub-core/contrib. Remove
16067 grub-core/Makefile.gcry.am.
16068
1d12cf29
YB
160692010-09-24 Yves Blusseau <blusseau@zetam.org>
16070
16071 * grub-core/lib/LzFind.c: Add missing include.
16072 * grub-core/lib/LzmaEnc.c: Likewise.
16073 * grub-core/script/lexer.c: Likewise.
16074 * grub-core/script/yylex.l: Likewise.
16075 * util/grub-macho2img.c: Likewise.
16076 * util/grub-menulst2cfg.c: Likewise.
16077 * util/grub-mklayout.c: Likewise.
16078 * util/grub-mkpasswd-pbkdf2.c
16079 * util/grub-mkrelpath.c: Likewise.
16080 * util/resolve.c: Likewise.
16081
dd363028
BC
160822010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
16083
16084 * Makefile.util.def (example_unit_test): Add
16085 grub-core/gnulib/libgnu.a.
16086
f5a109e2
GS
160872010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
16088
16089 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
16090
6d0fa83c
VS
160912010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
16092
16093 Support xz compression on yeeloong.
16094
16095 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
16096 * configure.ac: Check for LZMA.
16097 * grub-core/Makefile.core.def (xz_decompress): New target.
16098 (none_decompress): Likewise.
16099 * grub-core/boot/decompressor/minilib.c: New file.
16100 * grub-core/boot/decompressor/none.c: Likewise.
16101 * grub-core/boot/decompressor/xz.c: Likewise.
16102 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
16103 * grub-core/kern/mips/cache_flush.S: Likewise.
16104 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
16105 * grub-core/kern/mips/startup.S: Move first stage to ...
16106 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
16107 nomacro.
16108 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
16109 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
16110 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
16111 Allocate statically.
16112 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
16113 Allocate statically or use scratch. Don't check CRC32.
16114 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
16115 Allocate statically. Don't check CRC32.
16116 * include/grub/decompressor.h: New file.
16117 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
16118 Removed.
16119 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
16120 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
16121 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
16122 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
16123 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
16124 * util/grub-mkimage.c (grub_compression_t): New type.
16125 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
16126 (image_target_desc): New field default_compression.
16127 (image_targets): Adjust yeeloong targets.
16128 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
16129 (compress_kernel): New parameter comp.
16130 (generate_image): Likewise. Handle new compression case.
16131 (options): New option --compression
16132 (help): Likewise.
16133 (main): Handle new option.
16134
1b655af6
GS
161352010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
16136
16137 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
16138
8f03f0b5
CW
161392010-09-22 Colin Watson <cjwatson@ubuntu.com>
16140
16141 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16142 typo in __i386__ conditional.
16143
7835dfd3
VS
161442010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16145
16146 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
16147 include.
16148
e255597e
VS
161492010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16150
6d0fa83c 16151 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
16152
16153 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
16154 new tags as supported.
16155 (acpiv2_size): New function.
16156 (grub_multiboot_get_mbi_size): Take new tags into account.
16157 (grub_multiboot_make_mbi): Add new tags.
16158 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 16159
6cc14051 161602010-09-21 Aleš Nesrsta <starous@volny.cz>
16161
16162 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
16163 Added missing configuration of USB device.
16164
df7769d8
CW
161652010-09-21 Colin Watson <cjwatson@ubuntu.com>
16166
16167 * grub-core/normal/menu_entry.c (run): Make sure we always return
16168 a value.
16169
b031012d
CW
161702010-09-21 Colin Watson <cjwatson@ubuntu.com>
16171
16172 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
16173 NumberOfPages is UINT64 according to the UEFI specification, not
16174 UINTN. Fix printf format.
16175
174de8f3
CW
161762010-09-21 Colin Watson <cjwatson@ubuntu.com>
16177
16178 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
16179 `err' to grub_usb_err_t.
16180 Reported and tested by: KESHAV P.R.
16181
d7dbe923
CW
161822010-09-21 Colin Watson <cjwatson@ubuntu.com>
16183
16184 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
16185 tpart non-const, so that we can assign to it. (Since this is a
16186 typedef, the constness refers to the pointer rather than what it
16187 points to.)
16188
8d5e2af3
CW
161892010-09-21 Colin Watson <cjwatson@ubuntu.com>
16190
16191 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
16192 $(top_srcdir)/grub-core/gnulib as well as
16193 $(top_builddir)/grub-core/gnulib.
16194 Reported by: KESHAV P.R.
16195
5c527783
CW
161962010-09-21 Colin Watson <cjwatson@ubuntu.com>
16197
16198 * util/grub-install.in: Fix the bootloader ID option to be
16199 consistently --bootloader-id, not --bootloader_id.
16200 Reported by: KESHAV P.R.
16201
d309a16e
CW
162022010-09-21 Colin Watson <cjwatson@ubuntu.com>
16203
16204 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
16205 check hash checksum." consistently translatable.
16206
b830cd16
YB
162072010-09-21 Yves Blusseau <blusseau@zetam.org>
16208
16209 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
16210 $(top_builddir).
16211
c4fe27a8
CW
162122010-09-21 Colin Watson <cjwatson@ubuntu.com>
16213
16214 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
16215 (GRUB_MOD_INIT): Register sha1sum command.
16216 (GRUB_MOD_FINI): Unregister sha1sum command.
16217
a4c1d277
YB
162182010-09-21 Yves Blusseau <blusseau@zetam.org>
16219
16220 Keep boot and grub directory names in sync with utils scripts
16221
16222 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
16223 * config.h.in: Add previous macros.
16224 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
16225 * util/grub-install.in: Use $bootdir and $grubdir variables.
16226
4eff79d2
CW
162272010-09-21 Colin Watson <cjwatson@ubuntu.com>
16228
16229 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
16230 convert partition names to disk names if the new `convert' parameter
16231 is set.
16232 (grub_util_biosdisk_get_grub_dev): If opening the disk device
16233 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
16234 disk in its own right. This can happen with Xen disk images.
16235
934d7e44
YB
162362010-09-21 Yves Blusseau <blusseau@zetam.org>
16237
16238 * util/grub-editenv.c: Update strings to avoid warnings when generating
16239 grub.pot file.
16240 * util/grub-setup.c: Likewise.
934d7e44 16241
df3367cc
VS
162422010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16243
16244 * configure.ac: Change version to 1.99~beta0.
16245
77a94e98
VS
162462010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16247
16248 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
16249 Add BADRAM.
16250 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
16251 Likewise.
16252 * include/multiboot.h: Resynced with specification.
16253 * include/multiboot2.h: Likewise.
16254
269004c1
CW
162552010-09-21 Colin Watson <cjwatson@ubuntu.com>
16256
16257 Fix po directory handling.
16258
16259 * configure.ac: Create po/Makefile.in rather than po/Makefile.
16260 * grub-core/gnulib/Makefile.am: Import gettext module.
16261 * m4/gnulib-cache.m4: Likewise.
16262 * m4/gnulib-comp.m4: Likewise.
16263 * m4/gettext.m4: New file, from gnulib.
16264 * m4/glibc2.m4: Likewise.
16265 * m4/iconv.m4: Likewise.
16266 * m4/intdiv0.m4: Likewise.
16267 * m4/intl.m4: Likewise.
16268 * m4/intldir.m4: Likewise.
16269 * m4/intlmacosx.m4: Likewise.
16270 * m4/intmax.m4: Likewise.
16271 * m4/inttypes-pri.m4: Likewise.
16272 * m4/lcmessage.m4: Likewise.
16273 * m4/lib-ld.m4: Likewise.
16274 * m4/lib-link.m4: Likewise.
16275 * m4/lib-prefix.m4: Likewise.
16276 * m4/lock.m4: Likewise.
16277 * m4/nls.m4: Likewise.
16278 * m4/po.m4: Likewise.
16279 * m4/printf-posix.m4: Likewise.
16280 * m4/progtest.m4: Likewise.
16281 * m4/threadlib.m4: Likewise.
16282 * m4/uintmax_t.m4: Likewise.
16283 * m4/visibility.m4: Likewise.
16284 * po/Makefile.am: Remove.
16285 * po/Makefile.in.in: New file, from gettext.
16286 ($(DOMAIN).pot-update): Support POTFILES-shell.
16287 * po/Makevars: New file.
16288 * po/POTFILES-shell: Rename to ...
16289 * po/POTFILES-shell.in: ... this. Update.
16290 * po/POTFILES: Rename to ...
16291 * po/POTFILES.in: ... this. Update.
16292 * po/Rules-quot: New file, from gettext.
16293 * po/boldquot.sed: Likewise.
16294 * po/en@boldquot.header: Likewise.
16295 * po/en@quot.header: Likewise.
16296 * po/insert-header.sin: Likewise.
16297 * po/quot.sed: Likewise.
16298 * po/remove-potcdate.sin: Likewise.
16299
3e0fa5d0
VS
163002010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16301
16302 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
16303
ade9bd66
VS
163042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16305
16306 * util/grub.d/20_linux_xen.in: Use submenus.
16307
fc55cc4c
VS
163082010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16309
16310 Support submenus.
16311
16312 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
16313 parameter submenu. All users updated.
16314 * grub-core/normal/main.c (free_menu): Rename to ...
16315 (grub_normal_free_menu): ... this. Made global.
16316 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
16317 if requested.
16318 * grub-core/normal/menu_entry.c (screen): New field submenu.
16319 (make_screen): Set submenu.
16320 (run): Open new context if requested.
16321 * include/grub/menu.h (grub_menu_entry): New field submenu.
16322 * include/grub/normal.h (grub_normal_free_menu): New proto.
16323
600cedf7
VS
163242010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16325
16326 Menu entries extractor.
16327
16328 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16329 variants.
16330 (GRUB_MOD_INIT): Register new variants.
16331 (GRUB_MOD_FINI): Unregister new variants.
16332 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16333 into grub_cmd_legacy_source.
16334 (grub_cmd_legacy_source): Implement extractor variants.
16335 (GRUB_MOD_INIT): Register new variants.
16336 (GRUB_MOD_FINI): Unregister new variants.
16337 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16338 as an extractor.
16339 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16340 search as an extractor.
16341 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16342 test as an extractor.
16343 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16344 as an extractor.
16345 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16346 (grub_env_new_context): New function.
16347 (grub_env_context_open): Likewise.
16348 (grub_env_extractor_open): Likewise.
16349 (grub_env_extractor_close): Likewise.
16350 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16351 grub_extractor_level.
16352 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16353 * include/grub/env.h (grub_env_extractor_open): New proto.
16354 (grub_env_extractor_close): Likewise.
16355 * include/grub/normal.h (grub_extractor_level): New external variable.
16356
7bda3a87
VS
163572010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16358
16359 Make cutmem accept a region specification.
16360 Suggested by: Samuel Thibault
16361
16362 * grub-core/mmap/mmap.c (parsemem): New function.
16363 (grub_cmd_cutmem): Handle new arguments.
16364
2ea57f88
VS
163652010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16366
16367 New command cutmem.
16368
16369 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16370 (GRUB_MOD_INIT): Register new command.
16371 (GRUB_MOD_FINI): Unregister new command.
16372
74342e31
VS
163732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16374
16375 Support some annoying BSD and Minix subpartitions.
16376
16377 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16378 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16379 Properly handle concatenation.
16380 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16381 * grub-core/normal/completion.c (iterate_partition): Likewise.
16382 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16383 contain partition. All users updated.
16384 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16385 struct.
16386 (grub_openbsdlabel_partition_map): Likewise.
16387 (bsdlabel_partition_map_iterate): Rename to ..
16388 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16389 (bsdlabel_partition_map_iterate): New function.
16390 (netopenbsdlabel_partition_map_iterate): Likewise.
16391 (netbsdlabel_partition_map_iterate): Likewise.
16392 (openbsdlabel_partition_map_iterate): Likewise.
16393 (GRUB_MOD_INIT): Register new partmaps.
16394 (GRUB_MOD_FINI): Unregister new partmaps.
16395 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16396 (grub_partition_msdos_iterate): ... this. All users updated.
16397 Don't support embedding other than in a minix partition.
16398 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16399 proto.
16400 * include/grub/partition.h (grub_partition): New field msdostype.
16401 * util/grub-install.in: Handle openbsd and netbsd types being in
16402 part_bsd module.
16403
1e8d555b
VS
164042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16405
16406 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16407
16408 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16409 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16410 (mdraid09): ... this.
16411 (mdraid1x): New module.
16412 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16413 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16414
899d8af4
VS
164152010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16416
16417 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16418 vsprintf.
16419
40901acd
CW
164202010-09-20 Colin Watson <cjwatson@ubuntu.com>
16421
16422 * grub-core/commands/efi/lsefimmap.c: Correct header.
16423 * NEWS: Update.
16424
dfe3b247
CW
164252010-09-20 Colin Watson <cjwatson@ubuntu.com>
16426
16427 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16428 as printf format strings; the translations might contain '%' which
16429 could cause a crash.
16430 (main): Likewise.
16431 * util/grub-fstest.c (argp_parser): Likewise.
16432 * util/grub-setup.c (argp_parser): Likewise.
16433 (main): Likewise.
16434
3286a4b4
VS
164352010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16436
16437 Use argp in grub-fstest.
16438
16439 * util/grub-fstest.c: Don't include getopt.h.
16440 Include argp.h.
16441 (root): New variable.
16442 (args_count): Likewise.
16443 (nparm): Likewise.
16444 (num_disks): Likewise.
16445 (images): Likewise.
16446 (cmd): Likewise.
16447 (debug_str): Likewise.
16448 (args): Likewise.
16449 (options): Transformed to argp.
16450 (usage): Removed.
16451 (main): Split argument parsing into ...
16452 (argp_parser): ... this. Changed to argp format.
16453 (argp): New variable.
16454 (main): Use argp_parse.
16455
3dccbe4b
TG
164562010-09-20 Tristan Gingold <gingold@free.fr>
164572010-09-20 Robert Millan <rmh.grub@aybabtu.com>
164582010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16459
16460 * grub-core/commands/efi/lsefimmap.c: New file.
16461 * grub-core/Makefile.core.def (lsefimmap): New module.
16462 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16463
38c259a7
VS
164642010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16465
16466 Pause the execution (10s max) if any errors are displayed so the user
16467 has a chance to see them.
16468
16469 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16470 (grub_print_error): Increment grub_err_printed_errors.
16471 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16472 execution if any errors were displayed.
16473 (show_menu): Remove old code for pause.
16474 * grub-core/normal/menu_entry.c (run): Likewise.
16475 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16476 users updated.
16477 (grub_normal_get_char_counter): Likewise.
16478 * include/grub/err.h (grub_err_printed_errors): New external variable.
16479 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16480
f218b09c
VS
164812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16482
16483 Support multiboot VBE info.
16484
16485 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16486 Take VBE info into account.
16487 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16488 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16489 Call fill_vbe_info when appropriate.
16490 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16491 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16492 as supported.
16493 (grub_multiboot_get_mbi_size): Take new tags into account.
16494 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16495 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16496 Call fill_vbe_tag when appropriate.
16497 (grub_multiboot_make_mbi): Properly align tags.
16498 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16499 function.
16500 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16501 proto.
16502 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16503
a9cc5438
VS
165042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16505
16506 Suport manual terminal geometry specification.
16507
16508 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16509 Save state in grub_ofconsole_terminfo_output.
16510 (grub_ofconsole_term): Use grub_terminfo_getwh.
16511 (grub_ofconsole_getwh): Removed.
16512 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16513 (grub_serial_term): Use grub_terminfo_getwh.
16514 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16515 (options): New struct.
16516 (OPTION_*): New enum.
16517 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16518 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16519 width and height.
16520 (grub_terminfo_getwh): New proto.
16521 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16522
1a8fed20
VS
165232010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16524
16525 Handle legacy "terminal" command.
16526
16527 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16528 and FLAG_TERMINAL.
16529 (legacy_commands): Add terminal and title.
16530 (grub_legacy_parse): Handle terminal. Simplify title handling.
16531
41e9c57d
VS
165322010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16533
16534 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16535 parameters overflow.
16536
61c874c5
CW
165372010-09-20 Colin Watson <cjwatson@ubuntu.com>
16538
16539 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16540 widthspec.h.
16541
16542 * docs/grub.texi (Shell-like scripting): Document `!'.
16543 (Network): Simplify using new i386-pc-pxe format. Mention
16544 grub-mknetdir.
16545
16546 * NEWS: Update.
16547
943682b4
CW
165482010-09-20 Colin Watson <cjwatson@ubuntu.com>
16549
16550 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16551 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16552 when needed.
16553
6d3d698d
CW
165542010-09-20 Colin Watson <cjwatson@ubuntu.com>
16555
16556 * grub-core/commands/efi/lsefisystab.c: Correct header.
16557 * grub-core/commands/efi/lssal.c: Likewise.
16558 * grub-core/commands/testload.c: Likewise.
16559
c982589f
CW
165602010-09-20 Colin Watson <cjwatson@ubuntu.com>
16561
16562 * util/grub-mkrescue.in: Add explicit root argument to --set to
16563 prevent the UUID being interpreted as an argument to --set (matches
16564 previous change to prepare_grub_to_access_device).
16565
a63c31b6
CW
165662010-09-20 Colin Watson <cjwatson@ubuntu.com>
16567
16568 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16569 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16570 the verbosity of later #ifs.
16571 (find_partition_start): Define this function on FreeBSD too.
16572 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16573 function.
16574 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16575 on FreeBSD.
16576
6439b8ee
YB
165772010-09-20 Yves Blusseau <blusseau@zetam.org>
16578
16579 * util/grub-editenv.c: Use argp instead of getopt.
16580
c5930ec8
YB
165812010-09-20 Yves Blusseau <blusseau@zetam.org>
16582
16583 * util/grub-setup.c: Use argp instead of getopt.
16584
15c69261
YB
165852010-09-20 Yves Blusseau <blusseau@zetam.org>
16586
16587 Use gnulib-tool to create gnulib source files.
16588
16589 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16590 grub-core/gnulib directories
16591 * .bzignore: Add **/.deps and autogenerated gnulib files
16592 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16593 of gnulib macros, add grub-core/gnulib/Makefile
16594 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16595 include m4 directory to aclocal.
16596 * Makefile.util.def: Remove direct compilation of gnulib source files
16597 and use the new grub-core/gnulib/libgnu.a.
16598 * build-aux/config.rpath: move config.rpath from top directory to
16599 build-aux
16600 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16601 in gnulib headers
16602 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16603 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16604 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16605 header.
16606 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16607 string.
16608
e511c9f5
YB
166092010-09-20 Yves Blusseau <blusseau@zetam.org>
16610
16611 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16612 grub-core/genmod.sh and grub-core/gensyminfo.sh
16613
c2dede05
BC
166142010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16615
16616 Add a test for echo command options.
16617
16618 * tests/grub_cmd_echo.in: New test.
16619 * Makefile.util.def: Rules for new test.
16620
c55f5018
SJ
166212010-09-20 Szymon Janc <szymon@janc.net.pl>
16622
16623 Remove crc.mod and move crc command to hashsum.mod.
16624 Remove lib/crc.c - users updated to use gcrypt implementation.
16625
16626 * grub-core/commands/crc.c: Removed.
16627 * grub-core/Makefile.core.def (crc): Module removed.
16628 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16629 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16630 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16631 * grub-core/lib/crc.c: Removed.
16632 * include/grub/lib/crc.h: Removed.
16633 * Makefile.util.def (crc): Remove lib/crc.c
16634 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16635 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16636 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16637 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16638 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16639 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16640
e0337366
VS
166412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16644
742f9232
VS
166452010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16646
16647 Split config.h for util and core.
16648
16649 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16650 (ADDR32): Likewise.
16651 (DATA32): Likewise.
16652 (BSS_START_SYMBOL): Likewise.
16653 (END_SYMBOL): Likewise.
16654 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16655 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16656 * config.h.in: New file.
16657 * configure.ac: Use config-util.h as config define file.
16658 Rename MACHINE into GRUB_MACHINE. All users updated.
16659 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16660 updated.
16661 (NESTED_FUNC_ATTR): Likewise.
16662 Substitue new variables.
16663 (COND_HAVE_ASM_USCORE): New conditional.
16664 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16665 (kernel_syms.lst): Use ASM_PREFIX.
16666 * grub-core/kern/emu/console.c: Include config-util.h.
16667 * grub-core/kern/emu/misc.c: Likewise.
16668 * grub-core/kern/emu/mm.c: Likewise.
16669 * include/grub/emu/misc.h: Likewise.
16670 * include/grub/libgcc.h: Likewise.
16671
39feb0e8
VS
166722010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16673
16674 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16675 constants usage.
16676 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16677 Fix GRUB_TERM_KEY_* constants usage.
16678 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16679
9af6dac3
VS
166802010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16681
16682 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16683 print pointer.
16684 * grub-core/bus/usb/uhci.c: Remove empty define.
16685 (grub_uhci_check_transfer): Add missing cast.
16686 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16687 print pointer.
16688 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16689 PRIuGRUB_SIZE.
16690 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16691
d6d94820
VS
166922010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16693
16694 * grub-core/Makefile.core.def (legacycfg): Add
16695 lib/i386/pc/vesa_modes_table.c on emu.
16696
3572f2b6
BC
166972010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16698
16699 Reduce number of temporary files generated by build system.
16700
16701 * grub-core/gencmdlist.sh: Removed.
16702 * grub-core/genfslist.sh: Removed.
16703 * grub-core/genhandlerlist.sh: Removed.
16704 * grub-core/genmodsrc.sh: Removed.
16705 * grub-core/genpartmaplist.sh: Removed.
16706 * grub-core/genparttoollist.sh: Removed.
16707 * grub-core/gentermiinallist.sh: Removed.
16708 * grub-core/genvideolist.sh: Removed.
16709
16710 * grub-core/genmod.sh.in: New file.
16711 * grub-core/gensyminfo.sh.in: New file.
16712
16713 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16714 * conf/Makefile.extra-dist: Update with new files.
16715 * gentpl.py: Remove rules related to unnecessary temporary files.
16716 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16717 and und-* files.
16718 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16719 genmod.sh scripts.
16720 * grub-core/bus/usb/uhci.c: Remove empty #define.
16721 * grub-core/genmoddep.awk: Updated with new syminfo format.
16722 * util/bash-completion.d/Makefile.am: Add config.log to
16723 CLEANFILES.
16724
c836b030
YB
167252010-09-19 Yves Blusseau <blusseau@zetam.org>
16726
16727 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16728
2f4e8053
BC
167292010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16730
16731 * util/grub-mkconfig.in: Check the config script for syntax errors
16732 before saving.
16733
75831c34
CW
167342010-09-19 Colin Watson <cjwatson@ubuntu.com>
167352010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16736
16737 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16738 platforms.
16739 * util/grub-install.in: Add EFI and IEEE1275 support.
16740 * util/i386/efi/grub-install.in: Removed.
16741 * util/ieee1275/grub-install.in: Likewise.
16742
eaf41b25
VS
167432010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16744
16745 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16746 (grub_cmd_cmosclean): Likewise.
16747 (GRUB_MOD_INIT): Register command cmosclean.
16748 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16749 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16750
1a9130dd
CPE
167512010-09-18 Carles Pina i Estany <carles@pina.cat>
167522010-09-18 Aleš Nesrsta <starous@volny.cz>
167532010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16754
16755 Add keyboard layouts support.
16756
16757 * Makefile.util.def (grub-mklayout): New file.
16758 (grub-kbdcomp): New script.
16759 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16760 Add keyboard_layouts.h.
16761 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16762 commands/boot.c on yeeloong.
16763 (keylayouts): New module.
16764 * grub-core/bus/usb/ohci.c
16765 * grub-core/bus/usb/uhci.c
16766 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16767 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16768 (attach_root_port): Likewise.
16769 (poll_nonroot_hub): Likewise.
16770 (grub_usb_poll_devices): Likewise.
16771 (detach_device): Close transfer.
16772 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16773 function.
16774 (grub_usb_bulk_setup_readwrite): Likewise.
16775 (grub_usb_bulk_finish_readwrite): Likewise.
16776 * grub-core/commands/keylayouts.c: New file.
16777 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16778 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16779 aliases.
16780 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16781 support scancode 2.
16782 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16783 * include/grub/keyboard_layouts.h: New file.
16784 * util/grub-mklayout.c: New file.
16785 * util/grub-kbdcomp.in: Likewise.
16786
a1d84a5e
VS
167872010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16788
16789 Unify memory types.
16790
16791 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16792 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16793 types.
16794 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16795 (grub_upper_mem): Likewise.
16796 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16797 * include/grub/memory.h (grub_memory_type_t): New enum.
16798 All users updated.
16799
9696382e
VS
168002010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16801
16802 * grub-core/Makefile.core.def (lsapm): New module.
16803 * grub-core/commands/i386/pc/lsapm.c: New file.
16804 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16805 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16806 Likewise.
16807 * include/grub/i386/pc/apm.h: New file.
16808 * include/multiboot.h (multiboot_apm_info): New struct.
16809
168102010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16811
16812 GRUB-legacy configuration file support.
16813
16814 * Makefile.util.def (grub-menulst2cfg): New util.
16815 * docs/man/grub-menulst2cfg.h2m: New file.
16816 * grub-core/Makefile.core.def (legacycfg): New module.
16817 * grub-core/commands/legacycfg.c: New file.
16818 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16819 (grub_normal_add_menu_entry): ... this.
16820 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16821 (grub_normal_set_password): ...this.
16822 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16823 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16824 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16825 * grub-core/lib/legacy_parse.c: New file.
16826 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16827 * include/grub/i386/pc/vesa_modes_table.h: New file.
16828 * include/grub/legacy_parse.h: Likewise.
16829 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16830 * util/grub-menulst2cfg.c: New file.
16831
bf8d1338
CW
168322010-09-17 Colin Watson <cjwatson@ubuntu.com>
16833
16834 * grub-core/kern/emu/hostdisk.c
16835 (convert_system_partition_to_system_disk): Initialise node.
16836
9c0bad2e
CW
168372010-09-17 Colin Watson <cjwatson@ubuntu.com>
16838
16839 * grub-core/kern/emu/hostdisk.c
16840 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16841 leak.
16842 Reported and based on patch by: Modestas Vainius.
16843
a939d135
CW
168442010-09-17 Colin Watson <cjwatson@ubuntu.com>
16845
16846 Fix DM-RAID probing with recent versions of device-mapper udev
16847 rules.
16848
16849 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16850 canonicalise device paths under /dev/mapper/.
16851 (convert_system_partition_to_system_disk): Compare the
16852 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16853 path, since device nodes under /dev/mapper/ are often symlinks.
16854
0f7ee3c9
YB
168552010-09-17 Yves Blusseau <blusseau@zetam.org>
16856
16857 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16858
10854d0d
YB
168592010-09-16 Yves Blusseau <blusseau@zetam.org>
16860
16861 * configure.ac: Avoid some annoying error messages if freetype-config
16862 program is not found.
16863
108538d8
CW
168642010-09-16 Colin Watson <cjwatson@ubuntu.com>
16865
16866 Support RAID on virtio devices, and others.
16867
16868 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16869 Rename to ...
16870 [__MINGW32__] (grub_find_device): ... this.
16871 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16872 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16873 reasonable default if dir is NULL.
16874 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16875 ...
16876 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16877 (grub_guess_root_device): Update callers.
16878 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16879
16880 * util/raid.c (grub_util_getdiskname): Remove.
16881 (grub_util_raid_getmembers): Use grub_find_device rather than
16882 grub_util_getdiskname.
16883
e5bfc130
CW
168842010-09-16 Colin Watson <cjwatson@ubuntu.com>
16885
16886 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16887 needing to be compiled with serial support.
16888 (ls): Indicate that multiple files are accepted.
16889 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16890 indicate that multiple files are accepted.
16891
be458ae2
CW
168922010-09-16 Colin Watson <cjwatson@ubuntu.com>
16893
16894 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16895 libgrub_a_init.c, and util/bash-completion.d/grub.
16896
cb731b5e
VS
168972010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16898
16899 * util/grub-setup.c (setup): Fix incorrect container semantics.
16900
35139e8a
VS
169012010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16902
16903 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16904 misusage.
16905 Reported by: J. Nick Terry
16906
e50fca4a
VS
169072010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16908
16909 Move embedding routines to partmap sources files.
16910
16911 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16912 [GRUB_UTIL]: New variable.
16913 (gpt_partition_map_iterate): Set part.parent.
16914 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16915 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16916 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16917 New function.
16918 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16919 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16920 (grub_partition_map) [GRUB_UTIL]: New field embed.
16921 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16922 (setup): Use ->embed.
16923
f00478b7
VS
169242010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16925
16926 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16927 function.
16928 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16929 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16930
2b94e3ff
YB
169312010-09-15 Yves Blusseau <blusseau@zetam.org>
16932
16933 Add function to get completions from usage.
16934
16935 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16936 completions from usage. Use LC_ALL=C to get options properly.
16937
2e04a006
VS
169382010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16939
16940 * grub-core/gnulib/basename-lgpl.c: Imported.
16941 * grub-core/gnulib/basename.c: Likewise.
16942 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16943 * grub-core/gnulib/dirname.c: Likewise.
16944 * grub-core/gnulib/dirname.h: Likewise.
16945 * grub-core/gnulib/stripslash.c: Likewise.
16946
5dcdf93a
VS
169472010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16948
16949 * grub-core/gnulib/error.c: Resynced.
16950 * grub-core/gnulib/getopt.c: Likewise.
16951 * grub-core/gnulib/getopt_int.h: Likewise.
16952 * grub-core/gnulib/regex.h: Likewise.
16953 * grub-core/gnulib/regex_internal.c: Likewise.
16954 * grub-core/gnulib/regex_internal.h: Likewise.
16955
014f47b7
SJ
169562010-09-15 Szymon Janc <szymon@janc.net.pl>
16957
16958 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16959 CRC calculations and validity checks.
16960 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16961 calculations.
16962
dd521a4a
SJ
169632010-09-15 Szymon Janc <szymon@janc.net.pl>
16964
16965 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16966
79c4eeb9
VS
169672010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16968
16969 Fix incorrect echo options handling.
16970 Reported by: Yves Blusseau.
16971
16972 * include/grub/command.h (grub_command_flags_t): New flags
16973 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16974 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16975 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16976
ed80f7d5
VS
169772010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16978
16979 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16980 users updated.
16981 (GRUB_COMMAND_FLAG_MENU): Likewise.
16982 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16983 (GRUB_COMMAND_FLAG_TITLE): Removed.
16984 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16985 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16986 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16987 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16988 (grub_command_flags_t): New enum. All users updated.
16989
5fe7620a
SG
169902010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16991
16992 Fix solaris compilation.
16993
16994 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16995 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16996 (grub-emu-list): Likewise.
16997
545b752f
VS
169982010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16999
17000 Remove deprecated root command.
17001
17002 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
17003 updated.
17004
6c1a338c
VS
170052010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17006
17007 * util/i386/pc/grub-setup.c: Merge this ...
17008 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
17009 * util/grub-setup.c: ... into this.
17010 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
17011 New struct.
17012
170132010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17014
17015 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
17016 possible.
17017
d2ea4551
VS
170182010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17019
17020 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
17021 allocate p.
17022
3c3b5040
VS
170232010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17024
17025 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
17026 explicit root argument to set to prevent UUID to be interpreted as
17027 argument to set.
17028
b71c3fae
VS
170292010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17030
17031 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
17032
275433e6
VS
170332010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17034
17035 Don't export grub_gate_a20.
17036
17037 * grub-core/kern/i386/pc/init.c: Remove leftovers.
17038 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
17039 to ...
17040 (grub_gate_a20): ... this. All users updated.
17041 * include/grub/i386/pc/init.h: Removed. All users updated.
17042
a5dbb1f1
VS
170432010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17044
17045 Create euro.pf2 which supports most European languages.
17046
17047 * Makefile.am (grubdata_DATA): Add euro.pf2.
17048 (euro.pf2): New target.
17049 (CLEANFILES): Add euro.pf2.
17050
62a747cb
VS
170512010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17052
17053 * configure.ac: Disable emu-usb by default to prevent inadvertent
17054 device takeover.
17055
608e43b1
VS
170562010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17057
17058 Disable usbserial on grub-emu since our libusb code isn't good enough
17059 yet.
17060
17061 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
17062 (usbserial_pl2303): Likewise.
17063 (usbserial_ftdi): Likewise.
17064
94564f81
VS
170652010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17066
17067 * include/grub/disk.h (grub_disk): Remove has_partitions.
17068 All users updated.
17069 * disk/loopback.c (grub_loopback): Remove has_partitions.
17070 All users updated.
17071 (options): Remove partitions. All users updated.
17072 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
17073 * util/i386/pc/grub-setup.c (setup): copy partition table only when
17074 actual partition table is found.
17075
3352800b
VS
170762010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17077
17078 Remove readability checks (too many false negatives).
17079
17080 * util/grub-install.in: Remove readability checks.
17081 * util/grub-mkconfig.in: Likewise.
17082 * util/grub.d/10_hurd.in: Likewise.
17083 * util/grub.d/10_kfreebsd.in: Likewise.
17084 * util/grub.d/10_linux.in: Likewise.
17085 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
17086 way.
17087
2419f17a
VS
170882010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17089
17090 Enable acpi shutdown on all ACPI platforms.
17091
17092 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
17093 on coreboo, multiboot and EFI.
17094 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
17095 (grub_acpi_halt): Likewise.
17096 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
17097 (grub_cmd_halt): Don't call grub_acpi_halt directly.
17098 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
17099 * grub-core/lib/i386/halt.c (grub_halt)
17100 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
17101
0575c7c3
VS
171022010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17103
17104 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
17105 context.
17106
54ac3cd1
VS
171072010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17108
17109 * grub-core/video/efi_gop.c: Fix over-80-chars line.
17110 * grub-core/video/efi_uga.c: Likewise.
17111
b2a30ac5
VS
171122010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17113
17114 Filter devaliases and never open same device twice.
17115
17116 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
17117 (last_ihandle): Likewise.
17118 (ofdisk_hash_ent): New member shortest.
17119 (ofdisk_hash_add): Add canonical path too.
17120 (scan): New function.
17121 (grub_ofdisk_iterate): Iterate over hashed entries.
17122 (compute_dev_path): Don't add :0.
17123 (grub_ofdisk_open): Don't really open the disk.
17124 (grub_ofdisk_close): Avoid closing unrelated disk.
17125 (grub_ofdisk_read): Implement reopen logic.
17126 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
17127 New function.
17128 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
17129 New proto.
17130
fb53b340
VS
171312010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17132
17133 Fix sparc64.
17134
17135 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
17136 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
17137 right address. Add sparc64_ieee1275_ldflags.
17138 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
17139 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
17140 to grub_host_to_target_addr
17141 (load_image): Likewise.
17142
f452b040
VS
171432010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17144
17145 * grub-core/normal/completion.c (complete_file): Handle device
17146 containing slash.
17147 Fix based on patch by Doug Nazar.
17148
9b5b2541
VS
171492010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17150
17151 grub-mknetdir script.
17152
17153 * Makefile.util.def (grub-mknetdir): New module.
17154 * tests/util/grub-shell.in: Support boot=net
17155 * util/grub-mknetdir.in: New file.
17156
9d2be652
VS
171572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17158
17159 videoinfo on non-vbe.
17160
17161 * grub-core/Makefile.core.def (vbeinfo): Removed.
17162 (vbetest): Removed.
17163 (videoinfo): New module.
17164 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
17165 * grub-core/commands/i386/pc/vbetest.c: Removed.
17166 * grub-core/commands/videoinfo.c: New file.
17167 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
17168 specification.
17169 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
17170 as vbetest.
17171 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
17172 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
17173 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
17174 mode_number. New parameter mode. All users updated.
17175 (grub_video_gop_iterate): New function.
17176 (grub_video_efi_gop): New member iterate.
17177 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
17178 (grub_vbe_set_video_mode): Remove setting useless fields.
17179 (vbe2videoinfo): New function.
17180 (grub_video_vbe_iterate): Likewise.
17181 (grub_video_vbe_setup): Use vbe2videoinfo.
17182 (grub_video_vbe_print_adapter_specific_info): New function.
17183 (grub_video_vbe_adapter): New fields iterate and
17184 print_adapter_specific_info.
17185 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
17186 All users updated.
17187 (grub_video_mode_info): New field mode_number.
17188 (grub_video_adapter): New fields iterate and
17189 print_adapter_specific_info.
17190
179503f5
TG
171912010-09-13 Tristan Gingold <gingold@free.fr>
171922010-09-13 Robert Millan <rmh.grub@aybabtu.com>
171932010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17194
17195 * grub-core/commands/efi/lsefisystab.c: New file.
17196 * grub-core/commands/efi/lssal.c: Likewise.
17197 * grub-core/Makefile.core.def (lsacpi): New module.
17198 (lsefisystab): Likewise.
17199 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
17200 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
17201 (grub_efi_sal_system_table): New struct.
17202 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
17203 (grub_efi_sal_system_table_memory_descriptor): Likewise.
17204 (grub_efi_sal_system_table_platform_features): Likewise.
17205 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
17206 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
17207 (grub_efi_sal_system_table_ap_wakeup): Likewise.
17208 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
17209
cf9827de
VS
172102010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17211
17212 Support explicit user claim that a device is BIOS-visible.
17213
17214 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
17215 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
17216 * grub-core/kern/emu/hostdisk.c
17217 (convert_system_partition_to_system_disk): Support mdX.
17218 (find_system_device): New parameter add. All users updated.
17219 (grub_util_biosdisk_is_present): New function.
17220 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
17221 proto.
17222
53f0eb1f
VS
172232010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17224
17225 Search hints support.
17226
17227 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
17228 All users updated.
17229
b23ffd70
YB
172302010-09-13 Yves Blusseau <blusseau@zetam.org>
17231
17232 Bash completion script for util commands
17233
17234 * Makefile.am: Add util/bash-completion.d directory
17235 * configure.ac: Likewise.
17236 * util/bash-completion.d/Makefile.am: New file.
17237 * util/bash-completion.d/grub-completion.bash.in: Likewise.
17238
d547dc28
VS
172392010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17240
17241 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
17242 (print_backlog): set backlog_ucs4 and backlog_glyphs.
17243 Reported by: Yves Blusseau.
17244
2fc8ccb9
VS
172452010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17246
17247 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
17248 partition size and offset.
17249
d8a84076
VS
172502010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17251
17252 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
17253
84fb3b3d
VS
172542010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17255
17256 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
17257
768ec2e2
VS
172582010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17259
17260 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
17261 (grub_xvasprintf): Likewise.
17262
4870900f
VS
172632010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17264
17265 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
17266
faca6bec
VS
172672010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17268
17269 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
17270 args ending with NULL.
17271
172722010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
17273
17274 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
17275 pointer.
17276
3c70f225
SJ
172772010-09-11 Szymon Janc <szymon@janc.net.pl>
17278
17279 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
17280
4df7996d
VS
172812010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17282
17283 Shutdown using ACPI.
17284
17285 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
17286 * grub-core/commands/acpihalt.c: New file.
17287 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
17288 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
17289 (grub_acpi_halt): New proto.
17290 (GRUB_ACPI_SLP_EN): New const.
17291 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
17292 (GRUB_ACPI_OPCODE_*): New enum.
17293 (GRUB_ACPI_EXTOPCODE_*): Likewise.
17294
126b4c32
TG
172952010-09-11 Tristan Gingold <gingold@free.fr>
172962010-09-11 Robert Millan <rmh.grub@aybabtu.com>
172972010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17298
17299 * commands/lsacpi.c: New file.
17300 * grub-core/Makefile.core.def (lsacpi): New module.
17301 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
17302 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
17303 (grub_acpi_madt_entry_header): New struct.
17304 (grub_acpi_madt): Likewise.
17305 (grub_acpi_madt_entry_interrupt_override): Likewise.
17306 (grub_acpi_madt_entry_sapic): Likewise.
17307 (grub_acpi_madt_entry_lsapic): Likewise.
17308 (grub_acpi_madt_entry_platform_int_source): Likewise.
17309 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
17310 (PRIuGRUB_UINT32_T): Likewise.
17311 (PRIxGRUB_UINT64_T): Likewise.
17312
1aa4fe88
VS
173132010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17314
17315 Implement loading palette on ieee1275_fb.
17316
17317 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
17318 (have_setcolors): Likewise.
17319 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17320 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17321 (grub_video_ieee1275_set_palette): Implement.
17322
25761e13
VS
173232010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
173242010-09-11 Colin Watson <cjwatson@ubuntu.com>
17325
17326 * util/grub-install.in (grub_partition): New variable.
17327 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17328 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17329 Fixes a bug reported by Yves Blusseau.
17330
050abaea
VS
173312010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17332
17333 Fix emu on mipsel.
17334
17335 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17336 =grub_cpu_flush_cache on all mips and not only yeeloong.
17337 * configure.ac (COND_mips): New conditional.
17338 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17339 platforms.
17340 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17341 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17342 [GRUB_LINKER_HAVE_INIT]: New function.
17343 (grub_emu_post_init): Likewise.
17344 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17345 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17346 * include/grub/cache.h (_mips): Include mips/cache.h.
17347 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17348 LVM and RAID prototypes.
17349 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17350 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17351 function.
17352
5ed7d816
CW
173532010-09-10 Colin Watson <cjwatson@ubuntu.com>
17354
17355 * util/grub-install.in: Don't try to verify core.img until after
17356 running grub-mkimage to create it.
17357
90367e04
RM
173582010-09-10 Robert Millan <rmh@gnu.org>
17359
17360 * util/grub.d/10_hurd.in: Add misc readability checks.
17361 * util/grub.d/10_kfreebsd.in: Likewise.
17362 * util/grub.d/10_linux.in: Likewise.
17363
c452fa66
CW
173642010-09-10 Colin Watson <cjwatson@ubuntu.com>
17365
17366 * util/grub-install.in: ${imgext} won't be defined here until the
17367 install branch is merged. For the meantime, only verify core.img on
17368 i386-pc and sparc64-ieee1275 platforms.
17369
c38fe9f4
RM
173702010-09-10 Robert Millan <rmh@gnu.org>
17371
17372 Solaris support in grub_find_zpool_from_dir(). Thanks
17373 Seth Goldberg for referring to getextmntent() facility.
17374
17375 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17376 `sys/mkdev.h'.
17377 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17378 `<sys/mnttab.h>'.
17379 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17380 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17381 method for finding zpool name.
17382
905f7773
CW
173832010-09-10 Colin Watson <cjwatson@ubuntu.com>
17384
17385 grub-fstest needs the host and hostfs modules while other utilities
17386 actively require those modules to be absent, so grub-fstest needs
17387 its own initialisation and finalisation code.
17388
17389 * Makefile.am (grub_fstest.pp): New target.
17390 (grub_fstest_init.lst): Likewise.
17391 (grub_fstest_init.c): Likewise.
17392 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17393
fb90b546
RM
173942010-09-10 Robert Millan <rmh@gnu.org>
17395
17396 * configure.ac: Check for `struct statfs.f_fstypename' and
17397 `struct statfs.f_mntfromname'.
17398
17399 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17400 kFreeBSD-specific code.
17401
66d4bea5
RM
174022010-09-10 Robert Millan <rmh@gnu.org>
17403
17404 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17405 on ZFS. Now non-main filesystems are supported as / too.
17406
b6a690ee
CW
174072010-09-09 Colin Watson <cjwatson@ubuntu.com>
17408
17409 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17410 and grub-core/disk/host.c to ...
17411 (grub-fstest): ... here. Having the host disk implementation
17412 present confuses grub-probe and other utility programs.
17413
17414 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17415 when writing to a file, not when writing to stdout.
17416
8901b00c 174172010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17418
17419 * tests/partmap_test.in: New test for partitions.
17420 * Makefile.util.def: Rules for new test.
17421
7bf45fdd
RM
174222010-09-09 Robert Millan <rmh@gnu.org>
17423
17424 * util/grub-probe.c (probe): Fix a pair of unhandled error
17425 conditions.
17426
4dfbc574
RM
174272010-09-09 Robert Millan <rmh@gnu.org>
17428
17429 Basic Btrfs support (detection and UUID).
17430
17431 * grub-core/fs/btrfs.c: New file.
17432 * Makefile.util.def (library): Register btrfs.c.
17433 * grub-core/Makefile.core.def: Likewise.
17434
6b8e78ae
RM
174352010-09-08 Robert Millan <rmh@gnu.org>
17436
17437 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17438 with (optional) parameters to specify device and relative path.
17439 * util/grub-install.in: Use is_path_readable_by_grub() to
17440 verify readability of a few critical files.
17441 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17442 verify readability of grub.cfg.new.
17443
27f21a8b
VS
174442010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17445
17446 Split minix.mod into minix.mod and minix2.mod.
17447
17448 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17449 * grub-core/Makefile.core.def (minix2): New module.
17450 * grub-core/fs/minix.c: Use definitions instead of runtime version
17451 checking.
17452 * grub-core/fs/minix2.c: New file.
17453
c0e53ea5
YB
174542010-09-08 Yves Blusseau <blusseau@zetam.org>
17455
17456 Add new --boot-directory option to replace --root-directory
17457
17458 * util/grub-install.in: Add new --boot-directory option
17459 * util/grub-reboot.in: Likewise.
17460 * util/grub-set-default.in: Likewise.
17461
b9fe6ea2
YB
174622010-09-08 Yves Blusseau <blusseau@zetam.org>
17463
17464 * util/grub-mkconfig.in: Use new variable.
17465
d87aedff
YB
174662010-09-08 Yves Blusseau <blusseau@zetam.org>
17467
17468 * configure.ac: Define some useful variables.
17469
e55e8495
VS
174702010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17471
17472 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17473 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17474 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17475 Use terminfo and don't use cursor-on/cursor-off unless it's known
17476 to work.
17477 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17478 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17479
6fa6d675
CW
174802010-09-08 Colin Watson <cjwatson@ubuntu.com>
17481
17482 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17483 starts with "(,", fill the drive containing the loaded image in
17484 between those two characters, but expect that a full partition
17485 specification including partition map names will follow.
17486
92f2aef0
RM
174872010-09-08 Robert Millan <rmh@gnu.org>
17488
17489 * configure.ac: Remove `--enable-grub-fstest' option.
17490 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17491
17492 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17493 `grub-fstest' instead of `grub-probe' for readability verification.
17494 * util/grub-probe.c (probe): Remove readability verification kludge.
17495
99fd620d
RM
174962010-09-08 Robert Millan <rmh@gnu.org>
17497
17498 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17499 initializing `GRUB_FS'.
17500
058e30ac 175012010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17502
17503 Not command (!) support to GRUB script.
17504
17505 * tests/grub_script_not.in: New test.
17506 * Makefile.util.def: Rules for new test.
17507
17508 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17509 ! command as a special case.
17510 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17511
b61d05ed 175122010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17513
058e30ac 17514 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17515 grub_free.
b61d05ed 17516
4d69c786 175172010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17518
17519 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17520
aa3119c4 175212010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17522
17523 * docs/grub.texi (Shell-like scripting): Documentation for break,
17524 continue, shift and return commands.
17525
db0f7e3d
VS
175262010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17527
17528 Rename CD-ROM to cd on BIOS.
17529
17530 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17531 "cd".
17532 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17533
88b87c93
VS
175342010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17535
17536 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17537 * util/grub-probe.c (main): Likewise.
17538 * util/i386/pc/grub-setup.c (main): Likewise.
17539 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17540 Reported and debugged by: alexxy
17541
294f324d
VS
175422010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17543
17544 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17545 diagnostic info.
17546
d7ee3441
JS
175472010-09-05 Jo Shields <directhex@apebox.org>
17548
17549 * util/grub.d/30_os-prober.in: Add missing classes.
17550
d7e06c1f
VS
175512010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17552
17553 * docs/grub.texi (Theme file format): Document new position format.
17554
fc157e53
VS
175552010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17556
17557 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17558 a table. Use @code instead of @verbatim.
17559
506e9a1c
CB
175602010-09-05 Colin D Bennett <colin@gibibit.com>
17561
17562 Gfxmenu documentation.
17563
17564 * docs/grub.texi (Theme file format): New chapter.
17565
f0aff67c
SJ
175662010-09-05 Szymon Janc <szymon@janc.net.pl>
17567
17568 * grub-core/Makefile.core.def (xzio): New module.
17569 * grub-core/io/xzio.c: New file.
17570 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17571 * grub-core/lib/xzembed/xz_config.h: Likewise.
17572 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17573 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17574 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17575 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17576 * grub-core/lib/xzembed/xz_private.h: Likewise.
17577 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17578 * include/grub/file.h (grub_file_filter_id): New compression filter
17579 GRUB_FILE_FILTER_XZIO.
17580
82a85062
VS
175812010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17582
17583 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17584 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17585 size.
17586
3579415d
VS
175872010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17588
17589 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17590 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17591
5124ae6d
VS
175922010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17593
17594 Uncompressed checksum support.
17595
17596 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17597 (check_list): New parameter uncompress.
17598 (grub_cmd_hashsum): Handle --uncompress.
17599
9aadb3d1
VS
176002010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17601
17602 Reintroduce testload.
17603
17604 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17605 from here ...
17606 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17607 (GRUB_MOD_INIT): New function.
17608 (GRUB_MOD_FINI): Likewise.
17609 * grub-core/Makefile.core.def (testload): New module.
17610
a17792c3
SJ
176112010-09-05 Szymon Janc <szymon@janc.net.pl>
17612
17613 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17614 (uint8_t): New type.
17615 (uint16_t): Likewise.
17616 (uint32_t): Likewise.
17617 (uint64_t): Likewise.
17618
b81e40a3
SJ
176192010-09-05 Szymon Janc <szymon@janc.net.pl>
17620
17621 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17622
fc2ef117
VS
176232010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17624
17625 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17626 Made static.
17627 (grub_gzfile_open): Removed. All users updated.
17628 (GRUB_MOD_INIT): New function.
17629 (GRUB_MOD_FINI): Likewise.
17630 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17631 (grub_file_filters_enabled): Likewise.
17632 (grub_file_open): Handle filters.
17633 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17634 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17635 * include/grub/file.h (grub_file_filter_id_t): New type.
17636 (grub_file_filter_t): Likewise.
17637 (grub_file_filters_all): New extern variable.
17638 (grub_file_filters_enabled): Likewise.
17639 (grub_file_filter_register): New inline function.
17640 (grub_file_filter_unregister): Likewise.
17641 (grub_file_filter_disable): Likewise.
17642 (grub_file_filter_disable_compression): Likewise.
17643 * include/grub/gzio.h: Removed.
17644
35ee15e0
BC
176452010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17646
17647 Filename expansion support for wildcards in GRUB script.
17648
17649 * tests/grub_script_expansion.in: New test.
17650 * Makefile.util.def: Rule for new test.
17651
17652 * grub-core/commands/wildcard.c: New file, implements filename
17653 expansion support for GRUB script.
17654 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17655 * grub-core/script/argv.c: Cosmetic changes.
17656 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17657 Refactored to perform wildcard expansion on arguments.
17658 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17659 struct.
17660
17661 * tests/util/grub-shell.in: Fix quoting for read input.
17662
5f0c4aca
BC
176632010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17664
17665 Support for updating environment variables with matched substrings
17666 of regexp.
17667
17668 * tests/grub_cmd_regexp.in: New test.
17669 * Makefile.util.def: Rule for new test.
17670
17671 * grub-core/commands/regexp.c: New option -s to update environment
17672 variables with regexp matches.
17673
3759a35f
SJ
176742010-09-04 Szymon Janc <szymon@janc.net.pl>
17675
17676 * include/grub/file.h (grub_file): New member not_easly_seekable.
17677 (grub_file_seekable): New inline function.
17678 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17679 easily seekable.
17680 (grub_gzio_open): Set not_easly_seekable.
17681 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17682 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17683
ed8c6dec
BC
176842010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17685
17686 Support for options to appear multiple times on cmdline.
17687
17688 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17689 * grub-core/commands/extcmd.c: Support for repeatable option.
17690 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17691 repeatable option support.
17692
17693 Refactor menuentry into a regular command.
17694
17695 * grub-core/commands/menuentry.c: New file, menuentry command
17696 implementation.
17697 * grub-core/Makefile.core.def: Rule update for normal.mod.
17698 * grub-core/normal/main.c: Moved menuentry creation to
17699 grub-core/commands/menuentry.c.
17700 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17701 (grub_menu_execute_entry_real): Removed.
17702 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17703 function.
17704 (grub_script_execute_menuentry): Removed.
17705 * grub-core/script/parser.y (menuentry): Removed.
17706 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17707 * grub-core/script/yylex.l (menuentry): Removed.
17708 * include/grub/menu.h (grub_menu_init): New prototype.
17709 (grub_menu_fini): New prototype.
17710 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17711 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17712 (grub_script_execute_sourcecode): New prototype.
17713
dacd0cf0
BC
177142010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17715
17716 "return" command for GRUB script functions.
17717
17718 * tests/grub_script_return.in: New test.
17719 * Makefile.util.def: Rules for new test.
17720
17721 * grub-core/script/execute.c (grub_script_return): New function.
17722 * grub-core/script/main.c: Register/unregister return commaond.
17723 * include/grub/script_sh.h (grub_script_return): New prototype.
17724
52e72f9d
BC
177252010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17726
17727 "setparams" command to update positional parameters.
17728
17729 * tests/grub_script_setparams.in: New test.
17730 * Makefile.util.def: Rules for new test.
17731
17732 * grub-core/script/argv.c (grub_script_argv_make): New function.
17733 * grub-core/script/execute.c (replace_scope): New function.
17734 (grub_script_setparams): New function.
17735 * grub-core/script/lexer.c: Remove unused variables.
17736 * grub-core/script/main.c: Register/unregister setparams command.
17737 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17738 (grub_script_setparams): New prototype.
17739
25b60c91
BC
177402010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17741
17742 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17743 grub_free order.
17744
37e7bf68
BC
177452010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17746
17747 Support for passing block of commands as an argument to extcmds.
17748
17749 * Makefile.util.def: Rules for new test.
17750 * tests/grub_script_blockarg.in: New test.
17751 * grub-core/tests/test_blockarg.c: New file, block argument
17752 command used in the test.
17753
17754 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17755 (grub_register_extcmd_prio): New function prototype.
17756 (grub_extcmd_dispatcher): New function prototype.
17757 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17758 type.
17759 * include/grub/script_sh.h (struct grub_script): New members
17760 `children', `next_siblings' and `refcnt' for block arguments and
17761 reference counting.
17762 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17763 (grub_script_arg): New member `script' for block argument.
17764 (grub_script_argv): New member `script' for block argument.
17765 (grub_parser_param): New member `scripts' for block argument.
17766 (grub_script_mem_free): New extern function prototype.
17767 (grub_script_ref): New function prototype.
17768 (grub_script_unref): New function prototype.
17769
17770 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17771 extcmd form to support block arguments.
17772 * grub-core/script/argv.c: Block arguments support.
17773 * grub-core/script/execute.c: Likewise.
17774 * grub-core/script/lexer.c: Likewise.
17775 * grub-core/script/main.c: Likewise.
17776 * grub-core/script/script.c: Likewise.
17777 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17778 non-terminals.
17779
17780 * grub-core/commands/acpi.c: Update extcmd implementations with
17781 grub_extcmd_context_t.
17782 * grub-core/commands/cat.c: Likewise.
17783 * grub-core/commands/echo.c: Likewise.
17784 * grub-core/commands/extcmd.c: Likewise.
17785 * grub-core/commands/hashsum.c: Likewise.
17786 * grub-core/commands/hdparm.c: Likewise.
17787 * grub-core/commands/help.c: Likewise.
17788 * grub-core/commands/hexdump.c: Likewise.
17789 * grub-core/commands/i386/cpuid.c: Likewise.
17790 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17791 * grub-core/commands/i386/pc/halt.c: Likewise.
17792 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17793 * grub-core/commands/iorw.c: Likewise.
17794 * grub-core/commands/keystatus.c: Likewise.
17795 * grub-core/commands/loadenv.c: Likewise.
17796 * grub-core/commands/ls.c: Likewise.
17797 * grub-core/commands/lspci.c: Likewise.
17798 * grub-core/commands/memrw.c: Likewise.
17799 * grub-core/commands/probe.c: Likewise.
17800 * grub-core/commands/search_wrap.c: Likewise.
17801 * grub-core/commands/setpci.c: Likewise.
17802 * grub-core/commands/sleep.c: Likewise.
17803 * grub-core/disk/loopback.c: Likewise.
17804 * grub-core/hello/hello.c: Likewise.
17805 * grub-core/loader/i386/bsd.c: Likewise.
17806 * grub-core/loader/xnu.c: Likewise.
17807 * grub-core/term/gfxterm.c: Likewise.
17808 * grub-core/term/serial.c: Likewise.
17809 * grub-core/tests/lib/functional_test.c: Likewise.
17810
888d1500
BC
178112010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17812
17813 Multi-line quoted strings support.
17814
17815 * grub-core/script/lexer.c (append_newline): Removed.
17816 (grub_script_lexer_yywrap): Refactored.
17817 (grub_script_lexer_init): Refactored.
17818 * grub-core/script/yylex.l (yywrap): New function.
17819 (grub_lexer_resplit): New function.
17820 (grub_lexer_unput): New function.
17821 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17822 and resplit.
17823 * tests/grub_script_echo1.in: Added few more testcases.
17824
dda060dd
VS
178252010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17826
17827 * grub-core/kern/misc.c: Don't add abort alias in utils.
17828 Reported by: echoline.
17829
6556eba9
BC
178302010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17831
17832 Add missing files into "make dist" tarball for other platforms.
17833
17834 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17835 * conf/Makefile.common (dist_noinst_DATA): New variable.
17836 * conf/Makefile.extra-dist: Added missing make dist files.
17837 * grub-core/Makefile.core.def: Likewise.
17838
c8e7bf5f
VS
178392010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17840
17841 Compress grub_prefix.
17842
17843 * grub-core/boot/i386/pc/lnxboot.S: Use
17844 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17845 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17846 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17847 GRUB_MACHINE_PREFIX_END. All users updated.
17848 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17849 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17850 + 0x40.
17851 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17852 * util/grub-mkimage.c (image_target_desc): Change data_end to
17853 prefix_end. All users updated.
17854
a7c00cdb
VS
178552010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17856
17857 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17858 value.
17859 (grub_openbsd_boot): Likewise.
17860 (grub_netbsd_boot): Likewise.
17861 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17862 (grub_xnu_boot): Likewise.
17863
9f915872
VS
178642010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17865
17866 * configure.ac: Clean LIBS variable after tests.
17867
efa1bee7
CW
178682010-09-02 Colin Watson <cjwatson@ubuntu.com>
17869
17870 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17871
61d720e5
VS
178722010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17873
17874 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17875 echo if libdevmapper will be used.
17876
ef8e0ec8
IT
178772010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17878
17879 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17880 constant for the same file.
17881
03e261d8
VS
178822010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17883
17884 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17885
c2a4eba6
CW
178862010-09-02 Colin Watson <cjwatson@ubuntu.com>
17887
17888 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17889 grub-core/*.pp.
17890
9056cbf3
CW
178912010-09-02 Colin Watson <cjwatson@ubuntu.com>
17892
17893 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17894 required by the boot protocol.
17895
17896 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17897 ebp and edi members.
17898 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17899 state.ebp and state.edi.
17900 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17901 %ebp and %edi according to grub_relocator32_ebp and
17902 grub_relocator32_edi respectively.
17903 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17904 and state.edi.
17905
529cc99a
VS
179062010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17907
17908 Add i386-pc-pxe image target.
17909
17910 * util/grub-mkimage.c (image_target_desc): New enum value
17911 IMAGE_I386_PC_PXE.
17912 (image_targets): New target i386-pc-pxe.
17913 (generate_image): Handle i386-pc-pxe image.
17914
9a093920
VS
179152010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17916
17917 Fix grub_pxe_scan.
17918
17919 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17920 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17921 All users updated.
17922 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17923 (grub_pxe_pxenv): Correct type.
17924
f9cefc4e
CW
179252010-09-01 Colin Watson <cjwatson@ubuntu.com>
17926
17927 * NEWS: Document most of the important changes since 1.98.
17928
4066f57f
CW
179292010-09-01 Colin Watson <cjwatson@ubuntu.com>
17930
17931 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17932 generated manual page) a little.
17933
da2891f9
CW
179342010-09-01 Colin Watson <cjwatson@ubuntu.com>
17935
17936 * docs/grub.texi: Add myself as an author.
17937
ad717fae
VS
179382010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17939
17940 * Makefile.util.def (libgrub.a): Add missing sunpc.
17941 Reported by: Seth Goldberg.
17942
eefe8abd
VS
179432010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17944
17945 Interrupt wrapping and code simplifications.
17946
9494ef9a
VS
17947 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17948 x86_noieee1275 which are functionaly equivalent in this case.
17949 (grub-install): Make source on each platform explicit. Enable on
17950 all noemu.
17951 * gentpl.py (x86_efi_pc): Removed group.
17952 (x86_noefi): Likewise.
17953 (i386_noefi): Likewise.
17954 (x86_noieee1275): Likewise.
17955 (i386_noieee1275): Likewise.
17956 (i386_noefi_noieee1275): Likewise.
17957 (i386_pc_qemu_coreboot): Likewise.
17958 (i386_coreboot_multiboot): Likewise.
17959 (i386_pc_coreboot_multiboot_qemu): Likewise.
17960 (x86_noefi_mips): Likewise.
17961 (noieee1275): Likewise.
17962 (ieee1275_mips): Likewise.
17963 (noemu_noieee1275): Likewise.
17964 (cmos): New group.
17965 (usb): Likewise.
17966 (videoinkernel): Likewise.
17967 (videomodules): Likewise.
eefe8abd 17968 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
17969 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17970 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17971 include/grub/loader.h, include/grub/msdos_partition.h,
17972 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17973 include/grub/machine/console.h, include/grub/machine/vga.h,
17974 include/grub/machine/vbe.h, include/grub/machine/init.h,
17975 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17976 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 17977 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
17978 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17979 * grub-core/Makefile.core.def (kernel): Explicit the source for
17980 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17981 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17982 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17983 Use videoinkernel tag.
17984 (usb): Enable on all usb.
17985 (usbserial_common): Likewise.
17986 (usbserial_pl2303): Likewise.
17987 (usbserial_ftdi): Likewise.
17988 (uhci): Enable on all x86.
17989 (ohci): Enable on all pci.
17990 (cmostest): Enable on all CMOS.
17991 (acpi): Include commands/acpi.c on all platforms.
17992 (halt): Add relevant lib/*/halt.c.
17993 (hdparm): Enable on all pci.
17994 (lspci): Likewise.
17995 (usbtest): Enable on all usb.
17996 (ata): Enable on all pci.
17997 (ata_pthru): Likewise.
17998 (usbms): Enable on all usb.
17999 (usb_keyboard): Likewise.
18000 (font): Use tag videomodules.
18001 (bufio): Likewise.
18002 (datetime): Use tag cmos. Enable on all noemu.
18003 (mmap): Use tags common and x86.
18004 (gfxterm): Use tag videomodules.
18005 (bitmap): Likewise.
18006 (bitmap_scale): Likewise.
18007 (video_fb): Likewise.
18008 (video): Likewise.
18009 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
18010 adjust padding accordingly. All users updated.
18011 (grub_ohci_transaction): Fix bad format specification.
18012 (GRUB_MOD_INIT): Add asserts for struct size.
18013 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
18014 (grub_alloc_td): Likewise.
18015 (grub_free_queue): Likewise.
18016 (grub_uhci_transfer): Likewise.
18017 (grub_uhci_transaction): Fix bad format specification.
18018 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
18019 (grub_usb_bulk_readwrite): Likewise.
18020 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
18021 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
18022 Made static.
18023 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
18024 Made static.
18025 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
18026 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
18027 Transformed into C.
18028 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
18029 Moved from here ...
18030 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
18031 ... here. Transformed into C. Made static.
18032 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
18033 Moved from here ...
18034 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
18035 ... here. Transformed into C. Made static.
18036 * grub-core/kern/i386/pc/startup.S
18037 (grub_biosdisk_check_int13_extensions): Moved from here ...
18038 * grub-core/disk/i386/pc/biosdisk.c
18039 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
18040 Made static.
18041 * grub-core/kern/i386/pc/startup.S
18042 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
18043 * grub-core/disk/i386/pc/biosdisk.c
18044 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
18045 Transformed into C. Made static.
18046 * grub-core/kern/i386/pc/startup.S
18047 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
18048 * grub-core/disk/i386/pc/biosdisk.c
18049 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
18050 Transformed into C. Made static.
18051 * grub-core/kern/i386/pc/startup.S
18052 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
18053 * grub-core/disk/i386/pc/biosdisk.c
18054 (grub_biosdisk_get_diskinfo_standard): ... here.
18055 Transformed into C. Made static.
18056 * grub-core/kern/i386/pc/startup.S
18057 (grub_biosdisk_get_num_floppies): Moved from here ...
18058 * grub-core/disk/i386/pc/biosdisk.c
18059 (grub_biosdisk_get_num_floppies): ... here.
18060 Transformed into C. Made static.
18061 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
18062 New function.
18063 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
18064 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
18065 Transformed into C. Made static.
18066 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
18067 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
18068 Transformed into C. Made static.
18069 * grub-core/kern/i386/ieee1275/init.c: Removed.
18070 * grub-core/kern/i386/misc.S: Likewise.
18071 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
18072 Splitted from here ...
18073 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
18074 Transformed into C. Made static. All users updated.
18075 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
18076 Transformed into C. Made static. All users updated.
18077 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
18078 Moved from here...
18079 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
18080 Transformed into C. Made static. All users updated.
18081 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
18082 Moved from here...
18083 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
18084 Transformed into C. Made static. All users updated.
18085 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
18086 Removed (replaced by C version).
18087 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
18088 Moved from here...
18089 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
18090 Transformed into C. Made static.
18091 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
18092 Moved from here...
18093 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
18094 ... here. Transformed into C.
18095 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
18096 Moved from here...
18097 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
18098 ... here. Transformed into C.
18099 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
18100 Moved from here...
18101 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
18102 ... here. Transformed into C. Made static.
18103 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
18104 Moved from here...
18105 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
18106 ... here. Transformed into C.
21ed554b
VS
18107 * grub-core/kern/i386/pc/startup.S
18108 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
18109 * grub-core/video/i386/pc/vbe.c
18110 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
18111 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
18112 Moved from here...
18113 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
18114 ... here. Transformed into C.
18115 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
18116 Moved from here...
18117 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
18118 ... here. Transformed into C.
18119 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
18120 Moved from here...
18121 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
18122 ... here. Transformed into C.
18123 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
18124 Moved from here...
18125 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
18126 ... here. Transformed into C.
18127 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
18128 Moved from here...
18129 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
18130 ... here. Transformed into C. Made static.
18131 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
18132 Moved from here...
18133 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
18134 ... here. Transformed into C. Made static.
18135 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
18136 Moved from here...
18137 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
18138 ... here. Transformed into C. Made static.
18139 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
18140 pxe_rm_entry as third argument.
18141 (grub_bios_interrupt): New function.
18142 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
18143 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
18144 of calling grub_stop.
18145 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
18146 * grub-core/lib/efi/halt.c (grub_halt): ...here.
18147 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
18148 * grub-core/lib/emu/halt.c (grub_halt): ... here.
18149 * grub-core/lib/i386/halt.c: Moved from here ...
18150 * grub-core/lib/i386/halt.c: ... here.
18151 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
18152 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
18153 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
18154 grub_stop_floppy.
18155 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
18156 * include/grub/i386/coreboot/init.h: Removed.
18157 * include/grub/i386/multiboot/init.h: Likewise.
18158 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
18159 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
18160 * include/grub/i386/pc/int.h: New file.
18161 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
18162 (grub_pxe_scan): Removed.
18163 (grub_pxe_call): Update prototype.
18164 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
18165 prototypes.
18166 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
18167 * include/grub/i386/qemu/init.h: Removed.
18168 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
18169 noreturn.
18170 (grub_halt): Likewise.
18171 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
18172 (grub_reboot): Likewise.
18173 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
18174 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
18175 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
18176
215dd471
RM
181772010-08-30 Robert Millan <rmh@gnu.org>
18178
18179 * NEWS: Document addition of ZFS support in `grub-install' and
18180 `grub-mkconfig'.
18181
ebd65b82
BC
181822010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
18183
18184 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
18185 dprintf output.
18186
11721d19
VS
181872010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18188
18189 Remove leftover embedding of font objects.
18190
18191 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
18192 * util/grub-install.in (font): Removed.
18193 * util/grub-mkimage.c (generate_image): Remove font support. All users
18194 updated.
18195
37837d4e
VS
181962010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18197
18198 Remove leftover embedding of font objects.
18199
18200 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
18201 * util/grub-install.in (font): Removed.
18202 * util/grub-mkimage.c (generate_image): Remove font support. All users
18203 updated.
18204
b4c1aae0
VS
182052010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18206
18207 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 18208 Reported by: Ian Turner
b4c1aae0 18209
8920a08d
VS
182102010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18211
18212 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
18213 timeout to avoid indefinite boot stalling.
18214
f21db033
VS
182152010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18216
18217 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
18218 (grub_env_write_color_highlight): Likewise.
18219
9a9de209
VS
182202010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18221
18222 * grub-core/normal/term.c (print_more): Return to normal and not
18223 to standard state after printing "---MORE---".
18224
3dca01d7
VS
182252010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18226
18227 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
18228 Mask out the bit 0x80 since it has other meaning that specifiing color.
18229
0b986c40
VS
182302010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18231
18232 New relocator. Allows for more kernel support and more straightforward
18233 loader writing.
18234
18235 * Makefile.am (BOOTTARGET): New variable.
18236 (QEMU32): Likewise.
18237 (linux.init.x86_64): New target.
18238 (linux.init.i386): Likewise.
18239 (multiboot.elf): Likewise.
18240 (kfreebsd.elf): Likewise.
18241 (kfreebsd.aout): Likewise.
18242 (pc-chainloader.elf): Likewise.
18243 (pc-chainloader.bin): Likewise.
18244 (ntldr.elf): Likewise.
18245 (ntldr.bin): Likewise.
18246 (multiboot2.elf): Likewise.
18247 (kfreebsd.init.x86_64): Likewise.
18248 (kfreebsd.init.i386): Likewise.
18249 (knetbsd.init.i386): Likewise.
18250 (kopenbsd.init.i386): Likewise.
18251 (knetbsd.init.x86_64): Likewise.
18252 (kopenbsd.init.x86_64): Likewise.
18253 (linux-initramfs.i386): Likewise.
18254 (linux-initramfs.x86_64): Likewise.
18255 (kfreebsd-mfsroot.i386.img): Likewise.
18256 (knetbsd.image.i386): Likewise.
18257 (kopenbsd.image.i386): Likewise.
18258 (kopenbsd.image.x86_64): Likewise.
18259 (knetbsd.miniroot-image.i386.img): Likewise.
18260 (kfreebsd-mfsroot.x86_64.img): Likewise.
18261 (knetbsd.image.x86_64): Likewise.
18262 (knetbsd.miniroot-image.x86_64.img): Likewise.
18263 (kfreebsd-mfsroot.i386.gz): Likewise.
18264 (bootcheck-kfreebsd-i386): Likewise.
18265 (kfreebsd-mfsroot.x86_64.gz): Likewise.
18266 (bootcheck-kfreebsd-x86_64): Likewise.
18267 (knetbsd.miniroot-image.i386.gz): Likewise.
18268 (bootcheck-knetbsd-i386): Likewise.
18269 (bootcheck-kopenbsd-i386): Likewise.
18270 (bootcheck-kopenbsd-x86_64): Likewise.
18271 (knetbsd.miniroot-image.x86_64.gz): Likewise.
18272 (bootcheck-knetbsd-x86_64): Likewise.
18273 (bootcheck-linux-i386): Likewise.
18274 (bootcheck-linux-x86_64): Likewise.
18275 (bootcheck-linux16-i386): Likewise.
18276 (bootcheck-linux16-x86_64): Likewise.
18277 (bootcheck-multiboot): Likewise.
18278 (bootcheck-multiboot2): Likewise.
18279 (bootcheck-kfreebsd-aout): Likewise.
18280 (bootcheck-pc-chainloader): Likewise.
18281 (bootcheck-ntldr): Likewise.
18282 (CLEANFILES): Add new targets.
18283 (BOOTCHECKS): New variable.
18284 (.PHONY): Add bootchecks.
18285 (SUCCESSFUL_BOOT_STRING): New variable.
18286 (BOOTCHECK_TIMEOUT): Likewise.
18287 (bootcheck): New target
18288 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
18289 * configure.ac: Correct efiemu excuse.
18290 * docs/grub.texi (Supported kernels): New chapter.
18291 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
18292 include/grub/mm_private.h. Simplify inclusion of
18293 include/grub/boot.h, include/grub/loader.h
18294 and include/grub/msdos_partition.h
18295 (KERNEL_HEADER_FILES) [i386_coreboot]:
18296 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
18297 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
18298 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
18299 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
18300 include/grub/machine/loader.h.
18301 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
18302 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
18303 extra_dist.
18304 (pci.mod): Enable on i386-multiboot.
18305 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
18306 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
18307 i386-qemu.
18308 (relocator.mod): Rewritten.
18309 (aout.mod): Enable on all x86.
18310 (bsd.mod): Likewise.
18311 (ntldr.mod): New module.
18312 (linux.mod): Use loader/i386/linux.c on all x86.
18313 (xnu.mod): Enable on all x86.
18314 (vga_text.mod): disable on EFI and QEMU.
18315 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
18316 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
18317 * grub-core/efiemu/loadcore.c: Likewise.
18318 * grub-core/efiemu/main.c: Likewise.
18319 (grub_efiemu_exit_boot_services): Removed.
18320 (grub_efiemu_finish_boot_services): Likewise.
18321 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18322 function.
18323 * grub-core/efiemu/i386/nocfgtables.c: New file.
18324 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18325 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18326 (grub_efi_finish_boot_services): Moved from here ...
18327 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18328 Fille finish memory map and related data.
18329 (finish_mmap_buf): New variable.
18330 (grub_efi_uintn_t finish_mmap_size): Likewise.
18331 (grub_efi_uintn_t finish_key): Likewise.
18332 (grub_efi_uintn_t finish_desc_size): Likewise.
18333 (grub_efi_uint32_t finish_desc_version): Likewise.
18334 (grub_efi_is_finished): Likewise.
18335 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18336 finished.
18337 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18338 (grub_elf64_phdr_iterate): Likewise.
18339 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18340 (grub_os_area_size): Likewise.
18341 (grub_machine_init): Don't reserve os area.
18342 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18343 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18344 * grub-core/kern/i386/loader.S: Removed.
18345 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18346 (grub_os_area_size): Likewise.
18347 (grub_machine_init): Don't reserve os area.
18348 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18349 Don't call grub_dl_unload_all.
18350 Don't include loader.S.
18351 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18352 Declare the memory after _end as available.
18353 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 18354 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 18355 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
18356 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18357 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18358 * include/grub/mm_private.h (grub_mm_header): ... here.
18359 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18360 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
18361 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18362 (grub_mm_region): ..here. Removed addr. Added pre_size.
18363 All users updated.
18364 * grub-core/kern/mm.c (base): Renamed to ...
18365 (grub_mm_base): ... this. Made global.
18366 (grub_real_malloc): Alloc from end of region.
18367 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18368 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18369 * grub-core/kern/powerpc/cache_flush.S: ... here.
18370 * grub-core/lib/efi/relocator.c: New file.
18371 * grub-core/lib/i386/relocator.c: Rewritten.
18372 * grub-core/lib/i386/relocator16.S: New file.
18373 * grub-core/lib/i386/relocator32.S: Likewise.
18374 * grub-core/lib/i386/relocator64.S: Likewise.
18375 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18376 * grub-core/lib/i386/relocator_common.S: New file.
18377 * grub-core/lib/ieee1275/relocator.c: Likewise.
18378 * grub-core/lib/mips/relocator.c: Rewritten.
18379 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18380 stylistic adjustments.
18381 * grub-core/lib/powerpc/relocator.c: New file.
18382 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18383 * grub-core/lib/relocator.c: Rewritten.
18384 * grub-core/lib/x86_64/relocator_asm.S: New file.
18385 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18386 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18387 (bsd_tag): New struct.
18388 (tags): New variable.
18389 (tags_last): Likewise.
18390 (netbsd_module): New struct.
18391 (netbsd_mods): New variable.
18392 (netbsd_mods_last): Likewise.
18393 (openbsd_opts): New parameter "serial".
18394 (OPENBSD_SERIAL_ARG): New definition.
18395 (netbsd_opts): New parameter "serial".
18396 (NETBSD_SERIAL_ARG): New definition.
18397 (grub_freebsd_add_meta): Reorganised into ...
18398 (grub_bsd_add_meta): ...this. All users updated.
18399 (grub_freebsd_add_mmap): Reorganised into ...
18400 (generate_e820_mmap): ...this...
18401 (grub_bsd_add_mmap): ...and this. All users updated.
18402 (grub_freebsd_list_modules): Use tags.
18403 (grub_netbsd_add_meta_module): New function.
18404 (grub_netbsd_list_modules): Likewise.
18405 (grub_freebsd_boot): Use relocator and finish EFI.
18406 (grub_openbsd_boot): Likewise.
18407 (grub_netbsd_setup_video): New function.
18408 (grub_netbsd_add_modules): Likewise.
18409 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18410 and finish EFI.
18411 (grub_bsd_unload): Unload tags.
18412 (grub_bsd_load_aout): Use relocator.
18413 (grub_bsd_elf32_size_hook): New function.
18414 (grub_bsd_elf32_hook): Use relocator.
18415 (grub_bsd_elf64_size_hook): New function.
18416 (grub_bsd_elf64_hook): Use relocator.
18417 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18418 (grub_bsd_load): Zero-out openbsd_ramdisk.
18419 (grub_bsd_load): Use relocator.
18420 (grub_cmd_openbsd): Support serial.
18421 (grub_cmd_netbsd): Support modules.
18422 (grub_cmd_freebsd_module): Use relocator.
18423 (grub_netbsd_module_load): New function.
18424 (grub_cmd_netbsd_module): Likewise.
18425 (grub_cmd_openbsd_ramdisk): Likewise.
18426 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18427 kopenbsd_ramdisk.
18428 (GRUB_MOD_FINI): Unregister new commands.
18429 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18430 (grub_freebsd_load_elfmodule_obj): Use relocator.
18431 (grub_freebsd_load_elfmodule): Likewise.
18432 (grub_freebsd_load_elf_meta): Likewise.
18433 (grub_netbsd_load_elf_meta): New function.
18434 (grub_openbsd_find_ramdisk): Likewise.
18435 * grub-core/loader/i386/bsd_helper.S: Removed.
18436 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18437 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18438 * grub-core/loader/i386/efi/linux.c: Likewise.
18439 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18440 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18441 (DEFAULT_VIDEO_MODE): Likewise.
18442 (real_mode_target): New variable.
18443 (prot_mode_target): Likewise.
18444 (initrd_mem_target): Likewise.
18445 (relocator): Likewise.
18446 (efi_mmap_buf): Likewise.
18447 (efi_mmap_size): Likewise.
18448 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18449 (free_pages): Use relocator.
18450 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18451 (grub_linux_setup_video): Return error.
18452 (grub_linux_trampoline_start): Removed.
18453 (grub_linux_trampoline_end): Likewise.
18454 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18455 andd video parameters depending on firmware.
18456 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18457 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18458 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18459 (grub_cmd_initrd): Use relocator.
18460 * grub-core/loader/i386/linux_trampoline.S: Removed.
18461 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18462 (elf_sec_entsize): Likewise.
18463 (elf_sec_shstrndx): Likewise.
18464 (elf_sections): Likewise.
18465 (grub_multiboot_load): Use relocator.
18466 (grub_multiboot_get_mbi_size): Account for sections.
18467 (grub_multiboot_make_mbi): Use relocator and support sections.
18468 (grub_multiboot_add_elfsyms): New function.
18469 (grub_multiboot_free_mbi): Free sections.
18470 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18471 (grub_linux_real_target): Likewise.
18472 (grub_linux_real_chunk): Likewise.
18473 (grub_linux16_prot_size): Likewise.
18474 (grub_linux16_boot): Use relocator.
18475 (grub_linux_unload): Unload relocator.
18476 (grub_cmd_linux): Use relocator.
18477 (grub_cmd_initrd): Likewise.
18478 * grub-core/loader/i386/pc/ntldr.c: New file.
18479 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18480 Don't try to guess CPU frequency.
18481 (grub_xnu_set_video): Stretch bitmap.
18482 (grub_xnu_boot): Use relocator.
18483 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18484 (grub_linux_unload): Free relocator.
18485 (grub_linux_load32): Use relocator.
18486 (grub_linux_load64): Likewise.
18487 (grub_cmd_initrd): Likewise.
18488 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18489 (grub_multiboot_unload): Unload relocator.
18490 (grub_cmd_multiboot): Use relocator.
18491 (grub_cmd_module): Likewise.
18492 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18493 Use relocator and support sections.
18494 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18495 (elf_sec_entsize): Likewise.
18496 (elf_sec_shstrndx): Likewise.
18497 (elf_sections): Likewise.
18498 (grub_multiboot_load): Use relocator.
18499 (grub_multiboot_get_mbi_size): Account for sections.
18500 (grub_multiboot_make_mbi): Use relocator and support sections.
18501 (grub_multiboot_add_elfsyms): New function.
18502 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18503 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18504 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18505 Prototype changed. All users updated.
18506 (grub_xnu_align_heap): Simplified.
18507 (grub_xnu_writetree_toheap): Likewise.
18508 (grub_xnu_unload): Unload relocator.
18509 (grub_cmd_xnu_kernel): Use relocator.
18510 (grub_cmd_xnu_kernel64): Likewise.
18511 (grub_xnu_register_memory): Simplified.
18512 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
18513 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18514 EFI is finished.
18515 (grub_console_checkkey): Likewise.
18516 (grub_console_getkey): Likewise.
18517 (grub_console_getwh): Likewise.
18518 (grub_console_getxy): Likewise.
18519 (grub_console_gotoxy): Likewise.
18520 (grub_console_cls): Likewise.
18521 (grub_console_setcolorstate): Likewise.
18522 (grub_console_setcursor): Likewise.
18523 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18524 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18525 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18526 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18527 * grub-core/tests/boot/kernel-8086.S: Likewise.
18528 * grub-core/tests/boot/kernel-i386.S: Likewise.
18529 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18530 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18531 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18532 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18533 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18534 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18535 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18536 * grub-core/tests/boot/linux.cfg: Likewise.
18537 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18538 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18539 * grub-core/tests/boot/linux16.cfg: Likewise.
18540 * grub-core/tests/boot/multiboot.cfg: Likewise.
18541 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18542 * grub-core/tests/boot/ntldr.cfg: Likewise.
18543 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18544 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18545 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18546 New definition.
18547 * include/grub/dl.h (grub_dl_unload_all): Removed.
18548 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18549 (grub_efi_finish_boot_services): Change prototype.
18550 (grub_efi_is_finished): New variable.
18551 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18552 Changed prototype.
18553 (grub_efiemu_finish_boot_services): Removed.
18554 (grub_machine_efiemu_init_tables): New prototype.
18555 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18556 (grub_elf64_phdr_iterate): Likewise.
18557 * include/grub/i386/bsd.h: Include relocator.h.
18558 (freebsd_tag_header): New struct.
18559 (grub_openbsd_bios_mmap): Removed.
18560 (grub_unix_real_boot): Removed.
18561 (grub_freebsd_load_elfmodule32): Changed prototype.
18562 (grub_freebsd_load_elfmodule_obj64): Likewise.
18563 (grub_freebsd_load_elf_meta32): Likewise.
18564 (grub_freebsd_load_elf_meta64): Likewise.
18565 (grub_freebsd_add_meta): Removed.
18566 (grub_netbsd_load_elf_meta32): New prototype.
18567 (grub_netbsd_load_elf_meta64): Likewise.
18568 (grub_bsd_add_meta): Likewise.
18569 (grub_openbsd_ramdisk_descriptor): New struct.
18570 (grub_openbsd_find_ramdisk32): New prototype.
18571 (grub_openbsd_find_ramdisk64): Likewise.
18572 * include/grub/i386/coreboot/loader.h: Removed.
18573 * include/grub/i386/efi/loader.h: Likewise.
18574 * include/grub/i386/ieee1275/loader.h: Likewise.
18575 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18576 to grub_uint32_t.
18577 * include/grub/i386/loader.h: Removed.
18578 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18579 value.
18580 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18581 (grub_phys_addr_t): New type.
18582 (grub_vtop): New inline function.
18583 (grub_map_memory): Likewise.
18584 (grub_unmap_memory): Likewise.
18585 * include/grub/i386/multiboot/loader.h: Removed.
18586 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18587 (NETBSD_BTINFO_CONSOLE): New definition.
18588 (NETBSD_BTINFO_SYMTAB): Likewise.
18589 (NETBSD_BTINFO_MODULES): Likewise.
18590 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18591 (grub_netbsd_bootinfo): New struct.
18592 (grub_netbsd_btinfo_common): Use explicit bitsize.
18593 (grub_netbsd_btinfo_mmap_entry): Removed.
18594 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18595 (grub_netbsd_btinfo_bootdisk): New struct.
18596 (grub_netbsd_btinfo_symtab): Likewise.
18597 (grub_netbsd_btinfo_serial): Likewise.
18598 (grub_netbsd_btinfo_modules): Likewise.
18599 (grub_netbsd_btinfo_framebuf): Likewise.
18600 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18601 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18602 Likewise.
18603 (grub_openbsd_bootargs): Use explicit bitsize.
18604 (grub_openbsd_bootarg_console): New struct.
18605 (GRUB_OPENBSD_COM_MAJOR): New definition.
18606 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18607 * include/grub/i386/pc/efiemu.h: Removed.
18608 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18609 * include/grub/i386/qemu/loader.h: Removed.
18610 * include/grub/i386/relocator.h: Rewritten.
18611 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18612 * include/grub/mips/memory.h: New file.
18613 * include/grub/mips/multiboot.h: Rewritten.
18614 * include/grub/mips/relocator.h: Rewritten.
18615 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18616 (grub_vtop): New function.
18617 (grub_map_memory): Likewise.
18618 (grub_unmap_memory): Likewise.
18619 * include/grub/misc.h (ALIGN_DOWN): New definition.
18620 * include/grub/mm.h (grub_mm_check_real): New proto.
18621 (GRUB_MM_CHECK): New definition.
18622 * include/grub/mm_private.h: New file.
18623 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18624 (grub_multiboot_get_mbi_size): Removed.
18625 (grub_multiboot_make_mbi): Change prottype.
18626 (grub_multiboot_set_accepts_video): New proto.
18627 (grub_multiboot_add_elfsyms): Likewise.
18628 (grub_multiboot_payload_eip): New variable.
18629 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18630 New prototype.
18631 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18632 New definition.
18633 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18634 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18635 * include/grub/powerpc/ieee1275/loader.h: Removed.
18636 * include/grub/powerpc/memory.h: New file.
18637 * include/grub/powerpc/relocator.h: Likewise.
18638 * include/grub/relocator.h: Likewise.
18639 * include/grub/relocator_private.h: Likewise.
18640 * include/grub/sparc64/ieee1275/loader.h: Removed.
18641 * include/grub/x86_64/memory.h: New file.
18642 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18643 (grub_xnu_heap_malloc): Likewise.
18644 (grub_xnu_heap_real_start): Removed.
18645 (grub_xnu_heap_start): Likewise.
18646 (grub_xnu_relocator): New variable.
18647 (grub_xnu_heap_target_start): Likewise.
18648 * tests/util/grub-shell.in: Support non-pc.
18649 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 18650
5303b85d
VS
186512010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18652
18653 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18654 on malloc error.
18655 (grub_bidi_logical_to_visual): Check that malloc succeded.
18656 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18657 puts.
18658 (grub_xputs_normal): Likewise.
18659
d768d159
VS
186602010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18661
18662 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18663 extra_dist.
18664
186652010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18666
18667 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18668
5bf84df4
VS
186692010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18670
18671 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18672
3626810e
VS
186732010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18674
18675 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18676 dprintf.
18677
a7363f53
BC
186782010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18679
18680 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18681
902f75f6
VS
186822010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18683
18684 * grub-core/normal/term.c (print_more): Fix a memory leak.
18685 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18686 (grub_xputs_normal): Likewise.
18687
3c707967
VS
186882010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18689
18690 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18691 the begining of the string
18692
2053cc07
VS
186932010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18694
18695 * grub-core/script/script.c (grub_script_parse): Free parsed on
18696 failure.
18697
46422ebf
VS
186982010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18699
18700 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18701 on failure.
18702
9e0fa3f6
VS
187032010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18704
18705 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18706 return.
18707
3393cf16
VS
187082010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18709
18710 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18711 (scroll_up): Fix a memory leak.
18712
b17540cb
VS
187132010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18714
18715 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18716 errors.
18717
67140446
VS
187182010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18719
18720 Handle USB pendrives exposed as floppies.
18721
18722 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18723 floppy.
18724 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18725 Check for partitions on all devices.
18726
e35e46fc
VS
187272010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18728
18729 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18730 (readkey): Likewise.
18731
d24c6190
BC
187322010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18733
18734 Multiple variable names support to "export" command.
18735
18736 * normal/context.c (grub_cmd_export): "export" command supports
18737 multiple variable names.
18738
04ddcc6a
ST
187392010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18740
18741 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18742 --target=drive output to Mach device name.
18743
0c8b61d8
BC
187442010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18745
18746 New Automake based build system for GRUB.
18747
18748 * ABOUT-NLS: New file.
18749 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18750 in Makefile.util.def file.
18751 * Makefile.util.def: New file. Autogen build definitions file for
18752 GRUB host utils.
18753 * conf/Makefile.common: New file. Common variables for GRUB host
18754 utils and target modules.
18755 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18756 * docs/Makefile.am: New file. Automake file for docs.
18757 * gentpl.py: New file. Python script to generate Autogen
18758 template.
18759 * grub-core/Makefile.am: New file. GRUB target modules' rules
18760 that doesn't fit in Makefile.core.def file.
18761 * grub-core/Makefile.core.def: New file. Autogen build
18762 definitions file for GRUB target modules.
18763 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18764 specific setjmp.S file.
18765 * po/Makefile.am: New file.
18766
18767 * .bzrignore: New ignores.
18768 * INSTALL: New requirements, without Ruby.
18769 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18770 * autogen.sh: Updated to invoke autogen as necessary.
18771 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18772 and defines for Automake conditionals.
18773 * geninit.sh: Refactoring.
18774
18775 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18776 necessary.
18777 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18778 New prototype.
18779
18780 * include/grub/test.h: Fix functional test modules' naming.
18781 * grub-core/tests/example_functional_test.c: Fix test module name.
18782
18783 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18784 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18785 * util/grub-editenv.c: Likewise.
18786 * util/grub-fstest.c: Likewise.
18787 * util/grub-mkdevicemap.c: Likewise.
18788 * util/grub-mkfont.c: Likewise.
18789 * util/grub-mkimage.c: Likewise.
18790 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18791 * util/grub-probe.c: Likewise.
18792 * util/grub-script-check.c: Likewise.
18793 * util/i386/pc/grub-setup.c: Likewise.
18794 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18795
18796 * tests/util/grub-shell.in: Fix override directory path.
18797 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18798 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18799
18800 * util/lvm.c: Update #includes.
18801 * util/raid.c: Likewise.
18802 * util/resolve.c: Likewise.
18803 * grub-core/bus/emu/pci.c: Likewise.
18804 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18805 * grub-core/lib/posix_wrap/string.h: Likewise.
18806 * grub-core/kern/emu/main.c: Likewise.
18807
18808 * grub-core/gensymlist.sh: New file. Script for generating kernel
18809 symbols file.
18810 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18811
18812 * grub-core/gentrigtables.c: Fix unused variable warnings.
18813
18814 * Makefile.in: Removed.
18815 * conf/any-emu.rmk: Removed.
18816 * conf/common.rmk: Removed.
18817 * conf/i386-coreboot.rmk: Removed.
18818 * conf/i386-efi.rmk: Removed.
18819 * conf/i386-ieee1275.rmk: Removed.
18820 * conf/i386-multiboot.rmk: Removed.
18821 * conf/i386-pc.rmk: Removed.
18822 * conf/i386-qemu.rmk: Removed.
18823 * conf/i386.rmk: Removed.
18824 * conf/mips-yeeloong.rmk: Removed.
18825 * conf/mips.rmk: Removed.
18826 * conf/powerpc-ieee1275.rmk: Removed.
18827 * conf/sparc64-ieee1275.rmk: Removed.
18828 * conf/tests.rmk: Removed.
18829 * conf/x86-efi.rmk: Removed.
18830 * conf/x86_64-efi.rmk: Removed.
18831 * gendistlist.sh: Removed.
18832 * geninitheader.sh: Removed.
18833 * genkernsyms.sh.in: Removed.
18834 * genmk.rb: Removed.
18835 * gensymlist.sh.in: Removed.
18836 * mkinstalldirs: Removed.
18837 * boot: Moved ...
18838 * grub-core/boot: ... to here.
18839 * bus: Moved ...
18840 * grub-core/bus: ... to here.
18841 * commands: Moved ...
18842 * grub-core/commands: ... to here.
18843 * disk: Moved ...
18844 * grub-core/disk: ... to here.
18845 * efiemu: Moved ...
18846 * grub-core/efiemu: ... to here.
18847 * font: Moved ...
18848 * grub-core/font: ... to here.
18849 * fs: Moved ...
18850 * grub-core/fs: ... to here.
18851 * gencmdlist.sh: Moved ...
18852 * grub-core/gencmdlist.sh: ... to here.
18853 * genemuinit.sh: Moved ...
18854 * grub-core/genemuinit.sh: ... to here.
18855 * genemuinitheader.sh: Moved ...
18856 * grub-core/genemuinitheader.sh: ... to here.
18857 * genfslist.sh: Moved ...
18858 * grub-core/genfslist.sh: ... to here.
18859 * genhandlerlist.sh: Moved ...
18860 * grub-core/genhandlerlist.sh: ... to here.
18861 * genmoddep.awk: Moved ...
18862 * grub-core/genmoddep.awk: ... to here.
18863 * genmodsrc.sh: Moved ...
18864 * grub-core/genmodsrc.sh: ... to here.
18865 * genpartmaplist.sh: Moved ...
18866 * grub-core/genpartmaplist.sh: ... to here.
18867 * genparttoollist.sh: Moved ...
18868 * grub-core/genparttoollist.sh: ... to here.
18869 * genterminallist.sh: Moved ...
18870 * grub-core/genterminallist.sh: ... to here.
18871 * gentrigtables.c: Moved ...
18872 * grub-core/gentrigtables.c: ... to here.
18873 * genvideolist.sh: Moved ...
18874 * grub-core/genvideolist.sh: ... to here.
18875 * gettext: Moved ...
18876 * grub-core/gettext: ... to here.
18877 * gfxmenu: Moved ...
18878 * grub-core/gfxmenu: ... to here.
18879 * gnulib: Moved ...
18880 * grub-core/gnulib: ... to here.
18881 * hello: Moved ...
18882 * grub-core/hello: ... to here.
18883 * hook: Moved ...
18884 * grub-core/hook: ... to here.
18885 * io: Moved ...
18886 * grub-core/io: ... to here.
18887 * kern: Moved ...
18888 * grub-core/kern: ... to here.
18889 * lib: Moved ...
18890 * grub-core/lib: ... to here.
18891 * loader: Moved ...
18892 * grub-core/loader: ... to here.
18893 * mmap: Moved ...
18894 * grub-core/mmap: ... to here.
18895 * normal: Moved ...
18896 * grub-core/normal: ... to here.
18897 * partmap: Moved ...
18898 * grub-core/partmap: ... to here.
18899 * parttool: Moved ...
18900 * grub-core/parttool: ... to here.
18901 * script: Moved ...
18902 * grub-core/script: ... to here.
18903 * term: Moved ...
18904 * grub-core/term: ... to here
18905 * tests/example_functional_test.c: Moved ...
18906 * grub-core/tests/example_functional_test.c: ... to here.
18907 * tests/lib/functional_test.c: Moved ...
18908 * grub-core/tests/lib/functional_test.c: ... to here.
18909 * tests/lib/test.c: Moved ...
18910 * grub-core/tests/lib/test.c: ... to here.
18911 * video: Moved ...
18912 * grub-core/video: ... to here.
18913
645586e6
BC
189142010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18915
18916 Replace --enable-grub-emu-modules with grub-emu-lite.
18917
18918 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18919 cache.S.
18920
18921 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18922 * kern/emu/full.c: New file. For grub-emu specific initialization.
18923 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18924 * kern/emu/main.c: Call initialization function grub_emu_init.
18925
18926 * Makefile.in: Include grub-emu-lite in install.
18927 * commands/parttool.c: Use grub_no_autoload to differentiate
18928 between grub-emu and grub-emu-lite.
18929 * include/grub/misc.h: New variable grub_no_autoload.
18930
18931 * conf/any-emu.rmk: New rules for grub-emu-lite.
18932 * configure.ac: Remove --enable-grub-emu-modules.
18933 * genmk.rb: Cleanup unnecessary rules.
18934 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18935
18936 * normal/main.c: Don't load list files on grub-emu-lite.
18937 * util/misc.c (grub_arch_sync_caches): Removed.
18938
f86a4030
CW
189392010-08-23 Colin Watson <cjwatson@ubuntu.com>
18940
18941 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18942 grub-mkimage rather than grub-mkelfimage.
18943 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18944
06776944
VS
189452010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18946
18947 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18948 a key after CapsLock or NumLock. It's just a qemu bug.
18949
df262419
VS
189502010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18951
18952 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18953 needed by libusb wrapper.
18954
b40ea81b
ST
189552010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18956
18957 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18958
dee50575
VS
189592010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18960
18961 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18962 --nounzip is passed.
18963
fb1d7b79
VS
189642010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18965
18966 USB hotunplugging and USB serial support.
18967
18968 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18969 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18970 (grub_uhci_transfer): Respect timeout and set *actual.
18971 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18972 non-standard length.
18973 (grub_usb_device_attach): Autoload modules.
18974 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18975 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18976 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18977 users updated.
18978 (grub_usb_add_hub): Fill nports and children.
18979 (attach_root_port): Receive hub instead of controller.
18980 All users updated. Fill hub->devices.
18981 (grub_usb_root_hub): Allocate hub->devices.
18982 (detach_device): New function.
18983 (poll_nonroot_hub): Fill children and detach devices.
18984 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18985 actual arguments. All users updated.
18986 (grub_usb_bulk_read_extended): New function.
18987 * bus/usb/serial/common.c: New file.
18988 * bus/usb/serial/ftdi.c: Likewise.
18989 * bus/usb/serial/pl2303.c: Likewise.
18990 * commands/terminal.c (handle_command): Support wildcard.
18991 * commands/usbtest.c: Output "Unknown" instead of empty string.
18992 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18993 (usbserial_common_mod_SOURCES): New variable.
18994 (usbserial_common_mod_CFLAGS): Likewise.
18995 (usbserial_common_mod_LDFLAGS): Likewise.
18996 (pkglib_MODULES): Add usbserial_pl2303.mod.
18997 (usbserial_pl2303_mod_SOURCES): New variable.
18998 (usbserial_pl2303_mod_CFLAGS): Likewise.
18999 (usbserial_pl2303_mod_LDFLAGS): Likewise.
19000 (pkglib_MODULES): Add usbserial_ftdi.mod.
19001 (usbserial_ftdi_mod_SOURCES): New variable.
19002 (usbserial_ftdi_mod_CFLAGS): Likewise.
19003 (usbserial_ftdi_mod_LDFLAGS): Likewise.
19004 (pkglib_MODULES): Add serial.mod.
19005 (serial_mod_SOURCES): New variable.
19006 (serial_mod_CFLAGS): Likewise.
19007 (serial_mod_LDFLAGS): Likewise.
19008 * conf/i386-pc.rmk: Likewise.
19009 * conf/mips-yeeloong.rmk: Likewise.
19010 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
19011 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19012 * disk/usbms.c (first_available_slot): New variable.
19013 (grub_usbms_attach): Don't reuse free slots due to potential cache
19014 problems.
19015 * include/grub/serial.h: Moved to ..
19016 * include/grub/ns8250.h: ...this.
19017 * include/grub/serial.h: New file.
19018 * include/grub/term.h (grub_term_poll_usb): New variable.
19019 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
19020 readkey. All users updated.
19021 (grub_terminfo_output_state): Pass term to put.
19022 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
19023 (grub_usb_controller_dev): Add timeout and actual arguments to
19024 transfer. All users updated.
19025 (grub_usb_interface): New field detach_data.
19026 (grub_usb_device): New fields children and nports.
19027 (grub_usb_ep_type_t): New type.
19028 (grub_usb_get_ep_type): New function.
19029 (grub_usb_bulk_read_extended): Likewise.
19030 * include/grub/usbdesc.h (grub_usb_desc): New type.
19031 * include/grub/usbserial.h: New file.
19032 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
19033 * kern/term.c (grub_term_poll_usb): New variable.
19034 (grub_getkey): Call grub_term_poll_usb if set.
19035 (grub_checkkey): Likewise.
19036 (grub_getkeystatus): Likewise.
19037 * term/serial.c: Moved controller-specific parts to ...
19038 * term/ns8250.c: ... here.
19039 * term/serial.c: Mostly rewritten.
19040 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
19041 according to spec.
19042
21a313de
RM
190432010-08-20 Robert Millan <rmh@gnu.org>
19044
19045 Make kFreeBSD code more generic to support ext2fs as root, ufs as
19046 a separate module and maybe other interesting combinations.
19047
19048 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
19049 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
19050 (kfreebsd_entry): Add generic filesystem module load routine.
19051 Map GRUB `ext2' to kFreeBSD `ext2fs'.
19052
63c734a6
CW
190532010-08-20 Colin Watson <cjwatson@ubuntu.com>
19054
19055 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
19056 "numcenter" (I misunderstood the purpose of this entry).
19057 * docs/grub.texi (sendkey): Likewise.
19058
c4d16542
CW
190592010-08-20 Colin Watson <cjwatson@ubuntu.com>
19060
19061 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
19062 status flag options; simply omitting the option is equivalent and
19063 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
19064 (keysym_table): Rename "num5numlock" to "numlock".
19065 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
19066 can uniformly say that only the last of multiple `sendkey'
19067 invocations has any effect.
19068 * docs/grub.texi (sendkey): New section.
19069
93541d66
CW
190702010-08-19 Colin Watson <cjwatson@ubuntu.com>
19071
19072 * commands/i386/pc/sendkey.c (options): Fix three typos.
19073
b4ece5e1
VS
190742010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
19075
19076 Implement sendkey support.
19077
19078 * commands/i386/pc/sendkey.c: New file.
19079 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
19080 (sendkey_mod_SOURCES): New variable.
19081 (sendkey_mod_CFLAGS): Likewise.
19082 (sendkey_mod_LDFLAGS): Likewise.
19083
51f1f5af
CW
190842010-08-18 Colin Watson <cjwatson@ubuntu.com>
19085
19086 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
19087 fix warnings from Autoconf.
19088
9da94e05
CW
190892010-08-18 Colin Watson <cjwatson@ubuntu.com>
19090
19091 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
19092 to avoid false positives with some assemblers that output things
19093 like "someprefix_func" as part of their output.
19094
729a0f2e
RM
190952010-08-15 Robert Millan <rmh@gnu.org>
19096
19097 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
19098 errors.
19099 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
19100 grub_get_libzfs_handle() errors.
19101
f3710e08
RM
191022010-08-14 Robert Millan <rmh@gnu.org>
19103
19104 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
19105 filesystem is not ZFS.
19106
7a3c13de
BC
191072010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19108
19109 Fix for misspelled color names defaulting to black/black (bug
19110 reported by Doug Nazar)
19111
19112 * include/grub/normal.h (grub_parse_color_name_pair): Add return
19113 status to prototype.
19114 * normal/color.c (grub_parse_color_name_pair): Return failure
19115 status.
19116 (grub_env_write_color_normal): Ignore bad color names.
19117 (grub_env_write_color_highlight): Likewise.
19118 * normal/main.c (GRUB_MOD_INIT): Set default color names.
19119
ab8ba50d
BC
191202010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19121
19122 "shift" command support to GRUB script.
19123
19124 * include/grub/script_sh.h (grub_script_shift): New prototype.
19125 * script/execute.c (grub_script_shift): New function.
19126 * script/main.c (grub_script_init): Register shift command.
19127 (grub_script_fini): Unregister shift command.
19128 * util/grub-script-check.c (grub_script_cmd_shift): New function.
19129
19130 * tests/grub_script_shift.in: New testcase.
19131 * conf/tests.rmk: Rules for new testcase.
19132
4d61999e
BC
191332010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19134
19135 "continue" command support to GRUB script.
19136
19137 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
19138 (grub_script_break): Continue support.
19139 * script/main.c (grub_script_init): Register continue command.
19140 (grub_script_fini): Unregister continue command.
19141
19142 * tests/grub_script_continue.in: New testcase.
19143 * conf/tests.rmk: Rules for new testcase.
19144
4df51e00
BC
191452010-08-12 BVK Chaitanya <bvk@dbook>
19146
19147 "break" command support to GRUB script.
19148
19149 * conf/common.rmk: Rule updates to grub-script-check.
19150 * include/grub/misc.h (grub_min): New function.
19151 * include/grub/script_sh.h (grub_script_init): New prototype.
19152 (grub_script_fini): New prototype.
19153 (grub_script_break): New prototype.
19154 * script/main.c (grub_script_init): New function.
19155 (grub_script_fini): New function.
19156 * script/execute.c (grub_script_break): New function.
19157 * normal/main.c: Calls to grub_script_{init,fini}.
19158 * util/grub-script-check.c (grub_script_break): New function.
19159
19160 * tests/grub_script_break.in: New testcase.
19161 * conf/tests.rmk: Rules for new test case.
19162
f12c8420
BC
191632010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19164
19165 Function parameters support to GRUB script.
19166
19167 * script/yylex.l (VARIABLE): Regular expression update.
19168 * script/function.c (grub_script_function_call): Moved ...
19169 * script/execute.c (grub_script_function_call): ... to here.
19170 (grub_script_execute_arglist_to_argv): Removed.
19171 (grub_script_arglist_to_argv): New function.
19172 * script/argv.c: New file.
19173 (grub_script_argv_free): New function.
19174 (grub_script_argv_next): Likewise.
19175 (grub_script_argv_append): Likewise.
19176 (grub_script_argv_split_append): Likewise.
19177 * include/grub/script_sh.h (grub_script_argv): New struct.
19178 (grub_script_argv_free): New function.
19179 (grub_script_argv_next): Likewise.
19180 (grub_script_argv_append): Likewise.
19181 (grub_script_argv_split_append): Likewise.
19182
19183 * conf/common.rmk (normal.mod): New source script/argv.c.
19184
19185 * tests/grub_script_echo1.in: More tests.
19186 * tests/grub_script_vars1.in: Likewise.
19187 * tests/grub_script_functions.in: New test case.
19188 * conf/tests.rmk: Rules for new testcase.
19189
8022b748
BC
191902010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19191
19192 Remove grub_script_cmdblock struct.
19193
19194 * include/grub/script_sh.h: Remove grub_script_cmdblock.
19195 * script/parser.y: Likewise.
19196 * script/execute.c: Rename cmdblock suffix to cmdlist.
19197 * script/script.c: Likewise.
19198 * util/grub-script-check.c: Likewise.
19199
79a6ba61
YB
192002010-08-11 Yves Blusseau <blusseau@zetam.org>
19201
19202 * .bzrignore: add grub-macho2img
19203
d04b9414
VS
192042010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
19205
19206 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
19207
f947ab49
VS
192082010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
19209
19210 Remove the dump of sm712 initialisation sequence.
19211
19212 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
19213 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
19214 (GRUB_VGA_IO_MISC_WRITE): Likewise.
19215 (GRUB_VGA_CR_*): Added many registers.
19216 (GRUB_VGA_SR_*): Likewise.
19217 (GRUB_VGA_GR_*): Likewise.
19218 (grub_vga_write_arx): New function.
19219 (grub_video_hw_config): New struct.
19220 (grub_vga_set_geometry): New function.
19221 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
19222 GRUB_PCI_CLASS_SUBCLASS_VGA.
19223 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
19224 * video/sm712.c (grub_sm712_write_reg): New function
19225 (grub_sm712_read_reg): Likewise.
19226 (grub_sm712_sr_write): Likewise.
19227 (grub_sm712_gr_write): Likewise.
19228 (grub_sm712_cr_write): Likewise.
19229 (grub_sm712_write_arx): Likewise.
19230 (grub_sm712_cr_shadow_write): Likewise.
19231 (grub_sm712_write_dda_lookup): Likewise.
19232 (grub_video_sm712_setup): Initialise the video rather then
19233 blindly replay the dump.
19234 (main) [TEST]: Add a routine to be able to compile as standalone for
19235 tests.
19236 * video/sm712_init.c (sm712_init): Removed.
19237 (sm712_sr_seq1): New array.
19238 (sm712_sr_seq2): Likewise.
19239
f0206638
VS
192402010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19241
19242 * include/grub/vga.h: Add missing grub/pci.h include.
19243
2764da3b
YB
192442010-08-10 Yves Blusseau <blusseau@zetam.org>
19245
19246 * util/grub-macho2img.c (main): fix typo
19247
cf0c775e
VS
192482010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19249
19250 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
19251 (grub_vga_gr_read): Likewise.
19252 (grub_vga_cr_write): Likewise.
19253 (grub_vga_cr_read): Likewise.
19254 (grub_vga_sr_write): Likewise.
19255 (grub_vga_sr_read): Likewise.
19256 (grub_vga_palette_read): Likewise.
19257 (grub_vga_palette_write): Likewise.
19258 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
19259 (grub_sm712_sr_read): New function.
19260 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
19261 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
19262
07f360e9
RM
192632010-08-09 Robert Millan <rmh@gnu.org>
19264
19265 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
19266 out unused variables on non-ZFS build.
19267
346c2072
RM
192682010-08-08 Robert Millan <rmh@gnu.org>
19269
19270 Fix path generation for sub-filesystems in ZFS.
19271
19272 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
19273 missing slash.
19274
71175420
RM
192752010-08-08 Robert Millan <rmh@gnu.org>
19276
19277 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
19278
0d8286f3
RM
192792010-08-08 Robert Millan <rmh@gnu.org>
19280
19281 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
19282 exist, issue a proper error message (rely on `ls' for translated
19283 strings).
19284
55dd2924
RM
192852010-08-08 Robert Millan <rmh@gnu.org>
19286
19287 Fix grub-probe invocation.
19288
19289 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
19290
d3dd9e80
RM
192912010-08-04 Robert Millan <rmh@gnu.org>
19292
19293 * configure.ac: Remove checks for getfsstat() and getmntany().
19294 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
19295 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
19296 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
19297 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
19298 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
19299 function.
19300 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
19301 via find_mount_point_from_dir() and getfsstat() / getmntany().
19302
0de22aa9
RM
193032010-08-04 Robert Millan <rmh@gnu.org>
19304
19305 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19306 (grub_find_zpool_from_mount_point): Merge into ...
19307 (grub_find_zpool_from_dir): ... this.
19308 * kern/emu/misc.c: Likewise.
19309
19310 * kern/emu/misc.c
19311 (grub_make_system_path_relative_to_its_root): Replace
19312 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
19313 with grub_find_zpool_from_dir().
19314 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
19315
62858144
RM
193162010-08-04 Robert Millan <rmh@gnu.org>
19317
19318 Support OpenSolaris in ZFS device resolution.
19319
19320 * configure.ac: Check for getmntany().
19321 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19322 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19323 support.
19324
9dd6fd50
RM
193252010-08-03 Robert Millan <rmh@gnu.org>
19326
19327 Fix grub-emu build.
19328
19329 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19330 * include/grub/emu/misc.h: ... here.
19331
19332 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19333 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19334
19335 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19336 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19337 (grub_get_libzfs_handle): Move to ...
19338 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19339 (grub_get_libzfs_handle): ... here.
19340
c9f7ff97
BC
193412010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19342
19343 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19344 as command name case.
19345
a870a783
CW
193462010-08-02 Colin Watson <cjwatson@ubuntu.com>
19347
19348 * disk/raid.c (insert_array): Select unique numbers for named arrays
19349 as well, for use as keys in the disk cache.
19350
c7db243b
RM
193512010-08-01 Robert Millan <rmh@gnu.org>
19352
19353 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19354 kFreeBSD device name, except on ZFS where the filesystem label is
19355 used.
19356 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19357 `/boot/zfs/zpool.cache'.
19358 Set mountfrom kernel variable using ${kfreebsd_device}.
19359
f7abdefb
RM
193602010-08-01 Robert Millan <rmh@gnu.org>
19361
19362 Make it even harder to use uninitialized `libzfs_handle' (and
19363 make the interface a bit simpler).
19364
19365 * include/grub/util/misc.h (grub_util_init_libzfs)
19366 (libzfs_handle): Remove.
19367 (grub_get_libzfs_handle): New prototype.
19368
19369 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19370 attribute.
19371 (grub_util_init_libzfs): Remove.
19372 (grub_get_libzfs_handle): New function.
19373
19374 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19375 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19376 accessing `libzfs_handle' directly.
19377
c882acc0
RM
193782010-08-01 Robert Millan <rmh@gnu.org>
19379
19380 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19381 (grub_find_zpool_from_mount_point): New function prototypes.
19382
19383 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19384 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19385
19386 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19387 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19388 `static' attribute.
19389
19390 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19391 finding zpool from mount point into ...
19392 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19393
19394 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19395 requested path is part of a ZFS pool, use
19396 grub_find_zpool_from_mount_point() to detect its filesystem name,
19397 and generate a path with `/fsname@path' syntax.
19398
8bfe31d8
CW
193992010-08-01 Colin Watson <cjwatson@ubuntu.com>
19400
19401 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19402 (void) rather than () so that this is a proper prototype.
19403
553df63d
VS
194042010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19405
19406 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19407
8687cf07
VS
194082010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19409
19410 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19411 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19412
ea9be8ea
CW
194132010-08-01 Colin Watson <cjwatson@ubuntu.com>
19414
19415 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19416
6eea041a
CW
194172010-08-01 Colin Watson <cjwatson@ubuntu.com>
19418
19419 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19420
2cfb45df
CW
194212010-08-01 Colin Watson <cjwatson@ubuntu.com>
19422
19423 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19424 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19425 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19426 disable gfxpayload.
19427 (Shell-like scripting): Add real content.
19428 (Serial terminal): Suggest `terminal_input serial; terminal_output
19429 serial' rather than putting the two commands on separate lines,
19430 since console input will be inoperative after the first command.
19431 (menuentry): Document --class, --users, and --hotkey options.
19432 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19433 Vladimir Serbinenko).
19434
7decd202
VS
194352010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
194362010-08-01 Colin Watson <cjwatson@ubuntu.com>
19437
19438 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19439
c882acc0
RM
194402010-08-01 Robert Millan <rmh@gnu.org>
19441
19442 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19443 (grub_find_zpool_from_mount_point): New function prototypes.
19444
19445 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19446 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19447
19448 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19449 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19450 `static' attribute.
19451
19452 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19453 finding zpool from mount point into ...
19454 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19455
19456 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19457 requested path is part of a ZFS pool, use
19458 grub_find_zpool_from_mount_point() to detect its filesystem name,
19459 and generate a path with `/fsname@path' syntax.
19460
deb0caa3
RM
194612010-08-01 Robert Millan <rmh@gnu.org>
19462
19463 Prevent accidental use of uninitialized libzfs_handle.
19464
19465 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19466 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19467 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19468
ce04ef47
CW
194692010-08-01 Colin Watson <cjwatson@ubuntu.com>
19470
19471 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19472 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19473
ebf53056
RM
194742010-08-01 Robert Millan <rmh@gnu.org>
19475
19476 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 19477
3710bb6b
RM
194782010-07-31 Robert Millan <rmh@gnu.org>
19479
19480 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19481
8072efeb
RM
194822010-07-31 Robert Millan <rmh@gnu.org>
19483
19484 * kern/emu/misc.c: Add missing license header.
19485
3169f4c7
RM
194862010-07-31 Robert Millan <rmh@gnu.org>
19487
19488 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19489
19490 * include/grub/util/libnvpair.h: Include `<config.h>'.
19491 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19492 declaring libnvpair prototypes ourselves.
19493 * include/grub/util/libzfs.h: Include `<config.h>'.
19494 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19495 declaring libzfs prototypes ourselves.
19496
19497 (libzfs_handle): Moved to ...
19498 * include/grub/util/misc.h (libzfs_handle): ... here.
19499 Include `<grub/util/libzfs.h>'.
19500
c9a00aee
RM
195012010-07-30 Robert Millan <rmh@gnu.org>
19502
19503 * include/grub/emu/misc.h: Add missing license header.
19504
a184f9c8
RM
195052010-07-30 Robert Millan <rmh@gnu.org>
19506
19507 Enable `grub-probe -t device' resolution on ZFS.
19508
19509 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19510 * include/grub/util/libnvpair.h: New file.
19511 * include/grub/util/libzfs.h: New file.
19512
19513 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19514 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19515 `<grub/util/libnvpair.h>'.
19516 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19517
19518 (find_mount_point_from_dir): New static function.
19519 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19520 function.
19521 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19522 find_root_device_from_libzfs() before ressorting to find_root_device().
19523
19524 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19525 prototype.
19526 * util/misc.c: Include `<grub/util/libzfs.h>'.
19527 (grub_util_init_libzfs): New function.
19528 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19529 [HAVE_LIBZFS] (fini_libzfs): New static function.
19530 (grub_util_init_libzfs): New function.
19531 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19532
f7790cdd
RM
195332010-07-30 Robert Millan <rmh@gnu.org>
19534
19535 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19536 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19537 `warn_unused_result' attribute.
19538 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19539 (grub_xasprintf, grub_xvasprintf): Likewise.
19540 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19541
0806b63c
RM
195422010-07-29 Robert Millan <rmh@gnu.org>
19543
19544 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19545 (probe): Handle `PRINT_FS_LABEL'.
19546 (main): Handle `-t fs_label'.
19547
9f841f5c
RM
195482010-07-29 Robert Millan <rmh@gnu.org>
19549
19550 * configure.ac: Remove grub-mkisofs checks.
19551
46371121
VS
195522010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19553
19554 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19555 Reported by: Lennart Sorensen.
19556
195572010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19558
19559 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19560 prior to terminal_input/terminal_output separation. It's been over 1.5
19561 years and those versions weren't widely deployed.
19562
a9600892
CW
195632010-07-22 Colin Watson <cjwatson@ubuntu.com>
19564
19565 * disk/raid.c (insert_array): Don't count named arrays when looking
19566 for unused array numbers.
697e053c 19567 Reported and tested by: Michael Guntsche.
a9600892 19568
c03507df
CW
195692010-07-20 Colin Watson <cjwatson@ubuntu.com>
19570
19571 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19572 implementation of this so that grub-emu links again, with a note
19573 that this should support hotplugging in the future.
19574
b26f1c11
CW
195752010-07-20 Colin Watson <cjwatson@ubuntu.com>
19576
19577 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19578
efc9d7f1
CW
195792010-07-20 Colin Watson <cjwatson@ubuntu.com>
19580
19581 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19582 handle on failure.
19583 (grub_loopback_close): Remove empty function.
19584 (grub_loopback_dev): Remove close method.
19585
dd8ff5c9
CW
195862010-07-20 Colin Watson <cjwatson@ubuntu.com>
19587
19588 Disable EFI cursor when the EFI console becomes inactive.
19589
19590 * term/efi/console.c (grub_efi_console_init): New function.
19591 (grub_efi_console_fini): New function.
19592 (grub_console_term_output): Register init and fini methods.
19593
5e3bec67
VS
195942010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19595
19596 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19597 sh script.
19598
afaec079
VS
195992010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19600
19601 * disk/loopback.c (grub_loopback): Replace filename with file.
19602 (delete_loopback): Handle new semantics.
19603 (grub_cmd_loopback): Likewise.
19604 (grub_loopback_iterate): Likewise.
19605 (grub_loopback_close): Likewise.
19606
a6a11f3c
VS
196072010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19608
19609 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19610 with -p "".
19611 Reported by: Tito Keitel.
19612
64a638b0
VS
196132010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19614
19615 * docs/grub.texi (Naming convention): Document new naming convention.
19616
ab8ba957
VS
196172010-07-20 Vadim Solomin <vadic052@gmail.com>
196182010-07-20 Colin Watson <cjwatson@ubuntu.com>
19619
19620 Generate device.map in something closer to the old ordering.
19621
19622 * util/deviceiter.c (struct device): New declaration.
19623 (compare_file_names): Rename to ...
19624 (compare_devices): ... this. Sort by kernel name in preference to
19625 the stable by-id name, but keep the latter as a fallback comparison.
19626 Update header comment.
19627 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19628 of `struct device' rather than of plain file names.
19629
a29d6a4b
TF
196302010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19631
19632 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19633 on i386.
19634
39d824e8
VS
196352010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19636
19637 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19638 hardcoding size.
19639 (setv1table): Likewise.
19640
f058276b
FZ
196412010-07-20 Colin Watson <cjwatson@ubuntu.com>
19642
19643 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19644 removing the homehost if present.
19645 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19646 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19647 removing the homehost if present.
19648 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19649 if possible.
19650 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19651
19652 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19653 parameter. Set its pointer target to 0.
19654 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19655 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19656 `data_offset' value from the superblock for 1.x metadata.
19657 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19658 data on the device.
19659 (insert_array): Record the start sector of data on the device.
19660 (grub_raid_register): Pass start_sector parameters to
19661 grub_raid_list->detect and insert_array.
19662 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19663 member.
19664 (struct grub_raid): Add start_sector parameter to `detect'.
19665
19666 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19667 __attribute__ ((packed)), leaving a comment.
19668 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19669 (grub_mdraid_detect_09): ... here and ...
19670 (grub_mdraid_detect_1x): ... here.
19671
196722010-07-20 Peter Henn <peter.henn@web.de>
19673
19674 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19675 chunk size and disk size, which are already given as sector counts
19676 as distinct from the 0.90 units. Fetch the correct device number
19677 from the role table instead of using the table index.
19678
196792010-07-20 Felix Zielcke <fzielcke@z-51.de>
19680
19681 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19682 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19683 (WriteMostly1): New macro.
19684 Set array->name to NULL for metadata format 0.90. Add support for
19685 metadata 1.x. Fix some comments.
19686 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19687 few comments.
19688 * util/getroot.c (grub_util_get_grub_dev): Add support for
19689 /dev/md/name style devices.
19690
4b761da9
CW
196912010-07-20 Colin Watson <cjwatson@ubuntu.com>
19692
19693 * .bzrignore: Ignore 20_linux_xen.
19694
5771289a
CW
196952010-07-17 Colin Watson <cjwatson@ubuntu.com>
19696
19697 * util/import_unicode.py: Remove unnecessary imports.
19698
5dab68df
AN
196992010-07-17 Aleš Nesrsta <starous@volny.cz>
19700
19701 Hotplugging and USB hub support.
19702
19703 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19704 (grub_ohci): Likewise.
19705 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19706 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19707 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19708 (GRUB_OHCI_CTRL_EDS): Likewise.
19709 (GRUB_OHCI_BULK_EDS): Likewise.
19710 (GRUB_OHCI_TDS): Likewise.
19711 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19712 (grub_ohci_ed_phys2virt): New function.
19713 (grub_ohci_virt_to_phys): Likewise.
19714 (grub_ohci_td_phys2virt): Likewise.
19715 (grub_ohci_td_virt2phys): Likewise.
19716 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19717 attachment.
19718 (grub_ohci_find_ed): New function.
19719 (grub_ohci_alloc_td): Likewise.
19720 (grub_ohci_free_td): Likewise.
19721 (grub_ohci_free_tds): Likewise.
19722 (grub_ohci_transfer): Use previously allocated memory.
19723 (grub_ohci_portstatus): Reset status changed bit.
19724 (grub_ohci_detect_dev): Supply status changed.
19725 (grub_ohci_fini_hw): Free memory.
19726 (grub_ohci_restore_hw): Reallocate memory.
19727 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19728 Reset status change.
19729 (grub_uhci_detect_dev): Supply status_change.
19730 * bus/usb/usb.c (attach_hooks): New var.
19731 (grub_usb_device_attach): New function.
19732 (grub_usb_register_attach_hook_class): Likewise.
19733 (grub_usb_unregister_attach_hook_class): Likewise.
19734 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19735 (grub_usb_add_hub): Reset connection changed bit.
19736 (attach_root_port): New function.
19737 (grub_usb_root_hub): Likewise.
19738 (poll_nonroot_hub): Likewise.
19739 (grub_usb_poll_devices): Likewise.
19740 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19741 * disk/usbms.c (grub_usbms_open): Use device hooks.
19742 (grub_usbms_iterate) :Poll devices.
19743 (grub_usbms_finddevs): Split into ...
19744 (grub_usbms_attach): ... this ...
19745 (grub_usbms_attach): ... and this.
19746 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19747 in detect_dev.
19748 (grub_usb_interface): New fields attached and detach_hook.
19749 (grub_usb_attach_hook_class): New type.
19750 (grub_usb_attach_desc): New struct.
19751 (grub_usb_register_attach_hook_class): New function.
19752 (grub_usb_unregister_attach_hook_class): Likewise.
19753 (grub_usb_poll_devices): Likewise.
19754 (grub_usb_device_attach): Likewise.
19755 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19756 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19757
3222efaf
VS
197582010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19759
19760 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19761 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19762 delta determination style. Works with most NetBSD partitions too.
19763
139b714a
VS
197642010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19765
19766 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19767 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19768
986aad56
VS
197692010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19770
19771 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19772
99be513c
AB
197732010-07-14 Anton Blanchard <anton@samba.org>
19774
19775 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19776 ET_DYN files.
19777
18075f62
GS
197782010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19779
19780 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19781
8d9a5b15
GS
197822010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19783
19784 * kern/partition.c (grub_partition_check_containment): New function to
19785 check that a partition is physically contained in a parent. Since
19786 offsets are relative (and non-negative), this reduces to checking that
19787 the partition ends before its parent.
19788 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19789 (grub_partition_iterate): Likewise.
19790 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19791 comments.
19792 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19793 partitions that start before their parent, and add debug printfs.
19794
19563c25
CW
197952010-07-13 Colin Watson <cjwatson@ubuntu.com>
19796
19797 * Makefile.in (.SUFFIX): Spell correctly, as ...
19798 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19799 bare module name without `.mod', e.g. `test') tried to invoke a
19800 Modula-2 compiler.
19801
1a1f1e67
CW
198022010-07-13 Colin Watson <cjwatson@ubuntu.com>
19803
19804 * README: Point to the Info manual.
19805
811b0dca
JS
198062010-07-13 Jiro SEKIBA <jir@unicus.jp>
19807
19808 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19809 2nd superblock position from partition size.
19810
e4f4eafc
CW
198112010-07-10 Colin Watson <cjwatson@ubuntu.com>
19812
19813 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19814 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19815 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19816 outputs.
19817
4274c30f
VS
198182010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19819
19820 Restructure SCSI .id handling.
19821 Reported and tested by: Aleš Nesrsta.
19822
19823 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19824 (grub_atapi_dev): Changed .name to "ata". New field .id.
19825 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19826 (grub_usbms_dev): New field .id.
19827 * disk/scsi.c (grub_scsi_iterate): Generate name.
19828 (grub_scsi_open): Parse name.
19829 * include/grub/scsi.h (grub_make_scsi_id): New function.
19830 (grub_scsi_dev): Change iterate and open to number instead of naming
19831 busses. All users updated.
19832 (grub_scsi): Remove name. Add .bus.
19833
5bc24388
VS
198342010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19835
19836 * commands/help.c (grub_cmd_help): Fix a typo.
19837
249975ba
VS
198382010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19839
19840 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19841 Reported and tested by: Colin Watson.
19842
3eaac1a1
VS
198432010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19844
19845 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19846 in this context.
19847
becce1b1
VS
198482010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19849
19850 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19851
f7bf0918
CW
198522010-07-07 Colin Watson <cjwatson@ubuntu.com>
19853
19854 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19855 indentation.
19856
0b0f9620
CW
198572010-07-06 Colin Watson <cjwatson@ubuntu.com>
19858
19859 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19860 and disk/raid6_recover.c.
19861 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19862 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19863
1e545469
CW
198642010-07-06 Colin Watson <cjwatson@ubuntu.com>
19865
19866 * term/gfxterm.c (repaint_schedulded): Rename to ...
19867 (repaint_scheduled): ... this. Update all callers.
19868 (repaint_was_schedulded): Rename to ...
19869 (repaint_was_scheduled): ... this. Update all callers.
19870
5357687a
CW
198712010-07-06 Colin Watson <cjwatson@ubuntu.com>
19872
19873 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19874 which we expect to be handled by upper layers.
19875
29d7e783
BC
198762010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19877
19878 * bus/usb/usbhub.c: #include time.h header.
19879
37582066
CW
198802010-07-06 Colin Watson <cjwatson@ubuntu.com>
19881
19882 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19883 entry_name also for entries without stat blocks (e.g. ".."); fixes
19884 corruption of the first entry in a directory.
19885
c8c06953
CW
198862010-07-06 Colin Watson <cjwatson@ubuntu.com>
19887
19888 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19889 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19890 doesn't work otherwise.
19891
e75056f1
CW
198922010-07-05 Colin Watson <cjwatson@ubuntu.com>
19893
19894 * docs/grub.texi (Features): Update list of supported file systems.
19895 (GNU/Linux): Update for GRUB 2.
19896 (Serial terminal): Remove mention of --disable-serial, which was a
19897 GRUB Legacy configure option. Update instructions to use
19898 `terminal_input' and `terminal_output' rather than `terminal'.
19899 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19900 configuration' and `Installing GRUB using grub-install'.
19901 (Menu entry editor): Update for GRUB 2.
19902 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19903 Document new -a, -u, and -v options.
19904 (initrd): New section.
19905 (initrd16): New section.
19906 (linux): New section.
19907 (linux16): New section.
19908 (search): The `var' argument to `--set' is optional.
19909 (GRUB only offers a rescue shell): Go into a little more detail on
19910 drive ordering.
19911
5cf69151
CW
199122010-07-05 Colin Watson <cjwatson@ubuntu.com>
19913
19914 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19915
e3f90044
CW
199162010-07-05 Colin Watson <cjwatson@ubuntu.com>
19917
19918 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19919 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19920
38d8f4f3
CW
199212010-07-05 Colin Watson <cjwatson@ubuntu.com>
19922
19923 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19924 install_prefix, in line with install_dos_part and install_bsd_part.
19925 Add new prefix variable, which is copied to install_prefix after
19926 comparing core.img in memory with the one read from disk in the
19927 no-embedding case, and use that rather than overwriting
19928 install_prefix immediately when installing to a partition.
19929 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19930 Bicakci.
19931
57ebd41e
GS
199322010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19933
19934 * configure.ac: Avoid == in test command, it's not portable.
19935 * util/grub.d/30_os-prober.in: Likewise.
19936
cb7f64b2
CW
199372010-07-04 Colin Watson <cjwatson@ubuntu.com>
19938
19939 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19940
6b654bb0
GS
199412010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19942
19943 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19944 multiple (top-level) partmaps.
19945
72a2026d
VS
199462010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19947
19948 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 19949 Reported by: Tino Keitel.
72a2026d 19950
df3eb88f
VS
199512010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19952
19953 Bidi and diacritics support.
19954
19955 * Makefile.in (widthspec.bin): New target.
19956 (widthspec.h): Likewise.
19957 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19958 * autogen.sh: Generate unidata.c.
19959 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19960 * commands/ls.c (grub_ls_list_devices): Likewise.
19961 (grub_ls_list_files): Likewise.
19962 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19963 (grub_mini_cmd_lsmod): Likewise.
19964 * commands/read.c: Likewise.
19965 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19966 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19967 * lib/arg.c (grub_arg_show_help): Likewise.
19968 * lib/crypto.c (grub_password_get): Likewise.
19969 * normal/auth.c (grub_username_get): Likewise.
19970 * normal/misc.c (grub_normal_print_device_info): Likewise.
19971 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19972 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19973 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19974 (normal/charset.c_DEPENDENCIES): New variable.
19975 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19976 (pkglib_MODULES): Remove charset.mod.
19977 (charset_mod_SOURCES): Removed.
19978 (charset_mod_CFLAGS): Likewise.
19979 (charset_mod_LDFLAGS): Likewise.
19980 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19981 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19982 and term/tparm.c.
19983 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19984 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19985 (kernel_img_HEADERS): Add terminfo.h.
19986 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19987 Fill ->font. Reverse ascii bitmaps.
19988 (grub_font_get_xheight): New function.
19989 * font/font.c (grub_font_get_string_width): Moved from here ...
19990 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19991 * font/font.c (grub_font_draw_string): Moved from here ...
19992 * gfxmenu/font.c (grub_font_draw_string): ... here.
19993 * font/font.c (grub_font_dup_glyph): New function.
19994 (grub_font_blit_glyph): Likewise.
19995 (grub_font_blit_glyph_mirror): Likewise.
19996 (blit_comb): Likewise.
19997 (grub_font_construct_dry_run): Likewise.
19998 (grub_font_get_constructed_device_width): Likewise.
19999 (grub_font_construct_glyph): Likewise.
20000 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
20001 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
20002 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
20003 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
20004 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
20005 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
20006 (grub_font_get_xheight): New proto.
20007 (grub_font_get_constructed_device_width): Likewise.
20008 (grub_font_construct_glyph): Likewise.
20009 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
20010 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
20011 * include/grub/font.h (grub_font_draw_string): Moved from here ...
20012 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
20013 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
20014 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
20015 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
20016 (grub_console_getcharwidth): Likewise.
20017 * include/grub/misc.h (grub_xputs): New proto.
20018 (grub_puts): Inlined.
20019 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
20020 (grub_normal_get_line_counter): Removed.
20021 (grub_install_newline_hook): Likewise.
20022 (grub_normal_get_char_counter): New proto.
20023 (grub_normal_reset_more): Likewise.
20024 (grub_xputs_normal): Likewise.
20025 * include/grub/powerpc/ieee1275/console.h: Removed.
20026 * include/grub/sparc64/ieee1275/console.h: Likewise.
20027 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
20028 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
20029 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
20030 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
20031 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
20032 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
20033 (grub_term_input): Pass reference to self. All users updated.
20034 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
20035 Pass reference to self. New fields normal_color, highlight_color and
20036 data. All users updated.
20037 (grub_putchar): Removed.
20038 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
20039 (grub_unicode_estimate_width): New function.
20040 (grub_term_getcharwidth): Add defaults.
20041 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
20042 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
20043 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
20044 (grub_cls): Remove EXPORT_FUNC.
20045 (grub_setcolorstate): Inline.
20046 (grub_newline_hook): Removed.
20047 * include/grub/terminfo.h: Rewritten. All users updated.
20048 * include/grub/unicode.h: New file.
20049 * include/grub/video.h (grub_video_signed_rect): New type.
20050 * kern/emu/console.c (grub_console_highlight_color): Removed.
20051 (grub_console_normal_color): Likewise.
20052 (grub_console_standard_color): Made static.
20053 (grub_ncurses_putchar): Remove mapping.
20054 (grub_ncurses_getcharwidth): Removed.
20055 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20056 (grub_ncurses_setcolor): Removed.
20057 (grub_ncurses_getcolor): Likewise.
20058 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
20059 (grub_console_putchar): ... this.
20060 (grub_console_putchar): Handle argument difference.
20061 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
20062 console_init_early and console_init_lately.
20063 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
20064 * kern/misc.c (grub_puts): Removed.
20065 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
20066 (grub_vsnprintf_real): Remove str = NULL support.
20067 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
20068 * normal/charset.c (grub_utf8_to_ucs4): ... here.
20069 * kern/term.c (grub_putcode): Renamed to ...
20070 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
20071 (grub_putchar): Removed.
20072 (grub_xputs_dumb): New function.
20073 (grub_xputs): New variable.
20074 * lib/charset.c: Move from here ...
20075 * normal/charset.c: ... to here.
20076 (grub_ucs4_to_utf8): New function.
20077 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
20078 (join_types): New variable.
20079 (unpack_join): New function.
20080 (bidi_types): New variable.
20081 (unpack_bidi): New function.
20082 (get_bidi_type): Likewise.
20083 (get_join_type): Likewise.
20084 (is_mirrored): Likewise.
20085 (grub_unicode_get_comb_type): Likewise.
20086 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
20087 (is_type_after): Likewise.
20088 (grub_unicode_aglomerate_comb): Likewise.
20089 (bidi_line_wrap): Likewise.
20090 (grub_bidi_line_logical_to_visual): Likewise.
20091 (grub_bidi_logical_to_visual): Likewise.
20092 (grub_unicode_mirror_code): Likewise.
20093 (grub_unicode_shape_code): Likewise.
20094 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
20095 Don't use grub_putchar.
20096 * normal/main.c (grub_normal_init_page): Use grub_putcode.
20097 (grub_normal_reader_init): Likewise.
20098 (grub_xputs_saved): New variable.
20099 (GRUB_MOD_INIT): Set grub_xputs.
20100 (GRUB_MOD_FINI): Restore grub_xputs.
20101 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
20102 (menu_init): Avoid printing gfxmenu error.
20103 (show_menu): Use grub_normal_get_char_counter.
20104 * normal/menu_entry.c (update_screen): Fix out-of-array.
20105 (complete): Avoid NULL dereferencing.
20106 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
20107 * normal/menu_text.c (print_spaces): Removed.
20108 (grub_print_ucs4): Likewise.
20109 (grub_print_message_indented): Use grub_print_ucs4.
20110 (print_message): Use grub_putcode.
20111 (print_entry): Hanlde diacritics.
20112 * normal/term.c (term_state): New type.
20113 (grub_more_lines): Removed.
20114 (term_states): New variable.
20115 (grub_normal_line_counter): Renamed to ..
20116 (grub_normal_char_counter): ...this. All users updated.
20117 (grub_normal_get_line_counter): Renamed to ...
20118 (grub_normal_get_char_counter): ... this.
20119 (grub_normal_reset_more): New function.
20120 (process_newline): Removed.
20121 (print_more): New function.
20122 (grub_install_newline_hook): Removed.
20123 (map_code): New function.
20124 (grub_puts_terminal): Use grub_print_ucs4.
20125 (putglyph): New function.
20126 (putcode_real): Likewise.
20127 (grub_putcode): Use putcode_real.
20128 (get_maxwidth): New function.
20129 (get_startwidth): Likewise.
20130 (print_ucs4_terminal): Likewise.
20131 (find_term_state): Likewise.
20132 (put_glyphs_terminal): Likewise.
20133 (print_backlog): Likewise.
20134 (print_ucs4_real): Likewise.
20135 (grub_print_ucs4): Likewise.
20136 (grub_xputs_normal): Likewise.
20137 * term/efi/console.c (grub_console_putchar): Output diacritics.
20138 (grub_console_getcharwidth): Removed.
20139 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20140 * term/gfxterm.c (clear_char): Free chars.
20141 (scroll_up): Avoid leaking memory.
20142 (grub_gfxterm_putchar): Support diacritics.
20143 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20144 * term/i386/pc/console.c (grub_console_term_output): Declare as
20145 GRUB_TERM_CODE_TYPE_VGA.
20146 * term/i386/pc/vga.c (grub_vga_term): Declare as
20147 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
20148 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
20149 GRUB_TERM_CODE_TYPE_VGA.
20150 * term/i386/vga_common.c (map_char): Removed.
20151 (grub_console_putchar): Likewise.
20152 (grub_console_getcharwidth): Likewise.
20153 * term/ieee1275/ofconsole.c: Simplify using terminfo.
20154 (colors): Reordered to match terminfo.
20155 (grub_ofconsole_normal_color): Removed.
20156 (grub_ofconsole_writeesc): Likewise.
20157 (grub_ofconsole_highlight_color): Likewise.
20158 (grub_ofconsole_getcharwidth): Likewise.
20159 (grub_ofconsole_setcolorstate): Likewise.
20160 (grub_ofconsole_setcolor): Likewise.
20161 (grub_ofconsole_getcolor): Likewise.
20162 (grub_ofconsole_readkey): Renamed to ...
20163 (readkey): ... this. Remove escape sequence handling. Return -1 on no
20164 key.
20165 (grub_ofconsole_checkkey): Removed.
20166 (grub_ofconsole_getkey): Likewise.
20167 (grub_ofconsole_getxy): Likewise.
20168 (grub_ofconsole_gotoxy): Likewise.
20169 (grub_ofconsole_cls): Likewise.
20170 (grub_ofconsole_refresh): Likewise.
20171 (grub_ofconsole_terminfo_input): New struct.
20172 (grub_ofconsole_terminfo_output): Likewise.
20173 (grub_ofconsole_term_input): Use terminfo.
20174 (grub_ofconsole_term_output): Likewise.
20175 (grub_console_init): Split into ...
20176 (grub_console_init_early): ...this and ...
20177 (grub_console_init_lately): ...this. Use terminfo.
20178 (grub_ofconsole_putchar): Renamed to ...
20179 (put): ... this. Remove mapping.
20180 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20181 * term/serial.c: Simplify using terminfo.
20182 (xpos): Removed.
20183 (ypos): Likewise.
20184 (keep_track): Likewise.
20185 (registered): Likewise.
20186 (input_buf): Likewise.
20187 (npending): Likewise.
20188 (serial_translate_key_sequence): Likewise.
20189 (fill_input_buf): Likewise.
20190 (grub_serial_checkkey): Likewise.
20191 (grub_serial_getkey): Likewise.
20192 (grub_serial_getxy): Likewise.
20193 (grub_serial_gotoxy): Likewise.
20194 (grub_serial_putchar): Likewise.
20195 (grub_serial_cls): Likewise.
20196 (grub_serial_setcolorstate): Likewise.
20197 (grub_serial_setcursor): Likewise.
20198 (serial_hw_init): Use serial_hw_fetch.
20199 (grub_serial_terminfo_input): New variable.
20200 (grub_serial_terminfo_output): Likewise.
20201 (grub_serial_term_input): Use terminfo.
20202 (grub_serial_term_output): Likewise.
20203 * term/terminfo.c (putstr): Use put.
20204 (grub_terminfo_all_free): New function
20205 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
20206 (grub_terminfo_output_register): New function.
20207 (grub_terminfo_output_unregister): Likewise.
20208 (grub_terminfo_getxy): Likewise.
20209 (grub_terminfo_readkey): Likewise.
20210 (grub_terminfo_checkkey): Likewise.
20211 (grub_terminfo_getkey): Likewise.
20212 (grub_terminfo_input_init): Likewise.
20213 (print_terminfo): Likewise.
20214 (grub_cmd_terminfo): Handle encoding.
20215 (grub_terminfo_gotoxy): Track position.
20216 (grub_terminfo_cls): Likewise.
20217 (grub_terminfo_putchar): Likewise.
20218 (grub_terminfo_setcolorstate): Handle colors
20219 (grub_terminfo_cursor_on): This ...
20220 (grub_terminfo_cursor_off): ... and this merged into ...
20221 (grub_terminfo_setcursor): ... this.
20222 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
20223 * unicode/ArabicShaping.txt: New file (imported from Unicode).
20224 * unicode/BidiMirroring.txt: Likewise.
20225 * unicode/UnicodeData.txt: Likewise.
20226 * unicode/COPYING: Likewise.
20227 * util/grub-editenv.c (grub_putchar): Removed.
20228 (grub_xputs_real): New function.
20229 (grub_xputs): New variable.
20230 * util/grub-fstest.c (grub_putchar): Removed.
20231 (grub_xputs_real): New function.
20232 (grub_xputs): New variable.
20233 * util/grub-mkdevicemap.c (grub_putchar): Removed.
20234 (grub_xputs_real): New function.
20235 (grub_xputs): New variable.
20236 * util/grub-probe.c (grub_putchar): Removed.
20237 (grub_xputs_real): New function.
20238 (grub_xputs): New variable.
20239 * util/grub-script-check.c (grub_putchar): Removed.
20240 (grub_xputs_real): New function.
20241 (grub_xputs): New variable.
20242 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
20243 (grub_xputs_real): New function.
20244 (grub_xputs): New variable.
20245 * util/import_unicode.py: New file.
20246 * util/grub-mkfont.c (ft_errmsgs): New array.
20247 (grub_glyph_info): Make bitmap a pointer.
20248 (file_formats): New type WIDTH_SPEC.
20249 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
20250 (options): Add width-spec.
20251 (help): Likewise.
20252 (add_char): Renamed to ...
20253 (add_glyph): ... this.
20254 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
20255 (glyph_replace): New type.
20256 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
20257 (add_char): New function.
20258 (add_subst): Likewise.
20259 (process_cursive): Likewise.
20260 (add_font): Handle GSUB.
20261 (write_font_width_spec): New function.
20262 (main): Sort glyphs.
20263 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
20264 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
20265 * kern/term.c (grub_cls): Moved from here...
20266 * normal/term.c (grub_cls): ... here.
20267
50f0bcda
CW
202682010-07-02 Colin Watson <cjwatson@ubuntu.com>
20269
20270 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
20271 suitable for using within the format argument of printf when
20272 converting grub_size_t.
20273 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
20274 "x" to convert grub_size_t arguments.
20275
40372103
VS
202762010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20277
20278 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
20279 too long captions.
20280 (list_get_minimal_size): Take selection box into account.
20281
942a10c7
VS
202822010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20283
20284 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
20285 NULL font.
20286
2bdb2892
CW
202872010-07-02 Colin Watson <cjwatson@ubuntu.com>
20288
20289 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
20290 devices when iterating over /dev/disk/by-id; they will be handled
20291 later if appropriate, which they aren't always (e.g. LVM).
20292
e03ed6c1
CW
202932010-07-02 Colin Watson <cjwatson@ubuntu.com>
20294
20295 * include/grub/misc.h (grub_reboot): Declare as noreturn.
20296 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
20297 fails.
20298 (grub_halt): Likewise.
20299 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
20300 reset-all fails.
20301 (grub_halt): Don't return, even if all of shut-down, power-off, and
20302 poweroff fail.
20303
47695765
CW
203042010-07-02 Colin Watson <cjwatson@ubuntu.com>
20305
20306 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
20307 arguments, not three.
20308
507736c8
CW
203092010-07-02 Colin Watson <cjwatson@ubuntu.com>
20310
20311 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20312 * util/grub.d/10_linux.in: Use it to check for LVM, so that
20313 LVM-on-RAID is handled correctly.
20314
e3c8cd37
CW
203152010-07-02 Colin Watson <cjwatson@ubuntu.com>
20316
20317 * docs/grub.texi (Changes from GRUB Legacy): New section.
20318 (Future): Fix typo.
20319
8d4a2fec
CW
203202010-07-02 Colin Watson <cjwatson@ubuntu.com>
20321
20322 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20323 grub.d/README accidentally ends up executable for one reason or
20324 another. Ignore it.
20325
1c4827be
VS
203262010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20327
20328 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20329 (gpt_partition_map_iterate): Support non-512B sectors.
20330
d9a0c941
VS
203312010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20332
20333 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20334 Tested by: Seth Goldberg.
20335
48f27e87
VS
203362010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20337
20338 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20339 Properly align mbi.
20340 Reported by: Seth Goldberg.
20341
b0c4f956
VS
203422010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20343
20344 * util/grub-mkrescue.in: Avoid module duplication.
20345
105a2e8c
SF
203462010-07-01 Sean Finney <seanius@seanius.net>
20347
20348 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20349
5944958c
SF
203502010-07-01 Sean Finney <seanius@seanius.net>
20351
20352 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20353
203542010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20355
20356 * disk/lvm.c (grub_lvm_checkvalue): New function.
20357 (grub_lvm_check_flag): Likewise.
20358
b79889ba
RM
203592010-07-01 Robert Millan <rmh@gnu.org>
20360
20361 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20362 Support 'p' as partition separator on kernel of FreeBSD (used
20363 with GPT labels).
20364 (grub_util_biosdisk_get_grub_dev): Likewise.
20365
ec1d04f1
VS
203662010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20367
20368 Yeeloong firmware port.
20369
20370 * boot/mips/yeeloong/fwstart.S: New file.
20371 * bus/cs5536.c (gpiodump): New const.
20372 (set_io_space): New function.
20373 (set_iod): Likewise.
20374 (set_p2d): Likewise.
20375 (grub_cs5536_init_geode): Likewise.
20376 * commands/mips/yeeloong/lsspd.c: New file.
20377 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20378 (serial_mod_SOURCES): New variable.
20379 (serial_mod_CFLAGS): Likewise.
20380 (serial_mod_LDFLAGS): Likewise.
20381 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20382 term/terminfo.c and term/tparm.c.
20383 (pkglib_IMAGES): Add fwstart.img.
20384 (fwstart_img_SOURCES): New variable.
20385 (fwstart_img_CFLAGS): Likewise.
20386 (fwstart_img_ASFLAGS): Likewise.
20387 (fwstart_img_LDFLAGS): Likewise.
20388 (fwstart_img_FORMAT): Likewise.
20389 (pkglib_MODULES): Add lsspd.mod.
20390 (lsspd_mod_SOURCES): New variable.
20391 (lsspd_mod_CFLAGS): Likewise.
20392 (lsspd_mod_LDFLAGS): Likewise.
20393 (pkglib_MODULES): Add halt.mod.
20394 (halt_mod_SOURCES): New variable.
20395 (halt_mod_CFLAGS): Likewise.
20396 (halt_mod_LDFLAGS): Likewise.
20397 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20398 (serial_mod_SOURCES): Removed.
20399 (serial_mod_CFLAGS): Likewise.
20400 (serial_mod_LDFLAGS): Likewise.
20401 * disk/ata.c (check_device): New function.
20402 (grub_ata_device_initialize): Use check_device.
20403 (grub_ata_iterate): Recheck devices.
20404 (grub_ata_open): Likewise.
20405 (grub_atapi_iterate): Likewise.
20406 (grub_atapi_open): Likewise.
20407 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20408 (GRUB_ATA_CH1_PORT1): Likewise.
20409 (GRUB_ATA_CH0_PORT2): Likewise.
20410 (GRUB_ATA_CH1_PORT2): Likewise.
20411 * include/grub/mips/loongson.h: New file.
20412 * include/grub/mips/yeeloong/ec.h: Likewise.
20413 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20414 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20415 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20416 * include/grub/misc.h (grub_halt): Declare as noreturn.
20417 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20418 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20419 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20420 (UART_ENABLE_DTRRTS): Likewise.
20421 (UART_ENABLE_MODEM): Removed.
20422 (UART_ENABLE_OUT2): New const.
20423 * include/grub/term.h (grub_term_register_input_active): New function.
20424 (grub_term_register_output_active): Likewise.
20425 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20426 argument.
20427 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20428 (init_pci): New function.
20429 (grub_machine_init): Execute platform init when firmware. Init serial.
20430 (grub_halt): Implement.
20431 (grub_exit): Likewise.
20432 (grub_reboot): Likewise.
20433 * term/serial.c (serial_hw_init): Update macros.
20434 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20435 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20436 (image_targets): New target mipsel-yeeloong-flash.
20437 (generate_image): Support IMAGE_YEELOONG_FLASH.
20438 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20439 (grub_video_sm712_setup): Init card.
20440 (grub_video_sm712_set_palette): Removed.
20441 * video/sm712_init.c: New file.
20442
ff4a70d2
CW
204432010-06-30 Colin Watson <cjwatson@ubuntu.com>
20444
20445 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20446 PATH when running help2man and then run it on the unadorned
20447 executable names, rather than passing $(builddir)/* paths to
20448 help2man. This avoids the build directory ending up in generated
20449 manual pages.
20450
1246efeb
CW
204512010-06-29 Colin Watson <cjwatson@ubuntu.com>
20452
20453 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20454 to avoid accidents when debugging with 'sh -x'.
20455 * util/grub-mkrescue.in: Likewise.
20456 * util/grub.d/00_header.in: Likewise.
20457 * util/grub.d/10_hurd.in: Likewise.
20458 * util/grub.d/10_kfreebsd.in: Likewise.
20459 * util/grub.d/10_linux.in: Likewise.
20460 * util/grub.d/10_netbsd.in: Likewise.
20461 * util/grub.d/10_windows.in: Likewise.
20462 * util/grub.d/20_linux_xen.in: Likewise.
20463 * util/grub.d/30_os-prober.in: Likewise.
20464 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20465
1ba9b889
CW
204662010-06-29 Colin Watson <cjwatson@ubuntu.com>
20467
20468 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20469 last character in the buffer.
20470 Reported by: Vladimir Serbinenko.
20471
dccaf99d
RM
204722010-06-29 Robert Millan <rmh@gnu.org>
20473
20474 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20475 (Command-line and menu entry commands): Document `badram' command.
20476
d500ed12
RM
204772010-06-28 Robert Millan <rmh@gnu.org>
20478
20479 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20480 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20481 command using ${GRUB_BADRAM} as parameter.
20482
20bc84a6
CW
204832010-06-28 Colin Watson <cjwatson@ubuntu.com>
20484
20485 * docs/grub.texi (Device map): New section.
20486 (Themes): New section (stub).
20487 * Makefile.in (docs/grub.info): The info documentation now builds
20488 without errors. Make sure it stays that way.
20489
4045dee1
VS
204902010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20491
20492 Use normal parser for menu entries.
20493 Reported by: Thomas Frauendorfer
20494
20495 * include/grub/parser.h (grub_parser_execute): Don't export.
20496 * normal/menu.c (grub_menu_execute_entry_real): New function.
20497 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20498
bca58c7b
CW
204992010-06-28 Colin Watson <cjwatson@ubuntu.com>
20500
20501 * docs/grub.texi (Embedded configuration): New section (replacing
20502 old "Preset Menu" stub).
20503 (Images): New section.
20504 (configfile): Note that any menu entries defined in `file' are shown
20505 immediately.
20506
dec53e63
JT
205072010-06-28 Josh Triplett <josh@joshtriplett.org>
20508
20509 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20510
c06e40f7
CW
205112010-06-28 Colin Watson <cjwatson@ubuntu.com>
20512
20513 * util/grub-install.in: Add --debug-image= option.
20514
cb88052b
CW
205152010-06-28 Colin Watson <cjwatson@ubuntu.com>
20516
20517 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20518 possible on Linux.
20519
20520 * util/deviceiter.c (check_device): Rename to ...
20521 (check_device_readable_unique): ... this. Update all callers.
20522 Maintain and check a list of which devices (by canonicalized name)
20523 have already been seen.
20524 (clear_seen_devices): New function.
20525 (compare_file_names) [__linux__]: New function.
20526 (grub_util_iterate_devices): Clear the list of seen devices on exit
20527 and (just in case) on entry.
20528 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20529 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20530 seen-devices list, superseded by general code in check_device.
20531
bbe34652
CW
205322010-06-28 Colin Watson <cjwatson@ubuntu.com>
20533
20534 * commands/cat.c (options): New variable.
20535 (grub_cmd_cat): Parse options. If the --dos option is given, print
20536 DOS-style "\r\n" line endings as simple newlines (Debian bug
20537 #586358).
20538 (GRUB_MOD_INIT): Use extcmd.
20539 (GRUB_MOD_FINI): Likewise.
20540 * docs/grub.texi (cat): Document --dos.
20541
412e09f3
VS
205422010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20543
20544 XEN with Linux grub-mkconfig support.
20545
20546 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20547 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20548 GRUB_CMDLINE_XEN_DEFAULT.
20549 * util/grub.d/20_linux_xen.in: New file.
20550
53f3ef38 205512010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
20552
20553 Initialise VGA video on qemu ourselves.
20554
20555 * boot/i386/qemu/boot.S: Don't call 0xc000.
20556 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20557 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20558 (kernel_img_HEADERS): Add pci.h.
20559 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20560 * configure.ac: Force unifont on qemu and yeeloong.
20561 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20562 (grub_vga_palette_write): Use correct register.
20563 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20564 Call grub_qemu_init_cirrus.
20565 * kern/i386/qemu/init.c: New file.
20566 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20567
20568 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20569
c75be4fb
PR
205702010-06-26 Pavel Roskin <proski@gnu.org>
20571
20572 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20573 13.
20574
d8034603
CW
205752010-06-26 Colin Watson <cjwatson@ubuntu.com>
20576
20577 * docs/grub.texi (Simple configuration): Explain that
20578 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20579 set to `true' to disable their respective recovery entries, not
20580 merely set.
20581
3fa06487
CW
205822010-06-26 Colin Watson <cjwatson@ubuntu.com>
20583
20584 Make the `source' command slightly faster.
20585
20586 * normal/main.c (grub_normal_execute): Don't re-read list files when
20587 nested.
20588
e9b29642
CW
205892010-06-23 Colin Watson <cjwatson@ubuntu.com>
20590
20591 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20592 field position and mask size to red fields from mode_info, not
20593 green.
20594 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20595 Remove redundant tag->common.framebuffer_type assignment.
20596 Reported by: Seth Goldberg.
20597
e726542f
CW
205982010-06-23 Colin Watson <cjwatson@ubuntu.com>
20599
20600 Sync up other versions of the Linux loader with Robert Millan's
20601 change of 2010-01-09, "Make loader output a bit more user-friendly".
20602
20603 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20604 grub_dprintf().
20605 (grub_cmd_linux): Likewise.
20606 (grub_cmd_initrd): Likewise.
20607 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20608 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20609
d6e98a17
CW
206102010-06-21 Colin Watson <cjwatson@ubuntu.com>
20611
20612 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20613 larger than MEMORY_MAP_SIZE.
20614
14d3f08e
BC
206152010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20616
20617 Fix parallel build.
20618
20619 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20620 dependency.
20621 * script/parser.y: #include grub_script.tab.h header.
20622
4f9613a3
VS
206232010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20624
20625 Support >3GiB and <16MiB RAM in i386-qemu.
20626
20627 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20628 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20629 (grub_lower_mem): Removed.
20630 (grub_upper_mem): Likewise.
20631 (mem_size): Made static.
20632 (above_4g): New variable.
20633 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20634 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20635 support.
20636
05e51879
VS
206372010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20638
20639 Cirrus 5446 and Bochs video cards support.
20640
20641 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20642 video_bochs.mod
20643 (video_cirrus_mod_SOURCES): New variable.
20644 (video_cirrus_mod_CFLAGS): Likewise.
20645 (video_cirrus_mod_LDFLAGS): Likewise.
20646 (video_bochs_mod_SOURCES): Likewise.
20647 (video_bochs_mod_CFLAGS): Likewise.
20648 (video_bochs_mod_LDFLAGS): Likewise.
20649 * include/grub/vga.h: New file.
20650 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20651 (grub_video_fb_set_page_t): New type.
20652 (grub_video_fb_setup): New prototype.
20653 (grub_video_fb_swap_buffers): Likewise.
20654 (grub_video_fb_get_info_and_fini): Likewise.
20655 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20656 (CRTC_DATA_PORT): Likewise.
20657 (CRTC_CURSOR): Likewise.
20658 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20659 (CRTC_CURSOR_ADDR_LOW): Likewise.
20660 (CRTC_CURSOR_DISABLE): Likewise.
20661 (update_cursor): Use grub_vga_cr_write.
20662 (grub_vga_text_setcursor): Likewise.
20663 * video/bochs.c: New file.
20664 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20665 (palette): Likewise.
20666 (palette_size): Likewise.
20667 (framebuffer): New variable.
20668 (grub_video_fb_init): Use 'framebuffer'.
20669 (grub_video_fb_fini): Likewise.
20670 (grub_video_fb_get_info): Likewise.
20671 (grub_video_fb_get_palette): Likewise.
20672 (grub_video_fb_set_palette): Likewise.
20673 (grub_video_fb_set_viewport): Likewise.
20674 (grub_video_fb_get_viewport): Likewise.
20675 (grub_video_fb_map_color): Likewise.
20676 (grub_video_fb_map_rgb): Likewise.
20677 (grub_video_fb_map_rgba): Likewise.
20678 (grub_video_fb_unmap_color): Likewise.
20679 (grub_video_fb_unmap_color_int): Likewise.
20680 (grub_video_fb_fill_rect): Likewise.
20681 (grub_video_fb_blit_bitmap): Likewise.
20682 (grub_video_fb_blit_render_target): Likewise.
20683 (grub_video_fb_scroll): Likewise.
20684 (grub_video_fb_create_render_target): Likewise.
20685 (grub_video_fb_doublebuf_blit_init): Likewise.
20686 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20687 (doublebuf_pageflipping_update_screen): New function.
20688 (doublebuf_pageflipping_init): Likewise.
20689 (grub_video_fb_setup): Likewise.
20690 (grub_video_fb_swap_buffers): Likewise.
20691 (grub_video_fb_get_info_and_fini): Likewise.
20692 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20693 All users updated.
20694 (doublebuf_pageflipping_commit): Restructured into ...
20695 (doublebuf_pageflipping_set_page): ... this.
20696 (doublebuf_pageflipping_update_screen): Removed.
20697 (doublebuf_pageflipping_init): Likewise.
20698 (double_buffering_init): Likewise.
20699 (grub_video_vbe_setup): Use grub_video_fb_setup.
20700 (grub_video_vbe_swap_buffers): Removed.
20701 (grub_video_vbe_set_active_render_target): Likewise.
20702 (grub_video_vbe_get_active_render_target): Likewise.
20703 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20704 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20705 grub_video_fb_set_active_render_target and
20706 grub_video_fb_get_active_render_target.
20707 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20708 (SEQUENCER_DATA_PORT): Likewise.
20709 (MAP_MASK_REGISTER): Likewise.
20710 (CRTC_ADDR_PORT): Likewise.
20711 (CRTC_DATA_PORT): Likewise.
20712 (START_ADDR_HIGH_REGISTER): Likewise.
20713 (START_ADDR_LOW_REGISTER): Likewise.
20714 (GRAPHICS_ADDR_PORT): Likewise.
20715 (GRAPHICS_DATA_PORT): Likewise.
20716 (READ_MAP_REGISTER): Likewise.
20717 (INPUT_STATUS1_REGISTER): Likewise.
20718 (INPUT_STATUS1_VERTR_BIT): Likewise.
20719 (get_map_mask): Use grub_vga_sr_read.
20720 (set_map_mask): Use grub_vga_sr_write.
20721 (set_read_map): Use grub_vga_gr_write.
20722 (set_start_address): Use grub_vga_cr_write.
20723 * video/sm712.c (framebuffer): Remove leftover fields.
20724
4321c64a
CW
207252010-06-20 Colin Watson <cjwatson@ubuntu.com>
20726
20727 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20728 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20729 instead. Replace the gfxterm backend check with a check that
20730 ${GRUB_PREFIX}/video.lst is non-empty.
20731 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20732 again.
20733 (load_video): New generated function. Call it before loading
20734 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20735 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20736 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20737 * docs/grub.texi (Simple configuration): Document
20738 GRUB_VIDEO_BACKEND.
20739
207402010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20741
20742 Use video functions in linux and xnu loaders.
20743
20744 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20745 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20746 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20747 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20748 loader/i386/pc/linux.c.
20749 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20750 (find_line_len): Removed.
20751 (find_framebuf): Likewise.
20752 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20753 * loader/i386/efi/xnu.c: Removed.
20754 * loader/i386/pc/xnu.c: Moved from here...
20755 * loader/i386/xnu.c: ...here.
20756
20757 Enable priorities in video drivers.
20758
20759 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20760 (grub_video_adapter): New field prio.
20761 (grub_video_register): Respect prio when inserting.
20762 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20763 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20764 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20765 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20766 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20767 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20768 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20769
20770 Fix SDL driver ID.
20771
20772 * include/grub/video.h (grub_video_driver_id_t): New value
20773 GRUB_VIDEO_DRIVER_SDL.
20774 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20775
7d24e434
CW
207762010-06-17 Colin Watson <cjwatson@ubuntu.com>
20777
20778 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20779 argument to printf.
20780 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20781
c88a83f6
CW
207822010-06-17 Colin Watson <cjwatson@ubuntu.com>
20783
20784 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20785 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20786
094dfb69
CW
207872010-06-17 Colin Watson <cjwatson@ubuntu.com>
20788
20789 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20790 directly, and recommend grub-install instead.
20791 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20792
2164da6b
CW
207932010-06-17 Colin Watson <cjwatson@ubuntu.com>
20794
20795 Fix i386-pc prefix handling with nested partitions (Debian bug
20796 #585068). Note that the case where the core image is booted using
20797 multiboot and relocated from its original location still requires
20798 more work.
20799
20800 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20801 with "(,", fill the boot drive in between those two characters, but
20802 expect that a full partition specification including partition map
20803 names will follow.
20804 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20805 specified, write a prefix without the drive name but including a
20806 full partition specification.
20807
044e2e60
CW
208082010-06-16 Colin Watson <cjwatson@ubuntu.com>
20809
20810 * util/grub-mkconfig.in: Ignore non-option arguments, for
20811 compatibility with older versions (before 2010-06-12) which did the
20812 same. In particular, this makes it easier to ship an update-grub
20813 wrapper which is compatible with that used with GRUB Legacy (Debian
20814 bug #586056).
20815
5591324f
GS
208162010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20817
20818 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20819 for manual page generation.
20820
662e24d5
GS
208212010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20822
20823 * po/POTFILES: Remove leftover commands/handler.c.
20824
8d70754e
CW
208252010-06-14 Colin Watson <cjwatson@ubuntu.com>
20826
20827 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20828 left this script non-functional.
20829
41160e2e
CW
208302010-06-14 Colin Watson <cjwatson@ubuntu.com>
20831
20832 * docs/man/grub-emu.h2m: New file.
20833
b5309cc1
CW
208342010-06-13 Colin Watson <cjwatson@ubuntu.com>
20835
20836 * docs/grub.texi (Commands): Document reduced command set in rescue
20837 mode.
20838 (cpuid): New section.
20839
fcb2d090
GS
208402010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20841
20842 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20843 new partition naming style.
20844 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20845
96e5c556
BC
208462010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20847
20848 Add "-o grub.iso" like cmdline options support.
20849
20850 * util/grub-install.in: Improve cmdline option parsing.
20851 * util/grub-mkconfig.in: Likewise.
20852 * util/grub-mkrescue.in: Likewise.
20853 * util/grub-reboot.in: Likewise.
20854 * util/grub-set-default.in: Likewise.
20855 * util/i386/efi/grub-install.in: Likewise.
20856 * util/ieee1275/grub-install.in: Likewise.
20857 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20858
c16be99b
CW
208592010-06-12 Colin Watson <cjwatson@ubuntu.com>
20860
20861 * .bzrignore: Ignore 41_custom.
20862
ce08a9fb
TS
208632010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20864
20865 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20866
7beac90c
CW
208672010-06-12 Colin Watson <cjwatson@ubuntu.com>
20868
20869 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20870 prototype declarations.
20871
20872 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20873 generating fs, partmap, and video lists.
20874 * include/grub/fs.h (grub_fs_register): Omit prototype if
20875 GRUB_LST_GENERATOR is defined.
20876 * include/grub/partition.h (grub_partition_map_register): Likewise.
20877 * include/grub/video.h (grub_video_register): Likewise.
20878
1c8f0f8d
JM
208792010-06-12 Javier Martín <lordhabbit@gmail.com>
20880
20881 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20882
a6085973
TS
208832010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20884
20885 * util/grub-mkrescue.in: Support --xorriso argument.
20886
25c56d29
VS
208872010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20888
20889 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20890 Suggested by: Thomas Schmitt.
20891
e03e4b24
VS
208922010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20893
20894 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20895 Suggested by: Thomas Schmitt.
20896
57711df6
VS
208972010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20898
20899 custom.cfg support.
20900
20901 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20902 * util/grub.d/41_custom.in: New file.
20903
ee62c427
CW
209042010-06-12 Colin Watson <cjwatson@ubuntu.com>
20905
20906 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20907 been merged back into normal.
20908
283af07a
CW
209092010-06-11 Colin Watson <cjwatson@ubuntu.com>
20910
20911 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20912 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20913
56a0d956
CW
209142010-06-11 Colin Watson <cjwatson@ubuntu.com>
20915
20916 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20917 when generating manual pages.
20918 * docs/man/grub-bin2h.h2m: New file.
20919 * docs/man/grub-editenv.h2m: New file.
20920 * docs/man/grub-fstest.h2m: New file.
20921 * docs/man/grub-install.h2m: New file.
20922 * docs/man/grub-macho2img.h2m: New file.
20923 * docs/man/grub-mkconfig.h2m: New file.
20924 * docs/man/grub-mkdevicemap.h2m: New file.
20925 * docs/man/grub-mkfont.h2m: New file.
20926 * docs/man/grub-mkimage.h2m: New file.
20927 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20928 * docs/man/grub-mkrelpath.h2m: New file.
20929 * docs/man/grub-mkrescue.h2m: New file.
20930 * docs/man/grub-ofpathname.h2m: New file.
20931 * docs/man/grub-pe2elf.h2m: New file.
20932 * docs/man/grub-probe.h2m: New file.
20933 * docs/man/grub-reboot.h2m: New file.
20934 * docs/man/grub-script-check.h2m: New file.
20935 * docs/man/grub-set-default.h2m: New file.
20936 * docs/man/grub-setup.h2m: New file.
20937
3a37e322
VS
209382010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20939
20940 Use FOR_* macros instead of *_iterate whenever possible.
20941
20942 * commands/handler.c: Removed.
20943 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20944 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20945 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20946 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20947 (grub_probe_SOURCES): Remove kern/parser.c.
20948 (util/grub-script-check.c_DEPENDENCIES): Removed.
20949 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20950 and grub_script_check_init.c.
20951 (grub_script_check_init.lst): Removed.
20952 (grub_script_check_init.h): Likewise.
20953 (grub_script_check_init.c): Likewise.
20954 (pkglib_MODULES): Remove handler.mod and sh.mod.
20955 (handler_mod_SOURCES): Removed.
20956 (handler_mod_CFLAGS): Likewise.
20957 (handler_mod_LDFLAGS): Likewise.
20958 (normal_mod_SOURCES): Remove normal/handler.c.
20959 Add script/main.c, script/script.c, script/execute.c,
20960 script/function.c, script/lexer.c, grub_script.tab.c
20961 and grub_script.yy.c.
20962 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20963 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20964 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20965 (grub_setup_SOURCES): Remove kern/parser.c.
20966 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20967 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20968 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20969 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20970 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20971 (grub_setup_SOURCES): Remove kern/parser.c.
20972 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20973 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20974 * include/grub/command.h (grub_command_iterate): Removed.
20975 (FOR_COMMANDS): New macro.
20976 * include/grub/dl.h (grub_dl): New member next.
20977 (grub_dl_iterate): Removed.
20978 (grub_dl_head): New variable declaration.
20979 (FOR_DL_MODULES): New macro.
20980 * include/grub/fs.h: Include list.h.
20981 (grub_fs): Make next first element.
20982 (grub_fs_list): New variable declaration.
20983 (grub_fs_register): Make inline.
20984 (grub_fs_unregister): Likewise.
20985 (grub_fs_iterate): Removed.
20986 (FOR_FILESYSTEMS): New macro.
20987 * include/grub/handler.h: Removed.
20988 * include/grub/list.h (grub_list_hook_t): Removed.
20989 (grub_list_test_t): Likewise.
20990 (grub_list_pop): Likewise.
20991 (grub_list_iterate): Likewise.
20992 (grub_list_insert): Likewise.
20993 (FOR_LIST_ELEMENTS): New macro.
20994 * include/grub/parser.h (grub_parser_class): Removed.
20995 (grub_parser_register): Likewise.
20996 (grub_parser_unregister): Likewise.
20997 (grub_parser_get_current): Likewise.
20998 (grub_parser_set_current): Likewise.
20999 (grub_register_rescue_parser): Likewise.
21000 (grub_rescue_parse_line): New function.
21001 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
21002 * include/grub/script_sh.h (grub_script_function_list): New variable
21003 declaration.
21004 (FOR_SCRIPT_FUNCTIONS): New macro.
21005 (grub_script_function_iterate): Removed.
21006 (grub_normal_parse_line): New prototype.
21007 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
21008 (FOR_DISABLED_TERM_INPUTS): Likewise.
21009 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
21010 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
21011 * include/grub/video.h (grub_video_adapter): Move 'next' to first
21012 element.
21013 (grub_video_register): Inline.
21014 (grub_video_unregister): Likewise.
21015 (grub_video_adapter_list): New variable declaration.
21016 (grub_video_iterate): Removed.
21017 (FOR_VIDEO_ADAPTERS): New macro.
21018 * kern/dl.c (grub_dl_list): Removed. All users updated.
21019 (grub_dl_iterate): Removed.
21020 * kern/fs.c (grub_fs_list): Make global.
21021 (grub_fs_register): Removed.
21022 (grub_fs_unregister): Likewise.
21023 (grub_fs_iterate): Likewise.
21024 * kern/handler.c: Removed.
21025 * kern/list.c (grub_list_pop): Removed.
21026 (grub_list_iterate): Likewise.
21027 (grub_list_insert): Likewise.
21028 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
21029 (grub_prio_list_insert): Don't use grub_list_insert.
21030 * kern/main.c (grub_register_rescue_parser): Don't call
21031 grub_register_rescue_parser.
21032 * kern/parser.c (grub_parser_class): Removed.
21033 (grub_parser_execute): Use grub_rescue_parse_line.
21034 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
21035 (grub_rescue_parser): Removed.
21036 (grub_register_rescue_parser): Likewise.
21037 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
21038 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
21039 (grub_auth_check_authentication): Likewise.
21040 * normal/completion.c (iterate_command): Removed.
21041 (grub_normal_do_completion): Use FOR_COMMANDS.
21042 * normal/handler.c: Removed.
21043 * normal/main.c (read_config_file): Remove parser changing.
21044 (grub_normal_execute): Don't call read_handler_list.
21045 (grub_normal_read_line_real): Statically allocate prompt.
21046 (grub_cmdline_run): Use grub_normal_parse_line.
21047 (GRUB_MOD_FINI): Don't call free_handler_list.
21048 * normal/menu_entry.c (run): Likewise.
21049 * script/function.c (grub_script_function_list): Make global.
21050 (grub_script_function_iterate): Removed.
21051 * script/main.c (grub_normal_parse_line): Make global.
21052 (grub_sh_parser): Removed.
21053 (GRUB_MOD_INIT): Likewise.
21054 (GRUB_MOD_FINI): Likewise.
21055 * tests/lib/functional_test.c (grub_functional_test): Use
21056 FOR_LIST_ELEMENTS.
21057 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
21058 (grub_test_run): Use FOR_LIST_ELEMENTS.
21059 * tests/lib/unit_test.c (main): Likewise.
21060 * util/deviceiter.c (grub_util_iterate_devices): Don't use
21061 grub_list_pop.
21062 * util/grub-fstest.c (grub_term_input_class): Removed.
21063 (grub_term_output_class): Likewise.
21064 * util/grub-probe.c: Likewise.
21065 * util/i386/pc/grub-setup.c: Likewise.
21066 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21067 * util/grub-script-check.c (main): Don't call grub_init_all and
21068 grub_fini_all.
21069 * video/video.c (grub_video_adapter_list): Make global.
21070 (grub_video_register): Removed.
21071 (grub_video_unregister): Likewise.
21072 (grub_video_iterate): Likewise.
21073
6289c3a7
VS
210742010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
21075
21076 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
21077 reported by Henrique Ferreiro.
21078
91460247
RM
210792010-06-09 Robert Millan <rmh@gnu.org>
21080
21081 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
21082 ones, when both are available.
21083
0ea7c4f9
GS
210842010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21085
21086 Make --version uniform and avoid hard-coded program name.
21087
21088 * util/grub-mkimage.c (main): Use `program_name' instead of
21089 hard-coded string.
21090 * util/i386/pc/grub-setup.c (main): Likewise.
21091 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
21092 * util/grub-install.in: Save the basename of $0 in $self, and use the
21093 latter in informational messages. Use the same format for --version
21094 as the binary programs.
21095 * util/grub-mkconfig.in: Likewise.
21096 * util/grub-mkrescue.in: Likewise.
21097 * util/grub-reboot.in: Likewise.
21098 * util/grub-set-default.in: Likewise.
21099 * util/i386/efi/grub-install.in: Likewise.
21100 * util/ieee1275/grub-install.in: Likewise.
21101 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21102
e8a6f3b6
GS
211032010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21104
21105 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
21106 embedding area. Use <= instead of == when checking for non-emptiness.
21107
f4d095d7
GS
211082010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21109
21110 * configure.ac: Add `.' to the directories searched for unifont.
21111
50e532ca
CW
211122010-06-08 Colin Watson <cjwatson@ubuntu.com>
21113
21114 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
21115 grub_script.yy.h.
21116
d39f3dec
CW
211172010-06-08 Colin Watson <cjwatson@ubuntu.com>
21118
21119 * docs/grub.texi (History): Expand to cover GRUB 2.
21120 (Serial terminal): Refer to `terminal_input' and `terminal_output'
21121 commands, not `terminal'.
21122 (serial): Likewise.
21123 (terminal_input): New section.
21124 (terminal_output): New section.
21125 (uppermem): New section (stub).
21126 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
21127
6ef0ddb4
CW
211282010-06-08 Colin Watson <cjwatson@ubuntu.com>
21129
21130 * docs/grub.texi (Security): Menu entries are unrestricted by
21131 default, not restricted to superusers as I had previously thought.
21132 Reword to account for this.
21133
e0f4c438
CW
211342010-06-07 Colin Watson <cjwatson@ubuntu.com>
21135
21136 * kern/emu/misc.c (device_mapper_null_log): New function.
21137 (grub_device_mapper_supported): New function.
21138 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
21139 prototype.
21140 * kern/emu/hostdisk.c (find_partition_start): Check whether
21141 device-mapper is supported before trying to use it.
21142 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
21143
da908200
CW
211442010-06-07 Colin Watson <cjwatson@ubuntu.com>
21145
21146 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
21147 (File name syntax): Likewise.
21148 (help): --all is no longer supported in GRUB 2. Be more precise
21149 about pattern matching.
21150
fb55c3ac
CW
211512010-06-07 Colin Watson <cjwatson@ubuntu.com>
21152
21153 * normal/completion.c (grub_normal_do_completion): When completing
21154 arguments to "set" and the current word contains an equals sign,
21155 skip to after the equals sign before starting completion.
21156
258c2573
CW
211572010-06-07 Colin Watson <cjwatson@ubuntu.com>
21158
21159 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
21160
ee75515e
CW
211612010-06-07 Colin Watson <cjwatson@ubuntu.com>
21162
21163 * docs/grub.texi (Network): New section.
21164 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
21165 `(nd)' as in GRUB Legacy.
21166 (pxe_unload): New section.
21167
a6a700aa
CW
211682010-06-07 Colin Watson <cjwatson@ubuntu.com>
21169
21170 * docs/grub.texi (Troubleshooting): `echo' is not usually available
21171 in the rescue shell, so recommend using `set' instead. Thanks,
21172 Jordan Uggla.
21173
4003dd38
CW
211742010-06-07 Colin Watson <cjwatson@ubuntu.com>
21175
21176 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
21177 (password): New section.
21178 (password_pbkdf2): New section.
21179 (search): New section.
21180 (Security): New section.
21181 (Troubleshooting): New section, currently very incomplete.
21182 (Invoking grub-mkpasswd-pbkdf2): New section.
21183 (Internals): New section, currently very incomplete.
21184
e1cbcc40
CW
211852010-06-07 Colin Watson <cjwatson@ubuntu.com>
21186
21187 * util/grub.d/00_header.in: Add some more quoting (of
21188 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
21189 work again.
21190 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
21191
db8fa1ad
CW
211922010-06-07 Colin Watson <cjwatson@ubuntu.com>
21193
21194 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
21195 to `count', fixing variable shadowing that broke the -c option.
21196
211972010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
21198
21199 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
21200 in case they contain spaces.
21201
f28a9212
CW
212022010-06-04 Colin Watson <cjwatson@ubuntu.com>
21203
21204 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
21205 "part_" to partmap module names, in line with grub-install.
21206 Reported by: Jindřich Makovička (Debian bug #584426).
21207
9cdfe32f
CW
212082010-06-04 Colin Watson <cjwatson@ubuntu.com>
21209
21210 * util/grub-mkimage.c: Make target-related error messages slightly
21211 more helpful; -O talks about "format". Explicitly point to the use
21212 of -O if no target is specified.
21213 Reported by: Didier Raboud (Debian bug #584415).
21214
795b593a
CW
212152010-06-03 Colin Watson <cjwatson@ubuntu.com>
21216
21217 * INSTALL: Document several build requirements for optional features
21218 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
21219
9d9b5833
GS
212202010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
21221
21222 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
21223 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
21224 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
21225
0819fec8
CW
212262010-06-02 Colin Watson <cjwatson@ubuntu.com>
21227
21228 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
21229 Thanks to Jordan Uggla for spotting this.
21230
49396b4f
VS
212312010-06-02 Aleš Nesrsta <starous@volny.cz>
21232
21233 Finally make USB usable.
21234
21235 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
21236 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
21237 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
21238 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
21239 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
21240 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
21241 (GRUB_OHCI_FSMPS): Likewise.
21242 (GRUB_OHCI_PERIODIC_START): Likewise.
21243 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
21244 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
21245 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
21246 (GRUB_OHCI_SET_PORT_RESET): Likewise.
21247 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
21248 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
21249 (grub_ohci_transaction): Likewise.
21250 (grub_ohci_transfer): Improve condition detection algorithms.
21251 Handle toggle property. Program the transactions correctly.
21252 Improve error handling. Various important fixups.
21253 (grub_ohci_portstatus): Put register writes in right order.
21254 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
21255 (grub_uhci_transfer): Don't show "failed" message on success.
21256 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
21257 array.
21258 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
21259 determine its size.
21260 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
21261 before initialization is completed. Use IN direction for empty
21262 transfers. Use last_trans and compute toggle.
21263 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
21264 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
21265 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
21266 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
21267 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
21268 (grub_usb_device): Increase toggle to 256.
21269 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
21270 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
21271 GRUB_USBMS_SUBCLASS_SFF8070.
21272 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
21273 (grub_scsi_inquiry): New member page and alloc_length.
21274 (grub_scsi_request_sense): New structure.
21275 (grub_scsi_request_sense_data): Likewise.
21276 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
21277 control.
21278 * disk/scsi.c (grub_scsi_request_sense): New function.
21279 (grub_scsi_test_unit_ready): Likewise.
21280 (grub_scsi_inquiry): Fill new fields.
21281 (grub_scsi_read_capacity): Likewise.
21282 (grub_scsi_read10): Add request sense at the end.
21283 (grub_scsi_read12): Likewise.
21284 (grub_scsi_write10): Likewise.
21285 (grub_scsi_write12): Likewise.
21286 (grub_scsi_open): Add Test Unit Ready.
21287 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
21288 Support additional subclasses. Con't clear halt yet. Activate the
21289 proper config. Calculate LUNs correctly.
21290 (grub_usbms_transfer): Various important fixups.
21291
212922010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21293
21294 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
21295 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
21296 (grub_ohci_fini_hw): New function.
21297 (grub_ohci_restore_hw): Likewise.
21298 (GRUB_MOD_INIT(ohci)): Register preboot hook.
21299 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
21300 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
21301
213022010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21303
21304 Dedicated DMA allocations.
21305
21306 * bus/pci.c (grub_memalign_dma32): New function
21307 (grub_dma_free): Likewise.
21308 (grub_dma_get_virt): Likewise.
21309 (grub_dma_get_phys): Likewise.
21310 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
21311 (grub_ohci_pci_iter): Use dma32_alloc.
21312 (grub_ohci_transfer): Likewise.
21313 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21314 (grub_usb_bulk_readwrite): Likewise.
21315 * include/grub/pci.h: Add declarations.
21316
213172010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21318
21319 CS5536 support.
21320
21321 * bus/cs5536.c: New file.
21322 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21323 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21324 (cs5536_mod_SOURCES): New variable.
21325 (cs5536_mod_CFLAGS): Likewise.
21326 (cs5536_mod_LDFLAGS): Likewise.
21327 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21328 machine/pci.h.
21329 (kernel_img_SOURCES): Add bus/cs5536.c.
21330 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21331 usb_keyboard.mod.
21332 (usb_mod_SOURCES): New variable.
21333 (usb_mod_CFLAGS): New variable.
21334 (usb_mod_LDFLAGS): New variable.
21335 (usbtest_mod_SOURCES): New variable.
21336 (usbtest_mod_CFLAGS): New variable.
21337 (usbtest_mod_LDFLAGS): New variable.
21338 (ohci_mod_SOURCES): New variable.
21339 (ohci_mod_CFLAGS): New variable.
21340 (ohci_mod_LDFLAGS): New variable.
21341 (usbms_mod_SOURCES): New variable.
21342 (usbms_mod_CFLAGS): New variable.
21343 (usbms_mod_LDFLAGS): New variable.
21344 (usb_keyboard_mod_SOURCES): New variable.
21345 (usb_keyboard_mod_CFLAGS): New variable.
21346 (usb_keyboard_mod_LDFLAGS): New variable.
21347 * include/grub/smbus.h: New file.
21348 * include/grub/cs5536.h: New file.
21349
0b35b2a9
CW
213502010-06-02 Colin Watson <cjwatson@ubuntu.com>
21351
21352 * util/grub.d/00_header.in: Add safety check to make sure that
21353 ${locale_dir} exists before trying to probe it.
21354
ca0afd5b
CW
213552010-06-02 Colin Watson <cjwatson@ubuntu.com>
21356
21357 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21358 per the GNU Coding Standards; this is now too obscure to be worth
21359 documenting.
21360 (QNX): Likewise.
21361 (chainloader): Remove cross-reference to `SCO UnixWare'.
21362
1c41aa78
CW
213632010-06-02 Colin Watson <cjwatson@ubuntu.com>
21364
21365 * docs/grub.texi (Chain-loading): New section.
21366 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21367 adjusted for GRUB 2.
21368 (SCO UnixWare): Likewise.
21369 (QNX): Likewise.
21370 (chainloader): Add reference to `Block list syntax'.
21371 (drivemap): New section.
21372 (parttool): New section.
21373
bb8ea0f5
CW
213742010-06-02 Colin Watson <cjwatson@ubuntu.com>
21375
21376 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21377 the grub shell'.
21378 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21379 (Installing GRUB using grub-install): Remove reference to the grub
21380 shell; mention `grub-mkimage' and `grub-setup' instead.
21381 (Invoking grub-install): Likewise.
21382 (Interface): Add reference to `Menu entry editor'.
21383 (serial): Remove `--device' option.
21384
288dd6ed
CW
213852010-06-02 Colin Watson <cjwatson@ubuntu.com>
21386
21387 * docs/grub.texi (Configuration): New section, documenting
21388 configuration file generation using grub-mkconfig. I've left a slot
21389 for documenting the full shell scripting format but have not yet
21390 started on writing that up.
21391 (Invoking grub-mkconfig): New section.
21392
34c9f0e9
CW
213932010-06-02 Colin Watson <cjwatson@ubuntu.com>
21394
21395 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21396 (GNU GRUB manual): Likewise.
21397 (General commands): Update description of `terminfo' for GRUB 2.
21398
9121567e
CW
213992010-06-02 Colin Watson <cjwatson@ubuntu.com>
21400
21401 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21402 (GRUB_MOD_INIT): Fix capitalisation.
21403 * docs/grub.texi (Command-line and menu entry commands): Document
21404 gettext and gptsync commands.
21405
ab631611
CW
214062010-06-02 Colin Watson <cjwatson@ubuntu.com>
21407
21408 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21409 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21410
bde4a9ac
CW
214112010-06-01 Colin Watson <cjwatson@ubuntu.com>
21412
21413 Add btrfs probing support, currently only in the single-device case.
21414
21415 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21416 function.
21417 (grub_guess_root_device): Call find_root_device_from_mountinfo
21418 before looking in /dev.
21419
b1d17e10
VS
214202010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21421
21422 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21423 GRUB_DISK_SIZE_UNKNOWN.
21424 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21425
dfbfe004
JS
214262010-05-31 Jiro SEKIBA <jir@unicus.jp>
21427
21428 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21429 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21430 corrupted or not synced properly.
21431
c2ffc8e9
VS
214322010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21433
21434 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21435 Reported by: Seth Goldberg.
21436
56293166
VS
214372010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21438
21439 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21440 addition of dest.
21441 Reported by: Seth Goldberg.
21442
7620e7de
VS
214432010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21444
21445 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21446 Reported by: Seth Goldberg.
21447
c837af3f
VS
214482010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21449
21450 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21451 64-bit address as signed on MIPS.
21452
c7c75cf4
CW
214532010-05-28 Colin Watson <cjwatson@ubuntu.com>
21454
21455 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21456 to the empty string.
21457
fa4b8490
BC
214582010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21459
21460 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21461
21462 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21463 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21464 * kern/misc.c (__enable_execute_stack): Disable on
21465 GRUB_MACHINE_EMU.
21466
a33075b9
CW
214672010-05-28 Colin Watson <cjwatson@ubuntu.com>
21468
21469 Make grub-probe work with symbolic links under /dev/mapper as well
21470 as with real block devices. The Linux world seems to be (at best)
21471 in transition here, and GRUB shouldn't get caught in the middle.
21472
21473 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21474 /dev/mapper.
21475
d8708134
CW
214762010-05-27 Colin Watson <cjwatson@ubuntu.com>
21477
21478 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21479 input files (in which case exit zero).
21480
db2102a0
CW
214812010-05-27 Colin Watson <cjwatson@ubuntu.com>
21482
21483 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21484 return NULL for various reasons even if it has a maximum-length
21485 buffer: for example, there might be a symlink loop, or the path
21486 might exceed PATH_MAX. If this happens, return NULL.
21487
5fdba519
RM
214882010-05-27 Robert Millan <rmh@gnu.org>
21489
21490 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21491 partmap module to handle cross-partmap setups.
21492 Reported by Orestes Mas. Gràcies!
21493
d1d368e4
CW
214942010-05-27 Colin Watson <cjwatson@ubuntu.com>
21495
21496 * util/grub-mkrescue.in: Initialise override_dir rather than
21497 assuming that it's unset or empty in the environment.
21498
95ac3c73
GS
214992010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21500
21501 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21502 variable index into p_index to suppress a warning with -Wshadow.
21503
7d8c0213
BC
215042010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21505
21506 * INSTALL: Added flex >= 2.5.35 requirement.
21507
db4d5813
VS
215082010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21509
21510 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21511
f24f4300
VS
215122010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21513
21514 cmostest support.
21515
21516 * commands/i386/cmostest.c: New file.
21517 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21518 (cmostest_mod_SOURCES): New variable.
21519 (cmostest_mod_CFLAGS): Likewise.
21520 (cmostest_mod_LDFLAGS): Likewise.
21521 * conf/i386-pc.rmk: Likewise.
21522 * docs/grub.texi (Vendor power-on keys): New section.
21523 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21524 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21525 and GRUB_BUTTON_CMOS_ADDRESS.
21526 * util/grub.d/00_header.in: Handle powering-on by separate button.
21527
ad603f61
VS
215282010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21529
21530 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21531 Removed drawing_scrollbar argument. All users updated
21532 Fixes #29792.
21533 Reported by Jo Shields
21534
3ecb080a
VS
215352010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21536
21537 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21538 buffer since gfxterm handles double repaint.
21539
5f2316c1
VS
215402010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21541
21542 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21543 * term/gfxterm.c (real_scroll): Likewise.
21544
9a25f885
VS
215452010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21546
21547 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21548 before calling BIOS.
21549
39fbb79a
VS
215502010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21551
21552 * include/grub/i18n.h: Always enable grub_gettext.
21553
228cfa97
VS
215542010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21555
21556 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21557 partition naming style.
21558
21717c8f
CW
215592010-05-21 Colin Watson <cjwatson@ubuntu.com>
21560
21561 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21562 not the first option.
21563
c0f48e65
CW
215642010-05-20 Colin Watson <cjwatson@ubuntu.com>
21565
21566 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21567
96779aec
CW
215682010-05-20 Colin Watson <cjwatson@ubuntu.com>
21569
21570 * util/misc.c: Move inclusion of <limits.h> to ...
21571 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21572
fa9d256e
GS
215732010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21574
21575 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21576 Fix merge error in NetBSD code.
21577 (find_partition_start) [__NetBSD__]: Likewise.
21578
123b7a85
BC
215792010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21580
21581 Fix grub-mkrescue usage unit testing.
21582
21583 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21584
74276c0d
CF
215852010-05-18 Christian Franke <franke@computer.org>
21586
21587 * util/grub.d/10_windows.in: Use path names instead of
21588 drive letters to prevent warning from Cygwin 1.7.
21589 Add drivemap command to menuentry if needed.
21590
c4f7b523
ST
215912010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21592
21593 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21594 gnumach and gnumach.gz.
21595
95b97950
VS
215962010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21597
21598 * include/grub/i18n.h (gettext): Inline instead of using #define.
21599 (grub_gettext): Likewise.
21600 (_): Likewise.
21601
01b8d2d7
VS
216022010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21603
21604 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21605 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21606 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21607 (main): Add a slash after pkglibdirroot.
21608
654e1d1e
VS
216092010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21610
21611 * util/grub-install.in: Add missing "in" keyword.
21612
26966aeb
VS
216132010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21614
21615 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21616 Reported by: Seth Goldberg.
21617
75006747
VS
216182010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21619
21620 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21621
74cbf5bd
CW
216222010-05-18 Colin Watson <cjwatson@ubuntu.com>
21623
21624 * configure.ac: Check for Linux device-mapper support.
21625
21626 * util/hostdisk.c (device_is_mapped): New function.
21627 (find_partition_start): New function, partly broken out from
21628 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21629 device-mapper support added.
21630 (linux_find_partition): Use find_partition_start.
21631 (convert_system_partition_to_system_disk): Add `st' argument.
21632 Support Linux /dev/mapper/* devices if device-mapper support is
21633 available; only DM-RAID devices are understood at present.
21634 (find_system_device): Add `st' argument. Pass it to
21635 convert_system_partition_to_system_disk.
21636 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21637 find_system_device and convert_system_partition_to_system_disk. Use
21638 find_partition_start.
21639
21640 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21641 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21642 * util/deviceiter.c [__linux__]: Define MINOR.
21643 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21644 * util/mkdevicemap.c (grub_putchar): New function.
21645 (grub_getkey): New function.
21646 (grub_refresh): New function.
21647 (main): Set debug=all if -v -v is used.
21648
355b51e9
CW
216492010-05-18 Colin Watson <cjwatson@ubuntu.com>
21650
21651 Fix build with non-GNU libcs.
21652
21653 * util/misc.c (canonicalize_file_name): Move to ...
21654 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21655 grub_make_system_path_relative_to_its_root.
21656
7fb5c25f
CW
216572010-05-18 Colin Watson <cjwatson@ubuntu.com>
21658
21659 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21660 we handle finding grub-mkimage. Default to finding grub-mkimage in
21661 ${bindir} with program_transform_name applied, and provide a
21662 --grub-mkimage option to override this.
21663
1d3293d6
VS
216642010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21665
21666 Remove grub-mkisofs.
21667
21668 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21669 (grub_mkisofs_SOURCES): Removed.
21670 (grub_mkisofs_CFLAGS): Removed.
21671 * util/mkisofs/defaults.h: Removed.
21672 * util/mkisofs/eltorito.c: Likewise.
21673 * util/mkisofs/exclude.h: Likewise.
21674 * util/mkisofs/hash.c: Likewise.
21675 * util/mkisofs/include/: Likewise.
21676 * util/mkisofs/include/fctldefs.h: Likewise.
21677 * util/mkisofs/include/mconfig.h: Likewise.
21678 * util/mkisofs/include/prototyp.h: Likewise.
21679 * util/mkisofs/include/statdefs.h: Likewise.
21680 * util/mkisofs/iso9660.h: Likewise.
21681 * util/mkisofs/joliet.c: Likewise.
21682 * util/mkisofs/match.c: Likewise.
21683 * util/mkisofs/match.h: Likewise.
21684 * util/mkisofs/mkisofs.c: Likewise.
21685 * util/mkisofs/mkisofs.h: Likewise.
21686 * util/mkisofs/msdos_partition.h: Likewise.
21687 * util/mkisofs/multi.c: Likewise.
21688 * util/mkisofs/name.c: Likewise.
21689 * util/mkisofs/rock.c: Likewise.
21690 * util/mkisofs/tree.c: Likewise.
21691 * util/mkisofs/write.c: Likewise.
21692
5dde9afe
VS
216932010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21694
21695 Unify grub-mkimage accross platforms.
21696
21697 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21698 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21699 (grub_mkelfimage_SOURCES): Removed.
21700 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21701 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21702 (bin_UTILITIES): Add grub-mkimage.
21703 (grub_mkimage_SOURCES): New variable.
21704 (kernel_img_HEADERS): Remove machine/kernel.h.
21705 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21706 (pkglib_PROGRAMS): Add kernel.img.
21707 (kernel_img_HEADERS): Add machine/kernel.h.
21708 (kernel_img_FORMAT): Removed.
21709 (bin_UTILITIES): Remove grub-mkimage.
21710 (grub_mkimage_SOURCES): Removed.
21711 (grub_mkimage_CFLAGS): Likewise.
21712 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21713 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21714 (pkglib_PROGRAMS): Add kernel.img.
21715 (bin_UTILITIES): Remove grub-mkimage.
21716 (grub_mkimage_SOURCES): Removed.
21717 (grub_mkimage_CFLAGS): Likewise.
21718 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21719 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21720 (pkglib_PROGRAMS): Add kernel.img.
21721 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21722 (pkglib_PROGRAMS): Add kernel.img.
21723 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21724 (grub_mkimage_SOURCES): Removed.
21725 (grub_mkimage_CFLAGS): Likewise.
21726 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21727 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21728 (pkglib_PROGRAMS): Add kernel.img.
21729 (bin_UTILITIES): Remove grub-mkimage.
21730 (grub_mkimage_SOURCES): Removed.
21731 (grub_mkimage_CFLAGS): Likewise.
21732 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21733 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21734 (grub_mkimage_SOURCES): Removed.
21735 (grub_mkimage_CFLAGS): Likewise.
21736 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21737 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21738 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21739 (grub_pe32_optional_header): ... this.
21740 (grub_pe64_optional_header): ... and this. All users updated.
21741 (GRUB_PE32_PE32_MAGIC): Split into ..
21742 (GRUB_PE32_PE32_MAGIC): .. this.
21743 (GRUB_PE32_PE64_MAGIC): .. and this.
21744 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21745 * include/grub/elf.h (PT_GNU_STACK): New definition.
21746 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21747 * include/grub/i386/efi/kernel.h: Likewise.
21748 * include/grub/i386/kernel.h: Likewise.
21749 * include/grub/i386/pc/kernel.h: Likewise.
21750 * include/grub/i386/qemu/boot.h: Likewise.
21751 * include/grub/mips/kernel.h: Likewise.
21752 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21753 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21754 * include/grub/powerpc/kernel.h: Likewise.
21755 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21756 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21757 * include/grub/sparc64/kernel.h: Likewise.
21758 * include/grub/x86_64/efi/kernel.h: Likewise.
21759 * include/grub/x86_64/kernel.h: Likewise.
21760 * include/grub/offsets.h: New file.
21761 * include/grub/kernel.h (grub_module_info): Split into ...
21762 (grub_module_info32): ... this.
21763 (grub_module_info64): ... and this.
21764 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21765 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21766 (grub_boot_blocklist): Moved from here ...
21767 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21768 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21769 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21770 * include/grub/types.h (grub_target_to_host16): Removed.
21771 (grub_target_to_host32): Likewise.
21772 (grub_target_to_host64): Likewise.
21773 (grub_host_to_target16): Likewise.
21774 (grub_host_to_target32): Likewise.
21775 (grub_host_to_target64): Likewise.
21776 (grub_host_to_target_addr): Likewise.
21777
21778 Support grub-mkrescue for efi, coreboot and qemu.
21779
21780 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21781 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21782 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21783 * util/grub-mkrawimage.c: Moved from here ...
21784 * util/grub-mkimage.c: ... here. All users updated.
21785 (ALIGN_ADDR): Use image_target.
21786 (TARGET_NO_FIELD): New const.
21787 (image_target_desc): New type.
21788 (image_targets): New array.
21789 (grub_target_to_host64): Use image_target.
21790 (grub_target_to_host32): Likewise.
21791 (grub_target_to_host16): Likewise.
21792 (grub_host_to_target64): Likewise.
21793 (grub_host_to_target32): Likewise.
21794 (grub_host_to_target16): Likewise.
21795 (grub_host_to_target_addr): Likewise.
21796 (generate_image): Handle multiimage.
21797 (main): Require -O parameter. All users updated.
21798 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21799 util/efi/grub-mkimage.c
21800 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21801 New option --rom-directory.
21802 Use xorriso.
21803 * util/i386/efi/grub-mkimage.c: Removed.
21804 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21805 (grub_target_to_host32): Likewise.
21806 (grub_target_to_host64): Likewise.
21807 (grub_host_to_target16): Likewise.
21808 (grub_host_to_target32): Likewise.
21809 (grub_host_to_target64): Likewise.
21810 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21811 (grub_target_to_host32): Likewise.
21812 (grub_target_to_host64): Likewise.
21813 (grub_host_to_target16): Likewise.
21814 (grub_host_to_target32): Likewise.
21815 (grub_host_to_target64): Likewise.
21816
f4fc97d0
BC
218172010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21818
21819 Source tree is reorganized for emu build.
21820
21821 * include/grub/util/console.h: Move from here...
21822 * include/grub/emu/console.h: ...to here.
21823 * include/grub/util/getroot.h: Move from here...
21824 * include/grub/emu/getroot.h: ...to here.
21825 * include/grub/util/hostdisk.h: Move from here...
21826 * include/grub/emu/hostdisk.h: ...to here.
21827 * util/console.c: Move from here...
21828 * kern/emu/console.c: ...to here.
21829 * util/getroot.c: Move from here...
21830 * kern/emu/getroot.c: ...to here.
21831 * util/grub-emu.c: Move from here...
21832 * kern/emu/main.c: ...to here.
21833 * util/hostdisk.c: Move from here...
21834 * kern/emu/hostdisk.c: ...to here.
21835 * util/hostfs.c: Move from here...
21836 * kern/emu/hostfs.c: ...to here.
21837 * util/mm.c: Move from here...
21838 * kern/emu/mm.c: ...to here.
21839 * util/pci.c: Move from here...
21840 * bus/emu/pci.c: ...to here.
21841 * util/sdl.c: Move from here...
21842 * video/emu/sdl.c: ...to here.
21843 * util/time.c: Move from here...
21844 * kern/emu/time.c: ...to here.
21845 * util/usb.c: Move from here...
21846 * bus/usb/emu/usb.c: ...to here.
21847
21848 * include/grub/emu/misc.h: New header for grub-emu functions.
21849 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21850
21851 * conf/any-emu.rmk: Rule updates for above renames.
21852 * conf/common.rmk: Likewise.
21853 * conf/i386-pc.rmk: Likewise.
21854 * conf/i386-qemu.rmk: Likewise.
21855 * conf/mips.rmk: Likewise.
21856 * conf/sparc64-ieee1275.rmk: Likewise.
21857 * conf/x86-efi.rmk: Likewise.
21858
21859 * disk/lvm.h: #include updates for above renames.
21860 * util/grub-mkrelpath.c: Likewise.
21861 * util/grub-probe.c: Likewise.
21862 * util/i386/pc/grub-setup.c: Likewise.
21863 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21864 * kern/emu/console.c: Likewise.
21865 * kern/emu/getroot.c: Likewise.
21866 * kern/emu/hostdisk.c: Likewise.
21867 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21868
21869 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21870 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21871 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21872 * util/misc.c: Remove grub-emu functions.
21873
cced9145
VS
218742010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21875
21876 Fix gfxmenu crash.
21877 Reported by: Thorsten Grützmacher.
21878
21879 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21880 timeout hook.
21881 (circprog_set_property): Register and unregister timeout hook.
21882 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21883 (label_destroy): Free template. and unregister hook.
21884 (label_set_state): New function.
21885 (label_set_property): Handle templates and hooks.
21886 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21887 timeout hook.
21888 (progress_bar_set_property): Register and unregister timeout hook.
21889 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21890 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21891 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21892 (update_timeout_visit): Removed.
21893 (update_timeouts): New function.
21894 (redraw_timeouts): Likewise.
21895 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21896 (grub_gfxmenu_clear_timeout): Likewise.
21897 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21898 (grub_gfxmenu_timeout_notify): Likewise.
21899 (grub_gfxmenu_timeout_notifications): New external variable.
21900 (grub_gfxmenu_timeout_register): New function.
21901 (grub_gfxmenu_timeout_unregister): Likewise.
21902
c6e5caab
VS
219032010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21904
21905 Transform (broken) vga terminal into (working) vga video driver.
21906
21907 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21908 video/i386/pc/vga.c.
21909 * include/grub/video.h (grub_video_driver_id):
21910 Add GRUB_VIDEO_DRIVER_VGA.
21911 * term/i386/pc/vga.c: Renamed to ...
21912 * video/i386/pc/vga.c: ...this
21913 (DEBUG_VGA): Removed.
21914 (CHAR_WIDTH): Likewise.
21915 (CHAR_HEIGHT): Likewise.
21916 (TEXT_WIDTH): Likewise.
21917 (TEXT_HEIGHT): Likewise.
21918 (DEFAULT_FG_COLOR): Likewise.
21919 (DEFAULT_BG_COLOR): Likewise.
21920 (colored_char): Likewise.
21921 (xpos): Likewise.
21922 (ypos): Likewise.
21923 (cursor_state): Likewise.
21924 (fg_color): Likewise.
21925 (bg_color): Likewise.
21926 (text_buf): Likewise.
21927 (page): Likewise.
21928 (font): Likewise.
21929 (framebuffer): New variable.
21930 (set_read_map): Disabled.
21931 (setup): New variable.
21932 (is_target): Likewise.
21933 (grub_vga_mod_init): Likewise.
21934 (grub_vga_mod_fini): Likewise.
21935 (check_vga_mem): Likewise.
21936 (write_char): Likewise.
21937 (write_cursor): Likewise.
21938 (scroll_up): Likewise.
21939 (grub_vga_putchar): Likewise.
21940 (grub_vga_getcharwidth): Likewise.
21941 (grub_vga_getwh): Likewise.
21942 (grub_vga_getxy): Likewise.
21943 (grub_vga_gotoxy): Likewise.
21944 (grub_vga_cls): Likewise.
21945 (grub_vga_setcolorstate): Likewise.
21946 (grub_vga_setcursor): Likewise.
21947 (grub_video_vga_init): New function.
21948 (grub_video_vga_setup): Likewise.
21949 (grub_video_vga_fini): Likewise.
21950 (update_target): Likewise.
21951 (grub_video_vga_blit_bitmap): Likewise.
21952 (grub_video_vga_blit_render_target): Likewise.
21953 (grub_video_vga_set_active_render_target): Likewise.
21954 (grub_video_vga_get_active_render_target): Likewise.
21955 (grub_video_vga_swap_buffers): Likewise.
21956 (grub_video_vga_set_palette): Likewise.
21957 (grub_video_vga_get_info_and_fini): Likewise.
21958 (grub_vga_term): Removed.
21959 (grub_video_vga_adapter): New variable.
21960 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21961 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21962
2bf61a98
VS
219632010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21964
21965 * video/readers/jpeg.c: Indented.
21966
09ddcd11
VS
219672010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21968
21969 Various jpeg cleanups.
21970
21971 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21972 (grub_jpeg_decode_quan_table): Use sizeof.
21973 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21974
e5507505
PH
219752010-05-05 Peter Hurley <No e-mail available> (tiny change)
21976
21977 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21978 tables. Ignore non-last ac bit.
21979 (grub_jpeg_decode_quan_table): Likewise.
21980
7e720a9b
VS
219812010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21982
21983 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21984 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21985 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21986 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21987 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21988 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21989
a7fc080b
VS
219902010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21991
21992 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21993 error.
21994
2bf6012d
VS
219952010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21996
21997 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21998
265d68cd
VS
219992010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
22000
22001 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
22002 condition.
22003
220042010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
22005
22006 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
22007 part.
22008
265d68cd 220092010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
22010
22011 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
22012 pointers.
22013
265d68cd 220142010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
22015
22016 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
22017
d1b61374
CF
220182010-05-01 Christian Franke <franke@computer.org>
22019
22020 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
22021 Remove broken Cygwin path conversion.
22022 * util/misc.c: [__CYGWIN__] Add include and define.
22023 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
22024 for Cygwin 1.7.
22025 (make_system_path_relative_to_its_root): Simplify loop, replace early
22026 return by break.
22027 [__CYGWIN__] Add conversion to win32 path.
22028 Include "/" case in trailing slash removal.
22029
3558c6e9
VS
220302010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22031
22032 * kern/main.c (grub_load_config): Fix copy-pasted comment.
22033 Reported by: Seth Goldberg
22034
f5f3ff93
VS
220352010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22036
22037 * commands/help.c (grub_cmd_help): Fix a typo.
22038 Reported by: Seth Goldberg
22039
d8b5cd40
VS
220402010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22041
22042 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
22043 name and add N_.
22044 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
22045 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
22046 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
22047 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
22048 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
22049 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
22050 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
22051 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
22052 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
22053 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
22054 * normal/context.c (GRUB_MOD_INIT): Likewise.
22055 * normal/main.c (GRUB_MOD_INIT): Likewise.
22056 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
22057 * term/serial.c (GRUB_MOD_INIT): Likewise.
22058 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
22059
88c14915
VS
220602010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22061
22062 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
22063 extra == 0.
22064
165134bc
VS
220652010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22066
22067 * commands/iorw.c: New file.
22068 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
22069 (iorw_mod_SOURCES): New variable.
22070 (iorw_mod_CFLAGS): Likewise.
22071 (iorw_mod_LDFLAGS): Likewise.
22072
c5ac9b32
VS
220732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22074
22075 Hotkey support
22076
22077 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
22078 * normal/main.c (hotkey_aliases): New variable.
22079 (grub_normal_add_menu_entry): Parse "--hotkey".
22080 * normal/menu_text.c (run_menu): Handle hotkeys.
22081
ce60689c
VS
220822010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22083
22084 * kern/i386/coreboot/init.c (grub_machine_init): Call
22085 grub_machine_mmap_init on qemu.
22086
0359d006
VS
220872010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22088
22089 * boot/i386/qemu/boot.S: Add a missing .code16.
22090
7819a456
VS
220912010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22092
22093 Use LBIO on coreboot.
22094
22095 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
22096 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
22097 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
22098 New declaration.
22099 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
22100 grub_machine_mmap_init on coreboot.
22101 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
22102 GRUB_LINUXBIOS_MEMBER_LINK.
22103 (grub_machine_mmap_iterate): Fix declaration.
22104 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
22105
7210dca9
VS
221062010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22107
22108 Split coreboot and multiboot ports.
22109
22110 * conf/i386-multiboot.rmk: New file.
22111 * configure.ac: Add multiboot port.
22112 * include/grub/i386/multiboot/boot.h: New file.
22113 * include/grub/i386/multiboot/console.h: Likewise.
22114 * include/grub/i386/multiboot/init.h: Likewise.
22115 * include/grub/i386/multiboot/kernel.h: Likewise.
22116 * include/grub/i386/multiboot/loader.h: Likewise.
22117 * include/grub/i386/multiboot/memory.h: Likewise.
22118 * include/grub/i386/multiboot/serial.h: Likewise.
22119 * include/grub/i386/multiboot/time.h: Likewise.
22120 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
22121 * loader/multiboot.c: Likewise.
22122 * loader/multiboot_mbi2.c: Likewise.
22123 * util/grub-mkrescue.in: Generate multiboot rescue.
22124
6f8aaf68
VS
221252010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22126
3080f7a7
VS
22127 * kern/parser.c (grub_parser_execute): Cope with read-only config.
22128
221292010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22130
22131 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
22132
22133 * commands/terminal.c (abstract_terminal): New struct.
22134 (handle_command): New function. Based on grub_cmd_terminal_input.
22135 (grub_cmd_terminal_input): Use handle_command.
22136 (grub_cmd_terminal_output): Use handle_command.
22137
a8ebb841
BC
221382010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
22139
22140 Fix comment handling.
22141
22142 * tests/grub_script_comments.in: New testcase.
22143 * conf/tests.rmk: Rules for new testcase.
22144 * script/yylex.l: Updated flex rules.
22145
bb06ba08
ST
221462010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
22147
22148 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
22149 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
22150 if argc is 1.
bb06ba08 22151
cc9d2425
VS
221522010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22153
22154 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
22155 autogen issues.
22156
460d8402
CF
221572010-04-26 Christian Franke <franke@computer.org>
22158
22159 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
22160 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
22161 (grub_get_prefix): Remove function.
22162 * util/grub-emu.c (main): Replace grub_get_prefix () call by
22163 make_system_path_relative_to_its_root ().
22164 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
22165
553c01f9
CF
221662010-04-24 Christian Franke <franke@computer.org>
22167
22168 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
22169 (kernel_img_LDFLAGS): Remove -static-libgcc.
22170
2aec1692
CF
221712010-04-24 Christian Franke <franke@computer.org>
22172
22173 * configure.ac: Do not CHECK_BSS_START_SYMBOL
22174 and CHECK_END_SYMBOL if grub-emu is built.
22175 Unset TARGET_OBJ2ELF if grub-emu is built
22176 without module support.
22177
f67dc308
JS
221782010-04-24 Jiro SEKIBA <jir@unicus.jp>
22179
22180 Nilfs2 support.
22181
22182 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
22183 (grub_fstest_SOURCES): Likewise.
22184 (pkglib_MODULES): Add nilfs2.mod.
22185 (nilfs2_mod_SOURCES): New variable.
22186 (nilfs2_mod_CFLAGS): Likewise.
22187 (nilfs2_mod_LDFLAGS): Likewise.
22188 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
22189 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
22190 * fs/nilfs2.c: New file.
22191
4ba8d354
VS
221922010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
22193
22194 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
22195 is not supported.
22196
0d2c20c6
GS
221972010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
22198
22199 Add grub-mkconfig support for NetBSD.
22200
22201 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
22202 * util/grub-mkconfig.in: export new NetBSD specific variables.
22203 * po/POTFILES-shell: added 10_netbsd.in.
22204 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
22205
bc4a2d83
BC
222062010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
22207
22208 Fix emu build with grub-emu-pci and grub-emu-modules.
22209
22210 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
22211 functions.
22212 * include/grub/libpciaccess.h: New file.
22213 * conf/any-emu.rmk: Update kernel headers for emu build.
22214
f48c87aa
VS
222152010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22216
22217 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
22218
18959385
VS
222192010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22220
22221 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
22222
0037de3f
VS
222232010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22224
22225 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
22226 Retrieve chosen/bootpath if bootpath isn't hardcoded.
22227 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
22228 util/ieee1275/ofpath.c.
22229 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
22230 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
22231 * include/grub/sparc64/ieee1275/boot.h
22232 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
22233 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
22234 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
22235 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
22236 const char *.
22237 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
22238 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
22239 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
22240 install.
22241
38e55e90
GS
222422010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22243
22244 * util/grub-mkconfig.in: Corrected two == equality tests.
22245 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
22246 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
22247 expect a number appended to it.
22248 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
22249 expects a number appended to it.
22250
a9e6ff28
VS
222512010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22252
22253 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
22254
0b830b8f
VS
222552010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22256
22257 * util/hostdisk.c (make_device_name): Change to new partition naming.
22258
0973daeb
VS
222592010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
22260
22261 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
22262
460d8402 222632010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
22264
22265 * Makefile.in: Add missing localedir setting.
22266
0b456309
CW
222672010-04-14 Colin Watson <cjwatson@ubuntu.com>
22268
22269 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
22270 mistake in r2156. Noticed by Anthony Fok.
22271
22272 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
22273 @localedir@.
22274 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
22275
08f46d62
BC
222762010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
22277
22278 Fix a spurious, uninitialized variable warning.
22279
22280 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
22281 Initialize variable, shdr.
22282 (grub_freebsd_load_elfmodule): Likewise.
22283 (grub_freebsd_load_elf_meta): Likewise.
22284
8c4a72d4
BC
222852010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
22286
22287 Fix for escaped dollar in double quoted strings.
22288
22289 * script/yylex.l: Updated flex rules.
22290 * conf/tests.rmk: Rule for new testcase.
22291 * tests/grub_script_dollar.in: New testcase.
22292
ce44826e
CPE
222932010-04-13 Carles Pina i Estany <carles@pina.cat>
222942010-04-13 Colin Watson <cjwatson@ubuntu.com>
22295
22296 Enclose all translated strings in grub.cfg in single quotes, and
22297 escape them appropriately (Ubuntu bug #552921).
22298
22299 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
22300 * util/grub.d/10_hurd.in: Use it.
22301 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22302 * util/grub.d/10_linux.in (linux_entry): Likewise.
22303
4b0cd8f8
VS
223042010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22305
22306 Fix cygwin compilation.
22307
22308 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
22309 * include/grub/misc.h (__register_frame_info)
22310 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
22311 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22312 * kern/misc.c (__register_frame_info)
22313 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
22314 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22315
01fcf061
VS
223162010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22317
22318 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22319
5d04b11e
VS
223202010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22321
22322 Unify libgcc processing.
22323
22324 * Makefile.in (kernel_img_LDFLAGS): New variable.
22325 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22326 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22327 overwriting.
22328 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22329 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22330 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22331 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22332 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22333 overwriting. Remove -lgcc and -static-libgcc
22334 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22335 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22336 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22337 (kernel_img_LDFLAGS): Append instead of overwriting.
22338 Remove -lgcc and -static-libgcc
22339 * conf/sparc64-ieee1275.rmk: Likewise.
22340 * include/grub/powerpc/libgcc.h: Move to ...
22341 * include/grub/libgcc.h: .. this.
22342 * include/grub/libgcc.h: Don't export most of the function on x86.
22343 (__bswapsi2): New export.
22344 (__bswapdi2): Likewise.
22345 * include/grub/mips/libgcc.h: Removed.
22346 * include/grub/sparc64/libgcc.h: Likewise.
22347
b7f3ac29
VS
223482010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22349
22350 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22351 disk_info_msg (conflicts with gettexting into languages with cases).
22352
2c7031b1
GS
223532010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22354
22355 Add grub-probe support for NetBSD.
22356
22357 * util/getroot.c (find_root_device): Convert block device to
22358 character device on NetBSD.
22359 * util/probe.c (probe): Require character device on NetBSD.
22360 * util/hostdisk.c: NetBSD specific headers.
22361 (configure_device_driver): new function to tune device driver
22362 parameters (currently only for NetBSD floppy driver).
22363 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22364 via disklabel ioctl).
22365 (open_device): call configure_device_driver on NetBSD.
22366 (convert_system_partition_to_system_disk): NetBSD specific code.
22367 (device_is_wholedisk): Likewise.
22368 (grub_util_biosdisk_get_grub_dev): Likewise.
22369 (make_device_name): Fixed a typo in bsd_part_str.
22370 * configure.ac: check for opendisk() and getrawpartition() on
22371 NetBSD and set LIBUTIL.
22372 * Makefile.in: add LIBUTIL to LIBS.
22373
f516290c
BC
223742010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22375
22376 Documentation fix.
22377
22378 * util/grub-script-check.c: Better help message.
22379
d8dcc0df
BC
223802010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22381
22382 Fix FreeBSD build.
22383
22384 * configure.ac: Flex version check.
22385 * conf/common.rmk: Add -Wno-error to sh.mod.
22386 * script/yylex.l: Remove all #pragma.
22387
6734334a
VS
223882010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22389
22390 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22391 prototype.
22392 Reported by: Seth Goldberg.
22393
daea6abd
VS
223942010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22395
22396 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22397 Rename "module" to "module2".
22398 Reported by: Seth Goldberg.
22399
f2fd9d2b
VS
224002010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22401
22402 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22403 EXPORT_FUNC.
22404 Reported by: Seth Goldberg.
22405
be124579
VS
224062010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22407
22408 * lib/posix_wrap/locale.h: Add missing file.
22409 Reported by: Seth Goldberg.
22410
ef5da797
VS
224112010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22412
22413 grub-emu module load support.
22414
22415 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22416 NO_DYNAMIC_MODULES switched to this.
22417 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22418 (CFLAGS): Likewise.
22419 * conf/any-emu.rmk: Generate symlist.
22420 (kernel_img_HEADERS): Add util/datetime.h.
22421 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22422 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22423 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22424 kern/$(target_cpu)/cache.S.
22425 * configure.ac (grub-emu-modules): New option.
22426 * genmk.rb: Handle multiple source lists.
22427 * include/grub/sdl.h: New file.
22428 * include/grub/libusb.h: Likewise.
22429 * util/grub-emu.c (main): Hanle (host) root.
22430 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22431 GRUB_ERR_UNKNOWN_DEVICE.
22432 * util/misc.c: Move mm functions to ...
22433 * util/mm.c: ... here. All users updated.
22434
47822096
VS
224352010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22436
22437 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22438 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22439 missing files.
22440 (maintainer-clean): Remove libgcrypt-grub.
22441
5d7e7445
VS
224422010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22443
22444 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22445
25f4e252
EC
224462010-04-09 EFI Coder <eficoder@hotmail.com>
22447
22448 * normal/menu_text.c (print_message): Clean up the message and show
22449 the Fn information when on EFI
22450 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22451
027de555
VS
224522010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22453
22454 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22455 All users updated.
22456 * normal/crypto.c (read_crypto_list): Likewise.
22457 * normal/dyncmd.c (read_command_list): Likewise.
22458 * normal/term.c (read_terminal_list): Likewise.
22459 * normal/main.c (read_lists): Use explicit prefix.
22460 (read_lists_hook): Use read_lists.
22461 (grub_normal_execute): Likewise.
22462
47779711
VS
224632010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22464
22465 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22466 Reported by: Thomas Schmitt.
22467 Add -no-emul-boot to grub-mkisofs parameters.
22468
1118c32e
VS
224692010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22470
22471 * font/font.c: Indented.
22472
7d652447
BC
224732010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22474
22475 Elif support to GRUB script (by Deepak Vankadaru).
22476
22477 * tests/grub_script_if.in: New testcase.
22478 * conf/tests.rmk: Rule for new testcase.
22479 * script/parser.y: Grammar rules for elif.
22480
34bb22df
BC
224812010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22482
22483 While and until loops support to GRUB script.
22484
22485 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22486 (grub_script_create_cmdwhile): New function prototype.
22487 (grub_script_execute_cmdwhile): New function prototype.
22488 * script/execute.c (grub_script_execute_cmdwhile): New function.
22489 * script/parser.y (command): New commands.
22490 (whilecmd): New grammar rule.
22491 (untilcmd): New grammar rule.
22492 * script/script.c (grub_script_create_cmdwhile): New function.
22493 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22494 function.
22495
22496 * tests/grub_script_while1.in: New testcase.
22497 * conf/tests.rmk: Rule for new testcase.
22498
e215d8e0
VS
224992010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22500
22501 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22502 as *.jpg.
22503
d7c43ba1
MV
225042010-04-09 Mario Vazquez <mariovazq@gmail.com>
22505
22506 GRUB_BACKGROUND support.
22507
22508 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22509 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22510
d64795c0
VS
225112010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22512
22513 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 22514 Idea by: Mario Vazquez
d64795c0
VS
22515
22516 * util/grub.d/00_header.in: Load pf2 and image modules.
22517
f267f83a
VS
225182010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22519
22520 grub-mkconfig multiple terminal support.
22521
22522 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22523 * util/grub.d/00_header.in: Likewise.
22524
b7841ceb
VS
225252010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22526
22527 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22528 we use cd $(srcdir).
22529
df60998c
CW
225302010-04-08 Colin Watson <cjwatson@ubuntu.com>
22531
22532 * util/grub.d/10_linux.in: Only use the first word of
22533 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22534 spaces in GRUB_DISTRIBUTOR.
22535 * util/grub.d/10_kfreebsd.in: Likewise.
22536 * util/grub.d/10_hurd.in: Likewise.
22537
fa09c82e
BC
225382010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22539
14e18ae3 22540 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
22541
22542 * tests/util/grub-shell.in: Remove -serial stdio option.
22543
daf892b3
BC
225442010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22545
22546 POSIX header file wrappers.
22547
22548 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22549 equivalents.
22550 * lib/posix_wrap/ctype.h: Likewise.
22551 * lib/posix_wrap/errno.h: Likewise.
22552 * lib/posix_wrap/langinfo.h: Likewise.
22553 * lib/posix_wrap/limits.h: Likewise.
22554 * lib/posix_wrap/localcharset.h: Likewise.
22555 * lib/posix_wrap/stdint.h: Likewise.
22556 * lib/posix_wrap/stdio.h: Likewise.
22557 * lib/posix_wrap/stdlib.h: Likewise.
22558 * lib/posix_wrap/string.h: Likewise.
22559 * lib/posix_wrap/sys/types.h: Likewise.
22560 * lib/posix_wrap/unistd.h: Likewise.
22561 * lib/posix_wrap/wchar.h: Likewise.
22562 * lib/posix_wrap/wctype.h: Likewise.
22563 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22564 (grub_script.yy.h): Likewise.
22565 * script/yylex.l: Remove POSIX emulation #defines.
22566 * Makefile.in (POSIX_CFLAGS): New variable.
22567 (GNULIB_UTIL_CFLAGS): Likewise.
22568
22569 Regexp support.
22570
22571 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22572 (regexp_mod_SOURCES): New variable.
22573 (regexp_mod_CFLAGS): Likewise.
22574 (regexp_mod_LDFLAGS): Likewise.
22575 * commands/regexp.c: New file.
22576 * gnulib/regcomp.c: New file. Imported from gnulib.
22577 * gnulib/regex.c: Likewise.
22578 * gnulib/regex_internal.c: Likewise.
22579 * gnulib/regex_internal.h: Likewise.
22580 * gnulib/regexec.c: Likewise.
22581 * gnulib/regex.h: Likewise.
22582
974ac4f7
VS
225832010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22584
22585 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22586 unsupported video mode types.
22587
2622c3ff
VS
225882010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22589
22590 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22591
064cb524
VS
225922010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22593
22594 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22595 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22596
a8c3b552
VS
225972010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22598
22599 Remove unused grub_vga_get_font.
22600
22601 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22602 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22603
187bbe3d
GS
226042010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22605
22606 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22607 * include/grub/misc.h: Likewise.
22608
b9396631
GS
226092010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22610
22611 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22612 for which failure is fatal.
22613
50479feb
GS
226142010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22615
22616 * util/grub-install.in: Use mkdir -p to create grub directory.
22617 * util/i386/efi/grub-install.in: Likewise.
22618 * util/ieee1275/grub-install.in: Likewise.
22619
b1654fdf
GS
226202010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22621
22622 * Makefile.in (LEX): new variable.
22623
bd5a6415
GS
226242010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22625
22626 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22627 `=' and added double quotes on operands of this equality test.
22628
3db3a82b
VS
226292010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22630
22631 * Makefile.in (uninstall): Remove a leftover debug echo.
22632 Reported by: Grégoire Sutre
22633
38023412
VS
226342010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22635
22636 MIPS multiboot2 support.
22637
22638 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22639 (multiboot2_mod_SOURCES): New variable.
22640 (multiboot2_mod_CFLAGS): Likewise.
22641 (multiboot2_mod_LDFLAGS): Likewise.
22642 (multiboot2_mod_ASFLAGS): Likewise.
22643 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22644 definition.
22645 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22646 (MULTIBOOT_MBI_REGISTER): Likewise.
22647 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22648 (MULTIBOOT_ELF32_MACHINE): Likewise.
22649 (MULTIBOOT_ELF64_MACHINE): Likewise.
22650 * include/grub/mips/multiboot.h: New file.
22651 * include/grub/video.h (grub_video_driver_id): New type
22652 GRUB_VIDEO_DRIVER_SM712.
22653 (grub_video_get_info_and_fini): Export.
22654 (grub_video_get_palette): Likewise.
22655 (grub_video_get_driver_id): Likewise.
22656 * include/multiboot2.h: Resynced with spec.
22657 * loader/i386/multiboot.c: Moved from here ...
22658 * loader/multiboot.c: ... here. All users updated.
22659 (grub_multiboot_boot): Use platform-specific macros.
22660 * loader/i386/multiboot_elfxx.c: Moved from here ...
22661 * loader/multiboot_elfxx.c: ... here. All users updated.
22662 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22663 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22664 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22665
47674667
VS
226662010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22667
22668 Import gnulib argp module.
22669
22670 * gnulib/argp-ba.c: New file.
22671 * gnulib/argp-eexst.c: Likewise.
22672 * gnulib/argp-fmtstream.c: Likewise.
22673 * gnulib/argp-fmtstream.h: Likewise.
22674 * gnulib/argp-fs-xinl.c: Likewise.
22675 * gnulib/argp-help.c: Likewise.
22676 * gnulib/argp-namefrob.h: Likewise.
22677 * gnulib/argp-parse.c: Likewise.
22678 * gnulib/argp-pin.c: Likewise.
22679 * gnulib/argp-pv.c: Likewise.
22680 * gnulib/argp-pvh.c: Likewise.
22681 * gnulib/argp-version-etc.c: Likewise.
22682 * gnulib/argp-version-etc.h: Likewise.
22683 * gnulib/argp-xinl.c: Likewise.
22684 * gnulib/argp.h: Likewise.
22685
495442ed
VS
226862010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22687
22688 * kern/device.c (grub_device_iterate): Clear errors after failed
22689 opening device.
22690
f9fd65df
VS
226912010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22692
22693 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22694 returned by firmware.
22695
af09641e
VS
226962010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22697
22698 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22699 compilation on coreboot and qemu
22700
016883a5
VS
227012010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22702
22703 * include/multiboot2.h: Resync with spec.
22704
f97e1f7d
VS
227052010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22706
22707 Multiboot2 tag support
22708
22709 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22710 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22711 Remove loader/multiboot_loader.c.
22712 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22713 (grub_multiboot2_real_boot): Likewise.
22714 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22715 (grub_get_multiboot_mmap_count): New proto.
22716 (grub_fill_multiboot_mmap): Likewise.
22717 (grub_multiboot_set_video_mode): Likewise.
22718 (grub_multiboot_set_console): Likewise.
22719 (grub_multiboot_load): Likewise.
22720 (grub_multiboot_load_elf): Likewise.
22721 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22722 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22723 * include/multiboot.h: Resynced with specification.
22724 * include/multiboot2.h: Resynced with specification.
22725 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22726 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22727 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22728 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22729 users updated.
22730 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22731 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22732 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22733 Removed.
22734 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22735 Moved from here...
22736 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22737 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22738 Moved from here...
22739 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22740 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22741 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22742 All users updated.
22743 * loader/i386/multiboot_mbi2.c: New file.
22744
3506b90b
VS
227452010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22746
22747 Resync with gnulib.
22748
22749 * Makefile.in (GNULIB_CFLAGS): New variable.
22750 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22751 (grub_script_check_CFLAGS): New variable.
22752 * gnulib/alloca.h: Resync with gnulib.
22753 * gnulib/error.c: Likewise.
22754 * gnulib/error.h: Likewise.
22755 * gnulib/fnmatch.c: Likewise.
22756 * gnulib/fnmatch_loop.c: Likewise.
22757 * gnulib/getdelim.c: Likewise.
22758 * gnulib/getline.c: Likewise.
22759 * gnulib/getopt.c: Likewise.
22760 * gnulib/getopt1.c: Likewise.
22761 * gnulib/getopt_int.h: Likewise.
22762 * gnulib/gettext.h: Likewise.
22763 * gnulib/progname.c: Likewise.
22764 * gnulib/progname.h: Likewise.
22765
394a3120
GS
227662010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22767
22768 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22769 which is the case with --disabled-nls.
22770
22771 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22772 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22773 * util/misc.c: Likewise.
22774 * util/mkisofs/mkisofs.c: Likewise.
22775 * util/mkisofs/mkisofs.h: Likewise.
22776
969d1c78
VS
227772010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22778
22779 Simplify Apple CC support.
22780
22781 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22782 Add 0 byte at the end not to have a symbol with empty target.
22783 * mmap/i386/pc/mmap_helper.S: Likewise.
22784 * genmk.rb: Ignore errors 2030 and 2050.
22785 * kern/i386/pc/startup.S: Use LOCAL when possible.
22786
8d2977bb
BC
227872010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22788
22789 Testcase and the fix for final semicolon on cmdline.
22790
22791 * tests/grub_script_final_semicolon.in: New testcase.
22792 * conf/tests.rmk: Rules for the new testcase.
22793 * script/parser.y: Grammar fix.
22794
a7bd6915
BC
227952010-03-26 BVK Chaitanya <bvk@localhost>
22796
22797 Blank lines testcase for GRUB script.
22798
22799 * tests/grub_script_blanklines.in: New testcase.
22800 * conf/tests.rmk: Rules for the new testcase.
22801
e4ff6628
VS
228022010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22803
22804 Don't use __FILE__.
22805
22806 * genmk.rb: Add -DGRUB_FILE to all C targets.
22807 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22808 * include/grub/list.h: Likewise.
22809 * include/grub/misc.h: Likewise.
22810 * include/grub/mm.h: Likewise.
22811 * include/grub/test.h: Likewise.
22812 * kern/mm.c: Likewise.
22813 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22814
6a5cf6b6
VS
228152010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22816
22817 Sunpc partitions support.
22818
22819 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22820 (grub_fstest_SOURCES): Likewise.
22821 (pkglib_MODULES): Add part_sunpc.mod.
22822 (part_sunpc_mod_SOURCES): New variable.
22823 (part_sunpc_mod_CFLAGS): Likewise.
22824 (part_sunpc_mod_LDFLAGS): Likewise.
22825 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22826 * partmap/sunpc.c: New file.
22827
746d9045
BC
228282010-03-26 BVK Chaitanya <bvk@localhost>
22829
22830 For loop support to GRUB script.
22831
22832 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22833 (grub_script_create_cmdfor): New function prototype.
22834 (grub_script_execute_cmdfor): New function prototype.
22835 * script/execute.c (grub_script_execute_cmdfor): New function.
22836 * script/parser.y (command): New for command.
22837 (forcmd): New grammar rule.
22838 * script/script.c (grub_script_create_cmdfor): New function.
22839 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22840 function.
22841 * tests/grub_script_for1.in: New testcase.
22842 * conf/tests.rmk: Rules for new testcase.
22843
18486b18
VS
228442010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22845
22846 Nested partitions
22847
22848 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22849 'partition' is NULL, grub_partition_get_start already does that.
22850 * commands/loadenv.c (check_blocklists): Likewise.
22851 (write_blocklists): Likewise.
22852 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22853 (grub_fstest_SOURCES): Likewise.
22854 (pkglib_MODULES): Add part_bsd.mod.
22855 (part_bsd_mod_SOURCES): New variable.
22856 (part_bsd_mod_CFLAGS): Likewise.
22857 (part_bsd_mod_LDFLAGS): Likewise.
22858 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22859 (grub_emu_SOURCES): Likewise.
22860 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22861 * include/grub/bsdlabel.h: New file.
22862 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22863 'get_name'.
22864 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22865 (grub_partition_map_list): New variable.
22866 (grub_partition_map_register): Inline.
22867 (grub_partition_map_unregister): Likewise.
22868 (FOR_PARTITION_MAPS): New macro.
22869 (grub_partition_map_iterate): Removed.
22870 (grub_partition_get_start): Handle nested partitions.
22871 * include/grub/msdos_partition.h: Remove bsd-related entries.
22872 (grub_pc_partition): Remove.
22873 * kern/disk.c (grub_disk_close): Free partition data.
22874 (grub_disk_adjust_range): Handle nested partitions.
22875 * kern/partition.c (grub_partition_map_probe): New function.
22876 (grub_partition_probe): Parse name to number, handle subpartitions.
22877 (get_partmap): New function.
22878 (grub_partition_iterate): Handle subpartitions.
22879 (grub_partition_get_name): Likewise.
22880 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22881 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22882 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22883 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22884 Set 'number'.
22885 (acorn_partition_map_probe): Remove.
22886 (acorn_partition_map_get_name): Likewise.
22887 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22888 Set 'number'.
22889 Set 'index' to 0 since there can be only one partition entry per sector.
22890 (amiga_partition_map_probe): Remove.
22891 (amiga_partition_map_get_name): Likewise.
22892 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22893 Set 'number'.
22894 Set 'offset' and 'index' to real positions of partitions.
22895 (apple_partition_map_probe): Remove.
22896 (apple_partition_map_get_name): Likewise.
22897 * partmap/bsdlabel.c: New file.
22898 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22899 Set 'number'.
22900 Allocate 'data' so it can be correctly freed.
22901 Set 'index' to offset inside sector.
22902 (gpt_partition_map_probe): Remove.
22903 (gpt_partition_map_get_name): Likewise.
22904 * partmap/msdos.c (grub_partition_parse): Remove.
22905 (pc_partition_map_iterate): Don't force raw access.
22906 Set 'number'.
22907 Make 'ext_offset' a local variable.
22908 (pc_partition_map_probe): Remove.
22909 (pc_partition_map_get_name): Remove.
22910 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22911 Set 'number'.
22912 (sun_partition_map_probe): Remove.
22913 (sun_partition_map_get_name): Likewise.
22914 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22915 (grub_pcpart_type): Likewise.
22916 * util/hostdisk.c (open_device): Handle new numbering scheme.
22917 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22918 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22919 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22920 * util/grub-install.in: Insert all subpartition modules.
22921 * util/ieee1275/grub-install.in: Likewise.
22922
a3940f88
AG
229232010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22924
22925 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22926 grammar.
22927
21b99926 229282010-03-24 Colin Watson <cjwatson@ubuntu.com>
22929
22930 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22931
bed1d352
CW
229322010-03-21 Colin Watson <cjwatson@ubuntu.com>
22933
22934 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22935 match where 'make install' puts them.
22936 * util/i386/efi/grub-install.in: Likewise.
22937
c9f58427
CW
229382010-03-19 Colin Watson <cjwatson@ubuntu.com>
22939
22940 * .bzrignore: Add gentrigtables, grub-script-check,
22941 grub_script_check_init.c, grub_script_check_init.h, and
22942 trigtables.c.
22943
f84afb27
VS
229442010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22945
22946 * kern/parser.c: Indented.
22947
ed0e3d30
VS
229482010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22949
22950 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22951
0ea81d98
VS
229522010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22953
22954 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22955 alpha_mask_size == 0 case.
22956
0cdc2a09
BC
229572010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22958
22959 GRUB shell lexer and parser improvements.
22960
22961 * conf/any-emu.rmk: Build rule updates.
22962 * conf/common.rmk: Likewise.
22963 * conf/i386-coreboot.rmk: Likewise.
22964 * conf/i386-efi.rmk: Likewise.
22965 * conf/i386-ieee1275.rmk: Likewise.
22966 * conf/i386-pc.rmk: Likewise.
22967 * conf/powerpc-ieee1275.rmk: Likewise.
22968 * conf/x86_64-efi.rmk: Likewise.
22969
22970 * configure.ac: Configure check for flex.
22971
22972 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22973 types.
22974 (grub_lexer_param): Struct member updates.
22975 (grub_parser_param): Likewise.
22976 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22977 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22978 (grub_script_lexer_init): Prototype update.
22979 (grub_script_lexer_record_start): Likewise.
22980 (grub_script_lexer_record_stop): Likewise.
22981 (grub_script_lexer_yywrap): New function prototype.
22982 (grub_script_lexer_fini): Likewise.
22983 (grub_script_execute_argument_to_string): Removed by...
22984 (grub_script_execute_argument_to_argv): ...better version.
22985
22986 * script/execute.c (ROUND_UPTO): New macro.
22987 (grub_script_execute_cmdline): Out of memory fixes.
22988 (grub_script_execute_menuentry): Likewise.
22989 (grub_script_execute_argument_to_string): Removed. Update all
22990 users by...
22991 (grub_script_execute_argument_to_argv): ...better version.
22992 * script/function.c (grub_script_function_create): Use
22993 grub_script_execute_argument_to_argv instead of
22994 grub_script_execute_argument_to_string.
22995
22996 * script/lexer.c (check_varstate): Removed.
22997 (check_textstate): Removed.
22998 (grub_script_lexer_record_start): Likewise.
22999 (grub_script_lexer_record_stop): Likewise.
23000 (recordchar): Replaced with...
23001 (grub_script_lexer_record): ...new function.
23002 (nextchar): Removed.
23003 (grub_script_lexer_init): Rewritten.
23004 (grub_script_yylex): Rewritten.
23005 (append_newline): New function.
23006 (grub_script_lexer_yywrap): New function.
23007 (grub_script_lexer_fini): New function.
23008 (grub_script_yyerror): Sets error flag.
23009
23010 * script/yylex.l: New file.
23011 (grub_lexer_yyfree): Wrapper for flex yyffre.
23012 (grub_lexer_yyalloc): Likewise.
23013 (grub_lexer_yyrealloc): Likewise.
23014 * script/parser.y: Refactored.
23015
23016 * script/script.c (grub_script_arg_add): Out of memory fixes.
23017 (grub_script_add_arglist): Likewise.
23018 (grub_script_create_cmdline): Likewise.
23019 (grub_script_create_cmdmenu): Likewise.
23020 (grub_script_add_cmd): Likewise.
23021 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
23022 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
23023 unnecessary code.
23024
23025 * tests/grub_script_echo1.in: New testcase.
23026 * tests/grub_script_vars1.in: New testcase.
23027 * tests/grub_script_echo_keywords.in: New testcase.
23028
1d63a066
VS
230292010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23030
23031 Remove some redundancy in build system.
23032
23033 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
23034 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
23035 (TARGET_LDFLAGS): Add -nostdlib.
23036 (TARGET_IMG_LDFLAGS): Likewise.
23037 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
23038 anything since mmap isn't available.
23039 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
23040 Add util/time.c.
23041 (pkglib_MODULES): Remove reboot.mod.
23042 (reboot_mod_SOURCES): Removed.
23043 (reboot_mod_CFLAGS): Likewise.
23044 (reboot_mod_LDFLAGS): Likewise.
23045 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
23046 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
23047 (DEFSYMFILES): Add kernel_syms.lst.
23048 (kernel_img_HEADERS): Add common headers.
23049 (symlist.c): New target.
23050 (kernel_syms.lst): Likewise.
23051 (pkglib_MODULES): Add memdisk.mod.
23052 (memdisk_mod_SOURCES): New variable.
23053 (memdisk_mod_CFLAGS): Likewise.
23054 (memdisk_mod_LDFLAGS): Likewise.
23055 (pkglib_MODULES): Add reboot.mod.
23056 (reboot_mod_SOURCES): New variable.
23057 (reboot_mod_CFLAGS): Likewise.
23058 (reboot_mod_LDFLAGS): Likewise.
23059 (pkglib_MODULES): Add date.mod.
23060 (date_mod_SOURCES): New variable.
23061 (date_mod_CFLAGS): Likewise.
23062 (date_mod_LDFLAGS): Likewise.
23063 (pkglib_MODULES): Add datehook.mod.
23064 (datehook_mod_SOURCES): New variable.
23065 (datehook_mod_CFLAGS): Likewise.
23066 (datehook_mod_LDFLAGS): Likewise.
23067 (pkglib_MODULES): Add lsmmap.mod.
23068 (lsmmap_mod_SOURCES): New variable.
23069 (lsmmap_mod_CFLAGS): Likewise.
23070 (lsmmap_mod_LDFLAGS): Likewise.
23071 (pkglib_MODULES): Add boot.mod.
23072 (boot_mod_SOURCES): New variable.
23073 (boot_mod_CFLAGS): Likewise.
23074 (boot_mod_LDFLAGS): Likewise.
23075 * conf/i386-coreboot.rmk: Removed redundant parts.
23076 * conf/i386-ieee1275.rmk: Likewise.
23077 * conf/i386-pc.rmk: Likewise.
23078 * conf/mips-yeeloong.rmk: Likewise.
23079 * conf/mips.rmk: Likewise.
23080 * conf/powerpc-ieee1275.rmk: Likewise.
23081 * conf/sparc64-ieee1275.rmk: Likewise.
23082 * conf/x86_64-efi.rmk: Likewise.
23083 * conf/i386-coreboot.rmk: Moved qemu parts ..
23084 * conf/i386-qemu.rmk: ... here
23085 * conf/i386-efi.rmk: Moved common parts to...
23086 * conf/x86-efi.rmk: ... here.
23087 * conf/i386.rmk: Added modules common to all x86 variants.
23088 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
23089 * disk/memdisk.c: Remove grub/machine/kernel.h.
23090 * gensymlist.sh.in: Include symbol.h.
23091 * hook/datehook.c: Correct module name.
23092 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
23093 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
23094 * include/grub/i386/efi/serial.h: New file.
23095 * include/grub/x86_64/efi/serial.h: Likewise.
23096 * util/time.c: Likewise.
23097 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
23098
463ac55f
CK
230992010-03-14 Colin King <colin.king@ubuntu.com>
231002010-03-14 Colin Watson <cjwatson@ubuntu.com>
23101
23102 Shrink the pre-partition-table part of boot.img by eight bytes.
23103
23104 * boot/i386/pc/boot.S (ERR): New macro.
23105 (chs_mode): Use ERR.
23106 (geometry_error): Likewise.
23107 (hd_probe_error): Remove. This is only used once, so we wrwite
23108 it inline instead.
23109 (read_error): Instead of printing read_error_string, just set up
23110 %si and fall through to ...
23111 (error_message): ... this new function, also used by ERR.
23112
08e46ede
CW
231132010-03-14 Colin Watson <cjwatson@ubuntu.com>
23114
23115 Speed up consecutive hostdisk operations on the same device.
23116
23117 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
23118 (grub_util_biosdisk_open): Initialise disk->data.
23119 (struct linux_partition_cache): New structure.
23120 (linux_find_partition): Cache partition start positions; these are
23121 expensive to compute on every read and write.
23122 (open_device): Cache open file descriptor in disk->data, so that we
23123 don't have to reopen it and flush the buffer cache for consecutive
23124 operations on the same device.
23125 (grub_util_biosdisk_close): New function.
23126 (grub_util_biosdisk_dev): Set `close' member.
23127
23128 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
23129 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
23130 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23131 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23132 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
23133
4a6d2d06
VS
231342010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23135
23136 Compile parts of grub-emu as modules.
23137
23138 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
23139 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
23140 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
23141 (all-local): Add $(GRUB_EMU).
23142 (install-local): Install $(GRUB_EMU).
23143 (uninstall): Uninstall $(GRUB_EMU).
23144 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
23145 * kern/dl.c: Likewise.
23146 * commands/sleep.c: Not include machine/time.h.
23147 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
23148 (COMMON_CFLAGS): Likewise.
23149 (sbin_UTILITIES): Remove grub-emu.
23150 (grub_emu_SOURCES): Removed.
23151 (kernel_img_RELOCATABLE): New variable.
23152 (pkglib_PROGRAMS): Add kernel.img.
23153 (kernel_img_SOURCES): New variable
23154 (kernel_img_CFLAGS): Likewise.
23155 (kernel_img_LDFLAGS): Likewise.
23156 (TARGET_NO_STRIP): Likewise.
23157 (TARGET_NO_DYNAMIC_MODULES): Likewise.
23158 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
23159 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
23160 (grub-emu): New target.
23161 (GRUB_EMU): New variable.
23162 * configure.ac: Whitelist -emu as possible x86_64 architecture.
23163 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
23164 * loader/xnu.c: Likewise.
23165 * include/grub/pci.h: Likewise.
23166 * genemuinit.sh: New file.
23167 * genemuinitheader.sh: Likewise.
23168 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
23169 Support TARGET_NO_DYNAMIC_MODULES.
23170 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
23171 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
23172 * disk/loopback.c: Likewise.
23173 * font/font_cmd.c: Likewise.
23174 * partmap/acorn.c: Likewise.
23175 * partmap/amiga.c: Likewise.
23176 * partmap/apple.c: Likewise.
23177 * partmap/gpt.c: Likewise.
23178 * partmap/msdos.c: Likewise.
23179 * partmap/sun.c: Likewise.
23180 * parttool/msdospart.c: Likewise.
23181 * term/gfxterm.c: Likewise.
23182 * video/bitmap.c: Likewise.
23183 * video/readers/jpeg.c: Likewise.
23184 * video/readers/png.c: Likewise.
23185 * video/readers/tga.c: Likewise.
23186 * video/video.c: Likewise.
23187 * util/grub-emu.c (read_command_list): Removed.
23188 (main): Don't call util_init_nls.
23189 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
23190 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
23191
91fdd2ed
VS
231922010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23193
23194 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
23195 date.mod, datehook.mod.
23196 (datetime_mod_SOURCES): New variable.
23197 (datetime_mod_CFLAGS): Likewise.
23198 (datetime_mod_LDFLAGS): Likewise.
23199 (date_mod_SOURCES): Likewise.
23200 (date_mod_CFLAGS): Likewise.
23201 (date_mod_LDFLAGS): Likewise.
23202 (datehook_mod_SOURCES): Likewise.
23203 (datehook_mod_CFLAGS): Likewise.
23204 (datehook_mod_LDFLAGS): Likewise.
23205 * conf/sparc64-ieee1275.rmk: Likewise.
23206 * lib/ieee1275/datetime.c: New file.
23207
873ccae6
VS
232082010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23209
23210 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
23211 (ieee1275_fb_mod_SOURCES): New variable.
23212 (ieee1275_fb_mod_CFLAGS): Likewise.
23213 (ieee1275_fb_mod_LDFLAGS): Likewise.
23214 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
23215 New proto.
23216 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
23217 (HEAP_MAX_ADDR): Likewise.
23218 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
23219 type.
23220 Correct stop condition.
23221 (grub_ieee1275_devices_iterate): New function.
23222 * video/ieee1275.c: New file.
23223
601c97c0
VS
232242010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23225
23226 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
23227
23228 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
23229 as scratch.
23230 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
23231 SCRATCH_PAD_DISKBOOT as scratch.
23232 (bootit): Pass Openfirmware pointer in %o4.
23233 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
23234 of 0x200000.
23235 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
23236 with util/grub-mkrawimage.c.
23237 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
23238 * include/grub/aout.h (AOUT_MID_SUN): New definition.
23239 (grub_aout_get_type) [GRUB_UTIL]: Removed.
23240 (grub_aout_load) [GRUB_UTIL]: Likewise.
23241 * include/grub/kernel.h (grub_modules_get_end): New proto.
23242 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
23243 (SCRATCH_PAD_BOOT): New definition.
23244 (SCRATCH_PAD_DISKBOOT): Likewise.
23245 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
23246 * include/grub/sparc64/ieee1275/ieee1275.h
23247 (grub_ieee1275_original_stack): New variable
23248 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23249 New definition
23250 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
23251 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
23252 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
23253 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
23254 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
23255 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
23256 (grub_platform_image_format_t): New type.
23257 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
23258 * kern/main.c (grub_modules_get_end)
23259 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
23260 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
23261 (codestart): Switch stacks.
23262 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
23263 variable.
23264 (grub_heap_init): Use grub_modules_get_end.
23265 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
23266 stack.
23267 * util/grub-mkrawimage.c (generate_image): Support sparc64.
23268 (main): Likewise.
23269 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
23270
d68b491e
TG
232712010-03-14 Thorsten Glaser <tg@mirbsd.org>
23272
23273 * util/grub-mkrescue.in: Base ISO UUID on UTC.
23274
4e02ed50
MK
232752010-03-08 Matt Kraai <kraai@ftbfs.org>
23276
23277 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
23278 bug #559005).
23279
1f15fc1e
VS
232802010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
23281
23282 * genmoddep.awk: Output all missing symbols and not only first.
23283
fce5d8ff
VS
232842010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23285
23286 * NEWS: Put the date of 1.98 release.
23287
d1e8a02f
VS
232882010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23289
23290 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
23291 ft2build.h.
23292
696fd607
VS
232932010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23294
23295 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
23296 completition in the middle of string.
23297
33e2e6f3
VS
232982010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23299
23300 * util/grub-mkrescue.in: Use mktemp with explicit template.
23301
b1f6d291
VS
233022010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23303
23304 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
23305
2ac227c7
VS
233062010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23307
23308 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
23309 right pointer.
23310
8f9a632b
VS
233112010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23312
23313 Fix FreeBSD compilation.
23314
23315 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
23316 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
23317
60b03859
VS
233182010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23319
23320 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23321
48a5a769
VS
233222010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23323
23324 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23325
3ab4bd77
VS
233262010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23327
23328 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23329
d116e0d8
RM
233302010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23331
23332 Support relative image path in theme file.
23333
23334 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23335 (image_set_property): Handle theme_dir and relative path.
23336
c7ef54aa
VS
233372010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23338
23339 * configure.ac: Alias amd64 to x86_64.
23340
fcee14ed
VS
233412010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23342
23343 * NEWS: mention multiboot on EFI.
23344
d0780363
VS
233452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23346
23347 * kern/main.c (grub_load_modules): Handle errors from init functions of
23348 embeded modules.
23349
41168ea4
VS
233502010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23351
23352 * normal/autofs.c (autoload_fs_module): Handle errors.
23353
b54d93ac
VS
233542010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23355
23356 Disable linux.mod on qemu-mips since it's not functional and leads
23357 to compilation failure.
23358
23359 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23360 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23361 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23362 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23363 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23364 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23365 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23366 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23367 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23368 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23369 Reported by: BVK Chaitanya
23370
fc8345da
JU
233712010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23372
23373 * INSTALL: Add gettext as a dependency and add qemu to a new section
23374 "Prerequisites for make-check".
23375
4760f979
CF
233762010-03-04 Christian Franke <franke@computer.org>
23377
23378 * util/grub-pe2elf.c: Add missing include "progname.h".
23379
f209b5b2
VS
233802010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23381
23382 * normal/crypto.c (read_crypto_list): Fix a typo.
23383 Reported by: Seth Goldberg.
23384
b4b7be98
VS
233852010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23386
23387 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 23388 Reported by: Seth Goldberg.
b4b7be98 23389
c0ee0385
VS
233902010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23391
23392 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23393 ascii.bitmaps.
23394
a8efbf64
VS
233952010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23396
23397 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 23398 Reported by: Seth Goldberg.
a8efbf64 23399
08dcd913
VS
234002010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23401
23402 * util/i386/efi/grub-install.in: Copy gettext files.
23403
c4d0b332
VS
234042010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23405
23406 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23407
c6f2fe52
VS
234082010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23409
23410 Wait for user entry basing on presence of output rather than on errors.
23411
23412 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23413 (grub_install_newline_hook): Likewise.
23414 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23415 * normal/menu.c (show_menu): Check line_counter to determine presence
23416 of output.
23417 * normal/term.c (grub_normal_line_counter): New variable.
23418 (grub_normal_get_line_counter): New function.
23419 (grub_install_newline_hook): Likewise.
23420
5382b1e4
VS
234212010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23422
23423 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23424
5519963b
VS
234252010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23426
23427 * configure.ac: Update version to 1.98.
23428
72b28631
VS
234292010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23430
23431 * util/grub.d/10_linux.in (linux_entry): Don't default to
23432 gfxpayload=keep if Linux doesn't support video handover.
23433
c140a180
VS
234342010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23435
23436 Don't compile video modules on yeeloong since video subsystem is part
23437 of kernel.
23438
23439 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23440 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23441 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23442 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23443 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23444 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23445 * include/grub/bitmap_scale.h: Likewise.
23446 * include/grub/bufio.h: Likewise.
23447 * include/grub/font.h: Likewise.
23448 * include/grub/gfxterm.h: Likewise.
23449 * include/grub/video.h: Likewise.
23450 * include/grub/vbe.h: Don't include video_fb.h.
23451 * video/i386/pc/vbe.c: Include video_fb.h.
23452 * commands/i386/pc/vbetest.c: Include video.h.
23453
a0ca21c2
CW
234542010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23455
23456 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23457 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23458 default entry if GRUB_SAVEDEFAULT=true. This allows using
23459 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23460 saving a new default on every boot.
23461
4a8a763c
VS
234622010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23463
23464 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23465 * normal/term.c (read_terminal_list): Likewise.
23466 * normal/main.c (grub_normal_init_page): Likewise.
23467 (grub_normal_read_line_real): Likewise.
23468
607ffde2
VS
234692010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23470
23471 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23472 memory leak.
23473 Reported by: Seth Goldberg.
23474
2b8fa975
CW
234752010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23476
23477 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23478 duplicate declaration of `start'.
23479
618307dd
VS
234802010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23481
23482 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23483 filename.
23484 Reported by: Georgy Buranov
23485
7dd05b96 234862010-02-20 Carles Pina i Estany <carles@pina.cat>
23487
23488 * util/grub-mkrawimage.c (usage): Change string formatting to
23489 improve gettext.
23490
d1484a42
MRA
234912010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23492
23493 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23494 backspace keys.
23495
42b1d186
VS
234962010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23497
23498 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23499 Reported by: Michael Suchanek.
23500
235012010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
23502
23503 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23504 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23505
d9f31a41
VS
235062010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23507
23508 Remove any reference to non-free fonts.
23509
23510 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23511 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23512 uses non-free components.
23513 * font/font.c (grub_font_get_name): Remove example name.
23514 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23515 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23516 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23517 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23518
2793c71e
GB
235192010-02-16 Georgy Buranov <gburanov@gmail.com>
23520
23521 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23522
402e3779
VS
235232010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23524
23525 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23526 Double divisor.
23527 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23528 features.
23529 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23530
0dd1e0dd
VS
235312010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23532
23533 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23534
6fa7cfce
ST
235352010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23536
23537 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23538 * docs/grub.texi (Command-line and menu entry commands): Document play
23539 command.
23540
37c8483b
ST
235412010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23542
23543 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23544 parse arguments as inline tempo and notes. Move code for playing notes
23545 to...
23546 (play): ... new function.
23547
14da0fb7
ST
235482010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23549
23550 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23551 grub_uint16_t instead of short.
23552 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23553 disk from little endian to cpu endianness.
23554
04459e70
ST
235552010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23556
23557 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23558 GRUB_TICKS_PER_SECOND instead of 120.
23559
a0876943
VS
235602010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23561
23562 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23563 escape sequence after \e.
23564
e29f95dc
VS
235652010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23566
23567 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23568 non-ASCII characters.
23569
d27859b2
VS
235702010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23571
23572 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23573 set root in single quotes to prevent \, from being unescaped.
23574
bc028f2f
VS
235752010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23576
23577 Prevent unknown commands from stopping menuentry execution.
23578
23579 * script/execute.c (grub_script_execute_cmdline): Print error after
23580 unknown command.
23581
095f5f82
VS
235822010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23583
23584 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23585 Reported by: Pavel Pisa.
23586
8c717950
VS
235872010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23588
23589 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23590
904935c3
VS
235912010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23592
23593 Merge grub_ieee1275_map_physical into grub_map and rename to
23594 grub_ieee1275_map
23595
23596 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23597 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23598 Remove.
23599 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23600 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23601 necessary.
23602 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23603
5b59a4e3
VS
236042010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23605
23606 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23607 opening and not after.
23608
69e137e8
VS
236092010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23610
23611 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23612 constants.
23613
2c0fcc36
VS
236142010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23615
23616 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23617 (alloc_phys): Use ALIGN_UP instead of align_addr.
23618
8c6052ce
VS
236192010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23620
23621 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23622
17cec782
VS
236232010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23624
23625 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23626
e0128bbd
VS
236272010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23628
23629 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23630 verbose dprintf.
23631
ca62070b
VS
236322010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23633
23634 Fix over-4GiB seek on sparc64.
23635
23636 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23637 Replace pos_i and pos_lo with pos. All users updated.
23638 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23639 New constant.
23640 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23641 Likewise.
23642 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23643 and pos_lo.
23644
bdca2607
VS
236452010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23646
23647 * util/grub-mkrawimage.c (main): Call set_program_name.
23648
da278c4d
VS
236492010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23650
23651 Properly align 64-bit targets.
23652
23653 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23654 (generate_image): Use ALIGN_ADDR.
23655
b274d734
VS
236562010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23657
23658 Properly create cross-endian images.
23659
23660 * include/grub/types.h (grub_host_to_target_addr): New macro
23661 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23662
82da2062
VS
236632010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23664
23665 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23666
7cae4377
VS
236672010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23668
23669 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23670
23671 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23672 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23673 (grub_linux_boot): Divide by 64K when on VESA.
23674
65a533e7
VS
236752010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23676
23677 Support GRUB_GFXPAYLOAD_LINUX.
23678
23679 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23680 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23681
dd01d397
VS
236822010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23683
23684 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23685 to show messages instead of discarding them.
23686 Process errors after executing command and not before. Keep old method
23687 too as precaution.
23688
660960d6
VS
236892010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23690
23691 * configure.ac: Check for ft2build.h.
23692
62509f04
VS
236932010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23694
23695 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23696
473df63d
VS
236972010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23698
23699 * genkernsyms.sh.in: Use TARGET_CC.
23700
c98d2a13
CW
237012010-02-07 Colin Watson <cjwatson@ubuntu.com>
23702
23703 * NEWS: Update.
23704
6e14234c
VS
237052010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23706
23707 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
23708 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23709 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 23710
b255e9cf
YB
237112010-02-07 Yves Blusseau <blusseau@zetam.org>
23712
6e14234c 23713 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 23714
98e6959d
VS
237152010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23716
23717 Fix warnings in grub-emu when compiling with maximum warning options.
23718
23719 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23720 (grub_arch_modules_addr): Return 0 and not NULL.
23721 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 23722 (xstrdup): Use newstr instead of dup.
f88d801b
VS
23723 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23724 of disk to dsk to avoid shadowing.
74e4934e
VS
23725 (find_free_slot): Fix prototype.
23726 * util/getroot.c (grub_util_is_dmraid): Make static.
23727 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23728 Add missing prototype.
23729 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 23730
74e31b5c
VS
237312010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23732
23733 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23734 appropriately.
23735
6b2ad14b
VS
237362010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23737
23738 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23739 code out.
23740
8f891adc
VS
237412010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23742
23743 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23744 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23745 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23746 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23747 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23748 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23749
74b45184
VS
237502010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23751
23752 * include/grub/err.h (grub_err_printf): Don't export.
23753
a4bced77
VS
237542010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23755
23756 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23757
007d0695
VS
237582010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23759
23760 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23761 * kern/misc.c (grub_gettext_dummy): Make static.
23762
b6c0d9c2
VS
237632010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23764
23765 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23766 by non-valid ones.
23767 * kern/term.c (grub_putchar): Likewise.
23768
f51a90d0
VS
237692010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23770
23771 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23772 buggy hook call and memory leak.
23773
6846cec5
VS
237742010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23775
23776 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23777
468d69fe
VS
237782010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23779
23780 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23781
51906b8c
VS
237822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23783
23784 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23785 modevar.
23786 Return grub_errno on allocation error.
23787
09706ce5
VS
237882010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23789
23790 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23791
911df80c
YB
237922010-02-06 Yves Blusseau <blusseau@zetam.org>
23793
23794 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23795 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23796
3746a6bc
VS
237972010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23798
23799 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23800 non-pxe disk.
23801 (grub_pxefs_open): Likewise.
23802
09706ce5
VS
238032010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23804
23805 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23806 * util/grub.d/10_kfreebsd.in: Likewise.
23807 * util/grub.d/10_linux.in: Likewise.
23808
7cc192d9
VS
238092010-02-06 Colin D Bennett <colin@gibibit.com>
23810
23811 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23812 (gfxmenu_mod_SOURCES): New variable.
23813 (gfxmenu_mod_CFLAGS): Likewise.
23814 (gfxmenu_mod_LDFLAGS): Likewise.
23815 * include/grub/term.h (grub_term_set_current_output): Declare
23816 argument as const.
23817 * docs/gfxmenu-theme-example.txt: New file.
23818 * gfxmenu/gfxmenu.c: Likewise.
23819 * gfxmenu/gui_box.c: Likewise.
23820 * gfxmenu/gui_canvas.c: Likewise.
23821 * gfxmenu/gui_circular_progress.c: Likewise.
23822 * gfxmenu/gui_image.c: Likewise.
23823 * gfxmenu/gui_label.c: Likewise.
23824 * gfxmenu/gui_list.c: Likewise.
23825 * gfxmenu/gui_progress_bar.c: Likewise.
23826 * gfxmenu/gui_string_util.c: Likewise.
23827 * gfxmenu/gui_util.c: Likewise.
23828 * gfxmenu/icon_manager.c: Likewise.
23829 * gfxmenu/model.c: Likewise.
23830 * gfxmenu/named_colors.c: Likewise.
23831 * gfxmenu/theme_loader.c: Likewise.
23832 * gfxmenu/view.c: Likewise.
23833 * gfxmenu/widget-box.c: Likewise.
23834 * include/grub/gfxmenu_model.h: Likewise.
23835 * include/grub/gfxmenu_view.h: Likewise.
23836 * include/grub/gfxwidgets.h: Likewise.
23837 * include/grub/gui.h: Likewise.
23838 * include/grub/gui_string_util.h: Likewise.
23839 * include/grub/icon_manager.h: Likewise.
23840
238412010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23842
23843 Agglomerate scrolling in gfxterm.
23844
23845 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23846 (grub_virtual_screen_setup): Initialise 'total_screen'.
23847 (write_char): Split to ...
23848 (paint_char): ... this ...
23849 (write_char): ... and this.
23850 (paint_char): Handle delayed scrolling.
23851 (draw_cursor): Likewise.
23852 (scroll_up): Split to ...
23853 (real_scroll): ... this ...
23854 (scroll_up): ... and this.
23855 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23856 characters.
23857 (grub_gfxterm_refresh): Call real_scroll.
23858
238592010-02-06 Colin D Bennett <colin@gibibit.com>
23860
23861 * include/grub/misc.h (grub_iscntrl): New inline function.
23862 (grub_isalnum): Likewise.
23863 (grub_strtol): Likewise.
23864
238652010-02-06 Colin D Bennett <colin@gibibit.com>
23866
23867 * normal/menu_text.c (get_entry_number): Move from here ...
23868 * normal/menu.c (get_entry_number): ... moved here.
23869 * include/grub/menu.h (grub_menu_get_default_entry_index):
23870 New prototype.
23871 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23872 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23873 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23874 (grub_menu_viewer_should_return): Likewise.
23875 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23876 * normal/menu_text.c (run_menu): Enable menu switching.
23877 * normal/menu_viewer.c (should_return): New variable.
23878 (menu_viewer_changed): Likewise.
23879 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23880 (grub_menu_viewer_should_return): New function.
23881 (menuviewer_write_hook): Likewise.
23882 (grub_menu_viewer_init): Likewise.
23883
238842010-02-06 Colin D Bennet <colin@gibibit.com>
238852010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23886
23887 Support for gfxterm in a window.
23888
23889 * include/grub/gfxterm.h: New file.
23890 * include/grub/video.h (struct grub_video_rect): New declaration.
23891 (grub_video_rect_t): Likewise.
23892 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23893 (refcount): New variable.
23894 (render_target): Likewise.
23895 (window): Likewise.
23896 (repaint_callback): Likewise.
23897 (grub_virtual_screen_setup): Use 'render_target'.
23898 (init_window): New function.
23899 (grub_gfxterm_init_window): Likewise.
23900 (grub_gfxterm_init): Check reference counter.
23901 Use init_window.
23902 (destroy_window): New function.
23903 (grub_gfxterm_destroy_window): Likewise.
23904 (grub_gfxterm_fini): Check reference counter.
23905 Use destroy_window.
23906 (redraw_screen_rect): Restore viewport.
23907 Use 'render_target' and 'window'.
23908 Call 'repaint_callback'.
23909 (write_char): Use 'render_target'.
23910 (draw_cursor): Likewise.
23911 (scroll_up): Restore viewport.
23912 Use 'render_target' and 'window'.
23913 Call 'repaint_callback'.
23914 (grub_gfxterm_cls): Likewise.
23915 (grub_gfxterm_refresh): Use 'window'.
23916 (grub_gfxterm_set_repaint_callback): New function.
23917 (grub_gfxterm_background_image_cmd): Use 'window'.
23918 (grub_gfxterm_get_term): New function.
23919 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23920
239212010-02-06 Colin D Bennett <colin@gibibit.com>
23922
23923 Bitmap scaling support.
23924
23925 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23926 (bitmap_scale_mod_SOURCES): New variable.
23927 (bitmap_scale_mod_CFLAGS): Likewise.
23928 (bitmap_scale_mod_LDFLAGS): Likewise.
23929 * include/grub/bitmap_scale.h: New file.
23930 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23931 (background_image_cmd_options): New variable.
23932 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23933 (cmd): Rename and change type to ...
23934 (background_image_cmd_handle): ... this. All users updated.
23935 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23936 * video/bitmap_scale.c: New file.
23937
239382010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23939
23940 SDL support.
23941
23942 * Makefile.in (LIBSDL): New variable.
23943 (enable_grub_emu_sdl): Likewise.
23944 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23945 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23946 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23947 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23948 * util/sdl.c: New file.
23949
239502010-02-06 Colin D Bennett <colin@gibibit.com>
239512010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23952
23953 Double buffering support.
23954
23955 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23956 * include/grub/video.h: Update comment.
23957 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23958 New type.
23959 (grub_video_fb_doublebuf_blit_init): New prototype.
23960 * term/gfxterm.c (scroll_up): Support double buffering.
23961 (grub_gfxterm_refresh): Likewise.
23962 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23963 (grub_video_fb_doublebuf_blit_init): Likewise.
23964 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23965 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23966 'displayed_page', 'render_page' and 'update_screen'.
23967 (grub_video_vbe_fini): Free offscreen buffer.
23968 (doublebuf_pageflipping_commit): New function.
23969 (doublebuf_pageflipping_update_screen): Likewise.
23970 (doublebuf_pageflipping_init): Likewise.
23971 (double_buffering_init): Likewise.
23972 (grub_video_vbe_setup): Enable doublebuffering.
23973 (grub_video_vbe_swap_buffers): Implement.
23974 (grub_video_vbe_set_active_render_target): Handle double buffering.
23975 (grub_video_vbe_get_active_render_target): Likewise.
23976 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23977 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23978 (grub_video_vbe_enable_double_buffering): Likewise.
23979 (grub_video_vbe_swap_buffers): Use update_screen.
23980 (grub_video_set_mode): Use double buffering.
23981
239822010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23983
23984 * maintainance/gentrigtables.py: Remove.
23985 * lib/trig.c: Likewise.
23986
23987 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23988
23989 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23990 `trigtables.c'.
23991 (trigtables.c): New rule.
23992 (gentrigtables): Likewise.
23993 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23994
239952010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23996
23997 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23998 integer constants.
23999
240002010-02-06 Colin D Bennet <colin@gibibit.com>
24001
24002 Trigonometry support.
24003
24004 * include/grub/trig.h: New file.
24005 * lib/trig.c: Likewise.
24006 * maintainance/gentrigtables.py: Likewise.
24007 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
24008 (trig_mod_SOURCES): New variable.
24009 (trig_mod_CFLAGS): Likewise.
24010 (trig_mod_LDFLAGS): Likewise.
24011
5562834e
VS
240122010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24013
24014 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
24015 disk devices.
24016
4f8528fc
VS
240172010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24018
24019 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
24020 error.
24021
2b4068e9
VS
240222010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24023
24024 * util/hostdisk.c (open_device): Don't use partition device when reading
24025 before the partition.
24026 (grub_util_biosdisk_read): Don't read from partition and before the
24027 partition in single operation.
24028 (grub_util_biosdisk_write): Don't write to partition and before the
24029 partition in single operation.
24030
399f6e4d
TL
240312010-02-03 Torsten Landschoff <torsten@debian.org>
24032
24033 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24034 last sectors.
24035
996649b0
VS
240362010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24037
24038 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
24039 CDROM reads.
24040 (grub_biosdisk_write): Refuse to write to CDROM.
24041
3b205d4d
VS
240422010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
24043
24044 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
24045
61e89d9d
VS
240462010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
24047
24048 * font/font.c (find_glyph): Check that bmp_idx is available before
24049 using it.
24050 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
24051 with (font == NULL).
24052
bf7fcba2
CS
240532010-01-28 Christian Schmitt <chris@ilovelinux.de>
24054
24055 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
24056
f45d2663
BC
240572010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
24058
24059 * include/grub/script_sh.h (sourcecode): Add const qualifier.
24060 * util/grub-script-check.c (getline): Fix empty lines case.
24061
ec1444e6
RM
240622010-01-28 Robert Millan <rmh.grub@aybabtu.com>
24063
24064 * Makefile.in (check): Exit with fail status when one of the tests
24065 fails.
24066 * tests/example_functional_test.c (example_test): Fix reversed assert.
24067 * tests/example_unit_test.c (example_test): Likewise.
24068
2e1cb9bb
CW
240692010-01-28 Colin Watson <cjwatson@ubuntu.com>
24070
24071 * util/grub.d/10_linux.in: This script does not use any of the
24072 contents of gettext.sh, only the external command `gettext', so stop
24073 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
24074 the same prefix as GRUB.)
24075 * util/grub.d/10_kfreebsd.in: Likewise.
24076
63533ab0
VS
240772010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24078
24079 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
24080 of the line.
24081
989e1f93
VS
240822010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24083
24084 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24085 last sectors.
24086
e709ebe2
VS
240872010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24088
24089 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
24090 having a 4KiB and not 32KiB buffer size.
24091
27dea7ed
RM
240922010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24093
24094 * util/hostfs.c: Include `<errno.h>'.
24095 (grub_hostfs_read): Handle errors from fseeko() and fread().
24096
67667b9c
RM
240972010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24098
24099 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
24100 loop when using read hooks on files whose size isn't sector-aligned.
24101
c294d9d8
RM
241022010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24103
24104 Remove unused parameter.
24105
24106 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
24107 (grub_iso9660_open): Remove initialization of `data->length'.
24108
af75a9f1
RM
241092010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24110
24111 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
24112 memleak conditions.
24113
254e2ce5 241142010-01-27 Carles Pina i Estany <carles@pina.cat>
24115
24116 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
24117 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
24118
b510928c 241192010-01-26 Carles Pina i Estany <carles@pina.cat>
24120
24121 * util/bin2h.c (usage): Fix warning (space after backslash).
24122
aa2f9dd2 241232010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 24124
24125 * font/font.c: Include `grub/fontformat.h.
24126 Remove font file format constants.
24127 (grub_font_load): Use the new macros.
24128 * include/grub/fontformat.h: New file.
24129 * util/grub-mkfont.c: Include `grub/fontformat.c'.
24130 (write_font_pf2): Use the new macros.
24131
94e7e712
RM
241322010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24133
24134 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
24135 does.
24136
3973a59a
RM
241372010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24138
24139 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
24140
24141 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
24142 (_start): Macroify `0x7F'.
24143
24144 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
24145 (make_install_device): Use "(pxe)" as fallback prefix when booting
24146 via PXE.
24147
42e0cba3
GS
241482010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
24149
24150 * configure.ac: Reset LIBS after check for libgcc symbols.
24151
847effd8
CW
241522010-01-25 Colin Watson <cjwatson@ubuntu.com>
24153
24154 * util/hostdisk.c (open_device): Add trailing newline to debug
24155 message.
24156
ea4a7e35
GS
241572010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
24158
24159 * configure.ac: Check for `limits.h'.
24160 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
24161
67951a53
RM
241622010-01-24 Robert Millan <rmh.grub@aybabtu.com>
24163
24164 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
24165 capitalize error strings.
24166
c273d4ce
ST
241672010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
24168
24169 * util/grub.d/10_hurd.in: Add a recovery mode.
24170
69be5b74
VS
241712010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
24172
24173 * configure.ac: Check for libgcc symbols with -nostdlib.
24174
fc9e5810
BC
241752010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
24176
24177 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
24178
4b358c0a
VS
241792010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24180
24181 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
24182 stack since heap may be unavailable at that point.
24183 (grub_ofconsole_gotoxy): Likewise.
24184
454fcd1c
VS
241852010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24186
24187 * configure.ac: Check for _restgpr_14_x.
24188 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
24189 and _savegpr_* prototypes.
24190
566863ca
RM
241912010-01-22 Robert Millan <rmh.grub@aybabtu.com>
24192
24193 Use generic grub_reboot() for i386-efi.
24194
24195 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
24196 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
24197 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
24198
bf86e59a
VS
241992010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24200
24201 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
24202 presence of "prefix" variable as it breaks when normal.mod is
24203 embedded.
24204
d645e0f8
VS
242052010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24206
24207 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
24208 stack since heap is unavailable at that point.
24209
f9ab2e25
VS
242102010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24211
24212 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
24213 (grub_freebsd_bootinfo): Rewritten.
24214 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
24215
01fc7054
VS
242162010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24217
24218 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
24219
caab4fd6
RM
242202010-01-21 Robert Millan <rmh.grub@aybabtu.com>
24221
24222 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
24223 domain now.
24224
67eb1427
FZ
242252010-01-20 Felix Zielcke <fzielcke@z-51.de>
24226
24227 * util/misc.c (make_system_path_relative_to_its_root): Change the work
24228 around for handling "/" to the correct fix. Fix a memory leak. Use
24229 xstrdup instead of strdup.
24230
a9ed4ff3
VS
242312010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24232
24233 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
24234
242352010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
24236
24237 Optimise glyph lookup by Basic Multilingual Plane lookup array.
24238
24239 * font/font.c (struct grub_font): New member 'bmp_idx'.
24240 (font_init): Initialise 'bmp_idx'.
24241 (load_font_index): Fill 'bmp_idx'.
24242 (find_glyph): Make inline. Use bmp_idx for BMP characters.
24243
48209f4f
VS
242442010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24245
24246 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
24247 unnecessary calls.
24248
9f0a4bb7
VS
242492010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24250
24251 Move context handling out of the kernel.
24252
24253 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
24254 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
24255 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
24256 * conf/i386-efi.rmk: Likewise.
24257 * conf/i386-ieee1275.rmk: Likewise.
24258 * conf/i386-pc.rmk: Likewise.
24259 * conf/powerpc-ieee1275.rmk: Likewise.
24260 * conf/sparc64-ieee1275.rmk: Likewise.
24261 * conf/x86_64-efi.rmk: Likewise.
24262 * include/grub/env.h: Include grub/menu.h.
24263 (grub_env_var_type): Removed.
24264 (grub_env_var): Replaced field 'type' with 'global'.
24265 (grub_env_find): New prototype.
24266 (grub_env_context_open): Remove EXPORT_FUNC.
24267 (grub_env_context_close): Likewise.
24268 (grub_env_export): Likewise.
24269 (grub_env_set_data_slot): Removed.
24270 (grub_env_get_data_slot): Likewise.
24271 (grub_env_unset_data_slot): Likewise.
24272 (grub_env_unset_menu): New prototype.
24273 (grub_env_set_menu): Likewise.
24274 (grub_env_get_menu): Likewise.
24275 * include/grub/env_private.h: New file.
24276 * include/grub/normal.h (grub_context_init): New prototype.
24277 (grub_context_fini): Likewise.
24278 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
24279 * normal/context.c (grub_cmd_export): ... to here.
24280 * kern/env.c: Include env_private.h.
24281 (HASHSZ): Moved to include/grub/env_private.h.
24282 (grub_env_context): Likewise.
24283 (grub_env_sorted_var): Likewise.
24284 (current_context): Renamed from this ...
24285 (grub_current_context): ...to this. 'static' removed. All users updated.
24286 (grub_env_find): Removed 'static'.
24287 (grub_env_context_open): Moved to normal/context.c.
24288 (grub_env_context_close): Likewise.
24289 (grub_env_export): Likewise.
24290 (mangle_data_slot_name): Removed.
24291 (grub_env_set_data_slot): Likewise.
24292 (grub_env_get_data_slot): Likewise.
24293 (grub_env_unset_data_slot): Likewise.
24294 * kern/main.c (grub_set_root_dev): Don't export root.
24295 It will be done later.
24296 (grub_main): Don't export prefix.
24297 It will be done later.
24298 * normal/context.c: New file.
24299 * normal/main.c (free_menu): Use grub_env_unset_menu.
24300 (grub_normal_add_menu_entry): Use grub_env_get_menu.
24301 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
24302 (GRUB_MOD_INIT(normal)): Call grub_context_init.
24303 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
24304
8dd35b8c
VS
243052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24306
24307 setpci support.
24308
24309 * commands/setpci.c: New file.
24310 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
24311 (setpci_mod_SOURCES): New variable.
24312 (setpci_mod_CFLAGS): Likewise.
24313 (setpci_mod_LDFLAGS): Likewise.
24314
449193d5
VS
243152010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24316
24317 Byte-addressable PCI configuration space.
24318
24319 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24320 dword address.
24321 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24322 GRUB_PCI_REG_CACHELINE.
24323 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24324 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24325 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24326 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24327 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24328 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24329 grub_pci_make_address.
24330 (lock_rom_area): Likewise.
24331 * commands/lspci.c (grub_lspci_iter): Use macroses
24332 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24333 of grub_pci_make_address.
24334 * disk/ata.c (grub_ata_pciinit): Likewise.
24335 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24336 (GRUB_PCI_REG_VENDOR): Likewise.
24337 (GRUB_PCI_REG_DEVICE): Likewise.
24338 (GRUB_PCI_REG_COMMAND): Likewise.
24339 (GRUB_PCI_REG_STATUS): Likewise.
24340 (GRUB_PCI_REG_REVISION): Likewise.
24341 (GRUB_PCI_REG_CLASS): Likewise.
24342 (GRUB_PCI_REG_CACHELINE): Likewise.
24343 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24344 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24345 (GRUB_PCI_REG_BIST): Likewise.
24346 (GRUB_PCI_REG_ADDRESSES): Likewise.
24347 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24348 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24349 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24350 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24351 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24352 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24353 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24354 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24355 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24356 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24357 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24358 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24359 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24360 (GRUB_PCI_REG_MIN_GNT): Likewise.
24361 (GRUB_PCI_REG_MAX_LAT): Likewise.
24362 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24363 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24364 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 24365 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
24366 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24367 space.
24368
96d73208
RM
243692010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24370
24371 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24372 can be reliably determined to be supported.
24373
d4484482
RM
243742010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24375
24376 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24377 that VESA is supported.
24378 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24379 supported.
24380
00308ecf
VS
243812010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24382
24383 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24384
f66924a4
RM
243852010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24386
24387 * util/misc.c (make_system_path_relative_to_its_root): Work around
24388 special-casing of "/", as previous incarnation of this routine did.
24389
cbca0ada
VS
243902010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24391
24392 Fix any-emu compilation.
24393
24394 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24395 * grub_bin2h_SOURCES: New variable.
24396
34a66d99
RM
243972010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24398
24399 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24400
94fabf58
RM
244012010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24402
24403 * util/grub.d/00_header.in: Fix handling of locale_dir.
24404
02cf98ca
VS
244052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24406
24407 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24408 as possible unifont location (Gentoo).
24409 Reported by: Alexander Brüning
24410
327dbcd7
VS
244112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24412
24413 Don't try to generate lists for kernel.img.
24414
24415 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24416 (pkglib_MODULES): Remove kernel.img.
24417 (kernel_img_EXPORTS): Removed.
24418 (kernel_img_RELOCATABLE): New variable.
24419 * conf/x86_64-efi.rmk: Likewise.
24420 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24421
ca467290
VS
244222010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24423
24424 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24425 grub_xasprintf or grub_snprintf.
24426 (grub_vsprintf): Likewise.
24427 (grub_snprintf): New proto.
24428 (grub_vsnprintf): Likewise.
24429 (grub_xasprintf): Likewise.
24430 (grub_xvasprintf): Likewise.
24431 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24432 (grub_sprintf): Removed.
24433 (grub_vsnprintf): New function.
24434 (grub_snprintf): Likewise.
24435 (grub_xvasprintf): Likewise.
24436 (grub_xasprintf): Likewise.
24437 (grub_vsprintf): Renamed to ...
24438 (grub_vsnprintf_real): ...this. New argument max_len.
24439
aca655fd
BC
244402010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24441
24442 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24443 fix grub-script-check warning.
24444
7ee92c32
VS
244452010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24446
24447 * include/grub/font.h (grub_font_load): Fix prototype.
24448
f80927ca
VS
244492010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24450
24451 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24452
119c50ea
VS
244532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24454
24455 * include/grub/x86_64/at_keyboard.h: New file.
24456
47d5f3c1
VS
244572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24458
24459 * loader/mips/linux.c: Include missing grub/i18n.h.
24460
55ff5266
RM
244612009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24462
24463 * normal/menu.c (notify_execution_failure): Clarify error message.
24464
c893cc87
RM
244652009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24466
24467 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24468 return value (and revert all return statements). Update users.
24469
917dd370
CW
244702010-01-20 Dan Merillat <debian@dan.merillat.org>
24471
24472 * kern/device.c (grub_device_iterate): Allocate new part_ent
24473 structure based on sizeof (*p) rather than sizeof (p->next), to
24474 account for structure padding.
24475
24476 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24477 disk is NULL, which might happen for LVM physical volumes with no
24478 LVM signature.
24479
d4a4ee57
RM
244802009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24481
24482 * loader/mips/linux.c (grub_cmd_initrd)
24483 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24484
244852009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24486
24487 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24488 (grub_video_video_init, grub_video_bitmap_init)
24489 (grub_font_manager_init, grub_term_gfxterm_init)
24490 (grub_at_keyboard_init): New extern declarations.
24491 (grub_machine_init): Initialize gfxterm and at_keyboard.
24492
24493 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24494
24495 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24496 `gfxterm.mod' into core image.
24497
24498 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24499 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24500 (kernel_img_FORMAT): Copy to ...
24501
24502 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24503 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24504 (kernel_img_FORMAT): ... here, and ...
24505
24506 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24507 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24508 (kernel_img_FORMAT): ... here.
24509
24510 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24511 and input (at_keyboard) terminals in kernel.
24512 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24513
24514 (pkglib_MODULES): Remove `pci.mod'.
24515 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24516 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24517 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24518 (at_keyboard_mod_LDFLAGS): Remove variables.
24519
245202010-01-11 Felix Zielcke <fzielcke@z-51.de>
24521
24522 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24523
245242009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24525
24526 * include/grub/mips/libgcc.h: Only export symbols for functions
24527 that libgcc provides.
24528
245292009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24530
24531 MIPS support.
24532
24533 * bus/bonito.c: New file.
24534 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24535 GRUB_PCI_NUM_DEVICES.
24536 * term/i386/pc/serial.c: Move to ...
24537 * term/serial.c: ... here. All users updated.
24538 * util/i386/pc/grub-mkimage.c: Move to ...
24539 * util/grub-mkrawimage.c: ... here. All users updated.
24540 * term/i386/pc/at_keyboard.c: Move to ...
24541 * term/at_keyboard.c: ... here. All users updated.
24542 * conf/mips-qemu-mips.rmk: New file.
24543 * conf/mips-yeeloong.rmk: Likewise.
24544 * conf/mips.rmk: Likewise.
24545 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24546 mipsel-qemu-mips.
24547 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24548 to port addresses.
24549 (grub_ata_pciinit): Support CS5536.
24550 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24551 * font/font_cmd.c (loadfont_command): Open file before passing it to
24552 grub_font_load.
24553 (pseudo_file_read): New function.
24554 (pseudo_file_close): Likewise.
24555 (pseudo_fs): New structure.
24556 (load_font_module): New function.
24557 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24558 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24559 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24560 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24561 * include/grub/i386/at_keyboard.h: Split into ...
24562 * include/grub/at_keyboard.h: ... this ...
24563 * include/grub/i386/at_keyboard.h: ... and this.
24564 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24565 New prototype.
24566 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24567 updated.
24568 (grub_elf64_size): Likewise.
24569 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24570 filename.
24571 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24572 * include/grub/i386/coreboot/serial.h: Rewritten.
24573 * include/grub/i386/ieee1275/serial.h: Include
24574 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24575 * include/grub/i386/pc/serial.h: Moved from here ...
24576 * include/grub/serial.h: ... to here. All users updated.
24577 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24578 (GRUB_PCI_NUM_BUS): Likewise.
24579 (GRUB_PCI_NUM_DEVICES): Likewise.
24580 (grub_pci_device_map_range): Add missing volatile keyword.
24581 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24582 * include/grub/mips/at_keyboard.h: New file.
24583 * include/grub/mips/cache.h: Likewise.
24584 * include/grub/mips/io.h: Likewise.
24585 * include/grub/mips/kernel.h: Likewise.
24586 * include/grub/mips/libgcc.h: Likewise.
24587 * include/grub/mips/pci.h: Likewise.
24588 * include/grub/mips/qemu-mips/boot.h: Likewise.
24589 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24590 * include/grub/mips/qemu-mips/loader.h: Likewise.
24591 * include/grub/mips/qemu-mips/memory.h: Likewise.
24592 * include/grub/mips/qemu-mips/serial.h: Likewise.
24593 * include/grub/mips/qemu-mips/time.h: Likewise.
24594 * include/grub/mips/relocator.h: Likewise.
24595 * include/grub/mips/time.h: Likewise.
24596 * include/grub/mips/types.h: Likewise.
24597 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24598 * include/grub/mips/yeeloong/boot.h: Likewise.
24599 * include/grub/mips/yeeloong/kernel.h: Likewise.
24600 * include/grub/mips/yeeloong/loader.h: Likewise.
24601 * include/grub/mips/yeeloong/memory.h: Likewise.
24602 * include/grub/mips/yeeloong/pci.h: Likewise.
24603 * include/grub/mips/yeeloong/serial.h: Likewise.
24604 * include/grub/mips/yeeloong/time.h: Likewise.
24605 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24606 * kern/elf.c (grub_elf32_size): New parameter. All users
24607 updated.
24608 (grub_elf64_size): Likewise.
24609 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24610 Load modules before saying "Welcome to GRUB!".
24611 Call grub_refresh after saying "Welcome to GRUB!".
24612 * kern/mips/cache.S: New file.
24613 * kern/mips/cache_flush.S: Likewise.
24614 * kern/mips/dl.c: Likewise.
24615 * kern/mips/init.c: Likewise.
24616 * kern/mips/qemu-mips/init.c: Likewise.
24617 * kern/mips/startup.S: Likewise.
24618 * kern/mips/yeeloong/init.c: Likewise.
24619 * kern/term.c (grub_putcode): Handle NULL terminal.
24620 (grub_getcharwidth): Likewise.
24621 (grub_getkey): Likewise.
24622 (grub_checkkey): Likewise.
24623 (grub_getkeystatus): Likewise.
24624 (grub_getxy): Likewise.
24625 (grub_getwh): Likewise.
24626 (grub_gotoxy): Likewise.
24627 (grub_cls): Likewise.
24628 (grub_setcolorstate): Likewise.
24629 (grub_setcolor): Likewise.
24630 (grub_getcolor): Likewise.
24631 (grub_refresh): Likewise.
24632 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24633 (write_jump): Add hatch nop.
24634 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24635 * lib/mips/setjmp.S: New file.
24636 * loader/mips/linux.c: Likewise.
24637 * term/i386/pc/at_keyboard.c: Move from here ...
24638 * term/at_keyboard.c: ... to here.
24639 * term/i386/pc/serial.c: Moved from here ...
24640 * term/serial.c: ... to here. All users updated.
24641 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24642 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24643 (serial_translate_key_sequence): Avoid deadlock.
24644 (grub_serial_getkey): Handle backspace.
24645 (grub_serial_putchar): Fix newline handling.
24646 * util/i386/pc/grub-mkimage.c: Move from here ...
24647 * util/grub-mkrawimage.c: ... to here. All users updated.
24648 (generate_image): New parameters 'font_path' and 'format'.
24649 Support embedding font.
24650 Use grub_host_to_target* instead of grub_cpu_to_le*.
24651 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24652 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24653 (options): New option "--font".
24654 (usage): Likewise.
24655 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24656 (main): Handle "--font".
24657 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24658 (grub_virtual_screen_setup): Set bg_color_display.
24659 (redraw_screen_rect): Use bg_color_display instead of incorrect
24660 bg_color.
24661 (grub_gfxterm_cls): Likewise.
24662 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24663 Support embedding config file.
24664 (add_segments): Likewise.
24665 (options): New option "--config".
24666 (main): Handle "--config".
24667 * video/sm712.c: New file.
24668
25c2b5b3
RM
246692010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24670
24671 Fix parallel builds.
24672
24673 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24674 font.c depend on ascii.h).
24675
246762010-01-12 Carles Pina i Estany <carles@pina.cat>
24677
24678 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24679
246802010-01-11 Carles Pina i Estany <carles@pina.cat>
24681
24682 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24683 By default: disabled.
24684 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24685 parameter.
24686
246872010-01-10 Carles Pina i Estany <carles@pina.cat>
24688
24689 * font/font.c: Update copyright years.
24690 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24691
246922010-01-10 Carles Pina i Estany <carles@pina.cat>
24693
24694 * font/font.c: Include `ascii.h'.
24695 (ASCII_BITMAP_SIZE): New macro.
24696 (ascii_font_glyph): Define.
24697 (ascii_glyph_lookup): New function.
24698 (grub_font_get_string_width): Change comment. If glyph not found, use
24699 ascii_glyph_lookup.
24700 (grub_font_get_glyph_with_fallback): If glyph not available returns
24701 ascii_glyph_lookup.
24702 * util/grub-mkfont.c (file_formats): New enum.
24703 (options): Add `ascii-bitmaps' new option.
24704 (usage): Add `asii-bitmaps' new option.
24705 (write_font_ascii_bitmap): New function.
24706 (write_font): Rename to ...
24707 (write_font_p2): ... this. Remove print_glyphs call.
24708 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24709 used. Call print_glyphs.
24710 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24711
247122010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24713
24714 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24715 (grub_bin2h_SOURCES): New variable.
24716 * util/bin2h.c: New file.
24717
915fc1b8
VS
247182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24719
24720 * include/multiboot.h: Resynced with spec.
24721 * include/multiboot2.h: Likewise.
24722 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24723 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24724
9444b678
RM
247252010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24726
24727 * include/grub/term.h (grub_term_register_input,
24728 grub_term_register_output): Check return of terminal init()
24729 routines, and abort if errors are raised.
24730
24731 * commands/terminal.c: Update copyright year.
24732
cba98e8d
RM
247332010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24734
24735 * commands/terminal.c (grub_cmd_terminal_input)
24736 (grub_cmd_terminal_output): Check return of terminal init()
24737 routines, and abort if errors are raised.
24738
6f7db5d6
VS
247392010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24740
24741 * include/grub/i386/bsd.h: Fix include pathes.
24742
262bff8d
VS
247432010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24744
24745 Add missing *BSD copyright headers.
24746
24747 * include/grub/aout.h: Add BSD licence.
24748 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24749 * include/grub/i386/freebsd_linker.h: ... here,
24750 * include/grub/i386/freebsd_reboot.h: ... here,
24751 * include/grub/i386/netbsd_bootinfo.h: ... here,
24752 * include/grub/i386/netbsd_reboot.h: ... here,
24753 * include/grub/i386/openbsd_bootarg.h: ... here,
24754 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24755 licence to each file.
24756
b2cab848
RM
247572010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24758
24759 * acinclude.m4: Remove `nop' assembly instruction; it's not
24760 implemented by all architectures.
24761
2cb6be4b
RM
247622010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24763
24764 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24765 ELILO. This is no longer necessary.
24766
a2eaee15
BC
247672010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24768
24769 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24770
24771 * util/grub-script-check.c: grub-script-check tool.
24772 * conf/common.rmk: Make rules for grub-script-check.
24773
88d17012
RM
247742010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24775
24776 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24777 spotting it back in 2008. Shame on me for forgetting he did.
24778
24779 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24780
8040619d
RM
247812010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24782
24783 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24784 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24785 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24786 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24787 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24788 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24789
a0c2a0f6
RM
247902010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24791
24792 * include/grub/test.h: Add license header.
24793 * tests/example_functional_test.c: Likewise.
24794 * tests/example_unit_test.c: Likewise.
24795 * tests/lib/functional_test.c: Likewise.
24796 * tests/lib/test.c: Likewise.
24797 * tests/lib/unit_test.c: Likewise.
24798
b0b13907
VS
247992010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24800
24801 Use flag-based instead of hook-based video mode selection and "auto"
24802 keyword.
24803
24804 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24805 (grub_video_set_mode): Changed prototype. All users updated.
24806 (grub_video_check_mode_flag): New inline function.
24807 * video/video.c (parse_modespec): New function.
24808 (grub_video_set_mode): Parse flags and keywords.
24809
ea379330 248102010-01-17 Carles Pina i Estany <carles@pina.cat>
24811
24812 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24813 fprintf call.
24814
e15c215e
FZ
248152010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24816
24817 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24818
409ae1c9 248192010-01-16 Carles Pina i Estany <carles@pina.cat>
24820
24821 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24822 string.
24823 * util/grub-emu.c (usage): Likewise.
24824 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24825 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24826 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24827 * util/i386/pc/grub-setup.c (usage): Likewise.
24828
70a14d3d 248292010-01-16 Carles Pina i Estany <carles@pina.cat>
24830
24831 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24832 the message.
24833 (grub_util_info): Likewise.
24834 (grub_util_error): Likewise.
24835 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24836 and/or new lines in `grub_util_warna', `grub_util_info',
24837 `grub_util_error' calls.
24838 * util/getroot.c: Likewise.
24839 * util/grub-editenv.c: Likewise.
24840 * util/grub-emu.c: Likewise.
24841 * util/grub-fstest.c: Likewise.
24842 * util/grub-mkdevicemap.c: Likewise.
24843 * util/grub-mkfont.c: Likewise.
24844 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24845 * util/grub-mkrelpath.c: Likewise.
24846 * util/grub-pe2elf.c: Likewise.
24847 * util/grub-probe.c: Likewise.
24848 * util/hostdisk.c: Likewise.
24849 * util/i386/efi/grub-mkimage.c: Likewise.
24850 * util/i386/pc/grub-mkimage.c: Likewise.
24851 * util/i386/pc/grub-setup.c: Likewise.
24852 * util/ieee1275/ofpath.c: Likewise.
24853 * util/mkisofs/eltorito.c: Likewise.
24854 * util/mkisofs/rock.c: Likewise.
24855 * util/mkisofs/write.c: Likewise.
24856 * util/raid.c: Likewise.
24857 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24858 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24859
a0b766fc
VS
248602010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24861
24862 Enable multiboot on non-pc.
24863
24864 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24865 multiboot.mod and multiboot2.mod to ...
24866 * conf/i386.rmk (pkglib_MODULES): ... here.
24867 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24868 Moved to ...
24869 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24870 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24871 Moved to ...
24872 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24873 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24874 Moved to ...
24875 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24876 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24877 Moved to ...
24878 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24879 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24880 relocator.mod.
24881 (ata_mod_SOURCES): Removed.
24882 (ata_mod_CFLAGS): Likewise.
24883 (ata_mod_LDFLAGS): Likewise.
24884 (relocator_mod_SOURCES): Removed.
24885 (relocator_mod_CFLAGS): Likewise.
24886 (relocator_mod_ASFLAGS): Likewise.
24887 (relocator_mod_LDFLAGS): Likewise.
24888 Include i386.mk.
24889 * include/grub/x86_64/multiboot.h: New file.
24890 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24891 Terminate EFI.
24892
884ade56
VS
248932010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24894
24895 Video multiboot support.
24896
24897 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24898 New prototype.
24899 * include/multiboot.h: Resynced with multiboot specification.
24900 * include/multiboot2.h: Likewise.
24901 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24902 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24903 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24904 (HAS_VGA_TEXT): Likewise.
24905 (accepts_video): New variable.
24906 (grub_multiboot_set_accepts_video): New function.
24907 (grub_multiboot_get_mbi_size): Account for video structures.
24908 (set_video_mode): New function.
24909 (retrieve_video_parameters): Likewise.
24910 (grub_multiboot_make_mbi): Fill video fields.
24911
0d90e8a6
VS
249122010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24913
24914 Video driver ids.
24915
24916 * include/grub/video.h (grub_video_driver_id): New type.
24917 (grub_video_adapter): New member 'id'. All users updated.
24918 (grub_video_get_driver_id): New proto.
24919 * video/video.c (grub_video_get_driver_id): New function.
24920
5c71db1b 249212010-01-14 Carles Pina i Estany <carles@pina.cat>
24922
24923 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24924 `var=val'.
24925
cca15b52 249262010-01-14 Carles Pina i Estany <carles@pina.cat>
24927
24928 * normal/cmdline.c (print_completion): Gettextizze.
24929
c586fbb2 249302001-01-14 Carles Pina i Estany <carles@pina.cat>
24931
24932 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24933
ba2f6848 249342010-01-14 Carles Pina i Estany <carles@pina.cat>
24935
24936 * gettext/gettext.c (grub_gettext_translate): Push and pop
24937 grub_errno.
24938 (grub_gettext_delete_list): Change comment style.
24939 * kern/err.c (grub_error): Gettextizze.
24940 (grub_fatal): Gettextizze.
24941
0a46429a
RM
249422010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24943
24944 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24945 (grub_linux16_real_boot): ... this.
24946 * kern/i386/loader.S: Likewise.
24947 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24948 (grub_linux16_boot): New function. Switches to text mode and calls
24949 grub_linux16_real_boot().
24950
24951 * loader/i386/bsd.c: Include `<grub/video.h>'.
24952 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24953 text mode before calling grub_unix_real_boot().
24954
24955 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24956 (grub_multiboot_boot): Switch to text mode before calling
24957 grub_relocator32_boot().
24958
24959 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24960 (grub_chainloader_boot): Switch to text mode before calling
24961 grub_chainloader_real_boot().
24962
d6f93a66
RM
249632010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
249642010-01-05 Colin Watson <cjwatson@ubuntu.com>
24965
24966 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24967 non-empty value.
24968
249692010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
249702010-01-05 Colin Watson <cjwatson@ubuntu.com>
24971
24972 * util/grub.d/00_header.in: Define a "savedefault" function for use
24973 in menu entries.
24974 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24975
249762010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
249772010-01-05 Colin Watson <cjwatson@ubuntu.com>
24978
24979 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24980 saved_entry if boot_once is unset.
24981 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24982 previous saved entry (i.e. grub-reboot).
24983
249842009-12-08 Colin Watson <cjwatson@ubuntu.com>
24985
24986 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24987
249882009-12-08 Colin Watson <cjwatson@ubuntu.com>
24989
24990 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24991 `var=val'.
24992 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24993
249942009-12-08 Colin Watson <cjwatson@ubuntu.com>
24995
24996 * util/grub-reboot.in: Fix --version output.
24997 * util/grub-set-default.in: Likewise.
24998
249992009-12-08 Colin Watson <cjwatson@ubuntu.com>
25000
25001 * util/grub.d/00_header.in: Silently ignore zero-sized environment
25002 blocks.
25003
250042009-12-08 Colin Watson <cjwatson@ubuntu.com>
25005
25006 * util/grub.d/00_header.in: Quote the value assigned to `default',
25007 in case it contains spaces.
25008
250092009-12-08 Colin Watson <cjwatson@ubuntu.com>
25010
25011 * util/grub.d/30_os-prober.in: Fix merge error that moved a
25012 `save_default_entry' call from the macosx case to the linux case.
25013
250142009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
250152009-10-25 Colin Watson <cjwatson@ubuntu.com>
25016
25017 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
25018 in `chosen' environment variable.
25019 * normal/menu_text.c (get_entry_number): Check if the variable
25020 matches the title of a menu entry.
25021 (run_menu): Pass menu to get_entry_number.
25022
25023 * util/grub-reboot.in: New file.
25024 * util/grub-set-default.in: New file.
25025 * conf/common.rmk (grub-reboot): New utility.
25026 (grub-set-default): New utility.
25027
25028 * util/grub-mkconfig_lib.in (save_default_entry): New function.
25029 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
25030 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
25031 move it to `saved_entry' for the next boot. Load environment on
25032 initialisation.
25033 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
25034 * util/grub.d/10_hurd.in: Likewise.
25035 * util/grub.d/10_linux.in (linux_entry): Likewise.
25036 * util/grub.d/10_windows.in: Likewise.
25037 * util/grub.d/30_os-prober.in: Likewise.
25038
25039 * util/grub-install.in: Create environment block.
25040 * util/i386/efi/grub-install.in: Likewise.
25041 * util/ieee1275/grub-install.in: Likewise.
25042 * util/sparc64/ieee1275/grub-install.in: Likewise.
25043
0934d184
BC
250442010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
25045
25046 Unit testing framework for GRUB.
25047
25048 * Makefile.in: Test framework build rules for 'make check'.
25049 * conf/tests.rmk: Build rules for individual tests and framework.
25050
25051 * include/grub/test.h: Header file for whitebox tests.
25052 * tests/lib/functional_test.c: Framework support for whitebox
25053 functional tests.
25054 * tests/lib/test.c: Common whitebox testing code for unit and
25055 functional tests.
25056 * tests/lib/unit_test.c: Framework support for whitebox unit
25057 tests.
25058
25059 * tests/util/grub-shell-tester.in: Support utility for grub-script
25060 tests.
25061 * tests/util/grub-shell.in: Utility to execute grub-script
25062 commands in a Qemu instance.
25063
25064 * tests/example_functional_test.c: Example whitebox functional
25065 test.
25066 * tests/example_grub_script_test.in: Example grub-script test.
25067 * tests/example_scripted_test.in: Example scripted test.
25068 * tests/example_unit_test.c: Example whitebox unit test.
25069
9c4ffeeb
VS
250702010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
25071
25072 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
25073 Add loader/i386/multiboot_mbi.c.
25074 (multiboot2_mod_SOURCES): Likewise.
25075 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
25076 (multiboot2_mod_SOURCES): Likewise.
25077 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
25078 (grub_multiboot_make_mbi): Likewise.
25079 (grub_multiboot_free_mbi): Likewise.
25080 (grub_multiboot_init_mbi): Likewise.
25081 (grub_multiboot_add_module): Likewise.
25082 (grub_multiboot_set_bootdev): Likewise.
25083 * loader/i386/multiboot.c (mbi): Removed.
25084 (mbi_dest): Likewise.
25085 (alloc_mbi): New variable.
25086 (grub_multiboot_payload_size): Removed. All users updated.
25087 (grub_multiboot_pure_size): New variable.
25088 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
25089 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
25090 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
25091 (grub_fill_multiboot_mmap): Likewise.
25092 (grub_multiboot_get_bootdev): Likewise.
25093 (grub_multiboot): Use multiboot_mbi functions.
25094 * loader/i386/multiboot_mbi.c: New file.
25095
17383dfe
VS
250962010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25097
25098 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
25099 it would result in module crash.
25100
c1f28820
VS
251012010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25102
25103 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
25104 (grub_ofconsole_getwh): Split to ...
25105 (grub_ofconsole_getwh): ... this.
25106 (grub_ofconsole_dimensions): ...and this.
25107 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
25108
58655a16
RM
251092010-01-13 Robert Millan <rmh.grub@aybabtu.com>
25110
25111 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
25112
10891398
VS
251132010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25114
25115 * loader/i386/pc/multiboot2.c: Removed stalled file.
25116
0b8a223c
VS
251172010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25118
25119 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
25120 Reported by: Grégoire Sutre
25121
92ab12b0
RM
251222010-01-11 Robert Millan <rmh.grub@aybabtu.com>
25123
25124 * util/misc.c (canonicalize_file_name): New function.
25125 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
25126 instead of realpath().
25127
a788afb6
CW
251282010-01-11 Colin Watson <cjwatson@ubuntu.com>
25129
25130 * util/grub-install.in (usage): Clarify meaning of --root-directory,
25131 and make it clearer that it's optional. Based on confusion
25132 witnessed on IRC.
25133
ffa8e3d2
VS
251342010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25135
25136 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
25137 in premature implicit newline.
25138
e9060a9d
VS
251392010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25140
25141 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
25142 which resulted in garbled command line at the end of screen.
25143
f0d0c0b7
RM
251442010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25145
25146 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
25147 initialization with similar approach as with other Linux loaders.
25148
0e60bae7
RM
251492010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25150
25151 Fix i386-ieee1275 build.
25152
25153 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
25154 and grub_term_height() for video_{width,height} initialization.
25155
251562010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
25157
25158 Fix grub-emu build.
25159
25160 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
25161
cdb3f378
RM
251622010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
251632010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25164
25165 Support for multiple terminals.
25166
25167 * Makefile.in (pkglib_DATA): terminal.lst.
25168 (terminal.lst): New target.
25169 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
25170 (GRUB_MOD_INIT(handler)): Likewise.
25171 (GRUB_MOD_FINI(handler)): Likewise.
25172 * commands/help.c (grub_cmd_help): Handle multiple terminals.
25173 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
25174 * commands/sleep.c (do_print): Use grub_term_restore_pos.
25175 (grub_cmd_sleep): Use grub_term_save_pos.
25176 * commands/terminal.c: New file.
25177 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
25178 commands/terminal.c and lib/charset.c.
25179 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
25180 (pkglib_MODULES): Add terminal.mod.
25181 (terminal_mod_SOURCES): New variable.
25182 (terminal_mod_CFLAGS): Likewise.
25183 (terminal_mod_LDFLAGS): Likewise.
25184 * genhandlerlist.sh: Don't handle terminals.
25185 * genmk.rb: Generate terminal-*.lst.
25186 * genterminallist.sh: New file.
25187 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
25188 (grub_is_valid_utf8): Likewise.
25189 (grub_utf8_to_ucs4_alloc): Likewise.
25190 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
25191 (grub_menu_register_viewer): Changed argument.
25192 (grub_menu_try_text): New proto.
25193 (grub_gfxmenu_try_hook): New declaration.
25194 * include/grub/normal.h (grub_normal_exit_level): New declaration.
25195 (grub_menu_init_page): Additional argument term.
25196 (grub_normal_init_page): Likewise.
25197 (grub_cmdline_get): Arguments simplified.
25198 (grub_utf8_to_ucs4_alloc): Removed.
25199 (grub_print_ucs4): Additional argument term.
25200 (grub_getstringwidth): Likewise.
25201 (grub_print_message_indented): Likewise.
25202 (grub_menu_text_register_instances): New proto.
25203 (grub_show_menu): Likewise.
25204 (read_terminal_list): Likewise.
25205 (grub_set_more): Likewise.
25206 * include/grub/parser.h: Include handler.h.
25207 * include/grub/reader.h: Rewritten.
25208 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
25209 (GRUB_TERM_WIDTH): Changed to function.
25210 (GRUB_TERM_HEIGHT): Likewise.
25211 (GRUB_TERM_BORDER_WIDTH): Likewise.
25212 (GRUB_TERM_BORDER_HEIGHT): Likewise.
25213 (GRUB_TERM_NUM_ENTRIES): Likewise.
25214 (GRUB_TERM_ENTRY_WIDTH): Likewise.
25215 (GRUB_TERM_CURSOR_X): Likewise.
25216 (grub_term_input_class): Likewise.
25217 (grub_term_output_class): Likewise.
25218 (grub_term_outputs_disabled): New declaration.
25219 (grub_term_inputs_disabled): Likewise.
25220 (grub_term_outputs): Likewise.
25221 (grub_term_inputs): Likewise.
25222 (grub_term_register_input): Rewritten.
25223 (grub_term_register_output): Likewise.
25224 (grub_term_unregister_input): Likewise.
25225 (grub_term_unregister_output): Likewise.
25226 (FOR_ACTIVE_TERM_INPUTS): New macro.
25227 (FOR_DISABLED_TERM_INPUTS): Likewise.
25228 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
25229 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
25230 * include/grub/terminfo.h: Add oterm argument to all protypes.
25231 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
25232 Use grub_rescue_run.
25233 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
25234 All users updated.
25235 * kern/reader.c: Removed. All users updated.
25236 * kern/rescue_reader.c (grub_rescue_init): Removed.
25237 (grub_rescue_reader): Likewise.
25238 (grub_register_rescue_reader): Likewise.
25239 (grub_rescue_run): New function based on kern/reader.c.
25240 * kern/term.c: Adapted for multiterm.
25241 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
25242 (grub_is_valid_utf8): Likewise.
25243 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
25244 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
25245 right terminal.
25246 * loader/i386/linux.c (grub_linux_boot): Likewise.
25247 * normal/auth.c (grub_username_get): New function.
25248 (grub_auth_check_authentication): Use grub_username_get.
25249 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
25250 * normal/color.c: Adapt for multiterm.
25251 * normal/main.c (read_config_file): Don't use grub_reader_loop.
25252 (grub_normal_init_page): Additional argument term.
25253 (read_lists): Call read_terminal_lists.
25254 (grub_enter_normal_mode): Call grub_cmdline_run.
25255 Handle grub_normal_exit_level.
25256 (grub_cmd_normal): Make reentrant.
25257 (grub_cmd_normal_exit): New function.
25258 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
25259 * normal/menu.c: Adapt for multiterm.
25260 * normal/menu_entry.c: Likewise.
25261 * normal/menu_text.c: Likewise.
25262 * normal/menu_viewer.c: Removed. All users updated.
25263 * normal/term.c: New file.
25264 * util/console.c: Change order of includes to workaround a bug in
25265 ncurses headers.
25266 * term/terminfo.c: New argument oterm on all exported functions.
25267 All users updated.
25268 * util/grub-editenv.c (grub_term_input_class): Removed.
25269 (grub_term_output_class): Likewise.
25270
1a064917
RM
252712010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25272
25273 Make loader output a bit more user-friendly.
25274
25275 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
25276 is being loaded. Likewise for the Hurd.
25277
25278 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
25279 that kernel of FreeBSD ${version} is being loaded.
25280
25281 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
25282 grub_dprintf().
25283 (grub_cmd_initrd): Likewise.
25284 * util/grub.d/10_linux.in (linux_entry): Print message indicating
25285 that Linux ${version} is being loaded. Likewise for initrd.
25286
5ce0a83a 252872010-01-09 Carles Pina i Estany <carles@pina.cat>
25288
25289 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
25290
809bbfeb 252912010-01-08 Carles Pina i Estany <carles@pina.cat>
25292
25293 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
25294 (GRUB_MOD_INIT): Gettextizze.
25295 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
25296 (GRUB_MOD_INIT): Gettextizze.
25297 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
25298 (grub_cmd_linux): Capitalise Linux.
25299 (GRUB_MOD_INIT): Gettextizze.
25300 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
25301 (grub_cmd_linux): Capitalise Linux.
25302 (GRUB_MOD_INIT): Gettextizze.
25303 * loader/i386/linux.c: Include `<grub/i18n.h>'.
25304 (grub_cmd_linux): Capitalise Linux.
25305 (GRUB_MOD_INIT): Gettextizze.
25306 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
25307 (GRUB_MOD_INIT): Gettextizze.
25308 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
25309 (grub_cmd_linux): Capitalise Linux.
25310 (GRUB_MOD_INIT): Gettextizze.
25311 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
25312 (grub_cpu_xnu_init): Gettextizze.
25313 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
25314 (GRUB_MOD_INIT): Gettextizze.
25315 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
25316 (GRUB_MOD_INIT): Gettextizze.
25317 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
25318 (grub_linux_load64): Capitalise Linux.
25319 (GRUB_MOD_INIT): Gettextizze.
25320 * loader/xnu.c: Include `<grub/i18n.h>'.
25321 (GRUB_MOD_INIT): Gettextizze.
25322 * po/POTFILES: Add `loader/efi/appleloader.c',
25323 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25324 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25325 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25326 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25327 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25328 and `loader/xnu.c'.
25329
b394b2ca
RM
253302010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25331
25332 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25333
253342010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
25335
25336 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25337 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25338 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25339
bc8b32b3
RM
253402010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25341
25342 Reset Multiboot 2 support. New loader implements the draft in
25343 /branches/multiboot2 and shares as much code as possible with the
25344 production Multiboot 1 implementation.
25345
25346 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25347 * loader/multiboot2.c: Likewise.
25348 * loader/i386/multiboot_helper.S: Likewise.
25349 * include/multiboot2.h: Replace with latest version from the draft
25350 in /branches/multiboot2.
25351
25352 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25353 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25354 and `loader/multiboot2.c'.
25355 (pkglib_MODULES): Add `multiboot2.mod'.
25356 (multiboot2_mod_SOURCES): New variable.
25357 (multiboot2_mod_LDFLAGS): Likewise.
25358 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25359
25360 * conf/i386-pc.rmk: Likewise.
25361
25362 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25363 (multiboot_mod_SOURCES): Remove variable.
25364 (multiboot_mod_LDFLAGS): Likewise.
25365 (multiboot_mod_CFLAGS): Likewise.
25366
25367 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25368 `<multiboot2.h>' instead of `<multiboot.h>'.
25369 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25370 (MULTIBOOT_HEADER_MAGIC): New macros.
25371
25372 * loader/multiboot_loader.c (module_version_status): Remove variable.
25373 (find_multi_boot2_header): Remove function.
25374 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25375 logic. Always check for the Multiboot version we're compiling for.
25376 (grub_cmd_module_loader): Likewise.
25377 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25378 command instead of `multiboot'.
25379
5d2c52b8
RM
253802010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25381
25382 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25383 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25384 all users.
25385
53108d92
RM
253862010-01-07 Robert Millan <rmh.grub@aybabtu.com>
253872010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25388
25389 Fix breakage introduced with previous commit.
25390
25391 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25392 commands.
25393 * normal/handler.c (read_handler_list): Revert part of previous commit
25394 affecting this file.
25395 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25396 (grub_normal_execute): ... here.
25397
e2e936b2
RM
253982010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25399
25400 Merge prefix-redefinition-fix branch.
25401
25402 * normal/autofs.c (read_fs_list): Make function capable of being
25403 run multiple times, gracefuly replacing the previous data
25404 structures.
25405 * normal/dyncmd.c (read_command_list): Likewise.
25406 * normal/handler.c (read_handler_list): Likewise.
25407 * normal/main.c (read_lists): New function. Calls all the
25408 list reading functions.
25409 (grub_normal_execute): Use read_lists() instead of calling all
25410 list reading functions explicitly. Register read_lists() as a
25411 variable hook attached to ${prefix}.
25412
607a3701
VS
254132010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25414
25415 Merge crypto branch.
25416
25417 * Makefile.in (pkglib_DATA): Add crypto.lst.
25418 (crypto.lst): New target.
25419 * commands/hashsum.c: New file.
25420 * commands/password.c (check_password): Use grub_crypto_memcmp.
25421 * commands/password_pbkdf2.c: New file.
25422 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25423 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25424 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25425 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25426 -I$(srcdir)/lib/libgcrypt_wrap.
25427 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25428 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25429 password_pbkdf2.mod.
25430 (crypto_mod_SOURCES): New variable.
25431 (crypto_mod_CFLAGS): Likewise.
25432 (crypto_mod_LDFLAGS): Likewise.
25433 (hashsum_mod_SOURCES): New variable.
25434 (hashsum_mod_CFLAGS): Likewise.
25435 (hashsum_mod_LDFLAGS): Likewise.
25436 (pbkdf2_mod_SOURCES): New variable.
25437 (pbkdf2_mod_CFLAGS): Likewise.
25438 (pbkdf2_mod_LDFLAGS): Likewise.
25439 (password_pbkdf2_mod_SOURCES): New variable.
25440 (password_pbkdf2_mod_CFLAGS): Likewise.
25441 (password_pbkdf2_mod_LDFLAGS): Likewise.
25442 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25443 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25444 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25445 Include conf/gcry.rmk.
25446 * include/grub/auth.h: Rewritten.
25447 * include/grub/crypto.h: New file.
25448 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25449 * include/grub/normal.h (read_crypto_list): New prototype.
25450 * lib/crypto.c: New file.
25451 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25452 * lib/pbkdf2.c: Likewise.
25453 * normal/auth.c (grub_auth_strcmp): Removed.
25454 (grub_iswordseparator): Likewise.
25455 (grub_auth_strword): Likewise.
25456 (is_authenticated): Use grub_strword.
25457 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25458 and grub_strword. Pass entered password to authentication callback.
25459 * normal/crypto.c: New file.
25460 * normal/main.c: Call read_crypto_list.
25461 * util/grub-mkpasswd-pbkdf2.c: New file.
25462 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25463
42841caa
VS
254642010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25465
25466 Fix descent and ascent calculation.
25467
25468 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25469 (options): New option "asce".
25470 (usage): Likewise.
25471 (add_char): Ignore invalid glyphs for descent calculation.
25472 Calculate ascent from actual content.
25473 (print_glyphs): Use 'asce'.
25474 (write_font): Likewise. Allow ascent override.
25475 (main): Handle "asce" option.
25476
e7730de7 254772010-01-06 Carles Pina i Estany <carles@pina.cat>
25478
25479 * kern/err.c: Include `<grub/i18n.h>'.
25480 (grub_print_error): Add full stop. Gettextizze.
25481 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25482 (grub_bsd_load_elf): Capitalise ELF.
25483 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25484 (grub_cmd_freebsd_module): Likewise.
25485 (grub_cmd_freebsd_module_elf): Likewise.
25486 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25487
40e3a41f 254882010-01-06 Carles Pina i Estany <carles@pina.cat>
25489
25490 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25491 * commands/search_file.c (HELP_MESSAGE): New macro.
25492 * commands/search_label.c (HELP_MESSAGE): Likewise.
25493 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25494 * po/POTFILES: Add `commands/search_file.c',
25495 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25496 `commands/search.c'.
25497
83507e68
RM
254982010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25499
25500 * config.rpath: Update from Gnulib.
25501
465c787b
YB
255022010-01-05 Yves Blusseau <blusseau@zetam.org>
25503
25504 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25505
6581dd3a
YB
255062010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25507
25508 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25509
3bff18c5
CW
255102010-01-05 Colin Watson <cjwatson@ubuntu.com>
25511
25512 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25513 arguments to fread so that we get a return value in bytes, rather
25514 than something that will normally be rounded down to 0.
25515 Adjust error handling to avoid producing garbage when size_t is not
25516 the same size as long long.
25517
a1368118
CW
255182010-01-05 Colin Watson <cjwatson@ubuntu.com>
25519
25520 * util/mkisofs/write.c (padblock_write): Check return value of
25521 fread.
25522
7c302978
RM
255232010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25524
25525 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25526 floppy images now.
25527
25528 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25529
e33ace06
RM
255302010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25531
25532 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25533 instead of manual alignment.
25534 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25535 verbose). Avoid attempts to read past end of the device
25536 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25537 but GRUB_DISK_CACHE_SIZE may exceed that).
25538
4b856776
RM
255392010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25540
25541 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25542 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25543 it to upper layer.
25544
52c2d97f
VS
255452010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25546
25547 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25548 New constant.
25549 (grub_efi_piwg_device_path): New structure
25550 (grub_efi_piwg_device_path_t): New type.
25551 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25552 (devpath_1): Transform to a structure. All users updated.
25553 (devpath_2): Likewise.
25554 (devpath_3): Likewise.
25555 (devpath_4): Likewise.
25556 (devpath_5): Likewise.
25557
98ff6a54
VS
255582010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25559
25560 * loader/efi/appleloader.c: Restored. Update all users.
25561
3a73dcb6
RM
255622010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25563
25564 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25565
25566 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25567 (struct boot_blocklist): Move from here ...
25568 * include/grub/i386/pc/boot.h [ASM_FILE]
25569 (struct grub_boot_blocklist): ... to here. Update all users.
25570 (setup): Only initialize `start' member of `first_block'
25571 structure. Add assert() calls to verify the other members.
25572
25573 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25574 (generate_image): Fix broken blocklist length initialization.
25575 Add assert() call to verify blocklist `segment' field.
25576
ab0eeb0c
RM
255772010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25578
25579 * loader/efi/appleloader.c: Remove. Update all users.
25580
58bc8bd5
RM
255812010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25582
25583 * boot/i386/pc/boot.S: Update copyright year.
25584 * boot/i386/pc/cdboot.S: Likewise.
25585 * boot/i386/pc/diskboot.S: Likewise.
25586 * boot/i386/pc/lnxboot.S: Likewise.
25587 * boot/i386/pc/pxeboot.S: Likewise.
25588 * bus/pci.c: Likewise.
25589 * commands/cmp.c: Likewise.
25590 * commands/help.c: Likewise.
25591 * commands/hexdump.c: Likewise.
25592 * commands/i386/pc/halt.c: Likewise.
25593 * commands/i386/pc/play.c: Likewise.
25594 * commands/i386/pc/vbeinfo.c: Likewise.
25595 * commands/ls.c: Likewise.
25596 * commands/test.c: Likewise.
25597 * disk/dmraid_nvidia.c: Likewise.
25598 * disk/i386/pc/biosdisk.c: Likewise.
25599 * disk/ieee1275/nand.c: Likewise.
25600 * disk/ieee1275/ofdisk.c: Likewise.
25601 * disk/lvm.c: Likewise.
25602 * disk/raid.c: Likewise.
25603 * disk/raid6_recover.c: Likewise.
25604 * disk/scsi.c: Likewise.
25605 * fs/affs.c: Likewise.
25606 * fs/cpio.c: Likewise.
25607 * fs/ext2.c: Likewise.
25608 * fs/hfs.c: Likewise.
25609 * fs/iso9660.c: Likewise.
25610 * fs/ntfs.c: Likewise.
25611 * fs/sfs.c: Likewise.
25612 * fs/udf.c: Likewise.
25613 * fs/ufs.c: Likewise.
25614 * fs/xfs.c: Likewise.
25615 * gencmdlist.sh: Likewise.
25616 * genmk.rb: Likewise.
25617 * include/grub/disk.h: Likewise.
25618 * include/grub/efi/api.h: Likewise.
25619 * include/grub/efi/efi.h: Likewise.
25620 * include/grub/efi/pe32.h: Likewise.
25621 * include/grub/elf.h: Likewise.
25622 * include/grub/fs.h: Likewise.
25623 * include/grub/i386/at_keyboard.h: Likewise.
25624 * include/grub/i386/pc/memory.h: Likewise.
25625 * include/grub/i386/pc/vbe.h: Likewise.
25626 * include/grub/i386/pci.h: Likewise.
25627 * include/grub/i386/tsc.h: Likewise.
25628 * include/grub/ieee1275/ieee1275.h: Likewise.
25629 * include/grub/ntfs.h: Likewise.
25630 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25631 * include/grub/sparc64/libgcc.h: Likewise.
25632 * include/grub/symbol.h: Likewise.
25633 * include/grub/types.h: Likewise.
25634 * include/multiboot2.h: Likewise.
25635 * io/gzio.c: Likewise.
25636 * kern/device.c: Likewise.
25637 * kern/disk.c: Likewise.
25638 * kern/efi/efi.c: Likewise.
25639 * kern/efi/mm.c: Likewise.
25640 * kern/elf.c: Likewise.
25641 * kern/file.c: Likewise.
25642 * kern/i386/dl.c: Likewise.
25643 * kern/i386/pc/init.c: Likewise.
25644 * kern/i386/pc/startup.S: Likewise.
25645 * kern/ieee1275/ieee1275.c: Likewise.
25646 * kern/ieee1275/init.c: Likewise.
25647 * kern/main.c: Likewise.
25648 * kern/mm.c: Likewise.
25649 * kern/powerpc/dl.c: Likewise.
25650 * kern/sparc64/dl.c: Likewise.
25651 * kern/x86_64/dl.c: Likewise.
25652 * lib/hexdump.c: Likewise.
25653 * loader/efi/appleloader.c: Likewise.
25654 * loader/i386/ieee1275/linux.c: Likewise.
25655 * loader/i386/pc/chainloader.c: Likewise.
25656 * loader/i386/pc/linux.c: Likewise.
25657 * loader/i386/pc/multiboot2.c: Likewise.
25658 * loader/ieee1275/multiboot2.c: Likewise.
25659 * loader/multiboot2.c: Likewise.
25660 * loader/multiboot_loader.c: Likewise.
25661 * loader/powerpc/ieee1275/linux.c: Likewise.
25662 * normal/completion.c: Likewise.
25663 * normal/menu_entry.c: Likewise.
25664 * partmap/apple.c: Likewise.
25665 * util/grub.d/10_hurd.in: Likewise.
25666 * util/hostfs.c: Likewise.
25667 * video/readers/png.c: Likewise.
25668
e2d70b5c
CW
256692010-01-03 Colin Watson <cjwatson@ubuntu.com>
25670
25671 * include/grub/misc.h (GNUC_PREREQ): New macro.
25672 (ATTRIBUTE_ERROR): New macro.
25673 * include/grub/list.h (grub_bad_type_cast_real): Use
25674 ATTRIBUTE_ERROR.
25675
a173283f 256762010-01-03 Carles Pina i Estany <carles@pina.cat>
25677
25678 * normal/menu_text.c (print_message): Change messages.
25679
7fa7ff74 256802010-01-03 Carles Pina i Estany <carles@pina.cat>
25681
25682 * normal/menu_entry.c (store_completion): Gettextizze.
25683
136d24f6 256842010-01-03 Carles Pina i Estany <carles@pina.cat>
25685
25686 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25687
f936862e 256882010-01-03 Carles Pina i Estany <carles@pina.cat>
25689
25690 * po/POTFILES: Sort correctly.
25691
29c44ad1 256922010-01-03 Carles Pina i Estany <carles@pina.cat>
25693
25694 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25695 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25696 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25697 full stop.
25698 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25699 summary. Gettextizze the strings.
25700 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25701 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25702 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25703 full stop.
25704 (GRUB_MOD_INIT): Remove command name from summary.
25705 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25706 summary.
25707 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25708 * term/i386/pc/serial.c (options): Add full stops.
25709 (GRUB_MOD_INIT): Remove command name from the summary.
25710
77a79592 257112010-01-03 Carles Pina i Estany <carles@pina.cat>
25712
25713 * commands/acpi.c: Gettextizze help strings and/or options. Include
25714 `grub/i18n.h' if needed.
25715 * commands/blocklist.c: Likewise.
25716 * commands/boot.c: Likewise.
25717 * commands/cat.c: Likewise.
25718 * commands/cmp.c: Likewise.
25719 * commands/configfile.c: Likewise.
25720 * commands/crc.c: Likewise.
25721 * commands/date.c: Likewise.
25722 * commands/echo.c: Likewise.
25723 * commands/efi/fixvideo.c: Likewise.
25724 * commands/efi/loadbios.c: Likewise.
25725 * commands/gptsync.c: Likewise.
25726 * commands/halt.c: Likewise.
25727 * commands/handler.c: Likewise.
25728 * commands/hdparm.c: Likewise.
25729 * commands/hexdump.c: Likewise.
25730 * commands/i386/cpuid.c: Likewise.
25731 * commands/i386/pc/drivemap.c: Likewise.
25732 * commands/i386/pc/halt.c: Likewise.
25733 * commands/i386/pc/pxecmd.c: Likewise.
25734 * commands/i386/pc/vbeinfo.c: Likewise.
25735 * commands/i386/pc/vbetest.c: Likewise.
25736 * commands/ieee1275/suspend.c: Likewise.
25737 * commands/keystatus.c: Likewise.
25738 * commands/loadenv.c: Likewise.
25739 * commands/ls.c: Likewise.
25740 * commands/lsmmap.c: Likewise.
25741 * commands/lspci.c: Likewise.
25742 * commands/memrw.c: Likewise.
25743 * commands/minicmd.c: Likewise.
25744 * commands/parttool.c: Likewise.
25745 * commands/password.c: Likewise.
25746 * commands/probe.c: Likewise.
25747 * commands/read.c: Likewise.
25748 * commands/reboot.c: Likewise.
25749 * commands/search.c: Likewise.
25750 * commands/sleep.c: Likewise.
25751 * commands/test.c: Likewise.
25752 * commands/true.c: Likewise.
25753 * commands/usbtest.c: Likewise.
25754 * commands/videotest.c: Likewise.
25755 * commands/xnu_uuid.c: Likewise.
25756 * disk/loopback.c: Likewise.
25757 * hello/hello.c: Likewise.
25758 * loader/i386/bsd.c: Likewise.
25759 * term/i386/pc/serial.c: Likewise.
25760 * po/POTFILES: Add new files.
25761
da8d5c53
CW
257622010-01-02 Colin Watson <cjwatson@ubuntu.com>
25763
25764 * term/i386/pc/at_keyboard.c
25765 (keyboard_controller_wait_untill_ready): Rename to ...
25766 (keyboard_controller_wait_until_ready): ... this. Update all users.
25767
33937904 257682010-01-01 Carles Pina i Estany <carles@pina.cat>
25769
25770 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25771 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25772 string using string width.
25773 * normal/menu_text.c (grub_print_message_indented): Use
25774 grub_print_spaces and not print_spaces.
25775 (print_timeout): Likewise.
25776 (print_spaces): Move to...
25777 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25778
3fd3b8d8
RM
257792010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25780
25781 Import from Gnulib.
25782
25783 * gnulib/getdelim.c: New file.
25784 * gnulib/getline.c: Likewise.
25785
33433555
VS
257862009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25787
25788 * include/grub/list.h (grub_assert_fail): Removed.
25789 (grub_bad_type_cast_real): New function.
25790 (grub_bad_type_cast): New macro.
25791 (GRUB_AS_LIST): Use grub_bad_type_cast.
25792 (GRUB_AS_LIST_P): Likewise.
e44721e8 25793 (GRUB_AS_NAMED_LIST): Likewise.
33433555 25794 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 25795 (GRUB_AS_PRIO_LIST): Likewise.
33433555 25796 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 25797 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 25798
f5a51306
VS
257992009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25800
25801 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25802 Fix syntax error.
25803
90d1e879
RM
258042009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25805
25806 * configure.ac: Check for TARGET_CFLAGS initialization before we
25807 initialize it ourselves (sigh).
25808 Move a few modifications to TARGET_CFLAGS to be unconditional
25809 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25810 eh_frame)
25811
25812 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25813 * term/i386/pc/at_keyboard.c
25814 (keyboard_controller_wait_untill_ready): Likewise.
25815 (keyboard_controller_led): Rename `led_status' paramter to avoid
25816 name conflict.
25817
465b5a81 258182009-12-28 Carles Pina i Estany <carles@pina.cat>
25819
25820 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25821 quotes.
25822
c181849b
VS
258232009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25824
25825 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25826
9c8739a4
VS
258272009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25828
25829 * normal/menu_text.c (grub_print_message_indented): Prevent
25830 past-the-end-of-array dereference.
25831
3e74249c
VS
258322009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25833
25834 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25835 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25836
64fd18ed 258372009-12-27 Carles Pina i Estany <carles@pina.cat>
25838
25839 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25840 * normal/main.c (grub_normal_read_line): Remove a space from the
25841 default prompt.
25842
714af9b9 258432009-12-27 Carles Pina i Estany <carles@pina.cat>
25844
25845 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25846 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25847 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25848 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25849 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25850 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25851 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25852
82f3e412 258532009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 25854
25855 * video/readers/jpeg.c (cmd): Declare.
25856 (grub_cmd_jpegtest): Use `grub_command_t' type.
25857 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25858 Assign to `cmd'.
25859 (GRUB_MOD_FINI): Use `cmd' to unregister.
25860 * video/readers/png.c (cmd): Declare.
25861 (grub_cmd_pngtest): Use `grub_command_t' type.
25862 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25863 Assign to `cmd'.
25864 (GRUB_MOD_FINI): Use `cmd' to unregister.
25865 * video/readers/tga.c (cmd): Declare.
25866 (grub_cmd_tgatest): Use `grub_command_t' type.
25867 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25868 Assign to `cmd'.
25869 (GRUB_MOD_FINI): Use `cmd' to unregister.
25870
82f3e412 258712009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 25872
25873 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25874 stops.
25875 * kern/corecmd.c (grub_register_core_commands): Likewise.
25876 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25877 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25878 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25879 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25880 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25881 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25882 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25883 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25884 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25885 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25886 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25887 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25888 * normal/handler.c (insert_handler): Likewise.
25889 * normal/main.c (GRUB_MOD_INIT): Likewise.
25890 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25891
fdcdbb66 258922009-12-26 Carles Pina i Estany <carles@pina.cat>
25893
25894 * commands/help.c (grub_cmd_help): Print the command name before the
25895 summary.
25896 (GRUB_MOD_INIT): Remove command name from the summary.
25897 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 25898 string as summary.
fdcdbb66 25899 * lib/arg.c (find_long): Print the command name before the summary.
25900 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25901 summary.
25902 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25903 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25904 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25905 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25906 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25907 * commands/date.c (GRUB_MOD_INIT): Likewise.
25908 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25909 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25910 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25911 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25912 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25913 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25914 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25915 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25916 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25917 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25918 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25919 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25920 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25921 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25922 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25923 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25924 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25925 * commands/password.c (GRUB_MOD_INIT): Likewise.
25926 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25927 * commands/read.c (GRUB_MOD_INIT): Likewise.
25928 * commands/search.c (GRUB_MOD_INIT): Likewise.
25929 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25930 * commands/test.c (GRUB_MOD_INIT): Likewise.
25931 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25932 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25933 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25934 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25935 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25936 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25937 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25938 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25939 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25940 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25941 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25942 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25943 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25944 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25945
9c288be2
VS
259462009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25947
25948 Use search command for preliminar UUID search.
25949
25950 * commands/search.c: Split into ...
25951 * commands/search_wrap.c: ...this
25952 * commands/search.c: ...and this.
25953 * commands/search_file.c: New file.
25954 * commands/search_label.c: New file.
25955 * commands/search_uuid.c: New file.
25956 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25957 Add commands/search_wrap.c, commands/search_file.c,
25958 commands/search_label.c and commands/search_uuid.c.
25959 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25960 (search_mod_SOURCES): Set to commands/search_wrap.c.
25961 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25962 search_label.mod.
25963 (search_fs_file_mod_SOURCES): New variable.
25964 (search_fs_file_mod_CFLAGS): Likewise.
25965 (search_fs_file_mod_LDFLAGS): Likewise.
25966 (search_label_mod_SOURCES): Likewise.
25967 (search_label_mod_CFLAGS): Likewise.
25968 (search_label_mod_LDFLAGS): Likewise.
25969 (search_fs_uuid_mod_SOURCES): New variable.
25970 (search_fs_uuid_mod_CFLAGS): Likewise.
25971 (search_fs_uuid_mod_LDFLAGS): Likewise.
25972 (fs_file_mod_SOURCES): Removed.
25973 (fs_file_mod_CFLAGS): Likewise.
25974 (fs_file_mod_LDFLAGS): Likewise.
25975 (fs_uuid_mod_SOURCES): Removed.
25976 (fs_uuid_mod_CFLAGS): Likewise.
25977 (fs_uuid_mod_LDFLAGS): Likewise.
25978 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25979 Set to util/grub-install.in.
25980 * disk/fs_file.c: Removed.
25981 * disk/fs_uuid.c: Likewise.
25982 * include/grub/search.h: New file.
25983 * util/grub-install.in: Handle sparc64.
25984 Create and use load.cfg.
25985 * util/sparc64/ieee1275/grub-install.in: Removed.
25986
db943399
VS
259872009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25988
25989 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25990 Ignore return status if CF is cleared.
25991 (grub_biosdisk_get_diskinfo_standard): Likewise.
25992
3fdae612
RM
259932009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25994
25995 * term/i386/pc/at_keyboard.c
25996 (keyboard_controller_wait_untill_ready): New function.
25997 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25998 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25999 for keyboard polling, rather than duplicate the same loop. This
26000 saves a few bytes in code size.
26001
7ebaa2b4
VS
260022009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26003
26004 Support for (pxe[:server[:gateway]]) syntax and
26005 use environment variable for PXE.
26006
26007 * commands/i386/pc/pxecmd.c (options): Removed.
26008 (print_ip): Removed.
26009 (grub_cmd_pxe): Removed
26010 (grub_cmd_pxe_unload): New function.
26011 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
26012 (grub_pxe_your_ip): Made static.
26013 (grub_pxe_default_server_ip): Likewise.
26014 (grub_pxe_default_gateway_ip): Likewise.
26015 (grub_pxe_blksize): Likewise.
26016 (parse_ip): New function.
26017 (grub_pxe_open): Support server and gateway specification.
26018 (grub_pxe_close): Free disk->data.
26019 (grub_pxefs_open): Use disk->data.
26020 (grub_pxefs_read): Likewise.
26021 (grub_env_write_readonly): New function.
26022 (set_mac_env): Likewise.
26023 (set_env_limn_ro): Likewise.
26024 (parse_dhcp_vendor): Likewise.
26025 (grub_pxe_detect): Set the environment variables.
26026 (set_ip_env): New function.
26027 (write_ip_env): Likewise.
26028 (grub_env_write_pxe_default_server): Likewise.
26029 (grub_env_write_pxe_default_gateway): Likewise.
26030 (grub_env_write_pxe_blocksize): Likewise.
26031 (GRUB_MOD_INIT(pxe)): Set environment variables.
26032 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
26033 (grub_pxe_mac_addr_t): ... this. All users updated.
26034 (grub_pxe_your_ip): Removed.
26035 (grub_pxe_server_ip): Likewise.
26036 (grub_pxe_gateway_ip): Likewise.
26037 (grub_pxe_blksize): Likewise.
26038
ec5f98ab 260392009-12-25 Carles Pina i Estany <carles@pina.cat>
26040
26041 * commands/help.c: Include `<grub/i18n.h>'.
26042 (grub_cmd_help): Gettextizze.
26043 (GRUB_MOD_INIT): Likewise.
26044 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
26045 (GRUB_MOD_INIT): Gettextizze.
26046 * commands/search.c: Include `<grub/i18n.h>'.
26047 (options): Gettextizze.
26048 (GRUB_MOD_INIT): Gettextizze.
26049 * lib/arg.c: Include `<grub/i18n.h>'.
26050 (help_options): Gettextizze.
26051 (find_long): Likewise.
26052 (grub_arg_show_help): Likewise.
26053 * normal/dyncmd.c: Include `<grub/i18n.h>'.
26054 (read_command_list): Gettextizze.
26055 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 26056 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 26057
22815526
RM
260582009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26059
26060 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
26061 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
26062 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
26063 (led_status): New variable.
26064 (keyboard_controller_led): New function.
26065 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
26066 update led status for caps lock, num lock and scroll lock.
26067
0ad46fd7
FZ
260682009-12-25 Felix Zielcke <fzielcke@z-51.de>
26069
26070 * util/hostdisk.c (open_device): Fix a comment.
26071
d0e158c2
RM
260722009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26073
26074 * util/grub-install.in (host_os): New variable.
26075 * util/i386/efi/grub-install.in (host_os): Likewise.
26076
401c0ad6
RM
260772009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26078
26079 * util/mkisofs/write.c (padblock_write): Abort when given an
26080 excedingly large embed image, instead of silently truncating it.
26081
d14d3370
RM
260822009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26083
26084 * include/multiboot.h: Indentation fixes.
26085
eeed10b4
RM
260862009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26087
26088 * include/multiboot.h (struct multiboot_aout_symbol_table)
26089 (struct multiboot_elf_section_header_table): New structure
26090 declarations (stolen from GRUB Legacy).
26091 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
26092 table information.
26093
26094 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
26095 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
26096 type aliases.
26097
681c70ab
RM
260982009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26099
26100 * include/multiboot.h: Make comments src2texi-friendly.
26101
e4d47d8d
RM
261022009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26103
26104 For consistency with [multiboot]/docs/boot.S.
26105
26106 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
26107 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
26108 (MULTIBOOT_MAGIC2): Rename from this ...
26109 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
26110
a0b70bda
RM
261112009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26112
26113 * include/multiboot.h: Remove `<grub/types.h>'.
26114 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
26115 types. Update all users.
26116
61ba42be 261172009-12-25 Carles Pina i Estany <carles@pina.cat>
26118
26119 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
26120 `couldn't' and `can not' by `cannot'.
26121 * commands/i386/pc/drivemap.c: Likewise.
26122 * disk/ata.c: Likewise.
26123 * disk/ieee1275/nand.c: Likewise.
26124 * fs/affs.c: Likewise.
26125 * fs/fat.c: Likewise.
26126 * fs/hfs.c: Likewise.
26127 * fs/hfsplus.c: Likewise.
26128 * fs/iso9660.c: Likewise.
26129 * fs/jfs.c: Likewise.
26130 * fs/minix.c: Likewise.
26131 * fs/reiserfs.c: Likewise.
26132 * fs/sfs.c: Likewise.
26133 * fs/udf.c: Likewise.
26134 * fs/ufs.c: Likewise.
26135 * fs/xfs.c: Likewise.
26136 * loader/powerpc/ieee1275/linux.c: Likewise.
26137 * loader/sparc64/ieee1275/linux.c: Likewise.
26138 * util/grub-probe.c: Likewise.
26139 * util/misc.c: Likewise.
26140
7fd0baee 261412009-12-24 Carles Pina i Estany <carles@pina.cat>
26142
26143 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
26144 grub_errno calls.
26145 * commands/acpi.c: Likewise.
26146 * commands/blocklist.c: Likewise.
26147 * commands/efi/loadbios.c: Likewise.
26148 * commands/i386/pc/drivemap.c: Likewise.
26149 * commands/loadenv.c: Likewise.
26150 * commands/memrw.c: Likewise.
26151 * commands/password.c: Likewise.
26152 * commands/videotest.c: Likewise.
26153 * disk/ata.c: Likewise.
26154 * disk/ata_pthru.c: Likewise.
26155 * disk/dmraid_nvidia.c: Likewise.
26156 * disk/ieee1275/nand.c: Likewise.
26157 * disk/ieee1275/ofdisk.c: Likewise.
26158 * disk/loopback.c: Likewise.
26159 * disk/lvm.c: Likewise.
26160 * disk/mdraid_linux.c: Likewise.
26161 * disk/raid.c: Likewise.
26162 * disk/raid6_recover.c: Likewise.
26163 * disk/scsi.c: Likewise.
26164 * efiemu/main.c: Likewise.
26165 * efiemu/mm.c: Likewise.
26166 * efiemu/pnvram.c: Likewise.
26167 * efiemu/symbols.c: Likewise.
26168 * font/font.c: Likewise.
26169 * fs/cpio.c: Likewise.
26170 * fs/hfsplus.c: Likewise.
26171 * fs/iso9660.c: Likewise.
26172 * fs/jfs.c: Likewise.
26173 * fs/minix.c: Likewise.
26174 * fs/ntfs.c: Likewise.
26175 * fs/ntfscomp.c: Likewise.
26176 * fs/reiserfs.c: Likewise.
26177 * fs/ufs.c: Likewise.
26178 * fs/xfs.c: Likewise.
26179 * gettext/gettext.c: Likewise.
26180 * include/grub/auth.h: Likewise.
26181 * kern/elf.c: Likewise.
26182 * kern/file.c: Likewise.
26183 * kern/ieee1275/init.c: Likewise.
26184 * kern/ieee1275/mmap.c: Likewise.
26185 * kern/ieee1275/openfw.c: Likewise.
26186 * kern/powerpc/dl.c: Likewise.
26187 * kern/sparc64/dl.c: Likewise.
26188 * lib/arg.c: Likewise.
26189 * loader/i386/bsd.c: Likewise.
26190 * loader/i386/bsdXX.c: Likewise.
26191 * loader/i386/efi/linux.c: Likewise.
26192 * loader/i386/efi/xnu.c: Likewise.
26193 * loader/i386/ieee1275/linux.c: Likewise.
26194 * loader/i386/linux.c: Likewise.
26195 * loader/i386/multiboot.c: Likewise.
26196 * loader/i386/pc/linux.c: Likewise.
26197 * loader/i386/pc/multiboot2.c: Likewise.
26198 * loader/i386/xnu.c: Likewise.
26199 * loader/ieee1275/multiboot2.c: Likewise.
26200 * loader/macho.c: Likewise.
26201 * loader/machoXX.c: Likewise.
26202 * loader/multiboot2.c: Likewise.
26203 * loader/multiboot_loader.c: Likewise.
26204 * loader/powerpc/ieee1275/linux.c: Likewise.
26205 * loader/sparc64/ieee1275/linux.c: Likewise.
26206 * loader/xnu.c: Likewise.
26207 * loader/xnu_resume.c: Likewise.
26208 * mmap/i386/pc/mmap.c: Likewise.
26209 * normal/menu_viewer.c: Likewise.
26210 * partmap/acorn.c: Likewise.
26211 * partmap/amiga.c: Likewise.
26212 * partmap/apple.c: Likewise.
26213 * script/lexer.c: Likewise.
26214 * term/gfxterm.c: Likewise.
26215 * term/i386/pc/serial.c: Likewise.
26216 * term/i386/pc/vga.c: Likewise.
26217 * term/ieee1275/ofconsole.c: Likewise.
26218 * term/terminfo.c: Likewise.
26219 * video/bitmap.c: Likewise.
26220 * video/efi_gop.c: Likewise.
26221 * video/efi_uga.c: Likewise.
26222 * video/fb/video_fb.c: Likewise.
26223 * video/i386/pc/vbe.c: Likewise.
26224 * video/readers/tga.c: Likewise.
26225 * video/video.c: Likewise.
26226
0ad46fd7 262272009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
26228
26229 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
26230 * commands/lspci.c: Likewise.
26231 * commands/probe.c: Likewise.
26232 * commands/xnu_uuid.c: Likewise.
26233 * conf/i386-coreboot.rmk: Likewise.
26234 * conf/i386-efi.rmk: Likewise.
26235 * conf/i386-ieee1275.rmk: Likewise.
26236 * conf/i386-pc.rmk: Likewise.
26237 * conf/powerpc-ieee1275.rmk: Likewise.
26238 * conf/sparc64-ieee1275.rmk: Likewise.
26239 * conf/x86_64-efi.rmk: Likewise.
26240 * fs/i386/pc/pxe.c: Likewise.
26241 * gettext/gettext.c: Likewise.
26242 * include/grub/efi/graphics_output.h: Likewise.
26243 * include/grub/i386/pc/memory.h: Likewise.
26244 * kern/env.c: Likewise.
26245 * kern/i386/qemu/startup.S: Likewise.
26246 * lib/i386/pc/biosnum.c: Likewise.
26247 * lib/i386/relocator.c: Likewise.
26248 * lib/i386/relocator_asm.S: Likewise.
26249 * lib/relocator.c: Likewise.
26250 * loader/i386/bsd.c: Likewise.
26251 * loader/i386/multiboot.c: Likewise.
26252 * loader/i386/pc/chainloader.c: Likewise.
26253 * loader/i386/xnu.c: Likewise.
26254 * loader/xnu.c: Likewise.
26255 * normal/main.c: Likewise.
26256 * normal/menu_text.c: Likewise.
26257 * util/getroot.c: Likewise.
26258 * util/grub-mkconfig_lib.in: Likewise.
26259 * util/grub.d/00_header.in: Likewise.
26260 * util/i386/pc/grub-mkimage.c: Likewise.
26261 * util/mkisofs/eltorito.c: Likewise.
26262 * util/mkisofs/exclude.h: Likewise.
26263 * util/mkisofs/hash.c: Likewise.
26264 * util/mkisofs/iso9660.h: Likewise.
26265 * util/mkisofs/joliet.c: Likewise.
26266 * util/mkisofs/mkisofs.c: Likewise.
26267 * util/mkisofs/mkisofs.h: Likewise.
26268 * util/mkisofs/multi.c: Likewise.
26269 * util/mkisofs/name.c: Likewise.
26270 * util/mkisofs/rock.c: Likewise.
26271 * util/mkisofs/tree.c: Likewise.
26272 * util/mkisofs/write.c: Likewise.
26273 * video/efi_gop.c: Likewise.
26274
009ec743
VS
262752009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
26276
26277 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
26278 size counting.
26279
0ad46fd7 262802009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
26281
26282 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
26283 * genmk.rb (class SCRIPT): Modify the target file instead of source.
26284
d3d30ea0
VS
262852009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26286
26287 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
26288 (GRUB_MOD_INIT(memrw)): Update help line.
26289
a34f5c70
VS
262902009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26291
26292 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
26293 Use grub_extcmd_t. All users updated.
26294 (options): New variable.
26295 (grub_cmd_read): Restructure for readability. Support "-v" option.
26296 (grub_cmd_write): Restructure for readability.
26297
0ad46fd7 262982009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
26299
26300 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
26301
0ad46fd7 263022009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
26303
26304 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
26305 with the actual contents of the correspondending make variable.
26306 * util/grub-mkrescue.in (pkglib_DATA): New variable.
26307 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
26308 specifying `*.lst' and `efiemu??.o'
26309
0ad46fd7 263102009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
26311
26312 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
26313 after function name.
26314 Noticed by Rene Engelhard <rene@debian.org>.
26315
dc77a799
VS
263162009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26317
26318 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
26319 (options): New variable.
26320 (iospace): Likewise.
26321 (grub_lspci_iter): List IO spaces if "-i" was given.
26322 (grub_cmd_lspci): Parse options.
26323 (GRUB_MOD_INIT(lspci)): Use extcmd.
26324 (GRUB_MOD_FINI(lspci)): Likewise.
26325
0ad46fd7 263262009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
26327
26328 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26329 `function' keyword.
26330 Patch by Tony Mancill <tmancill@debian.org>.
26331
b5d5993b
VS
263322009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26333
26334 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26335 (grub_uhci_portstatus): Likewise.
26336 (grub_uhci_portstatus): Add necessary delay.
11d18281 26337 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 26338
941903f2 263392009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 26340
941903f2 26341 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26342 (GRUB_MOD_INIT): Likewise.
26343 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 26344 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26345 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 26346 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26347 (enable_rom_area): Likewise.
26348 (GRUB_MOD_INIT): Likewise.
26349 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26350 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26351 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26352 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26353 * commands/hexdump.c (options): Likewise.
26354 * commands/i386/cpuid.c (options): Likewise.
26355 (GRUB_MOD_INIT): Likewise.
26356 * commands/i386/pc/drivemap.c (options): Likewise.
26357 (GRUB_MOD_INIT): Likewise.
26358 * commands/i386/pc/halt (options): Likewise.
26359 (GRUB_MOD_INIT): Likewise.
26360 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26361 * commands/i386/pc/pxecmd.c (options): Likewise.
26362 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26363 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26364 * commands/keystatus.c (options): Likewise.
26365 (GRUB_MOD_INIT): Likewise.
26366 * commands/loadenv.c (options): Likewise.
26367 * commands/ls.c (options): Likewise.
26368 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26369 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26370 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26371 * commands/parttool.c (helpmsg): Likewise.
26372 * commands/probe.c (options): Likewise.
26373 * commands/read.c (GRUB_MOD_INIT): Likewise.
26374 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26375 * commands/search.c (options): Likewise.
26376 * commands/sleep.c (options): Likewise.
26377 * commands/test.c (GRUB_MOD_INIT): Likewise.
26378 * commands/true.c (GRUB_MOD_INIT): Likewise.
26379 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26380 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26381 * lib/arg.c (help_options): Likewise.
e9bbb4e7 26382 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26383 `$(XGETTEXT)'.
98a50553 26384 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 26385
0ad46fd7 263862009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 26387
ef3c2c3a 26388 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
26389 instead of specifying them explicit.
26390
7922f68b
RM
263912009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26392
26393 * NEWS: Add grub-probe support for GNU/Hurd.
26394
537ce47f
RM
263952009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26396
26397 * NEWS: gettext was added after 1.97.
26398
9b214e3a
RM
263992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26400
26401 * util/mkisofs/msdos_partition.h: New file (based on
26402 include/grub/msdos_partition.h).
26403 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26404 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26405 (ld_options, main): Recognize --protective-msdos-label.
26406 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26407 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26408 (padblock_write): If `use_protective_msdos_label' is set, patch a
26409 protective DOS-style label in the output image.
26410
26411 * util/grub-mkrescue.in: Use --protective-msdos-label.
26412
e9309813
RM
264132009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26414
26415 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26416 boot.
26417
0ae56929
RM
264182009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26419
26420 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26421 variables.
26422 (ld_options, main): Recognize `--embedded-boot'.
26423 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26424 declarations.
26425 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26426 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26427 (padblock_write): Likewise. Rewrite to support embedded boot image.
26428
26429 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26430 for BIOS-based disk boot instead of only ElTorito.
26431
b15937b1
RM
264322009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26433
26434 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26435 build (not needed for bootstrap).
26436
52cc3ce0
RM
264372009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26438
26439 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26440 from i386-pc build (not needed for bootstrap).
26441 Rewrite a pair of strings.
26442
36f5ff04
RM
264432009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26444
26445 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26446
973c6c85 264472009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
26448
26449 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26450
05d21547
AB
264512009-12-21 Andreas Born <futur.andy@googlemail.com>
26452
26453 * kern/env.c (grub_env_context_open): Mark exported variable for
26454 reexport.
26455
0175d51f
AB
264562009-12-21 Andreas Born <futur.andy@googlemail.com>
26457
26458 * kern/env.c (grub_env_export): Create nonexistent variables before
26459 exporting.
26460
7f39d92f 264612009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 26462
7f39d92f 26463 * include/grub/auth.h: Include `<grub/i18n.h>'.
26464 (GRUB_GET_PASSWORD): Gettextizze string.
26465 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26466 menu_text.c.
26467 (grub_utf8_to_ucs4_alloc): Fix indentation.
26468 (grub_print_ucs4): Likewise.
26469 (grub_getstringwidth): Likewise.
26470 (print_message_indented): New declaration.
26471 * normal/auth.c: Include `<grub/i18n.h>'.
26472 (grub_auth_check_authentication): Gettexttize string.
26473 * normal/cmdline.c: Include `<grub/i18n.h>'.
26474 (grub_cmdline_get): Gettextizze.
26475 * normal/color.c: Include `<grub/i18n.h>'.
26476 (grub_parse_color_name_pair): Gettexttize strings.
26477 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26478 string (use `print_message_indented').
26479 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26480 `include/grub/normal.h'.
26481 (print_message_indented): Renamed to ...
26482 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26483 used in normal/main.c).
26484 (print_message): Use `grub_print_message_indented' instead of
26485 `print_message_indented'.
26486 (print_timeout): Likewise.
26487 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26488 (grub_normal_print_device_info): Gettexttize strings.
26489 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26490
3041d898
VS
264912009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26492
26493 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26494 of arguments. Return number of tokens and not arguments. All users
26495 updated.
26496
de15bf8e
VS
264972009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26498
26499 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26500 non-MSDOS paritions.
26501
e0a6ca52
VS
265022009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26503
26504 * include/grub/types.h (UNUSED): Removed since it conflicts with
26505 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26506 Reported by Grégoire Sutre.
26507
b99518d1 265082009-12-19 Carles Pina i Estany <carles@pina.cat>
26509
26510 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26511 (grub_print_ucs4_alloc): Likewise.
26512 (grub_getstringwidth): Likewise.
26513 * normal/main.c (grub_normal_init_page): Gettextize version string.
26514 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26515 (getstringwidth): Renamed to ...
26516 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26517 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26518 (grub_print_ucs4): Remove `static' qualifer (now used in
26519 normal/main.c).
26520 * po/POTFILES: Add normal/main.c.
26521
bfd5e52b 265222009-12-19 Carles Pina i Estany <carles@pina.cat>
26523
26524 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26525 (print_message_indented): Add `margin_left' and `margin_right'
26526 parameters.
26527 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26528 strings.
26529 (print_timeout): Use `print_message_indented' to print the message.
26530 Deletes `second_stage' parameter.
26531 (run_menu): Update `print_timeout' calls.
26532
5a1ad2b9
VS
265332009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26534
26535 Fix console palette on OpenFirmware.
26536
26537 * term/ieee1275/ofconsole.c (MAX): Removed.
26538 (colors): Redone based on VGA palette.
26539 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26540 colors are supported.
26541 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26542
b045f00a
VS
265432009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26544
26545 Fix potential EfiEmu double prepare.
26546
26547 * efiemu/main.c (prepared): New variable
26548 (grub_efiemu_unload): Set prepare to '0'.
26549 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26550
26551 set_virtual_address_map support.
26552
26553 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26554 prototype.
26555 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26556 prototype.
26557 (grub_efiemu_crc32): Likewise.
26558 (grub_efiemu_crc64): Likewise.
26559 (grub_efiemu_set_virtual_address_map): Likewise.
26560 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26561 New definition.
26562 (grub_autoefi_set_virtual_address_map): Likewise.
26563 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26564 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26565 Restructure flow to accomodate it.
26566 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26567 (grub_efiemu_crc): Recompute CRC32.
26568 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26569 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26570 * efiemu/symbols.c (relocated_handle): New variable.
26571 (grub_efiemu_free_syms): Free relocated_handle.
26572 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26573 (grub_efiemu_write_sym_markers): New function.
26574 (grub_efiemu_set_virtual_address_map): Likewise.
26575
26576 Newer XNU parameters.
26577
26578 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26579 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26580 (grub_xnu_fill_devicetree): New prototype.
26581 (grub_xnu_heap_real_start): New variable.
26582 * loader/xnu.c (get_name_ptr): New function.
26583 (grub_xnu_load_driver): Fill namelen and name.
26584
26585 64-bit xnu support.
26586
26587 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26588 and 'loader/macho64.c'.
26589 * conf/i386-pc.rmk: Likewise.
26590 * conf/x86_64-efi.rmk: Likewise.
26591 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26592 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26593 * include/grub/macho.h (grub_macho_segment64): New structure.
26594 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26595 (grub_macho_size32): ... to this.
26596 (grub_macho32_get_entry_point): Renamed from ...
26597 (grub_macho_get_entry_point32): ... to this.
26598 (grub_macho_contains_macho64): New prototype.
26599 (grub_macho_size64): Likewise.
26600 (grub_macho_get_entry_point64): Likewise.
26601 (grub_macho32_load): Renamed from ...
26602 (grub_macho_load32): ... to this.
26603 (grub_macho32_filesize): Renamed from ...
26604 (grub_macho_filesize32): ... to this.
26605 (grub_macho32_readfile): Renamed from ...
26606 (grub_macho_readfile32): ... to this.
26607 (grub_macho_filesize64): New prototype.
26608 (grub_macho_readfile64): Likewise.
26609 (grub_macho_parse32): Likewise.
26610 (grub_macho_parse64): Likewise.
26611 * loader/macho.c: Split into ...
26612 * loader/machoXX.c: ... and this. Replace 32 with XX.
26613 * loader/macho32.c: New file.
26614 * loader/macho64.c: Likewise.
26615 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26616 (grub_cmd_xnu_kernel): Make 32-bit only.
26617 (grub_cmd_xnu_kernel64): New function.
26618 (grub_xnu_load_driver): Support Mach-O 64.
26619 (grub_cmd_xnu_mkext): Likewise.
26620 * util/grub.d/30_os-prober.in (osx_entry): New function.
26621 Generate entries for 64-bit boot too.
26622
26623 Eliminate ad-hoc tree format in XNU and EfiEmu.
26624
26625 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26626 * efiemu/pnvram.c: Rewritten to use environment variables.
26627 All users updated.
26628
26629 Inline utf16_to_utf8.
26630
26631 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26632 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26633 All users updated.
26634 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26635
26636 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26637 * commands/usbtest.c (grub_usb_get_string): ... move here.
26638 (usb_print_str): Fix error handling.
26639 * include/grub/usb.h (grub_usb_get_string): Remove.
26640
26641 UTF-8 to UTF-16 transformation.
26642
26643 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26644 (charset_mod_SOURCES): New variable.
26645 (charset_mod_CFLAGS): Likewise.
26646 (charset_mod_LDFLAGS): Likewise.
26647 * include/grub/utf.h: New file.
26648 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26649
26650 Support for device properties.
26651
26652 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26653 (grub_xnu_devprop_device_header): Likewise.
26654 (grub_xnu_devprop_device_descriptor): Likewise.
26655 (grub_xnu_devprop_add_device): New prototype.
26656 (grub_xnu_devprop_remove_device): Likewise.
26657 (grub_xnu_devprop_remove_property): Likewise.
26658 (grub_xnu_devprop_add_property_utf8): Likewise.
26659 (grub_xnu_devprop_add_property_utf16): Likewise.
26660 (grub_cpu_xnu_init): Likewise.
26661 (grub_cpu_xnu_fini): Likewise.
26662 (grub_cpu_xnu_unload): Likewise.
26663 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26664 (property_descriptor): Likewise.
26665 (devices): New variable.
26666 (grub_xnu_devprop_remove_property): New function.
26667 (grub_xnu_devprop_add_device): Likewise.
26668 (grub_xnu_devprop_remove_device): Likewise.
26669 (grub_xnu_devprop_add_property): Likewise.
26670 (grub_xnu_devprop_add_property_utf8): Likewise.
26671 (grub_xnu_devprop_add_property_utf16): Likewise.
26672 (hextoval): Likewise.
26673 (grub_cpu_xnu_fill_devprop): Likewise.
26674 (grub_cmd_devprop_load): Likewise.
26675 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26676 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26677 (cmd_devprop_load): New variable.
26678 (grub_cpu_xnu_init): New function.
26679 (grub_cpu_xnu_fini): Likewise.
26680 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26681 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26682 (grub_cmd_xnu_devtree): Likewise.
26683 (hextoval): New function.
26684 (unescape): Likewise.
26685 (grub_xnu_fill_devicetree): Likewise.
26686
26687 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26688 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26689
0945f181
VS
266902009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26691
26692 Workaround for broken ATI VBE.
26693
26694 * video/i386/pc/vbe.c (last_set_mode): New variable.
26695 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26696 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26697 (grub_video_vbe_setup): Don't check for reserved flag.
26698
0ad46fd7 266992009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
26700
26701 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26702 the `find' command.
26703
c179ebe4
VS
267042009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26705
26706 UUID support for HFS.
26707
26708 * fs/hfs.c (grub_hfs_uuid): New function.
26709 (grub_hfs_fs): New value .uuid.
26710 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26711
0ad46fd7 267122009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
26713
26714 Fix a segfault with parsing unknown long options.
26715
26716 * util/grub-mkrelpath.c (options): Zero terminate it.
26717
c4a3e41a
CPE
267182009-12-13 Carles Pina i Estany <carles@pina.cat>
26719
26720 * include/grub/misc.h (grub_puts): New declaration.
26721 (grub_puts_): Likewise.
a22008a6 26722 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
26723 (grub_puts_): Likewise.
26724
2e8a7602
RM
267252009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26726
26727 * util/grub-probe.c (probe): Improve error message.
26728
b50b77b9
RM
267292009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26730
26731 * loader/i386/multiboot_elfxx.c
26732 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26733 initialization.
26734
267352009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26736
26737 Relocator framework
26738
26739 * loader/i386/xnu_helper.S: Removed. All users updated.
26740 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26741 (relocator_mod_SOURCES): New variable.
26742 (relocator_mod_CFLAGS): Likewise.
26743 (relocator_mod_LDFLAGS): Likewise.
26744 (relocator_mod_ASFLAGS): Likewise.
26745 * conf/x86_64.rmk: Likewise.
26746 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26747 (grub_multiboot_payload_entry_offset): Likewise.
26748 (grub_multiboot_forward_relocator): Likewise.
26749 (grub_multiboot_forward_relocator_end): Likewise.
26750 (grub_multiboot_backward_relocator): Likewise.
26751 (grub_multiboot_backward_relocator_end): Likewise.
26752 (grub_multiboot_payload_eip): New variable.
26753 (grub_multiboot_payload_orig): Likewise.
26754 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26755 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26756 * include/grub/i386/memory.h
26757 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26758 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26759 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26760 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26761 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26762 * include/grub/i386/relocator.h: New file.
26763 * include/grub/x86_64/relocator.h: Likewise.
26764 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26765 (XNU_RELOCATOR): New macro.
26766 (grub_xnu_launcher_start): Remove.
26767 (grub_xnu_launcher_end): Likewise.
26768 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26769 (grub_xnu_heap_real_start): Remove.
26770 (grub_xnu_heap_start): Change to void *. All users updated.
26771 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26772 * lib/i386/relocator.c: New file.
26773 * lib/i386/relocator_asm.S: Likewise.
26774 * lib/i386/relocator_backward.S: Likewise.
26775 * lib/mips/relocator.c: Likewise.
26776 * lib/mips/relocator_asm.S: Likewise.
26777 * lib/relocator.c: Likewise.
26778 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26779 (entry): Removed.
26780 (playground): Likewise.
26781 (grub_multiboot_payload_orig): New variable.
26782 (grub_multiboot_payload_dest): Likewise.
26783 (grub_multiboot_payload_size): Likewise.
26784 (grub_multiboot_payload_eip): Likewise.
26785 (grub_multiboot_payload_esp): Likewise.
26786 (grub_multiboot_boot): Use grub_relocator32_boot.
26787 (grub_multiboot_unload): Free relocators.
26788 (grub_multiboot): Setup stack. Use relocators.
26789 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26790 (grub_multiboot_load_elfXX): Use relocators.
26791 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26792 (grub_multiboot_payload_size): Likewise.
26793 (grub_multiboot_payload_dest): Likewise.
26794 (grub_multiboot_payload_entry_offset): Likewise.
26795 (grub_multiboot_forward_relocator): Likewise.
26796 (grub_multiboot_backward_relocator): Likewise.
26797 (grub_multiboot_real_boot): Likewise.
26798 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26799 (grub_xnu_entry_point): Likewise.
26800 (grub_xnu_arg1): Likewise.
26801 (grub_xnu_stack): Likewise.
26802 (grub_xnu_launch): Removed.
26803 (grub_xnu_boot_resume): New function.
26804 (grub_xnu_boot): Use relocators.
26805 * loader/i386/xnu_helper.S: Removed.
26806 * loader/xnu.c (grub_xnu_heap_start): New variable.
26807 (grub_xnu_heap_size): Likewise.
26808 (grub_xnu_heap_malloc): Use relocators.
26809 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26810
29eb90c6
VS
268112009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26812
26813 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26814 anything.
26815
31027430
CPE
268162009-12-13 Carles Pina i Estany <carles@pina.cat>
26817
26818 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26819 GRUB_ERR_NONE before calling grub_env_set.
26820
dc0c71d9
RM
268212009-12-12 Robert Millan <rmh@aybabtu.com>
26822
26823 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26824 * genmk.rb (video): New variable.
26825 (CLEANFILES, VIDEOFILES): Add #{video}.
26826 (#{video}): New target rule.
26827 * genvideolist.sh: New file.
26828 * Makefile.in (pkglib_DATA): Add video.lst.
26829 (video.lst): New target rule.
26830 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26831 `video.lst'.
26832 * util/grub.d/30_os-prober.in: Replace `vbe' with
26833 ${GRUB_VIDEO_BACKEND}.
26834
2a4bfcf0
RM
268352009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26836
26837 * THANKS: Add David Miller.
26838
2a3aa4d5
RM
268392009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26840
26841 libpciaccess support.
26842
26843 * Makefile.in (LIBPCIACCESS): New variable.
26844 (enable_grub_emu_pci): Likewise.
26845 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26846 util/pci.c and commands/lspci.c.
26847 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26848 * configure.ac (grub-emu-pci): New option.
26849 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26850 (grub_pci_device_unmap_range): Likewise.
26851 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26852 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26853 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26854 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26855 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26856 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26857 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26858 * include/grub/pciutils.h: New file.
26859 * util/pci.c: Likewise.
26860
0ad46fd7 268612009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
26862
26863 * util/misc.c: Don't include <errno.h> twice.
26864
0ad46fd7 268652009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
26866
26867 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26868 name in an error message.
26869 (grub_biosdisk_rw): Likewise.
26870
2e59983c
VS
268712009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26872
26873 Eliminate NTFS 4Gib barrier.
26874
26875 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26876 (read_run_data): Likewise.
26877 (grub_ntfs_read_run_list): Likewise.
26878 (grub_ntfs_read_block): Likewise.
26879 (grub_ntfs_iterate_dir): Likewise.
26880 (read_mft): Likewise.
26881 (read_data): Likewise.
26882 Use COM_LOG_LEN.
26883 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26884 to avoid 64-bit division
26885 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26886 (grub_ntfs_rlst): Use grub_disk_addr_t.
26887
71ee178a
VS
268882009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26889
26890 Eliminate grub-fstest 4Gib barrier.
26891
26892 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26893 (read_file): Fix error reporting.
26894
2520d4b8
VS
268952009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26896
26897 Eliminate hexdump 4Gib barrier.
26898
26899 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26900 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26901
e1f27065
VS
269022009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26903
26904 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26905 Fixes amarsh bug.
26906
1a0f7f45
RM
269072009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26908
26909 Remove miscellaneous files in distclean target.
26910
26911 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26912
c631d9fb
CW
269132009-12-09 Colin Watson <cjwatson@ubuntu.com>
26914
26915 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26916 if they're already set. This resolves the conflict between my
26917 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26918 fixing the --grub-probe option again.
26919 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26920 change on 2009-10-06, so that we now once again source
26921 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26922
7c7b6106
RM
269232009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26924
26925 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26926 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26927 `util/devicemap.c'.
26928
e3069ec1
CPE
269292009-12-08 Carles Pina i Estany <carles@pina.cat>
26930
26931 * include/grub/misc.h (grub_printf_): New declaration.
26932 * kern/misc.c (grub_printf_): New definition.
26933 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26934 instead of `grub_printf' and `_'.
26935 * normal/menu_entry.c (store_completion): Likewise.
26936 (run): Likewise.
26937 (grub_menu_entry_run): Likewise.
26938 * normal/menu_text.c (grub_wait_after_message): Likewise.
26939 (notify_booting): Likewise.
26940 (notify_fallback): Likewise.
26941 (notify_execution_failure): Likewise.
26942
d6ceebf1
CW
269432009-12-07 Colin Watson <cjwatson@ubuntu.com>
26944
26945 * configure.ac: Check for vasprintf.
26946 * util/misc.c (asprintf): Move allocation from here ...
26947 (vasprintf): ... to here. New function.
26948 (xasprintf): New function.
26949 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26950 prototypes.
26951 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26952 * util/grub-mkfont.c (write_font): Likewise.
26953 * util/grub-probe.c (probe): Likewise.
26954 * util/hostdisk.c (make_device_name): Likewise.
26955
de6daa8b
DM
269562009-12-06 David S. Miller <davem@sunset.davemloft.net>
26957
26958 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26959 anything even prefixed with 'cdrom' as a cdrom.
26960
0ad46fd7 269612009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
26962
26963 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26964 mount points.
26965
98d3dc02
CPE
269662009-12-05 Carles Pina i Estany <carles@pina.cat>
26967
26968 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26969 grub_gettext_msg_list.
26970 (grub_gettext_gettranslation_from_position): Return const char *
26971 and not char *.
a2c1332b 26972 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
26973 returns from the list if existing there.
26974 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26975 (grub_gettext_delete_list): Delete the list.
26976 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26977 lang environment variable is changed.
26978 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26979
b283f108
VS
269802009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26981
26982 Rename kernel.mod to kernel.img.
26983
26984 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26985 (kernel_mod_EXPORTS): Rename to ...
26986 (kernel_img_EXPORTS): ... this.
26987 (kernel_mod_SOURCES): Rename to ...
26988 (kernel_img_SOURCES): ... this.
26989 (kernel_mod_HEADERS): Rename to ...
26990 (kernel_img_HEADERS): ... this. All users updated.
26991 (kernel_mod_CFLAGS): Rename to ...
26992 (kernel_img_CFLAGS): ... this.
26993 (kernel_mod_ASFLAGS): Rename to ...
26994 (kernel_img_ASFLAGS): ... this.
26995 (kernel_mod_LDFLAGS): Rename to ...
26996 (kernel_img_LDFLAGS): ... this.
26997 * conf/x86_64-efi.rmk: Likewise.
26998 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26999 (read_kernel_image): ... this. All users updated.
27000 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
27001
69055f8a
CPE
270022009-12-05 Carles Pina i Estany <carles@pina.cat>
27003
27004 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
27005 (print_spaces): New function.
27006 (grub_print_ucs4): New function.
27007 (getstringwidth): New function.
27008 (print_message_indented): New function.
27009 (print_message): Gettexttize strings using print_message_indented.
27010 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
27011 width.
27012 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 27013 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
27014 Gettextize.
27015 * normal/menu_entry.c (store_completion): Cleanup the gettextized
27016 string.
27017 (run): Likewise.
27018 (grub_menu_entry_run): Likewise.
27019 * PO/POTFILES: Add normal/menu_entry.c.
27020
f616f51c
VS
270212009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27022
27023 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
27024
57bbe3be
CPE
270252009-12-05 Carles Pina i Estany <carles@pina.cat>
27026
27027 * util/grub-install.in: Install gettext .mo files.
27028 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
27029
013d67a1
CPE
270302009-12-05 Carles Pina i Estany <carles@pina.cat>
27031
27032 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
27033 grub_dprintf.
27034
fb954db0
RM
270352009-12-05 Robert Millan <rmh.grub@aybabtu.com>
27036
27037 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
27038 non-firmware-dependant one in realmode.S takes precedence.
27039
6b8474f8
RM
270402009-12-04 Robert Millan <rmh.grub@aybabtu.com>
27041
27042 * commands/halt.c: Replace misc arch-specific headers with
27043 `<grub/misc.h>'.
27044 * commands/reboot.c: Likewise.
27045 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
27046 `<grub/misc.h>'.
27047 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
27048 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
27049 (kernel_img_SOURCES): ... to here.
27050
27051 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
27052 * include/grub/i386/pc/init.h: Likewise.
27053 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27054 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27055
27056 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
27057
27058 * include/grub/i386/halt.h: Remove.
27059 * include/grub/i386/reboot.h: Likewise.
27060
27061 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
27062
4b2e6ca2
DM
270632009-12-03 David S. Miller <davem@sunset.davemloft.net>
27064
27065 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
27066 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
27067 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
27068 "progname.h"
27069 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27070 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27071 (usage): Add missing comma in printf.
27072
5239348f
RM
270732009-12-02 Robert Millan <rmh.grub@aybabtu.com>
27074
27075 Use the same reboot approach on i386 coreboot and qemu as we do on
27076 BIOS.
27077
27078 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
27079 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
27080 * kern/i386/reboot.c: Remove.
27081 * include/grub/i386/reboot.h (grub_reboot): Export function.
27082 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
27083 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
27084 0xf000:0xfff0 instead of 0xffff:0x0000.
27085 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
27086 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
27087
ef34cbd4
RM
270882009-11-30 Robert Millan <rmh.grub@aybabtu.com>
27089
27090 Fix $srcdir != $objdir build.
27091
27092 * Makefile.in (po/%.po): Rewrite as ...
27093 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
27094
dc9837ea
ST
270952009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
27096
27097 Fix GNU/Hurd grub-install crash.
27098 * util/grub-probe.c (probe): Try to access `path' only when it is not
27099 NULL.
27100
2f857f98
VS
271012009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27102
27103 Correct module naming.
27104
27105 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27106 (GRUB_MOD_INIT(efi_uga)): ... to this
27107 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27108 (GRUB_MOD_FINI(efi_uga)): ... to this
27109 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27110 (GRUB_MOD_INIT(efi_gop)): ... to this
27111 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27112 (GRUB_MOD_FINI(efi_gop)): ... to this
27113
c5448046
RM
271142009-11-28 Robert Millan <rmh.grub@aybabtu.com>
27115
27116 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
27117 translatable.
27118 (usage): Translate `arg' strings using gettext().
27119 Thanks to Jordi Mallach for the suggestion.
27120
c85184ad
VS
271212009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27122
27123 GOP support. Based on patch from Bean
27124 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27125
27126 * video/efi_gop.c: New file.
27127 * include/grub/efi/graphics_output.h: Likewise.
27128 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
27129 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27130 variables.
27131 * conf/x86_64-efi.rmk: Likewise.
27132
8a4c48d8
VS
271332009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27134
27135 Rename efi_fb to efi_uga.
27136
27137 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27138 'efi_uga.mod'.
27139 (efi_fb_mod_SOURCES): Rename this ...
27140 (efi_uga_mod_SOURCES): ... to this.
27141 (efi_fb_mod_CFLAGS): Rename this ...
27142 (efi_uga_mod_CFLAGS): ... to this.
27143 (efi_fb_mod_LDFLAGS): Rename this ...
27144 (efi_uga_mod_LDFLAGS): ... to this.
27145 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27146 'efi_uga.mod'.
27147 (efi_fb_mod_SOURCES): Rename this ...
27148 (efi_uga_mod_SOURCES): ... to this.
27149 (efi_fb_mod_CFLAGS): Rename this ...
27150 (efi_uga_mod_CFLAGS): ... to this.
27151 (efi_fb_mod_LDFLAGS): Rename this ...
27152 (efi_uga_mod_LDFLAGS): ... to this.
27153 * video/efi_fb.c: Move this ...
27154 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
27155
fb6c1a7b
RM
271562009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27157
27158 * po/README: New file. Explain our PO file workflow.
27159
3bc7896c
RM
271602009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27161
27162 * po/ChangeLog: Remove. Move relevant entries back to ...
27163 * ChangeLog: ... here.
27164 * po/ca.po: Remove (now handled by TLP).
27165 * po/id.po: Likewise.
27166 * po/zh_CN.po: Likewise.
27167 * Makefile.in (LINGUAS): Initialize in a way that supports
27168 empty set.
27169
9ed4841d
RM
271702009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27171
27172 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
27173 reliing on po/LINGUAS.
27174 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
27175 (po/%.po): ... this.
27176
0ad46fd7 271772009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
27178
27179 * util/i386/efi/grub-mkimage.c: Include "progname.h".
27180 (main): Use `program_name' instead of nonexistent `progname'.
27181
e30dd392
FZ
271822009-11-26 Felix Zielcke <fzielcke@z-51.de>
27183
27184 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27185 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
27186
7656de4f
RM
271872009-11-26 Robert Millan <rmh.grub@aybabtu.com>
27188
27189 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
27190 commit.
27191 * conf/i386-efi.rmk: Likewise.
27192 * conf/i386-ieee1275.rmk: Likewise.
27193 * conf/powerpc-ieee1275.rmk: Likewise.
27194 * conf/sparc64-ieee1275.rmk: Likewise.
27195 * conf/x86_64-efi.rmk: Likewise.
27196
db77c4d4
FZ
271972009-11-26 Felix Zielcke <fzielcke@z-51.de>
27198
27199 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
27200
a755bb04
FZ
272012009-11-26 Felix Zielcke <fzielcke@z-51.de>
27202
27203 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
27204
8a4c07fd
RM
272052009-11-26 Robert Millan <rmh.grub@aybabtu.com>
27206
27207 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
27208 (grub_mkdevicemap_SOURCES): New variable.
27209 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
27210 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
27211 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
27212 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
27213 (grub_mkdevicemap_SOURCES): Remove.
27214 * conf/i386-efi.rmk: Likewise.
27215 * conf/i386-ieee1275.rmk: Likewise.
27216 * conf/i386-pc.rmk: Likewise.
27217 * conf/powerpc-ieee1275.rmk: Likewise.
27218 * conf/sparc64-ieee1275.rmk: Likewise.
27219 * conf/x86_64-efi.rmk: Likewise.
27220 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
27221 (usage): Fix strings to use `program_name'.
27222 (main): Initialize gettext.
27223 * util/grub-editenv.c: Likewise.
27224 * util/grub-emu.c: Likewise.
27225 * util/grub-fstest.c: Likewise.
27226 * util/grub-mkdevicemap.c: Likewise.
27227 * util/grub-mkfont.c: Likewise.
27228 * util/grub-mkrelpath.c: Likewise.
27229 * util/grub-pe2elf.c: Likewise.
27230 * util/grub-probe.c: Likewise.
27231 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
27232 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27233 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27234
27235 * util/misc.c: Include `"progname.h"'.
27236 (progname): Remove variable.
27237 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
27238
6f61ed55
FZ
272392009-11-25 Felix Zielcke <fzielcke@z-51.de>
27240
27241 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
27242 printf and print a newline after the menuentry header line.
27243 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27244
f022876b
FZ
272452009-11-25 Felix Zielcke <fzielcke@z-51.de>
27246
27247 autoconf >= 2.60 support $(localedir).
27248
27249 * INSTALL: Note that autoconf 2.60 is required.
27250 * configure.ac (AC_PREREQ): Bump to 2.60.
27251 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
27252 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27253
6717926e
YB
272542009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
27255
27256 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
27257 aclocal is run.
27258
08806a54
RM
272592009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27260
27261 * normal/main.c (grub_normal_read_line): Fix off-by-one
27262 buffer overflow.
27263
13b33fba
RM
272642009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27265
27266 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
27267 "parser.grub" in grub_command_execute() call.
27268
4a8572e9
CPE
272692009-11-24 Carles Pina i Estany <carles@pina.cat>
27270
27271 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
27272 * conf/i386-efi.rmk: Likewise.
27273 * conf/i386-ieee1275.rmk: Likewise.
27274 * conf/i386-pc.rmk: Likewise.
27275 * conf/powerpc-ieee1275.rmk: Likewise.
27276 * conf/sparc64-ieee1275.rmk: Likewise.
27277 * conf/x86_64-efi.rmk: Likewise.
27278 * gettext/gettex.c: Include <grub/i18n.h>.
27279 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
27280 here ...
27281 * include/grub/i18n.h: ... to here
27282 * include/grub/i18n.h: ... to here.
27283 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 27284 (grub_gettext_dummy): Move above user.
4a8572e9 27285
bee48093
FZ
272862009-11-24 Felix Zielcke <fzielcke@z-51.de>
27287
27288 * util/Makefile.in (install-local): Convert a `for' into a normal
27289 shell expansion.
27290
a031e91c
RM
272912009-11-24 Robert Millan <rmh.grub@aybabtu.com>
27292
27293 * autogen.sh: Add automake call.
27294 * config.guess: Remove.
27295 * config.sub: Likewise.
27296 * install-sh: Likewise.
27297
26bec39d
FZ
272982009-11-24 Felix Zielcke <fzielcke@z-51.de>
27299
27300 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
27301
8e2532fd
FZ
273022009-11-24 Felix Zielcke <fzielcke@z-51.de>
27303
27304 * util/Makefile.in (install-local): Convert a make `$(foreach)'
27305 function to a normal shell `for'.
27306
fefa1b7d
FZ
273072009-11-24 Felix Zielcke <fzielcke@z-51.de>
27308
27309 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27310
4501250b
FZ
273112009-11-24 Felix Zielcke <fzielcke@z-51.de>
27312
27313 * util/grub-mkrelpath.c: New file.
27314 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
27315 (grub_mkrelpath_SOURCES): New variable.
27316 * include/grub/util/misc.h: New function prototype.
27317 * util/misc.c (make_system_path_relative_to_its_root): New function.
27318
27319 * util/grub-mkconfig_lib.in (bindir): New variable.
27320 (grub_mkrelpath): Likewise.
27321 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27322
27323 * util/probe.c (probe): Make the file path relative to its root.
27324 Change a info message to use the GRUB path. Enable again the
27325 check if we can read the file with GRUB facilities.
27326
27327 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27328 to its root.
27329
11d9778b
FZ
273302009-11-24 Felix Zielcke <fzielcke@z-51.de>
27331
27332 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27333 platform.
27334
4465287d
FZ
273352009-11-24 Felix Zielcke <fzielcke@z-51.de>
27336
27337 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27338 strncmp().
27339
62b47f22
FZ
273402009-11-24 Felix Zielcke <fzielcke@z-51.de>
27341
27342 * util/getroot.c (grub_util_is_dmraid): New function.
27343 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27344 devices as normal ones, not as LVM.
27345
1eafb9b9 273462009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
27347
27348 * conf/common.rmk: Add grub-gettext_lib target and updates
27349 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27350 LDFLAGS.
27351 * gettext/gettext.c: New file. (Reads mo files).
27352 * include/grub/file.h (grub_file_pread): New prototype.
27353 * include/grub/i18n.h (_): New prototype.
27354 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27355 prototypes.
27356 * kern/misc.c (grub_gettext_dummy): New function.
27357 * normal/menu_text.c: Include <grub/i18n.h>.
27358 * normal/menu_text.c (print_timeout): Gettexttize string.
27359 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
27360 * po/POTFILES: Add `normal/menu_text.c'.
27361 * po/ca.po: Add new translations.
c3ea6bd4
CPE
27362 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27363 gettext module and defines locale_dir and lang in grub.cfg.
27364 * NEWS: Add gettext support.
27365
0fdb2568
RM
273662009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27367
27368 * util/hostdisk.c: Include `<grub/i18n.h>'.
27369 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27370 (make_device_name): Rewrite using asprintf.
27371 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27372 (find_system_device): If a device is not found, generate one just
27373 by reusing the OS path name.
27374 (read_device_map): Make it permissible for device.map not to exist.
27375
f515aa62
RM
273762009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27377
27378 * script/sh/execute.c: Move from here ...
27379 * script/execute.c: ... to here. Update all users.
27380 * script/sh/function.c: Move from here ...
27381 * script/function.c: ... to here. Update all users.
27382 * script/sh/lexer.c: Move from here ...
27383 * script/lexer.c: ... to here. Update all users.
27384 * script/sh/main.c: Move from here ...
27385 * script/main.c: ... to here. Update all users.
27386 * script/sh/parser.y: Move from here ...
27387 * script/parser.y: ... to here. Update all users.
27388 * script/sh/script.c: Move from here ...
27389 * script/script.c: ... to here. Update all users.
27390
f84b481b
RM
273912009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27392
27393 * configure.ac: Detect all `emu' platforms. Define
27394 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27395 --enable-grub-emu logic. Disable include/grub/machine
27396 symlink on `emu' platforms.
27397
27398 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27399 * gensymlist.sh.in: Likewise.
27400
27401 * include/grub/i386/coreboot/machine.h: Remove file.
27402 * include/grub/i386/efi/machine.h: Likewise.
27403 * include/grub/i386/ieee1275/machine.h: Likewise.
27404 * include/grub/i386/pc/machine.h: Likewise.
27405 * include/grub/i386/qemu/machine.h: Likewise.
27406 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27407 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27408 * include/grub/x86_64/efi/machine.h: Likewise.
27409
27410 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27411 * commands/halt.c: Likewise.
27412 * commands/reboot.c: Likewise.
27413 * include/grub/autoefi.h: Likewise.
27414 * include/grub/i386/at_keyboard.h: Likewise.
27415 * include/grub/i386/kernel.h: Likewise.
27416 * include/grub/i386/loader.h: Likewise.
27417 * include/grub/i386/pc/memory.h: Likewise.
27418 * kern/dl.c: Likewise.
27419 * kern/i386/coreboot/init.c: Likewise.
27420 * loader/i386/bsd.c: Likewise.
27421 * loader/i386/linux.c: Likewise.
27422 * loader/multiboot_loader.c: Likewise.
27423 * term/i386/pc/serial.c: Likewise.
27424 * term/usb_keyboard.c: Likewise.
27425
27426 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27427 `<grub/machine/machine.h>'
27428 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27429 * util/misc.c: Remove `<grub/machine/machine.h>' and
27430 `<grub/machine/time.h>'.
27431
27432 * Makefile.in (enable_grub_emu): Remove variable.
27433 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27434
27435 * conf/any-emu.rmk: New file.
27436 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27437 (grub_emu_init.c): Move from here ...
27438 * conf/any-emu.rmk: ... to here.
27439
27440 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27441 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27442 * conf/any-emu.rmk: ... to here.
27443
4efeab03
RM
274442009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27445
27446 * include/grub/parser.h (grub_parser_register): Document need
27447 of `name' parameter.
27448 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27449 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27450 "sh" to "grub".
27451
ea1dd8bf
RM
274522009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27453
27454 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27455 `$(XGETTEXT)'.
27456 * include/grub/i18n.h (N_): New macro.
27457 * util/mkisofs/mkisofs.h: Likewise.
27458 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27459 around N_().
27460 (usage): Use gettext() to translate help strings when printing them.
27461
0c140626
RM
274622009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27463
27464 Based on patch from Bean
27465 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27466
27467 * video/efi_fb.c: New file.
27468 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27469 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27470 variables.
27471 * conf/x86_64-efi.rmk: Likewise.
27472
87d58298
RM
274732009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27474
27475 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27476 * util/i386/pc/grub-setup.c: Likewise.
27477
994cc3a3
ST
274782009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27479
27480 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27481 <hurd/fs.h>
27482 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27483 file_get_storage_info to implement grub_guess_root_device.
27484
26a61d6a
FZ
274852009-11-21 Felix Zielcke <fzielcke@z-51.de>
27486
27487 * Makefile.in (target): Use make's builtin $(shell) function
27488 instead of calling directly $(SHELL) to create the locale directories,
27489 inside the $(foreach) function.
27490
74ff1dd5
FZ
274912009-11-21 Felix Zielcke <fzielcke@z-51.de>
27492
27493 * util/grub-mkrescue.in: Print an error and usage if output option
27494 has not been given.
27495
0b787d0e
FZ
274962009-11-21 Felix Zielcke <fzielcke@z-51.de>
27497
27498 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27499 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27500 root and /boot are on different devices.
27501
1164b270
RM
275022009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27503
27504 Fix build for srcdir != objdir.
27505
27506 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27507 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27508 $(srcdir).
27509 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27510 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27511 reference for input.
27512
13774a2f
RM
275132009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27514
27515 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27516 or hardlinking it). Remove -J option, Joliet is not compatible with
27517 multiple source directories.
27518
efda854e
RM
275192009-11-21 Carles Pina i Estany <carles@pina.cat>
275202009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27521
27522 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27523 (process_input_dir): New function. Process an arbitrary input
27524 directory.
27525 Misc adjustments to support both "override mode" and system-wide mode.
27526
6c09890c
FZ
275272009-11-20 Felix Zielcke <fzielcke@z-51.de>
27528
27529 * configure.ac (UNIFONT_BDF): Rename to ...
27530 (FONT_SOURCE): ... this. Update all users.
27531
a797824f
FZ
275322009-11-20 Felix Zielcke <fzielcke@z-51.de>
27533
27534 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27535 to the list of unifont files to look for.
27536
cd4f42b0
RM
275372009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27538
27539 Patch from Joe Auricchio <jauricchio@gmail.com>
27540 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27541 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27542 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27543
393c783d
FZ
275442009-11-19 Felix Zielcke <fzielcke@z-51.de>
27545
27546 * Makefile.in (install-local): Add a missing backslash.
27547
b2f1e327
FZ
275482009-11-19 Felix Zielcke <fzielcke@z-51.de>
27549
27550 * include/grub/x86_64/io.h: New file.
27551
f577f7a0
RM
275522009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27553
27554 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27555 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27556 Include `"progname.h"'.
27557 (main): Initialize gettext.
27558 * util/i386/pc/grub-setup.c: Gettexttize.
27559 * util/i386/pc/grub-mkimage.c: Likewise.
27560
27561 * Makefile.in (po/*.po): Redefine as ...
27562 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27563
3bc7896c
RM
27564 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27565
c37943b6
RM
275662009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27567
27568 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27569 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27570 (program_name): Remove.
27571 (main): Initialize gettext support.
6323f705
RM
27572 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27573 Include `<libintl.h>'.
27574 (_): New macro.
c37943b6
RM
27575
27576 * util/mkisofs/eltorito.c: Gettexttize.
27577 * util/mkisofs/joliet.c: Likewise.
27578 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
27579 * util/mkisofs/multi.c: Likewise.
27580 * util/mkisofs/rock.c: Likewise.
27581 * util/mkisofs/tree.c: Likewise.
27582 * util/mkisofs/write.c: Likewise.
27583
3bc7896c
RM
27584 * po/POTFILES: Update with new files.
27585
5ce77c6e
RM
275862009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27587
27588 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27589 * util/mkisofs/iso9660.h: Likewise.
27590 * util/mkisofs/joliet.c: Likewise.
27591 * util/mkisofs/mkisofs.c: Likewise.
27592 * util/mkisofs/mkisofs.h: Likewise.
27593 * util/mkisofs/rock.c: Likewise.
27594 * util/mkisofs/tree.c: Likewise.
27595 * util/mkisofs/write.c: Likewise.
27596
27597 * util/mkisofs/eltorito.c (rcsid): Remove.
27598 * util/mkisofs/hash.c: Likewise.
27599 * util/mkisofs/joliet.c: Likewise.
27600 * util/mkisofs/name.c: Likewise.
27601 * util/mkisofs/rock.c: Likewise.
27602 * util/mkisofs/tree.c: Likewise.
27603 * util/mkisofs/write.c: Likewise.
27604
1dabbc77
RM
276052009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27606
27607 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27608 instead of static allocation.
27609 * util/mkisofs/match.h: Likewise.
27610
633877cb
RM
276112009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27612
3bc7896c
RM
27613 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27614 and `util/grub.d/10_linux.in'.
633877cb
RM
27615 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27616 translatable Shell files.
27617
af1c0c85
RM
276182009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27619
27620 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27621
769ae37b
RM
276222009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27623
27624 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 27625 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
27626 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27627 Add gettext initialization.
27628 (kfreebsd_entry): Make menuentry output translatable.
27629
276302009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27631
27632 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27633 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27634 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27635 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27636 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 27637 * po/LINGUAS: New file.
769ae37b
RM
27638
276392009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27640
27641 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27642 other things).
27643 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27644 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27645 bindtextdomain() calls for gettext initialization.
27646
276472009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27648
27649 * gnulib/progname.c: New file (imported from Gnulib).
27650 * gnulib/progname.h: Likewise.
27651 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27652 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27653 (usage): Replace `progname' with `program_name'.
27654 (main): Use set_program_name() for program name initialization.
27655
276562009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27657
27658 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27659 from here ...
27660 * Makefile.in (CPPFLAGS): ... to here.
27661
276622009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27663
27664 * aclocal.m4: Move from here ...
27665 * acinclude.m4: ... to here.
27666 * autogen.sh: Add call to `aclocal'.
27667 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27668
276692009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27670
27671 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27672 (LINGUAS): New variable.
27673 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27674 (install-local): Install MO files.
27675 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27676 * include/grub/i18n.h: New file.
3bc7896c
RM
27677 * po/POTFILES: New file.
27678 * po/ca.po: New file.
769ae37b
RM
27679 * util/grub.d/10_linux.in (bindir): New variable.
27680 Add gettext initialization.
27681 (linux_entry): Make menuentry output translatable.
27682 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27683 (usage): Make --help output translatable.
27684 (main): Initialize gettext.
27685
02c0a6ad
RM
276862009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27687
27688 * import_gcry.py: New file (written by Vladimir with minor
27689 adjustments).
27690 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27691 ciphers.
27692 * INSTALL: Document that Python is required for bootstrap.
27693
276942009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27695
27696 Import ciphers from libgcrypt 1.4.4.
27697
27698 * lib/libgcrypt/cipher/ChangeLog
27699 * lib/libgcrypt/cipher/ac.c
27700 * lib/libgcrypt/cipher/arcfour.c
27701 * lib/libgcrypt/cipher/bithelp.h
27702 * lib/libgcrypt/cipher/blowfish.c
27703 * lib/libgcrypt/cipher/camellia-glue.c
27704 * lib/libgcrypt/cipher/camellia.c
27705 * lib/libgcrypt/cipher/camellia.h
27706 * lib/libgcrypt/cipher/cast5.c
27707 * lib/libgcrypt/cipher/cipher.c
27708 * lib/libgcrypt/cipher/crc.c
27709 * lib/libgcrypt/cipher/des.c
27710 * lib/libgcrypt/cipher/dsa.c
27711 * lib/libgcrypt/cipher/ecc.c
27712 * lib/libgcrypt/cipher/elgamal.c
27713 * lib/libgcrypt/cipher/hash-common.c
27714 * lib/libgcrypt/cipher/hash-common.h
27715 * lib/libgcrypt/cipher/hmac-tests.c
27716 * lib/libgcrypt/cipher/md.c
27717 * lib/libgcrypt/cipher/md4.c
27718 * lib/libgcrypt/cipher/md5.c
27719 * lib/libgcrypt/cipher/primegen.c
27720 * lib/libgcrypt/cipher/pubkey.c
27721 * lib/libgcrypt/cipher/rfc2268.c
27722 * lib/libgcrypt/cipher/rijndael-tables.h
27723 * lib/libgcrypt/cipher/rijndael.c
27724 * lib/libgcrypt/cipher/rmd.h
27725 * lib/libgcrypt/cipher/rmd160.c
27726 * lib/libgcrypt/cipher/rsa.c
27727 * lib/libgcrypt/cipher/seed.c
27728 * lib/libgcrypt/cipher/serpent.c
27729 * lib/libgcrypt/cipher/sha1.c
27730 * lib/libgcrypt/cipher/sha256.c
27731 * lib/libgcrypt/cipher/sha512.c
27732 * lib/libgcrypt/cipher/tiger.c
27733 * lib/libgcrypt/cipher/twofish.c
27734 * lib/libgcrypt/cipher/whirlpool.c
27735
af2f93ac
RM
277362009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27737
27738 Fix build for systems without error().
27739
27740 * gnulib/error.c: New file (imported from Gnulib).
27741 * gnulib/error.h: Likewise.
27742 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27743 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27744 (this variable is now used by error()).
27745
73fb3dd5
FZ
277462009-11-16 Felix Zielcke <fzielcke@z-51.de>
27747
814f5e96
FZ
27748 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27749 instead of relying that char is signed.
73fb3dd5 27750
a691ca33
VS
277512009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27752
27753 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27754 blocksize different from specified.
27755 (grub_pxefs_read): Likewise.
27756
2af8f0f4
FZ
277572009-11-16 Felix Zielcke <fzielcke@z-51.de>
27758
27759 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27760
27761 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27762 (grub_ata_readwrite): Likewise. Update 2 format strings.
27763 (grub_atapi_read): Likewise.
27764
27765 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27766 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27767 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27768 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27769 (ata_mod_LDFLAGS): Move from here ...
27770 * conf/i386.rmk: ... to here ...
27771 * conf/x86_64-efi.rmk: ... and here.
27772 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27773 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27774
83bdecaf
RM
277752009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27776
27777 Relicense multiboot.h, with RMS' blessing.
27778
27779 * include/multiboot.h: Change to X11 license.
27780
fd6fd3d7
RM
277812009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27782
27783 Support --version in grub-mkisofs.
27784
27785 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27786 (OPTION_VERSION): New macro.
27787 (ld_options): Recognize --version.
27788 (usage): Move `program_name' from here ...
27789 (program_name): ... to here. Add `static' qualifier.
27790 (main): Recognize `OPTION_VERSION'.
27791
16a88c49
FZ
277922009-11-15 Felix Zielcke <fzielcke@z-51.de>
27793
27794 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27795 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27796
a4158476
RM
277972009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27798
27799 Fix help2man generation for mkisofs.
27800
27801 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27802 (usage): Send output to stdout (rather than stderr).
27803
fc2208b0
RM
278042009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27805
27806 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27807 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27808 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27809 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27810 (bin_SCRIPTS): Add `grub-mkfloppy'.
27811 (grub_mkfloppy_SOURCES): New variable.
27812
27813 * util/grub-mkrescue.in: New file.
27814 * util/i386/pc/grub-mkfloppy.in: New file.
27815
27816 * util/i386/coreboot/grub-mkrescue.in: Remove.
27817 * util/i386/pc/grub-mkrescue.in: Remove.
27818
8d0edf4a
RM
278192009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27820
27821 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27822 from here ...
27823 * include/multiboot.h (struct multiboot_header): ... to here. Update
27824 all users.
27825 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27826 from here ...
27827 * include/multiboot.h (struct multiboot_info): ... to here. Update
27828 all users.
27829 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27830 from here ...
27831 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27832 Update all users.
27833 * include/grub/multiboot.h (struct grub_mod_list): Move
27834 from here ...
27835 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27836 Update all users.
27837
a73f5969
RM
278382009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27839
27840 * include/multiboot2.h (multiboot_word): Rename from this ...
27841 (multiboot2_word): ... to this. Update all users.
27842 (multiboot_header): Rename from this ...
27843 (multiboot2_header): ... to this. Update all users.
27844 (multiboot_tag_header): Rename from this ...
27845 (multiboot2_tag_header): ... to this. Update all users.
27846 (multiboot_tag_start): Rename from this ...
27847 (multiboot2_tag_start): ... to this. Update all users.
27848 (multiboot_tag_name): Rename from this ...
27849 (multiboot2_tag_name): ... to this. Update all users.
27850 (multiboot_tag_module): Rename from this ...
27851 (multiboot2_tag_module): ... to this. Update all users.
27852 (multiboot_tag_memory): Rename from this ...
27853 (multiboot2_tag_memory): ... to this. Update all users.
27854 (multiboot_tag_unused): Rename from this ...
27855 (multiboot2_tag_unused): ... to this. Update all users.
27856 (multiboot_tag_end): Rename from this ...
27857 (multiboot2_tag_end): ... to this. Update all users.
27858
1c8927f0
RM
278592009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27860
27861 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27862 this platform we should support Multiboot1 first.
27863
27864 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27865 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27866 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27867
6e1e0d89
RM
278682009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27869
27870 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27871 of write calls (converting them to fwrite() if they aren't already).
27872 (get_torito_desc): Likewise.
27873 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27874
7f2b34d8
RM
278752009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27876
27877 * util/i386/pc/grub-install.in: Move from here ...
27878 * util/grub-install.in: ... to here. Update all users.
27879
c0ef3311
CW
278802009-11-11 Colin Watson <cjwatson@ubuntu.com>
27881
27882 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27883
e1f240ff
RM
278842009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27885
27886 Support for El Torito without floppy emulation.
27887
27888 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27889 (init_boot_catalog): Improve error handling.
27890 (get_torito_desc): Don't use floppy emulation unless requested by
27891 user. Patch boot information table when requested via
27892 `-boot-info-table'.
27893 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27894 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27895 (use_boot_info_table): New variables.
27896 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27897 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27898 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27899 `--eltorito-emul-floppy'.
27900 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27901 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27902 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27903 (use_boot_info_table, get_731): New prototypes.
27904 * util/mkisofs/write.c (get_731): New function.
27905
af7d4de5
FZ
279062009-11-11 Felix Zielcke <fzielcke@z-51.de>
27907
27908 Fix the generation of the man page.
27909
27910 * util/pc/i386/grub-install.in: Source
27911 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27912
2c55dbc0
RM
279132009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27914
27915 Large file support for grub-mkisofs.
27916
27917 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27918 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27919 (session_start): Upgrade type to `uint64_t'. Update all users.
27920 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27921 (struct directory_entry): Upgrade type of `starting_block' and
27922 `size' to `uint64_t'. Update all users.
27923 (struct deferred): Remove unused structure.
27924 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27925 Update all users.
27926 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27927 file is larger than `UINT32_MAX'.
27928 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27929 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27930 return value.
27931 (struct deferred_write): Upgrade type of `extent' and `size' to
27932 `uint64_t'. Update all users.
27933 (last_extent_written): Upgrade type to `uint64_t'. Update all
27934 users.
27935 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27936 Update all users. Upgrade type of `remain' to `int64_t' and
27937 `use' to `size_t'. Use error() to handle fread() errors.
27938 (write_files): Rely on write_one_file() rather than calling
27939 xfwrite() directly.
27940
6a9cead5
FZ
279412009-11-09 Felix Zielcke <fzielcke@z-51.de>
27942
27943 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27944
4825d790
RM
279452009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27946
27947 * util/mkisofs/fnmatch.c: Remove.
27948 * util/mkisofs/getopt1.c: Likewise.
27949 * util/mkisofs/getopt.c: Likewise.
27950 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27951 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27952 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27953 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27954 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27955
27956 * configure.ac: Detect `mingw32msvc' host_os.
27957 Check for lstat(), getuid() and getgid().
27958
27959 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27960 instances of `u_char' with `uint8_t'.
27961
27962 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27963 [!HAVE_GETUID] (getuid): New function (stub).
27964 [!HAVE_GETGID] (getgid): Likewise.
27965 [!HAVE_LSTAT] (lstat): Likewise.
27966 [!S_IROTH] (S_IROTH): New macro (dummy).
27967 [!S_IRGRP] (S_IRGRP): Likewise.
27968
84b860d8
RM
279692009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27970
27971 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27972 conditional expression).
27973
66e9b712
RM
279742009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27975
27976 Import from Gnulib.
27977
27978 * gnulib/fnmatch.c: New file.
27979 * gnulib/fnmatch.h: Likewise.
27980 * gnulib/fnmatch_loop.c: Likewise.
27981 * gnulib/getopt.c: Likewise.
27982 * gnulib/getopt.h: Likewise.
27983 * gnulib/getopt1.c: Likewise.
27984 * gnulib/getopt_int.h: Likewise.
27985 * gnulib/gettext.h: Likewise.
27986
34f4a5b0
RM
279872009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27988
27989 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27990 * normal/handler.c (read_handler_list): Likewise.
27991
ac451143
RM
279922009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27993
27994 Misc cleanup.
27995
27996 * kern/command.c (grub_register_command_prio): Use
27997 grub_zalloc() instead of explicitly zeroing data.
27998 * kern/list.c: Include `<grub/mm.h>'.
27999 (grub_named_list_find): Replace `0' with `NULL'.
28000 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
28001 (fs_module_list): Change type to `grub_named_list_t'. Update all
28002 users.
28003 * normal/dyncmd.c (read_command_list): Add space between function
28004 call and parenthesis.
28005 * normal/handler.c (read_handler_list): Likewise.
28006
4089b167
RM
280072009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28008
28009 * normal/auth.c (punishment_delay): Moved from here ...
28010 (grub_auth_strcmp): ... to here (inside function).
28011
325f5037
RM
280122009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28013
28014 * include/grub/list.h (struct grub_named_list): Remove `const'
28015 qualifier from `name'.
28016 (struct grub_prio_list): Likewise.
28017
7aea29a3
RM
280182009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28019
28020 * normal/auth.c: Include `<grub/time.h>'.
28021 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
28022
3fd6f044
RM
280232009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28024
28025 * normal/auth.c (punishment_delay): New variable.
28026 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
28027 (grub_auth_check_authentication): Punish failed login attempts with
28028 an incremental (2^N) delay.
28029
a4cd68e4
RM
280302009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28031
28032 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
28033 path with $(srcdir).
28034
7ad12f43
VS
280352009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28036
28037 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
28038
c1129f03
RM
280392009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28040
28041 * util/i386/coreboot/grub-mkrescue.in: New file.
28042 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
28043 variables.
28044
28045 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
28046 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
28047 * configure.ac: Add header and function checks to satisfy grub-mkisofs
28048 requirements.
28049 * util/mkisofs/defaults.h: New file.
28050 * util/mkisofs/eltorito.c: Likewise.
28051 * util/mkisofs/exclude.h: Likewise.
28052 * util/mkisofs/fnmatch.c: Likewise.
28053 * util/mkisofs/getopt.c: Likewise.
28054 * util/mkisofs/getopt1.c: Likewise.
28055 * util/mkisofs/hash.c: Likewise.
28056 * util/mkisofs/include/fctldefs.h: Likewise.
28057 * util/mkisofs/include/mconfig.h: Likewise.
28058 * util/mkisofs/include/prototyp.h: Likewise.
28059 * util/mkisofs/include/statdefs.h: Likewise.
28060 * util/mkisofs/iso9660.h: Likewise.
28061 * util/mkisofs/joliet.c: Likewise.
28062 * util/mkisofs/match.c: Likewise.
28063 * util/mkisofs/match.h: Likewise.
28064 * util/mkisofs/mkisofs.c: Likewise.
28065 * util/mkisofs/mkisofs.h: Likewise.
28066 * util/mkisofs/multi.c: Likewise.
28067 * util/mkisofs/name.c: Likewise.
28068 * util/mkisofs/rock.c: Likewise.
28069 * util/mkisofs/tree.c: Likewise.
28070 * util/mkisofs/write.c: Likewise.
28071
ec8bb77d
VS
280722009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28073
28074 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
28075 being insecure.
28076
3716b12c
RM
280772009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28078
28079 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
28080 `grub-mkimage' (and use $0 when possible).
28081
b97b7b91
RM
280822009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28083
28084 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
28085 error message for excessively large memory map.
28086
04114812
RM
280872009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28088
28089 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
28090 executable bit.
28091
e4eb2373
RM
280922009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28093
28094 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
28095 message for coreboot users.
28096
c926e1d5 280972009-11-07 Robert Millan <rmh.grub@aybabtu.com>
28098
28099 Fix build with GNU gold.
28100
28101 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
28102 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
28103 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
28104 link addresses.
28105 * aclocal.m4: Likewise.
28106
86e5b1db 281072009-11-04 Felix Zielcke <fzielcke@z-51.de>
28108
28109 * configure.ac (AC_PREREQ): Bump to 2.59d.
28110 * INSTALL: Make it more clear when Autoconf and Ruby are
28111 needed and when to run `./autogen.sh'.
28112
246cd78f 281132009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28114
28115 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
28116 OSes.
28117
4f9dfb37 281182009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28119
28120 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
28121
b82bd5e1 281222009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28123
28124 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
28125 giving it to GNU Mach.
28126
ff1a9bca 281272009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28128
28129 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
28130 GNU partition number to get internal GRUB partition number.
28131
61697d9c 281322009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28133
28134 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
28135 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
28136
a50569e1 281372009-11-01 Robert Millan <rmh.grub@aybabtu.com>
28138
28139 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
28140 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
28141 case.
28142
5b153867 281432009-11-01 Felix Zielcke <fzielcke@z-51.de>
28144
28145 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
28146
d9e2cd70 281472009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28148
28149 Fix build problem.
28150
28151 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
28152 `-isystem=$(srcdir)/include'.
28153
805111a4 281542009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28155
28156 * util/i386/pc/grub-install.in: Remove hint that device.map should be
28157 checked (grub-install doesn't currently rely on it).
28158
fa6e945f 281592009-10-29 Robert Millan <rmh.grub@aybabtu.com>
28160
28161 Revert SVN r2660.
28162
28163 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
28164 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
28165 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
28166 * conf/i386-ieee1275.rmk: Likewise.
28167 * conf/i386-pc.rmk: Likewise.
28168 * conf/powerpc-ieee1275.rmk: Likewise.
28169 * conf/sparc64-ieee1275.rmk: Likewise.
28170 * conf/x86_64-efi.rmk: Likewise.
28171
cee15086 281722009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28173
28174 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
28175
95b9239e 281762009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28177
28178 * include/grub/misc.h: Stop checking for APPLE_CC.
28179
2ed19dfd 281802009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28181
28182 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
28183 doesn't cause an infinite call loop.
28184
fdcdde19 281852009-10-28 Felix Zielcke <fzielcke@z-51.de>
28186
28187 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
28188 strings.
28189
cefabfe1 281902009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28191
28192 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
28193 variable.
28194 * Makefile.in: Likewise.
28195
ed96ab6d 281962009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28197
28198 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
28199
0579b753 282002009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28201
28202 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
28203
478df409 282042009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28205
28206 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
28207
083d1679 282082009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28209
28210 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
28211 from here ...
28212 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
28213
5947ae32 282142009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28215
28216 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
28217 in $(MAKEINFO) invocation. This makes it clear in output that
28218 errors are being ignored.
28219
94180ff6 282202009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28221
28222 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
28223 from here ...
28224 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
28225 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
28226 * conf/i386-ieee1275.rmk: Likewise.
28227 * conf/i386-pc.rmk: Likewise.
28228 * conf/powerpc-ieee1275.rmk: Likewise.
28229 * conf/sparc64-ieee1275.rmk: Likewise.
28230 * conf/x86_64-efi.rmk: Likewise.
28231
9031b03a 282322009-10-26 Colin Watson <cjwatson@ubuntu.com>
28233
28234 * util/grub-editenv.c (main): If only a command is given, use
28235 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
28236 (usage): FILENAME is now optional and has a default.
28237
e4f6809b 282382009-10-26 Colin Watson <cjwatson@ubuntu.com>
28239
28240 Improve grub-mkconfig performance when there are several menu
28241 entries on a single filesystem.
28242
28243 * util/grub.d/10_linux.in (linux_entry): Cache the output of
28244 prepare_grub_to_access_device.
28245 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28246 * util/grub.d/30_os-prober.in: Likewise.
28247
67937d4d 282482009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28249
28250 * util/grub.d/10_freebsd.in: Remove.
28251 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
28252 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
28253
ee3756cc 282542009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28255
5c35048e 28256 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 28257
4dea1c6f 282582009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28259
28260 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
28261 grub_util_error() call.
28262
042484d7 282632009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28264
28265 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
28266 `reserved_first_sector' member.
28267 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
28268 `reserved_first_sector' to 1.
28269 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
28270 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
28271 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
28272 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
28273 filesystems which begin at first sector.
28274 (options): New option --skip-fs-probe.
28275 (main): Handle --skip-fs-probe and pass it to setup().
28276
d64448a7 282772009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28278
28279 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
28280 (memset): Fix function prototype.
28281
508d42ec 282822009-10-25 Robert Millan <rmh.grub@aybabtu.com>
282832009-10-25 Vasily Averin <vvs@parallels.com>
28284
28285 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
28286 `dirent.direntlen == 0'.
28287
b240e30c 282882009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28289
28290 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
28291 `cpio'.
28292 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
28293
346e7fbe 282942009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28295
28296 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
28297 `__trampoline_setup' and `__ucmpdi2'.
28298 * include/grub/powerpc/libgcc.h: Only export symbols for functions
28299 that libgcc provides.
28300
cdb308b0 283012009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28302
28303 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
28304 * include/grub/sparc64/libgcc.h (memset): Likewise.
28305 * include/grub/misc.h (memset, memcmp): New function prototypes.
28306
fb26abc2 283072009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28308
28309 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
28310 `cpio'.
28311 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
28312
f6693890 283132009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28314
28315 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
28316 * docs/grub.cfg: Compensate for recent change in multiboot
28317 loader (since 2009-08-14 it won't pass filename to payload).
28318 * util/grub.d/10_hurd.in: Likewise.
28319
0933cdc0 283202009-10-21 Felix Zielcke <fzielcke@z-51.de>
28321
28322 * config.guess: Update to latest version from config git
28323 repository.
28324 * config.sub: Likewise.
28325
3b2fe8c2 283262009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28327
28328 Fix build on sparc64.
28329
28330 * configure.ac: Perform checks for libgcc symbols before
28331 adding `-nostdlib' to LDFLAGS.
28332
46695a62 283332009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28334
28335 Let user specify OpenBSD root device.
28336
28337 * loader/i386/bsd.c (openbsd_root): New variable.
28338 (openbsd_opts): New option 'root'.
28339 (OPENBSD_ROOT_ARG): New macro.
28340 (grub_openbsd_boot): Use 'openbsd_root'.
28341 (grub_cmd_openbsd): Fill 'openbsd_root'.
28342
d2b6b7fc 283432009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28344
28345 * NEWS: Misc adjustments.
28346
421bd7ac 283472009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28348
28349 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28350
f1d29d87 283512009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28352
28353 * configure.ac: Bump version to 1.97.
28354
6f3cd880 283552009-10-16 Colin Watson <cjwatson@ubuntu.com>
28356
28357 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28358 -mno-3dnow on x86 architectures. Some toolchains enable these
28359 features by default, but they rely on registers that aren't enabled
28360 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28361
035f7122 283622009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28363
28364 Make entry text a bit more readable.
28365
28366 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28367
44998e58 283682009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28369
28370 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28371
cd2851b3 283722009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28373
28374 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28375 operations.
28376
c6f3b249 283772009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28378
28379 * configure.ac: Add missing dollar.
28380
6b5886ba 283812009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28382
28383 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28384
28385 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28386 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28387 exports.
28388 * include/grub/sparc64/libgcc.h: Likewise. Use
28389 preprocessor conditionals.
28390
e9d66f6d 283912009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28392
28393 * conf/common.rmk (grub-dumpbios): Remove rule.
28394 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28395 * util/grub-dumpbios.in: Remove file.
28396
9155bc17 283972009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28398
28399 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28400 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28401
28402 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28403 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28404 users.
28405
28406 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28407 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28408 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28409 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28410 users.
28411
bf7f7a18 284122009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28413
28414 * term/tparm.c: Switch to GPLv3.
28415
86564c26 284162009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28417
28418 * include/grub/i386/cpuid.h: Add header protection.
28419
5c936493 284202009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28421
28422 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28423
28424 * include/grub/i386/cpuid.h: New file.
28425 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28426 (has_longmode): Rename to ...
28427 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28428 `static' attribute.
28429 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28430 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28431 on a CPU that doesn't implement AMD64 instruction set.
28432
186e7cf2 284332009-10-06 Colin Watson <cjwatson@ubuntu.com>
28434
28435 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28436 that version.texi is rebuilt on version number changes.
28437
83b65c4a 284382009-10-06 Colin Watson <cjwatson@ubuntu.com>
28439
28440 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28441 Fixes bug #27602.
28442
d244281c 284432009-10-06 Colin Watson <cjwatson@ubuntu.com>
28444
28445 * util/i386/pc/grub-install.in: Source
28446 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28447 that the --grub-probe option will work.
28448 * util/sparc64/ieee1275/grub-install.in: Likewise.
28449
da25306d 284502009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28451
28452 * configure.ac: Bump version to 1.97~beta4.
28453
e8ee83c0 284542009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28455
28456 Resync grub-mkdevicemap in x86_64-efi.
28457
28458 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28459 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28460 `util/devicemap.c'.
28461
50dcabcf 284622009-10-01 Colin Watson <cjwatson@ubuntu.com>
28463
28464 * util/grub-editenv.c (create_envblk_file): Write new block with a
28465 .new suffix and then rename it into place, to ensure atomic
28466 creation.
28467
0e51c3a7 284682009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28469
28470 Do not automatically install headers.
28471
28472 * Makefile.in (include_DATA): Remove. Update all users.
28473
31299a95 284742009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28475
28476 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28477 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28478
28479 * util/osdetect.lua: Remove.
28480 * script/lua/lauxlib.c: Likewise.
28481 * script/lua/ldebug.c: Likewise.
28482 * script/lua/grub_main.c: Likewise.
28483 * script/lua/lauxlib.h: Likewise.
28484 * script/lua/ldebug.h: Likewise.
28485 * script/lua/ltablib.c: Likewise.
28486 * script/lua/liolib.c: Likewise.
28487 * script/lua/lstrlib.c: Likewise.
28488 * script/lua/lualib.h: Likewise.
28489 * script/lua/ldo.c: Likewise.
28490 * script/lua/ldump.c: Likewise.
28491 * script/lua/ldo.h: Likewise.
28492 * script/lua/loslib.c: Likewise.
28493 * script/lua/lundump.c: Likewise.
28494 * script/lua/grub_lib.c: Likewise.
28495 * script/lua/ldblib.c: Likewise.
28496 * script/lua/lundump.h: Likewise.
28497 * script/lua/lmem.c: Likewise.
28498 * script/lua/grub_lib.h: Likewise.
28499 * script/lua/lmathlib.c: Likewise.
28500 * script/lua/lstate.c: Likewise.
28501 * script/lua/ltm.c: Likewise.
28502 * script/lua/lvm.c: Likewise.
28503 * script/lua/lmem.h: Likewise.
28504 * script/lua/lstate.h: Likewise.
28505 * script/lua/ltm.h: Likewise.
28506 * script/lua/ltable.c: Likewise.
28507 * script/lua/lvm.h: Likewise.
28508 * script/lua/llex.c: Likewise.
28509 * script/lua/lgc.c: Likewise.
28510 * script/lua/grub_lua.h: Likewise.
28511 * script/lua/loadlib.c: Likewise.
28512 * script/lua/lfunc.c: Likewise.
28513 * script/lua/lopcodes.c: Likewise.
28514 * script/lua/lparser.c: Likewise.
28515 * script/lua/ltable.h: Likewise.
28516 * script/lua/llex.h: Likewise.
28517 * script/lua/lgc.h: Likewise.
28518 * script/lua/lfunc.h: Likewise.
28519 * script/lua/lbaselib.c: Likewise.
28520 * script/lua/lopcodes.h: Likewise.
28521 * script/lua/lparser.h: Likewise.
28522 * script/lua/lzio.c: Likewise.
28523 * script/lua/linit.c: Likewise.
28524 * script/lua/lobject.c: Likewise.
28525 * script/lua/llimits.h: Likewise.
28526 * script/lua/lstring.c: Likewise.
28527 * script/lua/lzio.h: Likewise.
28528 * script/lua/lapi.c: Likewise.
28529 * script/lua/lcode.c: Likewise.
28530 * script/lua/lua.h: Likewise.
28531 * script/lua/lobject.h: Likewise.
28532 * script/lua/lstring.h: Likewise.
28533 * script/lua/lapi.h: Likewise.
28534 * script/lua/lcode.h: Likewise.
28535 * script/lua/luaconf.h: Likewise.
28536
cb8a2c38 285372009-09-26 Colin Watson <cjwatson@ubuntu.com>
28538
28539 * docs/grub.texi (Command-line and menu entry commands): Document
28540 date and echo commands.
28541
6b9b6276 285422009-09-24 Pavel Roskin <proski@gnu.org>
28543
28544 * include/grub/kernel.h (struct grub_module_header): Remove
28545 `grub_module_header_types'. Make `type' unsigned. Make `size'
28546 32-bit on all platforms.
28547 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28548 8-bit field. Use grub_host_to_target32() for `size'.
28549 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28550 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28551 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28552
4e5a02a7 285532009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28554
28555 Fix "lost keypress" bug in at_keyboard.
28556
28557 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28558 Checks for readyness of input buffer (without flushing it).
28559 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28560 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28561
c6dcedf6 285622009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28563
28564 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28565 size check within GRUB_MACHINE_PCBIOS section.
28566
74c958b1 285672009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28568
28569 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28570 return value.
28571 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28572 KEYBOARD_ISREADY check.
28573 (grub_at_keyboard_checkkey): Rename to ...
28574 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28575 Remove gratuitous cast.
28576
ff420223 285772009-09-23 Colin Watson <cjwatson@ubuntu.com>
28578
28579 * configure.ac: Call AC_PROG_MKDIR_P.
28580 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28581 version.texi in $(builddir) rather than $(srcdir).
28582 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28583 to makeinfo's @include search path.
28584
d96875df 285852009-09-23 Felix Zielcke <fzielcke@z-51.de>
28586
28587 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28588
9b3f8365 285892009-09-23 Felix Zielcke <fzielcke@z-51.de>
28590
28591 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28592 for `*.dpkg-new'.
28593
c44c90db 285942009-09-21 Colin Watson <cjwatson@ubuntu.com>
28595
28596 Build info documentation. Some code borrowed from Automake.
28597
28598 * configure.ac: Check for makeinfo.
28599 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28600 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28601 docs/version.texi.
28602 (MOSTLYCLEANFILES): Add vti.tmp.
28603 (docs/version.texi, docs/stamp-vti): Update automatically.
28604 (docs/grub.info): Build info documentation. Use --force and ignore
28605 errors for now.
28606 (all-local): Add $(INFOS).
28607 (install-local): Install info files.
28608 (uninstall): Uninstall info files.
28609 * docs/version.texi: Remove from revision control. This file is
28610 automatically generated on build now.
28611 * gendistlist.sh: Add `*.info'.
28612
e0b37bb5 286132009-09-21 Felix Zielcke <fzielcke@z-51.de>
28614
28615 * kern/term.c: Fix indentation.
28616
5a78865b 286172009-09-21 Felix Zielcke <fzielcke@z-51.de>
28618
28619 * util/hostdisk.c: Fix a comment.
28620
dace7e8a 286212009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28622
28623 Fix regression introduced in r2539.
28624
28625 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28626 to 0xA1.
28627
a83d079b 286282009-09-19 Colin Watson <cjwatson@ubuntu.com>
28629
28630 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 28631 os-prober. Under normal operation, it does not print anything to
28632 stderr; if it does, we need to debug it, and throwing away stderr
28633 makes that excessively difficult.
a83d079b 28634
be94a509 286352009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28636
28637 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28638
63f745e8 286392009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28640
28641 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28642 AC_LANG_PROGRAM from autoconf.
28643 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28644 prototypes (fixes warning).
28645
28646 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28647 `--disable-werror' was used.
28648
bbb2a70f 286492009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28650
28651 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28652 uninitialized `lastaddr'.
28653
77c24f1d 286542009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28655
0f0b8c87 28656 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 28657
07197f23 286582009-09-14 Colin Watson <cjwatson@ubuntu.com>
28659
28660 * commands/test.c (get_fileinfo): Return immediately if
28661 grub_fs_probe fails.
28662
dabf1798 286632009-09-14 José Martínez <xosemp@gmail.com>
28664
28665 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28666
d52109a7 286672009-09-14 Colin Watson <cjwatson@ubuntu.com>
28668
28669 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28670 output.
28671
56532179 286722009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28673
28674 * configure.ac: Remove --enable-grub-pe2elf. Only build
28675 grub-pe2elf when needed by the build system itself.
28676 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28677
8ef070f5 286782009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28679
28680 * configure.ac: Bump version to 1.97~beta3.
28681 * docs/version.texi: Likewise.
28682
61229557 286832009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28684
28685 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28686 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28687 from here ...
28688 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28689 (grub_linux_setup_video): ... to here (with some adjustments).
28690
5c9f8d84 286912009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28692
28693 Fix memory corruption issue (spotted by Colin Watson).
28694
28695 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28696 causing returned size to be stored in an incorrect memory location.
28697 Fix use of uninitialized value when storing the returned size.
28698
e8f5d6e9 286992009-09-12 Yves Blusseau <blusseau@zetam.org>
28700
28701 Change clean rules to properly remove files
28702
28703 * genmk.rb: add new clean rules
28704 * Makefile.in (clean): add the new targets
28705 (mostlyclean): likewise
28706
cda2a409 287072009-09-11 Colin Watson <cjwatson@ubuntu.com>
28708
28709 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28710 to grub_uint64_t.
28711 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28712 non-resident files.
28713
86695375 287142009-09-11 Colin Watson <cjwatson@ubuntu.com>
28715
28716 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28717 part of bug #27349.
28718
8aa1541a 287192009-09-10 Felix Zielcke <fzielcke@z-51.de>
28720
28721 * util/grub-mkconfig.in: Make the created config mode 400 and
28722 print a warning if it fails.
28723
48d9bb0a 287242009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28725
28726 * util/grub.d/40_custom.in: Ask user to type custom entries below
28727 comment, rather than below 'exec tail' line.
28728
3b0521be 287292009-09-10 Colin Watson <cjwatson@ubuntu.com>
28730
28731 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28732 visible in grub.cfg.
28733
50051d55 287342009-09-10 Colin Watson <cjwatson@ubuntu.com>
28735
28736 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28737 file.
28738
c0d34387 287392009-09-10 Felix Zielcke <fzielcke@z-51.de>
28740
28741 * docs/grub.cfg: Add an example menu entry for memtest86+.
28742
80a608f3 287432009-09-09 Felix Zielcke <fzielcke@z-51.de>
28744
a2094832 28745 * config.guess: Update to latest version from config git.
80a608f3 28746 * config.sub: Likewise.
28747
99423078 287482009-09-08 Colin Watson <cjwatson@ubuntu.com>
28749
28750 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28751 unknown-command case. Fixes bug #27320.
28752
44454e4c 287532009-09-08 Felix Zielcke <fzielcke@z-51.de>
28754
28755 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28756 `help' if the command exists.
28757
e30d87ad 287582009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28759
28760 * INSTALL: Require GCC 4.1.3 or later.
28761
9a86f1ec 287622009-09-06 Yves Blusseau <blusseau@zetam.org>
28763
28764 * Makefile.in (RMKFILES): add i386-qemu.rmk
28765 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28766 $(srcdir)/stamp-h.in
28767
7f26d466 287682009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28769
28770 * util/grub-probe.c (probe): Comment out buggy codepath, which
28771 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28772 should be re-enabled after 1.97.
28773
3a613259 287742009-09-05 Felix Zielcke <fzielcke@z-51.de>
28775
28776 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28777 find searches for.
28778
197f76c7 287792009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28780
28781 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28782 unnecessary calls to grub_error.
28783
70ba68ce 287842009-09-04 Colin Watson <cjwatson@ubuntu.com>
28785
28786 * NEWS: Mention `keystatus' and Unicode fonts.
28787
4ff0d7a4 287882009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28789
28790 * configure.ac: Bump version to 1.97~beta2.
28791 * docs/version.texi: Likewise.
28792
77c55a87 287932009-09-03 Colin Watson <cjwatson@ubuntu.com>
28794
28795 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28796 containing unwind information in some cases where it previously did
28797 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28798 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28799 discussion.
28800
f79572cd 288012009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28802
28803 Embedding loadenv module into grub-emu
28804
28805 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28806 commands/loadenv.c
28807 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28808 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28809 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28811 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28812 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28813
93a81088 288142009-09-03 Magnus Granberg <zorry@ume.nu>
28815
28816 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28817 include -fPIE in the default specs.
28818 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28819 to TARGET_CFLAGS.
28820
160034b2 288212009-09-03 Felix Zielcke <fzielcke@z-51.de>
28822
28823 * INSTALL: Note that GNU Bison 2.3 or later is required.
28824
087c07c4 288252009-09-03 Colin Watson <cjwatson@ubuntu.com>
28826
28827 * kern/i386/pc/startup.S: Fix typo.
28828
cbf978c0 288292009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28830
28831 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28832 according to GCS.
28833
288342009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 28835
28836 * docs/grub.texi (Naming convention): Describe one-based partition
28837 numbering.
28838 (Device syntax): Likewise.
28839 (File name syntax): Likewise.
28840 (Block list syntax): Likewise.
28841 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28842 menu.lst.
28843 (File name syntax): Likewise.
28844 (Command-line and menu entry commands): Document acpi, blocklist,
28845 crc, export, insmod, keystatus, ls, set, and unset commands.
28846
f3e8cdfd 288472009-09-02 Colin Watson <cjwatson@ubuntu.com>
28848
28849 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28850 to avoid implying that only one of --shift, --ctrl, or --alt may be
28851 used.
28852
c0bc232b 288532009-09-02 Colin Watson <cjwatson@ubuntu.com>
28854
28855 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28856 rather than comparing against S_IFREG, which will almost never work.
28857
aa0f752d 288582009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28859
28860 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28861 (write_blocklists): Likewise.
28862
ecb3166a 288632009-09-01 Colin Watson <cjwatson@ubuntu.com>
28864
28865 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28866 argument to grub_printf.
28867
c403a125 288682009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 28869
28870 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 28871 non GNU test.
31aba781 28872
b5e7312c 288732009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28874
28875 * kern/file.c (grub_file_read): Spelling fix
28876
fe00f472 288772009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28878
28879 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28880 loading of headers in some cases.
28881
cc55302e 288822009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28883
28884 * configure.ac: Bump version to 1.97~beta1.
28885 * docs/version.texi: Likewise.
28886
5c90cdd2 288872009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 28888
28889 * include/grub/i386/xnu.h: Add license header.
28890 include grub/err.h explicitly.
28891
c90edae4 288922009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28893
28894 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28895 to `ufs' in the vfs.root.mountfrom kernel parameter.
28896
d8888b5c 288972009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28898
28899 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28900
28901 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28902 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28903
28904 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28905 `ARRAY_SIZE' macro.
28906
6f07b921 289072009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28908
28909 * kern/file.c (grub_file_read): Check offset.
28910 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28911 * fs/jfs.c (grub_jfs_read_file): Likewise.
28912 * fs/ntfs.c (grub_ntfs_read): Likewise.
28913 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28914 * fs/minix.c (grub_minix_read_file): Correct offset check.
28915 * fs/ufs.c (grub_ufs_read_file): Likewise.
28916
b4f34077 289172009-08-28 Colin Watson <cjwatson@ubuntu.com>
28918
28919 * term/i386/pc/console.c (bios_data_area): Cast
28920 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28921
e7c69859 289222009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28923
28924 1-bit optimised blitters.
28925
28926 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28927 prototype.
28928 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28929 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28930 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28931 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28932 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28933 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28934 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28935 function.
28936 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28937 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28938 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28939 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28940 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28941 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28942 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28943 when possible.
28944 * video/video.c (grub_video_get_blit_format): Return
28945 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28946
a57da43f 289472009-08-28 Colin Watson <cjwatson@ubuntu.com>
28948
28949 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28950 the first argument to grub_printf.
28951
4cbe67e5 289522009-08-28 Colin Watson <cjwatson@ubuntu.com>
289532009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28954
28955 Add `getkeystatus' terminal method. Add a new `keystatus' command
28956 to query it.
28957
28958 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28959 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28960 modifier key bitmasks.
28961 (struct grub_term_input): Add `getkeystatus' member.
28962 (grub_getkeystatus): Add prototype.
28963 * kern/term.c (grub_getkeystatus): New function.
28964
28965 * include/grub/i386/pc/memory.h
28966 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28967 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28968 Data Area layout.
28969 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28970 (grub_console_term_input): Set `getkeystatus' member.
28971 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28972 constants.
28973 (grub_usb_keyboard_getreport): Likewise.
28974 (grub_usb_keyboard_checkkey): Likewise.
28975 (grub_usb_keyboard_getkeystatus): New function.
28976 (grub_usb_keyboard_term): Set `getkeystatus' member.
28977
28978 * commands/keystatus.c: New file.
28979 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28980 (keystatus_mod_SOURCES): New variable.
28981 (keystatus_mod_CFLAGS): Likewise.
28982 (keystatus_mod_LDFLAGS): Likewise.
28983 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28984 commands/keystatus.c.
28985 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28986 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28987 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28989 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28990 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 28991
6e2a9085 289922009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28993
28994 Split befs.mod and afs.mod into *_be.mod and *.mod
28995
28996 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28997 (grub_fstest_SOURCES): Likewise.
28998 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28999 (afs_be_mod_SOURCES): New variable.
29000 (afs_be_mod_CFLAGS): Likewise.
29001 (afs_be_mod_LDFLAGS): Likewise.
29002 (befs_be_mod_SOURCES): Likewise.
29003 (befs_be_mod_CFLAGS): Likewise.
29004 (befs_be_mod_LDFLAGS): Likewise.
29005 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
29006 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29007 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29008 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29009 (grub_emu_SOURCES): Likewise.
29010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29011 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29012 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29013 * fs/afs_be.c: New file.
29014 * fs/befs_be.c: New file.
29015 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
29016 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
29017 (U16): Replaced with ...
29018 (grub_afs_to_cpu16): ...this. All users updated.
29019 (U32): Replaced with ...
29020 (grub_afs_to_cpu32): ...this. All users updated.
29021 (U64): Replaced with ...
29022 (grub_afs_to_cpu64): ...this. All users updated.
29023 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
29024 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 29025 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 29026 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29027 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29028 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29029 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29030 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29031 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29032 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29033 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29034
32a71655 290352009-08-26 Bean <bean123ch@gmail.com>
29036
29037 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
29038 64-bit number.
29039 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
29040 (grub_xfs_inode_block): Change return type to grub_uint64_t.
29041 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
29042
552bf6c5 290432009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29044
29045 NetBSD memory map support.
29046
29047 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
29048 (grub_netbsd_btinfo_mmap_header): New structure.
29049 (grub_netbsd_btinfo_mmap_entry): Likewise.
29050 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
29051
1ae2078c 290522009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29053
29054 Enable bsd.mod on coreboot.
29055
29056 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
29057 (bsd_mod_SOURCES): New variable.
29058 (bsd_mod_CFLAGS): Likewise.
29059 (bsd_mod_LDFLAGS): Likewise.
29060 (bsd_mod_ASFLAGS): Likewise.
29061 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
29062 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
29063
beefc598 290642009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29065
29066 Cleanup NetBSD root support.
29067
29068 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
29069 grub_bsd_get_device.
29070 Fix typo.
29071
3b76e68b 290722009-08-25 Felix Zielcke <fzielcke@z-51.de>
29073
29074 * util/grub.d/00_header.in: Move check for the video backend of
29075 gfxterm from here ...
29076 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
29077 a suitable video backend.
29078
aea664ea 290792009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29080
29081 Fix breakage in grub-setup.
29082
29083 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
29084 "msdos_partition_map".
29085
ff747d50 290862009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29087
29088 Fix breakage in normal/auth.c.
29089
29090 * normal/auth.c (grub_iswordseparator): New function.
29091
e7e1f93f 290922009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29093
29094 Authentication support.
29095
29096 * commands/password.c: New file.
29097 * conf/common.rmk (pkglib_MODULES): Add password.mod.
29098 (password_mod_SOURCES): New variable.
29099 (password_mod_CFLAGS): Likewise.
29100 (password_mod_LDFLAGS): Likewise.
29101 (normal_mod_SOURCES): Add normal/auth.c.
29102 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
29103 normal/auth.c.
29104 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29105 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29106 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29108 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29109 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29110 * include/grub/auth.h: New file.
29111 * include/grub/err.h (grub_err_t): New enum value
29112 GRUB_ERR_ACCESS_DENIED.
29113 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
29114 'users'.
29115 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
29116 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
29117 users updated.
29118 * normal/auth.c: New file.
29119 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
29120 (grub_cmdline_run): Don't allow to go to command line without
29121 authentication.
29122 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
29123 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
29124 menuentry without superuser rights.
29125 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
29126 user isn't a superuser.
29127
70f1161d 291282009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29129
29130 Save space by inlining misc.c functions.
29131
29132 * kern/misc.c (grub_iswordseparator): Made static.
29133 * kern/misc.c (grub_strcat): Moved from here ...
29134 * include/grub/misc.h (grub_strcat): ... here. Inlined.
29135 * kern/misc.c (grub_strncat): Moved from here ...
29136 * include/grub/misc.h (grub_strncat): ... here. Inlined.
29137 * kern/misc.c (grub_strcasecmp): Moved from here ...
29138 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
29139 * kern/misc.c (grub_strncasecmp): Moved from here ...
29140 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
29141 * kern/misc.c (grub_isalpha): Moved from here ...
29142 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
29143 * kern/misc.c (grub_isdigit): Moved from here ...
29144 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
29145 * kern/misc.c (grub_isgraph): Moved from here ...
29146 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
29147 * kern/misc.c (grub_tolower): Moved from here ...
29148 * include/grub/misc.h (grub_tolower): ... here. Inlined.
29149
48e40bff 291502009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29151
29152 * script/sh/function.c (grub_script_function_find): Cut error message
29153 not to flood terminal.
29154 * script/sh/lexer.c (grub_script_yylex): Remove command line length
29155 limit.
29156 * script/sh/script.c (grub_script_arg_add): Duplicate string.
29157
c385bfc3 291582009-08-24 Colin Watson <cjwatson@ubuntu.com>
29159
29160 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
29161 `report' grub_uint8_t *.
29162 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
29163 Use a 50-millisecond timeout rather than just repeating
29164 grub_usb_keyboard_getreport 50 times.
29165 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
29166
2d21e3e8 291672009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29168
29169 Rename *_partition_map to part_*
29170
29171 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
29172 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
29173 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
29174 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
29175 All users updated.
29176 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
29177 All users updated.
29178 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
29179 * util/grub-probe.c (probe_partmap): Don't transform partition name
29180 to get module name.
29181
dd103c4e 291822009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29183
29184 Fix OpenBSD and NetBSD support.
29185
29186 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
29187 memory address conflict.
29188 (OPENBSD_MMAP_ACPI): New definition.
29189 (OPENBSD_MMAP_NVS): Likewise.
29190 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
29191 and OPENBSD_MMAP_NVS.
29192 Add memory map terminator
29193 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 29194 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 29195
16c84d74 291962009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29197
29198 Let user specify NetBSD root device.
29199
29200 * loader/i386/bsd.c (netbsd_root): New variable.
29201 (netbsd_opts): New option 'root'.
29202 (NETBSD_ROOT_ARG): New macro.
29203 (grub_netbsd_boot): Use 'netbsd_root'.
29204 (grub_bsd_unload): Free 'netbsd_root'.
29205 (grub_cmd_netbsd): Fill 'netbsd_root'.
29206
adb29902 292072009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29208
29209 Support for 64-bit NetBSD.
29210
29211 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
29212 point when booting non-FreeBSD.
29213
f5ae9f74 292142009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29215
29216 Support --no-smp and --no-acpi for NetBSD.
29217
29218 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
29219 (NETBSD_AB_NOACPI): Likewise.
29220 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
29221 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
29222
de74f136 292232009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29224
29225 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
29226 errors.
29227 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
29228 errors. Call grub_error when needed.
29229
e9a925da 292302009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29231
29232 * commands/search.c (search_fs): Try searching without autoload first.
29233 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
29234 filesystem module explicitly for faster booting.
29235
5174302b 292362009-08-23 Colin Watson <cjwatson@ubuntu.com>
29237
29238 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
29239
c8c80635 292402009-08-23 Colin Watson <cjwatson@ubuntu.com>
29241
29242 * util/grub.d/30_os-prober.in: Disable os-prober if
29243 `GRUB_DISABLE_OS_PROBER' was set to true.
29244
71acf5e5 292452009-08-23 Robert Millan <rmh.grub@aybabtu.com>
29246
29247 * partmap/pc.c: Rename to ...
29248 * partmap/msdos.c: ... this. Update all users.
29249 (grub_pc_partition_map): Rename to ...
29250 (grub_msdos_partition_map): ... this. Update all users.
29251
29252 * parttool/pcpart.c: Rename to ...
29253 * parttool/msdospart.c: ... this. Update all users.
29254
29255 * include/grub/pc_partition.h: Rename to ...
29256 * include/grub/msdos_partition.h: ... this. Update all users.
29257 (grub_pc_partition_bsd_entry): Rename to ...
29258 (grub_msdos_partition_bsd_entry): ... this. Update all users.
29259 (grub_pc_partition_disk_label): Rename to ...
29260 (grub_msdos_partition_disk_label): ... this. Update all users.
29261 (grub_pc_partition_entry): Rename to ...
29262 (grub_msdos_partition_entry): ... this. Update all users.
29263 (grub_pc_partition_mbr): Rename to ...
29264 (grub_msdos_partition_mbr): ... this. Update all users.
29265 (grub_pc_partition): Rename to ...
29266 (grub_msdos_partition): ... this. Update all users.
29267 (grub_pc_partition_is_empty): Rename to ...
29268 (grub_msdos_partition_is_empty): ... this. Update all users.
29269 (grub_pc_partition_is_extended): Rename to ...
29270 (grub_msdos_partition_is_extended): ... this. Update all users.
29271 (grub_pc_partition_is_bsd): Rename to ...
29272 (grub_msdos_partition_is_bsd): ... this. Update all users.
29273
29274 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
29275 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
29276 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
29277 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
29278 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
29279 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
29280 (gpt_mod_LDFLAGS): Rename to ...
29281 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
29282 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
29283 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
29284 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
29285 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
29286 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
29287 (part_gpt_mod_LDFLAGS): ... this.
29288 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
29289 `pcpart.mod' to `msdospart.mod'.
29290 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
29291 to ...
29292 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
29293 (msdospart_mod_LDFLAGS): ... this.
29294
c11fded5 292952009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29296
29297 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
29298 (openbsd_opts): Likewise.
29299 (netbsd_opts): Likewise.
29300 (freebsd_flags): Added 0 terminator.
29301 (openbsd_flags): Likewise.
29302 (netbsd_flags): Likewise.
29303 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
29304 (grub_cmd_freebsd): Transformed into extended command.
29305 (grub_cmd_openbsd): Likewise.
29306 (grub_cmd_netbsd): Likewise.
29307 (cmd_freebsd): Changed type to grub_extcmd_t.
29308 (cmd_openbsd): Likewise.
29309 (cmd_netbsd): Likewise.
29310 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
29311 grub_cmd_openbsd as extended commands.
29312 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
29313 cmd_netbsd and cmd_openbsd
29314
11d1c769 293152009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
29316
29317 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
29318
7a9094e5 293192009-08-21 Pavel Roskin <proski@gnu.org>
29320
5496c37e 29321 * Makefile.in (install-local): When checking if a file is in the
29322 build directory, use "test -e" to detect symlinks.
29323
7a9094e5 29324 * Makefile.in (install-local): Remove all files in
29325 $(DESTDIR)$(pkglibdir) before installing new files there.
29326
e53cea11 293272009-08-18 Felix Zielcke <fzielcke@z-51.de>
29328
29329 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29330 grub-mkelfimage.
29331
9aced544 293322009-08-18 Felix Zielcke <fzielcke@z-51.de>
29333
29334 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29335 explicitly specified by the user.
29336
b7da6bab 293372009-08-18 Pavel Roskin <proski@gnu.org>
29338
29339 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29340 grub_uint8_t pointer for data.
29341 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29342 Likewise.
29343 * video/fb/fbutil.c: Remove unnecessary casts.
29344
19f1b335 293452009-08-17 Michal Suchanek <hramrach@centrum.cz>
29346
29347 VBE cleanup.
29348
29349 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29350 (grub_vbe_set_video_mode): Save active mode info
29351 only after setting the mode.
29352 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29353 second argument.
29354
2f467aa9 293552009-08-17 Michal Suchanek <hramrach@centrum.cz>
29356
29357 Rename variables for clarity.
29358
29359 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29360 (active_vbe_mode_info): ... this. All users updated.
29361 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29362 All users updated.
29363 (initial_mode): Rename to ...
29364 (initial_vbe_mode): ... this. All users updated.
29365 (mode_in_use): Rename to ..
29366 (vbe_mode_in_use): ... this. All users updated.
29367 (mode_list): Rename to ..
29368 (vbe_mode_list): ... this. All users updated.
29369 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29370 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29371 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29372 'mode_list_size' to 'vbe_mode_list_size'.
29373 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29374 'best_mode_info' to 'best_vbe_mode_info' and
29375 'best_mode' to 'best_vbe_mode'
29376
6025fcd7 293772009-08-17 Michal Suchanek <hramrach@centrum.cz>
29378
29379 Remove duplicate grub_video_fb_get_video_ptr.
29380
29381 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29382 (grub_video_fb_get_video_ptr): ... this.
29383 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29384 * video/fb/fbutil.c: Add comment about addressing.
29385 (get_data_ptr): Rename to ...
29386 (grub_video_fb_get_video_ptr): ... this. All users updated.
29387 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29388
cc8c6faf 293892009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29390
29391 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29392 grub_dprintf() that was just added.
29393
08aa61f0 293942009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29395
29396 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29397 (DEFAULT_VIDEO_MODE): Remove macros.
29398 (grub_linux_boot): Remove assumption that Linux has FB support,
29399 and use "text" as default video mode.
29400
7cef4f75 294012009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29402
29403 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29404 grub_dprintf.
29405 * fs/fat.c (grub_fat_read_data): Likewise.
29406
e1f39873 294072009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29408
29409 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29410 payload.
29411 (grub_module): Likewise.
29412
c166d79e 294132009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29414
29415 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29416 mbi->cmdline but free playground.
29417
c60cee8e 294182009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29419
29420 Handle group offset on UFS1.
29421
29422 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29423 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29424
c0d8b5d4 294252009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29426
29427 Split ufs.mod into ufs1.mod and ufs2.mod.
29428
29429 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29430 (grub_fstest_SOURCES): Likewise.
29431 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29432 (ufs_mod_SOURCES): Remove.
29433 (ufs_mod_CFLAGS): Likewise.
29434 (ufs_mod_LDFLAGS): Likewise.
29435 (ufs1_mod_SOURCES): New variable.
29436 (ufs1_mod_CFLAGS): Likewise.
29437 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 29438 (ufs2_mod_SOURCES): New variable.
29439 (ufs2_mod_CFLAGS): Likewise.
29440 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 29441 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29442 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29443 Likewise.
29444 (grub_emu_SOURCES): Likewise.
29445 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29446 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29447 (grub_setup_SOURCES): Likewise.
29448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29449 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29450 (grub_setup_SOURCES): Likewise.
29451 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29452 Likewise.
29453 * fs/ufs2.c: New file.
29454 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29455
d3539132 294562009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29457
29458 Framebuffer split.
29459
29460 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29461 subsystem at the end.
29462 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29463 (video_fb_mod_SOURCES): New variable.
29464 (video_fb_mod_CFLAGS): Likewise.
29465 (video_fb_mod_LDFLAGS): Likewise.
29466 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29467 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29468 * video/i386/pc/vbeblit.c: Moved from here ...
29469 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29470 * video/i386/pc/vbefill.c: Moved from here ...
29471 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29472 * video/i386/pc/vbeutil.c: Moved from here ...
29473 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29474 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29475 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29476 * include/grub/i386/pc/vbefill.h: Moved from here ...
29477 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29478 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29479 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29480 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29481 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29482 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29483 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29484 (grub_video_adapter): Added 'get_info_and_fini'.
29485 (grub_video_get_info_and_fini): New prototype.
29486 (grub_video_set_mode): make modestring const char *.
29487 * loader/i386/linux.c (grub_linux_setup_video): Use
29488 grub_video_get_info_and_fini.
29489 (grub_linux_boot): Move modesetting just before booting.
29490 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29491 grub_video_get_info_and_fini.
29492 * video/i386/pc/vbe.c: Moved framebuffer part ...
29493 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29494 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29495 grub_video_fbstd_colors and grub_video_fb_set_palette.
29496 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29497 grub_video_fb_init.
29498 (grub_video_vbe_fini): Use grub_video_fb_fini.
29499 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29500 render_target and use grub_video_fb_set_active_render_target and
29501 grub_video_fb_set_palette.
29502 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29503 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29504 (grub_video_vbe_adapter): Use framebuffer.
29505 * video/video.c (grub_video_get_info_and_fini): New function.
29506 (grub_video_set_mode): Make modestring const char *.
29507 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29508 values are already initialised.
29509
d404ee56 295102009-08-14 Pavel Roskin <proski@gnu.org>
29511
29512 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29513 ABS and APPLE_CC.
29514 * boot/i386/pc/diskboot.S: Likewise.
29515 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29516 sectors allow compilation on MacOSX.
29517 * conf/i386-pc.rmk: Enable unconditional compilation of
29518 lnxboot.img.
29519
9a10df16 295202009-08-13 Colin Watson <cjwatson@ubuntu.com>
29521
29522 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29523 * util/grub.d/00_header.in: Enter interruptible sleep if
29524 GRUB_HIDDEN_TIMEOUT is set.
29525
be3c9ca7 295262009-08-13 Yves Blusseau <blusseau@zetam.org>
29527
29528 * include/grub/symbol.h: Add the LOCAL macro.
29529 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29530 starting with "L_".
29531
1f9e557e 295322009-08-13 Pavel Roskin <proski@gnu.org>
29533
9ca62843 29534 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29535 any modern compilers we support.
29536
1f9e557e 29537 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29538 Use local labels starting with "L_" so that Apple assembler
29539 knows they are local.
29540
81623db6 295412009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29542
29543 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29544 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29545 (bsd_kernel_types): ... this enum.
29546
29547 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29548 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29549 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29550
29551 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29552 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29553 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29554 messages.
29555
f5d35e7a 295562009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29557
29558 * util/grub-dumpdevtree: Moved from here ...
29559 * util/i386/efi/grub-dumpdevtree: ... to here.
29560 (hexify): New function. Converts a string to its hex version.
29561 Generate hex versions of "efi" and "device-properties" by calling
29562 hexify() on the ASCII strings rather than by hardcoding numbers.
29563
d1e1d527 295642009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29565
29566 * fs/jfs.c: Update copyright year.
29567
1ebbe064 295682009-08-08 Felix Zielcke <fzielcke@z-51.de>
29569
29570 * util/grub.d/00_header.in: Fix a comment.
29571 * util/grub.d/10_linux.in: Likewise.
29572 * util/grub.d/10_windows.in: Likewise.
29573 * util/grub.d/10_hurd.in: Likewise.
29574
a78c8d24 295752009-08-08 Felix Zielcke <fzielcke@z-51.de>
29576
29577 * util/grub-mkconfig.in: Allow the user to specify the used font
29578 with GRUB_FONT.
29579
29a6b9e8 295802009-08-08 Pavel Roskin <proski@gnu.org>
29581
b5f16cc4 29582 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29583 available, xfs.mod needs it now.
29584
2f5cb827 29585 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29586 the "g" modifier in sed when the intention is to strip something
29587 once. This fixes comparison of kernels with multiple dashes.
29588
29a6b9e8 29589 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29590 on it. Add missing space before closing bracket. Fix
29591 misleading formatting.
29592
892a3d98 295932009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29594
29595 * docs/grub.texi: Major overhaul. Remove all sections that are
29596 specific to GRUB Legacy, or mostly composed of Legacy-specific
29597 information.
29598
ed94253f 295992009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29600
29601 * docs/version.texi: New file. Provides version information for
29602 grub.texi.
29603
126d6628 296042009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29605
29606 * docs/grub.texi: Update CVS information to SVN.
29607 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29608
998b5aa9 296092009-08-07 Felix Zielcke <fzielcke@z-51.de>
29610
29611 * util/grub-mkconfig.in: Remove a wrong `fi'.
29612
818e094a 296132009-08-07 Felix Zielcke <fzielcke@z-51.de>
29614
29615 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29616 (grub_jfs_uuid): New function.
29617 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29618
b969c52f 296192009-08-07 Felix Zielcke <fzielcke@z-51.de>
29620
29621 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29622 of it to ...
29623 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29624 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29625
7a4894cc 296262009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29627
29628 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29629 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29630 Update all users.
29631
29632 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29633 not just "vmlinu[zx]".
29634 Moved from here ...
29635 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29636 all users.
29637
29638 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29639 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29640 all users.
29641
4e2171f8 296422009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29643
29644 * util/grub.d/10_freebsd.in: Use an absolute device path for
29645 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29646
6dcfcb32 296472009-08-06 Felix Zielcke <fzielcke@z-51.de>
29648
29649 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29650 handling of multiple abstraction modules.
29651
f56a8756 296522009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29653
29654 Fix a bug resulting in black screen when loading Linux using a
29655 packed video mode.
29656
29657 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29658 function.
29659
29660 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29661 (grub_vbe_bios_getset_dac_palette_width): New function.
29662 (grub_vbe_bios_get_dac_palette_width)
29663 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29664 grub_vbe_bios_getset_dac_palette_width()).
29665
29666 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29667 check for return status.
29668 (grub_vbe_get_video_mode_info): When getting information for a packed
29669 mode (<= 8 bpp), obtain DAC palette width using
29670 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29671 {red,green,blue}_mark_size.
29672
222671b2 296732009-08-04 Felix Zielcke <fzielcke@z-51.de>
29674
ecb1a6d9 29675 * commands/search.c (options): Fix help output to match actual code.
222671b2 29676
f84114f5 296772009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29678
29679 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29680 of homegrown code.
29681
bd288a20 296822009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 29683
29684 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29685 on XFS or ReiserFS.
29686
8aab5e25 296872009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29688
29689 Support Apple partition map with sector size different from 512 bytes.
29690
29691 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29692 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29693 and 'apart.partmap_size'.
29694
6ad6258a 296952009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
296962009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29697
29698 Fix cpuid command.
29699
29700 * commands/i386/cpuid.c (options): New variable.
29701 (grub_cmd_cpuid): Return real error.
29702 (GRUB_MOD_INIT(cpuid)): Declare options.
29703
67459bc6 297042009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29705
29706 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29707 valid.
29708
fbc6ab54 297092009-07-31 Bean <bean123ch@gmail.com>
29710
29711 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29712 log2_inode.
29713 (grub_fshelp_node): Move inode field to the end.
29714 (grub_xfs_data): Remove inode field.
29715 (grub_xfs_inode_block): Calculate inode size using sblock.
29716 (grub_xfs_inode_offset): Likewise.
29717 (grub_xfs_read_inode): Calculate inode size using sblock.
29718 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29719 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29720 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29721 to match inode size.
29722 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29723 not accessible when data is null.
29724 (grub_xfs_open): Likewise.
29725
f45d6cfc 297262009-07-31 Bean <bean123ch@gmail.com>
29727
29728 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29729 Don't change pv->disk if it's already set.
29730
29731 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29732 (grub_raid_register): ... here.
29733 (grub_raid_rescan): Removed.
29734
29735 * include/grub/raid.h (grub_raid_rescan): Removed.
29736
29737 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29738 (fstest): Replace grub_raid_rescan with module fini function followed
29739 by init function.
29740
29741 * util/grub-probe.c: Add include file <grub/raid.h>.
29742 (probe_raid_level): New function.
29743 (probe): Detect abstraction by walking the disk device, support two
29744 level of abstraction (LVM on RAID) when detecting partition map.
29745
24443b5a 297462009-07-31 Pavel Roskin <proski@gnu.org>
29747
29748 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29749 to grub_zalloc(), it was erroneous.
29750 Reported by Bean <bean123ch@gmail.com>
29751
a275d9e7 297522009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29753
29754 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 29755 embedding zone, not only the first one.
a275d9e7 29756
56c5a47f 297572009-07-29 Joe Auricchio <jauricchio@gmail.com>
29758
29759 * term/gfxterm.c (clear_char): New function.
29760 (grub_virtual_screen_setup): Use clear_char.
29761 (scroll_up): Likewise.
29762 (grub_virtual_screen_cls): Likewise.
29763
67bb323a 297642009-07-29 Felix Zielcke <fzielcke@z-51.de>
29765
29766 * util/deviceiter.c (get_acceleraid_disk_name): New static
29767 function.
29768 (grub_util_iterate_devices): Handle Accelraid devices.
29769 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29770
388a7c75 297712009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29772
29773 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29774 separator for the suggested gfxpayload string (';' collides with the
29775 parser and needs escaping).
29776
3bb7abcf 297772009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29778
29779 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29780 Clear direction flag before jumping to OS.
29781 (grub_multiboot2_real_boot): Likewise.
29782
2ddd36d7 297832009-07-28 Felix Zielcke <fzielcke@z-51.de>
29784
29785 * util/i386/pc/grub-install: Fix parsing of --disk-module
29786 option.
29787
c521b62b 297882009-07-28 Felix Zielcke <fzielcke@z-51.de>
29789
29790 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29791 when embedding.
29792
880e0a0c 297932009-07-26 Felix Zielcke <fzielcke@z-51.de>
29794
29795 * util/grub-mkconfig.in (package_version): New variable.
29796 Use it do display the version.
29797
2366e356 297982009-07-25 Felix Zielcke <fzielcke@z-51.de>
29799
29800 * kern/file.c (grub_file_open): Revert to previous check with
29801 grub_errno.
29802
7ad8c80e 298032009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29804
29805 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29806 from help line. It's out of sync with code.
29807
72b9658b 298082009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29809
29810 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29811 entries on failed boot.
29812
77435277 298132009-07-25 Felix Zielcke <fzielcke@z-51.de>
29814
29815 * kern/file.c (grub_file_open): Fix an error check.
29816
fcaa8b21 298172009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29818
35d16c74 29819 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29820 partition map couldn't be identified.
fcaa8b21 29821
48904cd1 298222009-07-23 Pavel Roskin <proski@gnu.org>
29823
ef3c317f 29824 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29825 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29826 case of little endian words becomes just an optimization.
29827 Respect const modifier.
ad8ea1f4 29828 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 29829
48904cd1 29830 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29831 to avoid loss of upper bits if align is unsigned and shorter
29832 than addr.
29833
260c9a89 298342009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29835
29836 UUID support for UFS
29837
29838 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29839 (grub_ufs_uuid): New function.
29840 (grub_ufs_fs): add .uuid
29841
f76ce889 298422009-07-21 Pavel Roskin <proski@gnu.org>
29843
29844 * kern/dl.c (grub_dl_check_header): Make static.
29845
6a6cbcaf 298462009-07-21 Felix Zielcke <fzielcke@z-51.de>
29847
29848 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29849 add drivemap for Vista. It breaks Windows 7.
29850
cffcddb2 298512009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29852
29853 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29854 128 bytes
29855
1ef44b80 298562009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29857
29858 Add BFS support
29859
29860 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29861 (grub_fstest_SOURCES): Likewise.
29862 (pkglib_MODULES): Add befs.mod.
29863 (befs_mod_SOURCES): New variable.
29864 (befs_mod_CFLAGS): Likewise.
29865 (befs_mod_LDFLAGS): Likewise.
29866 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29867 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29868 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29869 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29870 (grub_setup_SOURCES): Likewise.
29871 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29872 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29873 (grub_setup_SOURCES): Likewise.
29874 * fs/befs.c: New file.
29875 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29876 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29877 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29878 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29879 (B_KEY_INDEX_ALIGN): New declaration.
29880 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29881 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29882 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29883 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29884 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29885 (grub_afs_mount) [MODE_BFS]: Likewise.
29886 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29887 (grub_afs_fs): Use GRUB_AFS_FSNAME
29888 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29889 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29890 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29891 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29892
4f253044 298932009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29894
29895 * util/getroot.c (find_root_device): Add support for MacOSX.
29896 * util/hostdisk.c: Likewise.
29897
57a55913 298982009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29899
29900 * font/font.c (find_glyph): Check whether a font is present to avoid
29901 segmentation fault.
75421ca9 29902
299032009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 29904
29905 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29906
e98cd0c2 299072009-07-20 Pavel Roskin <proski@gnu.org>
29908
29909 * configure.ac: Trim excessively wordy excuses.
29910
1d2d169a 299112009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29912
29913 Add symlink, mtime and label support to AtheFS.
29914
29915 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29916 (grub_afs_iterate_dir): Handle symlinks.
29917 (grub_afs_open): Use grub_afs_read_symlink.
29918 (grub_afs_dir): Likewise.
29919 Pass mtime.
29920 (grub_afs_label): New function.
29921 (grub_afs_fs): Add grub_afs_label.
29922 (grub_afs_read_symlink): New function.
29923
186f3189 299242009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29925
29926 Fix AtheFS support.
29927
29928 * fs/afs.c: Fix comments style.
29929 (grub_afs_blockrun): Declare as packed.
29930 (grub_afs_datastream): Likewise.
29931 (grub_afs_bnode): Likewise.
29932 (grub_afs_btree): Likewise.
29933 (grub_afs_sblock): Likewise.
29934 Declare `name' as char.
29935 (grub_afs_inode): Declare as packed.
29936 Change void *vnode to grub_uint32_t unused.
29937 (grub_afs_iterate_dir): Check that key_size is positive.
29938 (grub_afs_mount): Don't read superblock twice.
75421ca9 29939 (grub_afs_dir): Don't free node in case of error,
186f3189 29940 grub_fshelp_find_file already handles this.
29941 (grub_afs_open): Likewise.
29942
5680109e 299432009-07-19 Pavel Roskin <proski@gnu.org>
29944
29945 * Makefile.in: Remove LIBLZO and enable_lzo.
29946 * conf/i386-pc.rmk: Remove lzo support.
29947 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29948 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29949 support.
29950 * kern/i386/pc/lzo1x.S: Remove.
29951 * kern/i386/pc/startup.S: Remove lzo support.
29952 * util/i386/pc/grub-mkimage.c: Likewise.
29953
ac70fa32 299542009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29955
29956 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29957 * fs/xfs.c (grub_xfs_dir): Likewise.
29958 * fs/afs.c (grub_afs_dir): Likewise.
29959 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29960 (grub_iso9660_open): Likewise.
29961 * fs/jfs.c (grub_jfs_open): Likewise.
29962 * fs/ext2.c (grub_ext2_dir): Likewise.
29963 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29964 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 29965
eab58da2 299662009-07-16 Pavel Roskin <proski@gnu.org>
29967
d2838156 29968 * configure.ac: Never add "-c" to CFLAGS.
29969
55c70904 29970 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29971
43e6200c 29972 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29973 grub_cv_cc_efiemu should be used.
29974
ce7a733d 29975 * configure.ac: Typo fixes.
29976
eab58da2 29977 * kern/mm.c (grub_zalloc): New function.
29978 (grub_debug_zalloc): Likewise.
29979 * include/grub/mm.h: Declare grub_zalloc() and
29980 grub_debug_zalloc().
29981 * util/misc.c (grub_zalloc): New function.
29982 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29983 instead of grub_malloc(), remove unneeded initializations.
29984 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29985 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29986 * commands/parttool.c (grub_cmd_parttool): Likewise.
29987 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29988 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29989 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29990 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29991 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29992 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29993 (grub_cmd_efiemu_pnvram): Likewise.
29994 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29995 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29996 (grub_iso9660_iterate_dir): Likewise.
29997 * fs/jfs.c (grub_jfs_opendir): Likewise.
29998 * fs/ntfs.c (list_file): Likewise.
29999 (grub_ntfs_mount): Likewise.
30000 * kern/disk.c (grub_disk_open): Likewise.
30001 * kern/dl.c (grub_dl_load_core): Likewise.
30002 * kern/elf.c (grub_elf_file): Likewise.
30003 * kern/env.c (grub_env_context_open): Likewise.
30004 (grub_env_set): Likewise.
30005 (grub_env_set_data_slot): Likewise.
30006 * kern/file.c (grub_file_open): Likewise.
30007 * kern/fs.c (grub_fs_blocklist_open): Likewise.
30008 * loader/i386/multiboot.c (grub_module): Likewise.
30009 * loader/xnu.c (grub_xnu_create_key): Likewise.
30010 (grub_xnu_create_value): Likewise.
30011 * normal/main.c (grub_normal_add_menu_entry): Likewise.
30012 (read_config_file): Likewise.
30013 * normal/menu_entry.c (make_screen): Likewise.
30014 * partmap/sun.c (sun_partition_map_iterate): Likewise.
30015 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
30016 * script/sh/script.c (grub_script_parse): Likewise.
30017 * video/bitmap.c (grub_video_bitmap_create): Likewise.
30018 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
30019 * video/readers/png.c (grub_png_output_byte): Likewise.
30020 (grub_video_reader_png): Likewise.
30021
830afef7 300222009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 30023
30024 Enable all targets that can be built by default
30025
830afef7 30026 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 30027 grub-mkfont and grub-fstest if they can be built
30028
ee293aee 300292009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30030
30031 Fix hang and segmentation fault in grub-emu-usb
30032
30033 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
30034 * util/usb.c (grub_libusb_devices): likewise
30035 (grub_libusb_init): rename to ...
30036 (GRUB_MOD_INIT (libusb)):...this
30037 (grub_libusb_fini): rename to ..
30038 (GRUB_MOD_FINI (libusb)):...this
30039 * disk/usbms.c (grub_usbms_transfer): fix retry logic
30040 * include/grub/disk.h (grub_raid_init): removed, it's useless
30041 (grub_raid_fini): likewise
30042 (grub_lvm_init): likewise
30043 (grub_lvm_fini): likewise
30044 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
30045 by grub_init_all
30046
94414221 300472009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30048
30049 Fix libusb
30050
30051 * Makefile.in (LIBUSB): new macro
30052 * genmk.rb (Utility/print_tail): new method
30053 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
30054 (top level): call util.print_tail at the end.
30055
59ade63d 300562009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30057
30058 Make FreeBSD accept zpool.cache
30059
30060 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
30061 type is /boot/zfs/zpool.cache
30062
a58da8c7 300632009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30064
30065 Fix 64-bit efiemu
30066
30067 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
30068 correct wrong typedef
30069 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
30070
20591577 300712009-07-15 Pavel Roskin <proski@gnu.org>
30072
560ca572 30073 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
30074 * kern/disk.c (struct grub_disk_cache): Likewise.
30075
e8e8e4fd 30076 * commands/probe.c (options): Typo fix.
30077
fde24e10 30078 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
30079 Increase to 0x5a to accommodate FAT32. Adjust other offsets
30080 accordingly.
30081 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
30082
379c54c1 30083 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
30084 the end of "Error" to make the message more readable.
30085
7bd8f5bf 30086 * boot/i386/pc/boot.S (kernel_segment): Remove.
30087 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
30088 for destination.
30089
40b132c5 30090 * boot/i386/pc/boot.S (boot_version): Remove.
30091 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
30092 Remove.
30093
20591577 30094 * include/grub/i386/pc/boot.h: Sort all offsets.
30095 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
30096 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
30097 * boot/i386/pc/boot.S: Assert location of every offset listed in
30098 include/grub/i386/pc/boot.h.
30099
2df32b2c 301002009-07-13 Pavel Roskin <proski@gnu.org>
30101
44b5d879 30102 * include/grub/i386/coreboot/machine.h: Rename
30103 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
30104 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
30105 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
30106
17dc3751 30107 * kern/dl.c: Force native word size to suppress warnings when
30108 compiling grub-emu.
30109
2df32b2c 30110 * kern/device.c (grub_device_iterate): Change struct part_ent to
30111 hold the name, not a pointer to it. Use one grub_malloc() per
30112 partition, not two. Free partition_name if grub_malloc() fails.
30113 Set ents to NULL only before grub_partition_iterate() is called.
30114
75c59f59 301152009-07-11 Bean <bean123ch@gmail.com>
30116
30117 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
30118 childname.
30119
0ae1bf88 301202009-07-10 Bean <bean123ch@gmail.com>
301212009-07-10 Robert Millan <rmh.grub@aybabtu.com>
30122
30123 * kern/ieee1275/openfw.c (grub_children_iterate)
30124 (grub_devalias_iterate): Fix size evaluation for property or path
30125 strings, which was broken since r2132.
30126
8279cade 301272009-07-07 Pavel Roskin <proski@gnu.org>
30128
7d8a52d3 30129 * commands/search.c (search_file): Merge into ...
30130 (search_fs): ... this. Accept search type as argument.
30131 (grub_cmd_search): Pass search type to search_fs().
30132
25f9a05a 30133 * include/grub/util/console.h: New file.
30134 * util/console.c: Use it instead of grub/machine/console.h.
30135 * util/grub-emu.c: Likewise.
30136
8279cade 30137 * lib/arg.c (find_long_option): Remove.
30138 (find_long): Add `len' argument, make `s' const char *.
30139 (grub_arg_parse): Parse long options in place, not in a
30140 temporary buffer.
30141
4a11b60f 301422009-07-06 Pavel Roskin <proski@gnu.org>
30143
99f68041 30144 * commands/search.c (search_fs): Fix potential NULL pointer
30145 dereference.
30146
4a11b60f 30147 * commands/search.c (search_fs): Replace QUID macro with quid_fn
30148 function pointer.
30149
e110f4de 301502009-07-06 Daniel Mierswa <impulze@impulze.org>
30151
30152 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
30153 comparison.
30154
46eeb6a2 301552009-07-05 Pavel Roskin <proski@gnu.org>
30156
bab74958 30157 * include/grub/i386/linux.h (struct linux_kernel_params):
30158 Restore padding3, it's still needed.
30159
46eeb6a2 30160 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
30161 FreeBSD.
30162 * util/osdetect.lua: Likewise.
30163
b4a1dc79 301642009-07-05 Bean <bean123ch@gmail.com>
30165
30166 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
30167
30168 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
30169 (grub_lua_getenv): Likewise.
30170 (grub_lua_setenv): Likewise.
30171 (save_errno): New function.
30172 (push_result): Likewise.
30173 (grub_lua_enum_device): Likewise.
30174 (grub_lua_enum_file): Likewise.
30175 (grub_lua_file_open): Likewise.
30176 (grub_lua_file_close): Likewise.
30177 (grub_lua_file_seek): Likewise.
30178 (grub_lua_file_read): Likewise.
30179 (grub_lua_file_getline): Likewise.
30180 (grub_lua_file_getsize): Likewise.
30181 (grub_lua_file_getpos): Likewise.
30182 (grub_lua_file_eof): Likewise.
30183 (grub_lua_file_exist): Likewise.
30184 (grub_lua_add_menu): Likewise.
30185
30186 * script/lua/grub_lua.h (isupper): New inline function.
30187 (islower): Likewise.
30188 (ispunct): Likewise.
30189 (isxdigit): Likewise.
30190 (strcspn): Change to normal function.
30191 (strpbkr): New function declaration.
30192 (memchr): Likewise.
30193
30194 * script/lua/grub_main.c (scan_str): New function.
30195 (strcspn): Likewise.
30196 (strpbrk): Likewise.
30197 (memchr): Likewise.
30198
30199 * script/lua/linit.c (lualibs): Enable the string library.
30200
30201 * util/osdetect.lua: New file.
30202
2da92295 302032009-07-04 Robert Millan <rmh.grub@aybabtu.com>
30204
30205 * include/grub/i386/linux.h (struct linux_kernel_params): Add
30206 `capabilities' member.
30207
b2582ec9 302082009-07-02 Pavel Roskin <proski@gnu.org>
30209
30210 * genparttoollist.sh: Add missing newline at the end.
30211
32622956 302122009-07-01 Pavel Roskin <proski@gnu.org>
30213
87a7339e 30214 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
30215
d23af54e 30216 * util/hostdisk.c (open_device): Remove `const' from
30217 `sysctl_size', as sysctlbyname() can change it (in this case it
30218 doesn't actually happen).
30219
c94b18a9 30220 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
30221 using signed long int constants.
30222
c6cd3ef0 30223 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
30224 constant to avoid a warning on FreeBSD.
30225
0df63420 30226 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
30227 where it's needed.
30228
999577f1 30229 * Makefile.in: Install include/grub/machine symlink.
30230
6f41557f 30231 * Makefile.in: When installing symlinks, use "cp -fR", which
30232 works on FreeBSD and MacOSX.
30233 From Yves Blusseau <cl7m42e02@sneakemail.com>
30234
c8d22988 30235 * kern/dl.c (grub_dl_resolve_symbol): Make static.
30236 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
30237
1b96e952 30238 * util/misc.c: Move grub_reboot() and grub_halt() ...
30239 * util/grub-emu.c: ... here. Make main_env static.
30240 * include/grub/util/misc.h: Remove main_env.
30241
2ef0084d 30242 * kern/mm.c: Use correct format to print size_t.
30243
32622956 30244 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
30245 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
30246 * kern/powerpc/dl.c: Likewise.
30247 * kern/sparc64/dl.c: Likewise.
30248 * kern/x86_64/dl.c: Likewise.
30249
3f7f0cd0 302502009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30251
30252 Fix grub-emu build on sparc64-ieee1275.
30253
75421ca9 30254 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 30255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
30256
211d06b5 302572009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30258
30259 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
30260 (grub_reboot, grub_halt): New functions.
30261
30262 * util/i386/pc/misc.c: Delete. Update all users.
30263 * util/sparc64/ieee1275/misc.c: Likewise.
30264 * util/powerpc/ieee1275/misc.c: Likewise.
30265
aaf53e3c 302662009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30267
30268 * conf/i386.rmk (setjmp_mod_SOURCES)
30269 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
30270 * conf/common.rmk (setjmp_mod_SOURCES)
30271 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
30272 to use $(target_cpu).
30273 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
30274 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
30275 * conf/powerpc-ieee1275.rmk: Likewise.
30276 * conf/sparc64-ieee1275.rmk: Likewise.
30277
30278 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
30279 $(target_cpu) for kern/$(target_cpu)/dl.c.
30280 * conf/i386-efi.rmk: Likewise.
30281 * conf/i386-ieee1275.rmk: Likewise.
30282 * conf/x86_64-efi.rmk: Likewise.
30283 * conf/i386-coreboot.rmk: Likewise.
30284 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
30285 $(target_cpu) for kern/$(target_cpu)/dl.c and for
30286 kern/$(target_cpu)/cache.S.
30287 * conf/sparc64-ieee1275.rmk: Likewise.
30288
a337130b 302892009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30290
30291 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
30292 type to `grub_uint8_t', and adjust `padding9' accordingly.
30293
c6fe4d53 302942009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30295
b09db61d 30296 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
30297
c6fe4d53 30298 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
30299 assembly in final jump, using register constraints.
30300
b09db61d 30301 (grub_linux_boot): For text mode, initialize `have_vga' using
30302 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
30303
30304 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
30305 right before the final jump.
30306
30307 Set `video_mode' to 0x3.
30308
30309 Document initialization of `video_page', `video_mode' and
30310 `video_ega_bx'.
30311
28333ad0 303122009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30313
30314 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
30315 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 30316 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 30317
02164e1b 303182009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30319
30320 Fix build on Debian / sparc.
30321
30322 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30323
18b6c557 303242009-06-28 Pavel Roskin <proski@gnu.org>
30325
85f2aab6 30326 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30327 fix a warning.
30328
18b6c557 30329 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30330
ad760f81 303312009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30332
30333 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30334 `err'.
30335
87a4623b 303362009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30337
30338 Revert r2338.
30339
30340 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30341 file can't be opened. grub_file_open() is already supposed to set
75421ca9 30342 grub_errno / grub_errmsg appropriately.
87a4623b 30343 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30344
8231fb77 303452009-06-27 Pavel Roskin <proski@gnu.org>
303462009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30347
30348 * include/grub/dl.h: Include grub/elf.h.
30349 (struct grub_dl): Add symtab field.
30350 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30351 GRUB_MODULES_MACHINE_READONLY.
30352 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30353 of the header for read-only modules.
30354 (grub_dl_unload): Free mod->symtab for read-only modules.
30355 * kern/i386/dl.c: Use mod->symtab.
30356 * kern/powerpc/dl.c: Likewise.
30357 * kern/sparc64/dl.c: Likewise.
30358 * kern/x86_64/dl.c: Likewise.
30359
30360 * conf/i386-qemu.rmk: New file.
30361 * kern/i386/qemu/startup.S: Likewise.
30362 * kern/i386/qemu/mmap.c: Likewise.
30363 * boot/i386/qemu/boot.S: Likewise.
30364 * include/grub/i386/qemu/time.h: Likewise.
30365 * include/grub/i386/qemu/serial.h: Likewise.
30366 * include/grub/i386/qemu/kernel.h: Likewise.
30367 * include/grub/i386/qemu/console.h: Likewise.
30368 * include/grub/i386/qemu/boot.h: Likewise.
30369 * include/grub/i386/qemu/init.h: Likewise.
30370 * include/grub/i386/qemu/machine.h: Likewise.
30371 * include/grub/i386/qemu/loader.h: Likewise.
30372 * include/grub/i386/qemu/memory.h: Likewise.
30373
30374 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30375 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30376 [qemu] (pkglib_IMAGES): Add `boot.img'.
30377 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30378 [qemu] (boot_img_FORMAT): New variables.
30379 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30380 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30381 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30382 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30383 [qemu] (kernel_img_FORMAT): New variables.
30384
30385 * configure.ac: Recognise `i386-qemu'.
30386
30387 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30388 (for no compression).
30389 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30390 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30391 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30392 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30393 ifdefs).
30394
97fe384e 303952009-06-27 Pavel Roskin <proski@gnu.org>
30396
30397 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30398 read.
30399 * efiemu/prepare32.c: Likewise.
30400 * efiemu/prepare64.c: Likewise.
30401
c402ab17 304022009-06-26 Pavel Roskin <proski@gnu.org>
30403
30404 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30405 * include/grub/elf.h: Define symbols without "32" or "64" based
30406 on GRUB_TARGET_WORDSIZE.
30407 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30408 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30409 ELF definitions.
30410 * efiemu/loadcore64.c: Likewise.
30411 * loader/i386/bsd32.c: Likewise.
30412 * loader/i386/bsd64.c: Likewise.
30413 * kern/dl.c: Remove own ELF definitions.
30414 * util/i386/efi/grub-mkimage.c: Likewise.
30415
9bbdfd4d 304162009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30417
30418 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30419 segment 0x0 unconditionally, because the reference generated by
30420 GAS is an absolute address.
30421
a42ce6e9 304222009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30423
30424 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30425 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30426
c952cf92 304272009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30428
30429 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30430 indexes. Check for -f explicitly.
cc3752ad 30431 (search_file): Improve error message.
30432 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 30433
132a0a59 304342009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30435
30436 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30437 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30438
387a140c 304392009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30440
30441 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30442 * conf/i386-ieee1275.rmk: Likewise.
30443 * conf/i386-coreboot.rmk: Likewise.
30444
30445 * kern/i386/pc/startup.S (grub_stop): Remove function.
30446 * kern/i386/ieee1275/startup.S: Likewise.
30447 * kern/i386/coreboot/startup.S: Likewise.
30448 * kern/i386/misc.S (grub_stop): New function.
30449
41da9665 304502009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30451
30452 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30453 * kern/i386/realmode.S (real_to_prot): ... to here.
30454
bf337234 304552009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30456
30457 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30458 with `kernel.img'.
30459 (kernel_elf_SOURCES): Rename to ...
30460 (kernel_img_SOURCES): ... this.
30461 (kernel_elf_HEADERS): Rename to ...
30462 (kernel_img_HEADERS): ... this. Update all users.
30463 (kernel_elf_ASFLAGS): Rename to ...
30464 (kernel_img_ASFLAGS): ... this.
30465 (kernel_elf_CFLAGS): Rename to ...
30466 (kernel_img_CFLAGS): ... this.
30467 (kernel_elf_LDFLAGS): Rename to ...
30468 (kernel_img_LDFLAGS): ... this.
30469 * conf/i386-coreboot.rmk: Likewise.
30470 * conf/powerpc-ieee1275.rmk: Likewise.
30471
30472 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30473 with "kernel.img".
30474
f52196ff 304752009-06-21 Pavel Roskin <proski@gnu.org>
30476
c3cee413 30477 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30478 to match nested functions.
30479 * loader/sparc64/ieee1275/linux.c: Likewise.
30480
f52196ff 30481 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30482
58750afc 304832009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30484
30485 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30486 all i386 platforms.
30487
15355c7d 304882009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30489
30490 Fix asm file handling on ELF, and remove workarounds.
30491
30492 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 30493 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 30494 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30495 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30496
3f3ec72b 304972009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30498
30499 Load BSD ELF modules
30500
30501 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30502 and loader/i386/bsd64.c
30503 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30504 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30505 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30506 (grub_freebsd_load_elfmodule32): New declaration
30507 (grub_freebsd_load_elfmoduleobj64): Likewise
30508 (grub_freebsd_load_elf_meta32): Likewise
30509 (grub_freebsd_load_elf_meta64): Likewise
30510 (grub_freebsd_add_meta): Likewise
30511 (grub_freebsd_add_meta_module): Likewise
30512 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30513 (grub_freebsd_add_meta_module): Likewise and move module-specific
30514 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30515 (grub_cmd_freebsd): Add elf-kernel specific parts
30516 based on grub_freebsd_add_meta_module
30517 (grub_cmd_freebsd_module): Add type parsing moved from
30518 grub_freebsd_add_meta_module
30519 (grub_cmd_freebsd_module_elf): New function
30520 (cmd_freebsd_module_elf): New variable
30521 (GRUB_MOD_INIT): Register freebsd_module_elf
30522 * loader/i386/bsd32.c: New file
30523 * loader/i386/bsd64.c: Likewise
30524 * loader/i386/bsdXX.c: Likewise
30525 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30526 (grub_elf64_load): Likewise
30527 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30528 All users updated
30529 (grub_elf64_load_hook_t): Likewise
30530
0db15301 305312009-06-21 Colin Watson <cjwatson@ubuntu.com>
30532
30533 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30534 variable.
30535 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30536 don't write a menu entry for recovery mode.
30537
546796c1 305382009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30539
30540 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30541 after it's no longer needed.
30542
cd7310d5 305432009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30544
30545 * include/grub/i386/loader.h (grub_linux_prot_size)
30546 (grub_linux_tmp_addr, grub_linux_real_addr)
30547 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30548 GRUB_MACHINE_PCBIOS.
30549 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30550 common grub_util_info() call to ...
30551 (generate_image): ... here.
30552 Fix use of uninitialized memory, comparison of signed with
30553 unsigned integers and memory leak.
30554 Remove bogus module address message.
30555
ab32d3b5 305562009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30557
30558 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30559 grub_raid_register
30560 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30561
024ef597 305622009-06-19 Pavel Roskin <proski@gnu.org>
30563
30564 * configure.ac: Remove stray AC_MSG_CHECKING.
30565
3ac72b51 305662009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30567
30568 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 30569
e14cd814 305702009-06-18 Pavel Roskin <proski@gnu.org>
30571
30572 * conf/common.rmk: Add fs_file.mod.
30573 * disk/fs_file.c: New file.
30574 * include/grub/disk.h (enum grub_disk_dev_id): Add
30575 GRUB_DISK_DEVICE_FILE_ID.
30576
26586d98 305772009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30578
30579 Fix build with Apple's toolchain. Part 2
30580
30581 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30582 a fake start
30583
26de2bcd 305842009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30585
30586 Fix build with Apple's toolchain. Part 1
30587
30588 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30589 for long calls
30590 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 30591 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 30592 Apple's toolchain
30593
09b3490b 305942009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30595
30596 Fix warnings
30597
30598 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30599 (decomp_block): initialize ch
30600 use grub_memcpy instead of memcpy
30601
c22a006a 306022009-06-17 Pavel Roskin <proski@gnu.org>
30603
d3638678 30604 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30605 version, use declarations needed to use vga_text as the startup
30606 console.
30607
c22a006a 30608 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30609 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30610 the kernel.
30611 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30612 and grub_at_keyboard_fini(), it's done on module load and
30613 unload.
30614
05b129e0 306152009-06-17 Felix Zielcke <fzielcke@z-51.de>
30616
30617 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30618 file can't be found.
30619 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30620
cf24ed9e 306212009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30622
30623 Fix newline handling
30624
30625 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 30626 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 30627 (grub_script_yylex): don't segfault on unterminated script
30628 newline terminates command and variable
30629
74aa8e4b 306302009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30631
30632 avoid double grub_adjust_range call. Bug reported by David Simner
30633
30634 * kern/disk.c (grub_disk_write): change to raw disk access before
30635 calling disk_read
30636
1bd265f3 306372009-06-17 Colin Watson <cjwatson@ubuntu.com>
30638
30639 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30640 spaces, for the benefit of help2man.
30641 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30642
a2d08c06 306432009-06-16 Pavel Roskin <proski@gnu.org>
30644
30645 * kern/i386/halt.c: Include grub/machine/init.h.
30646 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30647
b97bcb19 306482009-06-16 Felix Zielcke <fzielcke@z-51.de>
30649
30650 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30651 drivemap menuentry.
30652
0644f96c 306532009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30654
30655 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30656 `echo' command.
30657
3ef17a2e 306582009-06-16 Pavel Roskin <proski@gnu.org>
30659
30660 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30661 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30662 save %dx, we only need %dl and we never change it.
30663 * boot/i386/pc/cdboot.S: Don't set the root drive.
30664 * boot/i386/pc/pxeboot.S: Likewise.
30665 * include/grub/i386/pc/boot.h: Remove
30666 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30667 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30668 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30669 * kern/i386/pc/init.c (make_install_device): Remove references
30670 to grub_root_drive.
30671 * kern/i386/pc/startup.S: Likewise.
30672 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30673
693fe637 306742009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30675
30676 xnu_uuid command
30677
30678 * commands/xnu_uuid.c: new file
30679 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30680 (xnu_uuid_mod_SOURCES): new variable
30681 (xnu_uuid_mod_CFLAGS): likewise
30682 (xnu_uuid_mod_LDFLAGS): likewise
30683 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30684 * conf/i386-ieee1275.rmk: likewise
30685 * conf/i386-pc.rmk: likewise
30686 * conf/powerpc-ieee1275.rmk: likewise
30687 * conf/sparc64-ieee1275.rmk: likewise
30688 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30689
c9da87d0 306902009-06-16 Pavel Roskin <proski@gnu.org>
30691
30692 * configure.ac: Avoid '==' in test command, it's not portable.
30693
9c6f4596 306942009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30695
30696 Probe command
30697
30698 * commands/probe.c: new file
30699 * conf/common.rmk (pkglib_MODULES): add probe.mod
30700 (probe_mod_SOURCES): new variable
30701 (probe_mod_CFLAGS): likewise
30702 (probe_mod_LDFLAGS): likewise
30703 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30704 * conf/i386-ieee1275.rmk: likewise
30705 * conf/i386-pc.rmk: likewise
30706 * conf/powerpc-ieee1275.rmk: likewise
30707 * conf/sparc64-ieee1275.rmk: likewise
30708
70b7f9fd 307092009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30710
30711 Fix handling of string like \"hello\" and "a
30712 b"
30713
30714 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30715 (grub_script_yylex): fix parsing of quoting, escaping and newline
30716
71c79a6b 307172009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30718
dd74360c 30719 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 30720 handling
dd74360c 30721
0644f96c 307222009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 30723
30724 * util/grub-mkconfig.in: Fix parsing of --output option.
30725
e40893c3 307262009-06-12 Pavel Roskin <proski@gnu.org>
30727
30728 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30729 genmk.rb don't need to be generated or installed.
30730
3a1acfe2 307312009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30732
30733 * commands/i386/pc/drivemap_int13h.S: add more comments
30734
3a4575d4 307352009-06-11 Pavel Roskin <proski@gnu.org>
30736
0658e928 30737 * Makefile.in (uninstall): Uninstall manuals.
30738
ca0388f0 30739 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30740 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30741 and update-grub_lib in two places.
30742 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30743
e3b27c39 30744 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30745 a compiler warning.
30746
3a4575d4 30747 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30748 `entry_lo' to fix variable shadowing.
30749
af1f4f55 307502009-06-11 Christian Franke <franke@computer.org>
30751
30752 * kern/misc.c (__enable_execute_stack): Add missing return type
30753 to prevent gcc warning.
30754
5225e649 307552009-06-11 Felix Zielcke <fzielcke@z-51.de>
30756
30757 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30758
7d83bd47 307592009-06-11 Pavel Roskin <proski@gnu.org>
30760
c1cb63ba 30761 * Makefile.in: Don't rely on any scripts being executable.
30762 Always use $(SHELL) to run shell scripts.
30763
7d83bd47 30764 * configure.ac: Always define ___main if using -nostdlib. This
30765 fixes tests on Cygwin.
30766
948f48e7 307672009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30768
30769 UDF fix
30770
7d83bd47 30771 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 30772 is in bytes and not in blocks
7d83bd47 30773
8ada9bc1 307742009-06-11 Pavel Roskin <proski@gnu.org>
30775
30776 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30777 warning.
30778
25ad2323 307792009-06-11 Felix Zielcke <fzielcke@z-51.de>
30780
30781 * util/grub.d/30_os-prober.in: Fix a comment. Source
30782 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30783 to set the root device. Place drivemap command in the generated
30784 chain entry.
30785
e65acb0c 307862009-06-11 Pavel Roskin <proski@gnu.org>
30787
30788 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30789 have long been resolved.
30790
f285fe2d 307912009-06-11 Colin Watson <cjwatson@ubuntu.com>
30792
bd47b0b5 30793 * util/grub.d/10_linux.in: Capitalise "Linux".
30794
f285fe2d 30795 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30796
a0c62e4e 307972009-06-11 Pavel Roskin <proski@gnu.org>
30798
b6783cb2 30799 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30800 fix a gcc warning and ensure that the function won't ever exit.
30801
dde032e8 30802 * kern/i386/ieee1275/init.c: Add missing prototype for
30803 grub_stop_floppy().
30804
22cd079d 30805 * loader/ieee1275/multiboot2.c [__i386__]: Include
30806 grub/cpu/multiboot.h.
30807
a0c62e4e 30808 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30809 casts to short - they are not portable and cause warnings. Fix
30810 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30811
63963d17 308122009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30813
30814 Drivemap fixes
30815
30816 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30817 new function
30818 (grub_get_root_biosnumber_saved): new variable
30819 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30820 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 30821 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 30822 %dx after the call if necessary
30823 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30824 (boot_mod_SOURCES): remove
30825 (boot_mod_CFLAGS): remove
30826 (boot_mod_LDFLAGS): remove
30827 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30828 (boot_mod_SOURCES): new variable
30829 (boot_mod_CFLAGS): likewise
30830 (boot_mod_LDFLAGS): likewise
30831 * conf/i386-efi.rmk: likewise
30832 * conf/i386-ieee1275.rmk: likewise
30833 * conf/i386-pc.rmk: likewise
30834 * conf/powerpc-ieee1275.rmk: likewise
30835 * conf/sparc64-ieee1275.rmk: likewise
30836 * conf/x86_64-efi.rmk: likewise
30837 * include/grub/i386/pc/biosnum.h: new file
30838 * lib/i386/pc/biosnum.c: likewise
30839 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30840 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30841 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 30842
33abf7ae 308432009-06-10 Pavel Roskin <proski@gnu.org>
30844
5ac35b35 30845 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30846 Use separate variables. Read only the file size at the end, but
30847 not the checksum that we don't use.
30848
5c5215d5 30849 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30850 Adjust all callers.
30851
27d5fef7 30852 * kern/ieee1275/openfw.c: Remove libc includes.
30853 * kern/ieee1275/cmain.c: Likewise.
30854 * include/grub/ieee1275/ieee1275.h: Likewise.
30855
33abf7ae 30856 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30857 compiler warnings.
30858
19d50c2b 308592009-06-10 Felix Zielcke <fzielcke@z-51.de>
30860
30861 * Makefile.in: Remove all trailing whitespace.
30862 * conf/i386-pc.rmk: Likewise.
30863 * conf/powerpc-ieee1275.rmk: Likewise.
30864 * conf/sparc64-ieee1275.rmk: Likewise.
30865 * docs/grub.texi: Likewise.
30866 * docs/texinfo.tex: Likewise.
30867 * disk/fs_uuid.c: Likewise.
30868 * disk/lvm.c: Likewise.
30869 * disk/scsi.c: Likewise.
30870 * disk/ata.c: Likewise.
30871 * disk/ieee1275/ofdisk.c: Likewise.
30872 * disk/i386/pc/biosdisk.c: Likewise.
30873 * disk/host.c: Likewise.
30874 * disk/raid.c: Likewise.
30875 * disk/efi/efidisk.c: Likewise.
30876 * disk/usbms.c: Likewise.
30877 * disk/memdisk.c: Likewise.
30878 * disk/loopback.c: Likewise.
30879 * kern/powerpc/dl.c: Likewise.
30880 * kern/device.c: Likewise.
30881 * kern/dl.c: Likewise.
30882 * kern/sparc64/dl.c: Likewise.
30883 * kern/ieee1275/ieee1275.c: Likewise.
30884 * kern/term.c: Likewise.
30885 * kern/fs.c: Likewise.
30886 * kern/i386/dl.c: Likewise.
30887 * kern/i386/pc/startup.S: Likewise.
30888 * kern/i386/pc/init.c: Likewise.
30889 * kern/i386/pc/mmap.c: Likewise.
30890 * kern/i386/pc/lzo1x.S: Likewise.
30891 * kern/i386/ieee1275/init.c: Likewise.
30892 * kern/i386/realmode.S: Likewise.
30893 * kern/i386/tsc.c: Likewise.
30894 * kern/partition.c: Likewise.
30895 * kern/corecmd.c: Likewise.
30896 * kern/file.c: Likewise.
30897 * kern/efi/efi.c: Likewise.
30898 * kern/efi/init.c: Likewise.
30899 * kern/efi/mm.c: Likewise.
30900 * kern/main.c: Likewise.
30901 * kern/err.c: Likewise.
30902 * kern/env.c: Likewise.
30903 * kern/disk.c: Likewise.
30904 * kern/generic/millisleep.c: Likewise.
30905 * kern/generic/rtc_get_time_ms.c: Likewise.
30906 * kern/misc.c: Likewise.
30907 * kern/parser.c: Likewise.
30908 * genmk.rb: Likewise.
30909 * configure.ac: Likewise.
30910 * boot/i386/pc/diskboot.S: Likewise.
30911 * boot/i386/pc/pxeboot.S: Likewise.
30912 * boot/i386/pc/boot.S: Likewise.
30913 * boot/i386/pc/lnxboot.S: Likewise.
30914 * boot/i386/pc/cdboot.S: Likewise.
30915 * parttool/pcpart.c: Likewise.
30916 * video/readers/tga.c: Likewise.
30917 * video/video.c: Likewise.
30918 * video/bitmap.c: Likewise.
30919 * lib/envblk.c: Likewise.
30920 * lib/i386/setjmp.S: Likewise.
30921 * fs/xfs.c: Likewise.
30922 * fs/afs.c: Likewise.
30923 * fs/fat.c: Likewise.
30924 * fs/ntfs.c: Likewise.
30925 * fs/udf.c: Likewise.
30926 * fs/affs.c: Likewise.
30927 * fs/iso9660.c: Likewise.
30928 * fs/hfs.c: Likewise.
30929 * fs/fshelp.c: Likewise.
30930 * fs/ext2.c: Likewise.
30931 * fs/jfs.c: Likewise.
30932 * fs/reiserfs.c: Likewise.
30933 * fs/hfsplus.c: Likewise.
30934 * fs/minix.c: Likewise.
30935 * fs/cpio.c: Likewise.
30936 * fs/sfs.c: Likewise.
30937 * fs/ufs.c: Likewise.
30938 * efiemu/prepare.c: Likewise.
30939 * efiemu/loadcore_common.c: Likewise.
30940 * efiemu/runtime/efiemu.sh: Likewise.
30941 * efiemu/runtime/efiemu.S: Likewise.
30942 * efiemu/runtime/efiemu.c: Likewise.
30943 * efiemu/pnvram.c: Likewise.
30944 * efiemu/main.c: Likewise.
30945 * efiemu/i386/pc/cfgtables.c: Likewise.
30946 * efiemu/i386/loadcore64.c: Likewise.
30947 * efiemu/i386/loadcore32.c: Likewise.
30948 * efiemu/loadcore.c: Likewise.
30949 * efiemu/symbols.c: Likewise.
30950 * efiemu/mm.c: Likewise.
30951 * include/grub/autoefi.h: Likewise.
30952 * include/grub/datetime.h: Likewise.
30953 * include/grub/term.h: Likewise.
30954 * include/grub/hfs.h: Likewise.
30955 * include/grub/lvm.h: Likewise.
30956 * include/grub/i386/tsc.h: Likewise.
30957 * include/grub/i386/linux.h: Likewise.
30958 * include/grub/i386/xnu.h: Likewise.
30959 * include/grub/i386/efiemu.h: Likewise.
30960 * include/grub/i386/pc/biosdisk.h: Likewise.
30961 * include/grub/i386/pc/memory.h: Likewise.
30962 * include/grub/i386/pc/vbe.h: Likewise.
30963 * include/grub/parttool.h: Likewise.
30964 * include/grub/video.h: Likewise.
30965 * include/grub/memory.h: Likewise.
30966 * include/grub/fs.h: Likewise.
30967 * include/grub/partition.h: Likewise.
30968 * include/grub/xnu.h: Likewise.
30969 * include/grub/efi/api.h: Likewise.
30970 * include/grub/efi/pe32.h: Likewise.
30971 * include/grub/efi/memory.h: Likewise.
30972 * include/grub/multiboot.h: Likewise.
30973 * include/grub/usbdesc.h: Likewise.
30974 * include/grub/multiboot2.h: Likewise.
30975 * include/grub/acpi.h: Likewise.
30976 * include/grub/efiemu/efiemu.h: Likewise.
30977 * include/grub/disk.h: Likewise.
30978 * include/grub/ieee1275/ieee1275.h: Likewise.
30979 * include/grub/net.h: Likewise.
30980 * include/grub/machoload.h: Likewise.
30981 * include/grub/macho.h: Likewise.
30982 * include/multiboot.h: Likewise.
30983 * genmoddep.awk: Likewise.
30984 * normal/main.c: Likewise.
30985 * normal/menu_entry.c: Likewise.
30986 * normal/menu_viewer.c: Likewise.
30987 * normal/completion.c: Likewise.
30988 * normal/cmdline.c: Likewise.
30989 * normal/misc.c: Likewise.
30990 * normal/datetime.c: Likewise.
30991 * bus/usb/usbtrans.c: Likewise.
30992 * bus/usb/ohci.c: Likewise.
30993 * bus/usb/uhci.c: Likewise.
30994 * bus/usb/usb.c: Likewise.
30995 * mmap/efi/mmap.c: Likewise.
30996 * mmap/i386/pc/mmap_helper.S: Likewise.
30997 * mmap/i386/pc/mmap.c: Likewise.
30998 * mmap/i386/mmap.c: Likewise.
30999 * mmap/i386/uppermem.c: Likewise.
31000 * mmap/mmap.c: Likewise.
31001 * commands/acpi.c: Likewise.
31002 * commands/echo.c: Likewise.
31003 * commands/blocklist.c: Likewise.
31004 * commands/loadenv.c: Likewise.
31005 * commands/usbtest.c: Likewise.
31006 * commands/boot.c: Likewise.
31007 * commands/parttool.c: Likewise.
31008 * commands/search.c: Likewise.
31009 * commands/cat.c: Likewise.
31010 * commands/i386/pc/play.c: Likewise.
31011 * commands/i386/pc/drivemap.c: Likewise.
31012 * commands/i386/pc/vbeinfo.c: Likewise.
31013 * commands/i386/pc/acpi.c: Likewise.
31014 * commands/i386/pc/vbetest.c: Likewise.
31015 * commands/ls.c: Likewise.
31016 * commands/cmp.c: Likewise.
31017 * commands/test.c: Likewise.
31018 * commands/efi/acpi.c: Likewise.
31019 * commands/gptsync.c: Likewise.
31020 * commands/help.c: Likewise.
31021 * partmap/amiga.c: Likewise.
31022 * partmap/apple.c: Likewise.
31023 * partmap/acorn.c: Likewise.
31024 * partmap/pc.c: Likewise.
31025 * partmap/sun.c: Likewise.
31026 * partmap/gpt.c: Likewise.
31027 * script/sh/lexer.c: Likewise.
31028 * script/sh/function.c: Likewise.
31029 * font/font.c: Likewise.
31030 * font/font_cmd.c: Likewise.
31031 * loader/powerpc/ieee1275/linux.c: Likewise.
31032 * loader/efi/chainloader.c: Likewise.
31033 * loader/multiboot_loader.c: Likewise.
31034 * loader/macho.c: Likewise.
31035 * loader/i386/multiboot.c: Likewise.
31036 * loader/i386/linux.c: Likewise.
31037 * loader/i386/pc/linux.c: Likewise.
31038 * loader/i386/pc/multiboot2.c: Likewise.
31039 * loader/i386/pc/chainloader.c: Likewise.
31040 * loader/i386/pc/xnu.c: Likewise.
31041 * loader/i386/bsd_trampoline.S: Likewise.
31042 * loader/i386/efi/linux.c: Likewise.
31043 * loader/i386/multiboot_elfxx.c: Likewise.
31044 * loader/i386/bsd_helper.S: Likewise.
31045 * loader/i386/bsd.c: Likewise.
31046 * loader/i386/linux_trampoline.S: Likewise.
31047 * loader/i386/xnu_helper.S: Likewise.
31048 * loader/i386/xnu.c: Likewise.
31049 * loader/i386/bsd_pagetable.c: Likewise.
31050 * loader/i386/multiboot_helper.S: Likewise.
31051 * loader/xnu.c: Likewise.
31052 * loader/xnu_resume.c: Likewise.
31053 * io/gzio.c: Likewise.
31054 * term/efi/console.c: Likewise.
31055 * term/terminfo.c: Likewise.
31056 * term/ieee1275/ofconsole.c: Likewise.
31057 * term/i386/pc/serial.c: Likewise.
31058 * term/i386/pc/vesafb.c: Likewise.
31059 * term/i386/pc/vga.c: Likewise.
31060 * term/usb_keyboard.c: Likewise.
31061 * term/gfxterm.c: Likewise.
31062 * aclocal.m4: Likewise.
31063 * util/lvm.c: Likewise.
31064 * util/grub.d/30_os-prober.in: Likewise.
31065 * util/grub.d/10_hurd.in: Likewise.
31066 * util/console.c: Likewise.
31067 * util/grub-macho2img.c: Likewise.
31068 * util/grub-probe.c: Likewise.
31069 * util/hostfs.c: Likewise.
31070 * util/i386/pc/grub-mkimage.c: Likewise.
31071 * util/i386/pc/grub-setup.c: Likewise.
31072 * util/i386/efi/grub-mkimage.c: Likewise.
31073 * util/grub-mkconfig.in: Likewise.
31074 * util/raid.c: Likewise.
31075 * util/resolve.c: Likewise.
31076 * util/grub-mkdevicemap.c: Likewise.
31077 * util/grub-emu.c: Likewise.
31078 * util/getroot.c: Likewise.
31079 * util/hostdisk.c: Likewise.
31080 * util/usb.c: Likewise.
31081 * util/grub-editenv.c: Likewise.
31082 * util/misc.c: Likewise.
31083
d2d49665 310842009-06-10 Felix Zielcke <fzielcke@z-51.de>
31085
31086 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
31087 `genparttoollist.sh'.
31088 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
31089 Add `*.sh' to the list find searches for and change `mdate.sh'
31090 to `mdate-sh'.
31091
fe052e37 310922009-06-10 Pavel Roskin <proski@gnu.org>
31093
2763ac18 31094 * include/grub/multiboot2.h: Provide compatibility defines for
31095 multiboot2.h.
31096 * include/multiboot2.h: Include stdint.h only if needed, using
31097 angle brackets.
31098 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
31099 grub/multiboot2.h.
31100 * loader/ieee1275/multiboot2.c: Likewise.
31101 * loader/multiboot2.c: Likewise.
31102 * loader/multiboot_loader.c: Likewise.
31103
437e6adc 31104 * configure.ac: Use -nostdlib when probing for the target. It
31105 should not be required to have libc for the target.
31106
06a6836c 31107 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
31108 they fail without libc headers for the target.
31109 * include/grub/powerpc/libgcc.h: Use weak attribute for all
31110 exports.
31111 * include/grub/sparc64/libgcc.h: Likewise. Don't use
31112 preprocessor conditionals.
31113
fe052e37 31114 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
31115 build system doesn't need to be aware of the tar.c internals.
31116
afd22553 311172009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 31118
afd22553 31119 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 31120
6b787c4f 311212009-06-09 Robert Millan <rmh.grub@aybabtu.com>
31122
31123 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
31124 disk limit to 26 for IDE, Virtio, Xen and SCSI.
31125
311262009-06-09 Felix Zielcke <fzielcke@z-51.de>
31127
31128 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 31129 aren't available if ata.mod gets used.
6b787c4f 31130
473d1e45 311312009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 31132
473d1e45 31133 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 31134 initialising controller.
473d1e45 31135 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 31136
255a27d4 311372009-06-08 Felix Zielcke <fzielcke@z-51.de>
31138
31139 * util/i386/pc/grub-install.in: Add a parameter --disk-module
31140 to choose between ata and biosdisk module on i386-pc.
31141
473d1e45 311422009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 31143
d55842d8 31144 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
31145 Subclass and Programming Interface fields in terms of the 3 byte
31146 Class Code register.
31147 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31148
fa5db0b1 31149 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
31150 interface is OHCI. Add grub_dprintf for symmetry with
31151 bus/usb/uhci.c.
31152 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
31153 interface is UHCI. Add interf variable for programming
31154 interface. Print interface with class/subclass.
31155
c0947beb 31156 * bus/usb/ohci.c: Set interf with correct field.
31157
69da8877 31158 * bus/usb/uhci.c: Remove unneeded doubled lines.
31159 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
31160 Remove whitespace inside comment.
31161
9e172e30 311622009-06-08 Robert Millan <rmh.grub@aybabtu.com>
31163
31164 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
31165 as fallback an equivalent option without depth.
31166
de65ee2b 311672009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31168
31169 Not fail if unable to retrieve C/H/S on LBA disks
31170
473d1e45 31171 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 31172 if unable to retrieve C/H/S on LBA disks
31173
b57ea2c9 311742009-06-08 Pavel Roskin <proski@gnu.org>
31175
31176 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
31177 about aliasing.
31178
af361263 311792009-06-08 Felix Zielcke <fzielcke@z-51.de>
31180
31181 * Makefile.in (uninstall): Remove all $lib_DATA files.
31182
4c9ec6b3 311832009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31184
31185 Bugfix: install on partitionless device
31186
31187 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
31188 is a whole disk
31189
e76fc924 311902009-06-08 Felix Zielcke <fzielcke@z-51.de>
31191
31192 * Makefile.in (uninstall): Remove all $include_DATA files.
31193
ba5a0d05 311942009-06-08 Felix Zielcke <fzielcke@z-51.de>
31195
31196 * commands/true.c: New file. Implement the true and false commands.
31197 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
31198 (true_mod_SOURCES): New variable.
31199 (true_mod_CFLAGS): Likewise.
31200 (true_mod_LDFLAGS): Likewise.
31201
c8048e32 312022009-06-05 Colin D Bennett <colin@gibibit.com>
31203
31204 Optimized font character lookup using binary search instead of linear
31205 search. Fonts now are required to have the character index ordered by
31206 code point.
31207
31208 * font/font.c (load_font_index): Verify that fonts have ordered
31209 character indices.
31210 (find_glyph): Use binary search instead of linear search to find a
31211 character in a font.
31212
408305be 312132009-06-05 Michael Scherer <misc@mandriva.org>
31214
31215 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
31216 uses case sensitive btree.
31217 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
31218 only for case insensitive filesystems.
31219
8ee1e0d9 312202009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
31221
31222 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
31223 * conf/common.rmk (search_mod_CFLAGS): likewise
31224
a9966eb1 312252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31226
473d1e45 31227 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 31228 compensate a compiler bug
31229
9e7100fb 312302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31231
473d1e45 31232 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 31233 instead of '\b'
473d1e45 31234
ede21d71 312352009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31236
31237 Definitions for creating asm symbols with Apple's CC
31238
31239 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
31240 [APPLE_CC] (VARIABLE): likewise
31241
9dbf7653 312422009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31243
31244 Disable lnxboot.img when compiled
31245 with Apple's CC
31246
31247 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
31248 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
31249 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
31250 [! APPLE_CC] (CODE_LENG): skip
31251 [! APPLE_CC] (setup_sects): likewise
31252 [! APPLE_CC]: skip filling
473d1e45 31253
e93cdc3d 312542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31255
31256 Address in trampolines based on 32-bit registers when compiled
31257 with Apple's CC
31258
473d1e45 31259 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 31260 for addresses
31261 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
31262
6c688477 312632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31264
31265 Avoid aliases when compiling with Apple's CC for PCBIOS machine
31266
31267 * kern/misc.c [APPLE_CC] (memcpy): new function
31268 [APPLE_CC] (memmove): likewise
31269 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 31270 (memcpy): define alias conditionally on !APPLE_CC
6c688477 31271 (memset): likewise
31272 (abort): likewise
31273 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
31274 APPLE_CC are defined
31275 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
31276 (grub_assert_fail): make prototype conditional
31277
e37ffc5c 312782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31279
31280 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
31281
473d1e45 31282 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
31283 grub-macho2img
e37ffc5c 31284 (CLEANFILES): add grub-macho2img
31285 (grub_macho2img_SOURCES): new variable
31286 * kern/i386/pc/startup.S (bss_start): new variable
31287 (bss_end): likewise
31288 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
31289 * util/grub-macho2img.c: new file
31290
cf00df31 312912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31292
31293 Use objconv when compiling with Apple's CC
31294
31295 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
31296 (efiemu64.o): likewise
31297 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
31298 when compiling with Apple's CC
31299 (efiemu64_s.o): likewise
31300 * configure.ac: check for objconv when compiling with Apple's CC
31301 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 31302
d119a20c 313032009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31304
31305 Define segment as well as section when compiling with
31306 Apple's CC
31307
31308 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
31309 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
31310 (efiemu_convert_pointer): likewise
31311 (efiemu_set_virtual_address_map): likewise
31312 (efiemu_convert_pointer): likewise
31313 (efiemu_getcrc32): likewise
31314 (init_crc32_table): likewise
31315 (reflect): likewise
31316 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
31317 (GRUB_MOD_DEP): likewise
473d1e45 31318
c8600122 313192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31320
31321 Allow a compilation without -mcmodel=large
31322
31323 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31324 when compiled without -mcmodel=large
473d1e45 31325 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 31326 without -mcmodel=large
473d1e45 31327 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 31328 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 31329
e8df1d4e 313302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31331
31332 Remove nested functions in efiemu core
31333
31334 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 31335
cc6c3ac1 313362009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31337
31338 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31339
31340 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31341 temporary storage
473d1e45 31342 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31343 using Apple's CC
cc6c3ac1 31344 (grub_cpu_is_tsc_supported): likewise
31345 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 31346
3e325901 313472009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31348
31349 Absolute addressing through constant with Apple's cc
31350
31351 * kern/i386/pc/startup.S: Define necessary constants
31352 and address through it when using ABS with Apple's CC
31353 * boot/i386/pc/diskboot.S: likewise
31354 * boot/i386/pc/boot.S: likewise
31355 * boot/i386/pc/lnxboot.S: likewise
31356 * boot/i386/pc/cdboot.S: likewise
31357 * mmap/i386/pc/mmap_helper.S: likewise
31358 * commands/i386/pc/drivemap_int13h.S: likewise
31359
2b167a72 313602009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31361
31362 Check if compiler is apple cc
31363
31364 * Makefile.in (ASFLAGS): new variable
31365 (TARGET_ASFLAGS): likewise
31366 (TARGET_MODULE_FORMAT): likewise
31367 (TARGET_APPLE_CC): likewise
31368 (OBJCONV): likewise
31369 (TARGET_IMG_CFLAGS): likewise
31370 (TARGET_CPPFLAGS): add includedir
31371 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31372 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31373 Check for linker script only if compiler isn't Apple's CC
31374 (TARGET_MODULE_FORMAT): set
31375 (TARGET_APPLE_CC): likewise
31376 (TARGET_ASFLAGS): likewise
31377 (ASFLAGS): likewise
31378 Check for objcopy only if compiler isn't Apple's CC
31379 Check for BSS symbol only if compiler isn't Apple's CC
31380 * genmk.rb: adapt nm options if we use Apple's utils
31381 * aclocal.m4 (grub_apple_cc): new test
31382 (grub_apple_target_cc): likewise
473d1e45 31383
fb14123e 313842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31385
31386 Simplify sed expressions and improve awk
31387
31388 * Makefile.in (install-local): simplify sed expression
31389 * gencmdlist.sh: likewise
31390 * genmoddep.awk: avoid adding module as a dependency of itself
31391
5b889789 313922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31393
31394 Add missing start symbols
31395
31396 * boot/i386/pc/boot.S: add start
fb14123e 31397 * boot/i386/pc/pxeboot.S: likewise
473d1e45 31398
fd2bf2e3 313992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31400
31401 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 31402
31403 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 31404 (relocate_addresses): consider both r_addend and value at offset
31405 (make_mods_section): zerofill modinfo and header
31406 (convert_elf): write prefix here
473d1e45 31407
5389763d 314082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31409
31410 Use .asciz instead of .string
31411
31412 * i386/pc/diskboot.S: use .asciz instead of .string
31413 * i386/pc/boot.S: likewise
31414 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31415 (GRUB_MOD_NAME): likewise
473d1e45 31416
3eb5ed4e 314172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31418
31419 gfxpayload support
31420
31421 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31422 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31423 (grub_video_setup): remove
31424 (grub_video_set_mode): new prototype
31425 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31426 (vid_mode): remove
31427 (linux_vesafb_res): compile only on PCBIOS
31428 (grub_linux_boot): support gfxpayload
31429 * loader/i386/pc/xnu.c (video_hook): new function
31430 (grub_xnu_set_video): support gfxpayload
31431 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31432 (DEFAULT_VIDEO_HEIGHT): likewise
31433 (DEFAULT_VIDEO_FLAGS): likewise
31434 (DEFAULT_VIDEO_MODE): new definition
31435 (video_hook): new function
31436 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 31437 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 31438 loading xnu
31439 * video/video.c (grub_video_setup): removed
473d1e45 31440 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 31441 grub_video_setup
31442
4b0e1143 314432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31444
31445 Avoid calling biosdisk in drivemap
31446
31447 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31448 (revparse_biosdisk): likewise
31449 (list_mappings): derive name from id directly
31450 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 31451
fda6cb98 314522009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31453
31454 Script fixes
31455
31456 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31457 (grub_lexer_param): add tokenonhold
31458 (grub_script_create_cmdline): remove cmdline. All callers updated
31459 (grub_script_function_create): make functionname
31460 grub_script_arg. All callers updated
31461 (grub_script_execute_argument_to_string): new prototype
31462 * kern/parser.c (state_transitions): reorder
31463 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 31464 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 31465 make global
31466 (grub_script_execute_cmdline): use new format
31467 * script/sh/function.c (grub_script_function_create): make functionname
31468 grub_script_arg. All callers updated
473d1e45 31469 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 31470 (grub_script_yylex): remove
31471 (grub_script_yylex2): renamed to ...
31472 (grub_script_yylex): ...renamed
31473 parse the expressions like a${b}c
31474 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31475 (GRUB_PARSER_TOKEN_VAR): remove
31476 (GRUB_PARSER_TOKEN_NAME): likewise
31477 ("if"): declare as typeless
31478 ("while"): likewise
31479 ("function"): likewise
31480 ("else"): likewise
31481 ("then"): likewise
31482 ("fi"): likewise
31483 (text): remove
31484 (argument): likewise
31485 (script): accept empty scripts and make exit on error
31486 (arguments): use GRUB_PARSER_TOKEN_ARG
31487 (function): likewise
31488 (command): move error handling to script
31489 (menuentry): move grub_script_lexer_ref before
473d1e45 31490 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 31491 argument. All callers updated
31492
f4448a07 314932009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31494
31495 Prevent GRUB from probing floppies during boot.
31496
31497 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31498 * commands/search.c (options): Add --no-floppy.
31499 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31500 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31501 --no-floppy when searching for UUIDs.
31502
2bf5885a 315032009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31504
31505 Simplify the code duplication in commands/search.c.
31506
31507 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31508 (search_fs): ... this. Update all users.
31509
f6fd460a 315102009-06-03 Felix Zielcke <fzielcke@z-51.de>
31511
31512 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31513
cbb3c83e 315142009-05-28 Pavel Roskin <proski@gnu.org>
31515
57788cfd 31516 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31517 Remove the original symlink explicitly.
31518
cbb3c83e 31519 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31520 just one slash. That's how grub_fshelp_find_file() does it.
31521
cd0d5e30 315222009-05-26 Pavel Roskin <proski@gnu.org>
31523
f0f8bbe2 31524 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31525 to `str'.
31526
cd0d5e30 31527 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31528 possibly unused.
31529
8c2cab51 315302009-05-25 Christian Franke <franke@computer.org>
31531
31532 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31533 register.
31534 (grub_atapi_identify): Add wait after drive select.
31535 (grub_ata_identify): Do more strict status register check before
31536 calling grub_atapi_identify (). Suppress error message if status
31537 register is 0x00 after command failure. Add status register
31538 check after PIO read to avoid bogus identify due to stuck DRQ.
31539 Thanks to Pavel Roskin for testing.
31540 (grub_device_initialize): Remove unsafe status register check.
31541 Thanks to 'phcoder' for problem report and patch.
31542 Prevent sign extension in debug message.
31543
230c0ad6 315442009-05-23 Colin D Bennett <colin@gibibit.com>
31545
31546 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31547 definition file, and functions defined in `normal/menu.c' have had
31548 their prototypes moved to `include/grub/menu.h' for consistency.
31549
31550 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31551 from normal.h.
31552 (grub_menu_get_entry): Likewise.
31553 (grub_menu_get_timeout): Likewise.
31554 (grub_menu_set_timeout): Likewise.
31555 (grub_menu_execute_entry): Likewise.
31556 (grub_menu_execute_with_fallback): Likewise.
31557 (grub_menu_entry_run): Likewise.
31558
31559 * include/grub/normal.h: Re-ordered and grouped function
31560 prototypes by file that the function is defined in.
31561 (grub_menu_execute_callback): Removed; moved to menu.h.
31562 (grub_menu_get_entry): Likewise.
31563 (grub_menu_get_timeout): Likewise.
31564 (grub_menu_set_timeout): Likewise.
31565 (grub_menu_execute_entry): Likewise.
31566 (grub_menu_execute_with_fallback): Likewise.
31567 (grub_menu_entry_run): Likewise.
31568 (grub_menu_addentry): Renamed from this ...
31569 (grub_normal_add_menu_entry): ... to this.
31570
31571 * normal/main.c (grub_menu_addentry): Renamed from this ...
31572 (grub_normal_add_menu_entry): ... to this.
31573
31574 * script/sh/execute.c (grub_script_execute_menuentry): Update
31575 reference to renamed grub_menu_addentry function.
31576
861f03a5 315772009-05-23 Felix Zielcke <fzielcke@z-51.de>
31578
31579 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31580
96b1619a 315812009-05-22 Pavel Roskin <proski@gnu.org>
31582
bf6a5fb2 31583 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31584 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31585 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31586 compiling for the i386 targets, but not for the utilities.
31587
96b1619a 31588 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31589 to grub_uint8_t.
31590 (grub_root_drive): Likewise.
31591 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31592 remove alignment.
31593 (grub_root_drive): Change size to byte.
31594 (grub_start_addr): Remove.
31595 (grub_end_addr): Likewise.
31596 (grub_apm_bios_info): Likewise.
31597
b729776b 315982009-05-21 Felix Zielcke <fzielcke@z-51.de>
31599
31600 * normal/i386: Remove.
31601 * normal/powerpc: Likewise.
31602 * normal/sparc64: Likewise.
31603 * normal/x86_64: Likewise.
31604
0a15ce80 316052009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31606
31607 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 31608 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 31609 * loader/i386/xnu_helper.S: Likewise
d6da58e6 31610
33db9015 316112009-05-18 Colin D Bennett <colin@gibibit.com>
31612
d6da58e6 31613 Display error messages when parsing a Lua statement fails.
31614 Previously, executing a syntactically invalid statement like
31615 ")foo" or "bar;" would silently fail.
33db9015 31616
31617 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 31618 (grub_lua_parse_line): Improved reporting of Lua parser and
31619 execution errors.
33db9015 31620
46422c89 316212009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31622
31623 Remove -Werror which causes build to fail on some systems
31624
31625 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31626 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31627 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 31628
22f53a96 316292009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31630
31631 trampoline for linux on 64-bit platform
31632
18f547ad 31633 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31634 loader/i386/efi/linux_trampoline.S
31635 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 31636 declaration
d6da58e6 31637 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31638 here
22f53a96 31639 * loader/i386/linux_trampoline.S: moved here
d6da58e6 31640 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31641 trampoline
22f53a96 31642 (jumpvector): removed
31643 (grub_linux_trampoline_start): new declaration
31644 (grub_linux_trampoline_end): likewise
31645 (grub_linux_boot): use trampoline when on 64-bit platform
31646 * loader/i386/linux.c: likewise
31647
cb5a0f40 316482009-05-16 Pavel Roskin <proski@gnu.org>
31649
31650 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31651 const to avoid a warning.
31652 (grub_lua_setenv): Likewise.
31653 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31654 lmsg to fix a warning.
31655
334f2c28 316562009-05-16 Felix Zielcke <fzielcke@z-51.de>
31657
31658 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 31659 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31660 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31661 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31662 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31663 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31664 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31665 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 31666
59e5d3ec 316672009-05-16 Felix Zielcke <fzielcke@z-51.de>
31668
31669 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31670
9d87a1ba 316712009-05-16 Bean <bean123ch@gmail.com>
31672
31673 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31674 (lua_mod_SOURCES): New variable.
31675 (lua_mod_CFLAGS): Likewise.
31676 (lua_mod_LDFLAGS): Likewise.
31677
31678 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31679 (setjmp_mod_SOURCES): New variable.
31680 (setjmp_mod_CFLAGS): Likewise.
31681 (setjmp_LDFLAGS): Likewise.
31682
31683 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31684 (setjmp_mod_SOURCES): New variable.
31685 (setjmp_mod_CFLAGS): Likewise.
31686 (setjmp_LDFLAGS): Likewise.
31687
31688 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31689 (setjmp_mod_SOURCES): New variable.
31690 (setjmp_mod_CFLAGS): Likewise.
31691 (setjmp_LDFLAGS): Likewise.
31692
31693 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31694 (setjmp_mod_SOURCES): New variable.
31695 (setjmp_mod_CFLAGS): Likewise.
31696 (setjmp_LDFLAGS): Likewise.
31697
31698 * normal/i386/setjmp.S: Moved from here ...
31699 * lib/i386/setjmp.S: ... Moved here
31700 * normal/x86_64/setjmp.S: Moved from here ...
31701 * lib/x86_64/setjmp.S: ... Moved here
31702 * normal/powerpc/setjmp.S: Moved from here ...
31703 * lib/powerpc/setjmp.S: ... Moved here
31704 * normal/sparc64/setjmp.S: Moved from here ...
31705 * lib/sparc64/setjmp.S: ... Moved here
31706
31707 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31708 returns_twice in mingw.
31709
31710 * script/lua/grub_lib.c: New file.
31711 * script/lua/grub_lib.h: Likewise.
31712 * script/lua/grub_lua.h: Likewise.
31713 * script/lua/grub_main.c: Likewise.
31714 * script/lua/lapi.c: Likewise.
31715 * script/lua/lapi.h: Likewise.
31716 * script/lua/lauxlib.c: Likewise.
31717 * script/lua/lauxlib.h: Likewise.
31718 * script/lua/lbaselib.c: Likewise.
31719 * script/lua/lcode.c: Likewise.
31720 * script/lua/lcode.h: Likewise.
31721 * script/lua/ldblib.c: Likewise.
31722 * script/lua/ldebug.c: Likewise.
31723 * script/lua/ldebug.h: Likewise.
31724 * script/lua/ldo.c: Likewise.
31725 * script/lua/ldo.h: Likewise.
31726 * script/lua/ldump.c: Likewise.
31727 * script/lua/lfunc.c: Likewise.
31728 * script/lua/lfunc.h: Likewise.
31729 * script/lua/lgc.c: Likewise.
31730 * script/lua/lgc.h: Likewise.
31731 * script/lua/linit.c: Likewise.
31732 * script/lua/liolib.c: Likewise.
31733 * script/lua/llex.c: Likewise.
31734 * script/lua/llex.h: Likewise.
31735 * script/lua/llimits.h: Likewise.
31736 * script/lua/lmathlib.c: Likewise.
31737 * script/lua/lmem.c: Likewise.
31738 * script/lua/lmem.h: Likewise.
31739 * script/lua/loadlib.c: Likewise.
31740 * script/lua/lobject.c: Likewise.
31741 * script/lua/lobject.h: Likewise.
31742 * script/lua/lopcodes.c: Likewise.
31743 * script/lua/lopcodes.h: Likewise.
31744 * script/lua/loslib.c: Likewise.
31745 * script/lua/lparser.c: Likewise.
31746 * script/lua/lparser.h: Likewise.
31747 * script/lua/lstate.c: Likewise.
31748 * script/lua/lstate.h: Likewise.
31749 * script/lua/lstring.c: Likewise.
31750 * script/lua/lstring.h: Likewise.
31751 * script/lua/lstrlib.c: Likewise.
31752 * script/lua/ltable.c: Likewise.
31753 * script/lua/ltable.h: Likewise.
31754 * script/lua/ltablib.c: Likewise.
31755 * script/lua/ltm.c: Likewise.
31756 * script/lua/ltm.h: Likewise.
31757 * script/lua/lua.h: Likewise.
31758 * script/lua/luaconf.h: Likewise.
31759 * script/lua/lualib.h: Likewise.
31760 * script/lua/lundump.c: Likewise.
31761 * script/lua/lundump.h: Likewise.
31762 * script/lua/lvm.c: Likewise.
31763 * script/lua/lvm.h: Likewise.
31764 * script/lua/lzio.c: Likewise.
31765 * script/lua/lzio.h: Likewise.
31766
5e898c9d 317672009-05-16 Bean <bean123ch@gmail.com>
31768
31769 * include/grub/kernel.h (grub_module_header_types): Add type
31770 OBJ_TYPE_CONFIG.
31771
31772 * kern/main.c (grub_load_config): New function.
31773 (grub_main): Call grub_load_config to read boot config.
31774
31775 * grub-mkimage (generate_image): New parameter config_path.
31776 (options): New option --config.
31777 (main): Parse --config option, and pass it to generate_image.
31778
cf353a47 317792009-05-14 Christian Franke <franke@computer.org>
31780
31781 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31782 This fixes build on Cygwin.
31783
3834887f 317842009-05-14 Pavel Roskin <proski@gnu.org>
31785
31786 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31787 jump. This saves two bytes, so the typical case of 2 swapped
31788 drives would fit 32 bytes.
31789
8090fc01 317902009-05-13 Pavel Roskin <proski@gnu.org>
31791
ac963883 31792 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31793 grub_uint32_t to avoid a warning.
31794
8090fc01 31795 * loader/i386/linux.c (allocate_pages): When assigning
31796 real_mode_mem, cast through grub_size_t to fix a warning. The
31797 code already makes sure that the value would fit a pointer.
31798 (grub_linux_setup_video): Cast render_target->data to
31799 grub_size_t to fix a warning.
31800
18f547ad 318012009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 31802
31803 * commands/i386/pc/drivemap.c: New file - implement drivemap
31804 command.
31805 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31806 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31807
6f6a8b28 318082009-05-13 Pavel Roskin <proski@gnu.org>
31809
31810 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31811 embedding_area_exists.
31812
15fbf4c4 318132009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31814
31815 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31816 it easier to understand / work with.
59978c8a 31817 Improve warning messages for cases where there's no embedding area,
31818 or when it is too small (or core.img too large).
15fbf4c4 31819
238e871f 318202009-05-13 Pavel Roskin <proski@gnu.org>
31821
0ab3a9a4 31822 * loader/i386/pc/multiboot2.c: Add necessary includes for
31823 grub_multiboot2_real_boot().
31824
a2c8c5f8 31825 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31826 PX record is always little-endian. We only need the lower 2
31827 bytes of the mode.
31828
faec96af 31829 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31830 facilitate code reuse.
31831 (grub_cpio_mount): Use "struct head", not a char buffer. This
31832 fixes a warning reported by gcc 4.4.
31833
238e871f 31834 * kernel/disk.c (grub_disk_read): Use void pointer for the
31835 buffer.
31836 (grub_disk_write): Use const void pointer for the buffer.
31837 Adjust all callers. Remove unnecessary casts.
31838
901d2f0c 318392009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31840
31841 * util/i386/pc/grub-install.in: Update copyright year.
31842
18f547ad 318432009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 31844
31845 gptsync
31846
31847 * commands/gptsync.c: new file
31848 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31849 (gptsync_mod_SOURCES): new variable
31850 (gptsync_mod_CFLAGS): likewise
31851 (gptsync_mod_LDFLAGS): likewise
18f547ad 31852 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 31853 new definition
31854 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31855 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31856 * conf/i386-ieee1275.rmk: likewise
31857 * conf/i386-pc.rmk: likewise
31858 * conf/powerpc-ieee1275.rmk: likewise
31859
b4ba690a 318602009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31861
31862 Fixed grub-emu
31863
31864 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31865 (grub_dl_ref): likewise
31866
317e1a44 318672009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31868
31869 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31870 split in two functions (one for msdos and one for gpt).
31871
041b8094 318722009-05-08 Pavel Roskin <proski@gnu.org>
31873
752473c2 31874 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31875 not modified.
31876
041b8094 31877 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31878 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31879 Initialize them with -1. Add sanity check for bad1. Eliminate
31880 nerr variable.
31881
172800ce 318822009-05-08 David S. Miller <davem@davemloft.net>
31883
31884 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31885
29aa5e81 318862009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31887
31888 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 31889 existence.
29aa5e81 31890
96613b62 318912009-05-05 Felix Zielcke <fzielcke@z-51.de>
31892
31893 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 31894 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 31895
eef73c8a 318962009-05-05 David S. Miller <davem@davemloft.net>
31897
31898 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31899
119494b5 319002009-05-05 Pavel Roskin <proski@gnu.org>
31901
31902 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31903 of grub_dl_ref() and grub_dl_unref().
31904 * commands/parttool.c: Remove preprocessor conditionals around
31905 grub_dl_ref() and grub_dl_unref().
31906 * fs/affs.c: Likewise.
31907 * fs/afs.c: Likewise.
31908 * fs/cpio.c: Likewise.
31909 * fs/ext2.c: Likewise.
31910 * fs/fat.c: Likewise.
31911 * fs/hfs.c: Likewise.
31912 * fs/hfsplus.c: Likewise.
31913 * fs/iso9660.c: Likewise.
31914 * fs/jfs.c: Likewise.
31915 * fs/minix.c: Likewise.
31916 * fs/ntfs.c: Likewise.
31917 * fs/reiserfs.c: Likewise.
31918 * fs/sfs.c: Likewise.
31919 * fs/udf.c: Likewise.
31920 * fs/ufs.c: Likewise.
31921 * fs/xfs.c: Likewise.
31922 * include/grub/dl.h: Likewise.
31923 * loader/xnu.c: Likewise.
31924
de5fd76e 319252009-05-04 Pavel Roskin <proski@gnu.org>
31926
31927 * commands/acpi.c: Remove unused variable my_mod.
31928 * partmap/amiga.c: Likewise.
31929 * partmap/apple.c: Likewise.
31930 * partmap/gpt.c: Likewise.
31931 * partmap/pc.c: Likewise.
31932 * partmap/sun.c: Likewise.
31933 * term/gfxterm.c: Likewise.
31934 * term/i386/pc/vesafb.c: Likewise.
31935 * term/i386/pc/vga.c: Likewise.
31936
983598ad 319372009-05-04 David S. Miller <davem@davemloft.net>
31938
31939 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31940 pointer args to grub_ieee1275_get_property().
31941
8aadec43 31942 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31943
9554b15e 31944 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31945 devices, and do not traverse down under controller nodes.
31946
67e23c90 31947 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31948 (grub_ofdisk_open): Use it to un-escape "," characters.
31949 * kern/disk.c (find_part_sep): New.
31950 (grub_disk_open): Use it to find the first non-escaped ','
31951 character in the disk name.
31952 * util/ieee1275/devicemap.c (escape_of_path): New.
31953 (grub_util_emit_devicemap_entry): Use it.
31954 * util/sparc64/ieee1275/grub-install.in: Update script to
31955 strip partition specifiers properly by not triggering on
31956 '\' escaped ',' characters.
31957
74bfdd2f 319582009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31959
31960 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31961 to 0x300.
31962 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31963 resolutions.
31964 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31965 on documentation from Wikipedia).
31966
4241d2b1 319672009-05-04 Pavel Roskin <proski@gnu.org>
31968
31969 * disk/ata.c: Spelling fixes.
31970 * disk/raid.c: Likewise.
31971 * disk/usbms.c: Likewise.
31972 * disk/dmraid_nvidia.c: Likewise.
31973 * kern/ieee1275/openfw.c: Likewise.
31974 * kern/ieee1275/init.c: Likewise.
31975 * kern/ieee1275/cmain.c: Likewise.
31976 * boot/i386/pc/cdboot.S: Likewise.
31977 * video/readers/png.c: Likewise.
31978 * video/i386/pc/vbe.c: Likewise.
31979 * fs/udf.c: Likewise.
31980 * fs/hfs.c: Likewise.
31981 * fs/reiserfs.c: Likewise.
31982 * efiemu/runtime/efiemu.c: Likewise.
31983 * efiemu/main.c: Likewise.
31984 * efiemu/mm.c: Likewise.
31985 * include/grub/elf.h: Likewise.
31986 * include/grub/xnu.h: Likewise.
31987 * include/grub/usbdesc.h: Likewise.
31988 * include/grub/usb.h: Likewise.
31989 * include/grub/script_sh.h: Likewise.
31990 * include/grub/lib/LzmaEnc.h: Likewise.
31991 * include/grub/efiemu/efiemu.h: Likewise.
31992 * include/grub/command.h: Likewise.
31993 * normal/menu.c: Likewise.
31994 * normal/main.c: Likewise.
31995 * normal/datetime.c: Likewise.
31996 * bus/usb/uhci.c: Likewise.
31997 * mmap/i386/uppermem.c: Likewise.
31998 * mmap/mmap.c: Likewise.
31999 * commands/acpi.c: Likewise.
32000 * commands/test.c: Likewise.
32001 * partmap/apple.c: Likewise.
32002 * font/font.c: Likewise.
32003 * loader/sparc64/ieee1275/linux.c: Likewise.
32004 * loader/macho.c: Likewise.
32005 * loader/i386/bsd_trampoline.S: Likewise.
32006 * loader/i386/bsd.c: Likewise.
32007 * loader/xnu.c: Likewise.
32008 * term/i386/pc/vesafb.c: Likewise.
32009 * term/usb_keyboard.c: Likewise.
32010 * util/resolve.c: Likewise.
32011 * util/getroot.c: Likewise.
32012
0cfc0083 320132009-05-04 Felix Zielcke <fzielcke@z-51.de>
32014
32015 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
32016
7c1d00cd 320172009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32018
32019 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
32020 build error.
32021
b01f0548 320222009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32023
32024 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
32025 parameter only available on BIOS.
32026
ecc3eb22 320272009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32028
32029 Removed wrong semicolon in declaration
32030
32031 * grub/misc.h (grub_dprintf): remove semicolon
32032
112972a9 320332009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32034
32035 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
32036 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
32037 is done by grub_cmd_linux() now).
32038 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
32039 restore video to text mode.
32040 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
32041 indicates lack of "vga=" parameter. "vga=0" is mapped to
32042 `GRUB_LINUX_VID_MODE_NORMAL'.
32043
afd5c115 320442009-05-04 Felix Zielcke <fzielcke@z-51.de>
32045
32046 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
32047 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
32048 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 32049 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 32050 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
32051 `grub_script.tab.c'.
32052
32053 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32054 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32056 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32057 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32058
faa517ce 32059 * Makefile.in: Remove duplicated 2008 in Copyright line.
32060
ae0c0bdc 320612009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32062
473d1e45 32063 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 32064 unconditionally.
32065 * include/grub/util/misc.h (grub_util_warn): New declaration.
32066
32067 * util/i386/pc/grub-install.in: Understand --force and pass it down
32068 to grub-setup.
32069
32070 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
32071 down to setup().
32072 (setup): Improve error messages and add warnings when requested to
32073 install in odd layouts. Refuse to install using blocklists unless
32074 --force was set.
32075
18f547ad 320762009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 32077
32078 * disk/raid.c (grub_raid_scan_device): Improve debug message.
32079
6d260daa 320802009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32081
32082 Updated copyright year
32083
32084 * fs/hfsplus.c: updated copyright year
18f547ad 32085
69f853f8 320862009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32087
32088 HFS+ UUID
32089
18f547ad 32090 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 32091 in the space previously used by unused3
32092 (grub_hfsplus_uuid): new function
32093 (grub_hfsplus_fs): added uuid field
32094
4c402e73 320952009-05-03 Pavel Roskin <proski@gnu.org>
32096
32097 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
32098 suppress warnings. It's no longer needed.
32099 * disk/host.c: Likewise.
32100 * disk/ata_pthru.c: Likewise.
32101 * disk/loopback.c: Likewise.
32102 * hook/datehook.c: Likewise.
32103 * parttool/pcpart.c: Likewise.
32104 * fs/i386/pc/pxe.c: Likewise.
32105 * fs/ntfscomp.c: Likewise.
32106 * efiemu/main.c: Likewise.
32107 * mmap/mmap.c: Likewise.
32108 * commands/crc.c: Likewise.
32109 * commands/hexdump.c: Likewise.
32110 * commands/hdparm.c: Likewise.
32111 * commands/acpi.c: Likewise.
32112 * commands/echo.c: Likewise.
32113 * commands/minicmd.c: Likewise.
32114 * commands/blocklist.c: Likewise.
32115 * commands/memrw.c: Likewise.
32116 * commands/loadenv.c: Likewise.
32117 * commands/usbtest.c: Likewise.
32118 * commands/lsmmap.c: Likewise.
32119 * commands/boot.c: Likewise.
32120 * commands/parttool.c: Likewise.
32121 * commands/configfile.c: Likewise.
32122 * commands/search.c: Likewise.
32123 * commands/ieee1275/suspend.c: Likewise.
32124 * commands/cat.c: Likewise.
32125 * commands/i386/pc/pxecmd.c: Likewise.
32126 * commands/i386/pc/play.c: Likewise.
32127 * commands/i386/pc/halt.c: Likewise.
32128 * commands/i386/pc/vbeinfo.c: Likewise.
32129 * commands/i386/pc/vbetest.c: Likewise.
32130 * commands/lspci.c: Likewise.
32131 * commands/date.c: Likewise.
32132 * commands/handler.c: Likewise.
32133 * commands/ls.c: Likewise.
32134 * commands/test.c: Likewise.
32135 * commands/cmp.c: Likewise.
32136 * commands/efi/loadbios.c: Likewise.
32137 * commands/efi/fixvideo.c: Likewise.
32138 * commands/halt.c: Likewise.
32139 * commands/help.c: Likewise.
32140 * commands/reboot.c: Likewise.
32141 * hello/hello.c: Likewise.
32142 * script/sh/main.c: Likewise.
32143 * loader/xnu.c: Likewise.
32144 * term/terminfo.c: Likewise.
32145 * term/i386/pc/serial.c: Likewise.
32146 * term/usb_keyboard.c: Likewise.
32147
515b5079 321482009-05-03 David S. Miller <davem@davemloft.net>
32149
32150 * normal/menu.c: Include grub/parser.h
32151
dfc31a22 321522009-05-03 Pavel Roskin <proski@gnu.org>
32153
2fee74f1 32154 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
32155 not char*.
32156 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
32157 Suggested by Javier Martín <lordhabbit@gmail.com>
32158
dfc31a22 32159 * util/i386/pc/grub-mkrescue.in: Allow for the case when
32160 efiemu??.o doesn't exist.
32161 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
32162 copying.
32163
18f547ad 321642009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 32165
32166 FreeBSD 64-bit support
32167
18f547ad 32168 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 32169 and loader/i386/bsd_trampoline.S
32170 (bsd_mod_ASFLAGS): new variable
32171 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
32172 (FREEBSD_MODTYPE_KERNEL64): likewise
32173 (grub_bsd64_trampoline_start): likewise
32174 (grub_bsd64_trampoline_end): likewise
32175 (grub_bsd64_trampoline_selfjump): likewise
32176 (grub_bsd64_trampoline_gdt): likewise
32177 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
32178 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
32179 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
32180 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 32181 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 32182 of "attrib" member
32183 * loader/i386/bsd_pagetable.c: new file
32184 * loader/i386/bsd_trampoline.S: likewise
32185 * loader/i386/bsd.c (ALIGN_QWORD): new macro
32186 (ALIGN_VAR): likewise
32187 (entry_hi): new variable
32188 (kern_end_mdofs): likewise
32189 (is_64bit): likewise
32190 (grub_freebsd_add_meta): use ALIGN_VAR
32191 (grub_e820_mmap): new declaration
32192 (grub_freebsd_add_mmap): new function
32193 (grub_freebsd_add_meta_module): support 64 bit kernels
32194 (grub_freebsd_list_modules): use ALIGN_VAR
32195 (gdt_descriptor): new declaration
32196 (grub_freebsd_boot): support 64 bit kernels
32197 (grub_bsd_elf64_hook): new function
32198 (grub_bsd_load_elf): support elf64
32199
038c5720 322002009-05-03 Bean <bean123ch@gmail.com>
32201
32202 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
32203 after we get the result of if statement.
32204
fc45fb58 322052009-05-03 Bean <bean123ch@gmail.com>
32206
32207 * Makefile.in (enable_efiemu): New variable.
32208
32209 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
32210 set.
32211 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
32212 path.
32213 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
32214 path, add -mno-red-zone option.
32215 (efiemu64_s.o): Likewise.
32216 (efiemu64.o): Use macro $^ for source file.
32217
32218 * configure.ac (--enable-efiemu): New option.
32219
bbee0f2b 322202009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
32221
32222 xnu support
32223
32224 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
32225 (pkglib_MODULES): add xnu.mod
32226 (xnu_mod_SOURCES): new variable
32227 (xnu_mod_CFLAGS): likewise
32228 (xnu_mod_LDFLAGS): likewise
32229 (xnu_mod_ASFLAGS): likewise
32230 * conf/i386-pc.rmk: likewise
32231 * conf/x86_64-efi.rmk: likewise
7dd4a573 32232 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 32233 new declaration
32234 * include/grub/i386/macho.h: new file
32235 * include/grub/i386/xnu.h: likewise
32236 * include/grub/macho.h: likewise
32237 * include/grub/machoload.h: likewise
32238 * include/grub/x86_64/macho.h: likewise
32239 * include/grub/x86_64/xnu.h: likewise
32240 * include/grub/xnu.h: likewise
32241 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
32242 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
32243 * loader/i386/efi/xnu.c: new file
32244 * loader/i386/pc/xnu.c: likewise
32245 * loader/i386/xnu.c: likewise
32246 * loader/i386/xnu_helper.S: likewise
32247 * loader/macho.c: likewise
32248 * loader/xnu.c: likewise
32249 * loader/xnu_resume.c: likewise
32250 * util/grub-dumpdevtree: likewise
32251 * include/grub/i386/pit.h: include grub/err.h
32252 (grub_pit_wait): export
32253 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 32254
5caf964d 322552009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32256
32257 Efiemu
7dd4a573 32258
5caf964d 32259 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 32260 _linux_efi, linux_efi.
32261 new files in grub-emu
5caf964d 32262 new targets efiemu32.o and efiemu64.o
32263 * loader/linux_normal_efiemu.c: likewise
32264 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 32265 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 32266 files to copy
32267 * include/grub/autoefi.h: new file
7dd4a573 32268 * include/grub/i386/efiemu.h: likewise
5caf964d 32269 * include/grub/i386/pc/efiemu.h: likewise
32270 * include/grub/efi/api.h: add LL suffix when necessary
32271 new definitions relating to tables
32272 * include/grub/efiemu/efiemu.h: new file
32273 * include/grub/efiemu/runtime.h: likewise
32274 * efiemu/prepare.c: likewise
32275 * efiemu/loadcore_common.c: likewise
32276 * efiemu/loadcore64.c: likewise
32277 * efiemu/runtime/efiemu.sh: likewise
32278 * efiemu/runtime/efiemu.S: likewise
32279 * efiemu/runtime/efiemu.c: likewise
32280 * efiemu/runtime/config.h: likewise
32281 * efiemu/prepare32.c: likewise
32282 * efiemu/main.c: likewise
32283 * efiemu/modules/pnvram.c: likewise
32284 * efiemu/modules/i386: likewise
32285 * efiemu/modules/i386/pc: likewise
32286 * efiemu/modules/acpi.c: likewise
32287 * efiemu/i386/pc/cfgtables.c: likewise
32288 * efiemu/i386/loadcore64.c: likewise
32289 * efiemu/i386/loadcore32.c: likewise
32290 * efiemu/prepare64.c: likewise
32291 * efiemu/loadcore.c: likewise
32292 * efiemu/symbols.c: likewise
32293 * efiemu/mm.c: likewise
32294 * efiemu/loadcore32.c: likewise
7dd4a573 32295
322962009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 32297
32298 ACPI spoofing
32299
32300 * commands/acpi.c: new file
32301 * commands/i386/pc/acpi.c: likewise
32302 * commands/efi/acpi.c: likewise
32303 * include/grub/acpi.h: likewise
32304 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
32305 (acpi_mod_SOURCES): new variable
32306 (acpi_mod_CFLAGS): likewise
32307 (acpi_mod_LDFLAGS): likewise
32308 * conf/i386-efi.rmk: likewise
32309 * conf/x86_64-efi.rmk: likewise
32310
7dd4a573 323112009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 32312
32313 Missing part from mmap patch
32314
32315 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
32316 (grub_mmap_unregister)
32317 (grub_mmap_free_and_unregister): use grub_mmap_register
32318
7dd4a573 323192009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 32320
32321 Mmap services
32322
32323 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32324 * loader/i386/linux.c (find_mmap_size): likewise
32325 (allocate_pages): likewise
32326 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32327 (grub_fill_multiboot_mmap): likewise
32328 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32329 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32330 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32331 (OPENBSD_MMAP_RESERVED): likewise
32332 * include/grub/i386/pc/memory.h: include grub/memory.h
32333 (grub_lower_mem): removed
32334 (grub_upper_mem): likewise
32335 (GRUB_MACHINE_MEMORY_ACPI): new definition
32336 (GRUB_MACHINE_MEMORY_NVS): likewise
32337 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32338 (GRUB_MACHINE_MEMORY_HOLE): likewise
32339 (grub_machine_mmap_register): likewise
32340 (grub_machine_mmap_unregister): likewise
32341 (grub_machine_get_upper): likewise
32342 (grub_machine_get_lower): likewise
32343 (grub_machine_get_post64): likewise
32344 * include/grub/i386/efi/memory.h: new file
32345 * include/grub/x86_64/efi/memory.h: likewise
32346 * include/grub/efi/memory.h: likewise
32347 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32348 (mmap_mod_SOURCES): new variable
32349 (mmap_mod_LDFLAGS): likewise
32350 (mmap_mod_ASFLAGS): likewise
32351 * conf/i386-coreboot.rmk: likewise
32352 * conf/i386-ieee1275.rmk: likewise
32353 * conf/i386-efi.rmk: likewise
32354 * conf/x86_64-efi.rmk: likewise
32355 * include/grub/types.h (UINT_TO_PTR): new macro
32356 (PTR_TO_UINT32): likewise
32357 (PTR_TO_UINT64): likewise
32358 * include/grub/memory.h: new file
32359 * mmap/i386/pc/mmap.c: likewise
32360 * mmap/i386/pc/mmap_helper.S: likewise
32361 * mmap/i386/uppermem.c: likewise
32362 * mmap/mmap.c: likewise
32363 * mmap/efi/mmap.c: likewise
7dd4a573 32364 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 32365 grub_upper_mem
32366 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32367 (grub_upper_mem): likewise
32368 (grub_machine_init): don't use grub_upper_mem,
32369 make grub_lower_mem local
32370 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32371 grub_mmap_iterate and grub_mmap_get_upper
32372 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32373
d558e6b5 323742009-05-02 Bean <bean123ch@gmail.com>
32375
32376 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32377 script/sh/parser.y.
32378 (pkglib_MODULES): Add normal.mod and sh.mod.
32379 (normal_SOURCES): New variable.
32380 (normal_mod_CFLAGS): Likewise.
32381 (normal_mod_LDFLAGS): Likewise.
32382 (sh_mod_SOURCES): Likewise.
32383 (sh_mod_CFLAGS): Likewise.
32384 (sh_mod_LDFLAGS): Likewise.
32385
32386 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32387 script/sh/lexer.c_DEPENDENCIES.
32388 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32389 kern/rescue_reader.c and kern/rescue_parser.c.
32390 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32391 (grub_emu_SOURCES): Change source files.
32392 (pkglib_MODULES): Remove normal.mod.
32393 (normal_SOURCES): Removed.
32394 (normal_mod_CFLAGS): Likewise.
32395 (normal_mod_LDFLAGS): Likewise.
32396 * conf/i386-coreboot.rmk: Likewise.
32397 * conf/i386-efi.rmk: Likewise.
32398 * conf/i386-ieee1276.rmk: Likewise.
32399 * conf/powerpc-ieee1275.rmk: Likewise.
32400 * conf/sparc64-ieee1275.rmk: Likewise.
32401 * conf/x86_64-efi.rmk: Likewise.
32402
32403 * include/grub/command.h (grub_command_execute): New inline function.
32404
32405 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32406
32407 * include/grub/normal.h: Remove <grub/setjmp.h>.
32408 (grub_fs_module_list): Moved to normal/autofs.c.
32409 (grub_exit_env): Removed.
32410 (grub_command_execute): Likewise.
32411 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32412 parameter script.
32413 (read_command_list): New function declaration.
32414 (read_fs_list): Likewise.
32415
32416 * include/parser.h: Include <grub/reader.h>.
32417 (grub_parser_split_cmdline): Change type of getline parameter.
32418 (grub_parser): New structure.
32419 (grub_parser_class): New variable.
32420 (grub_parser_execute): New function declaration.
32421 (grub_register_rescue_parser): Likewise.
32422 (grub_parser_register): New inline function.
32423 (grub_parser_unregister): Likewise.
32424 (grub_parser_get_current): Likewise.
32425 (grub_parser_set_current): Likewise.
32426
32427 * include/grub/reader.h: New file.
32428 * kern/reader.c: Likewise.
32429 * kern/rescue_parser.c: Likewise.
32430 * kern/rescue_reader.c: Likewise.
32431 * normal/autofs.c: Likewise.
32432 * normal/dyncmd.c: Likewise.
32433
32434 * include/grub/rescue.h: Removed.
32435 * normal/command.h: Likewise.
32436
32437 * include/grub/script.h: Moved to ...
32438 * include/grub/script_sh.h: ... Moved here.
32439 * normal/execute.c: Moved to ...
32440 * script/sh/execute.c: ... Moved here.
32441 * normal/function.c: Moved to ...
32442 * script/sh/function.c: ... Moved here.
32443 * normal/lexer.c: Moved to ...
32444 * script/sh/lexer.c: ... Moved here.
32445 * normal/parser.y: Moved to ...
32446 * script/sh/parser.y: ... Moved here.
32447 * normal/script.c: Moved to ...
32448 * script/sh/script.c: ... Moved here.
32449
32450 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32451 <grub/reader.h>.
32452 (grub_exit_env): Removed.
32453 (fs_module_list): Moved to normal/autofs.c.
32454 (grub_file_getline): Don't handle comment here.
32455 (free_menu): Skip removed field entry->commands.
32456 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32457 script parameter.
32458 (read_config_file): Removed nested parameter, change getline function.
32459 (grub_enter_normal_mode): Removed.
32460 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32461 (read_command_list): Likewise.
32462 (autoload_fs_module): Moved to normal/autofs.c.
32463 (read_fs_list): Likewise.
32464 (reader_nested): New variable.
32465 (grub_normal_execute): Run parser.sh to switch to sh parser.
32466 (grub_cmd_rescue): Removed.
32467 (cmd_normal): Removed.
32468 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32469 rescue command.
32470 (grub_cmdline_run): New function.
32471 (grub_normal_reader_init): Likewise.
32472 (grub_normal_read_line): Likewise.
32473 (grub_env_write_pager): Likewise.
32474 (cmdline): New variable.
32475 (grub_normal_reader): Likewise.
32476 (GRUB_MOD_INIT): Register normal reader and set as current, register
32477 pager hook, register normal command with grub_register_command_prio,
32478 so that it won't show up in command.lst.
32479 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32480 grub_fs_autoload_hook.
32481
32482 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32483 (grub_menu_execute_entry): Replace grub_script_execute with
32484 grub_parser_execute, change parameter to grub_command_execute.
32485
32486 * normal/menu_text.c: Remove <grub/script.h>.
32487
32488 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32489 and <grub/parser.h>.
32490 (run): Change editor_getline to use new parser interface. Change
32491 parameter to grub_command_execute.
32492
32493 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32494 <grub/reader.h> and <grub/parser.h>.
32495 (grub_load_normal_mode): Execute normal command.
32496 (grub_main): Call grub_register_core_commands,
32497 grub_register_rescue_parser and grub_register_rescue_reader, use
32498 grub_reader_loop to enter input loop.
32499
7dd4a573 32500 * kern/parser.c (grub_parser_split_cmdline): Change type of
32501 getline parameter.
d558e6b5 32502 (grub_parser_class): New variable.
32503 (grub_parser_execute): New function.
32504
32505 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32506 * loader/multiboot2.c: Likewise.
32507 * loader/sparc64/ieee1275/linux.c: Likewise.
32508
32509 * util/grub-emu.c (read_command_list): New dummy function.
32510
18db813d 325112009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32512
32513 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32514 count to 16 for CCISS and IDA.
32515
6c67de15 325162009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32517
32518 * normal/menu_text.c (grub_wait_after_message): Print a newline
32519 after waiting for user input.
32520
32521 * loader/i386/linux.c: Include `<grub/normal.h>'.
32522 (grub_cmd_linux): Improve the error message about `ask' mode, by
32523 waiting for user input so it's not missed (we can do this, since
32524 user requested interaction).
32525
d9dc87b0 325262009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32527
32528 Added missing lst to grub-mkrescue
32529
32530 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32531 and ${input_dir}/parttool.lst
32532
ac8a2baa 325332009-04-30 David S. Miller <davem@davemloft.net>
32534
ad22a610 32535 * util/hostdisk.c (device_is_wholedisk): New function.
32536 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32537 zero only if device_is_wholedisk() returns true.
32538
6966215d 32539 * util/hostdisk.c (convert_system_partition_to_system_disk):
32540 Handle virtual disk devices named /dev/vdiskX as found on sparc
32541 and powerpc.
32542
ac8a2baa 32543 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32544 lettered partition specifier is found, convert to numbered.
32545
979b4fb4 325462009-04-29 David S. Miller <davem@davemloft.net>
32547
e2bf39b2 32548 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32549 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32550
3c64e104 32551 * normal/command.c: Add missing newline at end of file.
32552
979b4fb4 32553 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32554 warnings.
32555 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32556 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32557 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32558 ihandles have a 32-bit type but need to be stored in a "void *".
32559
136d9f82 325602009-04-28 Pavel Roskin <proski@gnu.org>
32561
9459c306 32562 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32563 not disk. Adjust all dependencies.
2e08a26a 32564 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 32565 grub_disk_close().
32566
136d9f82 32567 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32568 parent's partition, don't copy it by reference, as it gets freed
32569 on close.
32570
7dd4a573 325712009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 32572
32573 Preboot hooks support
32574
32575 * commands/boot.c (struct grub_preboot_t): new declaration
32576 (preboots_head): new variable
32577 (preboots_tail): likewise
32578 (grub_loader_register_preboot_hook): new function
32579 (grub_loader_unregister_preboot_hook): likewise
32580 (grub_loader_set): launch preboot hooks
32581 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32582 (grub_loader_register_preboot_hook): new declaration
32583 (grub_loader_unregister_preboot_hook): likewise
32584
5af922b5 325852009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32586
32587 Warning fix
32588
7dd4a573 32589 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 32590 calling grub_dprintf
32591
a5562c30 325922009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32593
32594 Bug and warning fixes
32595
7dd4a573 32596 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 32597 declaration
32598 * commands/test.c (test_parse): fixed bug with file tests and corrected
32599 declaration of find_file
32600
4006f85c 326012009-04-26 Pavel Roskin <proski@gnu.org>
32602
32603 * Makefile.in: Don't install empty manual pages if help2man is
32604 missing. Use help2man option for output, not shell redirection.
32605
5c77c3de 326062009-04-26 David S. Miller <davem@davemloft.net>
32607
32608 * util/grub-mkdevicemap.c (make_device_map): Add missing
32609 NESTED_FUNC_ATTR to process_device().
32610
033b10a8 326112009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32612
32613 Test command
32614
32615 * commands/test.c: rewritten to use bash-like test
32616
e4343593 326172009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32618
32619 Parttool autoloading and improvements
32620
7dd4a573 32621 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 32622 (parttool.lst): new target
32623 * genmk.rb: generate parttool-*
32624 (CLEANFILES): add #{parttool}
32625 (PARTTOOLFILES): new variable
32626 * genparttoollist.sh: new file
7dd4a573 32627 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 32628 (grub_pcpart_type): likewise
32629 * commands/parttool.c (helpmsg): new variable
32630 (grub_cmd_parttool): output help if not enough arguments are supplied
32631 autoload modules
32632 (GRUB_MOD_INIT(parttool)): use helpmsg
32633
0d312500 326342009-04-24 David S. Miller <davem@davemloft.net>
32635
7dd4a573 32636 Avoiding opening same device multiple times in device iterator.
0d312500 32637
32638 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 32639 and use it to build a list of partitions in iterate_disk() and
0d312500 32640 iterate_partition().
32641
ac20caff 32642 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32643 on disk->data.
32644
0dcf7495 32645 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32646 grub_devalias_iterate() result instead of unconditional 0.
32647 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32648 Also, capture hook return value, either directly or via
32649 grub_children_iterate(), and propagate to caller.
32650 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32651 grub_children_iterate): Return value is now 'int' instead of
32652 'grub_err_t'.
32653 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32654 like a proper iterator, stopping when hooks return non-zero.
32655 (grub_devalias_iterate): Likewise.
32656
c8c08833 326572009-04-23 David S. Miller <davem@davemloft.net>
32658
32659 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32660
f01005a8 326612009-04-22 David S. Miller <davem@davemloft.net>
32662
32663 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32664 is larger than address_cells, use that value for address_cells too.
32665
4e8269da 32666 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32667 IEEE1275_MAX_PATH_LEN): Define.
32668 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32669 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32670 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32671 'devtype'. Explicitly NULL terminate devalias expansion.
32672
a1447506 32673 * util/sparc64/ieee1275/misc.c: New file.
32674 * util/sparc64/ieee1275/grub-setup.c: New file.
32675 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32676 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32677 * util/sparc64/ieee1275/grub-install.in: New file.
32678 * util/ieee1275/ofpath.c: New file.
32679 * util/ieee1275/devicemap.c: New file.
32680 * util/devicemap.c: New file.
32681 * util/deviceiter.c: New file.
32682 * kern/sparc64/ieee1275/init.c: New file.
32683 * include/grub/util/ofpath.h: New file.
32684 * include/grub/util/deviceiter.h: New file.
32685 * util/grub-mkdevicemap.c: Include deviceiter.h.
32686 Implement using grub_util_emit_devicemap_entry and
32687 grub_util_iterate_devices.
32688 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32689 util/devicemap.c into grub-mkdevicemap
32690 * conf/i386-efi.rmk: Likewise.
32691 * conf/i386-ieee1275.rmk: Likewise.
32692 * conf/i386-pc.rmk: Likewise.
32693 * conf/powerpc-ieee1275.rmk: Likewise.
32694 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32695 images and installation utilities. Build kernel as image
32696 instead of as elf binary. Use common rules as much as possible.
32697
7dd4a573 326982009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 32699
32700 Correct GPT definition
32701
7dd4a573 32702 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 32703 of "attrib" member
32704
c6c5219f 327052009-04-19 Felix Zielcke <fzielcke@z-51.de>
32706
32707 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32708
0552ff9f 327092009-04-19 David S. Miller <davem@davemloft.net>
32710
32711 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32712 (grub_rescue_cmd_linux): Rename to...
32713 (grub_cmd_linux): and fix prototype.
32714 (grub_rescue_cmd_initrd): Rename to...
32715 (grub_cmd_initrd): and fix prototype.
32716 (cmd_linux, cmd_initrd): New.
32717 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32718 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32719
d1a282fc 327202009-04-17 Pavel Roskin <proski@gnu.org>
32721
07c5039f 32722 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32723 format.
32724 (grub_ohci_transfer): Likewise.
32725
b012002d 32726 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32727
1bc09c35 32728 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32729 return without a value. Fix inconsistent indentation.
32730
e0ff9126 32731 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32732 match struct grub_fs.
32733
d1a282fc 32734 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32735 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32736 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32737 * commands/lspci.c (grub_lspci_iter): Likewise.
32738
a96df3f2 327392009-04-16 Bean <bean123ch@gmail.com>
32740
32741 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32742 value.
32743
41bb0fe9 327442009-04-15 Pavel Roskin <proski@gnu.org>
32745
32746 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32747 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32748 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32749 definitions.
32750
596c6970 327512009-04-15 Felix Zielcke <fzielcke@z-51.de>
32752
32753 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 32754 that no multiple data or metadata areas are supported and `Unknown
596c6970 32755 metadata header'.
32756
7dd4a573 327572009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 32758
32759 Move loader out of the kernel
32760
32761 * kern/loader.c: moved to ...
32762 * commands/boot.c: ... moved here
32763 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32764 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32765 * include/grub/kernel.h (grub_machine_fini): export
32766 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32767 (grub_loader_set): likewise
32768 (grub_loader_unset): likewise
32769 (grub_loader_boot): likewise
32770 * conf/common.rmk: new module boot.mod
32771 (pkglib_MODULES): add boot.mod
32772 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32773 (grub_emu_SOURCES): likewise
32774 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32775 (grub_emu_SOURCES): likewise
32776 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32777 (grub_emu_SOURCES): likewise
32778 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32779 (grub_emu_SOURCES): likewise
32780 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32781 (grub_emu_SOURCES): likewise
7dd4a573 32782 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32783 (grub_emu_SOURCES): likewise
0d5d5653 32784 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 32785 (grub_emu_SOURCES): likewise
0d5d5653 32786
7dd4a573 327872009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 32788
32789 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 32790
5999d619 32791 * kern/misc.c (grub_itoa): Removed function
32792 (grub_ltoa): likewise
32793 (grub_vsprintf): use grub_lltoa
32794
7dd4a573 327952009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 32796
32797 Restore grub-emu
32798
32799 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32800 * conf/i386-coreboot.rmk: likewise
32801 * conf/i386-ieee1275.rmk: likewise
32802 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 32803
20318222 328042009-04-15 Felix Zielcke <fzielcke@z-51.de>
32805
32806 * INSTALL: Add that `./autogen.sh' needs to be run before
32807 `./configure.'.
32808
d05f0df3 328092009-04-14 Bean <bean123ch@gmail.com>
32810
32811 * Makefile.in (pkglib_DATA): Add handler.lst.
32812 (handler.lst): New rule.
32813
32814 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32815 * conf/i386-coreboot.rmk: Likewise.
32816 * conf/i386-ieee1275.rmk: Likewise.
32817 * conf/i386-efi.rmk: Likewise.
32818 * conf/x86_64-efi.rmk: Likewise.
32819 * conf/powerpc-ieee1275.rmk: Likewise.
32820 * conf/sparc64-ieee1275.rmk: Likewise.
32821
32822 * genhandlerlist.sh: New file.
32823
32824 * genmk.rb: Add rules to generate handler.lst.
32825
32826 * include/grub/normal.h (grub_file_getline): New function definition.
32827 (read_handler_list): Likewise.
32828 (free_handler_list): Likewise.
32829
32830 * include/grub/term.h (grub_term_register_input): Add name parameter
32831 for auto generation of handler.lst.
32832 (grub_term_register_output): Likewise.
32833
32834 * normal/handler.c: New file.
32835
32836 * normal/main.c (get_line): Renamed to grub_file_getline.
32837 (read_config_file): Use the newly renamed grub_file_getline.
32838 (read_command_list): Likewise.
32839 (read_fs_list): Likewise.
32840 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32841 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32842
32843 * term/efi/console.c (grub_console_init): Add name parameter for auto
32844 generation of handler.lst.
32845 * term/gfxterm.c: Likewise.
32846 * term/i386/pc/at_keyboard.c: Likewise.
32847 * term/i386/pc/console.c: Likewise.
32848 * term/i386/pc/serial.c: Likewise.
32849 * term/i386/pc/vesafb.c: Likewise.
32850 * term/i386/pc/vga.c: Likewise.
32851 * term/i386/pc/vga_text.c: Likewise.
32852 * term/ieee1275/ofconsole.c: Likewise.
32853 * term/usb_keyboard.c: Likewise.
32854
33c846be 328552009-04-14 Bean <bean123ch@gmail.com>
32856
32857 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32858 properly with null character.
32859
4484e01e 328602009-04-14 Felix Zielcke <fzielcke@z-51.de>
32861
32862 * configure: Remove.
32863 * config.h.in: Likewise.
f93d668e 32864 * stamp-h.in: Likewise.
4484e01e 32865 * DISTLIST: Likewise.
32866 * conf/common.mk: Likewise.
32867 * conf/i386-coreboot.mk: Likewise.
32868 * conf/i386-efi.mk: Likewise.
32869 * conf/i386-ieee1275.mk: Likewise.
32870 * conf/i386.mk: Likewise.
32871 * conf/i386-pc.mk: Likewise.
32872 * conf/powerpc-ieee1275.mk: Likewise.
32873 * conf/sparc64-ieee1275.mk: Likewise.
32874 * conf/x86_64-efi.mk: Likewise.
32875
32876 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32877 develop on GRUB.
32878
7dd4a573 328792009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 32880 David S. Miller <davem@davemloft.net>
32881
32882 * util/hostdisk.c (make_device_name): Fix buffer length
32883 calculations.
32884
e25b5a8c 328852009-04-14 Felix Zielcke <fzielcke@z-51.de>
32886
32887 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32888 <sys/param.h> and <sys/sysctl.h>.
32889 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32890 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32891 opening the device and reset them afterwards.
32892
1f1f580c 328932009-04-13 Pavel Roskin <proski@gnu.org>
32894
32895 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32896 Reported by John Stanley <jpsinthemix@verizon.net>
32897
7ebc2d6b 328982009-04-13 Robert Millan <rmh@aybabtu.com>
32899
32900 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 32901 that name for menuentries when appropriate.
7ebc2d6b 32902
d8ba3667 329032009-04-13 Felix Zielcke <fzielcke@z-51.de>
32904
32905 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32906
cba416eb 329072009-04-13 Robert Millan <rmh@aybabtu.com>
32908
32909 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32910 to Linux, simply abort telling the user it's no longer supported.
32911
a547a745 329122009-04-13 Felix Zielcke <fzielcke@z-51.de>
32913
32914 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 32915 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 32916 `freebsd_loadenv' only when devices.hints exist.
32917
232a769c 329182009-04-13 Pavel Roskin <proski@gnu.org>
32919
32920 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32921
c3012039 329222009-04-13 Felix Zielcke <fzielcke@z-51.de>
32923
32924 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32925 partition number.
32926 (grub_drive): Likewise.
32927
234022fe 329282009-04-13 David S. Miller <davem@davemloft.net>
32929
32930 * kern/sparc64/ieee1275/ieee1275.c: New file.
32931 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32932 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32933 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32934 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32935 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32936 grub_ieee1275_alloc_physmem): Declare new exported functions.
32937
d8e1836c 32938 * include/grub/sparc64/ieee1275/loader.h: New file.
32939 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32940 * include/grub/sparc64/kernel.h: Likewise.
32941 * loader/sparc64/ieee1275/linux.c: Likewise.
32942
96bd81ec 32943 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32944 (grub_fstest_SOURCES): Likewise.
32945
6a4737e5 32946 * util/hostdisk.c (make_device_name): Do not make any assumptions
32947 about the length of drive names.
32948
1d7a72fd 32949 * kern/dl.c (grub_dl_load_file): Close file immediately when
32950 we are done using it.
32951
56bc2471 329522009-04-12 David S. Miller <davem@davemloft.net>
32953
32954 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32955 values. Noticed by Pavel Roskin.
32956
df38d0bb 32957 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32958 target compiler.
7dd4a573 32959
e382e93a 32960 * genmk.rb: Add more flexible image type specification, also
32961 pass --strip-unneeded to objcopy.
32962 * conf/i386-pc.rmk: Use *_FORMAT.
32963 * conf/i386-pc.mk: Rebuilt.
32964
f5dbbca9 32965 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32966 (OFDISK_HASH_SZ): Define.
32967 (ofdisk_hash): New hash table.
32968 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32969 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32970 instead of device phandle which is not unique.
32971
91c88b12 32972 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32973 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32974 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32975 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32976 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32977 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32978 GRUB_KERNEL_MACHINE_DATA_END): Define.
32979 (grub_kernel_image_size, grub_total_module_size): Declare.
32980
5b5d4aa5 329812009-04-12 Pavel Roskin <proski@gnu.org>
32982
7dd4a573 32983 * configure.ac: Change the logic when we check for target tools.
32984 Do it when the target is specified and it's different from the
32985 specified value of the host.
5b5d4aa5 32986
c91e1793 329872009-04-11 Felix Zielcke <fzielcke@z-51.de>
32988
32989 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32990 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32991 GNU/kFreeBSD. Check if a device is a character device. Use
32992 DIOCGMEDIASIZE to get the size.
32993 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32994 support for GNU/kFreeBSD.
32995 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32996 is a character device instead of a block device. Add support for
32997 FreeBSD device names.
32998
32999 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
33000 is a character device instead of a block device.
33001
33002 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
33003 is a character device instead of a block device.
33004
b1ac8644 330052009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
33006
33007 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
33008 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
33009 FreeBSD. Check if a device is a character device. Use
33010 DIOCGMEDIASIZE to get the size.
33011 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
33012 support for FreeBSD.
33013 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
33014 is a character device instead of a block device. Add support for
33015 FreeBSD device names.
33016
33017 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
33018 a character device instead of a block device.
33019 (grub_util_check_char_device): New function.
33020
33021 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
33022 a character device instead of a block device.
33023
33024 * include/grub/util/getroot.h (grub_util_check_char_device): New
33025 prototype.
33026
a3f7515a 330272009-04-11 David S. Miller <davem@davemloft.net>
33028
33029 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
33030 static libgcc.
33031 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
33032 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
33033 function, if present.
33034 (__bswapdi2): Likewise.
33035
0d44993d 33036 * include/grub/sparc64/ieee1275/boot.h: New file.
33037 * boot/sparc64/ieee1275/boot.S: Likewise.
33038 * boot/sparc64/ieee1275/diskboot.S: Likewise.
33039
ed3d2bc2 33040 * kern/misc.c (grub_ltoa): New function.
33041 (grub_vsprintf): Use it to format 'long' integers.
33042
d3bfb59c 330432009-04-10 David S. Miller <davem@davemloft.net>
33044
33045 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
33046 slots are of type grub_ieee1275_cell_t.
33047 (grub_nand_read): Likewise.
33048 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
33049 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
33050 macros are used to compare values in arg/ret block of the call.
33051 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
33052 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
33053 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
33054 grub_ieee1275_instance_to_path, grub_ieee1275_write,
33055 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
33056 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
33057 grub_ieee1275_close, grub_ieee1275_set_property,
33058 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
33059 grub_ieee1275_cell_t.
33060 * kern/ieee1275/openfw.c (grub_map): Likewise.
33061 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
33062 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
33063
450e2238 33064 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
33065 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
33066 (grub_devalias_iterate): Likewise.
33067
7dd4a573 330682009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 33069
33070 UFS improvements
33071
33072 * fs/ufs.c (INODE_NBLOCKS): new definition
33073 (struct grub_ufs_dirent): added fields for non-BSD dirents
33074 (grub_ufs_get_file_block): fixed double indirect handling
33075 (grub_ufs_lookup_symlink): use more robust way to determine whether
33076 symlink is inline
33077 (grub_ufs_find_file): support for non-BSD dirents
33078 (grub_ufs_dir): support for non-BSD dirents
33079
e7e6862a 330802009-04-10 Bean <bean123ch@gnail.com>
33081
33082 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
33083 attribute, otherwise the size would be wrong for i386 platform.
33084
33085 * include/grub/pci.h (grub_pci_read_word): New inline function.
33086 (grub_pci_read_byte): Likewise.
33087 (grub_pci_write): Likewise.
33088 (grub_pci_write_word): Likewise.
33089 (grub_pci_write_byte): Likewise.
33090
33091 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
33092
33093 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
33094 (find_framebuf): Scan pci to locate the frame buffer address.
33095
33096 * commands/efi/fixvideo.c: New file.
33097
33098 * commands/efi/loadbios.c: Likewise.
33099
33100 * commands/memrw.c: Likewise.
33101
33102 * util/grub-dumpbios.in: Likewise.
33103
33104 * conf/common.rmk (grub-dumpbios): New utility.
33105 (pkglib_MODULES): New module memrw.mod.
33106 (memrw_mod_SOURCE): New macro.
33107 (memrw_mod_CFLAGS): Likewise.
33108 (memrw_mod_LDFLAGS): Likewise.
33109
7dd4a573 33110 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33111 fixvideo.mod.
33112 (loadbios_mod_SOURCE): New macro.
33113 (loadbios_mod_CFLAGS): Likewise.
33114 (loadbios_mod_LDFLAGS): Likewise.
33115 (fixvideo_mod_SOURCE): Likewise.
33116 (fixvideo_mod_CFLAGS): Likewise.
33117 (fixvideo_mod_LDFLAGS): Likewise.
33118
7dd4a573 33119 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33120 fixvideo.mod.
33121 (loadbios_mod_SOURCE): New macro.
33122 (loadbios_mod_CFLAGS): Likewise.
33123 (loadbios_mod_LDFLAGS): Likewise.
33124 (fixvideo_mod_SOURCE): Likewise.
33125 (fixvideo_mod_CFLAGS): Likewise.
33126 (fixvideo_mod_LDFLAGS): Likewise.
33127
af63ada2 331282009-04-08 Felix Zielcke <fzielcke@z-51.de>
33129
33130 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
33131
c2cdde70 331322009-04-07 David S. Miller <davem@davemloft.net>
33133
33134 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
33135 support for R_SPARC_OLO10 relocations. Fix compile warning for
33136 R_SPARC_WDISP30 case.
ea3f72cf 33137 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 33138
761319cf 331392009-04-06 Pavel Roskin <proski@gnu.org>
33140
1007d1f5 33141 * include/grub/misc.h (ARRAY_SIZE): New macro.
33142 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
33143 New macro.
33144 * loader/i386/linux.c (allocate_pages): Use free_pages().
33145 (grub_linux_unload): Don't use free_pages().
33146 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
33147 wrong index. Treat all other modes as text modes.
33148 (grub_cmd_linux): Initialize vid_mode unconditionally to
33149 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
33150
761319cf 33151 * commands/help.c (print_command_help): Use cmd->prio, not
33152 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
33153
ea761d40 331542009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 33155
ea761d40 33156 Parttool
33157
33158 * parttool/pcpart.c: new file
33159 * commands/parttool.c: likewise
33160 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
33161 (parttool_mod_SOURCES): new variable
33162 (parttool_mod_CFLAGS): likewise
33163 (parttool_mod_LDFLAGS): likewise
33164 (pcpart_mod_SOURCES): likewise
33165 (pcpart_mod_CFLAGS): likewise
33166 (pcpart_mod_LDFLAGS): likewise
7dd4a573 33167 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 33168 and parttool/pcpart.c
33169 * conf/i386-efi.rmk: likewise
33170 * conf/i386-ieee1275.rmk: likewise
33171 * conf/i386-pc.rmk: likewise
33172 * conf/powerpc-ieee1275.rmk: likewise
33173 * conf/sparc64-ieee1275.rmk: likewise
33174 * conf/x86_64-ieee1275.rmk: likewise
33175
05aaebfb 331762009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33177
33178 Support for mtime and further expandability of dir command
33179
33180 * include/grub/lib/datetime.h: moved to ...
7dd4a573 33181 * include/grub/datetime.h: ... moved here and added
05aaebfb 33182 declaration of grub_unixtime2datetime. All users updated
7dd4a573 33183 * include/grub/fs.h: new syntax for dir and mtime functions in
33184 struct grub_fs
05aaebfb 33185 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
33186 and GRUB_FSHELP_FLAGS_MASK
33187 * commands/ls.c (grub_ls_list_files): Write mtime in long format
33188 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
33189 (grub_ext2_mtime): new function
33190 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
33191 (grub_hfsplus_mtime): new function
33192 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
33193 (GRUB_UFS_ATTR_FILE): likewise
33194 (GRUB_UFS_ATTR_LNK): likewise
33195 (struct grub_ufs_sblock): new fields mtime
33196 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
33197 all users updated
33198 (grub_ufs_dir): mtime support
33199 (grub_ufs_mtime): new function
33200 * fs/affs.c (grub_affs_dir): use new dir syntax
33201 * fs/afs.c (grub_afs_dir): likewise
33202 * fs/cpio.c (grub_cpio_dir): likewise
33203 * fs/fat.c (grub_fat_find_dir): likewise
33204 * fs/hfs.c (grub_hfs_dir): likewise
33205 * fs/iso9660.c (grub_iso9660_dir): likewise
33206 * fs/jfs.c (grub_jfs_dir): likewise
33207 * fs/minix.c (grub_minix_dir): likewise
33208 * fs/ntfs.c (grub_ntfs_dir): likewise
33209 * fs/reiserfs.c (grub_reiserfs_dir): likewise
33210 * fs/sfs.c (grub_sfs_dir): likewise
33211 * fs/xfs.c (grub_xfs_dir): likewise
33212 * util/hostfs.c (grub_hostfs_dir): likewise
33213 * lib/datetime.c: moved to ...
33214 * normal/datetime.c: ... moved here
33215 (grub_unixtime2datetime): new function
33216 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 33217 * normal/completion.c (iterate_dir): use new dir syntax
33218 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 33219 last modification time of a volume
7dd4a573 33220 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 33221 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 33222 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 33223 (normal_mod_SOURCES): likewise
33224 (datetime_mod_SOURCES): Removed lib/datetime.c
33225 * conf/i386-efi.rmk: likewise
7dd4a573 33226 * conf/i386-ieee1275.rmk: likewise
05aaebfb 33227 * conf/i386-pc.rmk: likewise
33228 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 33229 * conf/sparc64-ieee1275.rmk: likewise
33230 * conf/x86_64-efi.rmk: likewise
05aaebfb 33231
8a7e1a14 332322009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33233
33234 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 33235
33236 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 33237 on grub_fat_find_dir
33238 (grub_fat_find_dir): use grub_fat_iterate_dir
33239 (grub_fat_label): likewise
33240
04186a9c 332412009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
33242
7dd4a573 33243 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 33244 and command.h
33245 remove extraneous kernel_elf_HEADERS
33246
da4c0bb6 332472009-04-04 Bean <bean123ch@gnail.com>
33248
33249 * include/grub/util/misc.h: Add dummy function fsync for mingw.
33250
33251 * util/misc.c: Likewise.
33252
54ad9555 332532009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33254
33255 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
33256 instead of grub_printf.
33257
7a6bf9f2 332582009-04-03 Robert Millan <rmh@aybabtu.com>
33259
33260 * loader/i386/linux.c (grub_linux_setup_video): Fill
33261 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
33262 values from `mode info' structure instead of hardcoded
33263 values.
33264
3fcc2083 332652009-04-01 Pavel Roskin <proski@gnu.org>
33266
33267 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
33268 unused now.
33269 * genmk.rb: Likewise.
33270 * configure.ac: Likewise.
33271
5ec9740b 332722009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
33273
33274 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
33275 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
33276
5270cec8 332772009-04-01 David S. Miller <davem@davemloft.net>
33278
33279 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 33280 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 33281 (grub_setjmp): Mark with 'returns_twice' attribute.
33282 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
33283 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
33284 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
33285
9c3dd854 332862009-04-01 Robert Millan <rmh@aybabtu.com>
33287
33288 Reapply fix from 2008-07-28 which was accidentally reverted; also
33289 perform the same fix to a similar check in same function.
33290
33291 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
33292 with the same number are found, just use issue a warning with
33293 grub_dprintf(), as this error has been reported to be non-fatal.
33294
0d818b7e 332952009-03-31 Pavel Roskin <proski@gnu.org>
33296
33297 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
33298 for cross-compilation.
33299
95646d92 333002009-03-30 Robert Millan <rmh@aybabtu.com>
33301
33302 Fix i386-ieee1275 build.
33303
33304 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
33305 Remove declaration.
33306
6a003ed1 333072009-03-30 Pavel Roskin <proski@gnu.org>
33308
33309 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
33310 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
33311 zero-terminated, rely only on the strlen value. Fix comparison
33312 of strings differing in length.
33313
92f33540 333142009-03-30 Robert Millan <rmh@aybabtu.com>
33315
33316 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
33317 checking for abi version. Improve error messages on BIOS to notify
33318 user about `linux16' command.
33319
a8c48fd5 333202009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33321
f968172e 33322 Leak fixes
a8c48fd5 33323
f968172e 33324 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33325 in case of collision
33326 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 33327
9c323f09 333282009-03-29 Robert Millan <rmh@aybabtu.com>
33329
33330 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33331 set `vid_mode' accordingly.
33332 (grub_linux_boot): Process `vid_mode' and set video mode.
33333
ae68f423 333342009-03-29 Robert Millan <rmh@aybabtu.com>
33335
33336 * util/grub.d/10_linux.in (linux_entry): New function.
33337 Factorize generation of Linux boot entries.
33338
5709cfc4 333392009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33340
33341 Make the format of Environment Block plain text. The boot loader
33342 part is not tested well yet.
7dd4a573 33343
5709cfc4 33344 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33345 (buffer): Removed.
33346 (envblk): Likewise.
33347 (usage): Remove "info" and "clear". Add "unset". Update the
33348 description of "set", as this does not delete variables any
33349 longer.
33350 (create_envblk_file): Complete rewrite.
33351 (open_envblk_file): Likewise.
33352 (cmd_info): Removed.
33353 (cmd_list): Likewise.
33354 (cmd_set): Likewise.
33355 (cmd_clear): Likewise.
33356 (list_variables): New function.
33357 (write_envblk): Likewise.
33358 (set_variables): Likewise.
33359 (unset_variables): Likewise.
33360 (main): Complete rewrite.
33361
33362 * commands/loadenv.c (buffer): Removed.
33363 (envblk): Likewise.
33364 (open_envblk_file): New function.
33365 (read_envblk_file): Complete rewrite.
33366 (grub_cmd_load_env): Likewise.
33367 (grub_cmd_list_env): Likewise.
33368 (struct blocklist): New struct.
33369 (free_blocklists): New function.
33370 (check_blocklists): Likewise.
33371 (write_blocklists): Likewise.
33372 (grub_cmd_save_env): Complete rewrite.
33373
33374 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33375 a plain text signature.
33376 (GRUB_ENVBLK_MAXLEN): Removed.
33377 (struct grub_envblk): Complete rewrite.
33378 (grub_envblk_find): Removed.
33379 (grub_envblk_insert): Likewise.
33380 (grub_envblk_open): New prototype.
33381 (grub_envblk_set): Likewise.
33382 (grub_envblk_delete): Put const to VALUE.
33383 (grub_envblk_iterate): Put const to NAME and VALUE.
33384 (grub_envblk_close): New prototype.
33385 (grub_envblk_buffer): New inline function.
33386 (grub_envblk_size): Likewise.
33387
33388 * lib/envblk.c: Include grub/mm.h.
33389 (grub_env_find): Removed.
33390 (grub_envblk_open): New function.
33391 (grub_envblk_close): Likewise.
33392 (escaped_value_len): Likewise.
33393 (find_next_line): Likewise.
33394 (grub_envblk_insert): Removed.
33395 (grub_envblk_set): New function.
33396 (grub_envblk_delete): Complete rewrite.
33397 (grub_envblk_iterate): Likewise.
33398
a9368fd3 333992009-03-28 Robert Millan <rmh@aybabtu.com>
33400
33401 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33402 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33403 variables. Use 16-bit loader.
33404 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33405 loader.
33406 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33407 (grub_linux16_boot): ... this. Update all users.
33408 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33409 (grub_linux_boot): ... this. Update all users.
33410
33411 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33412 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33413 commands to `linux16' and `initrd16'.
33414 (GRUB_MOD_FINI(linux)): Rename to ...
33415 (GRUB_MOD_FINI(linux16)): ... this.
33416
e4dd5a7e 334172009-03-24 Pavel Roskin <proski@gnu.org>
33418
33419 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33420 not just for compilation.
33421
c04d6e05 334222009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33423
33424 Move multiboot helper out of kernel
33425
33426 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33427 `loader/i386/multiboot_helper.S'.
33428 * conf/i386-coreboot.rmk: Likewise
33429 * conf/i386-ieee1275.rmk: Likewise
33430
33431 * kern/i386/loader.S: Move multiboot helpers from here...
33432 * loader/i386/multiboot_helper.S: ...moved here
33433 * include/grub/i386/loader.h: Move declarations of multiboot
33434 helpers from here...
33435 * include/grub/i386/multiboot.h: ...moved here
33436 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33437
42a5b3fc 334382009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33439
33440 * kern/env.c (grub_env_context_open): Added an argument to specify
33441 whether a new context inherits exported variables from current
33442 one. This is useful when making a sandbox to interpret a config
33443 file.
33444 All callers updated.
33445
33446 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33447
b28bbc4e 334482009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33449
33450 * kern/env.c (grub_env_context_close): Fix memory leaks.
33451
f04f02e4 334522009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33453
33454 * normal/main.c (grub_normal_execute): Added an argument
33455 BATCH to specify if an interactive interface should be provided
33456 after reading a config file.
33457 All callers updated.
33458 (read_command_list): Prevent being executed twice.
33459 (read_fs_list): Likewise.
33460
42a5b3fc 33461 * include/grub/normal.h (grub_normal_execute): Updated the
33462 prototype.
f04f02e4 33463
41473ac2 334642009-03-22 Pavel Roskin <proski@gno.org>
33465
fbc00b0c 33466 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33467 _start.
33468 * kern/i386/pc/startup.S: Likewise.
33469 * kern/i386/efi/startup.S: Likewise.
33470 * kern/i386/ieee1275/startup.S: Likewise.
33471 * kern/i386/coreboot/startup.S: Likewise.
33472 * kern/x86_64/efi/startup.S: Likewise.
33473
41473ac2 33474 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33475 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33476 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33477
2274cc8f 334782009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33479
33480 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33481
33482 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33483 limit detection.
33484 Use vaddr of correct segment for entry_point.
33485
b1b797cb 334862009-03-21 Bean <bean123ch@gmail.com>
33487
33488 * commands/blocklist.c: Add include file <grub/command.h>, remove
33489 <grub/normal.h> and <grub/arg.h>.
33490 (grub_cmd_blocklist): Use the new command interface.
33491 (GRUB_MOD_INIT): Likewise.
33492 (GRUB_MOD_FINI): Likewise.
33493 * commands/boot.c: Likewise.
33494 * commands/cat.c: Likewise.
33495 * commands/cmp.c: Likewise.
33496 * commands/configfile.c: Likewise.
33497 * commands/crc.c: Likewise.
33498 * commands/echo.c: Likewise.
33499 * commands/halt.c: Likewise.
33500 * commands/handler.c: Likewise.
33501 * commands/hdparm.c: Likewise.
33502 * commands/help.c: Likewise.
33503 * commands/hexdump.c: Likewise.
33504 * commands/loadenv.c: Likewise.
33505 * commands/ls.c: Likewise.
33506 * commands/lsmmap.c: Likewise.
33507 * commands/lspci.c: Likewise.
33508 * commands/loadenv.c: Likewise.
33509 * commands/read.c: Likewise.
33510 * commands/reboot.c: Likewise.
33511 * commands/search.c: Likewise.
33512 * commands/sleep.c: Likewise.
33513 * commands/test.c: Likewise.
33514 * commands/usbtest.c: Likewise.
33515 * commands/videotest.c: Likewise.
33516 * commands/i386/cpuid.c: Likewise.
33517 * commands/i386/pc/halt.c: Likewise.
33518 * commands/i386/pc/play.c: Likewise.
33519 * commands/i386/pc/pxecmd.c: Likewise.
33520 * commands/i386/pc/vbeinfo.c: Likewise.
33521 * commands/i386/pc/vbetest.c: Likewise.
33522 * commands/ieee1275/suspend.c: Likewise.
33523 * disk/loopback.c: Likewise.
33524 * font/font_cmd.c: Likewise.
33525 * hello/hello.c: Likewise.
33526 * loader/efi/appleloader.c: Likewise.
33527 * loader/efi/chainloader.c: Likewise.
33528 * loader/i386/bsd.c: Likewise.
33529 * loader/i386/efi/linux.c: Likewise.
33530 * loader/i386/ieee1275/linux.c: Likewise.
33531 * loader/i386/linux.c: Likewise.
33532 * loader/i386/pc/chainloader.c: Likewise.
33533 * loader/i386/pc/linux.c: Likewise.
33534 * loader/powerpc/ieee1275/linux.c: Likewise.
33535 * loader/multiboot_loader.c: Likewise.
33536 * term/gfxterm.c: Likewise.
33537 * term/i386/pc/serial.c: Likewise.
33538 * term/terminfo.c: Likewise.
33539
33540 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33541 * term/i386/pc/vga.c: Likewise.
33542 * video/readers/jpeg.c: Likewise.
33543 * video/readers/png.c: Likewise.
33544 * video/readers/tga.c: Likewise.
33545
33546 * util/grub-fstest (cmd_loopback): Removed.
33547 (cmd_blocklist): Likewise.
33548 (cmd_ls): Likewise.
33549 (grub_register_command): Likewise.
33550 (grub_unregister_command): Likewise.
33551 (execute_command): Use grub_command_find to locate command and execute
33552 it.
33553
33554 * include/grub/efi/chainloader.h: Removed.
33555 * loader/efi/chainloader_normal.c: Likewise.
33556 * loader/i386/bsd_normal.c: Likewise.
33557 * loader/i386/pc/chainloader_normal.c: Likewise.
33558 * loader/i386/pc/multiboot_normal.c: Likewise.
33559 * loader/linux_normal.c: Likewise.
33560 * loader/multiboot_loader_normal.c: Likewise.
33561 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33562
33563 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33564 and grub_register_command_p1.
33565
33566 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33567 kern/command.c, lib/arg.c and commands/extcmd.c.
33568 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33569 (minicmd_mod_SOURCES): New variable.
33570 (minicmd_mod_CFLAGS): Likewise.
33571 (minicmd_mod_LDFLAGS): Likewise.
33572 (extcmd_mod_SOURCES): Likewise.
33573 (extcmd_mod_CFLAGS): Likewise.
33574 (extcmd_mod_LDFLAGS): Likewise.
33575 (boot_mod_SOURCES): Removed.
33576 (boot_mod_CFLAGS): Likewise.
33577 (boot_mod_LDFLAGS): Likewise.
33578
33579 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33580 kern/corecmd.c.
33581 (kernel_img_HEADERS): Add command.h.
33582 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33583 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33584 and lib/arg.c.
33585 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33586 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33587 remove the corresponding normal mode command.
33588 (normal_mod_SOURCES): Remove normal/arg.c.
33589 * conf/i386-coreboot.rmk: Likewise.
33590 * conf/i386-efi.rmk: Likewise.
33591 * conf/i386-ieee1275.rmk: Likewise.
33592 * conf/powerpc-ieee1275.rmk: Likewise.
33593 * conf/x86_64-efi.rmk: Likewise.
33594
33595 * include/grub/arg.h: Move from here ...
33596 * include/grub/lib/arg.h: ... to here.
33597
33598 * normal/arg.c: Move from here ...
33599 * lib/arg.c: ... to here.
33600
33601 * commands/extcmd.c: New file.
33602 * commands/minicmd.c: Likewise.
33603 * include/grub/command.h: Likewise.
33604 * include/grub/extcmd.h: Likewise.
33605 * kern/command.c: Likewise.
33606 * kern/corecmd.c: Likewise.
33607
33608 * kern/list.c (grub_list_iterate): Return int instead of void.
33609 (grub_list_insert): New function.
33610 (grub_prio_list_insert): Likewise.
33611
33612 * kern/rescue.c (grub_rescue_command): Removed.
33613 (grub_rescue_command_list): Likewise.
33614 (grub_rescue_register_command): Likewise.
33615 (grub_rescue_unregister_command): Likewise.
33616 (grub_rescue_cmd_boot): Move to minicmd.c
33617 (grub_rescue_cmd_help): Likewise.
33618 (grub_rescue_cmd_info): Likewise.
33619 (grub_rescue_cmd_boot): Likewise.
33620 (grub_rescue_cmd_testload): Likewise.
33621 (grub_rescue_cmd_dump): Likewise.
33622 (grub_rescue_cmd_rmmod): Likewise.
33623 (grub_rescue_cmd_lsmod): Likewise.
33624 (grub_rescue_cmd_exit): Likewise.
33625 (grub_rescue_print_devices): Moved to corecmd.c.
33626 (grub_rescue_print_files): Likewise.
33627 (grub_rescue_cmd_ls): Likewise.
33628 (grub_rescue_cmd_insmod): Likewise.
33629 (grub_rescue_cmd_set): Likewise.
33630 (grub_rescue_cmd_unset): Likewise.
7d074e3c 33631 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 33632 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 33633 commands, remove grub_rescue_register_command calls.
b1b797cb 33634
7d074e3c 33635 * normal/command.c (grub_register_command): Removed.
b1b797cb 33636 (grub_unregister_command): Likewise.
33637 (grub_command_find): Likewise.
33638 (grub_iterate_commands): Likewise.
33639 (rescue_command): Likewise.
33640 (export_command): Moved to corecmd.c.
33641 (set_command): Removed.
33642 (unset_command): Likewise.
33643 (insmod_command): Likewise.
33644 (rmmod_command): Likewise.
33645 (lsmod_command): Likewise.
33646 (grub_command_init): Likewise.
33647
33648 * normal/completion.c (iterate_command): Use cmd->prio to check for
33649 active command.
33650 (complete_arguments): Use grub_extcmd_t structure to find options.
33651 (grub_normal_do_completion): Change function grub_iterate_commands to
33652 grub_command_iterate.
33653
33654 * normal/execute.c (grub_script_execute_cmd): No need to parse
33655 argument here.
33656
33657 * normal/main.c (grub_dyncmd_dispatcher): New function.
33658 (read_command_list): Register unload commands as dyncmd.
33659 (grub_cmd_normal): Use new command interface, register rescue,
33660 unregister normal at entry, register normal, unregister rescue at exit.
33661
33662 * include/grub/list.h (grub_list_test_t): New type.
33663 (grub_list_iterate): Return int instead of void.
33664 (grub_list_insert): New function.
33665 (GRUB_AS_NAMED_LIST_P): New macro.
33666 (GRUB_AS_PRIO_LIST): Likewise.
33667 (GRUB_AS_PRIO_LIST_P): Likewise.
33668 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33669 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33670 (grub_prio_list): New structure.
33671 (grub_prio_list_insert): New function.
33672 (grub_prio_list_remove): New inline function.
33673
33674 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33675 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33676 (GRUB_COMMAND_FLAG_MENU): Likewise.
33677 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33678 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33679 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33680 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33681 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33682 (grub_command): Likewise.
33683 (grub_register_command): Likewise.
33684 (grub_command_find): Likewise.
33685 (grub_iterate_commands): Likewise.
33686 (grub_command_init): Likewise.
33687 (grub_arg_parse): Likewise.
33688 (grub_arg_show_help): Likewise.
33689
33690 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33691 (grub_rescue_unregister_command): Likewise.
33692
33693 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33694 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33695 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33696
33697 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33698 grub_rescue_cmd_initrd.
33699 * include/grub/i386/loader.h: Likewise.
33700 * include/grub/x86_64/loader.h: Likewise.
33701
33702 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33703
1f4147aa 337042009-03-21 Bean <bean123ch@gmail.com>
33705
33706 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33707 instead of stat in mingw environment.
33708
33709 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33710
33711 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33712
33713 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33714 AC_CONFIG_LINKS.
33715
2156d5ba 337162009-03-21 Bean <bean123ch@gmail.com>
33717
33718 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33719 out of range error.
33720
177b82ca 337212009-03-18 Michel Dänzer <michel@daenzer.net>
33722
33723 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33724 checking inode flags for EXT4_EXTENTS_FLAG.
33725
14aad807 337262009-03-18 Robert Millan <rmh@aybabtu.com>
33727
33728 * loader/i386/linux.c: Include `<grub/video.h>' and
33729 `<grub/i386/pc/vbe.h>'..
33730 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33731 (grub_linux32_boot): Attempt to configure video settings with
33732 grub_linux_setup_video().
33733 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33734 to avoid grub_console_fini() which would step out of graphical mode
33735 unconditionally.
33736
8cf83a27 337372009-03-14 Robert Millan <rmh@aybabtu.com>
33738
33739 Fix build on powerpc.
33740 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33741
40164e75 337422009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33743
33744 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33745 background image command.
33746
c58bc32a 337472009-03-12 Colin D Bennett <colin@gibibit.com>
33748
33749 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33750 (grub_gfxterm_putchar): Extract pairs of identical calls to
33751 draw_cursor out of conditional blocks.
33752
5415144a 337532009-03-11 Pavel Roskin <proski@gnu.org>
33754
33755 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33756 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33757
6394042e 337582009-03-11 Robert Millan <rmh@aybabtu.com>
33759
33760 * loader/i386/multiboot_elfxx.c
33761 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33762
b7b50e5f 337632009-03-11 Felix Zielcke <fzielcke@z-51.de>
33764
33765 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33766 `kern/handler.c'.
33767
1ca7fc96 337682009-03-11 Robert Millan <rmh@aybabtu.com>
33769
33770 * loader/i386/multiboot.c (code_size): New variable.
33771 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 33772 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 33773 4-byte alignment to MBI and others by increasing
7d074e3c 33774 `boot_loader_name_length' appropriately.
1ca7fc96 33775
33776 * loader/i386/multiboot_elfxx.c
33777 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33778
a83ea1d2 337792009-03-09 Felix Zielcke <fzielcke@z-51.de>
33780
33781 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33782 `fs/ext2.c'.
33783
aa9f3bff 337842009-03-08 Robert Millan <rmh@aybabtu.com>
33785
33786 Make loader/i386/linux.c usable on i386-pc again.
33787
33788 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33789 memory to heap.
33790 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33791 `#error' stanza.
33792
d8b3b60e 337932009-03-07 Bean <bean123ch@gmail.com>
33794
33795 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33796 allocation.
33797
b362c9e9 337982009-03-06 Robert Millan <rmh@aybabtu.com>
33799
33800 Fix display issue on terminals with screen size other than 80x25
33801 (e.g. gfxterm with resolution higher than 640x480).
33802
33803 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 33804 position relative to the center of the terminal instead of relying
b362c9e9 33805 on a hardcoded offset.
33806
9304eef1 338072009-03-04 Robert Millan <rmh@aybabtu.com>
33808
33809 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33810 installed.
33811
33812 * Makefile.in (host_kernel): New variable.
33813 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33814 scripts instead of just the windows one.
33815 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33816
eabc95fb 338172009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 33818
33819 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33820 `kern/handler.c'.
33821 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33822 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33823 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33825 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33826 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33827
ceb1223c 338282009-03-04 Felix Zielcke <fzielcke@z-51.de>
33829
33830 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33831 or if there's no space for the disk label and print the partition number on a
33832 invalid magic.
33833
4910684a 338342009-03-04 Felix Zielcke <fzielcke@z-51.de>
33835
33836 * util/misc.c: Include <time.h>.
33837 (grub_millisleep): New function.
33838
7e9ca17a 338392009-03-04 Bean <bean123ch@gmail.com>
33840
33841 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33842 another option -mno-red-zone.
33843
33844 * commands/handler.c: Change module description.
33845
33846 * kern/handler.c: Add missing space at the end of description line.
33847
33848 * kern/list.c: Likewise.
33849
f501677c 338502009-03-03 Robert Millan <rmh@aybabtu.com>
33851
33852 Move more components to the relocation area, and fix mbi pointer
33853 handling to use the destination rather than the origin (thanks to
33854 Vladimir Serbinenko for spotting).
33855
33856 * loader/i386/multiboot.c (mbi_dest): New variable.
33857 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33858 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33859 relocation area.
33860
9902d047 338612009-03-01 Bean <bean123ch@gmail.com>
33862
50fb7002 33863 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 33864 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33865 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33866 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33867
33868 * loader/i386/efi/linux.c (acpi_guid): New variable.
33869 (acpi_guid): Likewise.
33870 (EBDA_SEG_ADDR): New constant.
33871 (LOW_MEM_ADDR): Likewise.
33872 (FAKE_EBDA_SEG): Likewise.
33873 (fake_bios_data): New function.
33874 (grub_linux_boot): Call fake_bios_data.
33875
71b9f361 338762009-03-01 Bean <bean123ch@gmail.com>
33877
33878 * commands/terminal.c: Removed.
33879
33880 * commands/handler.c: New file.
33881
33882 * include/grub/list.h: Likewise.
33883
33884 * include/grub/handler.h: Likewise.
33885
33886 * kern/list.c: Likewise.
33887
33888 * kern/handler.c: Likewise.
33889
33890 * kern/term.h: Include header file <grub/handler.h>.
33891 (grub_term_input): Move next field to the beginning.
33892 (grub_term_output): Likewise.
33893 (grub_term_input_class): New variable.
33894 (grub_term_output_class): Likewise.
33895 (grub_term_register_input): Changed to inline function.
33896 (grub_term_register_output): Likewise.
33897 (grub_term_unregister_input): Likewise.
33898 (grub_term_unregister_output): Likewise.
33899 (grub_term_set_current_input): Likewise.
33900 (grub_term_set_current_output): Likewise.
33901 (grub_term_get_current_input): Likewise.
33902 (grub_term_get_current_output): Likewise.
33903 (grub_term_iterate_input): Removed.
33904 (grub_term_iterate_output): Likewise.
33905
33906 * kern/term.c (grub_term_list_input): Removed.
33907 (grub_term_list_output): Likewise.
33908 (grub_term_input_class): New variable.
33909 (grub_term_output_class): Likewise.
50fb7002 33910 (grub_cur_term_input): Change variable as macro.
71b9f361 33911 (grub_cur_term_output): Likewise.
33912 (grub_term_register_input): Removed.
33913 (grub_term_register_output): Likewise.
33914 (grub_term_unregister_input): Likewise.
33915 (grub_term_unregister_output): Likewise.
33916 (grub_term_set_current_input): Likewise.
33917 (grub_term_set_current_output): Likewise.
33918 (grub_term_iterate_input): Likewise.
33919 (grub_term_iterate_output): Likewise.
33920 (grub_term_get_current_input): Likewise.
33921 (grub_term_get_current_output): Likewise.
33922
33923 * util/grub-editenv.c: Include header file <grub/handler.h>.
33924 (grub_term_get_current_input): Removed.
33925 (grub_term_get_current_output): Likewise.
33926 (grub_term_input_class): New variable.
50fb7002 33927 (grub_term_output_class): Likewise.
71b9f361 33928
33929 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33930 (grub_term_get_current_output): Likewise.
33931 (grub_term_input_class): New variable.
50fb7002 33932 (grub_term_output_class): Likewise.
71b9f361 33933
33934 * util/grub-probe.c (grub_term_get_current_input): Removed.
33935 (grub_term_get_current_output): Likewise.
33936 (grub_term_input_class): New variable.
50fb7002 33937 (grub_term_output_class): Likewise.
71b9f361 33938
33939 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33940 (grub_term_get_current_output): Likewise.
33941 (grub_term_input_class): New variable.
50fb7002 33942 (grub_term_output_class): Likewise.
71b9f361 33943
33944 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33945 (terminal_mod_SOURCES): Likewise.
33946 (terminal_mod_CFLAGS): Likewise.
33947 (terminal_mod_LDFLAGS): Likewise.
33948
33949 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33950 handler.c.
33951 (kernel_img_SOURCES): Add list.c and handler.c.
33952 (kernel_img_HEADERS): Add list.h and handler.h.
33953
33954 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33955 handler.c.
33956 (kernel_mod_SOURCES): Add list.c and handler.c.
33957 (kernel_mod_HEADERS): Add list.h and handler.h.
33958
33959 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33960 handler.c.
33961 (kernel_elf_SOURCES): Add list.c and handler.c.
33962 (kernel_elf_HEADERS): Add list.h and handler.h.
33963
33964 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33965 handler.c.
33966 (kernel_elf_SOURCES): Add list.c and handler.c.
33967 (kernel_elf_HEADERS): Add list.h and handler.h.
33968
33969 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33970 handler.c.
33971 (kernel_mod_SOURCES): Add list.c and handler.c.
33972 (kernel_mod_HEADERS): Add list.h and handler.h.
33973
33974 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33975 handler.c.
33976 (kernel_elf_SOURCES): Add list.c and handler.c.
33977 (kernel_elf_HEADERS): Add list.h and handler.h.
33978
8a31787f 339792009-02-27 Robert Millan <rmh@aybabtu.com>
33980
33981 Factorize elf32 / elf64 code in Multiboot loader. This will
33982 prevent it from getting out of sync again.
33983
33984 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33985 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33986 grub_multiboot_load_elf64): Move from here ...
33987 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33988 grub_multiboot_load_elf): ... to here (new file).
33989
51cd3dfc 339902009-02-27 Robert Millan <rmh@aybabtu.com>
33991
33992 * util/grub.d/10_linux.in: Rename "single-user mode" to
33993 "recovery mode".
33994
6e8c9c3a 339952009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33996
33997 Don't leak in SCSI code.
33998 * disk/scsi.c (grub_scsi_close): free `scsi'.
33999
4b6bf4f9 340002009-02-27 Robert Millan <rmh@aybabtu.com>
34001
34002 * loader/i386/pc/multiboot.c: Move from here ...
34003 * loader/i386/multiboot.c: ... to here. Update all users.
34004
b9413424 340052009-02-27 Robert Millan <rmh@aybabtu.com>
34006
34007 Patch from Alexandre Bique <bique.alexandre@gmail.com>
34008 * util/i386/pc/grub-setup.c (setup): Fix directory path.
34009
50fb7002 340102009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 34011
34012 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
34013 b-tree.
34014
8cc50345 340152009-02-27 Robert Millan <rmh@aybabtu.com>
34016
34017 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
34018 `0x' qualifier as 0 when base is specified as parameter).
34019
6e09b8b7 340202009-02-24 Bean <bean123ch@gmail.com>
34021
34022 * configure.ac: Check for -mcmodel=large in x86_64 target.
34023
34024 * include/grub/efi/api.h (efi_call_10): New macro.
34025 (efi_wrap_10): New function.
34026
34027 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
34028 (GRUB_PE32_REL_BASED_HIGH): Likewise.
34029 (GRUB_PE32_REL_BASED_LOW): Likewise.
34030 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
34031 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
34032 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
34033 (GRUB_PE32_REL_BASED_SECTION): Likewise.
34034 (GRUB_PE32_REL_BASED_REL): Likewise.
34035 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
34036 (GRUB_PE32_REL_BASED_DIR64): Likewise.
34037 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
34038
34039 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
34040 issue.
34041
34042 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
34043 (efi_wrap_10): New function.
34044
34045 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
34046
34047 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
34048 MB/MBP model (NV chipset).
34049 (devdata_devs): Add devpath_5 to the list.
34050
34051 * load/i386/efi/linux.c (video_base): Remove variable.
34052 (RGB_MASK): New macro.
34053 (RGB_MAGIC): Likewise.
34054 (LINE_MIN): Likewise.
34055 (LINE_MAX): Likewise.
34056 (FBTEST_STEP): Likewise.
34057 (FBTEST_COUNT): Likewise.
34058 (fb_list): New variable.
34059 (grub_find_video_card): Remove function.
34060 (find_framebuf): New function.
34061 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
34062 line length.
34063
34064 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
34065 problem for x86_64.
34066
74b21bee 340672009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
34068
34069 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
34070
34071 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
34072 coding tool name.
34073
a455f472 340742009-02-22 Robert Millan <rmh@aybabtu.com>
34075
34076 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
34077 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
34078 in our relocation, instead of using it directly from heap. Also
34079 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
34080
6374daf3 340812009-02-21 Robert Millan <rmh@aybabtu.com>
34082
34083 Implement USB keyboard support (based on patch by Marco Gerards)
34084
34085 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
34086 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
34087 (usb_keyboard_mod_LDFLAGS): New variables.
34088
34089 * term/usb_keyboard.c: New file.
34090
8fa4ea70 340912009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
34092
34093 Corrected wrong declaration
34094
34095 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
34096
353976ac 340972009-02-14 Christian Franke <franke@computer.org>
34098
34099 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
34100 (grub_lspci_iter): Print class code and programming interface byte.
34101
6aa1169b 341022009-02-14 Christian Franke <franke@computer.org>
34103
34104 * gendistlist.sh: Ignore `.svn' directories.
34105
265372ca 341062009-02-14 Felix Zielcke <fzielcke@z-51.de>
34107
34108 * fs/fat.c: Add 2009 to Copyright line.
34109
9ff516f3 341102009-02-14 Christian Franke <franke@computer.org>
34111
34112 * commands/hdparm.c: New file. Provides `hdparm' command
34113 which sends ATA commands via grub_disk_ata_pass_through ().
34114
34115 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
34116
34117 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
34118 and <grub/cpu/io.h> to include/grub/ata.h.
34119 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
34120 (GRUB_CDROM_SECTOR_SIZE): Remove.
34121 (GRUB_ATA_*): Move to include/grub/ata.h.
34122 (GRUB_ATAPI_*): Likewise.
34123 (enum grub_ata_commands): Likewise.
34124 (enum grub_ata_timeout_milliseconds): Likewise.
34125 (struct grub_ata_device): Likewise.
34126 (grub_ata_regset): Likewise.
34127 (grub_ata_regget): Likewise.
34128 (grub_ata_regset2): Likewise.
34129 (grub_ata_regget2): Likewise.
34130 (grub_ata_check_ready): Likewise.
34131 (grub_ata_wait_not_busy): Remove static, exported in
34132 include/grub/ata.h.
34133 (grub_ata_wait_drq): Likewise.
34134 (grub_ata_pio_read): Likewise.
34135
34136 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
34137 function for hdparm.mod.
34138
34139 * include/grub/ata.h: New file, contains declarations from
34140 disk/ata.c.
34141 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
34142
34143 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
34144 (grub_disk_ata_pass_through): New exported variable.
34145
34146 * kern/disk.c (grub_disk_ata_pass_through): New variable.
34147
772e23da 341482009-02-13 Colin D Bennett <colin@gibibit.com>
34149
34150 Support multiple fallback entries, and provide an API to support
34151 executing default+fallback menu entries. Renamed the `terminal' menu
34152 viewer to `text'.
34153
34154 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
34155 variable declaration.
34156 (grub_menu_execute_callback): New structure declaration.
34157 (grub_menu_execute_callback_t): New typedef.
34158 (grub_menu_execute_with_fallback): New function declaration.
34159 (grub_menu_get_entry): Likewise.
34160 (grub_menu_get_timeout): Likewise.
34161 (grub_menu_set_timeout): Likewise.
34162
34163 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
34164
34165 * normal/menu.c (grub_wait_after_message): Moved to
34166 `normal/menu_text.c'.
34167 (draw_border): Likewise.
34168 (print_message): Likewise.
34169 (print_entry): Likewise.
34170 (print_entries): Likewise.
34171 (grub_menu_init_page): Likewise.
34172 (get_entry_number): Likewise.
34173 (print_timeout): Likewise.
34174 (run_menu): Likewise.
34175 (grub_menu_execute_entry): Likewise.
34176 (show_text_menu): Likewise.
34177 (get_and_remove_first_entry_number): New function.
34178 (grub_menu_execute_with_fallback): Likewise.
34179 (get_entry): Renamed to ...
34180 (grub_menu_get_entry): .. this and made it global.
34181 (get_timeout): Renamed to ...
34182 (grub_menu_get_timeout): ... this and made it global.
34183 (set_timeout): Renamed to ...
34184 (grub_menu_set_timeout): ... this and made it global.
34185 (grub_normal_terminal_menu_viewer): Renamed to ...
34186 (grub_normal_text_menu_viewer): ... this.
34187
34188 * normal/menu_text.c: New file. Extracted text-menu-specific code
34189 from normal/menu.c.
34190
34191 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
34192 (normal_mod_SOURCES): Likewise.
34193
34194 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34195 (normal_mod_SOURCES): Likewise.
34196
34197 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34198 (normal_mod_SOURCES): Likewise.
34199
34200 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
34201 (normal_mod_SOURCES): Likewise.
34202
34203 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34204 (normal_mod_SOURCES): Likewise.
34205
34206 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34207 (normal_mod_SOURCES): Likewise.
34208
34209 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34210 (normal_mod_SOURCES): Likewise.
34211
16ac430e 342122009-02-11 Robert Millan <rmh@aybabtu.com>
34213
34214 * util/grub.d/00_header.in: Update old reference to `font' command.
34215
06ff20fc 342162009-02-10 Felix Zielcke <fzielcke@z-51.de>
34217
34218 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
34219
34220 Based on patch from Javier Martín.
34221
96da9407 342222009-02-09 Felix Zielcke <fzielcke@z-51.de>
34223
34224 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 34225 to avoid false positives with FAT.
96da9407 34226 (grub_fstest_SOURCES): Likewise.
34227 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34228 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34230 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34231 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34232 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34233
6dca6fe4 342342009-02-09 Felix Zielcke <fzielcke@z-51.de>
34235
06ff20fc 34236 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 34237 bpb.version_specific.fat12_or_fat16.fstype and
34238 bpb.version_specific.fat32.fstype.
34239
2550c62f 342402009-02-08 Robert Millan <rmh@aybabtu.com>
34241
be110b30 34242 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 34243
56978920 342442009-02-08 Robert Millan <rmh@aybabtu.com>
34245
34246 * Makefile.in (host_os, host_cpu): New variables.
34247 (target_os): Remove. Update all users.
34248
d64399b5 342492009-02-08 Marco Gerards <marco@gnu.org>
34250
34251 * Makefile.in (enable_grub_emu_usb): New variable.
34252 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
34253 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
34254 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
34255 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
34256 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
34257 `usbtest.mod' and `usbms.mod'.
34258 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
34259 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
34260 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
34261 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
34262 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
34263 variables.
34264
34265 * disk/usbms.c: New file.
34266
34267 * include/grub/usb.h: Likewise.
34268
34269 * include/grub/usbtrans.h: Likewise.
34270
34271 * include/grub/usbdesc.h: Likewise.
34272
34273 * bus/usb/usbtrans.c: Likewise.
34274
34275 * bus/usb/ohci.c: Likewise.
34276
34277 * bus/usb/uhci.c: Likewise.
34278
34279 * bus/usb/usbhub.c: Likewise.
34280
34281 * bus/usb/usb.c: Likewise.
34282
34283 * commands/usbtest.c: Likewise.
34284
34285 * util/usb.c: Likewise.
50fb7002 34286
d64399b5 34287 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
34288
34289 * configure.ac: Test for libusb presence.
50fb7002 34290
d64399b5 34291 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
34292
2b40d6bb 342932009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
34294
34295 * kern/mm.c: Add more comments.
34296
73a4ce81 342972009-02-08 Robert Millan <rmh@aybabtu.com>
34298
34299 Patch from Javier Martín.
34300 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
34301 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
34302
f821ce59 343032009-02-08 Robert Millan <rmh@aybabtu.com>
34304
34305 * fs/cpio.c: Split tar functionality to ...
34306 * fs/tar.c: ... here (new file). Update all users.
34307
aebfc4b0 343082009-02-07 Robert Millan <rmh@aybabtu.com>
34309
34310 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
34311 backward-incompatible features.
34312
34313 Based on patch from Javier Martín, with some adjustments.
34314
50fb7002 343152009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 34316
34317 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
34318
0bb5115e 343192009-02-07 Robert Millan <rmh@aybabtu.com>
34320
34321 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34322 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34323 after the RAID stuff.
34324
38a0f8e7 343252009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34326
50fb7002 34327 Fixes problem when running vbetest command as reported by
38a0f8e7 34328 Vladimir Serbinenko <phcoder@gmail.com>.
34329
34330 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34331
3143cc1c 343322009-02-04 Felix Zielcke <fzielcke@z-51.de>
34333
34334 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34335 /dev/md/NpN style mdraid devices.
34336
9cba6fce 343372009-02-03 Felix Zielcke <fzielcke@z-51.de>
34338
34339 * util/unifont2pff.rb: Remove.
34340
e507a2c1 343412009-02-03 Felix Zielcke <fzielcke@z-51.de>
34342
34343 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34344 `#'.
34345
d2c2b4cd 343462009-02-03 Felix Zielcke <fzielcke@z-51.de>
34347
34348 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34349 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34350 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34351 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34352 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34353 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34354 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34355
b4315fb0 343562009-02-02 Christian Franke <franke@computer.org>
34357
34358 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34359
de3aa260 343602009-02-01 Felix Zielcke <fzielcke@z-51.de>
34361
7c3ff286 34362 * INSTALL: Note that we now require at least autoconf 2.59 and
34363 that LZO is optional.
de3aa260 34364
825a182b 343652009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34366
34367 Base on patch on bug #24154 created by Tomas Tintera
34368 <trosos@seznam.cz>.
34369
34370 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34371
a69ef770 343722009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34373
7c3ff286 34374 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 34375 <bero@arklinux.org>.
34376
34377 * normal/parser.y (script_init): Add missing semicolon.
34378
6fa42fa6 343792009-01-31 Colin D Bennett <colin@gibibit.com>
34380
7c3ff286 34381 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 34382 (free_menu_entry_classes): Added.
34383 (grub_normal_menu_addentry): Added class property handling.
34384 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34385 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34386
34387 * normal/menu_viewer.c: New file.
34388
34389 * normal/menu.c (run_menu_entry): Renamed to ...
34390 (grub_menu_execute_entry): ... this and made it as global.
34391 (grub_menu_run): Renamed to ...
34392 (show_text_menu): ... this and made it local.
34393 (show_text_menu): Adapt to new function names.
34394 (grub_normal_terminal_menu_viewer): New global variable.
34395
34396 * include/grub/menu.h: New file.
34397
34398 * include/grub/menu_viewer.h: New file.
34399
34400 * include/grub/normal.h: Added include to grub/menu.h.
34401 (grub_menu_entry): Moved to include/grub/menu.h.
34402 (grub_menu_entry_t): Likewise.
34403 (grub_menu): Likewise.
34404 (grub_menu_t): Likewise.
34405 (grub_normal_terminal_menu_viewer): Added.
34406 (grub_menu_execute_entry): Likewise.
34407 (grub_menu_run): Removed.
34408
34409 * DISTLIST: Added include/grub/menu.h.
34410 Added include/grub/menu_viewer.h.
34411 Added normal/menu_viewer.c.
34412
344132009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34414
34415 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34416 arglist for menutitle arguments.
34417
34418 * normal/main.c (grub_normal_menu_addentry): Likewise.
34419
34420 * normal/parser.y (menuentry): Likewise.
34421
34422 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34423
34424 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34425 (grub_script_create_cmdmenu): Likewise.
34426
34427 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34428
34429 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34430 changes.
34431
34432 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34433
34434 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34435
34436 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34437
34438 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34439
34440 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34441
34442 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34443
56192c23 344442009-01-30 Christian Franke <franke@computer.org>
34445
34446 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34447 in option help text.
34448
d72521b3 344492009-01-27 Pavel Roskin <proski@gnu.org>
34450
34451 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34452
994b5e84 344532009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34454
34455 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34456
34457 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34458
34459 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34460 unregister function.
34461
6a7eab2c 344622009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34463
34464 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34465
34466 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34467
34468 * util/grub-mkfont.c (usage): Fix typo.
34469
34470 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34471
1806b56e 344722009-01-26 Daniel Mierswa <impulze@impulze.org>
34473
3fb18f09 34474 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34475
336e1fb9 34476 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34477
1806b56e 34478 * kern/misc.c (grub_strcasecmp): New function.
34479 (grub_strcasecmp): Use grub_size_t instead of int for length.
34480 Fix return value.
34481 * include/grub/misc.h: Update function prototypes.
34482
580b2a0f 344832009-01-26 Robert Millan <rmh@aybabtu.com>
34484
34485 * configure.ac: Fix cross-compilation check.
ef257b36 34486
d31c24f1 344872009-01-22 Christian Franke <franke@computer.org>
34488
34489 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34490 (precision) digit string. Allow `.format2' without `format1' (width).
34491 Limit input chars for `%s' output to `format2' if specified. This is
34492 compatible with standard printf ().
34493
3138b44c 344942009-01-22 Christian Franke <franke@computer.org>
34495
34496 * disk/ata.c (grub_ata_wait_status): Replace by ...
34497 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34498 other status bits may be invalid while BSY is asserted.
34499 (grub_ata_check_ready): New function.
34500 (grub_ata_cmd): Removed.
34501 (grub_ata_wait_drq): New function.
34502 (grub_ata_strncpy): Remove inline.
34503 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34504 and error check now done by grub_ata_wait_drq ().
34505 (grub_ata_pio_write): Likewise.
34506 (grub_atapi_identify): Set DEV before check for !BSY. Use
34507 grub_ata_wait_drq () to wait for data.
34508 (grub_ata_device_initialize): Add status register check to
34509 detect missing SATA slave devices. Add debug messages.
34510 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34511 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34512 transfer loop by grub_ata_pio_write ().
34513 (grub_ata_identify): Set DEV before check for !BSY. Use
34514 grub_ata_wait_drq () to wait for data.
ef257b36 34515 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 34516 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34517 read/write in one loop. Fix invalid command on write. Fix incomplete
34518 command on (size % batch) == 0. Add missing error check after write of
34519 last block. Add debug messages.
34520 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34521
59a64ef6 345222009-01-19 Christian Franke <franke@computer.org>
34523
34524 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34525 (GRUB_ATAPI_IREASON_*): Likewise.
34526 (grub_ata_pio_write): Fix timeout error return.
34527 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34528 (grub_atapi_wait_drq): New function.
34529 (grub_atapi_packet): New parameter `size'.
34530 Use grub_atapi_wait_drq () and direct write instead of
34531 grub_ata_pio_write ().
34532 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34533 reads the number of bytes requested by the device for each DRQ
34534 assertion.
34535 (grub_atapi_write): Remove old implementation, return not
34536 implemented instead.
34537
1cfe20b3 345382009-01-19 Christian Franke <franke@computer.org>
34539
34540 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34541 of 512 to calculate data size.
34542 (grub_scsi_read12): Likewise.
34543 (grub_scsi_write10): Likewise.
34544 (grub_scsi_write12): Likewise.
34545 (grub_scsi_read): Adjust size according to blocksize.
34546 Add checks for invalid blocksize and unaligned transfer.
34547
bee5fe5d 345482009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34549
34550 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34551
ef257b36 34552 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 34553 width glyphs.
34554
3e643f8c 345552009-01-19 Robert Millan <rmh@aybabtu.com>
34556
34557 * config.guess: Update to latest version from config git.
34558 * config.sub: Likewise.
34559
4fa80998 345602009-01-17 Felix Zielcke <fzielcke@z-51.de>
34561
34562 * Makefile.in: Change font compilation to use new grub-mkfont instead
34563 of java version.
34564
34565 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34566 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34567 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34568 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34569 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34570 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34571 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34572 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34573 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34574
7086085b 345752009-01-16 Christian Franke <franke@computer.org>
34576
34577 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34578 (enum grub_ata_timeout_milliseconds): New enum.
34579 (grub_ata_wait_status): Add parameter milliseconds.
34580 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34581 recovery from timed-out commands.
34582 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34583 return grub_errno instead of REG_ERROR.
34584 (grub_ata_pio_write): Add parameter milliseconds.
34585 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34586 Pass milliseconds to grub_ata_wait_status () and
34587 grub_ata_pio_read ().
34588 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34589 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34590 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34591 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34592 It is not suitable for device detection, because DEV bit is ignored,
34593 the command may run too long, and not all devices set the signature
34594 properly.
34595 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34596 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34597 Fix device selection, DEV bit must be set first to address the registers
34598 of the correct device.
34599 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34600 grub_ata_pio_read/write ().
34601 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34602 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34603
4a412913 346042009-01-13 Carles Pina i Estany <carles@pina.cat>
34605
34606 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34607
7795c55e 346082009-01-13 Bean <bean123ch@gmail.com>
d913988c 34609
34610 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34611
7795c55e 346122009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 34613
34614 * Makefile.in: (enable_grub_mkfont): New variable.
34615 (freetype_cflags): Likewise.
34616 (freetype_libs): Likewise.
34617
34618 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34619 (grub_mkfont_SOURCES): New variable.
34620 (grub_mkfont_CFLAGS): Likewise.
34621 (grub_mkfont_LDFLAGS): Likewise.
34622
34623 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34624 library if `--enable-grub-mkfont' is requested.
34625 (enable_grub_mkfont): New variable.
34626 (freetype_cflags): Likewise.
34627 (freetype_libs): Likewise.
34628
34629 * util/grub-mkfont.c: New file.
34630
093af1fe 346312009-01-12 Christian Franke <franke@computer.org>
34632
34633 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34634 mode check. Fix setting of compat_use[].
34635
f36cc108 346362009-01-10 Robert Millan <rmh@aybabtu.com>
34637
34638 Update a few copyright years which we forgot to do in 2008 (only for
34639 files whose changes made in 2008 were copyright-significant)
34640
34641 * Makefile.in: Add 2008 to Copyright line.
34642 * disk/ieee1275/ofdisk.c: Likewise.
34643 * disk/efi/efidisk.c: Likewise.
34644 * kern/dl.c: Likewise.
34645 * kern/sparc64/ieee1275/init.c: Likewise.
34646 * kern/mm.c: Likewise.
34647 * kern/efi/mm.c: Likewise.
34648 * boot/i386/pc/boot.S: Likewise.
34649 * genfslist.sh: Likewise.
34650 * fs/iso9660.c: Likewise.
34651 * fs/hfs.c: Likewise.
34652 * fs/jfs.c: Likewise.
34653 * fs/minix.c: Likewise.
34654 * fs/ufs.c: Likewise.
34655 * gensymlist.sh.in: Likewise.
34656 * genkernsyms.sh.in: Likewise.
34657 * include/grub/misc.h: Likewise.
34658 * include/grub/types.h: Likewise.
34659 * include/grub/symbol.h: Likewise.
34660 * include/grub/elf.h: Likewise.
34661 * include/grub/kernel.h: Likewise.
34662 * include/grub/disk.h: Likewise.
34663 * include/grub/dl.h: Likewise.
34664 * include/grub/i386/linux.h: Likewise.
34665 * include/grub/i386/pc/biosdisk.h: Likewise.
34666 * include/grub/efi/api.h: Likewise.
34667 * include/grub/efi/pe32.h: Likewise.
34668 * include/grub/util/misc.h: Likewise.
34669 * normal/execute.c: Likewise.
34670 * normal/arg.c: Likewise.
34671 * normal/completion.c: Likewise.
34672 * normal/lexer.c: Likewise.
34673 * normal/parser.y: Likewise.
34674 * normal/misc.c: Likewise.
34675 * commands/i386/pc/vbeinfo.c: Likewise.
34676 * commands/hexdump.c: Likewise.
34677 * commands/terminal.c: Likewise.
34678 * commands/ls.c: Likewise.
34679 * commands/help.c: Likewise.
34680 * partmap/pc.c: Likewise.
34681 * loader/efi/chainloader.c: Likewise.
34682 * loader/multiboot_loader.c: Likewise.
34683 * loader/i386/pc/multiboot2.c: Likewise.
34684 * term/efi/console.c: Likewise.
34685 * term/i386/pc/serial.c: Likewise.
34686 * util/lvm.c: Likewise.
34687 * util/console.c: Likewise.
34688 * util/i386/efi/grub-mkimage.c: Likewise.
34689 * util/raid.c: Likewise.
34690
7f02114b 346912009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34692
34693 * commands/videotest.c: Removed include to grub/machine/memory.h.
34694
34695 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34696 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34697 (video_mod_SOURCES): Removed.
34698 (video_mod_CFLAGS): Likewise.
34699 (video_mod_LDFLAGS): Likewise.
34700 (gfxterm_mod_SOURCES): Likewise.
34701 (gfxterm_mod_CFLAGS): Likewise.
34702 (gfxterm_mod_LDFLAGS): Likewise.
34703 (videotest_mod_SOURCES): Likewise.
34704 (videotest_mod_CFLAGS): Likewise.
34705 (videotest_mod_LDFLAGS): Likewise.
34706 (bitmap_mod_SOURCES): Likewise.
34707 (bitmap_mod_CFLAGS): Likewise.
34708 (bitmap_mod_LDFLAGS): Likewise.
34709 (tga_mod_SOURCES): Likewise.
34710 (tga_mod_CFLAGS): Likewise.
34711 (tga_mod_LDFLAGS): Likewise.
34712 (jpeg_mod_SOURCES): Likewise.
34713 (jpeg_mod_CFLAGS): Likewise.
34714 (jpeg_mod_LDFLAGS): Likewise.
34715 (png_mod_SOURCES): Likewise.
34716 (png_mod_CFLAGS): Likewise.
34717 (png_mod_LDFLAGS): Likewise.
34718
34719 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34720 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34721 (video_mod_SOURCES): Added.
34722 (video_mod_CFLAGS): Likewise.
34723 (video_mod_LDFLAGS): Likewise.
34724 (videotest_mod_SOURCES): Likewise.
34725 (videotest_mod_CFLAGS): Likewise.
34726 (videotest_mod_LDFLAGS): Likewise.
34727 (bitmap_mod_SOURCES): Likewise.
34728 (bitmap_mod_CFLAGS): Likewise.
34729 (bitmap_mod_LDFLAGS): Likewise.
34730 (tga_mod_SOURCES): Likewise.
34731 (tga_mod_CFLAGS): Likewise.
34732 (tga_mod_LDFLAGS): Likewise.
34733 (jpeg_mod_SOURCES): Likewise.
34734 (jpeg_mod_CFLAGS): Likewise.
34735 (jpeg_mod_LDFLAGS): Likewise.
34736 (png_mod_SOURCES): Likewise.
34737 (png_mod_CFLAGS): Likewise.
34738 (png_mod_LDFLAGS): Likewise.
34739 (gfxterm_mod_SOURCES): Likewise.
34740 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 34741 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 34742
34743 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34744 grub/machine/console.h.
34745
644fff97 347462009-01-04 Jerone Young <jerone@gmail.com>
34747
34748 Make on screen instructions clearer
34749
34750 Based on patch created by Jidanni <jidanni@jidanni.org>
34751
34752 * normal/menu.c: print clearer instructions on the screen
34753
1e901a75 347542009-01-02 Colin D Bennett <colin@gibibit.com>
34755
34756 New font engine.
34c44600 34757
1e901a75 34758 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34759 build system and fixed gfxterm.c to work with different sized fonts.
34760
34761 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 34762
1e901a75 34763 * configure: Re-generated.
34c44600 34764
1e901a75 34765 * DISTLIST: Removed font/manager.c.
34766 Added font/font.c.
34767 Added font/font_cmd.c.
34c44600 34768
1e901a75 34769 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34770 compilation.
34c44600 34771
1e901a75 34772 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 34773
34774 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 34775
34776 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 34777
1e901a75 34778 * normal/menu.c: Likewise.
34c44600 34779
1e901a75 34780 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34781 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 34782
1e901a75 34783 * include/grub/font.h: Replaced with new file.
34c44600 34784
1e901a75 34785 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34786 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34787 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34788 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34789 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 34790 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 34791 fg_red, fg_green, fg_blue, fg_alpha.
34792 (grub_video_adapter): Removed blit_glyph.
34c44600 34793 (grub_video_blit_glyph): Removed.
34794
1e901a75 34795 * font/manager.c: Removed file.
34c44600 34796
34797 * font/font.c: New file.
34798
1e901a75 34799 * font/font_cmd.c: Likewise.
34c44600 34800
1e901a75 34801 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 34802
1e901a75 34803 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34804 (grub_video_vbe_map_rgba): Likewise.
34805 (grub_video_vbe_unmap_color_int): Likewise.
34806 (grub_video_vbe_blit_glyph): Removed.
34807 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 34808
1e901a75 34809 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34810 (get_pixel): Likewise.
34c44600 34811 (set_pixel): Likewise.
34812
1e901a75 34813 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 34814
1e901a75 34815 * term/gfxterm.c: Adapted to new font engine.
34c44600 34816
1e901a75 34817 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 34818
1e901a75 34819 * term/i386/pc/vga.c: Likewise.
34c44600 34820
1e901a75 34821 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 34822
1e901a75 34823 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 34824
1e901a75 34825 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34826
1e901a75 34827 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34828
1e901a75 34829 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 34830
1e901a75 34831 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 34832
1e901a75 34833 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 34834
1e901a75 34835 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 34836
1e901a75 34837 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34838
34839 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 34840
1e901a75 34841 * util/grub-mkconfig_lib.in: Changed font extension.
34842
278922e8 348432008-12-28 Felix Zielcke <fzielcke@z-51.de>
34844
34845 * util/getroot.c (grub_util_get_grub_dev): Add support for
34846 /dev/md/dNNpNN style partitionable mdraid devices.
34847
3ced05cf 348482008-12-12 Alex Smith <alex@alex-smith.me.uk>
34849
34850 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34851 at a time limit of the PXE TFTP API correctly.
34852 (grub_pxefs_close): Likewise.
34853
7fd0ee30 348542008-11-29 Robert Millan <rmh@aybabtu.com>
34855
34c44600 34856 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 34857 grub_ata_device_initialize() calls.
34858
34c44600 348592008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 34860
34861 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34862 iteration failed.
34863 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34864
89313780 348652008-11-28 Robert Millan <rmh@aybabtu.com>
34866
34867 Fix build on powerpc-ieee1275. Based on patch created by
34868 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34869 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34870 `kern/ieee1275/mmap.c'.
34871 * include/grub/powerpc/ieee1275/memory.h: New file.
34872
15257703 34873 Provide grub-install on coreboot.
34874 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34875 (grub_install_SOURCES): New variable.
34876 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34877 usable on coreboot.
34878
9fc5388a 348792008-11-25 Felix Zielcke <fzielcke@z-51.de>
34880
34881 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34882 to `grub_term_input_t'.
34883 (grub_term_get_current_output): Change return type to
34884 `grub_term_output_t'.
34885
bc3a2f31 348862008-11-22 Robert Millan <rmh@aybabtu.com>
34887
34c44600 34888 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 34889 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34890 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34891 grub_vga_text_cls().
34892
80fc88f2 34893 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 34894 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 34895
cbf36fd3 34896 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34897 to 0x200000 (avoids trouble with some OFW implementations, and matches
34898 with the one in Yaboot).
34899 Reported by Manoel Abranches
34900
73e8e268 349012008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 34902
34903 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34904 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34905
73e8e268 34906 * util/grub-mkconfig_lib.in (grub_warn): New function.
34907 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34908 warnings, to obtain consistent formatting.
34909 * util/grub.d/00_header.in: Likewise.
34910 * util/update-grub_lib.in: Likewise.
34911
e94045a1 34912 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 34913 Move comment text to `#error' stanza.
e94045a1 34914
79d29fd7 34915 Harmonize ieee1275's grub_available_iterate() with the generic
34916 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34917 build problem on i386-ieee1275):
34918 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34919 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34920 parameter `type'. Update all users of this function.
34921 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34922 `kern/ieee1275/mmap.c'.
34923 * kern/ieee1275/init.c
34924 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34925 with ...
34926 (grub_machine_mmap_iterate): ... this.
34927 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34928 return type to `grub_err_t'. Update all implementations of this
34929 function prototype.
34930 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34931 Likewise.
34932
60d6b16e 34933 Add `lsmmap' command (lists firmware-provided memory map):
34934 * commands/lsmmap.c: New file.
34935 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34936 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34937 variables.
34938 * conf/powerpc-ieee1275.rmk: Likewise.
34939 * conf/i386-coreboot.rmk: Likewise.
34940 * conf/i386-ieee1275.rmk: Likewise.
34941
ebaaf49b 349422008-11-19 Robert Millan <rmh@aybabtu.com>
34943
34944 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 34945 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34946 constraints to initrd allocation (based on code from
34947 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34948 for Linux to find it.
ebaaf49b 34949
dfab719f 349502008-11-14 Robert Millan <rmh@aybabtu.com>
34951
34952 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34953 order to cope with duplicate slashes.
34954
10fc3eb9 349552008-11-14 Robert Millan <rmh@aybabtu.com>
34956
34957 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34958 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34959 don't want to mess with lower memory, because it is used in the Linux
34960 loader.
34961
34962 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 34963 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 34964 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34965 is in our heap (probably as a result of it being corrupted during
2f2a3442 34966 decompression). Add #error instance with comment to explain why this
34967 loader isn't currently usable on PC/BIOS.
10fc3eb9 34968
e2e07847 349692008-11-14 Robert Millan <rmh@aybabtu.com>
34970
34971 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 34972 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 34973
fe8e8d69 349742008-11-12 Robert Millan <rmh@aybabtu.com>
34975
34976 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34977
34978 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34979 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34980 from here ...
34981 * include/grub/i386/pc/memory.h: ... to here.
34982
976b07d0 349832008-11-12 Robert Millan <rmh@aybabtu.com>
34984
34985 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34986 split).
34987
34988 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34989 (grub_console_cur_color, grub_console_real_putchar)
34990 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34991 (grub_console_setcolorstate, grub_console_setcolor)
34992 (grub_console_getcolor): Move from here ...
34993 * include/grub/i386/vga_common.h: ... to here (new file).
34994
34995 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34996 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34997 `<grub/i386/io.h>'.
34998 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34999 `<grub/i386/vga_common.h>'.
35000
76679cd3 350012008-11-12 Robert Millan <rmh@aybabtu.com>
35002
35003 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
35004 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
35005 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
35006 variables.
35007 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35008 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
35009
35010 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
35011 grub_console_init() with call to grub_vga_text_init().
35012 (grub_machine_fini): Replace call to
35013 grub_console_fini() with call to grub_vga_text_fini() and
35014 grub_at_keyboard_fini().
35015
35016 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
35017 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35018 (grub_console_setcolorstate, grub_console_setcolor)
35019 (grub_console_getcolor): New function prototypes.
35020
35021 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
35022 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
35023 (grub_vga_text_setcursor): Static-ize.
35024 (grub_vga_text_term): New structure.
35025 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
35026
35027 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
35028 (grub_console_cur_color, grub_console_standard_color)
35029 (grub_console_normal_color, grub_console_highlight_color)
35030 (map_char, grub_console_putchar, grub_console_getcharwidth)
35031 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
35032 (grub_console_getcolor): Move from here ...
35033 * term/i386/vga_common.c: ... to here (same function names).
35034
95b841d3 350352008-11-12 Robert Millan <rmh@aybabtu.com>
35036
35037 Use newly-added Multiboot support in coreboot.
35038
35039 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35040 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
35041
35042 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
35043 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
35044 (codestart): Store the MBI in `startup_multiboot_info' when we're
35045 being loaded using Multiboot.
35046
35047 * kern/i386/coreboot/init.c (grub_machine_init): Move
35048 grub_at_keyboard_init() call to beginning of function (useful for
35049 debugging). Call grub_machine_mmap_init() before attempting to use
35050 grub_machine_mmap_iterate().
35051 (grub_lower_mem, grub_upper_mem): Move from here ...
35052 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
35053 here (new file).
35054
35055 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
35056 function prototype.
35057
761ca975 350582008-11-12 Robert Millan <rmh@aybabtu.com>
35059
35060 Fix a regression introduced by the at_keyboard.mod split. Because
35061 some terminals are default on some platforms and non-default on
35062 others, the first terminal being registered determines which is
35063 going to be default.
35064
35065 * kern/term.c (grub_term_register_input): If this is the first
35066 terminal being registered, set it as the current one.
35067 (grub_term_register_output): Likewise.
35068
35069 * term/efi/console.c (grub_console_init): Do not call
35070 grub_term_set_current_output() or grub_term_set_current_input().
35071 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
35072 * term/i386/pc/console.c (grub_console_init): Likewise.
35073 (grub_console_fini): Do not call grub_term_set_current_input()
35074 (but leave grub_term_set_current_output() to restore text mode).
35075
6c529df7 350762008-11-10 Robert Millan <rmh@aybabtu.com>
35077
35078 * util/grub.d/00_header.in: Add backward compatibility check for
35079 versions of terminal.mod that don't understand `terminal_input' or
35080 `terminal_output'.
35081
132e4113 350822008-11-09 Robert Millan <rmh@aybabtu.com>
35083
35084 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
35085 `terminal_input' / `terminal_output', not `terminal'.
35086
ac293d50 350872008-11-08 Robert Millan <rmh@aybabtu.com>
35088
35089 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 35090 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 35091
0025933a 350922008-11-08 Robert Millan <rmh@aybabtu.com>
35093
35094 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 35095 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 35096 members. Update all users.
35097 * util/console.c (grub_ncurses_term): Split in ...
35098 (grub_ncurses_term_input): ... this, and ...
35099 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 35100 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 35101
37c86336 351022008-11-08 Robert Millan <rmh@aybabtu.com>
35103
35104 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
35105 (PKGDATA): Add $(pkgdata_SRCDIR).
35106 (pkglib_BUILDDIR): New variable.
35107 (pkgdata_SRCDIR): New variable.
35108 (build_env.mk): New target.
35109 (include_DATA): New variable.
35110 (install-local): Install $(include_DATA) files in $(includedir).
35111
b6c15a2d 351122008-11-07 Pavel Roskin <proski@gnu.org>
35113
d99d46f1 35114 * gendistlist.sh: Use C locale for sorting to ensure consistent
35115 output on all systems.
35116
b6c15a2d 35117 * util/grub.d/00_header.in: Remove incorrect space before
35118 "serial".
35119
c32ee8c9 351202008-11-07 Robert Millan <rmh@aybabtu.com>
35121
35122 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
35123 per specification.
35124 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
35125 * loader/multiboot_loader.c (find_multi_boot2_header): New function
35126 (based on find_multi_boot1_header).
35127 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
35128 using find_multi_boot2_header(), and abort if neither Multiboot or
35129 Multiboot headers were found.
35130
651c29b7 351312008-11-07 Robert Millan <rmh@aybabtu.com>
35132
35133 Modularize at_keyboard.mod:
35134
35135 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
35136 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
35137 (at_keyboard_mod_LDFLAGS): New variables.
35138
35139 Actual terminal split:
35140
35141 * include/grub/term.h (struct grub_term): Split in ...
35142 (struct grub_term_input): ... this, and ...
35143 (struct grub_term_output): ... this. Update all users.
35144 (grub_term_set_current): Split in ...
35145 (grub_term_set_current_input): ... this, and ...
35146 (grub_term_set_current_output): ... this.
35147 (grub_term_get_current): Split in ...
35148 (grub_term_get_current_input): ... this, and ...
35149 (grub_term_get_current_output): ... this.
35150 (grub_term_register): Split in ...
35151 (grub_term_register_input): ... this, and ...
35152 (grub_term_register_output): ... this.
35153 (grub_term_unregister): Split in ...
35154 (grub_term_unregister_input): ... this, and ...
35155 (grub_term_unregister_output): ... this.
35156 (grub_term_iterate): Split in ...
35157 (grub_term_iterate_input): ... this, and ...
35158 (grub_term_iterate_output): ... this.
35159
35160 * kern/term.c (grub_term_list): Split in ...
35161 (grub_term_list_input): ... this, and ...
35162 (grub_term_list_output): ... this. Update all users.
35163 (grub_cur_term): Split in ...
35164 (grub_cur_term_input): ... this, and ...
35165 (grub_cur_term_output): ... this. Update all users.
35166 (grub_term_set_current): Split in ...
35167 (grub_term_set_current_input): ... this, and ...
35168 (grub_term_set_current_output): ... this.
35169 (grub_term_get_current): Split in ...
35170 (grub_term_get_current_input): ... this, and ...
35171 (grub_term_get_current_output): ... this.
35172 (grub_term_register): Split in ...
35173 (grub_term_register_input): ... this, and ...
35174 (grub_term_register_output): ... this.
35175 (grub_term_unregister): Split in ...
35176 (grub_term_unregister_input): ... this, and ...
35177 (grub_term_unregister_output): ... this.
35178 (grub_term_iterate): Split in ...
35179 (grub_term_iterate_input): ... this, and ...
35180 (grub_term_iterate_output): ... this.
35181
35182 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
35183 a check for input and one for output (and only attempt to get keys
35184 from user when input works).
35185
35186 * util/grub-probe.c (grub_term_get_current): Split in ...
35187 (grub_term_get_current_input): ... this, and ...
35188 (grub_term_get_current_output): ... this.
35189 * util/grub-fstest.c: Likewise.
35190 * util/i386/pc/grub-setup.c: Likewise.
35191 * util/grub-editenv.c: Likewise.
35192
35193 Portability adjustments:
35194
35195 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
35196 `term/i386/pc/at_keyboard.c'.
35197 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
35198 grub_keyboard_controller_init() (now handled by terminal .init).
35199 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
35200 grub_at_keyboard_init().
35201 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
35202 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
35203 at_keyboard.mod via input terminal interface).
35204 * include/grub/i386/coreboot/console.h: Convert into a stub for
35205 `<grub/i386/pc/console.h>'.
35206
35207 Migrate full terminals to new API:
35208
35209 * term/efi/console.c (grub_console_term): Split into ...
35210 (grub_console_term_input): ... this, and ...
35211 (grub_console_term_output): ... this. Update all users.
35212 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
35213 (grub_ofconsole_init): Split into ...
35214 (grub_ofconsole_init_input): ... this, and ...
35215 (grub_ofconsole_init_output): ... this.
35216 (grub_ofconsole_term): Split into ...
35217 (grub_ofconsole_term_input): ... this, and ...
35218 (grub_ofconsole_term_output): ... this. Update all users.
35219 * term/i386/pc/serial.c (grub_serial_term): Split into ...
35220 (grub_serial_term_input): ... this, and ...
35221 (grub_serial_term_output): ... this. Update all users.
35222 * term/i386/pc/console.c (grub_console_term): Split into ...
35223 (grub_console_term_input): ... this, and ...
35224 (grub_console_term_output): ... this. Update all users.
35225 (grub_console_term_input): Only enable it on PC/BIOS platform.
35226 (grub_console_init): Remove grub_keyboard_controller_init() call.
35227
35228 Migrate input terminals to new API:
35229
35230 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
35231 `i386' and `i386/pc' to enable build on x86_64 (this driver is
35232 i386-specific anyway).
35233 (grub_console_checkkey): Rename to ...
35234 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
35235 users.
35236 (grub_keyboard_controller_orig): New variable.
35237 (grub_console_getkey): Rename to ...
35238 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
35239 users.
35240 (grub_keyboard_controller_init): Static-ize. Save original
35241 controller value so that it can be restored ...
35242 (grub_keyboard_controller_fini): ... here (new function).
35243 (grub_at_keyboard_term): New structure.
35244 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
35245 functions.
35246
35247 Migrate output terminals to new API:
35248
35249 * term/i386/pc/vga.c (grub_vga_term): Change type to
35250 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35251 members. Update all users.
35252 * term/gfxterm.c (grub_video_term): Change type to
35253 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35254 members. Update all users.
35255 * include/grub/i386/pc/console.h (grub_console_checkkey)
35256 (grub_console_getkey): Do not export (no longer needed by gfxterm,
35257 etc).
35258
35259 Migrate `terminal' command and userland tools to new API:
35260
35261 * commands/terminal.c (grub_cmd_terminal): Split into ...
35262 (grub_cmd_terminal_input): ... this, and ...
35263 (grub_cmd_terminal_output): ... this.
35264 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
35265 `terminal_input' and `terminal_output'.
35266 * util/grub.d/00_header.in: Adjust `terminal' calls to new
35267 `terminal_input' / `terminal_output' API.
35268 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
35269 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
35270 provided ${GRUB_TERMINAL}, convert it).
35271
96e5d876 352722008-11-04 Robert Millan <rmh@aybabtu.com>
35273
35274 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
35275 for FreeBSD.
35276 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
35277
556f3775 352782008-11-03 Bean <bean123ch@gmail.com>
35279
35280 * kern/elf.c (grub_elf32_load): Revert to previous code.
35281 (grub_elf64_load): Likewise.
35282
35283 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
35284
926b9823 352852008-11-01 Robert Millan <rmh@aybabtu.com>
35286
35287 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
35288 (TARGET_CPPFLAGS): Likewise.
35289 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
35290
1432e958 352912008-11-01 Carles Pina i Estany <carles@pina.cat>
35292
35293 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
35294
dba3f844 352952008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 35296
35297 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
35298 addition of objects until the code is not going to be able to fail.
35299
dba3f844 353002008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 35301
35302 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
35303 (add a missing NULL check, and correct them by moving the pointer
35304 operations after the actual check).
35305
7ab28c21 353062008-10-29 Robert Millan <rmh@aybabtu.com>
35307
35308 * util/i386/pc/grub-install.in: Handle empty string as output from
35309 make_system_path_relative_to_its_root().
35310
1b7748eb 353112008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
35312
35313 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
35314 circular metadata worst case scenario. If the metadata is circular
35315 then copy the wrap in place.
35316 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
35317 project lib/format_text/layout.h
35318 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35319
c9618ab2 353202008-10-03 Felix Zielcke <fzielcke@z-51.de>
35321
7a36edca 35322 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 35323
bf981c62 353242008-10-03 Felix Zielcke <fzielcke@z-51.de>
35325
35326 * util/update-grub_lib.in: Mention filename in warning message.
35327
6d994591 353282008-09-29 Felix Zielcke <fzielcke@z-51.de>
35329
35330 * NEWS: Update for rename of update-grub to grub-mkconfig.
35331
18ade780 353322008-09-29 Felix Zielcke <fzielcke@z-51.de>
35333
35334 * util/update-grub_lib.in: Copy to ...
35335 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 35336 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 35337 * util/update-grub.in: Rename to ...
35338 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35339 option. Add `--output' option to allow users to specify the generated
35340 configuration file. Default to stdout.
35341 (update_grub_dir): Rename to ...
35342 (grub_mkconfig_dir): ... this.
35343 (grub_cfg): Default to an empty string.
35344 * conf/common.rmk (update-grub): Rename to ...
35345 (grub-mkconfig): ... this.
35346 (update-grub_lib): Copy to ...
35347 (grub-mkconfig_lib): ... this.
35348 (update-grub_SCRIPTS): Copy to ...
35349 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35350 (update-grub_DATA): Rename to ...
35351 (grub-mkconfig_DATA): ... this.
35352
556ce6ac 353532008-09-28 Robert Millan <rmh@aybabtu.com>
35354
35355 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35356 to `modified'. Add the real `created' field.
35357 (grub_iso9660_uuid): Use `modified' rather than `created' for
35358 constructing the UUID.
35359
353602008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 35361
35362 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35363 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35364
92274e85 353652008-09-28 Bean <bean123ch@gmail.com>
35366
35367 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35368 Thanks to Christian Franke for finding this bug.
35369
add6f17a 353702008-09-25 Robert Millan <rmh@aybabtu.com>
35371
35372 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35373 instances of grub_util_get_disk_name() (see previous commit).
35374
d2a367b8 353752008-09-25 Robert Millan <rmh@aybabtu.com>
35376
35377 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35378 `util/i386/get_disk_name.c'.
35379 * conf/i386-efi.rmk: Likewise.
35380 * conf/x86_64-efi.rmk: Likewise.
35381 * conf/i386-coreboot.rmk: Likewise.
35382 * conf/i386-ieee1275.rmk: Likewise.
35383 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35384 `util/ieee1275/get_disk_name.c'.
35385 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35386 * util/ieee1275/get_disk_name.c: Remove file.
35387 * util/i386/get_disk_name.c: Remove file.
35388 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35389 "hd%d" for device.map entries, rather than using
35390 grub_util_get_disk_name().
35391
81a06771 353922008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 35393
35394 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35395 warning.
35396 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35397
5a004279 353982008-09-24 Carles Pina i Estany <carles@pina.cat>
35399
35400 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35401 Changed to 0x5100.
35402 (GRUB_TERM_PPAGE): Changed to 0x4900.
35403
397093d3 354042008-09-24 Robert Millan <rmh@aybabtu.com>
35405
35406 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35407 macros (they were i386-pc specific).
35408 * include/grub/sparc64/ieee1275/console.h: Likewise.
35409 * include/grub/efi/console.h: Likewise.
35410
a91b6c7c 354112008-09-22 Bean <bean123ch@gmail.com>
35412
35413 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35414 resident and in attribute list.
35415
35416 * include/grub/ntfs.h (BMP_LEN): Removed.
35417
c40fd116 354182008-09-22 Bean <bean123ch@gmail.com>
35419
81a06771 35420 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 35421 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35422
35423 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35424 error occurs, as grub_disk_open will call grub_disk_close, which will
35425 call p->close (scsi).
35426
81a06771 354272008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 35428
35429 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35430 (AC_PREREQ): Bumped to 2.59.
35431 (AC_TRY_COMPILE): Replace obsolete macro with ...
35432 (AC_COMPILE_IFELSE): ... this.
35433 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35434 (AC_LINK_IFELSE): ... this.
35435
5dc43410 354362008-09-21 Felix Zielcke <fzielcke@z-51.de>
35437
35438 * autogen.sh: Add a call to `gendistlist.sh'.
35439
9035dce4 354402008-09-19 Christian Franke <franke@computer.org>
35441
35442 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35443 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35444 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35445 Export __enable_execute_stack() to modules.
35446 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35447 New function.
35448
7fd75377 354492008-09-09 Felix Zielcke <fzielcke@z-51.de>
35450
040030b3 35451 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35452 Sort the list.
35453
354542008-09-09 Felix Zielcke <fzielcke@z-51.de>
35455
35456 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 35457 #include <grub/util/hostdisk.h>.
35458
89d5ffcf 354592008-09-08 Robert Millan <rmh@aybabtu.com>
35460
35461 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35462 segments when their filesz is zero (grub_file_read() interprets
81a06771 35463 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 35464 Use `lowest_segment' rather than 0 for calculating the current
35465 segment load address.
35466
40da438f 354672008-09-08 Robert Millan <rmh@aybabtu.com>
35468
35469 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35470 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35471 clobbered useful information.
35472
ddbf5556 354732008-09-08 Robert Millan <rmh@aybabtu.com>
35474
35475 * include/grub/util/biosdisk.h: Move to ...
35476 * include/grub/util/hostdisk.h: ... here. Update all users.
35477 * util/biosdisk.c: Move to ...
35478 * util/hostdisk.c: ... here. Update all users.
35479
783d0f48 354802008-09-07 Robert Millan <rmh@aybabtu.com>
35481
35482 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35483 variables.
35484 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35485 and length can be stored directly in the `mbi->mmap_addr' and
35486 `mbi->mmap_length' struct fields.
35487
548e2ea5 354882008-09-07 Robert Millan <rmh@aybabtu.com>
35489
35490 * conf/i386.rmk: New file. Provides declaration for building
35491 `cpuid.mod'.
35492 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35493 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35494 variables.
35495 Include `conf/i386.mk'.
35496 * conf/i386-efi.rmk: Likewise.
35497 * conf/x86_64-efi.rmk: Likewise.
35498 * conf/i386-coreboot.rmk: Likewise.
35499 * conf/i386-ieee1275.rmk: Likewise.
35500
0ea85a37 355012008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35502
35503 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35504 Adds optimization support for BGR based modes.
35505
35506 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35507 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35508 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35509 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35510 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35511 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35512 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35513 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35514 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35515 (grub_video_i386_vbeblit_index_index): Likewise.
35516 (grub_video_i386_vbeblit_replace_directN): Added.
35517 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35518 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35519 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35520 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35521 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35522 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 35523 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 35524 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35525 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35526 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35527 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35528 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35529 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35530
35531 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35532 (grub_video_i386_vbefill_R8G8B8): Likewise.
35533 (grub_video_i386_vbefill_index): Likewise.
35534 (grub_video_i386_vbefill_direct32): Added.
35535 (grub_video_i386_vbefill_direct24): Likewise.
35536 (grub_video_i386_vbefill_direct16): Likewise.
35537 (grub_video_i386_vbefill_direct8): Likewise.
35538
81a06771 35539 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 35540 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35541 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35542 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35543 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35544 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 35545
0ea85a37 35546 * video/video.c (grub_video_get_blit_format): Updated to use new
35547 blit formats. Added handling for 16 bit color modes.
81a06771 35548
35549 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 35550 fillers.
35551 (common_blitter): Updated to use new blitters.
35552
35553 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35554 Removed.
35555 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35556 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35557 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35558 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35559 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35560 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35561 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35562 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35563 (grub_video_i386_vbeblit_index_index): Likewise.
35564 (grub_video_i386_vbeblit_replace_directN): Added.
35565 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35566 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35567 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35568 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35569 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35570 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35571 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35572 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35573 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35574 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35575 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35576 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35577 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 35578
0ea85a37 35579 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35580 (grub_video_i386_vbefill_R8G8B8): Likewise.
35581 (grub_video_i386_vbefill_index): Likewise.
35582 (grub_video_i386_vbefill_direct32): Added.
35583 (grub_video_i386_vbefill_direct24): Likewise.
35584 (grub_video_i386_vbefill_direct16): Likewise.
35585 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 35586
0ea85a37 35587 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35588 types.
81a06771 35589
0ea85a37 35590 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35591 types.
81a06771 35592
0ea85a37 35593 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35594 blitter types.
81a06771 35595
0ea85a37 35596 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35597 types.
35598
e8a83df6 355992008-09-06 Felix Zielcke <fzielcke@z-51.de>
35600
35601 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35602 RAID level 1.
35603
6bcd8ee5 356042008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 35605
6bcd8ee5 35606 * fs/iso9660.c (grub_iso9660_date): New structure.
35607 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35608 (grub_iso9660_uuid): New function.
c375ae58 35609
59261157 356102008-09-05 Bean <bean123ch@gmail.com>
35611
35612 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35613
35614 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35615 insensitive bit for names in Win32 and Win32 & DOS namespace.
35616
35617 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35618
35619 * include/grub/types.h (LONG_MAX): Likewise.
35620
58b6645a 356212008-09-04 Felix Zielcke <fzielcke@z-51.de>
35622
4ee55921 35623 * util/getroot.c: Include <config.h>.
35624 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35625 add support for /dev/md/N devices and handle LVM double dash escaping.
35626
356272008-09-04 Felix Zielcke <fzielcke@z-51.de>
35628
35629 * config.guess: Update to latest version from config git.
35630 * config.sub: Likewise.
58b6645a 35631
9124f65d 356322008-09-03 Robert Millan <rmh@aybabtu.com>
35633
35634 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35635 `disk->total_sectors'.
35636
81a06771 356372008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 35638
35639 * include/grub/normal.h: Fixed incorrect comment for
35640 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35641
81a06771 356422008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 35643
35644 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35645 values with defines.
35646
35647 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35648 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35649 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35650 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35651 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35652 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35653 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35654 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35655 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35656 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35657 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35658 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35659 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35660 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35661 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35662 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35663 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35664 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35665 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35666
93d5cbf8 356672008-08-31 Robert Millan <rmh@aybabtu.com>
35668
35669 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35670 declaration.
35671 (grub_multiboot): Fix a few warnings.
35672
21751d50 356732008-08-31 Robert Millan <rmh@aybabtu.com>
35674
35675 * loader/i386/pc/multiboot.c: Update comment not to say that
35676 boot_device support is unimplemented.
35677
e27a75c5 356782008-08-31 Robert Millan <rmh@aybabtu.com>
35679
35680 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35681 or memory map support are unimplemented.
35682
81a06771 356832008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 35684
35685 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35686
81a06771 356872008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 35688
35689 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35690 total video memory in 'vbeinfo' output; show color format details for
35691 each video mode.
35692
7c5d8d95 356932008-08-30 Pavel Roskin <proski@gnu.org>
35694
35695 * util/genmoddep.c: Remove for real this time.
35696 * DISTLIST: Remove util/genmoddep.c.
35697
4cebd25a 356982008-08-30 Robert Millan <rmh@aybabtu.com>
35699
35700 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35701 as required by Multiboot spec (it was already 4-byte aligned, but
35702 only by chance).
35703
b497a269 357042008-08-29 Pavel Roskin <proski@gnu.org>
35705
e3925185 35706 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35707 * kern/powerpc/ieee1275/startup.S: ... this.
35708 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35709 * DISTLIST: Likewise.
35710
b497a269 35711 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35712 grub/cpu/kernel.h. Add start label for consistency with other
35713 platforms. Add grub_prefix immediately after start. Add jump
35714 to the code after grub_prefix.
35715 * include/grub/powerpc/kernel.h: Provide valid values for
35716 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35717
6e5a42fe 357182008-08-29 Bean <bean123ch@gmail.com>
35719
35720 * configure.ac: Change host_os to cygwin for mingw.
35721 (asprintf): New check for function.
35722
35723 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35724 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35725
35726 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 35727 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 35728 sync, sleep and grub_util_get_disk_size for mingw.
35729
35730 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35731 to get size in mingw.
35732 (open_device): Use flag O_BINARY if it's defined.
35733 (find_root_device): Add dummy code for mingw.
35734
35735 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35736 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35737 (get_scsi_disk_name): Return 0 for mingw.
35738
35739 * util/hostfs.c: #include <grub/util/misc.h>.
35740 (grub_hostfs_open): Use "rb" flag to open file, use
35741 grub_util_get_disk_size to get disk size for mingw.
35742
35743 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35744 (asprintf): New function if HAVE_ASPRINTF is not set.
35745 (sync): New function for mingw.
35746 (sleep): Likewise.
35747 (grub_util_get_disk_size): Likewise.
35748
ab3f2673 357492008-08-28 Pavel Roskin <proski@gnu.org>
35750
35751 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35752 kern/time.c.
35753
1c282483 357542008-08-28 Robert Millan <rmh@aybabtu.com>
35755
35756 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35757
678e849c 357582008-08-28 Robert Millan <rmh@aybabtu.com>
35759
35760 Change find_grub_drive() syntax so it doesn't prevent it from
35761 detecting NULL names as errors.
35762
35763 * util/biosdisk.c (find_grub_drive): Move free slot search code
35764 from here ...
35765 (find_free_slot): ... to here.
35766 (read_device_map): Use find_free_slot() to search for free slots.
35767
965c75ca 357682008-08-27 Marco Gerards <marco@gnu.org>
35769
35770 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35771 (scsi_mod_SOURCES): New variable.
35772 (scsi_mod_CFLAGS): Likewise
35773 (scsi_mod_LDFLAGS): Likewise.
35774
35775 * disk/scsi.c: New file.
35776
35777 * include/grub/scsi.h: Likewise.
35778
35779 * include/grub/scsicmd.h: Likewise.
35780
35781 * disk/ata.c: Include <grub/scsi.h>.
35782 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35783 instead.
35784 (grub_ata_iterate): Skip ATAPI devices.
35785 (grub_ata_open): Only handle ATAPI devices.
35786 (struct grub_atapi_read): Removed.
35787 (grub_atapi_readsector): Likewise.
35788 (grub_ata_read): No longer handle ATAPI devices.
35789 (grub_ata_write): Likewise.
35790 (grub_atapi_iterate): New function.
35791 (grub_atapi_read): Likewise.
35792 (grub_atapi_write): Likewise.
35793 (grub_atapi_open): Likewise.
35794 (grub_atapi_close): Likewise.
35795 (grub_atapi_dev): New variable.
35796 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35797 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35798
35799 * include/grub/disk.h (enum grub_disk_dev_id): Add
35800 `GRUB_DISK_DEVICE_SCSI_ID'.
35801
c07ae501 358022008-08-26 Robert Millan <rmh@aybabtu.com>
35803
35804 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35805 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35806 descriptive.
35807
5ed20adc 358082008-08-23 Bean <bean123ch@gmail.com>
35809
35810 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35811 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35812 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35813 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35814 dm_nv.mod.
35815 (raid5rec_mod_SOURCES): New macro.
35816 (raid5rec_mod_CFLAGS): Likewise.
35817 (raid5rec_mod_LDFLAGS): Likewise.
35818 (raid6rec_mod_SOURCES): Likewise.
35819 (raid6rec_mod_CFLAGS): Likewise.
35820 (raid6rec_mod_LDFLAGS): Likewise.
35821 (mdraid_mod_SOURCES): Likewise.
35822 (mdraid_mod_CFLAGS): Likewise.
35823 (mdraid_mod_LDFLAGS): Likewise.
35824 (dm_nv_mod_SOURCES): Likewise.
35825 (dm_nv_mod_CFLAGS): Likewise.
35826 (dm_nv_mod_LDFLAGS): Likewise.
35827
35828 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35829 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35830 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35831
35832 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35833 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35834
35835 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35836
35837 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35838
35839 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35840
35841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35842
35843 * disk/raid5_recover.c: New file.
35844
35845 * disk/raid6_recover.c: Likewise.
35846
35847 * disk/mdraid_linux.c: Likewise.
35848
35849 * disk/dmraid_nvidia.c: Likewise.
35850
35851 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35852 ULONG_MAX.
35853
35854 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35855 calculate the size of raid device.
35856 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35857 different layout of raid5.
35858 (grub_raid_scan_device): Remove code specific to mdraid.
35859 (grub_raid_list): New variable.
35860 (free_array): New function.
35861 (grub_raid_register): Likewise.
35862 (grub_raid_unregister): Likewise.
35863 (grub_raid_rescan): Likewise.
35864 (GRUB_MOD_INIT): Don't iterate device here.
35865 (GRUB_MOD_FINI): Use free_array to release resource.
35866
35867 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35868 (grub_raid5_recover_func_t): New function variable type.
35869 (grub_raid6_recover_func_t): Likewise.
35870 (grub_raid5_recover_func): New variable.
35871 (grub_raid6_recover_func): Likewise.
35872 (grub_raid_register): New function.
35873 (grub_raid_unregister): Likewise.
35874 (grub_raid_rescan): Likewise.
35875 (grub_raid_block_xor): Likewise.
35876
35877 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35878 (CMD_CRC): New macro.
35879 (part): Removed.
35880 (read_file): Handle device as well as file.
35881 (cmd_crc): New function.
35882 (fstest): Handle multiple disks.
35883 (options): Remove part, raw and long, add root and diskcount.
35884 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 35885 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 35886 add handling for the new options, support multiple disks.
35887
35888 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35889
29c18915 358902008-08-23 Bean <bean123ch@gmail.com>
35891
35892 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35893
35894 * genfslist.sh: Ignore kernel.mod.
35895
35896 * genpartmaplist.sh: Likewise.
35897
8415f261 358982008-08-23 Robert Millan <rmh@aybabtu.com>
35899
35900 * util/getroot.c (find_root_device): Skip anything that starts with
35901 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35902
d5a7dc5b 359032008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 35904
d5a7dc5b 35905 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35906 * util/grub.d/00_header.in: Allow the administrator to change default
35907 gfxmode via ${GRUB_GFXMODE}.
35908
380cfbb4 359092008-08-21 Felix Zielcke <fzielcke@z-51.de>
35910
35911 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35912
c9baafe7 359132008-08-21 Robert Millan <rmh@aybabtu.com>
35914
35915 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35916 loader.
35917 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35918 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35919
e290bef2 359202008-08-20 Carles Pina i Estany <carles@pina.cat>
35921
35922 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35923 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35924
f9dbfc96 359252008-08-19 Robert Millan <rmh@aybabtu.com>
35926
35927 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35928 (struct grub_virtual_screen): Remove `cursor_color'.
35929 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35930 initialization.
35931 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35932
dd6bd6ab 359332008-08-18 Robert Millan <rmh@aybabtu.com>
35934
35935 Unify (identical) linux_normal.c files.
35936 * loader/i386/efi/linux_normal.c: Move from here ...
35937 * loader/linux_normal.c: ... to here. Update all users.
35938 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35939 * loader/i386/ieee1275/linux_normal.c: Likewise.
35940
7f42f83e 359412008-08-18 Robert Millan <rmh@aybabtu.com>
35942
35943 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35944 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35945 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35946 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35947 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35948 New macros.
35949 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35950 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35951 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35952 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35953 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35954 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35955 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35956 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35957 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35958 portably using grub_getxy().
35959 Replace `-EFI' with `-bzImage' in boot message.
35960
38487ddb 359612008-08-17 Robert Millan <rmh@aybabtu.com>
35962
35963 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35964
deceb3ec 359652008-08-17 Robert Millan <rmh@aybabtu.com>
35966
35967 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35968
35969 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35970 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35971 (grub_machine_mmap_iterate): New function declaration.
35972 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35973 structure.
35974 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35975 macros.
35976
35977 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35978 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35979 Move e820 parsing from here ...
35980 * kern/i386/pc/mmap.c: New file.
35981 (grub_machine_mmap_iterate): ... to here.
35982
35983 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35984 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35985 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35986 (grub_available_iterate): Redeclare to return `void', and redeclare
35987 its hook to use grub_uint64_t as addr and size parameters, and rename
35988 to ...
35989 (grub_machine_mmap_iterate): ... this. Update all users.
35990
35991 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35992 to make it more readable. Rename to ...
35993 (grub_machine_mmap_iterate): ... this.
35994
35995 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35996 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35997 (grub_multiboot): Allocate an extra region after the payload, and fill
35998 it with a Multiboot memory map. Adjust a.out loader to calculate size
35999 with the extra space.
36000 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
36001 with the extra space.
36002
f8aa0f43 360032008-08-17 Carles Pina i Estany <carles@pina.cat>
36004
9807deb9 36005 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 36006
605f5bb6 360072008-08-17 Felix Zielcke <fzielcke@z-51.de>
36008
36009 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
36010 mdate-sh to the list `find' searches for.
36011 * DISTLIST: Regenerated.
36012
210db6c6 360132008-08-16 Felix Zielcke <fzielcke@z-51.de>
36014
36015 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
36016 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 36017 genmoddep.awk, gensymlist.sh.in.
36018 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 36019 * DISTLIST: Regenerated.
48cdbfd4 36020 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 36021
1082b929 360222008-08-16 Robert Millan <rmh@aybabtu.com>
36023
36024 * disk/raid.c (grub_raid_init): Handle/report errors set by
36025 grub_device_iterate().
36026 * disk/lvm.c (grub_lvm_init): Likewise.
36027
42ce5170 360282008-08-15 Bean <bean123ch@gmail.com>
36029
36030 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36031 and datehook.mod.
36032 (datetime_mod_SOURCES): New macro.
36033 (datetime_mod_CFLAGS): Likewise.
36034 (datetime_mod_LDFLAGS): Likewise.
36035 (date_mod_SOURCES): Likewise.
36036 (date_mod_CFLAGS): Likewise.
36037 (date_mod_LDFLAGS): Likewise.
36038 (datehook_mod_SOURCES): Likewise.
36039 (datehook_mod_CFLAGS): Likewise.
36040 (datehook_mod_LDFLAGS): Likewise.
36041
36042 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36043 and datehook.mod.
36044 (datetime_mod_SOURCES): New macro.
36045 (datetime_mod_CFLAGS): Likewise.
36046 (datetime_mod_LDFLAGS): Likewise.
36047 (date_mod_SOURCES): Likewise.
36048 (date_mod_CFLAGS): Likewise.
36049 (date_mod_LDFLAGS): Likewise.
36050 (datehook_mod_SOURCES): Likewise.
36051 (datehook_mod_CFLAGS): Likewise.
36052 (datehook_mod_LDFLAGS): Likewise.
36053
36054 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36055 and datehook.mod.
36056 (datetime_mod_SOURCES): New macro.
36057 (datetime_mod_CFLAGS): Likewise.
36058 (datetime_mod_LDFLAGS): Likewise.
36059 (date_mod_SOURCES): Likewise.
36060 (date_mod_CFLAGS): Likewise.
36061 (date_mod_LDFLAGS): Likewise.
36062 (datehook_mod_SOURCES): Likewise.
36063 (datehook_mod_CFLAGS): Likewise.
36064 (datehook_mod_LDFLAGS): Likewise.
36065
36066 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36067 and datehook.mod.
36068 (datetime_mod_SOURCES): New macro.
36069 (datetime_mod_CFLAGS): Likewise.
36070 (datetime_mod_LDFLAGS): Likewise.
36071 (date_mod_SOURCES): Likewise.
36072 (date_mod_CFLAGS): Likewise.
36073 (date_mod_LDFLAGS): Likewise.
36074 (datehook_mod_SOURCES): Likewise.
36075 (datehook_mod_CFLAGS): Likewise.
36076 (datehook_mod_LDFLAGS): Likewise.
36077
36078 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36079 and datehook.mod.
36080 (datetime_mod_SOURCES): New macro.
36081 (datetime_mod_CFLAGS): Likewise.
36082 (datetime_mod_LDFLAGS): Likewise.
36083 (date_mod_SOURCES): Likewise.
36084 (date_mod_CFLAGS): Likewise.
36085 (date_mod_LDFLAGS): Likewise.
36086 (datehook_mod_SOURCES): Likewise.
36087 (datehook_mod_CFLAGS): Likewise.
36088 (datehook_mod_LDFLAGS): Likewise.
36089
36090 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
36091
36092 * commands/date.c: New file.
36093
36094 * hook/datehook.c: Likewise.
36095
36096 * include/grub/lib/datetime.h: Likewise.
36097
36098 * include/grub/i386/cmos.h: Likewise.
36099
36100 * lib/datetime.c: Likewise.
36101
36102 * lib/i386/datetime.c: Likewise.
36103
36104 * lib/efi/datetime.c: Likewise.
36105
0e9242da 361062008-08-14 Robert Millan <rmh@aybabtu.com>
36107
36108 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
36109 (grub_mkelfimage_SOURCES): New variable.
36110 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
36111
36112 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
36113 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
36114 * conf/powerpc-ieee1275.rmk: Likewise.
36115 * conf/i386-ieee1275.rmk: Likewise.
36116
36117 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
36118 * kern/i386/coreboot/init.c: Likewise.
36119
36120 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
36121 with `<grub/cpu/kernel.h>'.
36122 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
36123 to ...
36124 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
36125 * kern/i386/coreboot/startup.S: Likewise.
36126
36127 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
36128 (GRUB_MOD_GAP): Remove.
36129 * include/grub/powerpc/kernel.h: New file.
36130 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
36131 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36132 * include/grub/i386/kernel.h: New file.
36133 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
36134 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
36135 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36136
36137 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
36138 `grub-mkelfimage'.
36139 Use --directory when invoking grub_mkimage.
36140
36141 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
36142 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
36143 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
36144 and GRUB_KERNEL_CPU_PREFIX.
36145
b86408f8 361462008-08-14 Felix Zielcke <fzielcke@z-51.de>
36147
d5e619ca 36148 * include/grub/err.h (grub_err_printf): New function prototype.
36149 * util/misc.c (grub_err_printf): New function.
36150 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
36151 grub_printf.
36152 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 36153
7161f0e0 361542008-08-13 Robert Millan <rmh@aybabtu.com>
36155
36156 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
36157
a1967522 361582008-08-13 Robert Millan <rmh@aybabtu.com>
36159
36160 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
36161 boot entry.
36162
371458b5 361632008-08-12 Robert Millan <rmh@aybabtu.com>
36164
36165 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
36166 of the relocation code from here ...
36167 (grub_multiboot): ... to here.
36168 (forward_relocator, backward_relocator): Move from here ...
36169 * kern/i386/loader.S (grub_multiboot_forward_relocator)
36170 (grub_multiboot_backward_relocator): ... to here.
36171 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
36172 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
36173 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
36174 (grub_multiboot_forward_relocator_end)
36175 (grub_multiboot_backward_relocator)
36176 (grub_multiboot_backward_relocator_end): New variables.
36177
05f9452b 361782008-08-12 Bean <bean123ch@gmail.com>
36179
36180 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
36181
20024ab0 361822008-08-11 Robert Millan <rmh@aybabtu.com>
36183
36184 * kern/i386/linuxbios/startup.S: Move from here ...
36185 * kern/i386/coreboot/startup.S: ... to here.
36186
36187 * kern/i386/linuxbios/init.c: Move from here ...
36188 * kern/i386/coreboot/init.c: ... to here.
36189
36190 * kern/i386/linuxbios/table.c: Move from here ...
36191 * kern/i386/coreboot/mmap.c: ... to here.
36192
36193 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
36194
e352e9cd 361952008-08-11 Robert Millan <rmh@aybabtu.com>
36196
36197 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
36198 errors. Leave it to the upper layer to handle them.
36199
2d05bc6a 362002008-08-09 Christian Franke <franke@computer.org>
36201
36202 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
36203 * conf/common.rmk: Install `grub-pe2elf' only if requested.
36204 Install `grub.d/10_windows' only on Cygwin.
36205 * configure.ac: Add subst of `target_os'.
36206 Check `target_os' also before setting TARGET_OBJ2ELF.
36207 Add `--enable-grub-pe2elf'.
36208
042bd419 362092008-08-08 Robert Millan <rmh@aybabtu.com>
36210
36211 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
36212 (grub_last_time): Change type to grub_uint64_t.
36213 (grub_disk_open): Migrate code from to using grub_get_time_ms().
36214 (grub_disk_close): Likewise.
36215
36216 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
36217 (run_menu): Migrate code from to using grub_get_time_ms().
36218
36219 * util/misc.c (grub_get_time_ms): New function.
36220
7f280db5 362212008-08-08 Marco Gerards <marco@gnu.org>
36222
36223 * disk/ata.c (grub_ata_regget): Change return type to
36224 `grub_uint8_t'.
36225 (grub_ata_regget2): Likewise.
36226 (grub_ata_wait_status): New function.
36227 (grub_ata_wait_busy): Removed function, updated all users to use
36228 `grub_ata_wait_status'.
36229 (grub_ata_wait_drq): Likewise.
36230 (grub_ata_cmd): New function.
36231 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
36232 error handling.
36233 (grub_ata_pio_write): Add error handling.
36234 (grub_atapi_identify): Likewise.
36235 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
36236 handling.
36237 (grub_ata_identify): Use `grub_ata_cmd' and improve error
36238 handling. Actually use the detected registers. Reorder the
36239 detection logic such that it is easier to read.
36240 (grub_ata_pciinit): Do not assign the same ID to each controller.
36241 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
36242 handling.
36243 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
36244
36245 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
36246
1fbc5e66 362472008-08-08 Marco Gerards <marco@gnu.org>
36248
36249 * NEWS: Update.
36250
819ce6c0 362512008-08-07 Bean <bean123ch@gmail.com>
36252
36253 * include/grub/x86_64/pci.h: New file.
36254
5c41d44d 362552008-08-07 Christian Franke <franke@computer.org>
36256
36257 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
36258 (TIMER2_GATE): Likewise.
36259 (grub_pit_wait): Add enable/disable of the timer2 gate
36260 bit of port 0x61. This fixes a possible infinite loop.
36261
5ebc275d 362622008-08-07 Bean <bean123ch@gmail.com>
36263
36264 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
36265 kern/i386/tsc.c and kern/i386/pit.c.
36266
36267 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
36268 x86_64 platform.
36269
36270 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
36271 <grub/i386/tsc.h>.
36272
36273 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
36274
e383b3d0 362752008-08-07 Bean <bean123ch@gmail.com>
36276
36277 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
36278
36279 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
36280
36281 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
36282 multiple inclusion. Add #include <grub/types.h>.
36283
1cbb58ac 362842008-08-06 Christian Franke <franke@computer.org>
36285
36286 * conf/common.rmk: Build and install `10_windows'.
36287 * util/grub.d/10_windows.in: New script.
36288
337f5a1e 362892008-08-06 Pavel Roskin <proski@gnu.org>
36290
36291 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
36292
057bc4ac 362932008-08-06 Robert Millan <rmh@aybabtu.com>
36294
36295 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
36296 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
36297
2b99f123 362982008-08-06 Bean <bean123ch@gmail.com>
36299
36300 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
36301 (grub_pxefs_fs_int): Remove dummy definition.
36302 (grub_pxefs_open): Use data->block_size to store the current block
36303 size setting.
36304 (grub_pxefs_read): Use block size stored in data->block_size. As the
36305 value of grub_pxe_blksize can be changed after the file is opened.
36306
9f0234cb 363072008-08-06 Bean <bean123ch@gmail.com>
36308
36309 * fs/i386/pc/pxe.c (curr_file): new variable.
36310 (grub_pxefs_open): Simply the handling of pxe file system. Don't
36311 require the dummy internal file system anymore.
36312 (grub_pxefs_read): Removed.
36313 (grub_pxefs_close): Likewise.
36314 (grub_pxefs_fs_int): Likewise.
36315 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
36316 connection when we switch file.
36317 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
36318
a55d42e0 363192008-08-06 Robert Millan <rmh@aybabtu.com>
36320
36321 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36322 `halt.mod'.
36323 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36324 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36325
36326 * kern/i386/halt.c: New file.
36327 * kern/i386/reboot.c: Likewise.
36328 * include/grub/i386/reboot.h: Likewise.
36329 * include/grub/i386/halt.h: Likewise.
36330
36331 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36332 Include `<grub/cpu/halt.h>'.
36333 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36334 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36335
36336 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36337 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36338 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36339 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36340 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36341 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36342 from here ...
36343 * include/grub/i386/at_keyboard.h: ... to here.
36344
24371d26 363452008-08-05 Robert Millan <rmh@aybabtu.com>
36346
36347 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36348 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36349 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36350 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36351 `kern/generic/millisleep.c'.
36352
36353 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36354 instead of grub_get_rtc().
36355 (grub_tsc_init): Initialize `tsc_boot_time'.
36356
36357 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36358 (grub_machine_init): Use grub_tsc_init() rather than
36359 installing an RTC-based handler via grub_install_get_time_ms().
36360
36361 * kern/i386/pit.c: New file.
36362 * include/grub/i386/pit.h: Likewise.
36363
9e7007b3 363642008-08-05 Bean <bean123ch@gmail.com>
36365
36366 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36367
36368 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36369 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36370 (pxe_mod_SOURCES): New macro.
36371 (pxe_mod_CFLAGS): Likewise.
36372 (pxe_mod_LDFLAGS): Likewise.
36373 (pxecmd_mod_SOURCES): Likewise.
36374 (pxecmd_mod_CFLAGS): Likewise.
36375 (pxecmd_mod_LDFLAGS): Likewise.
36376
36377 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36378 (grub_pxe_call): Likewise.
36379
36380 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36381
36382 * commands/i386/pc/pxecmd.c: New file.
36383
9f0234cb 36384 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 36385
36386 * include/grub/i386/pc/pxe.h: Likewise.
36387
6977d49f 363882008-08-05 Bean <bean123ch@gmail.com>
36389
36390 * util/console.c (grub_console_cur_color): New variable.
36391 (grub_console_standard_color): Likewise.
36392 (grub_console_normal_color): Likewise.
36393 (grub_console_highlight_color): Likewise.
36394 (color_map): Likewise.
36395 (use_color): Likewise.
36396 (NUM_COLORS): New macro.
36397 (grub_ncurses_setcolorstate): Handle color properly.
36398 (grub_ncurses_setcolor): Don't change color here, just remember the
36399 settings, color will be set in grub_ncurses_setcolorstate.
36400 (grub_ncurses_getcolor): New function.
36401 (grub_ncurses_init): Initialize color pairs.
36402 (grub_ncurses_term): New member grub_ncurses_getcolor.
36403
9c2ff3ee 364042008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 36405
9c2ff3ee 36406 High resolution timer support. Implemented for x86 CPUs using TSC.
36407 Extracted generic grub_millisleep() so it's linked in only as needed.
36408 This requires a Pentium compatible CPU; if the RDTSC instruction is
36409 not supported, then it falls back on the generic grub_get_time_ms()
36410 implementation that uses the machine's RTC.
36411
36412 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36413 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36414 `kern/generic/millisleep.c'.
36415
36416 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36417 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36418
36419 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36420 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36421
36422 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36423
36424 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36425 `kern/generic/millisleep.c'.
36426
36427 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36428
36429 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36430
36431 * kern/generic/rtc_get_time_ms.c: New file.
36432
36433 * kern/generic/millisleep.c: New file.
337f5a1e 36434
9c2ff3ee 36435 * kern/misc.c: Don't include
36436 <kern/time.h> anymore.
36437 (grub_millisleep_generic): Removed.
36438
36439 * commands/sleep.c (grub_interruptible_millisleep): Uses
36440 grub_get_time_ms() instead of grub_get_rtc().
36441
36442 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36443 function.
36444 (grub_cpu_is_cpuid_supported): New inline function.
36445 (grub_cpu_is_tsc_supported): New inline function.
36446 (grub_tsc_init): New function prototype.
36447 (grub_tsc_get_time_ms): New function prototype.
36448
36449 * kern/i386/tsc.c (grub_get_time_ms): New file.
36450
36451 * include/grub/time.h: Include <grub/types.h.
36452 (grub_millisleep_generic): Removed.
36453 (grub_get_time_ms): New prototype.
36454 (grub_install_get_time_ms): New prototype.
36455 (grub_rtc_get_time_ms): New prototype.
36456
36457 * kern/time.c (grub_get_time_ms): New function.
36458 (grub_install_get_time_ms): New function.
36459
36460 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36461 <grub/time.h> anymore.
36462 (grub_millisleep): Removed.
36463 (grub_machine_init): Call grub_tsc_init.
36464
36465 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36466 get_time_ms() implementation.
36467
36468 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36469 (ieee1275_get_time_ms): New function.
36470 (grub_machine_init): Install get_time_ms() implementation.
36471
36472 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36473 (grub_machine_init): Call grub_tsc_init().
36474 (grub_millisleep): Removed.
bf06a93f 36475
9c2ff3ee 36476 * kern/ieee1275/init.c (grub_millisleep): Removed.
36477 (grub_machine_init): Install ieee1275_get_time_ms()
36478 implementation.
36479 (ieee1275_get_time_ms): New function.
36480 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36481 real work.
36482
9ec92aaf 364832008-08-05 Marco Gerards <marco@gnu.org>
36484
36485 * disk/ata.c: Include <grub/pci.h>.
36486 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36487 (grub_ata_initialize): Rewritten.
36488 (grub_ata_device_initialize): New function.
36489
8d23f507 364902008-08-04 Pavel Roskin <proski@gnu.org>
36491
36492 * kern/main.c: Include grub/mm.h.
36493
5e15ee3d 364942008-08-04 Robert Millan <rmh@aybabtu.com>
36495
36496 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36497 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36498 corruption problem).
36499
a9053f8f 365002008-08-04 Robert Millan <rmh@aybabtu.com>
36501
36502 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36503 warnings introduced in my last commit.
36504
dd19c7d7 365052008-08-03 Robert Millan <rmh@aybabtu.com>
36506
36507 Make PCI available on all i386 architectures.
36508
36509 * include/grub/i386/pc/pci.h: Move from here ...
36510 * include/grub/i386/pci.h: ... to here.
36511
36512 * include/grub/i386/pc/pci.h: Remove.
36513 * include/grub/i386/efi/pci.h: Remove.
36514 * include/grub/x86_64/efi/pci.h: Remove.
36515
36516 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36517 `<grub/cpu/pci.h>'.
36518
36519 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36520 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36521 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36522
36523 * conf/i386-ieee1275.rmk: Likewise.
36524
e14a6184 365252008-08-03 Robert Millan <rmh@aybabtu.com>
36526
36527 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36528 (grub_console_setcursor): Make it possible to set cursor off.
36529
52768e37 365302008-08-03 Robert Millan <rmh@aybabtu.com>
36531
36532 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36533 of modules instead of assuming which platform provides what.
36534 * util/update-grub.in: Likewise.
36535
2d52f57f 365362008-08-03 Robert Millan <rmh@aybabtu.com>
36537
36538 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36539 instead of `grub_install_dos_part' to determine whether a drive needs
36540 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 36541 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 36542
2a5cd121 365432008-08-02 Robert Millan <rmh@aybabtu.com>
36544
36545 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36546
93808428 365472008-08-02 Robert Millan <rmh@aybabtu.com>
36548
36549 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36550 of informational grub_dprintf() calls.
36551
3bd0a12a 365522008-08-02 Robert Millan <rmh@aybabtu.com>
36553
36554 * disk/memdisk.c (memdisk_size): Don't initialize.
36555 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36556
36557 * include/grub/i386/pc/kernel.h
36558 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36559 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36560 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36561 (grub_arch_memdisk_size): Remove.
36562
36563 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36564 field (was only used to transfer a constant). Add `type' field to
36565 support multiple module types.
36566 (grub_module_iterate): New function.
36567
36568 * kern/device.c (grub_device_open): Do not hide error messages
36569 when grub_disk_open() fails. Use grub_print_error() instead.
36570
36571 * kern/i386/pc/init.c (grub_arch_modules_addr)
36572 (grub_arch_memdisk_size): Remove functions.
36573 (grub_arch_modules_addr): Return the module address in high memory
36574 (now that it isn't copied anymore).
36575
36576 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36577 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36578 decompression routine (grub_total_module_size already includes that
36579 now). Don't copy modules back to low memory.
36580
36581 * kern/main.c: Include `<grub/mm.h>'.
36582 (grub_load_modules): Split out (and use) ...
36583 (grub_module_iterate): ... this function, which iterates through
36584 module objects and runs a hook.
36585 Comment out grub_mm_init_region() call, as it would cause non-ELF
36586 modules to be overwritten.
36587
36588 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36589 the memdisk image in its own region, make it part of the module list.
36590 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36591 (main): Parse --memdisk|-m option, and pass user-provided path as
36592 parameter to generate_image().
36593 (add_segments): Pass `memdisk_path' down to load_modules().
36594 (load_modules): Embed memdisk image in module section when requested.
36595 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36596 `header.type' instead of `header.offset'.
36597
36598 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36599 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36600 (memdisk_mod_LDFLAGS): New variables.
36601 * conf/i386-coreboot.rmk: Likewise.
36602 * conf/i386-ieee1275.rmk: Likewise.
36603
a927cc73 366042008-08-02 Robert Millan <rmh@aybabtu.com>
36605
36606 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36607 (backward_relocator): New variables. Used to allocate and relocate
36608 the payload, respectively.
36609 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 36610 address, install the appropriate relocator code in each bound of
a927cc73 36611 the payload, and set the entry point such that
36612 grub_multiboot_real_boot() will jump to one of them.
36613
36614 * kern/i386/loader.S (grub_multiboot_payload_size)
36615 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36616 (grub_multiboot_payload_entry_offset): New variables.
36617 (grub_multiboot_real_boot): Set cpu context to what the relocator
36618 expects, and jump to the relocator instead of the payload.
36619
36620 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36621 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36622 (grub_multiboot_payload_entry_offset): Export.
36623
b15d8a0c 366242008-08-01 Bean <bean123ch@gmail.com>
36625
36626 * normal/menu_entry.c (editor_getline): Don't return the original
36627 string as result, as it will be released by lexer once it has done
36628 using it.
36629
cdfb3d22 366302008-08-01 Robert Millan <rmh@aybabtu.com>
36631
36632 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36633 within menuentries, not before them.
36634 util/grub.d/10_hurd.in: Likewise.
36635
9175e93d 366362008-08-01 Bean <bean123ch@gmail.com>
36637
36638 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36639 (bufio_mod_SOURCES): New macro.
36640 (bufio_mod_CFLAGS): Likewise.
36641 (bufio_mod_LDFLAGS): Likewise.
36642
36643 * include/grub/bufio.h: New file.
36644
36645 * io/bufio.c: Likewise.
36646
36647 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36648 (grub_video_reader_png): Use grub_buffile_open to open file.
36649
36650 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36651 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36652
36653 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36654 (grub_video_reader_tga): Use grub_buffile_open to open file.
36655
36656 * font/manager.c: Include <grub/bufio.h>.
36657 (add_font): Use grub_buffile_open to open file.
36658
3d8383e7 366592008-07-31 Robert Millan <rmh@aybabtu.com>
36660
36661 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36662 ELF segments, use a macro for arbitrarily accessing any of them instead
36663 of preparing a pointer that allows access to one at a time.
36664 (grub_multiboot_load_elf64): Likewise.
36665
16e641b6 366662008-07-31 Bean <bean123ch@gmail.com>
36667
36668 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36669 GRUB_KERNEL_MACHINE_DATA_END.
36670
59198b72 366712008-07-30 Robert Millan <rmh@aybabtu.com>
36672
36673 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36674 Increase from 0x50 to 0x60.
36675 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36676 use UUIDs to identify the root drive for them. If that's not
36677 possible, abort.
36678 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36679 check, for cross-disk installs.
36680
ae88bca3 366812008-07-30 Robert Millan <rmh@aybabtu.com>
36682
36683 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36684 is non-empty, use it to set the `prefix' environment variable instead
36685 of the usual approach.
36686 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36687 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36688 environment variable instead of dummy make_install_device().
36689
36690 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36691 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 36692 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 36693
36694 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36695 New variable reference.
36696 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36697 New macro. Defines offset of `grub_prefix' within startup.S (relative
36698 to `start').
36699 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36700 section within startup.S (relative to `start').
36701 * include/grub/i386/coreboot/kernel.h: Likewise.
36702
36703 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36704 Overwrite grub_prefix with its contents, at the beginning of the
36705 first segment.
36706 (main): Understand -p|--prefix.
36707
14f41dd1 367082008-07-30 Robert Millan <rmh@aybabtu.com>
36709
36710 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36711
4ca049a3 367122008-07-30 Robert Millan <rmh@aybabtu.com>
36713
36714 * term/i386/pc/vga_text.c (grub_console_cls): Use
36715 grub_console_gotoxy() to go back to beginning of the screen.
36716 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36717
2921d337 367182008-07-29 Christian Franke <franke@computer.org>
36719
36720 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36721 Add conversion of emulated mount points on Cygwin.
36722
b609876d 367232008-07-29 Christian Franke <franke@computer.org>
36724
36725 * util/update-grub.in: Add a check for admin
36726 group on Cygwin.
36727 Remove old `grub.cfg.new' before creation.
36728 Add `-f' to `mv' to handle the different filesystem
36729 semantics of Windows.
36730
e93e4679 367312008-07-29 Bean <bean123ch@gmail.com>
36732
36733 * normal/main.c (get_line): Fix buffer overflow bug.
36734
41694fd0 367352008-07-28 Robert Millan <rmh@aybabtu.com>
36736
36737 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36738 (struct grub_apple_header): New struct. Describes the layout of
36739 the partmap header.
36740 (apple_partition_map_iterate): Check the header magic as well as the
36741 partition magic (which was already being checked).
36742
cfd0b4e6 367432008-07-28 Pavel Roskin <proski@gnu.org>
36744
36745 * genmk.rb: Add a warning to the beginning of the output that
36746 it's a generated file and should not be edited.
36747
93cce016 367482008-07-28 Robert Millan <rmh@aybabtu.com>
36749
36750 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36751 with the same number are found, just use issue a warning with
36752 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 36753
cd1df915 367542008-07-27 Robert Millan <rmh@aybabtu.com>
36755
36756 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36757 information.
36758
b70a8427 367592008-07-27 Bean <bean123ch@gmail.com>
36760
36761 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36762 (grub_fat_find_dir): Ignore case when comparing filename.
36763
8f5e379f 367642008-07-27 Bean <bean123ch@gmail.com>
36765
36766 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36767 smallino, as it's more descriptive, and i8count can be confused with
36768 the other field count.
36769 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36770 inode type.
36771
a85cd5a0 367722008-07-27 Bean <bean123ch@gmail.com>
36773
36774 * commands/crc.c: New file.
36775
36776 * lib/crc.c: Likewise.
36777
36778 * include/grub/lib/crc.h: Likewise.
36779
36780 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36781
36782 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36783 (hexdump): Move this function to ...
36784
36785 * lib/hexdump.c: ... here.
36786
36787 * include/grub/hexdump.h: Renamed to ...
36788
36789 * include/grub/lib/hexdump.h: ... this.
36790
36791 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36792
36793 * util/grub-editenv.c: Likewise.
36794
36795 * include/envblk.h: Renamed to ...
36796
36797 * include/lib/envblk.h: ... this.
36798
36799 * util/envblk.c: Renamed to ...
36800
36801 * lib/envblk.c: ... this.
36802
36803 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36804 lib/hexdump.c.
36805 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36806 (pkglib_MODULES): Add crc.mod.
36807 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36808 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36809 (crc_mod_SOURCES): New macro.
36810 (crc_mod_CFLAGS): Likewise.
36811 (crc_mod_LDFLAGS): Likewise.
36812
36813 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36814
36815 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36816
36817 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36818
36819 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36820
36821 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36822
c298def0 368232008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 36824
36825 * commands/help.c: Include <grub/term.h>.
36826 (TERM_WIDTH): Removed. Updated all users.
36827
cc349fb3 368282008-07-27 Pavel Roskin <proski@gnu.org>
36829
36830 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36831 spurious warnings about a comment within a comment.
36832
9051607e 368332008-07-25 Robert Millan <rmh@aybabtu.com>
36834
36835 * util/getroot.c (find_root_device): Skip devices that match
36836 /dev/dm-[0-9]. This lets the real device be found for any type of
36837 abstraction (LVM, EVMS, RAID..).
36838 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36839 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36840 device is found first, find_root_device() will now skip it.
36841
01453bfc 368422008-07-24 Pavel Roskin <proski@gnu.org>
36843
36844 * include/grub/types.h: Use __builtin_bswap32() and
36845 __builtin_bswap64() with gcc 4.3 and newer.
36846
6af9849f 368472008-07-24 Christian Franke <franke@computer.org>
36848
3a0fa256 36849 * util/i386/pc/grub-install.in: If `--debug' is specified,
36850 pass `--verbose' to grub-setup.
36851 Abort script if make_system_path_relative_to_its_root() fails.
36852
7810e747 368532008-07-24 Bean <bean123ch@gmail.com>
36854
36855 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36856 variable `target_platform' should be `platform'.
36857
42290e17 368582008-07-24 Bean <bean123ch@gmail.com>
36859
51cc5193 36860 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 36861 (grub_png_init_fixed_block): New function.
36862 (grub_png_decode_image_data): Handle fixed huffman code compression.
36863
2a8a80e4 368642008-07-24 Bean <bean123ch@gmail.com>
36865
36866 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36867 (grub_pe2elf_SOURCES): New macro.
36868 (CLEANFILES): Add grub-pe2elf.
36869
36870 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36871 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36872 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36873 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36874 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36875 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36876 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36877 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36878 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36879 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36880 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36881 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36882 (GRUB_PE32_DT_FUNCTION): Likewise.
36883 (GRUB_PE32_REL_I386_DIR32): Likewise.
36884 (GRUB_PE32_REL_I386_REL32): Likewise.
36885 (grub_pe32_symbol): New structure.
36886 (grub_pe32_reloc): Likewise.
36887
36888 * util/grub-pe2elf.c: New file.
36889
36890 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36891 start symbol in non pc platform.
36892
36893 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36894
36895 The following patches are from Christian Franke.
36896
36897 * include/grub/dl.h: Remove .previous, gas supports this only
36898 for ELF format.
36899
36900 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36901 Remove .type, gas supports this only for ELF format.
36902
36903 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36904 nullbytes in symbol table. This fixes an infinite loop if table is
36905 zero filled.
36906
36907 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36908 TARGET_IMG_LDFLAGS and EXEEXT.
36909
36910 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36911 TARGET_IMG_LDFLAGS_AC.
36912 (grub_CHECK_STACK_ARG_PROBE): New function.
36913
36914 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36915
36916 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36917
36918 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36919 to set TARGET_IMG_LD* accordingly.
36920 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36921 Add call to grub_CHECK_STACK_ARG_PROBE.
36922 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36923
36924 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36925
36926 * genmk.rb: Add EXEEXT to CLEANFILES.
36927
12ccdb75 369282008-07-23 Robert Millan <rmh@aybabtu.com>
36929
36930 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36931 define the codes for arrows and lines used for the menu).
36932 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36933 as well.
36934
36935 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36936 fonts, because the latter are too slow.
36937
18eeaf04 369382008-07-21 Bean <bean123ch@gmail.com>
36939
36940 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36941 a20. Run keyboard test last, as it will cause macbook to halt.
36942
b095e2ad 369432008-07-18 Pavel Roskin <proski@gnu.org>
36944
36945 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36946 load foreign architecture modules correctly anyway. Keep
36947 support for loading host architecture modules, whether we
36948 compile them or not.
36949
737feb35 369502008-07-17 Pavel Roskin <proski@gnu.org>
36951
3f4ce737 36952 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36953 change target_cpu. The compiler default can mismatch target_cpu
36954 in any case.
36955
4ad2d049 36956 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36957 * kern/efi/efi.c: Likewise.
36958
f6130a12 36959 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36960 target compiler is functional.
36961 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36962 are set up.
36963
58393a2d 36964 * configure.ac: Default to efi platform for x86_64-apple. Allow
36965 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36966 adjustments from the rest, only do them if target is not
36967 explicitly given. Merge other adjustments with the final sanity
36968 check. Remove an extraneous check for supported CPU. Be
36969 specific which CPU and which platform is not supported.
36970
737feb35 36971 * configure.ac: Default to pc platform for x86_64.
36972
546f966a 369732008-07-17 Robert Millan <rmh@aybabtu.com>
36974
36975 Partial LinuxBIOS -> Coreboot rename.
36976
36977 * conf/i386-linuxbios.rmk: Renamed to ...
36978 * conf/i386-coreboot.rmk: ... this.
36979 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36980 * configure.ac: Accept "coreboot" as input platform (but maintain
36981 compatibility with "linuxbios").
36982 * include/grub/i386/linuxbios: Renamed to ...
36983 * include/grub/i386/coreboot: ... this.
36984
20011694 369852008-07-17 Bean <bean123ch@gmail.com>
36986
36987 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 36988 (appleldr_mod_SOURCE): New variable.
20011694 36989 (appleldr_mod_CFLAGS): Likewise.
36990 (appleldr_mod_LDFLAGS): Likewise.
36991 (pci_mod_SOURCES): Likewise.
36992 (pci_mod_CFLAGS): Likewise.
36993 (pci_mod_LDFLAGS): Likewise.
36994 (lspci_mod_SOURCES): Likewise.
36995 (lspci_mod_CFLAGS): Likewise.
36996 (lspci_mod_LDFLAGS): Likewise.
36997
36998 * conf/x86_64-efi.rmk: New file.
36999
37000 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
37001 macro.
37002 (grub_efidisk_write): Likewise.
37003
37004 * include/efi/api.h (efi_call_0): New macro.
37005 (efi_call_1): Likewise.
37006 (efi_call_2): Likewise.
37007 (efi_call_3): Likewise.
37008 (efi_call_4): Likewise.
37009 (efi_call_5): Likewise.
37010 (efi_call_6): Likewise.
37011
37012 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
37013 grub_rescue_cmd_chainloader.
37014
37015 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
37016 (grub_pe32_optional_header): Change some fields based on i386 or
37017 x86_64 platform.
37018 (GRUB_PE32_PE32_MAGIC): Likewise.
37019
37020 * include/grub/efi/uga_draw.h: New file.
37021
37022 * include/grub/elf.h (STN_ABS): New constant.
37023 (R_X86_64_NONE): Relocation constant for x86_64.
37024 (R_X86_64_64): Likewise.
37025 (R_X86_64_PC32): Likewise.
37026 (R_X86_64_GOT32): Likewise.
37027 (R_X86_64_PLT32): Likewise.
37028 (R_X86_64_COPY): Likewise.
37029 (R_X86_64_GLOB_DAT): Likewise.
37030 (R_X86_64_JUMP_SLOT): Likewise.
37031 (R_X86_64_RELATIVE): Likewise.
37032 (R_X86_64_GOTPCREL): Likewise.
37033 (R_X86_64_32): Likewise.
37034 (R_X86_64_32S): Likewise.
37035 (R_X86_64_16): Likewise.
37036 (R_X86_64_PC16): Likewise.
37037 (R_X86_64_8): Likewise.
37038 (R_X86_64_PC8): Likewise.
37039
37040 * include/grub/i386/efi/pci.h: New file.
37041
37042 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
37043 Change it value based on platform.
37044 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
37045 (GRUB_E820_RAM): Likewise.
37046 (GRUB_E820_RESERVED): Likewise.
37047 (GRUB_E820_ACPI): Likewise.
37048 (GRUB_E820_NVS): Likewise.
37049 (GRUB_E820_EXEC_CODE): Likewise.
37050 (GRUB_E820_MAX_ENTRY): Likewise.
37051 (grub_e820_mmap): New structure.
37052 (linux_kernel_header): Change the efi field according to different
37053 kernel version, also field from linux_kernel_header.
37054
37055 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
37056
37057 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
37058 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
37059 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
37060 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
37061 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
37062 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
37063 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
37064 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
37065 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
37066 (GRUB_PCI_ADDR_IO_MASK): Likewise.
37067
37068 * include/grub/x86_64/efi/kernel.h: New file.
37069
37070 * include/grub/x86_64/efi/loader.h: Likewise.
37071
37072 * include/grub/x86_64/efi/machine.h: Likewise.
37073
37074 * include/grub/x86_64/efi/pci.h: Likewise.
37075
37076 * include/grub/x86_64/efi/time.h: Likewise.
37077
37078 * include/grub/x86_64/linux.h: Likewise.
37079
37080 * include/grub/x86_64/setjmp.h: Likewise.
37081
37082 * include/grub/x86_64/time.h: Likewise.
37083
37084 * include/grub/x86_64/types.h: Likewise.
37085
37086 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
37087 GRUB_TARGET_SIZEOF_VOID_P.
37088
37089 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
37090 (grub_efi_locate_handle): Likewise.
37091 (grub_efi_open_protocol): Likewise.
37092 (grub_efi_set_text_mode): Likewise.
37093 (grub_efi_stall): Likewise.
37094 (grub_exit): Likewise.
37095 (grub_reboot): Likewise.
37096 (grub_halt): Likewise.
37097 (grub_efi_exit_boot_services): Likewise.
37098 (grub_get_rtc): Likewise.
37099
37100 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
37101 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
37102 (grub_efi_allocate_pages): Wrap efi calls.
37103 (grub_efi_free_pages): Wrap efi calls.
37104 (grub_efi_get_memory_map): Wrap efi calls.
37105
37106 * kern/x86_64/dl.c: New file.
37107
37108 * kern/x86_64/efi/callwrap.S: Likewise.
37109
37110 * kern/x86_64/efi/startup.S: Likewise.
37111
37112 * loader/efi/appleloader.c: Likewise.
37113
37114 * loader/efi/chainloader.c (cmdline): New variable.
37115 (grub_chainloader_unload): Wrap efi calls.
37116 (grub_chainloader_boot): Likewise.
37117 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
37118 command line.
37119
37120 * loader/efi/chainloader_normal.c (chainloader_command):
37121 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
37122 command line.
37123
37124 * loader/i386/efi/linux.c (allocate_pages): Change allocation
37125 method.
37126 (grub_e820_add_region): New function.
37127 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
37128 booting.
37129 (grub_find_video_card): New function.
37130 (grub_linux_setup_video): New function.
37131 (grub_rescue_cmd_linux): Probe for video information.
37132
37133 * normal/x86_64/setjmp.S: New file.
37134
37135 * term/efi/console.c (map_char): New function.
37136 (grub_console_putchar): Map unicode char.
37137 (grub_console_checkkey): Wrap efi calls.
37138 (grub_console_getkey): Likewise.
37139 (grub_console_getwh): Likewise.
37140 (grub_console_gotoxy): Likewise.
37141 (grub_console_cls): Likewise.
37142 (grub_console_setcolorstate): Likewise.
37143 (grub_console_setcursor): Likewise.
37144
37145 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
37146
59652a20 371472008-07-16 Pavel Roskin <proski@gnu.org>
37148
ef294055 37149 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
37150 format strings.
37151
59652a20 37152 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
37153 pointer, not an integer. This fixes a warning and prevents
37154 precision loss on 64-bit systems.
37155 (relocate_addresses): Remove unneeded cast.
37156
afc3b5d7 371572008-07-15 Pavel Roskin <proski@gnu.org>
37158
506b2b3e 37159 * kern/i386/ieee1275/init.c: Include grub/cache.h.
37160
62ead89c 37161 * term/ieee1275/ofconsole.c: Disable code unused on i386.
37162
c4cd51d7 37163 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
37164 Fix comparison between signed and unsigned.
37165
0d3d8f28 37166 * include/grub/i386/ieee1275/console.h: Declare
37167 grub_console_init() and grub_console_fini().
37168
8804b286 37169 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
37170 It's empty and unused.
37171
ee01cf35 37172 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
37173 beginning to avoid warnings with some compilers.
37174
afc3b5d7 37175 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
37176 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
37177
e4e8eaa5 371782008-07-14 Pavel Roskin <proski@gnu.org>
37179
407aceb4 37180 * kern/env.c (grub_register_variable_hook): Don't copy empty
37181 string, it leaks memory. Pass "" to grub_env_set(), it should
37182 handle constant strings.
37183
e4e8eaa5 37184 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
37185 * commands/cmp.c (grub_cmd_cmp): Likewise.
37186 * kern/dl.c (grub_dl_flush_cache): Likewise.
37187 (grub_dl_load_core): Likewise.
37188 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
37189 (grub_elf64_load_phdrs): Likewise.
37190
d4e2dad3 371912008-07-13 Pavel Roskin <proski@gnu.org>
37192
37193 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
37194 between signed and unsigned.
37195 (LzmaEnc_Finish): Fix warning about an unused parameter.
37196
aa24b516 371972008-07-13 Bean <bean123ch@gmail.com>
37198
37199 * Makefile.in (enable_lzo): New rule.
37200
37201 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
37202
37203 * configure.ac (ENABLE_LZO): New option --enable-lzo.
37204
37205 * boot/i386/pc/lnxboot.S: #include <config.h>.
37206
37207 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 37208 its value according to the compression algorithm used, lzo or lzma.
aa24b516 37209
37210 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
37211 compression algorithm according to configure macro.
37212
37213 * kern/i386/pc/startup.S (codestart): Likewise.
37214
37215 * kern/i386/pc/lzma_decode.S: New file.
37216
37217 * include/grub/lib/LzFind.h: Likewise.
37218
37219 * include/grub/lib/LzHash.h: Likewise.
37220
37221 * include/grub/lib/LzmaDec.h: Likewise.
37222
37223 * include/grub/lib/LzmaEnc.h: Likewise.
37224
37225 * include/grub/lib/LzmaTypes.h: Likewise.
37226
37227 * lib/LzFind.c: Likewise.
37228
37229 * lib/LzmaDec.c: Likewise.
37230
37231 * lib/LzmaEnc.c: Likewise.
37232
4ae821ac 372332008-07-13 Bean <bean123ch@gmail.com>
37234
37235 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
37236 (grub_ext4_extent_header): New structure.
37237 (grub_ext4_extent): Likewise.
37238 (grub_ext4_extent_idx): Likewise.
37239 (grub_ext4_find_leaf): New function.
37240 (grub_ext2_read_block): Handle extents.
37241
9a745147 372422008-07-12 Robert Millan <rmh@aybabtu.com>
37243
37244 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
37245
d49a4cf6 372462008-07-11 Robert Millan <rmh@aybabtu.com>
37247
37248 * util/grub.d/40_custom.in: New file. Example on how to add custom
37249 entries to /etc/grub.d.
37250 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
37251 40_custom (implicitly, by merging all the grub.d rules).
37252
947414b4 372532008-07-11 Pavel Roskin <proski@gnu.org>
37254
0059cf6f 37255 * commands/read.c (grub_getline): Fix invalid memory access.
37256 Don't add newline to the variable value.
37257
947414b4 37258 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
37259 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
37260 (serial_hw_get_port): Check validity of the port number.
37261 (grub_cmd_serial): Check return value of serial_hw_get_port().
37262
62a02d00 372632008-07-07 Pavel Roskin <proski@gnu.org>
37264
37265 * boot/i386/pc/diskboot.S (notification_string): Replace
37266 "Loading kernel" with just "loading". This is shorter, less
37267 confusing and saves a few bytes for possible future changes.
37268
3e5581b0 372692008-07-05 Pavel Roskin <proski@gnu.org>
37270
ea387a48 37271 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
37272 size for ATAPI devices, they are undefined. Output sector
37273 number in decimal form.
37274
3e5581b0 37275 * disk/ata.c: Use named constants for status bits.
37276
fdecb8fd 372772008-07-04 Pavel Roskin <proski@gnu.org>
37278
bcd35b90 37279 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
37280 grub_addr_t before casting it to the void pointer to fix a
37281 warning. Non-addressable regions are discarded earlier.
37282 (grub_arch_modules_addr): Cast _end to grub_addr_t.
37283 * kern/i386/linuxbios/table.c: Include grub/misc.h.
37284 (check_signature): Don't shadow table_header.
37285 (grub_linuxbios_table_iterate): Cast numeric constants to
37286 grub_linuxbios_table_header_t.
37287 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
37288 grub_stop().
37289
af58ab3d 37290 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
37291 prevent warnings.
37292
1759aa57 37293 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
37294 pointer, which can cause warnings. Support 64-bit addresses.
37295
fdecb8fd 37296 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
37297 of sizeof(long). This fixes PowerPC image generation on x86_64.
37298
8516d2a8 372992008-07-04 Robert Millan <rmh@aybabtu.com>
37300
37301 This fixes a performance issue when pc & gpt partmap iterators
37302 didn't abort iteration even after our hook found what it was
fe987087 37303 looking for (often causing expensive probes of non-existent drives).
8516d2a8 37304
37305 Some callers relied on previous buggy behaviour, since they would
34c44600 37306 raise an error when their own hooks caused early abortion of its
8516d2a8 37307 iteration.
37308
37309 * kern/device.c (grub_device_open): Improve error message.
37310 * disk/lvm.c (grub_lvm_open): Likewise.
37311 * disk/raid.c (grub_raid_open): Likewise.
37312
37313 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
37314 when hook requests it, independently of grub_errno.
37315 (pc_partition_map_probe): Do not fail when find_func() caused
37316 early abortion of pc_partition_map_iterate().
37317
37318 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
37319 when hook requests it, independently of grub_errno.
37320 (gpt_partition_map_probe): Do not fail when find_func() caused
37321 early abortion of gpt_partition_map_iterate().
37322
37323 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37324 when hook requests it, independently of grub_errno. Do not fail when
37325 part_map_iterate_hook() caused early abortion of p->iterate().
37326
37327 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37328 when grub_partition_iterate() returned with non-zero.
37329
277d0de9 373302008-07-03 Pavel Roskin <proski@gnu.org>
37331
37332 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37333 like we do in grub_ata_pio_read().
37334 (grub_ata_readwrite): Always write individual sectors. Fix the
37335 sector count for the remainder.
37336 (grub_ata_write): Enable writing to ATA devices. Correctly
37337 report error for ATAPI devices.
37338
d4c9b428 373392008-07-02 Pavel Roskin <proski@gnu.org>
37340
e43fc690 37341 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37342 warning.
37343
f707af42 37344 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37345 for every read sector, we already increment it for the whole
37346 batch. This fixes reading more than 256 sectors at once.
37347
11e16b15 37348 * util/grub-editenv.c (cmd_info): Cast argument to long
37349 explicitly. ptrdiff_t reduces to int on i386.
37350
cbabfdd4 37351 * util/grub-editenv.c (main): Be specific which parameter is
37352 missing.
37353
b8fbce0a 37354 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37355 (memdisk): Make memdisk_orig_addr a pointer.
37356
c9c8e606 37357 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37358 for file offsets, use grub_off_t instead. Fix printf format
37359 warnings.
37360
ca62e598 37361 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37362 there. Real unexpected warnings should not drown in the noise
37363 about known problems.
37364
ce8d1766 37365 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37366 grub_disk_addr_t for memory addresses.
37367
00c7a56a 37368 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37369 explicitly to fix a warning.
37370
08d3ef09 37371 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37372
cb71ba20 37373 * Makefile.in (MODULE_LDFLAGS): New variable.
37374 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37375 the linker accepts --build-id=none.
37376 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37377 MODULE_LDFLAGS.
37378 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37379
d4c9b428 37380 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37381 those in Linux XFS code. Provide a way to access 64-bit parent
37382 inode.
37383 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37384 the end of struct grub_xfs_dir_header.
37385
d4156eee 373862008-07-02 Bean <bean123ch@gmail.com>
37387
37388 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37389 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37390 and GRUB_IEEE1275_FLAG_NO_ANSI.
37391
37392 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37393 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37394 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37395
37396 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37397 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37398
37399 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37400 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37401
37402 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37403 esc sequence on non ANSI terminal.
37404 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37405
37406 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37407 beginning of file.
37408
2270f77b 374092008-07-02 Bean <bean123ch@gmail.com>
37410
37411 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37412 (grub_editenv_SOURCES): New variable.
37413 (pkglib_MODULES): Add loadenv.mod.
37414 (loadenv_mod_SOURCES): New variable.
37415 (loadenv_mod_CFLAGS): Likewise.
37416 (loadenv_mod_LDFLAGS): Likewise.
37417
37418 * include/grub/envblk.h: New file.
37419
37420 * util/envblk.c: New file.
37421
37422 * util/grub-editenv.c: New file.
37423
37424 * commands/loadenv.c: New file.
37425
0e9e51ec 374262008-07-01 Pavel Roskin <proski@gnu.org>
37427
d89b7634 37428 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37429 not unsigned char. This fixes warnings and is consistent with
37430 other tags.
37431
bf1835b1 37432 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37433
8222a04b 37434 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37435
6a42d99d 37436 * term/tparm.c (analyze): Always set *popcount.
37437
10b159d1 37438 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37439 cast to fix a warning.
37440
b8789f6c 37441 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37442 cast to suppress a warning.
37443
29d7e38a 37444 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37445 grub_fshelp_read_file() expects.
37446
f341f669 37447 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37448 write uuid as a 32-bit value in CPU byte order, so declare and
37449 use it as such.
37450
0e9e51ec 37451 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37452 long if the format specifier expects it.
37453 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37454 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37455 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37456 long to fix a warning.
37457 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37458 grub_dprintf() arguments to fix warnings.
37459
3aefa857 374602008-06-30 Pavel Roskin <proski@gnu.org>
37461
56c7668b 37462 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37463 install_bsd_part immediately before core.img is embedded or
37464 modified on disk. This fixes core.img verification if core.img
37465 cannot be embedded.
37466
3aefa857 37467 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37468 core_path to calculate the blocklist.
37469 Patch from Javier Martín <lordhabbit@gmail.com>
37470
5444088d 374712008-06-29 Robert Millan <rmh@aybabtu.com>
37472
37473 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37474 block to disk block.
37475 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37476 Patch from Niels Böhm <bitbucket@arcor.de>
37477
674835c8 374782008-06-29 Robert Millan <rmh@aybabtu.com>
37479
37480 * util/update-grub_lib.in (font_path): Search for fonts in
37481 /boot/grub first, which is more likely to be readable (we aren't
37482 deciding where fonts live, just looking for them).
37483
f527dbc8 374842008-06-26 Pavel Roskin <proski@gnu.org>
37485
6c2d8df6 37486 * util/biosdisk.c (read_device_map): Don't leave dead map
37487 entries for devices failing stat() check.
37488
f527dbc8 37489 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37490 core_path_dev for the core.img path on the target device.
37491
aebe3d13 374922008-06-26 Robert Millan <rmh@aybabtu.com>
37493
37494 * disk/fs_uuid.c: New file.
37495 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37496 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37497 (fs_uuid_mod_LDFLAGS): New variables.
37498 * include/grub/disk.h (grub_disk_dev_id): Add
37499 `GRUB_DISK_DEVICE_UUID_ID'.
37500 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37501 implement iterate().
37502
37aaf354 375032008-06-26 Robert Millan <rmh@aybabtu.com>
37504
37505 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37506 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37507 Linux image includes no initrd.
37508
25ff262a 375092008-06-21 Javier Martín <lordhabbit@gmail.com>
37510
37511 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37512 call to resolve the core image location that effectively appended the
37513 name twice.
37514
76a2bd44 375152008-06-21 Robert Millan <rmh@aybabtu.com>
37516
37517 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37518 call from here ...
37519
37520 * util/grub.d/10_hurd.in: ... to here ...
37521 * util/grub.d/10_linux.in: ... and here.
37522
650e1c79 375232008-06-19 Robert Millan <rmh@aybabtu.com>
37524
fe987087 37525 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 37526 after it has been set by grub_machine_set_prefix().
37527
6ce63911 375282008-06-19 Robert Millan <rmh@aybabtu.com>
37529
37530 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37531 search result when not saving to variable, not the other way around.
37532 When saving to variable, abort iteration as soon as a match is found.
37533
73940cec 375342008-06-19 Robert Millan <rmh@aybabtu.com>
37535
37536 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37537 check for partition that provides /boot/grub. Its logic is flawed,
37538 as it prevents prepare_grub_to_access_device() from being called
37539 multiple times.
37540
3c62a39d 375412008-06-19 Robert Millan <rmh@aybabtu.com>
37542
37543 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37544 "insmod" command directly when abstraction modules are needed,
fe987087 37545 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 37546 since it had already been processed).
37547
47395a42 375482008-06-19 Pavel Roskin <proski@gnu.org>
37549
37550 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37551 changed. This is needed in case GRUB_LIBDIR changes.
37552 * conf/i386-ieee1275.rmk: Likewise.
37553 * conf/i386-linuxbios.rmk: Likewise.
37554 * conf/i386-pc.rmk: Likewise.
37555 * conf/powerpc-ieee1275.rmk: Likewise.
37556
a145ac2d 375572008-06-18 Pavel Roskin <proski@gnu.org>
37558
37559 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37560 kernel_elf_symlist.c to symlist.c for consistency with other
37561 architectures. Update all users.
37562 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37563
7847c51e 375642008-06-18 Robert Millan <rmh@aybabtu.com>
37565
37566 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37567 it in prefix.
37568
37569 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37570 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37571 a RAID device, run setup() for all members independently on whether
37572 LVM abstraction is being used.
37573 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37574 If grub-mkimage has set `*install_dos_part == -2', don't override this
37575 value.
37576 Perform *install_dos_part adjustments independently on whether
37577 we're embedding or not.
37578 Clarify error message when image is too big for embedding.
37579 Remove duplicate *install_dos_part stanza.
37580
b23e5644 375812008-06-17 Robert Millan <rmh@aybabtu.com>
37582
37583 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37584 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37585 variables.
37586 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37587 values in grub_ofconsole_normal_color and
37588 grub_ofconsole_highlight_color (they're not directly related to
37589 background and foreground).
37590 (grub_ofconsole_setcolorstate): Extract background and foreground
37591 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37592
0aac2f79 375932008-06-17 Robert Millan <rmh@aybabtu.com>
37594
37595 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37596 /boot/grub for the check in last commit, not /boot (they could be
37597 different partitions).
37598
3cca7ef3 375992008-06-16 Robert Millan <rmh@aybabtu.com>
37600
37601 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37602 asked to setup access for the same partition that provides /boot,
37603 don't bother using UUIDs since our root already has the value we
37604 want.
37605
347396d8 376062008-06-16 Robert Millan <rmh@aybabtu.com>
37607
37608 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37609 I2O devices.
37610 Patch from Sven Mueller <sven@debian.org>.
37611
991477f8 376122008-06-16 Robert Millan <rmh@aybabtu.com>
37613
37614 * util/update-grub.in: Check for $EUID instead of $UID.
37615 Reported by Vincent Zweije.
37616
d31a32a1 376172008-06-16 Bean <bean123ch@gmail.com>
37618
fe987087 37619 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 37620 (grub_ext2_read_block): Likewise.
37621 (grub_ext2_read_inode): Likewise.
37622 (grub_ext2_mount): Likewise.
37623 (grub_ext2_close): Likewise.
37624 (grub_ext3_get_journal): Removed.
37625
fe987087 37626 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 37627 (grub_reiserfs_read_symlink): Likewise.
37628 (grub_reiserfs_mount): Likewise.
37629 (grub_reiserfs_open): Likewise.
37630 (grub_reiserfs_read): Likewise.
37631 (grub_reiserfs_close): Likewise.
37632 (grub_reiserfs_get_journal): Removed.
37633
37634 * fs/fshelp.c (grub_fshelp_read): Removed.
37635 (grub_fshelp_map_block): Likewise.
37636
37637 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37638 (grub_fshelp_journal): Likewise.
37639 (grub_fshelp_read): Likewise.
37640 (grub_fshelp_map_block): Likewise.
37641
3540a760 376422008-06-16 Pavel Roskin <proski@gnu.org>
37643
37644 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37645 floating point anymore.
37646 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37647
95614c84 376482008-06-15 Pavel Roskin <proski@gnu.org>
37649
37650 * commands/ls.c (grub_ls_list_files): Use integer calculations
37651 for human readable format, avoid floating point use.
37652 * kern/misc.c (grub_ftoa): Remove.
37653 (grub_vsprintf): Remove floating point support.
37654
50465dd6 376552008-06-15 Robert Millan <rmh@aybabtu.com>
37656
fe6b695a 37657 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 37658 devices.
37659 Reported by Max Vozeler.
37660
a9207284 376612008-06-15 Robert Millan <rmh@aybabtu.com>
37662
37663 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37664 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37665 skipped later.
37666 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37667 the beginning of the prefix.
37668
37669 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37670 It is assumed that if we have a memdisk, grub-mkimage has set
37671 grub_prefix to include the "(memdisk)" drive in it.
37672
a7cbd45a 376732008-06-15 Robert Millan <rmh@aybabtu.com>
37674
37675 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37676 Initialize keyboard controller after registering the terminal, so that
37677 grub_printf() can be called from grub_keyboard_controller_init().
37678
21cf716a 376792008-06-15 Robert Millan <rmh@aybabtu.com>
37680
37681 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37682 extent-btree which is written as big endian on disk.
37683 Reported by Alain Greppin <al@chilibi.org>.
37684
23a64d8e 376852008-06-14 Robert Millan <rmh@aybabtu.com>
37686
37687 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37688 * util/i386/pc/grub-install.in (modules): Likewise.
37689
d687651c 376902008-06-13 Pavel Roskin <proski@gnu.org>
37691
37692 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37693
dfe9ddd4 376942008-06-13 Bean <bean123ch@gmail.com>
37695
37696 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37697
37698 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37699
37700 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37701 to indicate sparse block.
37702
16ae7781 377032008-06-12 Pavel Roskin <proski@gnu.org>
37704
e6d1a308 37705 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37706 number, grub_fshelp_read() does it for us.
37707
16ae7781 37708 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37709 linear disk read with journal translation.
37710 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37711 * include/grub/fshelp.h: Declare grub_fshelp_read().
37712
40fd3a2b 377132008-06-09 Pavel Roskin <proski@gnu.org>
37714
37715 * fs/minix.c (grub_minix_mount): Handle error reading
37716 superblock.
37717
f5679726 377182008-06-08 Robert Millan <rmh@aybabtu.com>
37719
37720 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37721 don't append the RAID prefix afterwards.
37722 Reported by Clint Adams.
37723
ce525529 377242008-06-08 Robert Millan <rmh@aybabtu.com>
37725
37726 Based on description from Pavel:
37727 * kern/disk.c (grub_disk_check_range): Rename to ...
37728 (grub_disk_adjust_range): ... this. Add a comment explaining the
37729 tasks performed by this function.
37730
ad4936a0 377312008-06-08 Robert Millan <rmh@aybabtu.com>
37732
37733 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37734 `num_serial' (for consistency with other variables).
37735 (struct grub_ntfs_data): Add `uuid' member.
37736 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37737 (grub_ntfs_uuid): New function.
37738 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37739
dc20b0f9 377402008-06-07 Pavel Roskin <proski@gnu.org>
37741
37742 * util/biosdisk.c (open_device): Revert last change to the
37743 function, it broke installation. The sector needs to be
37744 different dependent on which device is opened.
37745
c5e3cfba 377462008-06-06 Robert Millan <rmh@aybabtu.com>
37747
37748 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37749 rest of GRUB, and breakage doesn't happen if its value were modified.
37750
37751 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37752 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37753 a constant (same value).
37754 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37755 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37756
26a1f8c4 377572008-06-06 Robert Millan <rmh@aybabtu.com>
37758
37759 * util/biosdisk.c (open_device): Do not modify sector offset when
37760 accessing a partition. kern/disk.c already handles this for us.
37761
25d6b327 377622008-06-06 Robert Millan <rmh@aybabtu.com>
37763
37764 * util/grub-emu.c (grub_machine_init): Move code in this function from
37765 here ...
37766 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37767 segfault in case grub_printf() is called).
37768
37769 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37770 grub_probe. Update all users not to explicitly add it again.
37771 (grub_device): New variable; contains corresponding device for grubdir.
37772 (fs_module, partmap_module, devabstraction_module): Pass
37773 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37774 every time.
37775
9ece62fb 377762008-06-05 Robert Millan <rmh@aybabtu.com>
37777
37778 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37779 is found, print it (same layout as with labels).
37780
1ad36d37 377812008-06-04 Robert Millan <rmh@aybabtu.com>
37782
37783 * util/biosdisk.c (get_drive): Rename to ...
37784 (find_grub_drive): ... this. Update all users.
37785
37786 (get_os_disk): Rename to ...
37787 (convert_system_partition_to_system_disk): ... this. Update all users.
37788
37789 (find_drive): Rename to ...
37790 (find_system_device): ... this. Update all users.
37791
e6a30859 377922008-06-04 Robert Millan <rmh@aybabtu.com>
37793
37794 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37795 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37796 (make_device_map): Likewise.
37797
00c108a4 377982008-06-01 Robert Millan <rmh@aybabtu.com>
37799
37800 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37801 before dereferencing it.
37802
37803 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37804 union with fat12/fat16-specific ones. Add some new fields, including
37805 `num_serial' for both versions.
37806 (struct grub_fat_data): Add `uuid' member.
37807 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37808 names. Initialize `data->uuid' using `num_serial'.
37809 (grub_fat_uuid): New function.
37810 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37811
37812 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37813 (grub_reiserfs_uuid): New function.
37814 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37815 member.
37816
37817 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37818 (grub_xfs_uuid): New function.
37819 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37820
1385c5bb 378212008-06-01 Robert Millan <rmh@aybabtu.com>
37822
37823 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37824 code that is backward compatible with pre-uuid search command.
37825
c682dfd7 378262008-05-31 Robert Millan <rmh@aybabtu.com>
37827
37828 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37829 floppies after everything else, to ensure floppy drive isn't accessed
37830 unnecessarily (patch from Bean).
37831
b7db5d47 378322008-05-31 Robert Millan <rmh@aybabtu.com>
37833
37834 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37835 not print device names when we were asked to set a variable.
37836
6e037aa9 378372008-05-31 Robert Millan <rmh@aybabtu.com>
37838
37839 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37840 using "cursor-on" and "cursor-off" commands (understood at least by
37841 the Open Firmware flavour on OLPC).
37842
41305bc8 378432008-05-31 Michael Gorven <michael@gorven.za.net>
37844
37845 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37846 on and off sequences.
37847
69ba137e 378482008-05-31 Robert Millan <rmh@aybabtu.com>
37849
37850 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37851 * util/update-grub.in: Likewise.
37852
520ae21b 378532008-05-30 Pavel Roskin <proski@gnu.org>
37854
37855 * util/biosdisk.c (linux_find_partition): Simplify logic and
37856 make the code more universal. Keep special processing for
37857 devfs, but use a simple rule for all other devices. If the
37858 device ends with a number, append 'p' and the partition number.
37859 Otherwise, append only the partition number.
37860
5786569b 378612008-05-30 Robert Millan <rmh@aybabtu.com>
37862
37863 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37864 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37865 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37866 the `root' parameter to Linux.
37867
51500452 378682008-05-30 Robert Millan <rmh@aybabtu.com>
37869
37870 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37871 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37872 --fs_uuid with --fs-uuid.
37873 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37874 all filesystems support them).
37875
811d3878 378762008-05-30 Robert Millan <rmh@aybabtu.com>
37877
37878 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 37879 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 37880
cab63c95 378812008-05-30 Robert Millan <rmh@aybabtu.com>
37882
37883 * util/grub.d/00_header.in: Remove obsolete comment referencing
37884 convert_system_path_to_grub_path().
37885 * util/update-grub.in: Likewise.
37886 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37887 (convert_system_path_to_grub_path): Add a warning message explaining
37888 that this function is deprecated. Rely on is_path_readable_by_grub()
37889 for the readability checks.
37890 (font_path): Use is_path_readable_by_grub() for the readability
37891 check rather than convert_system_path_to_grub_path().
37892
972e2f7a 378932008-05-30 Robert Millan <rmh@aybabtu.com>
37894
37895 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37896 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37897 converting it first.
37898 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37899 grub.cfg for access to font file, and afterwards call it again to set
37900 the root device.
37901
62191274 379022008-05-30 Robert Millan <rmh@aybabtu.com>
37903
37904 * commands/search.c (options): Add --fs_uuid option.
37905 (search_fs_uuid): New function.
37906 (grub_cmd_search): Fix --set argument passing.
37907 Use search_fs_uuid() when requested via --fs_uuid.
37908 (grub_search_init): Update help message.
37909 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37910 and redeclare it as an array of 16-bit words.
37911 (grub_ext2_uuid): New function.
37912 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37913 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37914 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37915 (GRUB_DEVICE_BOOT_UUID): New variables.
37916 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37917 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37918 whenever possible.
37919 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37920 just assume `root' variable has the right value.
37921 * util/grub.d/10_linux.in: Likewise.
37922 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37923 via PRINT_FS_UUID.
37924 (main): Recognise `-t fs_uuid' argument.
37925
01b73ec8 379262008-05-30 Robert Millan <rmh@aybabtu.com>
37927
37928 * util/biosdisk.c (map): Redefine structure to hold information
37929 about GRUB drive name.
fe6b695a 37930 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 37931 drive names.
37932 (call_hook): Remove.
37933 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37934 member. Assume drive has partitions.
37935 (grub_util_biosdisk_open): Access device names via `.device' struct
37936 member.
37937 (open_device): Likewise.
37938 (find_drive): Likewise.
37939 (read_device_map): Adjust map[] usage to match the new struct
37940 definition. Don't check for duplicates (still possible, but not cheap
37941 anymore).
37942 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37943 (make_device_name): Remove assumption of BIOS-like drive names.
37944
22f16596 379452008-05-30 Pavel Roskin <proski@gnu.org>
37946
37947 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37948 compiling execute.c doesn't need grub_script.tab.h anymore.
37949 (normal/command.c_DEPENDENCIES): Likewise.
37950 (normal/function.c_DEPENDENCIES): Likewise.
37951 * conf/i386-ieee1275.rmk: Likewise.
37952 * conf/i386-linuxbios.rmk: Likewise.
37953 * conf/i386-pc.rmk: Likewise.
37954 * conf/powerpc-ieee1275.rmk: Likewise.
37955 * conf/sparc64-ieee1275.rmk: Likewise.
37956
528ad8f2 379572008-05-29 Pavel Roskin <proski@gnu.org>
37958
d1dff95d 37959 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37960 when scanning metadata for volume group name.
37961
528ad8f2 37962 * include/grub/script.h: Don't include grub_script.tab.h. It's
37963 a generated file, which may only be included from the files with
37964 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37965 use union YYSTYPE, as the later allows forward declaration.
37966 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37967
47248e08 379682008-05-29 Robert Millan <rmh@aybabtu.com>
37969
37970 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37971 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37972 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37973 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37974 scan codes.
37975
ee632529 379762008-05-29 Robert Millan <rmh@aybabtu.com>
37977
37978 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37979 control key combinations.
37980
eee96e08 379812008-05-29 Robert Millan <rmh@aybabtu.com>
37982
37983 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37984 * util/ieee1275/grub-install.in: ... to here.
37985 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37986 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37987 (grub_install_SOURCES): Likewise.
37988
da9a6a94 379892008-05-29 Robert Millan <rmh@aybabtu.com>
37990
37991 * fs/affs.c: Update copyright year.
37992 * fs/ext2.c: Likewise.
37993 * fs/fshelp.c: Likewise.
37994 * fs/hfsplus.c: Likewise.
37995 * fs/ntfs.c: Likewise.
37996 * fs/xfs.c: Likewise.
37997 * include/grub/fshelp.h: Likewise.
37998 * util/grub-mkdevicemap.c: Likewise.
37999
12e65f3a 380002008-05-28 Robert Millan <rmh@aybabtu.com>
38001
38002 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
38003 might need to be fatfs to support some firmware implementations
38004 (e.g. OFW or EFI).
38005
23023641 380062008-05-28 Robert Millan <rmh@aybabtu.com>
38007
38008 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
38009 devices.
38010 * util/grub-mkdevicemap.c (get_mmc_disk_name)
38011 (make_device_map): Likewise.
38012
887d2619 380132008-05-20 Bean <bean123ch@gmail.com>
38014
38015 * fs/fshelp.c (grub_fshelp_map_block): New function.
38016 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
38017 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
38018
38019 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
38020 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
38021 (grub_fshelp_journal): New structure.
38022 (grub_fshelp_map_block): New function prototype.
38023 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
38024 (grub_fshelp_map_block): Likewise.
38025
38026 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
38027 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
38028 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
38029 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
38030 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
38031 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
38032 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
38033 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
38034 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
38035 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
38036 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
38037 (grub_ext2_sblock): New members for journal support.
38038 (grub_ext3_journal_header): New structure.
38039 (grub_ext3_journal_revoke_header): Likewise.
38040 (grub_ext3_journal_block_tag): Likewise.
38041 (grub_ext3_journal_sblock): Likewise.
38042 (grub_fshelp_node): New members logfile and journal.
38043 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
38044 grub_fshelp_map_block to get real block number.
38045 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
38046 number.
38047 (grub_ext2_read_inode): Likewise.
38048 (grub_ext3_get_journal): New function.
38049 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
38050 (grub_ext2_close): Release memory used by journal.
38051
38052 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
38053 (REISERFS_MAGIC_DESC_BLOCK): New macro.
38054 (grub_reiserfs_transaction_header): Renamed to
38055 grub_reiserfs_description_block, replace field data with real_blocks.
38056 (grub_reiserfs_commit_block): New structure.
38057 (grub_reiserfs_data): New member journal.
38058 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
38059 number.
38060 (grub_reiserfs_read_symlink): Likewise.
38061 (grub_reiserfs_iterate_dir): Likewise.
38062 (grub_reiserfs_open): Likewise.
38063 (grub_reiserfs_read): Likewise.
38064 (grub_reiserfs_get_journal): New function.
38065 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
38066 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
38067 using grub_reiserfs_get_journal.
38068 (grub_reiserfs_close): Release memory used by journal.
38069
38070 * fs/affs.c (grub_affs_read_block): Change block type to
38071 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
38072
38073 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
38074
38075 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
38076
38077 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
38078
38079 * fs/udf.c (grub_udf_read_block): Change block type to
38080 grub_disk_addr_t. Use type cast to avoid warning.
38081
38082 * fs/xfs.c (grub_xfs_read_block): Likewise.
38083
b7c6bed5 380842008-05-16 Christian Franke <franke@computer.org>
38085
38086 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
38087 to ensure that break with ESC will always work.
38088 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
38089 Remove ESC from keyboard queue.
38090
eedf167f 380912008-05-16 Christian Franke <franke@computer.org>
38092
38093 * util/biosdisk.c: [__CYGWIN__] Add includes.
38094 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
38095 (get_os_disk): Move variable declarations to OS specific
38096 parts to avoid warning.
38097 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
38098 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
38099 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
38100 Cygwin.
38101 * util/getroot.c: [__CYGWIN__] Add includes.
38102 (strip_extra_slashes): Fix "/" case.
38103 [__CYGWIN__] (get_win32_path): New function.
38104 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
38105 [__CYGWIN__] (find_root_device): Disable.
38106 [__CYGWIN__] (get_bootsec_serial): New function.
38107 [__CYGWIN__] (find_cygwin_root_device): Likewise.
38108 [__linux__] (grub_guess_root_device): Add early returns to simplify
38109 structure.
38110 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
38111 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
38112 check for Linux only.
38113
a079699e 381142008-05-15 Bean <bean123ch@gmail.com>
38115
38116 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
38117 keyboard hang problem in apple's intel mac.
38118
1cf4059a 381192008-05-09 Robert Millan <rmh@aybabtu.com>
38120
38121 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
38122 devices.
38123 * util/grub-mkdevicemap.c (get_virtio_disk_name)
38124 (make_device_map): Likewise.
38125 Reported by Aurelien Jarno <aurel32@debian.org>
38126
ed759390 381272008-05-07 Ian Campbell <ijc@hellion.org.uk>
38128
38129 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
38130 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
38131 (make_device_map): Output entries for xvd type disks.
38132
b56c4eaa 381332008-05-07 Robert Millan <rmh@aybabtu.com>
38134
38135 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
38136 devices.
38137 * util/grub-mkdevicemap.c (get_cciss_disk_name)
38138 (make_device_map): Likewise.
38139 Reported by Roland Dreier <rdreier@cisco.com>
38140
7f8866ed 381412008-05-07 Robert Millan <rmh@aybabtu.com>
38142
38143 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
38144 grub_strstr() call. Correct a few mistakes in failure path handling.
38145
b0346e0f 381462008-05-06 Robert Millan <rmh@aybabtu.com>
38147
38148 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38149 Do not print a trailing slash (therefore, the root directory is an
38150 empty string).
38151 (convert_system_path_to_grub_path): Do not remove trailing slash
38152 from make_system_path_relative_to_its_root() output.
38153
38154 * util/i386/pc/grub-install.in: Add trailing slash to output from
38155 make_system_path_relative_to_its_root().
38156
6cf12cbd 381572008-05-06 Robert Millan <rmh@aybabtu.com>
38158
38159 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
38160 ensures that output lines aren't intermangled with those sent to
38161 stderr (via grub_util_info()).
38162 * util/grub-probe.c (grub_refresh): Likewise.
38163 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
38164
0fbb3117 381652008-05-05 Christian Franke <franke@computer.org>
38166
38167 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
38168 Add Cygwin device names.
38169 (get_ide_disk_name) [__CYGWIN__]: Likewise.
38170 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
38171 (check_device): Return error instead of success on empty name.
38172 (make_device_map): Move label inside linux specific code to
38173 prevent compiler warning.
38174
8124cdb7 381752008-04-30 Robert Millan <rmh@aybabtu.com>
38176
38177 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
38178 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
38179 first boot option.
38180 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
38181
094c01d0 381822008-04-29 Robert Millan <rmh@aybabtu.com>
38183
38184 * docs/grub.cfg: New file (example GRUB configuration).
38185
f4b1fc02 381862008-04-26 Robert Millan <rmh@aybabtu.com>
38187
329ce2a5 38188 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
38189 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
38190 and `disk/ieee1275/nand.c'.
f4b1fc02 38191
25f16ec1 381922008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 38193
25f16ec1 38194 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
38195 i386-linuxbios.
38196
38197 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
38198 change the buffer size to 4096 for cdrom device.
38199
38200 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
38201 and nand.mod.
38202 (_linux_mod_SOURCES): New variable.
38203 (_linux_mod_CFLAGS): Likewise.
38204 (_linux_mod_LDFLAGS): Likewise.
38205 (linux_mod_SOURCES): Likewise.
38206 (linux_mod_CFLAGS): Likewise.
38207 (linux_mod_LDFLAGS): Likewise.
38208 (nand_mod_SOURCES): Likewise.
38209 (nand_mod_CFLAGS): Likewise.
38210 (nand_mod_LDFLAGS): Likewise.
38211
38212 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
38213 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
38214 type property. (nand device in olpc don't have this property)
38215
38216 * include/grub/disk.h (grub_disk_dev_id): New macro
38217 GRUB_DISK_DEVICE_NAND_ID.
38218
38219 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
38220 function prototype.
38221 (grub_rescue_cmd_initrd): Likewise.
38222
38223 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
38224 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
38225 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 38226
25f16ec1 38227 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
38228 GRUB_MACHINE_IEEE1275 is defined.
38229
38230 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
38231 Use NESTED_FUNC_ATTR attribute on the hook parameter.
38232
38233 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
38234 on nested function heap_init.
38235 (grub_upper_mem): New variable for i386-ieee1275.
38236 (grub_get_extended_memory): New function for i386-ieee1275.
38237 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
38238
38239 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
38240 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
38241 property.
f19dbdb7 38242
25f16ec1 38243 * loader/i386/ieee1275/linux.c: New file.
38244
38245 * loader/i386/ieee1275/linux_normal.c: New file.
38246
38247 * disk/ieee1275/nand.c: New file.
38248
e89d61e9 382492008-04-18 Thomas Schwinge <tschwinge@gnu.org>
38250
38251 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
38252 value.
38253 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
38254
602566f6 382552008-04-18 Robert Millan <rmh@aybabtu.com>
38256
38257 Restructures early code path on ieee1275 to unify grub_main() as
38258 the first C function that is executed in every platform.
38259
38260 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
38261 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
38262 cmain().
38263 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
38264 * kern/ieee1275/cmain.c (cmain): Rename to ...
38265 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
38266 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
38267 at the beginning.
38268
57490c2b 382692008-04-18 Robert Millan <rmh@aybabtu.com>
38270
38271 * util/update-grub.in: Fix syntax error when setting
38272 `GRUB_PRELOAD_MODULES'.
38273 Reported by Stephane Chazelas <stephane@artesyncp.com>
38274
1977517d 382752008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
38276
38277 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
38278 section into account, newer toolchains generate unique build ids
38279 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 38280 we want build ids to be preserved
1977517d 38281 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
38282 far from other sections don't cause the raw binary images grow
38283 size
38284
bfb1f1a2 382852008-04-15 Robert Millan <rmh@aybabtu.com>
38286
38287 * disk/lvm.c: Update copyright year.
38288 * kern/misc.c: Likewise.
38289
01979850 382902008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38291
38292 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 38293 there is no memory left for physical volume name.
01979850 38294
0a1150e2 382952008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38296
38297 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
38298 volume name mapping to support bigger than 9 character names properly.
38299
82ead3fe 383002008-04-13 Robert Millan <rmh@aybabtu.com>
38301
38302 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
38303 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
38304
e54a72f5 383052008-04-13 Christian Franke <franke@computer.org>
38306
38307 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
38308 to create a floppy emulation boot CD when non emulation mode
38309 does not work.
38310 Enable Joliet CD filesystem extension.
38311
9fe86034 383122008-04-13 Robert Millan <rmh@aybabtu.com>
38313
38314 * kern/misc.c (grub_strncat): Fix off-by-one error.
38315 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
38316
38317 * kern/env.c (grub_env_context_close): Clear current context, not
38318 previous one.
38319 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38320
38321 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38322
7ceeee39 383232008-04-13 Robert Millan <rmh@aybabtu.com>
38324
38325 Improve robustness when handling LVM.
38326
38327 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 38328 (and leave `*p' unmodified).
7ceeee39 38329 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38330 through it.
38331 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38332 iterating through it.
38333 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38334 through it.
fe6b695a 38335 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 38336 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38337 Don't assume `vg->pvs != NULL' when iterating through it.
38338
58cd3d85 383392008-04-13 Robert Millan <rmh@aybabtu.com>
38340
38341 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38342 * genmk.rb (partmap): New variable.
38343 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38344 (#{partmap}): New target rule.
38345 * genpartmaplist.sh: New file.
38346 * Makefile.in (pkglib_DATA): Add partmap.lst.
38347 (partmap.lst): New target rule.
38348 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38349 modules (including all partition maps), instead of preloading them.
38350
78b51059 383512007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38352
38353 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38354 `linux-boot-prober' (if installed) to detect other operating
38355 systems which are installed on the computer and add them to
38356 the boot menu.
38357 * conf/common.rmk: Build and install 30_os-prober.
38358
a91627b4 383592008-04-12 Robert Millan <rmh@aybabtu.com>
38360
38361 * kern/powerpc/ieee1275/init.c: Move from here ...
38362 * kern/ieee1275/init.c: ... to here. Update all users.
38363
38364 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38365 * kern/ieee1275/cmain.c: ... to here. Update all users.
38366
38367 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38368 * kern/ieee1275/openfw.c: ... to here. Update all users.
38369
38370 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38371 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38372
322562ea 383732008-04-10 Pavel Roskin <proski@gnu.org>
38374
38375 * configure.ac: Always use "_cv_" in cache variables for
38376 compatibility with Autoconf 2.62.
38377
a02a73c5 383782008-04-07 Robert Millan <rmh@aybabtu.com>
38379
38380 Revert grub/machine/init.h addition by Pavel (since it breaks on
38381 i386-ieee1275 and others):
38382 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38383 * util/powerpc/ieee1275/misc.c: Likewise.
38384
25c024b1 383852008-04-07 Robert Millan <rmh@aybabtu.com>
38386
38387 * util/grub-probe.c (probe): Improve error message.
38388
3cbd2f98 383892008-04-07 Robert Millan <rmh@aybabtu.com>
38390
38391 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38392 (this prevents the presence of a bogus entry from ruining the whole
38393 thing).
38394
87a297bf 383952008-04-06 Pavel Roskin <proski@gnu.org>
38396
36747a62 38397 * util/biosdisk.c: Include grub/util/biosdisk.h.
38398 * util/grub-fstest.c (execute_command): Make static.
38399 * util/grub-mkdevicemap.c (check_device): Likewise.
38400 * util/i386/pc/misc.c: Include grub/machine/init.h.
38401 * util/powerpc/ieee1275/misc.c: Likewise.
38402 * util/lvm.c: Include grub/util/lvm.h.
38403 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38404 grub/cache.h.
38405 * util/raid.c: Include grub/util/raid.h.
38406 (grub_util_getdiskname): Make static.
38407
87a297bf 38408 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38409 grub_hostfs_fini(), as they are called from grub_init_all() and
38410 grub_fini_all() respectively. This fixes an infinite loop in
38411 grub-fstest due to double registration of hostfs.
38412 Reported by Christian Franke <Christian.Franke@t-online.de>
38413
f6ce7629 384142008-04-05 Pavel Roskin <proski@gnu.org>
38415
38416 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38417 all 8 functions. Otherwise, probe function 0 only.
38418
070e49e4 384192008-04-04 Pavel Roskin <proski@gnu.org>
38420
8b088a4c 38421 * commands/lspci.c (grub_lspci_iter): Print the bus number
38422 correctly.
38423
4f657021 38424 * commands/lspci.c (grub_pci_classes): Fix typos.
38425 (grub_lspci_iter): Don't print func twice. Print vendor ID
38426 before device ID, as it's normally done.
38427
070e49e4 38428 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38429 Fix signedness warnings.
38430 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38431 Likewise.
38432 * util/ieee1275/get_disk_name.c: Include config.h so that
38433 _GNU_SOURCE is defined and getline() is declared. Mark an
38434 unused argument as such. Fix a signedness warning.
38435
ba7328dc 384362008-04-02 Pavel Roskin <proski@gnu.org>
38437
26887f22 38438 * genkernsyms.sh.in: Use more robust assignments for CC and
38439 srcdir. Quote srcdir.
38440 * gensymlist.sh.in: Likewise. Assert at the compile time that
38441 the symbol table is not empty.
38442
ba7328dc 38443 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38444 * fs/cpio.c (grub_cpio_read): Likewise.
38445
0f582c6b 384462008-04-01 Pavel Roskin <proski@gnu.org>
38447
4b6e1995 38448 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38449 * disk/host.c (grub_host_open): Likewise.
38450 * disk/loopback.c (grub_loopback_open): Likewise.
38451 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38452 disk->id as in disk/host.c, not a multi-character constant.
38453
828a2768 38454 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38455 later is obsolete, potentially dangerous and sets a bad example.
38456 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38457 * util/misc.c (grub_util_get_image_size): Likewise.
38458
2bb4fb47 38459 * disk/loopback.c (options): Improve help for "--partitions".
38460
0f582c6b 38461 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38462 options to align them with the short options, e.g. "echo -e".
38463
a33224e0 384642008-03-31 Bean <bean123ch@gmail.com>
38465
38466 * video/reader/png.c (grub_png_data): New member is_16bit and
38467 image_data.
38468 (grub_png_decode_image_header): Detect 16 bit png image.
38469 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38470 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38471 (grub_video_reader_png): Release memory occupied by image_data.
38472
38473 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38474 4096 bytes.
38475 (grub_nfs_mount): Skip the test for sector per cluster.
38476
38477 * include/grub/ntfs.h (MAX_SPC): Removed.
38478
86cb4f54 384792008-03-31 Bean <bean123ch@gmail.com>
38480
38481 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38482 (grub_probe_SOURCES): Add fs/afs.c.
38483 (grub_fstest_SOURCES): Likewise.
38484 (afs_mod_SOURCES): New variable.
38485 (afs_mod_CFLAGS): Likewise.
38486 (afs_mod_LDFLAGS): Likewise.
38487
38488 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38489 (grub_emu_SOURCES): Likewise.
38490
38491 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38492
38493 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38494
38495 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38496
38497 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38498
38499 * fs/afs.c: New file.
38500
17c74c21 385012008-03-30 Pavel Roskin <proski@gnu.org>
38502
4cb68e89 38503 * disk/host.c: Include grub/misc.h to fix a warning.
38504 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38505 warnings about implicit declarations.
38506
8790bb04 38507 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38508 variable.
38509 * include/grub/i386/loader.h: Change declaration of
38510 grub_linux_boot() to match what grub_loader_set() expects.
38511 * util/getroot.c (grub_guess_root_device): Return const char* to
38512 fix a warning.
38513 * util/grub-probe.c (probe): Fix a warning about uninitialized
38514 abstraction_name variable.
38515 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38516 second argument as unused to fix a warning.
38517
9a3f3296 38518 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38519 missing grub_error() call.
38520
0ecef90d 38521 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38522 2.60 and newer uses it to define datadir.
38523
0bf6d401 38524 * commands/sleep.c: Fix warning about implicit declaration.
38525 * disk/memdisk.c: Likewise.
38526 * loader/aout.c: Likewise.
38527 * loader/i386/bsd_normal.c: Likewise.
38528 * util/grub-probe.c: Likewise.
38529
7cdacf97 38530 * commands/i386/cpuid.c (has_longmode): Make static.
38531 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38532 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38533
17c74c21 38534 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38535 GDT. This is more robust, as %ds can change.
38536 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38537 calling real_to_prot().
38538 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38539
80a3e68b 385402008-03-28 Pavel Roskin <proski@gnu.org>
38541
38542 * kern/i386/pc/startup.S: Assert that uncompressed functions
38543 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38544 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38545 code, as they push parts of the code (error handlers) beyond
38546 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38547 code as correctness and size.
38548
77bcd272 385492008-03-28 Pavel Roskin <proski@gnu.org>
38550
38551 * kern/i386/pc/startup.S
38552 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38553 data block address to the real mode, keep offset minimal. This
38554 works around a bug in AWARD BIOS on old Athlon systems, which
38555 makes CD detection hang.
38556
c5dfd43b 385572008-03-26 Pavel Roskin <proski@gnu.org>
38558
38559 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38560 const.
38561 * include/grub/normal.h: Add grub_parse_color_name_pair()
38562 declaration.
38563
bf962df2 385642008-03-24 Bean <bean123ch@gmail.com>
38565
38566 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38567 (cd_count): Removed.
38568 (cd_drive): New variable.
38569 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38570 (grub_biosdisk_call_hook): Likewise.
38571 (grub_biosdisk_iterate): Change cdrom detection method.
38572 (grub_biosdisk_open): Replace cd_start with cd_drive.
38573 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38574 detect cdrom device.
38575
38576 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38577 Removed.
38578 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38579 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38580 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38581 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38582 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38583 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38584 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38585 (grub_biosdisk_cdrp): New structure.
38586 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38587
38588 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38589
38590 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38591 device.
38592
38593 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38594 New function.
38595
68e7fc7a 385962008-03-20 Robert Millan <rmh@aybabtu.com>
38597
38598 Remove 2 TiB limit in ata.mod.
38599 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38600 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38601 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38602 grub_uint64_t instead of grub_uint32_t.
38603
38ad2cf5 386042008-03-05 Bean <bean123ch@gmail.com>
38605
38606 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38607 (grub_multiboot): Set boot device.
38608
38609 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38610
2b89344e 386112008-03-02 Bean <bean123ch@gmail.com>
38612
38613 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38614 symlink_buffer.
38615
87a95d1f 386162008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38617
38618 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38619 texinfo.tex.
38620
38621 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38622 modified.
38623
38624 * docs/fdl.texi: New file.
f19dbdb7 38625
87a95d1f 38626 * docs/mdate-sh: New file. Copied from gnulib.
38627 * docs/texinfo.tex: Likewise.
38628
38629 * config.guess: Updated from gnulib.
38630 * install-sh: Likewise.
38631
7dc15d8e 386322008-02-28 Robert Millan <rmh@aybabtu.com>
38633
38634 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38635 (aout_mod_SOURCES): New variable.
38636 (aout_mod_CFLAGS): Likewise.
38637 (aout_mod_LDFLAGS): Likewise.
38638
38639 * conf/i386-ieee1275.rmk: Likewise.
38640
b00ab696 386412008-02-28 Robert Millan <rmh@aybabtu.com>
38642
38643 * util/update-grub.in: Reorganise terminal validity check. Accept
38644 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38645 Based on suggestion by Franklin PIAT.
38646
79ca2d78 386472008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38648
38649 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38650 function.
38651 * util/getroot.c (grub_util_check_block_device): New function that
38652 returns the given argument if it is a block device and returns NULL else.
38653 * util/grub-probe.c (argument_is_device): New variable.
38654 (probe): Promote device_name from a variable to an argument. Receive
38655 device_name from grub_util_check_block_device() if path is NULL and from
38656 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 38657 (options): Introduce new parameter '-d, --device'.
79ca2d78 38658 (main): Add description of the new parameter to the help screen.
38659 Rename path variable to argument. Set argument_is_device if the '-d'
38660 option is given. Pass argument to probe() depending on
38661 argument_is_device.
38662
0d16e571 386632008-02-24 Bean <bean123ch@gmail.com>
38664
38665 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38666 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38667 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38668 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38669 (GRUB_ISO9660_VOLDESC_END): Likewise.
38670 (grub_iso9660_primary_voldesc): New member escape.
38671 (grub_iso9660_data): New member joliet.
38672 (grub_iso9660_convert_string): New function.
38673 (grub_iso9660_mount): Detect joliet extension.
38674 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38675 (grub_iso9660_iso9660_label): Likewise.
38676
38677 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38678 (grub_setup_SOURCES): Add fs/udf.c.
38679 (grub_fstest_SOURCES): Likewise.
38680 (udf_mod_SOURCES): New variable.
38681 (udf_mod_CFLAGS): Likewise.
38682 (udf_mod_LDFLAGS): Likewise.
38683
38684 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38685 (grub_emu_SOURCES): Likewise.
38686
38687 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38688
38689 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38690
38691 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38692
38693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38694
38695 * fs/udf.c: New file.
38696
8a594a17 386972008-02-24 Robert Millan <rmh@aybabtu.com>
38698
38699 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38700 (normal/lexer.c_DEPENDENCIES): New variables.
38701 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38702 (normal/lexer.c_DEPENDENCIES): Likewise.
38703 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38704 (normal/lexer.c_DEPENDENCIES): Likewise.
38705 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38706 (normal/lexer.c_DEPENDENCIES): Likewise.
38707 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38708 (normal/lexer.c_DEPENDENCIES): Likewise.
38709 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38710 (normal/lexer.c_DEPENDENCIES): Likewise.
38711
2dc33c03 387122008-02-23 Robert Millan <rmh@aybabtu.com>
38713
38714 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38715 since they were intended to be in hex. This didn't break previously
38716 because of a bug in gpt_partition_map_iterate() (see below).
38717
38718 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38719 when checking the validity of GPT header.
38720 Remove `partno', since it always provides the same information as `i'.
38721
f6f4cfb0 387222008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38723
38724 * include/grub/efi/time.h: Fix a wrong comment.
38725
79ff665f 387262008-02-19 Pavel Roskin <proski@gnu.org>
38727
38728 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38729 message.
38730
d38e24c2 387312008-02-19 Bean <bean123ch@gmail.com>
38732
38733 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38734 (aout_mod_SOURCES): New variable.
38735 (aout_mod_CFLAGS): Likewise.
38736 (aout_mod_LDFLAGS): Likewise.
38737 (_bsd_mod_SOURCES): New variable.
38738 (_bsd_mod_CFLAGS): Likewise.
38739 (_bsd_mod_LDFLAGS): Likewise.
38740 (bsd_mod_SOURCES): New variable.
38741 (bsd_mod_CFLAGS): Likewise.
38742 (bsd_mod_LDFLAGS): Likewise.
38743
38744 * include/grub/aout.h: New file.
38745
38746 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38747
38748 * include/grub/i386/bsd.h: New file.
38749
38750 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38751 to make it public.
38752
38753 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38754 function is called, so that it's possible to change it inside the hook.
38755 (grub_elf64_load): Likewise.
38756 (grub_elf_file): Don't close the file if elf header is not found.
38757 (grub_elf_close): Close the file if grub_elf_file fails (The new
38758 grub_elf_file won't close it).
38759 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38760 (grub_elf64_size): Likewise.
38761
38762 * kern/i386/loader.S (grub_unix_real_boot): New function.
38763
38764 * loader/aout.c: New file.
38765
38766 * loader/i386/bsd.c: New file.
38767
38768 * loader/i386/bsd_normal.c: New file.
38769
38770 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38771
38772 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 38773 can test other formats.
d38e24c2 38774
b93bdb0f 387752008-02-19 Robert Millan <rmh@aybabtu.com>
38776
38777 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38778 (grub_gpt_partition_type_empty): Redefine with macro from
38779 `<grub/gpt_partition.h>'.
38780 (gpt_partition_map_iterate): Adjust partition type comparison.
38781
38782 Export `entry' as partmap-specific `part.data' struct.
38783 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38784
38785 * include/grub/gpt_partition.h (grub_gpt_header)
38786 (grub_gpt_partentry): ... to here (new file).
38787
38788 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38789
38790 (grub_gpt_partition_type_bios_boot): New const variable, defined
38791 with macro from `<grub/gpt_partition.h>'.
38792
38793 (setup): Replace `first_start' with `embed_region', which keeps
38794 track of the embed region (and is partmap-agnostic).
38795
38796 Replace find_first_partition_start() with find_usable_region(),
38797 which finds a usable region for embedding using partmap-specific
38798 knowledge (supports PC/MSDOS and GPT).
38799
38800 Fix all assumptions that the embed region start at sector 1, using
38801 `embed_region.start' from now on. Similarly, use `embed_region.end'
38802 rather than `first_start' to calculate available size.
38803
38804 In grub_util_info() message, replace "into after the MBR" with an
38805 indication of the specific sector our embed region starts at.
38806
66cb40f6 388072008-02-19 Robert Millan <rmh@aybabtu.com>
38808
38809 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38810 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38811 `commands/reboot.c'.
38812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38813 (halt_mod_SOURCES): Likewise.
38814 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38815 (halt_mod_SOURCES): Likewise.
38816
b7202015 388172008-02-17 Christian Franke <franke@computer.org>
38818
38819 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38820
32b0fc49 388212008-02-17 Robert Millan <rmh@aybabtu.com>
38822
38823 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38824 set `first_start' to 0 for non-PC/MSDOS partition maps.
38825
aca63502 388262008-02-16 Robert Millan <rmh@aybabtu.com>
38827
38828 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38829 do not assume partition map is PC/MSDOS before performing checks that
38830 are specific to that layout.
38831
0de8be86 388322008-02-13 Robert Millan <rmh@aybabtu.com>
38833
38834 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38835 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38836 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38837
c3db8364 388382008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38839
38840 * configure.ac: Only a cosmetic change on the handling of
38841 -fno-stack-protector.
38842
f714229e 388432008-02-12 Alexandre Boeglin <alex@boeglin.org>
38844
c3db8364 38845 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38846 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38847 reboot.c.
f714229e 38848 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38849 (halt_mod_SOURCES): New variable.
38850 (halt_mod_CFLAGS): Likewise.
38851 (halt_mod_LDFLAGS): Likewise.
38852 (reboot_mod_SOURCES): Likewise.
38853 (reboot_mod_CFLAGS): Likewise.
38854 (reboot_mod_LDFLAGS): Likewise.
38855
c3db8364 38856 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38857 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38858 reboot.c.
f714229e 38859 (halt_mod_SOURCES): Likewise.
38860 (reboot_mod_SOURCES): Likewise.
38861
c3db8364 38862 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38863 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 38864 (reboot_mod_SOURCES): Likewise.
38865
38866 * commands/i386/pc/reboot.c: merge this file ...
38867
38868 * commands/ieee1275/reboot.c: ... and this file ...
38869
38870 * commands/reboot.c: ... to this file.
c3db8364 38871 Add some precompiler directive to include the correct header for
38872 each machine.
f714229e 38873
38874 * commands/ieee1275/halt.c: move this file ...
38875
38876 * commands/halt.c: ... to here.
c3db8364 38877 Add some precompiler directive to include the correct header for
38878 each machine.
f714229e 38879
38880 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38881 (grub_halt): Likewise.
38882
38883 * kern/efi/efi.c (grub_reboot): New function.
38884 (grub_halt): Likewise.
38885
c74493e0 388862008-02-12 Robert Millan <rmh@aybabtu.com>
38887
38888 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38889 /dev (like it is done for /dev/mapper). This doesn't provide support
38890 for EVMS, but at least it is now easy to identify the problem when it
38891 arises.
38892
d0db4b04 388932008-02-11 Robert Millan <rmh@aybabtu.com>
38894
38895 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38896 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38897 comparing it with -1, not 0.
38898
bf748642 388992008-02-10 Robert Millan <rmh@aybabtu.com>
38900
38901 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38902 `disk/lvm.c'.
38903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38904 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38905
38906 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38907 `disk/lvm.c' to the end of the list.
38908 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38909 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38910
b5db202a 389112008-02-10 Robert Millan <rmh@aybabtu.com>
38912
38913 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38914 grub_print_error() instead. This will let user know why we're entering
38915 rescue mode.
38916 Based on suggestions from Sam Morris.
38917
83abee31 389182008-02-10 Alexandre Boeglin <alex@boeglin.org>
38919
38920 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38921 on remaining N args, instead of "--" arg N times.
38922
78d5a08b 389232008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38924
38925 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38926 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38927 pattern for unknown glyphs.
38928
68807e5f 389292008-02-09 Robert Millan <rmh@aybabtu.com>
38930
38931 * configure.ac: Probe for `help2man'.
38932 * Makefile.in (builddir): New variable.
38933 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38934 or otherwise add a few flags/options to it.
38935 (install-local): For every executable utility or script that is
38936 installed, invoke $(HELP2MAN) to install a manpage based on --help
38937 output.
38938
38939 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38940 that it doesn't prevent --help from working in build tree.
38941
38942 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38943 with `bug-grub@gnu.org'.
38944 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38945 * util/update-grub.in (usage): New function.
38946 Implement proper argument check, with support for --help and --version
38947 (as well as existing -y).
38948
389492008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 38950
38951 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38952 avoid overwriting previous output.
38953 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38954
c1962162 389552008-02-09 Robert Millan <rmh@aybabtu.com>
38956
38957 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38958 drawing the menu.
38959
3dac2e3f 389602008-02-09 Robert Millan <rmh@aybabtu.com>
38961
38962 * commands/sleep.c: New file.
38963 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38964 (sleep_mod_SOURCES): New variable.
38965 (sleep_mod_CFLAGS): Likewise.
38966 (sleep_mod_LDFLAGS): Likewise.
38967
7a634e08 389682008-02-09 Robert Millan <rmh@aybabtu.com>
38969
38970 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38971 situations in which we can deduce the RAID size and the superblock
38972 doesn't match it.
38973
b92f0c18 389742008-02-09 Robert Millan <rmh@aybabtu.com>
38975
38976 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38977 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38978 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38979
38980 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38981 and return a grub_diskmemberlist_t composed of physical array members.
38982 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38983
38984 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38985 prototype.
38986 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38987 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38988 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38989
38990 * util/grub-probe.c (probe): Move partmap probing code from here ...
38991 (probe_partmap): ... to here.
38992 (probe): Use probe_partmap() once for the disk we're probing, and
38993 additionally, when such disk contains a memberlist() struct member,
38994 once for each disk that is contained in the structure returned by
38995 memberlist().
38996
91a4bf68 389972008-02-09 Robert Millan <rmh@aybabtu.com>
38998
38999 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
39000 environment variable to 'all' in order to obtain debug output from
39001 non-util/ code.
39002 * util/i386/pc/grub-setup.c (main): Likewise.
39003
a96f9caa 390042008-02-08 Robert Millan <rmh@aybabtu.com>
39005
39006 * disk/raid.c (grub_raid_scan_device): Check for
39007 `array->device[sb.this_disk.number]' rather than for
39008 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 39009 guaranteed to be accessible.
a96f9caa 39010
b37a9222 390112008-02-08 Robert Millan <rmh@aybabtu.com>
39012
39013 * disk/raid.c: Update copyright.
39014 * fs/cpio.c: Likewise.
39015 * include/grub/raid.h: Likewise.
39016 * loader/i386/pc/multiboot.c: Likewise.
39017 * util/hostfs.c: Likewise.
39018
5626aee1 390192008-02-08 Robert Millan <rmh@aybabtu.com>
39020
39021 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
39022 to a grub_disk_t array.
39023 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
39024 `device[x]'.
39025 (grub_raid_scan_device): Replace `device[x].name' accesses with
39026 `device[x]->name'. Simplify initialization of `array->device[x]'.
39027
554f0187 390282008-02-08 Robert Millan <rmh@aybabtu.com>
39029
39030 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
39031 grub_dprintf() calls.
39032 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
39033 error message.
39034
1ec8425d 390352008-02-07 Christian Franke <franke@computer.org>
39036
39037 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
39038 instead of fseek and ftell to support large files.
39039 (grub_hostfs_read): Likewise.
39040
f2156fda 390412008-02-07 Robert Millan <rmh@aybabtu.com>
39042
39043 Patch from Jeroen Dekkers.
39044 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 39045 failure, since successfully reading all array members might not be
f2156fda 39046 required.
39047
9216e0e7 390482008-02-06 Robert Millan <rmh@aybabtu.com>
39049
39050 * util/grub-probe.c (probe): Simplify partmap probing (with the
39051 assumption that the first word up to the underscore equals to
39052 the module name).
39053
b0dfd29a 390542008-02-06 Christian Franke <franke@computer.org>
39055
39056 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
39057 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
39058 last block of a cpio or tar stream.
39059 Check for "TRAILER!!!" instead of any empty data
39060 block to detect last block of a cpio stream.
39061 (grub_cpio_dir): Fix constness of variable np.
39062 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
39063 cpio or tar trailer is detected. This fixes a crash
39064 on open of a non existing file.
39065
c32865bf 390662008-02-05 Bean <bean123ch@gmail.com>
39067
39068 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
39069 address of entry.
39070 (grub_multiboot_load_elf64): Likewise.
39071 (grub_multiboot): Initialize mbi structure.
39072
39073 * util/grub-fstest.c: Don't include unused header file script.h.
39074
fe6b695a 39075 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 39076 of file.
39077 (grub_fstest_SOURCES): Likewise.
39078
409480b7 390792008-02-05 Robert Millan <rmh@aybabtu.com>
39080
39081 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
39082 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
39083 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
39084 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
39085
39086 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
39087 (translation_table): Replace hardcoded values with macros
39088 provided by `<grub/term.h>'.
39089
39090 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
39091 (keyboard_map): Correct/add a few values, with macros provided
39092 by `<grub/term.h>'.
39093 (keyboard_map_shift): Zero values that don't differ from their
39094 `keyboard_map' equivalents.
39095 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
39096 Discard the second scan code that is always sent by Caps lock.
39097 Only use `keyboard_map_shift' when it provides a non-zero value,
39098 otherwise fallback to `keyboard_map'.
39099
99fadbaa 391002008-02-04 Bean <bean123ch@gmail.com>
39101
39102 * Makefile.in (enable_grub_fstest): New variable.
39103
39104 * conf/common.rmk (grub_fstest_init.lst): New rule.
39105 (grub_fstest_init.h): Likewise.
39106 (grub_fstest_init.c): Likewise.
39107 (util/grub-fstest.c_DEPENDENCIES): New variable.
39108 (grub_fstest_SOURCES): Likewise.
39109
39110 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
39111
39112 * util/grub-fstest.c: New file.
39113
bf567c50 391142008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39115
39116 Make grub-setup handle a separate root device.
f19dbdb7 39117
bf567c50 39118 * util/i386/pc/grub-setup.c (setup): Always open the root device,
39119 so that the root device can be compared with the destination
39120 device.
39121 When embedding the core image, if the root and destination devices
39122 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
39123 0xFF.
39124 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 39125
9be6b98b 391262008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39127
39128 Add support for having a grub directory in a different drive. This
39129 is still only the data handling part.
f19dbdb7 39130
9be6b98b 39131 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
39132 (codestart): Save %dh in GRUB_ROOT_DRIVE.
39133 (grub_root_drive): New variable.
39134
39135 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
39136 instead of GRUB_BOOT_DRIVE to construct a device name. Set
39137 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
39138 as it was.
39139
39140 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
39141
39142 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
39143 macro.
39144 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
39145
39146 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
39147 is bogus, because PXE booting does not specify any drive
39148 correctly.
39149
39150 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
39151 am not sure if this is really correct.
39152
39153 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
39154 is always identical to the boot drive when booting from a CD.
39155
39156 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
39157 longer.
39158 (root_drive): New variable.
39159 (real_start): Unconditionally set %dh to ROOT_DRIVE.
39160 (setup_sectors): Push %dx right after popping it, because %dh will
39161 be modified later.
39162 (copy_buffer): Restore %dx.
39163
e0ca0677 391642008-02-03 Robert Millan <rmh@aybabtu.com>
39165
39166 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
39167 use `cdboot.img' for cdrom images.
39168
3b3f6629 391692008-02-03 Robert Millan <rmh@aybabtu.com>
39170
39171 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
39172 only setup gfxterm when `font' command has succeeded.
39173
d42b3672 391742008-02-03 Robert Millan <rmh@aybabtu.com>
39175
39176 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
39177 (grub_rescue_cmd_multiboot_loader)
39178 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
39179
fa370ea6 391802008-02-03 Pavel Roskin <proski@gnu.org>
39181
e0c5dacb 39182 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 39183 %edx and %esi from stack only after grub_gate_a20() is called.
39184 grub_gate_a20() clobbers %edx.
39185
f2a76e1d 391862008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39187
39188 * configure.ac (AC_INIT): Bumped to 1.96.
39189
39190 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
39191 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
39192 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
39193 video/readers/png.c.
39194
90fd32d1 391952008-02-03 Bean <bean123ch@gmail.com>
9be665dd 39196
39197 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
39198 (cdboot_img_SOURCES): New variable.
39199 (cdboot_img_ASFLAGS): New variable.
39200 (cdboot_img_LDFLAGS): New variable.
39201
39202 * boot/i386/pc/cdboot.S: New file.
39203
39204 * disk/i386/pc/biosdisk.c (cd_start): New variable.
39205 (cd_count): Likewise.
39206 (grub_biosdisk_get_drive): Add support for cd device.
39207 (grub_biosdisk_call_hook): Likewise.
39208 (grub_biosdisk_iterate): Likewise.
39209 (grub_biosdisk_open): Likewise.
39210 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
39211 (grub_biosdisk_rw): Support reading from cd device.
39212 (GRUB_MOD_INIT): Iterate cd devices.
39213
39214 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
39215 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
39216 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
39217
39218 * kern/i386/pc/init.c (make_install_device): Check for cd device.
39219
4020aa53 392202008-02-02 Robert Millan <rmh@aybabtu.com>
39221
39222 * commands/read.c: New file.
39223 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
39224 (read_mod_SOURCES): New variable.
39225 (read_mod_CFLAGS): Likewise.
39226 (read_mod_LDFLAGS): Likewise.
39227
e03a1132 392282008-02-02 Robert Millan <rmh@aybabtu.com>
39229
39230 * normal/main.c (grub_normal_execute): Check for `menu->size' when
39231 determining whether menu has to be displayed.
39232
58c69220 392332008-02-02 Marco Gerards <marco@gnu.org>
39234
39235 * bus/pci.c: New file.
39236
39237 * include/grub/pci.h: Likewise.
39238
39239 * include/grub/i386/pc/pci.h: Likewise.
39240
39241 * commands/lspci.c: Likewise.
39242
39243 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
39244 `lspci.mod'.
39245 (pci_mod_SOURCES): New variable.
39246 (pci_mod_CFLAGS): Likewise.
39247 (pci_mod_LDFLAGS): Likewise.
39248 (lspci_mod_SOURCES): Likewise.
39249 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 39250 (lspci_mod_LDFLAGS): Likewise.
58c69220 39251
c004e1b4 392522008-02-02 Bean <bean123ch@gmail.com>
39253
39254 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
39255 (grub_ufs_get_file_block): Fix indirect block calculation problem.
39256
39257 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
39258 (grub_xfs_btree_node): New structure.
39259 (grub_xfs_btree_root): New structure.
39260 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
39261 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
39262 (GRUB_XFS_EXTENT_BLOCK): Likewise.
39263 (GRUB_XFS_EXTENT_SIZE): Likewise.
39264 (grub_xfs_read_block): Support btree format type.
39265 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
39266 Use directory block as basic unit.
39267
39268 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
39269
39270 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
39271 __attribute__ ((__regparm__ (1))).
39272
f95562bf 392732008-02-01 Robert Millan <rmh@aybabtu.com>
39274
39275 Correct a mistake in previous commit.
39276
39277 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
39278 top.
39279 (normal/command.c_DEPENDENCIES): New variable.
39280
7d31f41f 392812008-02-01 Robert Millan <rmh@aybabtu.com>
39282
39283 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
39284 top.
39285 (normal/command.c_DEPENDENCIES): New variable.
39286 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
39287 * conf/i386-ieee1275.rmk: Likewise.
39288 * conf/i386-linuxbios.rmk: Likewise.
39289 * conf/i386-pc.rmk: Likewise.
39290 * conf/sparc64-ieee1275.rmk: Likewise.
39291 * conf/powerpc-ieee1275.rmk: Likewise.
39292 (grub_emu_SOURCES): Add `fs/fshelp.c'.
39293
39294 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
39295
60b6be74 392962008-02-01 Robert Millan <rmh@aybabtu.com>
39297
39298 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
39299 call at beginning of function.
39300
078522ab 393012008-01-31 Pavel Roskin <proski@gnu.org>
39302
39303 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 39304 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
39305 (grub_mkrescue_SOURCES): Likewise.
078522ab 39306 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
39307
ccaa8a5f 393082008-01-30 Robert Millan <rmh@aybabtu.com>
39309
39310 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
39311 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
39312 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
39313 (grub_probe_SOURCES): ... to here.
39314
39315 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
39316 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
39317 * conf/i386-ieee1275.rmk: Likewise.
39318 * conf/i386-linuxbios.rmk: Likewise.
39319 * conf/powerpc-ieee1275.rmk: Likewise.
39320
ae5a9cd7 393212008-01-30 Tristan Gingold <gingold@free.fr>
39322
39323 * kern/rescue.c: Silently accept empty lines.
39324
70bc2ef2 393252008-01-29 Bean <bean123ch@gmail.com>
39326
39327 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39328 (real_code_2): Code cleanup and change comment style.
39329 (move_memory): Avoid using 32-bit address mode.
39330
6a4d50ea 393312008-01-29 Bean <bean123ch@gmail.com>
39332
39333 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39334 (png_mod_SOURCES): New variable.
39335 (png_mod_CFLAGS): Likewise.
39336 (png_mod_LDFLAGS): Likewise.
39337
39338 * video/readers/png.c: New file.
39339
11cc30ac 393402008-01-28 Robert Millan <rmh@aybabtu.com>
39341
39342 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39343 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39344 `ifndef GRUB_MOD_GAP' hack.
39345 * util/elf/grub-mkimage.c (add_segments): Likewise.
39346
3abc589f 393472008-01-27 Robert Millan <rmh@aybabtu.com>
39348
39349 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39350 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 39351 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 39352
e1907778 393532008-01-27 Robert Millan <rmh@aybabtu.com>
39354
39355 Get grub-emu to build again (including parallel builds).
39356
39357 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39358 Split into ...
39359 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39360 (normal/execute.c_DEPENDENCIES): ... this, ...
39361 (grub-emu_DEPENDENCIES): ... and this.
39362
39363 * conf/i386-efi.rmk: Likewise.
39364 * conf/i386-linuxbios.rmk: Likewise.
39365 * conf/i386-ieee1275.rmk: Likewise.
39366 * conf/powerpc-ieee1275.rmk: Likewise.
39367 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39368
2216b101 393692008-01-27 Robert Millan <rmh@aybabtu.com>
39370
39371 * NEWS: Add a few items.
39372
f75172d9 393732008-01-27 Robert Millan <rmh@aybabtu.com>
39374
39375 Fix parallel builds with grub-emu. Based on earlier commit for
39376 grub-probe and grub-setup.
39377
39378 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39379 (util/grub-emu.c_DEPENDENCIES): ... this.
39380 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39381 (util/grub-emu.c_DEPENDENCIES): ... this.
39382 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39383 (util/grub-emu.c_DEPENDENCIES): ... this.
39384 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39385 (util/grub-emu.c_DEPENDENCIES): ... this.
39386 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39387 (util/grub-emu.c_DEPENDENCIES): ... this.
39388
3f51de77 393892008-01-27 Pavel Roskin <proski@gnu.org>
39390
39391 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39392 to create a gap between _end and the modules added to the image
39393 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39394 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39395 * util/elf/grub-mkimage.c (add_segments): Likewise.
39396
2033f53e 393972008-01-26 Pavel Roskin <proski@gnu.org>
39398
39399 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39400 just return an error.
39401
22da1f6f 394022008-01-26 Bean <bean123ch@gmail.com>
39403
39404 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39405 (grub_reiserfs_get_item): Save offset of the next item.
39406 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39407
2a9525e6 394082008-01-25 Robert Millan <rmh@aybabtu.com>
39409
39410 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39411 make all filesystem sources appear together (possibly fixing omissions
39412 while at it).
39413 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39414 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39415 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39417
39418 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39419 add `kern/file.c'.
39420 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39421 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39422 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39423 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39424
39425 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39426 (probe): Add a sanity check to make sure of our ability to read
39427 requested files when probing for filesystem type.
39428
39429 * genmk.rb: Update copyright year (2007).
39430
39431 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39432 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39433 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39434 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39435 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39436 : Remove function prototypes.
39437
b95f71b5 394382008-01-25 Robert Millan <rmh@aybabtu.com>
39439
39440 Revert my previous commits (based on wrong assumption of how grub_errno
39441 works).
39442
fe6b695a 39443 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 39444 * kern/file.c (grub_file_open): Likewise.
39445
d08bbb49 394462008-01-24 Pavel Roskin <proski@gnu.org>
39447
39448 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39449 that hang if GRUB tries to setup colors.
39450 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39451 colors for firmwares that don't support it.
39452 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39453 Recognize Open Hack'Ware, set flags to work around its
39454 limitations.
39455
605e36ed 394562008-01-24 Robert Millan <rmh@aybabtu.com>
39457
39458 * kern/file.c (grub_file_open): Do not account previous failures of
39459 unrelated functions when grub_errno is checked for.
39460 Reported by Oleg Strikov.
39461
bac332a1 394622008-01-24 Bean <bean123ch@gmail.com>
39463
39464 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39465 (grub_ufs_sblock): New member volume name.
39466 (grub_ufs_find_file): Fix string copy bug.
39467 (grub_ufs_label): Implement this function properly.
39468
39469 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39470 (grub_hfs_iterate_records): Use the correct file number for extents
39471 and catalog file. Fix problem in next index calculation.
39472 (grub_hfs_find_node): Replace recursive function call with loop.
39473 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39474
15c80c09 394752008-01-23 Robert Millan <rmh@aybabtu.com>
39476
39477 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39478 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39479 (grub_multiboot2_real_boot): New function prototype.
39480
39481 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39482 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39483
39484 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39485 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39486
305338fd 394872008-01-23 Robert Millan <rmh@aybabtu.com>
39488
39489 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39490 #ifdef'ed out grub_printf().
39491
3ea52685 394922008-01-23 Robert Millan <rmh@aybabtu.com>
39493
39494 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39495 grub_dprintf calls, since they make "debug=all" mode unusable.
39496 (grub_console_checkkey): Likewise.
39497
5882ae4b 394982008-01-23 Robert Millan <rmh@aybabtu.com>
39499
39500 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39501 `term/i386/pc/at_keyboard.c'.
39502 (pkglib_MODULES): Add `serial.mod'.
39503 (serial_mod_SOURCES): New variable.
39504 (serial_mod_CFLAGS): Likewise.
39505 (serial_mod_LDFLAGS): Likewise.
39506
39507 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39508 `<grub/powerpc/ieee1275/console.h>'.
39509 (grub_keyboard_controller_init): New function prototype.
39510 (grub_console_checkkey): Likewise.
39511 (grub_console_getkey): Likewise.
39512
39513 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39514 keyboard on i386.
39515
39516 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39517 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39518
06ab5303 395192008-01-23 Robert Millan <rmh@aybabtu.com>
39520
39521 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39522 present, "(memdisk)/boot/grub" becomes the default prefix.
39523
39524 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39525 a memdisk tarball with all the modules. Add --overlay=DIR option that
39526 allows users to overlay additional files into the image.
39527
dbb475a4 395282008-01-23 Robert Millan <rmh@aybabtu.com>
39529
39530 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39531 and `machine/memory.h'.
39532 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39533 (_multiboot_mod_SOURCES): New variable.
39534 (_multiboot_mod_CFLAGS): Likewise.
39535 (_multiboot_mod_LDFLAGS): Likewise.
39536 (multiboot_mod_SOURCES): Likewise.
39537 (multiboot_mod_CFLAGS): Likewise.
39538 (multiboot_mod_LDFLAGS): Likewise.
39539
39540 * include/grub/i386/ieee1275/loader.h: New file.
39541
39542 * include/grub/i386/ieee1275/machine.h: Likewise.
39543
39544 * include/grub/i386/ieee1275/memory.h: Likewise.
39545
39546 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39547 variable declaration.
39548 (grub_os_area_size): Likewise.
39549
39550 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39551 (grub_lower_mem, grub_upper_mem): New variables.
39552 (grub_stop_floppy): New function (just to make
39553 grub_multiboot2_real_boot() happy).
39554
39555 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39556 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39557 (grub_stop): New function.
39558 Include `"../realmode.S"' and `"../loader.S"'.
39559
39560 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39561 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39562
39563 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39564 rely on grub_multiboot2_real_boot() for final boot.
39565
25638629 395662008-01-22 Robert Millan <rmh@aybabtu.com>
39567
39568 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39569 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39570 device that doesn't look like an SD card.
39571 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39572 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39573 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39574 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39575 found.
39576
9dad816d 395772008-01-22 Robert Millan <rmh@aybabtu.com>
39578
39579 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39580 avoid claiming over our own code.
39581
34842f2d 395822008-01-22 Bean <bean123ch@gmail.com>
39583
39584 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39585 (jpeg_mod_SOURCES): New variable.
39586 (jpeg_mod_CFLAGS): Likewise.
39587 (jpeg_mod_LDFLAGS): Likewise.
39588
39589 * video/readers/jpeg.c : New file.
39590
44023a28 395912008-01-22 Bean <bean123ch@gmail.com>
39592
39593 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39594 there are no more items.
39595
bc2d8ac6 395962008-01-21 Robert Millan <rmh@aybabtu.com>
39597
39598 * kern/mm.c (grub_mm_init_region): Improve debug message.
39599
261bd4bc 396002008-01-21 Robert Millan <rmh@aybabtu.com>
39601
39602 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39603 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39604 address.
39605 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39606 a C macro.
39607 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39608 Indicates start of upper memory.
39609 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39610 (generate_image): Abort when image size is big enough to corrupt
39611 upper memory.
39612
39613 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39614 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39615 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39616 instead of hardcoding 0xA0000.
39617 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39618 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39619 instead of hardcoding 0xA0000.
39620
f970b55e 396212008-01-21 Robert Millan <rmh@aybabtu.com>
39622
39623 * disk/memdisk.c (memdisk_size): New variable.
39624 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39625 `memdisk_size'.
39626 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39627 image to dynamic memory.
39628 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39629 `memdisk_size'. Free memdisk block.
39630
1a8b0526 396312008-01-21 Robert Millan <rmh@aybabtu.com>
39632
39633 Fix detection of very small filesystems (like tar).
39634
39635 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39636 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39637 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39638 a problem with this disk).
39639
6e9b4aab 396402008-01-21 Robert Millan <rmh@aybabtu.com>
39641
39642 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39643 on grub_biosdisk_rw_standard() error.
39644
0d8837b2 396452008-01-21 Robert Millan <rmh@aybabtu.com>
39646
39647 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39648 recent changes.
39649 * kern/elf.c: Likewise.
39650 * kern/ieee1275/ieee1275.c: Likewise.
39651 * kern/powerpc/ieee1275/openfw.c: Likewise.
39652 * term/ieee1275/ofconsole.c: Likewise.
39653
ffd36e34 396542008-01-21 Robert Millan <rmh@aybabtu.com>
39655
39656 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39657
3f0093d0 39658 * include/grub/kernel.h (grub_arch_memdisk_addr)
39659 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 39660
3f0093d0 39661 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39662 (grub_arch_memdisk_size): ... to here.
ffd36e34 39663
6c391b21 396642008-01-21 Robert Millan <rmh@aybabtu.com>
39665
39666 Mostly based on bugfix from Bean.
39667
39668 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39669 attribute with hook() parameter.
39670 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39671 declaration.
39672 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39673 attribute with hook() parameter.
39674 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39675 declaration.
39676
55a581dc 396772008-01-21 Robert Millan <rmh@aybabtu.com>
39678
39679 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39680 (pkglib_MODULES): Add `memdisk.mod'.
39681 (memdisk_mod_SOURCES): New variable.
39682 (memdisk_mod_CFLAGS): Likewise.
39683 (memdisk_mod_LDFLAGS): Likewise.
39684
39685 * disk/memdisk.c: New file.
39686
39687 * include/grub/disk.h (grub_disk_dev_id): Add
39688 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39689
39690 * include/grub/i386/pc/kernel.h
39691 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39692 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39693 (grub_kernel_image_size): New variable declaration.
39694 (grub_total_module_size): Likewise.
39695 (grub_memdisk_image_size): Likewise.
39696
39697 * include/grub/i386/pc/memory.h
39698 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39699
39700 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39701 (grub_arch_memdisk_addr): New variable declaration.
39702 (grub_arch_memdisk_size): Likewise.
39703
39704 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39705 (grub_arch_memdisk_size): Likewise.
39706
39707 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39708 (codestart): Replace hardcoded `0x100000' with
39709 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39710
39711 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39712 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39713 not NULL, append the contents of the file it refers to, at the end of
39714 the compressed kernel image. Initialize `grub_memdisk_image_size'
39715 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39716 (options): Add "memdisk"|'m' option.
39717 (main): Parse --memdisk|-m option, and pass user-provided path as
39718 parameter to generate_image().
39719
3d7f54c9 397202008-01-20 Robert Millan <rmh@aybabtu.com>
39721
39722 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39723 grub_dprintf() calls from here ...
39724 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39725
0bf74728 397262008-01-20 Robert Millan <rmh@aybabtu.com>
39727
39728 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39729
39730 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39731 declaration.
39732 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39733 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39734 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 39735 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 39736 property).
39737 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39738 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39739
33bf70a7 397402008-01-19 Robert Millan <rmh@aybabtu.com>
39741
fe6b695a 39742 Get rid of confusing function (superseded by
33bf70a7 39743 `grub_ieee1275_get_integer_property')
39744 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39745 prototype.
39746 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39747 function.
39748 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39749 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 39750 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 39751
e2da7d26 397522008-01-19 Robert Millan <rmh@aybabtu.com>
39753
39754 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39755 command after "shut-down", since implementations differ on which
39756 the command for halt is.
39757
59f1fd8d 397582008-01-19 Robert Millan <rmh@aybabtu.com>
39759
39760 * include/grub/i386/linuxbios/console.h: Add header protection.
39761 (grub_keyboard_controller_init): New function prototype.
39762 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39763 (KEYBOARD_COMMAND_READ): Likewise.
39764 (KEYBOARD_COMMAND_WRITE): Likewise.
39765 (KEYBOARD_SCANCODE_SET1): Likewise.
39766 (grub_keyboard_controller_write): New function.
39767 (grub_keyboard_controller_read): Likewise.
39768 (grub_keyboard_controller_init): Likewise.
39769
39770 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39771 (grub_console_init): On coreboot/LinuxBIOS, call
39772 grub_keyboard_controller_init().
39773
5f5a7c15 397742008-01-19 Robert Millan <rmh@aybabtu.com>
39775
39776 PowerPC changes provided by Pavel Roskin.
39777
39778 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39779 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39780 don't rely on cmain() doing it.
39781 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39782 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39783
1210e168 397842008-01-16 Robert Millan <rmh@aybabtu.com>
39785
39786 * include/grub/i386/linuxbios/memory.h
39787 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39788 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39789 receive `table_header' as argument. Instead, probe for it in the
39790 known memory ranges where it can be present.
39791 (grub_available_iterate): Do not pass a fixed `table_header' address
39792 to grub_linuxbios_table_iterate().
39793
3d04eab8 397942008-01-15 Robert Millan <rmh@aybabtu.com>
39795
39796 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39797 * conf/i386-ieee1275.rmk: New file.
39798 * include/grub/i386/ieee1275/console.h: Likewise.
39799 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39800 * include/grub/i386/ieee1275/kernel.h: Likewise.
39801 * include/grub/i386/ieee1275/time.h: Likewise.
39802 * kern/i386/ieee1275/init.c: Likewise.
39803 * kern/i386/ieee1275/startup.S: Likewise.
39804
d1bc1b73 398052008-01-15 Robert Millan <rmh@aybabtu.com>
39806
39807 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39808 when pointers are 32-bit (but still do set it to one when they are
39809 64-bit).
39810
66a65807 398112008-01-15 Robert Millan <rmh@aybabtu.com>
39812
39813 * include/grub/ieee1275/ieee1275.h
39814 (grub_ieee1275_get_integer_property): New function prototype.
39815
39816 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39817 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 39818 grub_ieee1275_get_property() to handle endianness.
66a65807 39819
39820 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39821 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 39822 where appropriate.
66a65807 39823 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39824 (grub_map): Likewise.
39825 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39826
a83ccafd 398272008-01-15 Bean <bean123ch@gmail.com>
39828
39829 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39830 (grub_script_execute_cmdline): Reset grub_errno.
39831
39832 * normal/main.c (read_config_file): Reset grub_errno.
39833
39834 * normal/parse.y (script_init): New.
39835 (script): Move function and menuentry here.
39836 (delimiter): New.
39837 (command): Add delimiter at the end of command.
39838 (commands): Adjust to match the new command.
39839 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 39840 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 39841 (if): Use the new commands.
39842
39843 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39844
df6ecfc6 398452008-01-15 Robert Millan <rmh@aybabtu.com>
39846
39847 * normal/menu.c (run_menu): Move timeout message from here ...
39848 (print_timeout): ... to here.
39849 (run_menu): Use print_timeout() once during initial draw to print
39850 the whole message, and again in every clock tick to update only
39851 the number of seconds.
39852
87ae25eb 398532008-01-15 Robert Millan <rmh@aybabtu.com>
39854
39855 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39856 actual size of `available' from grub_ieee1275_get_property(), and
39857 restrict parsing to that bound.
39858
47bf09a4 398592008-01-15 Christian Franke <franke@computer.org>
39860
39861 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39862 (argp_program_version): Remove variable.
39863 (argp_program_bug_address): Likewise.
39864 (options): Convert from struct argp_option to struct option.
39865 (struct arguments): Remove.
39866 (parse_opt): Remove.
39867 (usage): New function.
39868 (main): Replace struct args members by simple variables.
39869 Replace argp_parse() by getopt_long().
39870 Add switch to evaluate options.
39871 Add missing "(...)" around root_dev in prefix string.
39872
c86f1469 398732008-01-14 Robert Millan <rmh@aybabtu.com>
39874
39875 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39876 for grub_ieee1275_exit(), in order to improve portability.
39877
e622c559 398782008-01-14 Robert Millan <rmh@aybabtu.com>
39879
39880 * util/grub.d/10_linux.in (prefix): Define.
39881 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39882
44cb1ec8 398832008-01-13 Pavel Roskin <proski@gnu.org>
39884
39885 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39886 grub_errno if no errors have been detected.
39887
1eb8c802 398882008-01-12 Robert Millan <rmh@aybabtu.com>
39889
39890 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39891 (grub_util_get_dev_abstraction): New function prototype.
39892
39893 * util/getroot.c: Include `<grub/util/getroot.h>'
39894 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39895 (grub_util_get_dev_abstraction): ... here (new function).
39896
39897 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39898 `PRINT_ABSTRACTION'.
39899 (probe): Probe for abstraction type when requested.
39900 (main): Understand `--target=abstraction'.
39901
39902 * util/i386/efi/grub-install.in: Add abstraction module to core
39903 image when it is found to be necessary.
39904 * util/i386/pc/grub-install.in: Likewise.
39905 * util/powerpc/ieee1275/grub-install.in: Likewise.
39906
39907 * util/update-grub_lib.in (font_path): Return system path without
39908 converting to GRUB path.
39909 * util/update-grub.in: Convert system path returned by font_path()
39910 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39911 abstraction module is needed for loading fonts (if any). Export
39912 that as `GRUB_PRELOAD_MODULES'.
39913 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39914 insmod commands).
39915
52bd3de9 399162008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39917
39918 Remove some unused code from reiserfs.
f19dbdb7 39919
52bd3de9 39920 * fs/reiserfs.c (struct grub_reiserfs_key)
39921 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39922 (struct grub_reiserfs_node_body): Removed.
39923 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39924 Likewise.
39925 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39926 Likewise.
39927 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39928 Likewise.
39929 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39930 Likewise.
39931 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39932 Likewise.
39933 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39934 Likewise.
39935 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39936 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39937 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39938
2f80039d 399392008-01-10 Robert Millan <rmh@aybabtu.com>
39940
39941 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39942 Determines if a file is garbage left by packaging systems, etc.
39943 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39944 for processing /etc/grub.d scripts.
39945 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39946 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39947 as a condition for processing Linux images.
39948
87888032 399492008-01-10 Pavel Roskin <proski@gnu.org>
39950
39951 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39952 to compile reiserfs.c on PowerPC.
39953
7e54fced 399542008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 39955
39956 * kern/device.c (grub_device_iterate): Do not abort device iteration
39957 when one of the devices cannot be opened.
39958 * kern/disk.c (grub_disk_open): Do not account previous failures of
39959 unrelated functions when grub_errno is checked for.
39960
5aa541e6 399612008-01-08 Robert Millan <rmh@aybabtu.com>
39962
39963 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39964 `! grub_linux_is_bzimage', change order of address comparison to make
39965 it more intuitive, and improve "too big zImage" error message.
39966
7076340d 399672008-01-08 Robert Millan <rmh@aybabtu.com>
39968
39969 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39970 `$(update-grub_DATA)'.
39971 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39972 targets.
39973
9ca70333 399742008-01-07 Robert Millan <rmh@aybabtu.com>
39975
39976 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39977 which instruction is modified by grub-setup during installation
39978 (since it wasn't obvious by only looking at this file).
39979
38ccf575 399802008-01-07 Robert Millan <rmh@aybabtu.com>
39981
39982 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39983 listing actual TODO items.
39984
f5db4291 399852008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39986
868967cf 39987 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39988 correctly.
39989 (grub_reiserfs_get_key_offset): Likewise.
39990 (grub_reiserfs_set_key_offset): Likewise.
39991 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 39992 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 39993
39994 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39995 better to remove the bitfield version completely.
f19dbdb7 39996
868967cf 399972008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 39998
f5db4291 39999 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
40000 allocated from the heap, due to the fshelp implementation.
40001 (grub_reiserfs_dir): Free NODE, due to the same reason.
40002
492e6d9d 400032008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40004
40005 Mostly from Vincent Pelletier:
f19dbdb7 40006
492e6d9d 40007 * fs/reiserfs.c: New file.
f19dbdb7 40008
492e6d9d 40009 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
40010 (reiserfs_mod_SOURCES): New variable.
40011 (reiserfs_mod_CFLAGS): Likewise.
40012 (reiserfs_mod_LDFLAGS): Likewise.
40013
40014 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
40015 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
40016 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
40017 normal/color.c.
40018
9ce3e7c1 400192008-01-06 Robert Millan <rmh@aybabtu.com>
40020
40021 * normal/color.c: Remove `<grub/env.h>'.
40022
f3b58148 400232008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
40024
40025 * include/grub/normal.h: Include <grub/env.h>.
40026
7ac3bcfa 400272008-01-05 Robert Millan <rmh@aybabtu.com>
40028
40029 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
40030 usage example with `(hd0,1)'.
fb358190 40031 Reported by Samuel Thibault.
7ac3bcfa 40032
c8ee99d7 400332008-01-05 Robert Millan <rmh@aybabtu.com>
40034
40035 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
40036 (grub_linux_boot_zimage): Rename to ...
40037 (grub_linux_boot): ... this.
40038 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
40039 (grub_linux_boot_zimage): Conditionalize zImage copy.
40040
40041 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
40042 (grub_linux_boot_bzimage): Remove prototype.
40043 (grub_linux_boot_zimage): Rename to ...
40044 (grub_linux_boot): ... this.
40045
40046 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
40047 (grub_linux_boot): Remove function.
40048
0ece25b1 400492008-01-05 Robert Millan <rmh@aybabtu.com>
40050
40051 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
40052 (grub_env_write_color_highlight): Likewise.
40053 (grub_wait_after_message): Likewise.
40054
40055 * normal/color.c: New file.
40056
40057 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40058 (normal_mod_DEPENDENCIES): Likewise.
40059
40060 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40061 (normal_mod_DEPENDENCIES): Likewise.
40062
40063 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40064 (normal_mod_DEPENDENCIES): Likewise.
40065
40066 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40067 (normal_mod_DEPENDENCIES): Likewise.
40068
40069 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
40070 for waiting after a message is printed.
40071 * normal/main.c (read_config_file): Likewise.
40072 (grub_normal_init): Register grub_env_write_color_normal() and
40073 grub_env_write_color_highlight() hooks. Mark `color_normal' and
40074 `color_highlight' variables as global.
40075
40076 * normal/menu.c (grub_wait_after_message): New function.
40077 (grub_color_menu_normal): New variable. Replaces ...
40078 (GRUB_COLOR_MENU_NORMAL): ... this macro.
40079 (grub_color_menu_highlight): New variable. Replaces ...
40080 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
40081 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
40082 `GRUB_TERM_COLOR_STANDARD'.
40083 (print_message): Use `grub_setcolorstate' to reload colors. Rename
40084 `normal_code' and `highlight_code' to `old_color_normal' and
40085 `old_color_highlight', respectively.
40086 (grub_menu_init_page): Update colors when drawing the menu, based on
40087 `menu_color_normal' and `menu_color_highlight' variables.
40088 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
40089 a message is printed.
40090
182dd4e5 400912008-01-05 Robert Millan <rmh@aybabtu.com>
40092
40093 * kern/env.c (grub_env_context_open): Propagate hooks for global
40094 variables to new context.
40095
40096 * kern/main.c (grub_set_root_dev): Export `root' variable.
40097
ddf8f6ad 400982008-01-05 Robert Millan <rmh@aybabtu.com>
40099
40100 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 40101 discs unconditionally, since udev and others have options to provide
ddf8f6ad 40102 them.
40103
d8b43d9b 401042008-01-05 Robert Millan <rmh@aybabtu.com>
40105
40106 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
40107
2bff2de3 401082008-01-04 Christian Franke <franke@computer.org>
40109
40110 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
40111 of eisa_mmap.
40112
97eab917 401132008-01-03 Pavel Roskin <proski@gnu.org>
40114
40115 * kern/i386/linuxbios/init.c: Put "void" to all function
40116 declarations with no arguments.
40117 * kern/powerpc/ieee1275/init.c: Likewise.
40118 * term/i386/pc/at_keyboard.c: Likewise.
40119 * term/i386/pc/vga_text.c: Likewise.
40120 * util/grub-mkdevicemap.c: Likewise.
40121
b9416d00 401222008-01-02 Robert Millan <rmh@aybabtu.com>
40123
40124 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
40125 message when loaded image is out of bounds.
40126 (grub_multiboot_load_elf64): Likewise.
40127
92695df9 401282008-01-02 Pavel Roskin <proski@gnu.org>
40129
40130 * util/grub.d/10_linux.in: Try version without ".old" when
40131 looking for initrd. It's better to use initrd from the newer
40132 kernel of the same version than no initrd at all.
40133
d98d9cad 401342008-01-01 Robert Millan <rmh@aybabtu.com>
40135
40136 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
40137
dbfdce36 401382008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
40139
f19dbdb7 40140 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 40141 grub_video_get_active_render_target.
40142 (grub_video_adapter): Added unmap_color and get_active_render_target.
40143
f19dbdb7 40144 * video/video.c: Added grub_video_unmap_color and
dbfdce36 40145 grub_video_get_active_render_target.
40146 (grub_video_get_info): Changed method to accept NULL pointer as an
40147 argument to allow detection of active video adapter.
40148
40149 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
40150 grub_video_vbe_unmap_color_int.
40151 Added grub_video_vbe_unmap_color and
40152 grub_video_vbe_get_active_render_target.
40153 (grub_video_vbe_adapter): Added unmap_color and
40154 get_active_render_target.
40155
f19dbdb7 40156 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 40157 with grub_video_vbe_unmap_color_int.
40158
40159 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
40160 (DEFAULT_NORMAL_COLOR): Likewise.
40161 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
40162 (DEFAULT_FG_COLOR): Removed.
40163 (DEFAULT_BG_COLOR): Likewise.
40164 (DEFAULT_CURSOR_COLOR): Changed value.
40165 (grub_virtual_screen): Added standard_color_setting,
40166 normal_color_setting, highlight_color_setting and term_color.
40167 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
40168 (bitmap_width): Added.
40169 (bitmap_height): Likewise.
40170 (bitmap): Likewise.
40171 (set_term_color): Likewise.
40172 (grub_virtual_screen_setup): Changed to use new terminal coloring
40173 settings.
40174 (grub_gfxterm_init): Added init for bitmap.
40175 (grub_gfxterm_fini): Added destroy for bitmap.
40176 (redraw_screen_rect): Updated to use background bitmap and new
40177 terminal coloring.
40178 (scroll_up): Added optimization for case when there is no bitmap.
40179 (grub_gfxterm_cls): Fixed to use correct background color.
40180 (grub_virtual_screen_setcolorstate): Changed to use new terminal
40181 coloring.
40182 (grub_virtual_screen_setcolor): Likewise.
40183 (grub_virtual_screen_getcolor): Added.
40184 (grub_gfxterm_background_image_cmd): Likewise.
40185 (grub_video_term): Added setcolor and getcolor.
40186 (MOD_INIT): Added registration of background_image command.
40187 (MOD_TERM): Added unregistration for background_image command.
40188
c3c20931 401892007-12-30 Pavel Roskin <proski@gnu.org>
40190
40191 * loader/multiboot_loader.c: Fix multiboot command
40192 unregistration. Fix all typos in the word "multiboot".
40193
df266716 401942007-12-29 Pavel Roskin <proski@gnu.org>
94239199 40195
40196 * util/grub.d/10_linux.in: Refactor search for initrd. Add
40197 support for initrd names used in Fedora.
40198
fc6e896c 401992007-12-26 Bean <bean123ch@gmail.com>
40200
40201 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
40202 (cpio_mod_SOURCES): New variable.
40203 (cpio_mod_CFLAGS): Likewise.
40204 (cpio_mod_LDFLAGS): Likewise.
40205
40206 * fs/cpio.c: New file.
40207
40208 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
40209
40210 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40211
40212 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40213
40214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40215
533110ad 402162007-12-25 Robert Millan <rmh@aybabtu.com>
40217
40218 * include/grub/term.h (struct grub_term): Add `getcolor' function.
40219 (grub_getcolor): New function.
40220
40221 * kern/term.c (grub_getcolor): New function.
40222 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
40223 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
40224 (print_entry): Set normal and highlight colors to
40225 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
40226 respectively, before printing and restore them to old
40227 values afterwards.
40228 (grub_menu_init_page): Likewise. Fill an additional colored space
40229 that would otherwise be left blank.
40230
40231 * term/efi/console.c (grub_console_getcolor): New function.
40232 (struct grub_console_term.getcolor): New variable.
40233 * term/i386/pc/console.c (grub_console_getcolor): New function.
40234 (struct grub_console_term.getcolor): New variable.
40235 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
40236 (struct grub_console_term.getcolor): New variable.
40237
40238 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
40239 (struct grub_console_term.setcolor): Remove variable.
40240 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
40241 (struct grub_console_term.setcolor): Remove variable.
40242 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
40243 (struct grub_console_term.setcolor): Remove variable.
40244 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
40245 (struct grub_console_term.setcolor): Remove variable.
40246
4931827f 402472007-12-25 Robert Millan <rmh@aybabtu.com>
40248
40249 * configure.ac: Search for possible unifont.hex locations, and
40250 define UNIFONT_HEX if found.
40251
40252 * Makefile.in (UNIFONT_HEX): Define variable.
40253 (DATA): Rename to ...
40254 (PKGLIB): ... this. Update all users.
40255 (PKGDATA): New variable.
40256 (pkgdata_IMAGES): Rename to ...
40257 (pkglib_IMAGES): ... this. Update all users.
40258 (pkgdata_MODULES): Rename to ...
40259 (pkglib_MODULES): ... this. Update all users.
40260 (pkgdata_PROGRAMS): Rename to ...
40261 (pkglib_PROGRAMS): ... this. Update all users.
40262 (pkgdata_DATA): Rename to ...
40263 (pkglib_DATA): ... this. Update all users.
40264 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
40265 (unicode.pff, ascii.pff): New rules.
40266 (all-local): Add `$(PKGDATA)' dependency.
40267 (install-local): Process `$(PKGDATA)'.
40268
40269 * util/update-grub_lib.in (font_path): Search for *.pff files in
40270 a few more locations, including `${pkgdata}'.
40271
57e57e31 402722007-12-23 Robert Millan <rmh@aybabtu.com>
40273
40274 Patch from Bean <bean123ch@gmail.com>:
40275 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
40276 `size'.
40277
4bc72aa9 402782007-12-21 Bean <bean123ch@gmail.com>
40279
40280 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
40281 (ntfscomp_mod_SOURCES): New variable.
40282 (ntfscomp_mod_CFLAGS): Likewise.
40283 (ntfscomp_mod_LDFLAGS): Likewise.
40284
40285 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
40286 (grub_probe_SOURCES): Likewise.
40287 (grub_emu_SOURCES): Likewise.
40288
40289 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40290 (grub_emu_SOURCES): Likewise.
40291
40292 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40293 (grub_emu_SOURCES): Likewise.
40294
40295 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40296 (grub_emu_SOURCES): Likewise.
40297
40298 * fs/ntfs.c (grub_ntfscomp_func): New variable.
40299 (read_run_list): Renamed to grub_ntfs_read_run_list.
40300 (decomp_nextvcn): Moved to ntfscomp.c.
40301 (decomp_getch): Likewise.
40302 (decomp_get16): Likewise.
40303 (decomp_block): Likewise.
40304 (read_block): Likewise.
40305 (read_data): Partially moved to ntfscomp.c.
40306 (fixup): Change unsigned to grub_uint16_t.
40307 (read_mft): Change unsigned long to grub_uint32_t.
40308 (read_attr): Likewise.
40309 (read_data): Likewise.
40310 (read_run_data): Likewise.
40311 (read_run_list): Likewise.
40312 (read_mft): Likewise.
40313
40314 * fs/ntfscomp.c: New file.
40315
40316 * include/grub/ntfs.h: New file.
40317
af680a87 403182007-12-16 Robert Millan <rmh@aybabtu.com>
40319
40320 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40321 IDE disk check, since Linux is known to support 20 IDE disks.
40322 Reported by Colin Watson.
40323
84be7599 403242007-12-15 Bean <bean123ch@gmail.com>
40325
40326 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40327 (lnxboot_img_SOURCES): New variable.
40328 (lnxboot_img_ASFLAGS): Likewise.
40329 (lnxboot_img_LDFLAGS): Likewise.
40330
40331 * boot/i386/pc/lnxboot.S: New file.
40332
6af9db01 403332007-11-24 Pavel Roskin <proski@gnu.org>
40334
40335 * configure.ac: Test if '--build-id=none' is supported by the
40336 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40337 objcopy to generate incorrect binary files (binutils
40338 2.17.50.0.18-1 as shipped by Fedora 8).
40339 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40340 linking, so that build ID doesn't break the test.
40341
7361cfe6 403422007-11-24 Pavel Roskin <proski@gnu.org>
40343
40344 * include/grub/i386/time.h: use "void" in the argument list
40345 of grub_cpu_idle().
40346 * include/grub/powerpc/time.h: Likewise.
40347 * include/grub/sparc64/time.h: Likewise.
40348
1593e10c 403492007-11-18 Christian Franke <franke@computer.org>
40350
40351 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40352 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40353 This fixes the problem that function keys did not work in grub-emu.
40354
3b8db1a8 403552007-11-18 Christian Franke <franke@computer.org>
40356
40357 * disk/host.c (grub_host_open): Remove attribute unused from
40358 name parameter. Add check for "host". This fixes the problem
40359 that grub-emu does not find partitions.
40360
2e29408d 403612007-11-18 Christian Franke <franke@computer.org>
40362
40363 * util/hostfs.c (is_dir): New function.
40364 (grub_hostfs_dir): Handle missing dirent.d_type case.
40365 (grub_hostfs_read): Add missing fseek().
40366 (grub_hostfs_label): Clear label pointer. This fixes a crash
40367 of grub-emu on "ls (host)".
40368
398cd047 403692007-11-18 Christian Franke <franke@computer.org>
40370
40371 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40372 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40373 to 64 bit boundary by default.
40374
c405c391 403752007-11-18 Bean <bean123ch@gmail.com>
40376
40377 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40378 (hexdump_mod_SOURCES): New variable.
40379 (hexdump_mod_CFLAGS): Likewise.
40380 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 40381
c405c391 40382 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40383
40384 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40385
40386 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40387
40388 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40389
40390 * include/grub/hexdump.h: New file.
40391
40392 * commands/hexdump.c: New file.
40393
5cced7fd 403942007-11-10 Robert Millan <rmh@aybabtu.com>
40395
40396 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40397 in grub_outb() calls.
40398 (beep_on): Likewise.
40399
8b714eb0 404002007-11-10 Christian Franke <franke@computer.org>
40401
40402 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40403 (grub_menu_run): Likewise.
40404
ce0f1839 404052007-11-10 Robert Millan <rmh@aybabtu.com>
40406
40407 * include/grub/i386/efi/machine.h: New file.
40408 * include/grub/i386/linuxbios/machine.h: Likewise.
40409 * include/grub/i386/pc/machine.h: Likewise.
40410 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40411 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40412
40413 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40414 (serial_hw_io_addr): New variable.
40415 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40416 instead of `(unsigned short *) 0x400'.
40417
270c237d 404182007-11-10 Bean <bean123ch@gmail.com>
40419
40420 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40421
a87783bf 404222007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40423
40424 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40425 (vga_mod_SOURCES): Added.
40426 (vga_mod_CFLAGS): Likewise.
40427 (vga_mod_LDFLAGS): Likewise.
40428
40429 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40430 grub_outb() calls.
40431 (set_map_mask): Likewise.
40432 (set_read_map): Likewise.
40433 (set_read_address): Likewise.
40434 (vga_font): Removed variable.
40435 (get_vga_glyph): Removed function.
40436 (invalidate_char): Likewise.
40437 (write_char): Changed to use grub_font_get_glyph() for font
40438 information.
40439 (grub_vga_putchar): Likewise.
40440 (grub_vga_getcharwidth): Likewise.
40441
6433b448 404422007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40443
40444 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40445 flags.
40446 (pxeboot_img_LDFLAGS): Likewise.
40447 (diskboot_img_LDFLAGS): Likewise.
40448 (kernel_img_LDFLAGS): Likewise.
40449
49178511 404502007-11-06 Robert Millan <rmh@aybabtu.com>
40451
40452 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40453 in grub_outb() calls.
40454 (serial_hw_init): Likewise.
40455
53b052de 404562007-11-05 Robert Millan <rmh@aybabtu.com>
40457
40458 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40459 spaces. Skip non-regular files.
40460
5ab33bba 404612007-11-05 Robert Millan <rmh@aybabtu.com>
40462
40463 * kern/disk.c (grub_disk_firmware_fini)
40464 (grub_disk_firmware_is_tainted): New variables.
40465
40466 * include/grub/disk.h (grub_disk_firmware_fini)
40467 (grub_disk_firmware_is_tainted): Likewise.
40468
40469 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40470 (grub_disk_biosdisk_fini): ... to here.
40471 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40472 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40473 is set. Register grub_disk_biosdisk_fini() in
40474 `grub_disk_firmware_fini'.
40475
40476 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40477 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40478 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40479 to finish existing firmware disk interface.
40480
40481 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40482 (ata_mod_SOURCES): New variable.
40483 (ata_mod_CFLAGS): Likewise.
40484 (ata_mod_LDFLAGS): Likewise.
40485
0149ab7c 404862007-11-05 Robert Millan <rmh@aybabtu.com>
40487
40488 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40489 (grub_ata_wait): Reimplement using grub_millisleep().
40490
40491 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40492 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40493
be7ac41e 404942007-11-03 Marco Gerards <marco@gnu.org>
40495
40496 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40497 (CRTC_ADDR_PORT): New macro.
40498 (CRTC_DATA_PORT): Likewise.
40499 (CRTC_CURSOR): Likewise.
40500 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40501 (CRTC_CURSOR_ADDR_LOW): Likewise.
40502 (update_cursor): New function.
40503 (grub_console_real_putchar): Call `update_cursor'.
40504 (grub_console_gotoxy): Likewise.
40505 (grub_console_cls): Set the default color when clearing the
40506 screen.
40507 (grub_console_setcursor): Implemented.
40508
bb06ab2e 405092007-11-03 Marco Gerards <marco@gnu.org>
40510
40511 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40512 become activate.
40513 (grub_ata_pio_write): Likewise.
40514
40515 (grub_atapi_identify): Wait after issuing an ATA command.
40516 (grub_atapi_packet): Likewise.
40517 (grub_ata_identify): Likewise.
40518 (grub_ata_readwrite): Likewise.
40519
cf8f780b 405202007-11-03 Marco Gerards <marco@gnu.org>
40521
40522 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40523 (grub_ata_pio_write): Likewise.
40524 (grub_ata_readwrite): Use `grub_error', instead of
40525 returning `grub_errno'.
40526
ed649e54 405272007-11-03 Marco Gerards <marco@gnu.org>
40528
40529 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40530 grub_ata_pio_write once for every single sector, instead of for
40531 multiple sectors.
40532
ca25d8f0 405332007-10-31 Robert Millan <rmh@aybabtu.com>
40534
40535 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40536
40537 * conf/i386-linuxbios.rmk: New file.
40538
40539 * kern/i386/pc/hardware.c: Likewise.
40540 * term/i386/pc/at_keyboard.c: Likewise.
40541 * term/i386/pc/vga_text.c: Likewise.
40542
40543 * include/grub/i386/linuxbios/boot.h: Likewise.
40544 * include/grub/i386/linuxbios/console.h: Likewise.
40545 * include/grub/i386/linuxbios/init.h: Likewise.
40546 * include/grub/i386/linuxbios/kernel.h: Likewise.
40547 * include/grub/i386/linuxbios/loader.h: Likewise.
40548 * include/grub/i386/linuxbios/memory.h: Likewise.
40549 * include/grub/i386/linuxbios/serial.h: Likewise.
40550 * include/grub/i386/linuxbios/time.h: Likewise.
40551
40552 * kern/i386/linuxbios/init.c: Likewise.
40553 * kern/i386/linuxbios/startup.S: Likewise.
40554 * kern/i386/linuxbios/table.c: Likewise.
40555
e911ecc1 405562007-10-31 Marco Gerards <marco@gnu.org>
40557
40558 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40559 (ata_mod_SOURCES): New variable.
40560 (ata_mod_CFLAGS): Likewise.
40561 (ata_mod_LDFLAGS): Likewise.
40562
40563 * disk/ata.c: New file.
40564
40565 * include/grub/disk.h (grub_disk_dev_id): Add
40566 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 40567
7f66d0e0 405682007-10-31 Robert Millan <rmh@aybabtu.com>
40569
40570 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40571 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40572
40573 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40574 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40575
40576 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40577 `<grub/types.h>'.
40578
40579 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40580
5cd7dd46 405812007-10-27 Robert Millan <rmh@aybabtu.com>
40582
3236ca65 40583 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 40584
2ebfc90f 405852007-10-22 Robert Millan <rmh@aybabtu.com>
40586
40587 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40588 `"../realmode.S"'.
40589 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40590
73fcb0f3 405912007-10-22 Robert Millan <rmh@aybabtu.com>
40592
40593 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40594 (pkgdata_MODULES): Add `biosdisk.mod'.
40595 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40596 variables.
40597
40598 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40599 (grub_biosdisk_init): Replace with ...
40600 (GRUB_MOD_INIT(biosdisk)): ... this.
40601 (grub_biosdisk_fini): Replace with ...
40602 (GRUB_MOD_FINI(biosdisk)): ... this.
40603
40604 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40605 (grub_machine_init): Remove call to grub_biosdisk_init().
40606 (grub_machine_fini): Remove call to grub_machine_fini().
40607
40608 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40609
3381d274 406102007-10-22 Robert Millan <rmh@aybabtu.com>
40611
40612 * include/grub/time.h: New file.
40613 * include/grub/i386/time.h: Likewise.
40614 * include/grub/powerpc/time.h: Likewise.
40615 * include/grub/sparc64/time.h: Likewise.
40616
40617 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40618 instances to ...
40619 (KERNEL_MACHINE_TIME_HEADER): ... this.
40620 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40621 instances to ...
40622 (KERNEL_MACHINE_TIME_HEADER): ... this.
40623 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40624 instances to ...
40625 (KERNEL_MACHINE_TIME_HEADER): ... this.
40626
40627 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40628 (grub_millisleep): New function.
40629 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40630 (grub_millisleep): New function.
40631 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40632 Remove `grub/machine/time.h' include.
40633 (grub_millisleep): New function.
40634 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40635 Remove `grub/machine/time.h' include.
40636 (grub_millisleep): New function.
40637
40638 * include/grub/misc.h (grub_div_roundup): New function.
40639
40640 * kern/misc.c: Include `<grub/time.h>'.
40641 (grub_millisleep_generic): New function.
40642
40643 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40644 Add `time.h'.
40645 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40646 Add `time.h'.
40647 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40648 `machine/time.h'. Add `time.h'.
40649 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40650
a39a0312 406512007-10-21 Robert Millan <rmh@aybabtu.com>
40652
40653 * include/grub/misc.h (grub_max): New function.
40654
2aad70e2 406552007-10-21 Robert Millan <rmh@aybabtu.com>
40656
40657 * util/misc.c (grub_util_info): Call fflush() before returning.
40658
54b71c4b 406592007-10-20 Robert Millan <rmh@aybabtu.com>
40660
40661 * genmk.rb (Image): Copy `extra_flags' from here ...
40662 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40663
40664 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40665 to `argc' and `args' arguments.
40666
a979f513 406672007-10-17 Robert Millan <rmh@aybabtu.com>
40668
40669 * kern/i386/loader.S: New file.
40670
40671 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40672 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40673 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40674 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40675 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40676 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40677 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40678 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40679 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40680 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40681 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40682 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40683 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40684 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40685
40686 * kern/i386/realmode.S: New file.
40687
40688 * kern/i386/pc/startup.S (protstack): Moved from here ...
40689 * kern/i386/realmode.S (protstack)... to here.
40690 * kern/i386/pc/startup.S (gdt): Moved from here ...
40691 * kern/i386/realmode.S (gdt)... to here.
40692 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40693 * kern/i386/realmode.S (prot_to_real)... to here.
40694
40695 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40696 `kern/i386/realmode.S'.
40697
825fc8fd 406982007-10-17 Robert Millan <rmh@aybabtu.com>
40699
40700 * include/grub/i386/loader.h: New file.
40701
40702 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40703 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40704 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40705 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40706 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40707 * include/grub/i386/loader.h (grub_linux_prot_size)
40708 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40709 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40710 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40711 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40712
40713 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40714
e179b2f4 407152007-10-15 Robert Millan <rmh@aybabtu.com>
40716
40717 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40718 filesystem when dev->disk is unset.
40719 Do probe for filesystem even when dev->disk->has_partitions is set.
40720 In case a filesystem is found, always report it.
40721 In case it isn't, if dev->disk->has_partitions is set, report that
40722 a partition table was found instead of reporting that no filesystem
40723 could be identified.
40724
5db82af6 407252007-10-12 Robert Millan <rmh@aybabtu.com>
40726
40727 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40728 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40729
68f6ac74 40730 * include/grub/types.h (grub_host_to_target16): New macro.
40731 (grub_host_to_target32): Likewise.
40732 (grub_host_to_target64): Likewise.
40733 (grub_target_to_host16): Likewise.
40734 (grub_target_to_host32): Likewise.
40735 (grub_target_to_host64): Likewise.
5db82af6 40736
40737 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40738 Renamed from to ...
40739 (GRUB_MOD_ALIGN): ...this. Update all users.
40740
68f6ac74 40741 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40742 grub_host_to_target32.
40743 Replace grub_be_to_cpu32 with grub_target_to_host32.
40744 (load_modules): Likewise.
40745 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40746 Replace grub_be_to_cpu32 with grub_target_to_host32.
40747 Replace grub_cpu_to_be16 with grub_host_to_target16.
40748 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 40749
3cf497cc 407502007-10-12 Robert Millan <rmh@aybabtu.com>
40751
40752 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40753 * util/elf/grub-mkimage.c: ... here.
40754
40755 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40756 `util/powerpc/ieee1275/grub-mkimage.c'.
40757
c8cc3692 407582007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 40759
c8cc3692 40760 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40761 and make it easier to figure out.
40762 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40763 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40764 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40765 leave us with less than HEAP_MIN_SIZE total heap.
40766 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 40767
5c58b791 407682007-10-03 Robert Millan <rmh@aybabtu.com>
40769
40770 * include/grub/i386/io.h: New file.
40771 * commands/i386/pc/play.c (inb): Removed.
40772 (outb): Removed.
40773 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40774 with grub_outb().
afcd2ef8 40775 * term/i386/pc/serial.c (inb): Removed.
40776 (outb): Removed.
40777 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40778 with grub_outb().
40779 * term/i386/pc/vga.c (inb): Removed.
40780 (outb): Removed.
40781 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40782 with grub_outb().
5c58b791 40783
1a477ed6 407842007-10-02 Robert Millan <rmh@aybabtu.com>
40785
40786 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40788 Reported by Marcin Kurek.
40789
6b5d80fa 407902007-09-07 Robert Millan <rmh@aybabtu.com>
40791
40792 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40793 SmartFirmware version updates (as released by Sven Luther), and avoid
40794 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40795 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40796 known broken.
40797
5618afbf 407982007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40799
40800 From Hitoshi Ozeki:
40801 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40802 when merging two regions.
40803
6139dcd9 408042007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40805
508e39ee 40806 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40807 * normal/completion.c (grub_normal_do_completion): Likewise.
40808 Reported by Hitoshi Ozeki.
40809
408102007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40811
6139dcd9 40812 Do not use devices at boot in chainloading.
f19dbdb7 40813
6139dcd9 40814 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40815 (boot_part_addr): Likewise.
40816 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40817 with BOOT_DRIVE and BOOT_PART_ADDR.
40818 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40819 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40820
38da6516 408212007-08-29 Robert Millan <rmh@aybabtu.com>
40822
40823 Patch from Simon Peter <dn.tlp@gmx.net>:
40824 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40825 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40826 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40827 util/i386/pc/grub-setup.c_DEPENDENCIES.
40828 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40829 util/grub-probe.c_DEPENDENCIES.
40830 * conf/powerpc-ieee1275.rmk: Likewise.
40831
29d0928c 408322007-08-28 Robert Millan <rmh@aybabtu.com>
40833
40834 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40835 to tell grub-mkdevicemap how to name devices.
40836 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40837 feature).
40838
40839 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40840 util/i386/get_disk_name.c.
40841 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40842 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40843 util/ieee1275/get_disk_name.c.
40844
40845 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40846
40847 * DISTLIST: Add util/i386/get_disk_name.c and
40848 util/ieee1275/get_disk_name.c.
40849
40850 * util/grub-mkdevicemap.c: Replace device naming logic with
40851 grub_util_get_disk_name() calls.
40852
5a0d3cca 408532007-08-20 Robert Millan <rmh@aybabtu.com>
40854
40855 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40856 (so that it works for both plural and singular quantities).
40857
8b72db2f 408582007-08-05 Robert Millan <rmh@aybabtu.com>
40859
40860 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40861 so that [xz] isn't taken into account when determining order.
40862
352466bf 408632007-08-02 Marco Gerards <marco@gnu.org>
40864
40865 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40866 `include/multiboot2.h', `include/grub/elfload.h',
40867 `include/multiboot.h', `include/grub/multiboot.h',
40868 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40869 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40870 `kern/elf.c', `loader/multiboot_loader.c',
40871 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40872 `loader/i386/pc/multiboot2.c',
40873 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40874 `util/i386/pc/grub-mkrescue.in'. Remove
40875 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40876 `include/grub/i386/pc/util/biosdisk.h' and
40877 `include/grub/powerpc/ieee1275/multiboot.h'.
40878
8f096014 408792007-08-02 Bean <bean123ch@gmail.com>
40880
40881 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40882 (ntfs_mod_SOURCES): New variable.
40883 (ntfs_mod_CFLAGS): Likewise.
40884 (ntfs_mod_LDFLAGS): Likewise.
40885
40886 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40887 (grub_probe_SOURCES): Likewise.
40888 (grub_emu_SOURCES): Likewise.
40889
40890 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40891 (grub_emu_SOURCES): Likewise.
40892
40893 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40894 (grub_emu_SOURCES): Likewise.
f19dbdb7 40895
8f096014 40896 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40897
40898 * fs/ntfs.c: New file.
40899
9959f7db 409002007-08-02 Bean <bean123ch@gmail.com>
40901
40902 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40903
40904 * file.h (grub_file): Likewise.
40905
40906 * fshelp.h (grub_fshelp_read_file): Likewise.
40907
40908 * util/i386/pc/grub-setup.c (setup): Likewise.
40909 (save_first_sector): Likewise.
40910 (save_blocklists): Likewise.
f19dbdb7 40911
9959f7db 40912 * fs/affs.c (grub_affs_read_file): Likewise.
40913
40914 * fs/ext2.c (grub_ext2_read_file): Likewise.
40915
40916 * fs/fat.c (grub_fat_read_data): Likewise.
40917
40918 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40919
40920 * fs/hfs.c (grub_hfs_read_file): Likewise.
40921
40922 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40923
40924 * fs/jfs.c (grub_jfs_read_file): Likewise.
40925
40926 * fs/minix.c (grub_minix_read_file): Likewise.
40927
40928 * fs/sfs.c (grub_sfs_read_file): Likewise.
40929
40930 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 40931
9959f7db 40932 * fs/xfs.c (grub_xfs_read_file): Likewise.
40933
40934 * command/blocklist.c (read_blocklist): Likewise.
40935 (print_blocklist): Likewise.
40936
0a203f83 409372007-08-02 Marco Gerards <marco@gnu.org>
40938
40939 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40940 `util/hostfs.c'.
40941
40942 * disk/host.c: New file.
40943
40944 * util/hostfs.c: Likewise.
40945
40946 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40947 return `GRUB_ERR_BAD_FS'.
40948 * fs/sfs.c (grub_sfs_mount): Likewise.
40949 * fs/xfs.c (grub_xfs_mount): Likewise.
40950
40951 * include/grub/disk.h (enum grub_disk_dev_id): Add
40952 `GRUB_DISK_DEVICE_HOST_ID'.
40953
40954 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40955
e5dfe777 409562007-07-24 Jerone Young <jerone@gmail.com>
40957
f19dbdb7 40958 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 40959 modules for compilation.
40960 * conf/powerpc-ieee1275.rmk: Likewise.
40961
40962 * include/multiboot.h: Move multiboot definitions to one file. Rename
40963 many definitions to not get grub specific.
40964 * include/multiboot2.h: Create header with multiboot 2 definitions.
40965 * include/grub/multiboot.h: Header for grub specific function
40966 prototypes and definitions.
40967 * include/grub/multiboot2.h: Likewise.
40968 * include/grub/multiboot_loader.h: Likewise.
40969 * include/grub/i386/pc/multiboot.h: Removed.
40970 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40971
40972 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40973 and 2 to allow for one multiboot and module commands.
40974 * loader/multiboot2.c: Add multiboot2 functionality.
40975 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40976 and definition names.
40977 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40978 2 functions.
40979 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40980 ieee1275 specific multiboot2 code.
40981
40982 * kern/i386/pc/startup.S: Change headers and definition names for
40983 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40984
daf0f0ba 409852007-07-22 Robert Millan <rmh@aybabtu.com>
40986
40987 * geninitheader.sh: Process file specified in first parameter rather
40988 than hardcoding grub_modules_init.lst.
fe6b695a 40989 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 40990 than hardcoding grub_modules_init.h.
40991
40992 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40993 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40994 grub_probe_init.[ch] and grub_setup_init.[ch].
40995
40996 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40997 grub_modules_init.h with grub_emu_init.h.
40998 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40999 grub_probe_init.[ch] files.
41000 * conf/i386-efi.rmk: Likewise.
41001 * conf/i386-pc.rmk: Likewise.
41002 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
41003 grub_setup_init.[ch] files.
41004
41005 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
41006 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
41007 to initialize modules rather than a list of hardcoded functions.
41008 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
41009 grub_init_all() to initialize modules rather than a list of hardcoded
41010 functions.
41011
54cdc1cc 410122007-07-22 Robert Millan <rmh@aybabtu.com>
41013
41014 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
41015 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
41016
ad0686cc 410172007-07-22 Robert Millan <rmh@aybabtu.com>
41018
41019 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
41020 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
41021 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
41022 flag when running on SmartFirmware.
41023 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
41024 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
41025 was set.
41026
41027 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41028 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
41029 rather than decreasing it.
41030
41031 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
41032 there's not enough space to do it, fail in the same way as when it
41033 can't be done because there are no partitions.
41034
41035 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
41036 when nvsetenv failed.
41037
969c02ec 410382007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
41039
41040 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
41041 because this rule is automatically generated.
41042 (grub-mkrescue): Removed for the same reason as above.
41043
5a79f472 410442007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
41045
41046 Migrate to GNU General Public License Version 3.
f19dbdb7 41047
5a79f472 41048 * COPYING: Replaced with the plain text version of GPLv3.
41049
41050 * config.guess: Updated from gnulib.
41051 * config.sub: Likewise.
41052
41053 * geninit.sh: Output a GPLv3 copyright notice.
41054 * geninitheader.sh: Likewise.
41055 * genmodsrc.sh: Likewise.
41056 * gensymlist.sh.in: Likewise.
41057
41058 * boot/i386/pc/boot.S: Upgraded to GPLv3.
41059 * boot/i386/pc/diskboot.S: Likewise.
41060 * boot/i386/pc/pxeboot.S: Likewise.
41061 * commands/blocklist.c: Likewise.
41062 * commands/boot.c: Likewise.
41063 * commands/cat.c: Likewise.
41064 * commands/cmp.c: Likewise.
41065 * commands/configfile.c: Likewise.
41066 * commands/echo.c: Likewise.
41067 * commands/help.c: Likewise.
41068 * commands/ls.c: Likewise.
41069 * commands/search.c: Likewise.
41070 * commands/terminal.c: Likewise.
41071 * commands/test.c: Likewise.
41072 * commands/videotest.c: Likewise.
41073 * commands/i386/cpuid.c: Likewise.
41074 * commands/i386/pc/halt.c: Likewise.
41075 * commands/i386/pc/play.c: Likewise.
41076 * commands/i386/pc/reboot.c: Likewise.
41077 * commands/i386/pc/vbeinfo.c: Likewise.
41078 * commands/i386/pc/vbetest.c: Likewise.
41079 * commands/ieee1275/halt.c: Likewise.
41080 * commands/ieee1275/reboot.c: Likewise.
41081 * commands/ieee1275/suspend.c: Likewise.
41082 * disk/loopback.c: Likewise.
41083 * disk/lvm.c: Likewise.
41084 * disk/raid.c: Likewise.
41085 * disk/efi/efidisk.c: Likewise.
41086 * disk/i386/pc/biosdisk.c: Likewise.
41087 * disk/ieee1275/ofdisk.c: Likewise.
41088 * font/manager.c: Likewise.
41089 * fs/affs.c: Likewise.
41090 * fs/ext2.c: Likewise.
41091 * fs/fat.c: Likewise.
41092 * fs/fshelp.c: Likewise.
41093 * fs/hfs.c: Likewise.
41094 * fs/hfsplus.c: Likewise.
41095 * fs/iso9660.c: Likewise.
41096 * fs/jfs.c: Likewise.
41097 * fs/minix.c: Likewise.
41098 * fs/sfs.c: Likewise.
41099 * fs/ufs.c: Likewise.
41100 * fs/xfs.c: Likewise.
41101 * hello/hello.c: Likewise.
41102 * include/grub/acorn_filecore.h: Likewise.
41103 * include/grub/arg.h: Likewise.
41104 * include/grub/bitmap.h: Likewise.
41105 * include/grub/boot.h: Likewise.
41106 * include/grub/cache.h: Likewise.
41107 * include/grub/device.h: Likewise.
41108 * include/grub/disk.h: Likewise.
41109 * include/grub/dl.h: Likewise.
41110 * include/grub/elfload.h: Likewise.
41111 * include/grub/env.h: Likewise.
41112 * include/grub/err.h: Likewise.
41113 * include/grub/file.h: Likewise.
41114 * include/grub/font.h: Likewise.
41115 * include/grub/fs.h: Likewise.
41116 * include/grub/fshelp.h: Likewise.
41117 * include/grub/gzio.h: Likewise.
41118 * include/grub/hfs.h: Likewise.
41119 * include/grub/kernel.h: Likewise.
41120 * include/grub/loader.h: Likewise.
41121 * include/grub/lvm.h: Likewise.
41122 * include/grub/misc.h: Likewise.
41123 * include/grub/mm.h: Likewise.
41124 * include/grub/net.h: Likewise.
41125 * include/grub/normal.h: Likewise.
41126 * include/grub/parser.h: Likewise.
41127 * include/grub/partition.h: Likewise.
41128 * include/grub/pc_partition.h: Likewise.
41129 * include/grub/raid.h: Likewise.
41130 * include/grub/rescue.h: Likewise.
41131 * include/grub/script.h: Likewise.
41132 * include/grub/setjmp.h: Likewise.
41133 * include/grub/symbol.h: Likewise.
41134 * include/grub/term.h: Likewise.
41135 * include/grub/terminfo.h: Likewise.
41136 * include/grub/tparm.h: Likewise.
41137 * include/grub/types.h: Likewise.
41138 * include/grub/video.h: Likewise.
41139 * include/grub/efi/api.h: Likewise.
41140 * include/grub/efi/chainloader.h: Likewise.
41141 * include/grub/efi/console.h: Likewise.
41142 * include/grub/efi/console_control.h: Likewise.
41143 * include/grub/efi/disk.h: Likewise.
41144 * include/grub/efi/efi.h: Likewise.
41145 * include/grub/efi/pe32.h: Likewise.
41146 * include/grub/efi/time.h: Likewise.
41147 * include/grub/i386/linux.h: Likewise.
41148 * include/grub/i386/setjmp.h: Likewise.
41149 * include/grub/i386/types.h: Likewise.
41150 * include/grub/i386/efi/kernel.h: Likewise.
41151 * include/grub/i386/efi/loader.h: Likewise.
41152 * include/grub/i386/efi/time.h: Likewise.
41153 * include/grub/i386/pc/biosdisk.h: Likewise.
41154 * include/grub/i386/pc/boot.h: Likewise.
41155 * include/grub/i386/pc/chainloader.h: Likewise.
41156 * include/grub/i386/pc/console.h: Likewise.
41157 * include/grub/i386/pc/init.h: Likewise.
41158 * include/grub/i386/pc/kernel.h: Likewise.
41159 * include/grub/i386/pc/loader.h: Likewise.
41160 * include/grub/i386/pc/memory.h: Likewise.
41161 * include/grub/i386/pc/multiboot.h: Likewise.
41162 * include/grub/i386/pc/serial.h: Likewise.
41163 * include/grub/i386/pc/time.h: Likewise.
41164 * include/grub/i386/pc/vbe.h: Likewise.
41165 * include/grub/i386/pc/vbeblit.h: Likewise.
41166 * include/grub/i386/pc/vbefill.h: Likewise.
41167 * include/grub/i386/pc/vbeutil.h: Likewise.
41168 * include/grub/i386/pc/vga.h: Likewise.
41169 * include/grub/ieee1275/ieee1275.h: Likewise.
41170 * include/grub/ieee1275/ofdisk.h: Likewise.
41171 * include/grub/powerpc/libgcc.h: Likewise.
41172 * include/grub/powerpc/setjmp.h: Likewise.
41173 * include/grub/powerpc/types.h: Likewise.
41174 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
41175 * include/grub/powerpc/ieee1275/console.h: Likewise.
41176 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
41177 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
41178 * include/grub/powerpc/ieee1275/loader.h: Likewise.
41179 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
41180 * include/grub/powerpc/ieee1275/time.h: Likewise.
41181 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
41182 * include/grub/sparc64/libgcc.h: Likewise.
41183 * include/grub/sparc64/setjmp.h: Likewise.
41184 * include/grub/sparc64/types.h: Likewise.
41185 * include/grub/sparc64/ieee1275/console.h: Likewise.
41186 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
41187 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
41188 * include/grub/sparc64/ieee1275/time.h: Likewise.
41189 * include/grub/util/biosdisk.h: Likewise.
41190 * include/grub/util/getroot.h: Likewise.
41191 * include/grub/util/lvm.h: Likewise.
41192 * include/grub/util/misc.h: Likewise.
41193 * include/grub/util/raid.h: Likewise.
41194 * include/grub/util/resolve.h: Likewise.
41195 * io/gzio.c: Likewise.
41196 * kern/device.c: Likewise.
41197 * kern/disk.c: Likewise.
41198 * kern/dl.c: Likewise.
41199 * kern/elf.c: Likewise.
41200 * kern/env.c: Likewise.
41201 * kern/err.c: Likewise.
41202 * kern/file.c: Likewise.
41203 * kern/fs.c: Likewise.
41204 * kern/loader.c: Likewise.
41205 * kern/main.c: Likewise.
41206 * kern/misc.c: Likewise.
41207 * kern/mm.c: Likewise.
41208 * kern/parser.c: Likewise.
41209 * kern/partition.c: Likewise.
41210 * kern/rescue.c: Likewise.
41211 * kern/term.c: Likewise.
41212 * kern/efi/efi.c: Likewise.
41213 * kern/efi/init.c: Likewise.
41214 * kern/efi/mm.c: Likewise.
41215 * kern/i386/dl.c: Likewise.
41216 * kern/i386/efi/init.c: Likewise.
41217 * kern/i386/efi/startup.S: Likewise.
41218 * kern/i386/pc/init.c: Likewise.
41219 * kern/i386/pc/lzo1x.S: Likewise.
41220 * kern/i386/pc/startup.S: Likewise.
41221 * kern/ieee1275/ieee1275.c: Likewise.
41222 * kern/powerpc/cache.S: Likewise.
41223 * kern/powerpc/dl.c: Likewise.
41224 * kern/powerpc/ieee1275/cmain.c: Likewise.
41225 * kern/powerpc/ieee1275/crt0.S: Likewise.
41226 * kern/powerpc/ieee1275/init.c: Likewise.
41227 * kern/powerpc/ieee1275/openfw.c: Likewise.
41228 * kern/sparc64/cache.S: Likewise.
41229 * kern/sparc64/dl.c: Likewise.
41230 * kern/sparc64/ieee1275/init.c: Likewise.
41231 * kern/sparc64/ieee1275/openfw.c: Likewise.
41232 * loader/efi/chainloader.c: Likewise.
41233 * loader/efi/chainloader_normal.c: Likewise.
41234 * loader/i386/efi/linux.c: Likewise.
41235 * loader/i386/efi/linux_normal.c: Likewise.
41236 * loader/i386/pc/chainloader.c: Likewise.
41237 * loader/i386/pc/chainloader_normal.c: Likewise.
41238 * loader/i386/pc/linux.c: Likewise.
41239 * loader/i386/pc/linux_normal.c: Likewise.
41240 * loader/i386/pc/multiboot.c: Likewise.
41241 * loader/i386/pc/multiboot_normal.c: Likewise.
41242 * loader/powerpc/ieee1275/linux.c: Likewise.
41243 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41244 * normal/arg.c: Likewise.
41245 * normal/cmdline.c: Likewise.
41246 * normal/command.c: Likewise.
41247 * normal/completion.c: Likewise.
41248 * normal/execute.c: Likewise.
41249 * normal/function.c: Likewise.
41250 * normal/lexer.c: Likewise.
41251 * normal/main.c: Likewise.
41252 * normal/menu.c: Likewise.
41253 * normal/menu_entry.c: Likewise.
41254 * normal/misc.c: Likewise.
41255 * normal/parser.y: Likewise.
41256 * normal/script.c: Likewise.
41257 * normal/i386/setjmp.S: Likewise.
41258 * normal/powerpc/setjmp.S: Likewise.
41259 * normal/sparc64/setjmp.S: Likewise.
41260 * partmap/acorn.c: Likewise.
41261 * partmap/amiga.c: Likewise.
41262 * partmap/apple.c: Likewise.
41263 * partmap/gpt.c: Likewise.
41264 * partmap/pc.c: Likewise.
41265 * partmap/sun.c: Likewise.
41266 * term/gfxterm.c: Likewise.
41267 * term/terminfo.c: Likewise.
41268 * term/efi/console.c: Likewise.
41269 * term/i386/pc/console.c: Likewise.
41270 * term/i386/pc/serial.c: Likewise.
41271 * term/i386/pc/vesafb.c: Likewise.
41272 * term/i386/pc/vga.c: Likewise.
41273 * term/ieee1275/ofconsole.c: Likewise.
41274 * util/biosdisk.c: Likewise.
41275 * util/console.c: Likewise.
41276 * util/genmoddep.c: Likewise.
41277 * util/getroot.c: Likewise.
41278 * util/grub-emu.c: Likewise.
41279 * util/grub-mkdevicemap.c: Likewise.
41280 * util/grub-probe.c: Likewise.
41281 * util/lvm.c: Likewise.
41282 * util/misc.c: Likewise.
41283 * util/raid.c: Likewise.
41284 * util/resolve.c: Likewise.
41285 * util/update-grub.in: Likewise.
41286 * util/update-grub_lib.in: Likewise.
41287 * util/grub.d/00_header.in: Likewise.
41288 * util/grub.d/10_hurd.in: Likewise.
41289 * util/grub.d/10_linux.in: Likewise.
41290 * util/i386/efi/grub-install.in: Likewise.
41291 * util/i386/efi/grub-mkimage.c: Likewise.
41292 * util/i386/pc/grub-install.in: Likewise.
41293 * util/i386/pc/grub-mkimage.c: Likewise.
41294 * util/i386/pc/grub-mkrescue.in: Likewise.
41295 * util/i386/pc/grub-setup.c: Likewise.
41296 * util/i386/pc/misc.c: Likewise.
41297 * util/powerpc/ieee1275/grub-install.in: Likewise.
41298 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
41299 * util/powerpc/ieee1275/misc.c: Likewise.
41300 * video/bitmap.c: Likewise.
41301 * video/video.c: Likewise.
41302 * video/i386/pc/vbe.c: Likewise.
41303 * video/i386/pc/vbeblit.c: Likewise.
41304 * video/i386/pc/vbefill.c: Likewise.
41305 * video/i386/pc/vbeutil.c: Likewise.
41306 * video/readers/tga.c: Likewise.
41307
3572d015 413082007-07-02 Robert Millan <rmh@aybabtu.com>
41309
41310 * conf/i386-efi.rmk: Replace obsolete reference to
41311 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
41312 with util/getroot.c.
41313 * conf/powerpc-ieee1275.rmk: Likewise.
41314 * conf/sparc64-ieee1275.rmk: Likewise.
41315
41316 * util/grub-emu.c (main): Fix unchecked pointer handling.
41317
2c2a681b 413182007-07-02 Robert Millan <rmh@aybabtu.com>
41319
41320 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41321 invocation to fail, in order to support partition-less media.
41322
41323 * util/i386/pc/grub-install.in: Likewise.
41324
41325 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41326 which fs or partmap modules are needed (akin to its sister scripts).
41327
41328 Also use grub-probe to get rid of unportable /proc/mounts check.
41329
41330 Print the same informational message that the other scripts do, before
fe6b695a 41331 exiting.
2c2a681b 41332
6193defe 413332007-06-23 Robert Millan <rmh@aybabtu.com>
41334
fe6b695a 41335 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 41336 a font file can be found and, if so, echo the GRUB path to it.
41337
41338 * util/update-grub.in: Handle multiple terminals depending on user
41339 input, platform availability and font file presence. Propagate
41340 variables of our findings to /etc/grub.d/ children.
41341
41342 * util/grub.d/00_header.in: Handle multiple terminals, based on
41343 environment setup by update-grub.
41344
eface1dc 413452007-06-23 Robert Millan <rmh@aybabtu.com>
41346
ba50d28f 41347 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 41348
bf697e28 413492007-06-21 Robert Millan <rmh@aybabtu.com>
41350
41351 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41352 indicate end of data section in kernel image.
41353 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41354 GRUB_KERNEL_MACHINE_DATA_END.
41355
41356 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41357 space for it.
41358 * kern/i386/efi/startup.S: Likewise.
41359
41360 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41361 during image generation. Implement --prefix option to override this
41362 patch.
41363 * util/i386/efi/grub-mkimage.c: Likewise.
41364
41365 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41366 code to make path relative to its root into a separate function.
41367
41368 * util/i386/pc/grub-install.in: Use newly provided
41369 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41370 pass the result to grub-install --prefix.
41371
baa574b4 413722007-06-13 Robert Millan <rmh@aybabtu.com>
41373
41374 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41375 DEFAULT_DEVICE_MAP.
41376 * util/grub-emu.c: Use above definitions from misc.h instead of
41377 defining them.
41378 * util/grub-mkdevicemap.c: Likewise.
41379 * util/i386/pc/grub-setup.c: Likewise.
41380 * util/grub-probe.c: Likewise.
41381 (probe): Abort with grub_util_error() when either
41382 grub_guess_root_device or grub_util_get_grub_dev fails.
41383
0215dcbf 413842007-06-12 Robert Millan <rmh@aybabtu.com>
41385
41386 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41387 "pager" assignment.
41388 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41389 "pcdata".
41390 * util/grub-probe.c (probe): Likewise for "drive_name".
41391
8af2ab7b 413922007-06-11 Robert Millan <rmh@aybabtu.com>
41393
41394 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41395 not just the cdrom one.
41396
59d31694 413972007-06-11 Robert Millan <rmh@aybabtu.com>
41398
41399 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41400 Add --pkglibdir=DIR option to override pkglibdir.
41401 Mention --image-type=TYPE in help output.
41402 Fix --grub-mkimage (it was a no-op).
fe6b695a 41403 Abort gracefully when no parameter is given.
59d31694 41404
7ee367e4 414052007-06-11 Robert Millan <rmh@aybabtu.com>
41406
41407 * util/i386/pc/grub-mkrescue.in: New file.
41408 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41409 * Makefile.in: Handle bin_SCRIPTS.
41410
29b0ed46 414112007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41412
41413 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41414 list of video modes.
41415
c0f90770 414162007-06-06 Robert Millan <rmh@aybabtu.com>
41417
41418 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41419 file doesn't exist, or if it is in a filesystem grub can't read.
41420
41421 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41422 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41423 header comment to fit in 80 columns when the variables are resolved.
41424
41425 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41426 could be identified by update-grub. Remove redundant check for
fe6b695a 41427 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 41428 handles that).
41429
fb36dc26 414302007-06-04 Robert Millan <rmh@aybabtu.com>
41431
41432 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41433
41434 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41435
41436 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41437
0c68c93e 414382007-06-04 Robert Millan <rmh@aybabtu.com>
41439
41440 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41441
41442 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41443 grub_apple_partition_map_fini.
41444
41445 * util/biosdisk.c
41446 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41447 to access >2 TiB disks).
41448
41449 Print disk->total_sectors with %llu instead of %lu, since this
41450 variable is always 64-bit (prevents wrong disk size from being displayed
41451 on either >2 TiB disk or big-endian CPU).
41452
41453 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41454 into a generic case that supports all (sane) partition maps.
41455
41456 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41457 breaks big-endian.
41458
41459 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41460 and grub_apple_partition_map_fini() after that.
41461
0f23eb74 414622007-06-01 Robert Millan <rmh@aybabtu.com>
41463
41464 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41465
41466 * util/grub.d/00_header.in: Only enable gfxterm when
41467 convert_system_path_to_grub_path() succeeds.
41468
42c71976 414692007-05-20 Robert Millan <rmh@aybabtu.com>
41470
41471 * util/update-grub_lib.in: New file.
41472 * DISTLIST: Add update-grub_lib.in.
41473 * conf/common.rmk: Generate update-grub_lib and install it in
41474 $(lib_DATA).
41475 * Makefile.in: Add install routine for $(lib_DATA).
41476
41477 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41478 function provided by update-grub_lib to support arbitrary paths of
41479 unifont.pff.
41480 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41481 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41482
5beb2291 414832007-05-19 Robert Millan <rmh@aybabtu.com>
41484
41485 * commands/i386/cpuid.c: New module.
41486 * DISTLIST: Add it.
41487 * conf/i386-efi.rmk: Enable cpuid.mod.
41488 * conf/i386-pc.rmk: Likewise.
41489
7262eca1 414902007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41491
41492 * kern/disk.c (grub_disk_read): Check return value of
41493 grub_realloc().
41494
260ba823 414952007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41496
41497 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41498 arrays.
41499 * disk/raid.c (grub_raid_open): Likewise.
41500
1ecb6cf2 415012007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41502
41503 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41504 stack instead of on the heap.
41505
41506 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41507 before doing a read on it.
41508
41509 * configure.ac: Only use -fno-stack-protector for the target
41510 environment.
f19dbdb7 41511
21c8cbb1 415122007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41513
41514 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41515 __attribute_ ((unused)) to mode_type argument.
41516
41517 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 41518
21c8cbb1 41519 * kern/misc.c (memcmp): Fix prototype.
41520
41521 * include/grub/partition.h [GRUB_UTIL]
41522 (grub_gpt_partition_map_init): Add prototype.
41523 (grub_gpt_partition_map_fini): Likewise.
41524
41525 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41526 at the right place.
41527
41528 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41529 (grub_fat_read_data): Likewise.
41530 (grub_fat_find_dir): Likewise.
41531
41532 * font/manager.c (find_glyph): Make table a const.
41533 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 41534
849d55d3 415352007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41536
41537 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41538 code, first search for device in /dev/mapper, then in /dev.
41539 (grub_util_get_grub_dev): New function.
41540 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41541 prototype.
41542 * util/grub-probe.c (probe): Remove check for RAID, call
41543 grub_util_get_grub_dev() instead of
41544 grub_util_biosdisk_get_grub_dev().
41545 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41546 grub_util_biosdisk_get_grub_dev().
41547 * util/i386/pc/grub-setup.c (main): Likewise.
41548
8fff7c2f 415492007-05-16 Robert Millan <rmh@aybabtu.com>
41550
41551 * DISTLIST: Update for the latest changes.
41552 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41553 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41554 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41555 grub/util/biosdisk.h.
41556 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41557 grub/util/biosdisk.h.
41558
48e12b52 415592007-05-16 Robert Millan <rmh@aybabtu.com>
41560
41561 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41562
46b9d128 415632007-05-16 Robert Millan <rmh@aybabtu.com>
41564
41565 * util/i386/efi/grub-install.in: New.
41566 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41567 newly added grub-install.
41568 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41569 include.
41570 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41571 grub/util/biosdisk.h.
41572 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41573 grub/util/biosdisk.h.
41574
2d1a40a9 415752007-05-16 Robert Millan <rmh@aybabtu.com>
41576
41577 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41578 * include/grub/util/biosdisk.h: ... here.
41579 * util/i386/pc/biosdisk.c: Moved to ...
41580 * util/biosdisk.c: ... here.
41581 * util/i386/pc/getroot.c: Moved to ...
41582 * util/getroot.c: ... here.
41583 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41584 * util/grub-mkdevicemap.c: ... here.
41585 * util/i386/pc/grub-probe.c: Moved to ...
41586 * util/grub-probe.c: ... here.
41587
9e26e3bc 415882007-05-15 Robert Millan <rmh@aybabtu.com>
41589
41590 * util/update-grub.in: Remove duplicated line in grub.cfg header
41591 message.
41592
57f96397 415932007-05-13 Robert Millan <rmh@aybabtu.com>
41594
41595 * util/update-grub.in: Fix a few assumptions about the devices holding
41596 /, /boot and /boot/grub being the same.
41597 * util/grub.d/00_header.in: Likewise.
41598 * util/grub.d/10_hurd.in: Likewise.
41599 * util/grub.d/10_linux.in: Likewise.
41600
41601 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41602 patterns. Use that to define the `.old' suffix as older than `'.
41603
41604 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41605
41606 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41607 the grub.cfg header message.
41608
2e610d62 416092007-05-11 Robert Millan <rmh@aybabtu.com>
41610
41611 * util/update-grub.in: Create device.map if it doesn't already exist,
41612 before attempting to run grub-probe.
41613 Check for grub-probe and grub-mkdevicemap with the same code
41614 grub-install is using.
41615 Remove test mode.
41616
3f6a10ef 416172007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41618
41619 * Makefile.in: Add the datarootdir autoconf variable.
41620
02e7b75e 416212007-05-09 Robert Millan <rmh@aybabtu.com>
41622
41623 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 41624 fail gracefully if dev->disk->partition == NULL.
02e7b75e 41625
75f396cc 416262007-05-07 Robert Millan <rmh@aybabtu.com>
41627
41628 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41629 determine partition map module.
41630 * util/i386/pc/grub-install.in: Use this feature to decide which
41631 partition module to load, instead of hardcoding pc and gpt.
41632
da65cb36 416332007-05-07 Robert Millan <rmh@aybabtu.com>
41634
41635 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41636 source directory differs from build directory.
41637
b57d6a91 416382007-05-05 Robert Millan <rmh@aybabtu.com>
41639
41640 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41641 initialisation.
41642
509d00f1 416432007-05-05 Robert Millan <rmh@aybabtu.com>
41644
41645 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41646
c48f23ef 416472007-05-05 Robert Millan <rmh@aybabtu.com>
41648
41649 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41650 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41651
20b97658 416522007-05-05 Robert Millan <rmh@aybabtu.com>
41653
41654 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41655 (grub_probe_SOURCES): Likewise.
41656 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41657 GPT and initialize dos_part and bsd_part accordingly.
41658 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41659 install_bsd_part.
41660 (main): Activate gpt module for use during partition identification,
41661 and deactivate it afterwards.
41662 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41663 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41664 partition identification, and deactivate it afterwards.
41665
99123174 416662007-05-05 Robert Millan <rmh@aybabtu.com>
41667
41668 * term/i386/pc/console.c (grub_console_fini): Call
41669 grub_term_set_current() before grub_term_unregister().
41670
ebd97f6e 416712007-05-04 Robert Millan <rmh@aybabtu.com>
41672
41673 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41674 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41675 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41676 and update-grub_DATA.
41677 * conf/common.rmk: Build and install update-grub components.
41678 * conf/common.mk: Regenerate.
41679 * util/update-grub.in: New. Core of update-grub.
41680 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41681 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41682 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41683 * util/grub.d/README: New. Document grub.d directory layout.
41684
b06a264d 416852007-05-01 Robert Millan <rmh@aybabtu.com>
41686
41687 * util/grub-emu.c: Move initialization functions
41688 grub_util_biosdisk_init() and grub_init_all() before
41689 grub_util_biosdisk_get_grub_dev(), which relies on them.
41690
41f0050e 416912007-04-19 Robert Millan <rmh@aybabtu.com>
41692
41693 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41694 it is used later.
41695
04582bb3 416962007-04-18 Jerone Young <jerone@gmail.com>
41697
f19dbdb7 41698 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 41699 stanza.
41700
08db4632 417012007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 41702
08db4632 41703 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41704 continue on and look for device node with real device name.
41705
801b76be 417062007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 41707
fe6b695a 41708 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 41709 ability.
41710 * Makefile.in: Add autoconf package transformation code.
41711 * util/i386/pc/grub-install.in: Likewise.
41712 * util/powerpc/ieee1275/grub-install.in: Likewise.
41713
6795c4e1 417142007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41715
41716 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41717 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41718 (EXT2_REVISION): Likewise.
41719 (EXT2_INODE_SIZE): Likewise.
41720 (struct grub_ext2_block_group): Added a missing member
41721 "used_dirs".
41722 (grub_ext2_read_inode): Divide by the inode size in a superblock
41723 instead of 128 to obtain INODES_PER_BLOCK.
41724 Use the macro EXT2_INODE_SIZE instead of directly using
41725 SBLOCK->INODE_SIZE.
41726
d70af616 417272007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41728
41729 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41730 superblock instead of the structure size to compute an
41731 offset. This fixes the problem that GRUB could not read a
41732 filesystem when inode size is different from 128-byte.
41733
3b801603 417342007-03-05 Marco Gerards <marco@gnu.org>
41735
41736 * normal/main.c (read_config_file): When "menu" is not set, create
41737 an initial context.
41738
4785bfe4 417392007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41740
41741 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41742 (HEAP_LIMIT): New macro.
41743 (grub_claim_heap): Claim memory up to `heaplimit'.
41744
a0cbb023 417452007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41746
41747 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41748 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41749 (_start): Likewise.
41750 (grub_arch_modules_addr): Return address after `_end'.
41751 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41752 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41753 (add_segments): Calculate `_end' from phdr size and location.
41754 (ALIGN_UP): Moved to ...
41755 * include/grub/misc.h: here.
41756 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41757 New macro.
41758 (GRUB_IEEE1275_MODULE_BASE): Removed.
41759
fd7d8eba 417602007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41761
41762 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41763 loop boundary.
41764
9b09e6fc 417652007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41766
41767 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41768 All users updated.
41769 (grub_elf64_load_hook_t): Likewise.
41770 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41771 debug output.
41772
3ce27299 417732007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41774
41775 * kern/mm.c: Update copyright.
41776 (grub_mm_debug): Correct syntax error.
41777 (grub_mm_dump_free): New function.
41778 (grub_debug_free): Call `grub_free'.
41779 * include/grub/mm.h: Update copyright.
41780 (grub_mm_dump_free): Add declaration.
41781
077d5fee 417822007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41783
41784 * include/grub/ieee1275/ieee1275.h: Update copyright.
41785 * kern/powerpc/ieee1275/init.c: Likewise.
41786 * kern/powerpc/ieee1275/openfw.c: Likewise.
41787
41788 * loader/powerpc/ieee1275/linux.c: Likewise.
41789 * include/grub/elfload.h: Likewise.
41790 * kern/elf.c: Likewise.
41791 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41792 callers.
41793 (grub_elf64_load): Likewise.
41794 (grub_elf32_load_segment): Move to a nested function.
41795 (grub_elf64_load_segment): Likewise.
41796
dc946850 417972007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41798
41799 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41800 prototype.
41801 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41802 (grub_heap_len): Likewise.
41803 (HEAP_SIZE): New macro.
41804 (grub_claim_heap): New function.
41805 (grub_machine_init): Don't claim heap directly. Call
41806 `grub_claim_heap'.
41807 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41808 (grub_available_iterate): New function.
41809
baa2a121 418102007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41811
41812 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41813 * configure.ac: Use it for testing the HOST and TARGET compilers.
41814
4fe9862e 418152006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41816
41817 * Makefile.in (enable_grub_emu): New variable.
41818 * configure.ac (--enable-grub-emu): New option.
41819 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41820 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41821 * conf/i386-pc.rmk: Likewise.
41822 * conf/powerpc-ieee1275.rmk: Likewise.
41823 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41824
a8aa5762 418252006-12-12 Marco Gerards <marco@gnu.org>
41826
41827 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41828
41829 * kern/env.c (grub_env_unset): Don't free the member `value' when
41830 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41831 pointer.
41832
41833 * normal/main.c (current_menu): Removed.
41834 (free_menu): Unset the `menu' environment variable.
41835 (grub_normal_menu_addentry): Make use of the environment variable
41836 `menu', instead of using the global `current_menu'. Allocate
41837 memory for the sourcecode of this entry.
41838 (read_config_file): New argument `nested', changed all callers.
41839 Only in the case of a new context, initialize a new menu. Set the
41840 `menu' environment variable.
41841 (grub_normal_execute): Don't set and unset the environment
41842 variable `menu' here anymore. Only free the menu when leaving the
41843 context.
41844
41845 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41846 leak.
41847
957b3a3e 418482006-12-11 Marco Gerards <marco@gnu.org>
41849
41850 * normal/menu_entry.c (run): Fix off by one bug so the last line
41851 is executed. Move the loader check to outside the loop.
41852
ef875714 418532006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41854
41855 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41856
4e739985 418572006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41858
41859 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41860 the number of sectors. Reported by Andrey Shuvikov
41861 <mr_hyro@yahoo.com>.
f19dbdb7 41862
790707f2 418632006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41864
41865 * kern/disk.c (grub_disk_read): When there is a read error, always
41866 try to read only the necessary data.
f19dbdb7 41867
790707f2 41868 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41869 disk/raid.c.
41870 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41871 prototype.
41872 [GRUB_UTIL] (grub_raid_fini): Likewise.
41873 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 41874 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 41875 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41876 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41877 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41878 and grub_raid_fini().
f19dbdb7 41879
03e58196 418802006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41881
41882 * include/grub/types.h (__unused): Rename to UNUSED.
41883 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41884 (grub_elf64_size): Likewise.
f19dbdb7 41885
ae4f23bf 418862006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41887
41888 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41889 grub_error_push and grub_error_pop in the error-handling path.
41890 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41891 length.
41892
2166cc83 418932006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41894
41895 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41896 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41897 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41898 (kernel_elf_SOURCES): Likewise.
41899 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41900 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41901 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41902 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41903 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41904 (elf_mod_SOURCES): New variable.
41905 (elf_mod_CFLAGS): Likewise.
41906 (elf_mod_LDFLAGS): Likewise.
41907 * include/grub/types.h (__unused): New macro.
41908 * include/grub/elfload.h: New file.
41909 * kern/elf.c: Likewise.
41910 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41911 (ELF32_LOADMASK): New macro.
41912 (ELF64_LOADMASK): Likewise.
41913 (vmlinux): Removed.
41914 (grub_linux_load32): New function.
41915 (grub_linux_load64): Likewise.
41916 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41917 Use grub_elf_t instead of grub_file_t.
41918
a09d5aa5 419192006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41920
41921 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41922 `catch_result' to struct set_color_args.
41923
d976fc51 419242006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41925
41926 * normal/menu.c: Include grub/script.h.
41927 * normal/menu_entry.c: Likewise.
41928 * include/grub/normal.h: Do not include grub/script.h.
41929
67507549 419302006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41931
41932 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41933
69203a99 419342006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41935
41936 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41937 disk.
41938 (grub_disk_close): Print debug messages when closing a disk.
41939 (grub_disk_read): Print debug messages when disk read fails.
41940 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41941 filesystem type.
41942 * kern/partition.c: Include misc.h.
41943 (grub_partition_iterate): Print debug messages when detecting
41944 partition type.
41945
e2b8278c 419462006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41947
41948 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41949 is negative.
41950 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41951
97b2f2ff 419522006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41953
41954 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41955 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41956
6555d655 419572006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41958
41959 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41960 instead of sizeof(lv). Patch by Michael Guntsche.
41961
4d42b77f 419622006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41963
41964 * disk/lvm.c: Rename VGS to VG_LIST.
41965 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41966 (grub_lvm_open): Likewise.
41967 Thanks to Michael Guntsche for finding this bug.
41968
5d74d927 419692006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41970
41971 * configure.ac (AC_INIT): Bumped to 1.95.
41972
a1bb27e4 419732006-10-14 Robert Millan <rmh@aybabtu.com>
41974
41975 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41976 with "/dev/.static/dev/md".
41977
e0994b8b 419782006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41979
41980 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41981 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41982 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41983 DRIVE_NAME are always freed.
41984
41985 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41986 DOS_PART, as a DOS partition is counted from one instead of zero
41987 now. Reported by Robert Millan.
41988
ddd5cee9 419892006-10-14 Robert Millan <rmh@aybabtu.com>
41990
41991 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41992 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41993 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41994 string returned by grub_guess_root_device.
41995 * util/i386/pc/grub-setup.c: Likewise.
41996 * util/i386/pc/grub-probefs.c: Likewise.
41997
41998 * util/i386/pc/grub-probefs.c: Rename to ...
41999 * util/i386/pc/grub-probe.c: ... this.
42000 * DISTLIST: Remove grub-probefs, add grub-probe.
42001 * conf/i386-efi.rmk: Likewise.
42002 * conf/i386-pc.rmk: Likewise.
42003 * util/i386/pc/grub-install.in: Likewise.
42004
42005 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
42006 choose which information we want to print.
42007
2b002173 420082006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42009
42010 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
42011 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
42012 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
42013 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
42014 video/readers/tga.c and video/i386/pc/vbeutil.c.
42015
420162006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
42017
42018 Added support for RAID and LVM.
f19dbdb7 42019
2b002173 42020 * disk/lvm.c: New file.
42021 * disk/raid.c: Likewise.
42022 * include/grub/lvm.h: Likewise.
f19dbdb7 42023 * include/grub/raid.h: Likewise.
2b002173 42024 * include/grub/util/lvm.h: Likewise.
42025 * include/grub/util/raid.h: Likewise.
42026 * util/lvm.c: Likewise.
42027 * util/raid.c: Likewise.
42028
42029 * include/grub/disk.h (grub_disk_dev_id): Add
42030 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
42031 (grub_disk_get_size): New prototype.
42032 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
42033 returns a partition.
42034 (grub_disk_get_size): New function.
f19dbdb7 42035
2b002173 42036 * kern/i386/pc/init.c (make_install_device): Copy the prefix
42037 verbatim if grub_install_dos_part is -2.
42038
42039 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
42040 and LVM devices.
42041
42042 * util/i386/pc/grub-setup.c (setup): New argument
42043 MUST_EMBED. Force embedding of GRUB when the argument is
42044 true. Close FILE before returning.
42045 (main): Add support for RAID and LVM.
f19dbdb7 42046
2b002173 42047 * conf/common.rmk: Add RAID and LVM modules.
42048 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
42049 util/lvm.c.
42050 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
42051
42052 * kern/misc.c (grub_strstr): New function.
42053 * include/grub/misc.h (grub_strstr): New prototype.
42054
050548d0 420552006-10-10 Tristan Gingold <tristan.gingold@bull.net>
42056
42057 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
42058
da849d2d 420592006-10-05 Tristan Gingold <tristan.gingold@bull.net>
42060
42061 * kern/misc.c (grub_strtoull): Guess the base only if not
42062 specified.
42063
97b2f2ff 420642006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 42065
42066 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
42067 PowerMac support.
42068
97b2f2ff 420692006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 42070
42071 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
42072
42073 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
42074 Remove `flags' argument. All callers changed.
42075 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
42076 (IEEE1275_IHANDLE_INVALID): New variable.
42077 (IEEE1275_CELL_INVALID): New variable.
42078 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
42079 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
42080 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
42081 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
42082 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
42083 codes from Open Firmware. All callers updated.
42084 (grub_ieee1275_next_property): Directly return Open Firmware return
42085 code.
42086 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
42087 Standardize error checking from `grub_ieee1275_get_property'.
42088 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
42089 `devalias' to `aliases'. Correct comments. Consolidate error paths.
42090
97b2f2ff 420912006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 42092
42093 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
42094 `instance_to_package_args' to `instance_to_path_args'.
42095
42096 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
42097 `grub_ieee1275_chosen'.
42098
42099 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
42100 `grub_ieee1275_interpret'.
42101
97b2f2ff 421022006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 42103
42104 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
42105
97b2f2ff 421062006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 42107
42108 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
42109 (__cmpdi): Likewise.
42110
42111 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
42112 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
42113 `grub_ssize_t'.
42114
02bb8acc 42115 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 42116
42117 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
42118 to type `grub_ssize_t'.
42119 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
42120
7f9a8531 421212006-09-22 Marco Gerards <marco@gnu.org>
42122
42123 * normal/script.c (grub_script_create_cmdmenu): Skip leading
42124 newlines.
42125
b5ef1102 421262006-09-22 Marco Gerards <marco@gnu.org>
42127
42128 * commands/echo.c: New file.
42129
42130 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
42131
42132 * conf/common.rmk (echo_mod_SOURCES): New variable.
42133 (echo_mod_CFLAGS): Likewise.
42134 (echo_mod_LDFLAGS): Likewise.
42135
2cff3677 421362006-09-22 Marco Gerards <marco@gnu.org>
42137
42138 * normal/main.c (get_line): Malloc memory instead of using
42139 preallocated memory. Removed the arguments `cmdline' and
42140 `max_len'. Updated all callers.
42141
6ba4688b 421422006-09-22 Marco Gerards <marco@gnu.org>
42143
42144 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
42145 (normal_mod_DEPENDENCIES): Likewise.
42146
42147 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
42148 (normal_mod_DEPENDENCIES): Likewise.
42149
42150 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
42151
e02ac02c 421522006-09-22 Johan Rydberg <jrydberg@gnu.org>
42153
42154 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
42155 programs.
42156 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
42157 (normal_mod_DEPENDENCIES): Likewise.
42158 * conf/i386-pc.mk: Regenerate.
42159 * conf/i386-efi.mk: Likewise
42160 * conf/common.mk: Likewise.
42161 * conf/powerpc-ieee1275.mk: Likewise.
42162 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 42163
8d252e44 421642006-09-22 Robert Millan <rmh@aybabtu.com>
42165
42166 Sync with i386 version.
42167 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
42168 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
42169
209bf7ac 421702006-09-21 Robert Millan <rmh@aybabtu.com>
42171
42172 Import from GRUB Legacy (lib/device.c):
42173 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
42174 (init_device_map) [__linux__]: Add support for I2O devices.
42175
6b146090 421762006-09-14 Marco Gerards <marco@gnu.org>
42177
42178 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
42179 `-melf_i386'.
42180
e38600a8 421812006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 42182
42183 * util/i386/pc/grub-install.in: Skip menu.lst when removing
42184 /boot/grub/*.lst.
78fa1790 42185
2952da5d 42186 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 42187
2952da5d 42188 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
42189 before adding it to device.map.
42190
01b82a64 421912006-08-15 Johan Rydberg <jrydberg@gnu.org>
42192
fe6b695a 42193 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 42194 compiles a file; using the -MD option.
42195 * conf/common.mk: Regenerate.
42196 * conf/i386-pc.mk: Likewise.
42197 * conf/i386-efi.mk: Likewise.
42198 * conf/powerpc-ieee1275.mk: Likewise.
42199 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 42200
1064790d 422012006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
42202
42203 Move the prototypes of grub_setjmp and grub_longjmp to
42204 cpu/setjmp.h, so that each architecture may specify different
42205 attributes.
f19dbdb7 42206
1064790d 42207 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
42208 (grub_longjmp): Likewise.
42209 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
42210 (grub_longjmp): Likewise.
42211 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
42212 (grub_longjmp): Likewise.
42213
42214 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
42215 [!GRUB_UTIL] (grub_longjmp): Removed.
42216
29dda3ed 422172006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
42218
42219 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
42220 "color!" method does not return any value.
42221
ad2a06ed 422222006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42223
42224 * include/grub/bitmap.h: New file.
42225
42226 * include/grub/i386/pc/vbeutil.h: Likewise.
42227
42228 * video/bitmap.c: Likewise.
42229
42230 * video/readers/tga.c: Likewise.
42231
42232 * video/i386/pc/vbeutil.c: Likewise.
42233
42234 * commands/videotest.c: Code cleanup and updated to reflect to new
42235 video API.
42236
42237 * term/gfxterm.c: Likewise.
42238
42239 * video/video.c: Likewise.
42240
42241 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
42242 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
42243 (bitmap_mod_SOURCES): New entry.
42244 (bitmap_mod_CFLAGS): Likewise.
42245 (bitmap_mod_LDFLAGS): Likewise.
42246 (tga_mod_SOURCES): Likewise.
42247 (tga_mod_CFLAGS): Likewise.
42248 (tga_mod_LDFLAGS): Likewise.
42249
42250 * include/grub/video.h (grub_video_blit_operators): New enum type.
42251 (grub_video_render_target): Changed as forward declaration and moved
42252 actual definition to be video driver specific.
42253 (grub_video_adapter.blit_bitmap): Added blitting operator.
42254 (grub_video_adapter.blit_render_target): Likewise.
42255 (grub_video_blit_bitmap): Likewise.
42256 (grub_video_blit_render_target): Likewise.
42257
42258 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
42259 driver specific render target definition.
42260 (grub_video_vbe_map_rgba): Added driver internal helper.
42261 (grub_video_vbe_unmap_color): Updated to use
42262 grub_video_i386_vbeblit_info.
42263 (grub_video_vbe_get_video_ptr): Likewise.
42264
42265 * include/grub/i386/pc/vbeblit.h
42266 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
42267 grub_video_i386_vbeblit_info.
42268 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42269 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42270 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42271 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42272 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42273 (grub_video_i386_vbeblit_index_index): Likewise.
42274 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
42275 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42276 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42277 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
42278 operator.
42279 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
42280 operator.
42281
42282 * video/i386/pc/vbeblit.c: Updated to reflect changes on
42283 include/grub/i386/pc/vbeblit.h.
42284
42285 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
42286 Updated to use grub_video_i386_vbeblit_info.
42287 (grub_video_i386_vbefill_R8G8B8): Likewise.
42288 (grub_video_i386_vbefill_index): Likewise.
42289 (grub_video_i386_vbefill): Added generic filler.
42290
42291 * video/i386/pc/vbefill.c: Updated to reflect changes on
42292 include/grub/i386/pc/vbefill.h.
42293
42294 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
42295 grub_video_i386_vbeblit_info.
42296 (grub_video_vbe_unmap_color): Likewise.
42297 (grub_video_vbe_blit_glyph): Likewise.
42298 (grub_video_vbe_scroll): Likewise.
42299 (grub_video_vbe_draw_pixel): Removed function.
42300 (grub_video_vbe_get_pixel): Likewise.
42301 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
42302 updated code to use it.
42303 (common_blitter): Added common blitter for render target and bitmap.
42304 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
42305 (grub_video_vbe_blit_render_target): Likewise.
42306
bc8c036d 423072006-07-30 Johan Rydberg <jrydberg@gnu.org>
42308
42309 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
42310 is in text mode if there is no console control protocol instance
42311 available.
42312
684a8eff 423132006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42314
42315 * include/grub/video.h: Code cleanup.
42316
42317 * include/grub/i386/pc/vbe.h: Likewise.
42318
42319 * video/i386/pc/vbe.c: Likewise.
42320
42321 * video/i386/pc/vbeblit.c: Likewise.
42322
42323 * video/i386/pc/vbefill.c: Likewise.
42324
42325 * video/video.c: Likewise. Also added more comments.
42326
5915059b 423272006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42328
42329 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42330 (struct grub_biosdisk_dap): Likewise.
42331
42332 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42333 linkage settings for all functions.
42334
90ce5d56 423352006-07-12 Marco Gerards <marco@gnu.org>
42336
42337 * configure.ac (--enable-mm-debug): Fix typo.
42338
42339 * genkernsyms.sh.in: Use proper quoting for `CC'.
42340
43e7f879 423412006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42342
42343 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42344 (normal_mod_ASFLAGS): Remove "-m32".
42345
4889bdec 423462006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42347
42348 * util/misc.c: Include config.h.
42349 [!HAVE_MEMALIGN]: Do not include malloc.h.
42350 (grub_memalign): Use posix_memalign, if present. Then, use
42351 memalign, if present. Otherwise, emit an error.
42352
42353 * util/grub-emu.c: Do not include malloc.h.
42354
42355 * include/grub/util/misc.h: Include unistd.h. This is required for
42356 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42357 D. Eades III <hde@foobar-qux.org>.
42358
42359 * configure.ac (AC_GNU_SOURCE): Added.
42360 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42361 type.
42362
fd39d4da 423632006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42364
42365 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42366 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42367
b786f3b5 423682006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42369
42370 * include/grub/types.h (grub_host_addr_t): Rename to
42371 grub_target_addr_t.
42372 (grub_host_off_t): Rename to grub_target_off_t.
42373 (grub_host_size_t): Rename to grub_target_size_t.
42374 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42375 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42376
42377 * include/grub/kernel.h (struct grub_module_header): Change type
42378 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42379 (grub_module_info): Likewise.
f19dbdb7 42380
051988bb 423812006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42382
42383 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42384 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42385 Velazquez <jesus.velazquez@gmail.com>.
42386
deae281b 423872006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42388
42389 Count partitions from 1 instead of 0 in the string representation
42390 of partitions. Still use 0-based internally.
f19dbdb7 42391
deae281b 42392 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42393 (sun_partition_map_iterate): Use grub_partition_t instead of
42394 struct grub_partition *. Cast DESC->START_CYLINDER to
42395 grub_uint64_t after converting the endian.
42396 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42397 (sun_partition_map_get_name): Add 1 to P->INDEX.
42398
42399 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42400 PCDATA->DOS_PART.
42401 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42402
42403 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42404 zero instead of one.
42405 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42406 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42407
42408 * partmap/apple.c (apple_partition_map_iterate): Change the type
42409 of POS to unsigned.
42410 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42411 (apple_partition_map_get_name): Add 1 into P->INDEX.
42412
42413 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42414 of POS to unsigned.
42415 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42416 calculate the offset of a partition.
42417 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42418 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42419
42420 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42421 SECTOR to grub_disk_addr_t.
42422 (acorn_partition_map_iterate): Likewise.
42423 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42424 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42425 top.
42426 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42427
42428 * kern/i386/pc/init.c (make_install_device): Add 1 into
42429 GRUB_INSTALL_DOS_PART.
42430
42431 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42432 conditional.
42433
524a1e6a 424342006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42435
42436 Clean up the code to support 64-bit addressing in disks and
42437 files. This change is not enough for filesystems yet.
f19dbdb7 42438
524a1e6a 42439 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42440 type of "start" to grub_uint64_t.
42441 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42442 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42443 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42444 convert addresses.
42445
42446 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42447 to grub_disk_addr_t.
42448
42449 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42450 string.
42451
42452 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42453
42454 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42455 to char *.
42456
42457 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42458
42459 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42460
42461 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42462
42463 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42464 to grub_off_t, to detect an error from grub_file_seek.
42465 (grub_multiboot_load_elf32): Likewise.
42466
42467 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42468 maximum unsigned long value when an overflow is detected.
42469 (grub_strtoull): New function.
42470 (grub_divmod64): Likewise.
42471 (grub_lltoa): use grub_divmod64.
42472
42473 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42474 grub_disk_addr_t.
42475 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42476 the pointer to next character. Use grub_strtoull instead of
42477 grub_strtoul.
42478 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42479 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42480 respectively.
42481
fe6b695a 42482 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 42483 return value is signed.
42484 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42485 test if OFFSET is less than zero, as OFFSET is unsigned now.
42486
42487 * kern/disk.c (struct grub_disk_cache): Change the type of
42488 "sector" to grub_disk_addr_t.
42489 (grub_disk_cache_get_index): Change the type of SECTOR to
42490 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42491 unsigned after shifting.
42492 (grub_disk_cache_invalidate): Change the type of SECTOR to
42493 grub_disk_addr_t.
42494 (grub_disk_cache_unlock): Likewise.
42495 (grub_disk_cache_store): Likewise.
42496 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42497 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42498 grub_disk_addr_t and grub_uint64_t, respectively.
42499 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42500 body, as the value of OFFSET is tweaked by
42501 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42502 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42503 respectively.
42504 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42505 body, as the value of OFFSET is tweaked by
42506 grub_disk_check_range. Change the types of LEN and N to
42507 grub_size_t.
42508
42509 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42510 and "saved_offset" to grub_off_t.
42511 (test_header): Cast BUF to char *.
42512 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42513 to char *.
42514 (grub_gzio_read): Change the types of OFFSET and SIZE to
42515 grub_off_t and grub_size_t, respectively.
42516
42517 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42518 Removed.
42519 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42520 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42521 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42522 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42523 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42524
42525 * include/grub/types.h (grub_off_t): Unconditionally set to
42526 grub_uint64_t.
42527 (grub_disk_addr_t): Changed to grub_uint64_t.
42528
42529 * include/grub/partition.h (struct grub_partition): Change the
42530 types of "start", "len" and "offset" to grub_disk_addr_t,
42531 grub_uint64_t and grub_disk_addr_t, respectively.
42532 (grub_partition_get_start): Return grub_disk_addr_t.
42533 (grub_partition_get_len): Return grub_uint64_t.
42534
42535 * include/grub/misc.h (grub_strtoull): New prototype.
42536 (grub_divmod64): Likewise.
42537
42538 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42539 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42540 grub_off_t, respectively.
42541 All callers and references changed.
42542
42543 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42544 grub_size_t in "read".
42545 All callers and references changed.
42546
42547 * include/grub/file.h (struct grub_file): Change the types of
42548 "offset" and "size" to grub_off_t and grub_off_t,
42549 respectively. Change the type of SECTOR to grub_disk_addr_t in
42550 "read_hook".
42551 (grub_file_read): Change the type of LEN to grub_size_t.
42552 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42553 grub_off_t.
42554 (grub_file_size): Return grub_off_t.
42555 (grub_file_tell): Likewise.
42556 All callers and references changed.
42557
42558 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42559 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42560 "write".
42561 (struct grub_disk): Change the type of "total_sectors" to
42562 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 42563 "read_hook".
524a1e6a 42564 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42565 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42566 (grub_disk_write): Likewise.
42567 All callers and references changed.
42568
42569 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42570 char * for grub_strncmp to silence gcc.
42571 (grub_iso9660_mount): Likewise.
42572 (grub_iso9660_mount): Likewise.
42573 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42574 return statement.
42575 (grub_iso9660_iterate_dir): Likewise.
42576 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42577
42578 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42579 LEN to grub_disk_addr_t and grub_size_t, respectively.
42580
42581 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42582
42583 * fs/jfs.c (grub_jfs_read_file): Likewise.
42584
42585 * fs/minix.c (grub_jfs_read_file): Likewise.
42586
42587 * fs/sfs.c (grub_jfs_read_file): Likewise.
42588
42589 * fs/ufs.c (grub_jfs_read_file): Likewise.
42590
42591 * fs/xfs.c (grub_jfs_read_file): Likewise.
42592
42593 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42594 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42595 respectively.
42596
42597 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42598 BLKNR to -1 instead of returning GRUB_ERRNO.
42599 (grub_ext2_read_file): Change the types of SECTOR and
42600 LEN to grub_disk_addr_t and grub_size_t, respectively.
42601
42602 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42603 LEN to grub_disk_addr_t and grub_size_t, respectively.
42604
42605 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42606 grub_file_read.
42607
42608 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42609 string. Do not cast SECTOR explicitly.
42610
42611 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42612 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42613 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42614 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42615 over 2TB and LBA mode is not supported, raise an error.
42616 (get_safe_sectors): New function.
42617 (grub_biosdisk_read): Use get_safe_sectors.
42618 (grub_biosdisk_write): Likewise.
42619
42620 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42621 (grub_efidisk_write): Likewise.
42622
42623 * disk/loopback.c (delete_loopback): Cosmetic changes.
42624 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42625 correctly.
42626 (grub_loopback_open): Likewise.
42627 (grub_loopback_read): Likewise. Also, change the type of POS to
42628 grub_off_t, and fix the usage of grub_memset.
42629
42630 * commands/i386/pc/play.c: Include grub/machine/time.h.
42631
42632 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42633 print FILE->SIZE.
42634
42635 * commands/configfile.c: Include grub/env.h.
42636
42637 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42638 GRUB_ERRNO directly instead. Change the type of POS to
42639 grub_off_t. Follow the coding standard.
42640
42641 * commands/blocklist.c: Include grub/partition.h.
42642 (grub_cmd_blocklist): Return an error if the underlying device is
42643 not a disk. Take the starting sector of a partition into account,
42644 if a partition is used.
42645
42646 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42647 a length field.
42648 (lba_mode): Support 64-bit addresses.
42649 (chs_mode): Likewise.
42650 (copy_buffer): Adapted to the new offsets of a length field and a
42651 segment field.
42652 (blocklist_default_start): Allocate 64-bit space.
42653
42654 * boot/i386/pc/boot.S (force_lba): Removed.
42655 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 42656 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 42657 space.
42658 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42659 is useless.
42660 (lba_mode): Refactored to support a 64-bit address. More size
42661 optimization.
42662 (setup_sectors): Likewise.
42663
53af98ad 426642006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42665
42666 * DISTLIST: Added include/grub/i386/linux.h. Removed
42667 include/grub/i386/pc/linux.h
42668
42669 * configure.ac (AC_INIT): Bumped to 1.94.
42670
42671 * config.guess: Updated from gnulib.
42672 * config.sub: Likewise.
42673 * install-sh: Likewise.
42674 * mkinstalldirs: Likewise.
42675
b4c1940a 426762006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42677
42678 * conf/common.rmk (grub_modules_init.lst): Depended on
42679 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42680 MODSRCFILES.
42681
42682 * genmk.rb (PModule::rule): Reverted the previous change.
42683
cfca1cfd 426842006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42685
42686 * conf/common.rmk (grub_modules_init.lst): Depends on
42687 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42688 that the target does not exist before producing.
42689 (grub_modules_init.h): Remove the target before generating.
42690 (grub_emu_init.c): Likewise.
42691
42692 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42693
aa6d7826 426942006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42695
42696 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42697 for the target-specific tests. Make sure that we also have the
42698 up-to-date target variables for those tests.
42699
26c607b9 427002006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42701
42702 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42703 (PModule::rule): Likewise.
42704
0162321a 427052006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42706
42707 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42708 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42709 target-specific flags should be prefixed.
42710 (PModule::rule): Likewise.
42711
6c826348 427122006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42713
42714 * configure.ac (CMP): Check if cmp is available explicitly.
42715
b977bf01 427162006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42717
42718 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42719 (target_cpu): New variable.
42720 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 42721
b977bf01 42722 * util/i386/pc/grub-install.in (host_cpu): Removed.
42723 (target_cpu): New variable.
42724 (pkglibdir): Use target_cpu instead of host_cpu.
42725
42726 * util/genmoddep.c: Removed.
f19dbdb7 42727
b977bf01 42728 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42729 instead of GRUB_HOST_SIZEOF_VOID_P.
42730 * kern/dl.c: Likewise.
42731
42732 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42733 ...
42734 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42735 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42736 (GRUB_TARGET_SIZEOF_LONG): ... this.
42737 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42738 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42739 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42740 to ...
42741 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42742 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42743 (GRUB_TARGET_SIZEOF_LONG): ... this.
42744 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42745 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42746 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42747 to ...
42748 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42749 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42750 (GRUB_TARGET_SIZEOF_LONG): ... this.
42751 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42752 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42753
42754 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42755 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42756 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42757 instead of GRUB_HOST_SIZEOF_LONG.
42758 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42759 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42760 GRUB_CPU_WORDS_BIGENDIAN.
42761 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42762 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42763 grub_host_ssize_t.
42764
42765 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42766 (genmoddep_SOURCES): Likewise.
42767 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42768 (genmoddep_SOURCES): Likewise.
42769 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42770 (genmoddep_SOURCES): Likewise.
42771 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42772 Likewise.
42773 (genmoddep_SOURCES): Likewise.
42774
42775 * genmoddep.awk: New file.
42776
42777 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42778 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42779 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42780 (PModule::rule): Likewise.
42781 (Program::rule): Likewise.
42782 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42783 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42784 respectively.
42785
42786 * configure.ac: Rewritten intensively to use host and target
42787 instead of build and host, respectively.
42788
42789 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42790 (host_cpu): Removed.
42791 (target_cpu): New variable.
42792 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42793 (BUILD_CC): Removed.
42794 (BUILD_CFLAGS): Likewise.
42795 (BUILD_CPPFLAGS): Likewise.
42796 (TARGET_CC): New variable.
42797 (TARGET_CFLAGS): Likewise.
42798 (TARGET_CPPFLAGS): Likewise.
42799 (TARGET_LDFLAGS): Likewise.
42800 (AWK): Likewise.
42801 (include): Use target_cpu instead of host_cpu.
42802 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 42803
b977bf01 42804 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42805
f09771a1 428062006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42807
42808 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42809 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42810 field 'false' to 'exec_on_false'.
42811 (grub_script_create_cmdif): Renamed argument names to reflect above
42812 changes.
42813
42814 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42815
42816 * normal/script.c (grub_script_create_cmdif): Likewise.
42817
118f4fb3 428182006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42819
42820 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42821 top.
42822 (grub_hfsplus_btree_recptr): Likewise.
42823 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42824 FILEBLOCK both to pass a block number and store next block
42825 number.
42826 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42827 overflow file correctly. Specify errors appropriately, because
42828 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42829 grub_hfsplus_btree_recptr to get the pointer to a found key.
42830 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42831 is found.
42832
42833 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42834 linux.mod.
42835 (_linux_mod_SOURCES): New variable.
42836 (_linux_mod_CFLAGS): Likewise.
42837 (_linux_mod_LDFLAGS): Likewise.
42838 (linux_mod_SOURCES): Likewise.
42839 (linux_mod_CFLAGS): Likewise.
42840 (linux_mod_LDFLAGS): Likewise.
42841
42842 * DISTLIST: Added loader/i386/efi/linux.c,
42843 loader/i386/efi/linux_normal.c and
42844 include/grub/i386/efi/loader.h.
42845
42846 * loader/i386/efi/linux.c: New file.
42847 * loader/i386/efi/linux_normal.c: Likewise.
42848 * include/grub/i386/efi/loader.h: Likewise.
42849
89a7d726 428502006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42851
42852 * commands/blocklist.c: New file.
42853
42854 * DISTLIST: Added commands/blocklist.c.
42855
42856 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 42857 color for the background, and a darker color for the foreground.
89a7d726 42858 (grub_console_checkkey): Return READ_KEY.
42859 (grub_console_cls): Set the background to
42860 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42861
42862 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42863
42864 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42865 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42866
42867 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42868 prototype.
42869
42870 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42871 BG. The spec is wrong again.
42872
42873 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42874 prototype.
42875 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42876
42877 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42878 commands/blocklist.c.
42879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 42880
89a7d726 42881 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42882 (blocklist_mod_SOURCES): New variable.
42883 (blocklist_mod_CFLAGS): Likewise.
42884 (blocklist_mod_LDFLAGS): Likewise.
42885
75c8f258 428862006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42887
42888 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42889 duplication.
42890 (lba_mode): Use %eax more intensively to reduce the code size.
42891
da2eb181 428922006-05-20 Marco Gerards <marco@gnu.org>
42893
42894 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42895
42896 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42897 for `menuentry'.
42898 (script): Accept leading newlines.
42899 (newlines): New rule to describe 0 or more newlines.
42900 (commands): Accept `command' with trailing newline. Fixed the
42901 order in which arguments were passed to `grub_script_add_cmd'.
42902 Accept commands separated by newlines.
42903 (function): Changed to accept newlines.
42904 (menuentry) Rewritten.
42905
42906 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42907 front of the list, instead of to the end.
42908
577b4050 429092006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42910
42911 * util/i386/pc/grub-install.in (bindir): New variable.
42912 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42913 Shaver <lbgwjl@gmail.com>.
42914
0d6e1189 429152006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42916
42917 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42918 grub/machine/linux.h
42919 * loader/i386/pc/linux.c: Likewise.
42920
42921 * include/grub/i386/pc/linux.h: Moved to ...
42922 * include/grub/i386/linux.h: ... here.
42923
42924 * include/grub/i386/linux.h (struct linux_kernel_params): New
42925 struct.
f19dbdb7 42926
31b86e9f 429272006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42928
42929 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42930 checking.
42931 (grub_video_vbe_blit_glyph): Likewise.
42932 (grub_video_vbe_blit_bitmap): Likewise.
42933 (grub_video_vbe_blit_render_target): Likewise.
42934
83b984de 429352006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42936
42937 * configure.ac (--with-platform): Properly quote the square
42938 brackets.
42939
5f0413bd 429402006-05-08 Marco Gerards <marco@gnu.org>
42941
42942 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42943 this...
42944 (kernel_elf_HEADERS): ...to this. Updated all users.
42945 (grubof_symlist.c): Renamed from this...
42946 (kernel_elf_symlist.c): ...to this. Updated all users.
42947 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42948 (grubof_SOURCES): Renamed from this...
42949 (kernel_elf_SOURCES): ...to this.
42950 (grubof_HEADERS): Renamed from this...
42951 (kernel_elf_HEADERS): ...to this.
42952 (grubof_CFLAGS): Renamed from this...
42953 (kernel_elf_CFLAGS): ...to this.
42954 (grubof_ASFLAGS): Renamed from this...
42955 (kernel_elf_ASFLAGS): ...to this.
42956 (grubof_LDFLAGS): Renamed from this...
42957 (kernel_elf_LDFLAGS): ...to this.
42958
42959 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42960 this...
42961 (kernel_elf_HEADERS): ...to this. Updated all users.
42962 (grubof_symlist.c): Renamed from this...
42963 (kernel_elf_symlist.c): ...to this. Updated all users.
42964 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42965 (grubof_SOURCES): Renamed from this...
42966 (kernel_elf_SOURCES): ...to this.
42967 (grubof_HEADERS): Renamed from this...
42968 (kernel_elf_HEADERS): ...to this.
42969 (grubof_CFLAGS): Renamed from this...
42970 (kernel_elf_CFLAGS): ...to this.
42971 (grubof_ASFLAGS): Renamed from this...
42972 (kernel_elf_ASFLAGS): ...to this.
42973 (grubof_LDFLAGS): Renamed from this...
42974 (kernel_elf_LDFLAGS): ...to this.
42975
42976 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42977 `kernel.elf' instead of `grubof'.
42978
05568c2e 429792006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42980
42981 Add --with-platform to configure. Use pkglibdir instead of
42982 pkgdatadir. This is reported by Roger Leigh.
42983
42984 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42985 (host_vendor): Likewise.
42986 (host_os): Likewise.
42987 (pkgdatadir): Likewise.
42988 (platform): New variable.
42989 (pkglibdir): Likewise.
42990 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 42991
05568c2e 42992 * util/i386/pc/grub-install.in (datadir): Removed.
42993 (host_vendor): Likewise.
42994 (host_os): Likewise.
42995 (pkgdatadir): Likewise.
42996 (platform): New variable.
42997 (pkglibdir): Likewise.
42998 Use PKGLIBDIR instead of PKGDATADIR.
42999
43000 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
43001 instead of GRUB_DATADIR.
43002 (main): Likewise.
43003 * util/i386/pc/grub-mkimage.c (usage): Likewise.
43004 (main): Likewise.
43005 * util/i386/efi/grub-mkimage.c (usage): Likewise.
43006 (main): Likewise.
43007
43008 * configure.ac (--with-platform): New option.
43009 Use PLATFORM instead of HOST_VENDOR to specify a platform.
43010
43011 * Makefile.in: Include a makefile based on PLATFORM instead of
43012 HOST_VENDOR.
43013 (pkgdatadir): Not appended by the machine type.
43014 (pkglibdir): Appended by the machine type.
43015 (host_vendor): Removed.
43016 (platform): New variable.
43017 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
43018 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
43019 (uninstall): Likewise.
43020
4e93851c 430212006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
43022
43023 Use the environment context in the menu. Remove the commands
43024 "default" and "timeout", and use variables instead.
f19dbdb7 43025
4e93851c 43026 * normal/menu.c: Include grub/env.h.
43027 (print_entry): Cast TITLE to silence gcc.
43028 (get_timeout): New function.
43029 (set_timeout): Likewise.
43030 (get_entry_number): Likewise.
43031 (run_menu): Use a default entry, a fallback entry and a timeout
43032 in the environment variables "default", "fallback" and
43033 "timeout". Also, tweak the default entry if it is not within the
43034 current menu entries.
43035 (grub_menu_run): Use a fallback entry in the environment variable
43036 "fallback".
43037
43038 * normal/main.c (read_config_file): Do not initialize
43039 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
43040 NEWMENU->TIMEOUT.
43041 (grub_normal_execute): Use a data slot to store the menu.
43042
43043 * include/grub/normal.h (struct grub_menu): Removed default_entry,
43044 fallback_entry and timeout.
43045 (struct grub_menu_list): Removed.
43046 (grub_menu_list_t): Likewise.
43047 (struct grub_context): Likewise.
43048 (grub_context_t): Likewise.
43049 (grub_context_get): Likewise.
43050 (grub_context_get_current_menu): Likewise.
43051 (grub_context_push_menu): Likewise.
43052 (grub_context_pop_menu): Likewise.
43053 (grub_default_init): Likewise.
43054 (grub_default_fini): Likewise.
43055 (grub_timeout_init): Likewise.
43056 (grub_timeout_fini): Likewise.
43057
43058 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
43059 and timeout.mod.
43060 (normal_mod_SOURCES): Removed normal/context.c.
43061
43062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
43063 commands/default.c, commands/timeout.c and normal/context.c.
43064 (normal_mod_SOURCES): Removed normal/context.c.
43065
43066 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
43067 commands/timeout.c and normal/context.c.
43068 (normal_mod_SOURCES): Removed normal/context.c.
43069
43070 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
43071 commands/default.c, commands/timeout.c and normal/context.c.
43072 (normal_mod_SOURCES): Removed normal/context.c.
43073
43074 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
43075 timeout.mod.
43076 (default_mod_SOURCES): Removed.
43077 (default_mod_CFLAGS): Likewise.
43078 (default_mod_LDFLAGS): Likewise.
43079 (timeout_mod_SOURCES): Removed.
43080 (timeout_mod_CFLAGS): Likewise.
43081 (timeout_mod_LDFLAGS): Likewise.
43082
43083 * DISTLIST: Removed commands/default.c, commands/timeout.c and
43084 normal/context.c.
43085
43086 * commands/default.c: Removed.
43087 * commands/timeout.c: Likewise.
43088 * normal/context.c: Likewise.
43089
1eb9cc1d 430902006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
43091
43092 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
43093
385bd9c1 430942006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
43095
43096 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
43097 "next" to "prev" for readability.
43098 (struct grub_env_sorted_var): New struct.
43099 (grub_env_context): Renamed to ...
43100 (initial_context): ... this.
43101 (grub_env_var_context): Renamed to ...
43102 (current_context): ... this.
43103 (grub_env_find): Look only at CURRENT_CONTEXT.
43104 (grub_env_context_open): Rewritten to copy exported variables from
43105 previous context.
43106 (grub_env_context_close): Rewritten according to the new
43107 scheme. Also, add an assertion to prevent the initial context from
43108 removed.
43109 (grub_env_insert): Removed the code for the sorted list.
43110 (grub_env_remove): Likewise.
43111 (grub_env_export): Simply mark the variable with
43112 GRUB_ENV_VAR_GLOBAL.
43113 (grub_env_set): A cosmetic change for naming consistency.
43114 (grub_env_get): Likewise.
43115 (grub_env_unset): Likewise.
43116 (grub_env_iterate): Rewritten to sort variables within this
43117 function.
43118 (grub_register_variable_hook): Fixed for naming consistency. Call
43119 grub_env_find again, only if NAME is not found at the first time.
43120 (mangle_data_slot_name): New function.
43121 (grub_env_set_data_slot): Likewise.
43122 (grub_env_get_data_slot): Likewise.
43123 (grub_env_unset_data_slot): Likewise.
43124
43125 * include/grub/env.h (grub_env_var_type): New enum.
43126 (GRUB_ENV_VAR_LOCAL): New constant.
43127 (GRUB_ENV_VAR_GLOBAL): Likewise.
43128 (GRUB_ENV_VAR_DATA): Likewise.
43129 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
43130 "type".
43131 (grub_env_set): Replace VAR with NAME for consistency.
43132 (grub_register_variable_hook): Likewise.
43133 (grub_env_export): Specify the name of the argument.
43134 (grub_env_set_data_slot): New prototype.
43135 (grub_env_get_data_slot): Likewise.
43136 (grub_env_unset_data_slot): Likewise.
43137
7f362539 431382006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
43139
43140 Extend the loader so that GRUB can accept a loader which comes
43141 back to GRUB when a loaded image exits. Also, this change adds
43142 support for a chainloader on EFI.
f19dbdb7 43143
7f362539 43144 * term/efi/console.c: Include grub/misc.h.
43145 (grub_console_checkkey): Display a scan code on the top for
43146 debugging. This will be removed once the EFI port gets stable.
43147 Correct the scan code mapping.
43148
43149 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
43150 allocate memory from larger regions, in order to reduce the number
43151 of allocated regions. Otherwise, the MacOSX loader panics.
43152 (filter_memory_map): Avoid less than 1MB for compatibility with
43153 other loaders.
43154 (add_memory_regions): Allocate from the tail of a region, if
43155 possible, to avoid allocating a region near to 1MB, for the MacOSX
43156 loader.
43157
43158 * kern/efi/init.c (grub_efi_set_prefix): Specify
43159 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
43160
43161 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
43162 argument IMAGE_HANDLE and specify it to get a loaded image.
43163 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
43164 grub_efi_get_loaded_image.
fe6b695a 43165 (grub_efi_get_filename): Divide the length by the size of
7f362539 43166 grub_efi_char16_t.
43167 (grub_efi_get_device_path): New function.
43168 (grub_efi_print_device_path): Print End Device Path nodes. Divide
43169 the length by the size of grub_efi_char16_t for a file path device
43170 path node.
43171
43172 * kern/loader.c (grub_loader_noreturn): New variable.
43173 (grub_loader_set): Accept a new argument NORETURN. Set
43174 GRUB_LOADER_NORETURN to NORETURN.
43175 All callers changed.
43176 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
43177 grub_machine_fini.
43178
43179 * include/grub/efi/efi.h (grub_efi_get_device_path): New
43180 prototype.
43181 (grub_efi_get_loaded_image): Take an argument to specify an image
43182 handle.
43183
43184 * include/grub/loader.h (grub_loader_set): Added one more argument
43185 NORETURN.
43186
43187 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
43188 instead of grub_efi_open_protocol.
43189 (grub_efidisk_get_device_name): Likewise.
43190 (grub_efidisk_close): Print a newline.
43191 (grub_efidisk_get_device_handle): Fixed to use
43192 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
43193 GRUB_EFI_DEVICE_PATH_TYPE.
43194
43195 * disk/efi/efidisk.c (device_path_guid): Moved to ...
43196 * kern/efi/efi.c (device_path_guid): ... here.
43197
43198 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
43199 chain.mod.
43200 (kernel_mod_HEADERS): Added efi/disk.h.
43201 (_chain_mod_SOURCES): New variable.
43202 (_chain_mod_CFLAGS): Likewise.
43203 (_chain_mod_LDFLAGS): Likewise.
43204 (chain_mod_SOURCES): Likewise.
43205 (chain_mod_CFLAGS): Likewise.
43206 (chain_mod_LDFLAGS): Likewise.
43207
43208 * DISTLIST: Added include/grub/efi/chainloader.h,
43209 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
43210
43211 * include/grub/efi/chainloader.h: New file.
43212 * loader/efi/chainloader.c: Likewise.
43213 * loader/efi/chainloader_normal.c: Likewise.
43214
c0111d6e 432152006-04-30 Marco Gerards <marco@gnu.org>
43216
43217 * commands/configfile.c (grub_cmd_source): New function.
43218 (GRUB_MOD_INIT): Register the commands `source' and `.'.
43219 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
43220
df5341da 432212006-04-30 Marco Gerards <marco@gnu.org>
43222
43223 * normal/execute.c (grub_script_execute_cmd): Change the return
43224 type to `grub_err_t'. Correctly return the error.
43225 (grub_script_execute_cmdline): In case a command line is not a
43226 command or a function, try to interpret it as an assignment.
43227
f85934bd 432282006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
43229
43230 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
43231 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
43232 skip a node whose name is obviously invalid as UTF-16,
43233 i.e. contains a NUL character. Stop the iteration when the last
43234 directory entry is found. Instead of using the return value of
43235 grub_hfsplus_btree_iterate_node, store the value in RET and use
43236 it, because the iterator can be stopped by the last directory
43237 entry.
43238
8f8a2cf8 432392006-04-30 Marco Gerards <marco@gnu.org>
43240
43241 * include/grub/env.h (grub_env_export): New prototype. Reported
43242 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
43243
a27e84ce 432442006-04-30 Marco Gerards <marco@gnu.org>
43245
43246 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
43247 size of the extents in a catalog file record.
43248
eaef0553 432492006-04-29 Marco Gerards <marco@gnu.org>
43250
43251 * commands/configfile.c (grub_cmd_configfile): Execute the
43252 configfile within its own context.
43253
43254 * include/grub/env.h (grub_env_context_open): New prototype.
43255 (grub_env_context_close): Likewise.
43256
43257 * kern/env.c (grub_env): Removed.
43258 (grub_env_sorted): Likewise.
43259 (grub_env_context): New variable.
43260 (grub_env_var_context): Likewise.
43261 (grub_env_find): Search both the active context and the global
43262 context.
43263 (grub_env_context_open): New function.
43264 (grub_env_context_close): Likewise.
43265 (grub_env_insert): Likewise.
43266 (grub_env_remove): Likewise.
43267 (grub_env_export): Likewise.
43268 (grub_env_set): Changed to use helper functions to avoid code
43269 duplication.
43270 (grub_env_iterate): Rewritten so both the current context and the
43271 global context are being used.
43272
43273 * normal/command.c (export_command): New function.
43274 (grub_command_init): Register the `export' function.
43275
7b455f4d 432762006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
43277
43278 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
43279 explicitly to suppress gcc's warnings.
43280 * fs/fat.c (grub_fat_find_dir): Likewise.
43281 (grub_fat_label): Likewise.
43282 * fs/xfs.c (grub_xfs_read_inode): Likewise.
43283 (grub_xfs_mount): Likewise.
43284 (grub_xfs_label): Likewise.
43285 * fs/affs.c (grub_affs_mount): Likewise.
43286 (grub_affs_label): Likewise.
43287 (grub_affs_iterate_dir): Likewise.
43288 * fs/sfs.c (grub_sfs_mount): Likewise.
43289 (grub_sfs_iterate_dir): Likewise.
43290 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
43291 * fs/hfs.c (grub_hfs_mount): Likewise.
43292 (grub_hfs_cmp_catkeys): Likewise.
43293 (grub_hfs_find_dir): Likewise.
43294 (grub_hfs_dir): Likewise.
43295 (grub_hfs_label): Likewise.
43296 * fs/jfs.c (grub_jfs_mount): Likewise.
43297 (grub_jfs_opendir): Likewise.
43298 (grub_jfs_getent): Likewise.
43299 (grub_jfs_lookup_symlink): Likewise.
43300 (grub_jfs_label): Likewise.
43301 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
43302 (grub_hfsplus_iterate_dir): Likewise.
43303 (grub_hfsplus_btree_iterate_node): Made static.
43304
43305 * util/grub-emu.c (prefix): New variable.
43306 (grub_machine_set_prefix): New function.
43307 (main): Do not set the environment variable "prefix" here. Only
43308 set PREFIX, which is used later by grub_machine_set_prefix.
43309
43310 * include/grub/video.h: Do not include grub/symbol.h.
43311 (grub_video_register): Not exported. This symbol is not defined in
43312 the kernel.
43313 (grub_video_unregister): Likewise.
43314 (grub_video_iterate): Likewise.
43315 (grub_video_setup): Likewise.
43316 (grub_video_restore): Likewise.
43317 (grub_video_get_info): Likewise.
43318 (grub_video_get_blit_format): Likewise.
43319 (grub_video_set_palette): Likewise.
43320 (grub_video_get_palette): Likewise.
43321 (grub_video_set_viewport): Likewise.
43322 (grub_video_get_viewport): Likewise.
43323 (grub_video_map_color): Likewise.
43324 (grub_video_map_rgb): Likewise.
43325 (grub_video_map_rgba): Likewise.
43326 (grub_video_fill_rect): Likewise.
43327 (grub_video_blit_glyph): Likewise.
43328 (grub_video_blit_bitmap): Likewise.
43329 (grub_video_blit_render_target): Likewise.
43330 (grub_video_scroll): Likewise.
43331 (grub_video_swap_buffers): Likewise.
43332 (grub_video_create_render_target): Likewise.
43333 (grub_video_delete_render_target): Likewise.
43334 (grub_video_set_active_render_target): Likewise.
43335
43336 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43337 Undefined.
43338 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43339
43340 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
43341 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43342 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43343 instead of $(srcdir)/genkernsyms.sh.
43344
43345 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43346 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43347 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43348 instead of $(srcdir)/genkernsyms.sh.
43349
43350 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
43351 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43352 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43353 instead of $(srcdir)/genkernsyms.sh.
43354
43355 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43356 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43357 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43358 instead of $(srcdir)/genkernsyms.sh.
43359
43360 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43361 genkernsyms.sh.
43362
43363 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43364 genkernsyms.sh.
43365 (gensymlist.sh): New target.
43366 (genkernsyms.sh): Likewise.
43367
43368 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43369 genkernsyms.sh.in and gensymlist.sh.in.
43370
43371 * genkernsyms.sh: Removed.
43372 * gensymlist.sh: Likewise.
f19dbdb7 43373
7b455f4d 43374 * genkernsyms.sh.in: New file.
43375 * gensymlist.sh.in: Likewise.
43376
1885bb27 433772006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43378
43379 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43380 clobber "prefix", since we may have already set it manually.
43381
71538dff 433822006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43383
43384 * kern/misc.c (abort): New alias for grub_abort.
43385
2965c7cc 433862006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43387
43388 A new machine-specific function "grub_machine_set_prefix" is
43389 defined. This is called after loading modules, so that a prefix
43390 initialization can use modules. Also, this change adds an
43391 intensive debugging feature for the memory manager via the
43392 configure option "--enable-mm-debug".
f19dbdb7 43393
2965c7cc 43394 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43395 PART.LEN.
43396
43397 * kern/sparc64/ieee1275/init.c (abort): Removed.
43398 (grub_stop): Likewise.
43399 (grub_exit): New function.
43400 (grub_set_prefix): Renamed to ...
43401 (grub_machine_set_prefix): ... this.
43402 (grub_machine_init): Do not call grub_set_prefix.
43403
43404 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43405 (grub_machine_set_prefix): ... this.
43406 (grub_machine_init): Do not call grub_set_prefix.
43407
43408 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43409 (grub_machine_init): Do not set the prefix here.
43410
43411 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43412
43413 * kern/efi/init.c: Include grub/mm.h.
43414 (grub_efi_set_prefix): New function.
43415
43416 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43417 (grub_efi_get_filename): New function.
43418 (grub_print_device_path): Renamed to ...
43419 (grub_efi_print_device_path): ... this.
43420
43421 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43422 [MM_DEBUG] (grub_realloc): Likewise.
43423 [MM_DEBUG] (grub_free): Likewise.
43424 [MM_DEBUG] (grub_memalign): Likewise.
43425 [MM_DEBUG] (grub_mm_debug): New variable.
43426 [MM_DEBUG] (grub_debug_malloc): New function.
43427 [MM_DEBUG] (grub_debug_free): New function.
43428 [MM_DEBUG] (grub_debug_realloc): New function.
43429 [MM_DEBUG] (grub_debug_memalign): New function.
43430
43431 * kern/misc.c (grub_abort): Print a newline to distinguish
43432 the message.
43433
43434 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43435 grub_set_root_dev after loading modules. This is necessary when
43436 setting a prefix depends on modules.
43437
43438 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43439 (grub_efi_print_device_path): ... this.
43440 (grub_efi_get_filename): New prototype.
43441 (grub_efi_set_prefix): Likewise.
43442
43443 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43444 and grub/disk.h.
43445 (grub_efidisk_get_device_handle): New prototype.
43446 (grub_efidisk_get_device_name): Likewise.
43447
43448 * include/grub/mm.h: Include config.h.
43449 (MM_DEBUG): Removed.
43450 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43451 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43452 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43453 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43454 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43455 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43456 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43457 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43458 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43459
43460 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43461
43462 * disk/efi/efidisk.c: Include grub/partition.h.
43463 (iterate_child_devices): New function.
43464 (add_device): First, compare only last device path nodes, so that
43465 devices are sorted by the types.
43466 (grub_efidisk_get_device_handle): New function.
43467 (grub_efidisk_get_device_name): Likewise.
43468
43469 * configure.ac (--enable-mm-debug): New option to enable the
43470 memory manager debugging feature. This makes the binary much
43471 bigger, so is disabled by default.
43472
9cacaa17 434732006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43474
43475 Use grub_abort instead of grub_stop, and grub_exit must be
43476 define in each architecture now. Also, this change adds support
43477 for EFI disks.
f19dbdb7 43478
9cacaa17 43479 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43480 (grub_getkey): New function.
43481 (grub_term_get_current): Likewise.
43482
43483 * util/i386/pc/grub-setup.c: Include grub/term.h.
43484 (grub_getkey): New function.
43485 (grub_term_get_current): Likewise.
43486
43487 * util/misc.c (grub_stop): Renamed to ...
43488 (grub_exit): ... this.
43489
43490 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43491 (grub_exit): ... this.
43492 (grub_machine_init): Use grub_abort instead of abort.
43493 (grub_stop): Removed.
43494
43495 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43496 abort.
43497
43498 * kern/i386/pc/startup.S (grub_exit): New function.
43499 (cold_reboot): New label.
43500
43501 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43502 (grub_efi_init): Call grub_efidisk_init.
43503 (grub_efi_fini): Call grub_efidisk_fini.
43504
43505 * kern/efi/efi.c: Include grub/mm.h.
43506 (grub_efi_console_control_guid): Renamed to ...
43507 (console_control_guid): ... this.
43508 (grub_efi_loaded_image_guid): Renamed to ...
43509 (loaded_image_guid): ... this.
43510 (grub_efi_locate_handle): New function.
43511 (grub_efi_open_protocol): Likewise.
43512 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43513 GRUB_EFI_CONSOLE_CONTROL_GUID.
43514 (grub_efi_exit): Removed.
43515 (grub_stop): Likewise.
43516 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43517 (grub_exit): New function.
43518 (grub_print_device_path): Likewise.
43519
43520 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43521 (grub_enter_rescue_mode): Register "exit".
43522
43523 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43524 (grub_abort): New function.
43525
43526 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43527
43528 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43529
43530 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43531
43532 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43533 (grub_print_device_path): New prototype.
43534 (grub_efi_locate_handle): Likewise.
43535 (grub_efi_open_protocol): Likewise.
43536
43537 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43538 * disk/efi/efidisk.c: Likewise.
43539
43540 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43541
43542 * include/grub/efi/console_control.h
43543 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43544
43545 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43546 last 8 bytes as an array.
43547 (GRUB_EFI_DISK_IO_GUID): New macro.
43548 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43549 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43550 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43551 grub_uint8_t.
43552 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43553 (struct grub_efi_device_path): Rename the member "sub_type" to
43554 "subtype".
43555 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43556 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43557 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43558 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43559 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43560 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43561 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43562 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43563 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43564 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43565 (struct grub_efi_pci_device_path): New structure.
43566 (grub_efi_pci_device_path_t): New type.
43567 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43568 (struct grub_efi_pccard_device_path): New structure.
43569 (grub_efi_pccard_device_path_t): New type.
43570 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43571 (struct grub_efi_memory_mapped_device_path): New structure.
43572 (grub_efi_memory_mapped_device_path_t): New type.
43573 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43574 (struct grub_efi_vendor_device_path): New structure.
43575 (grub_efi_vendor_device_path_t): New type.
43576 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43577 (struct grub_efi_controller_device_path): New structure.
43578 (grub_efi_controller_device_path_t): New type.
43579 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43580 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43581 (struct grub_efi_acpi_device_path): New structure.
43582 (grub_efi_acpi_device_path_t): New type.
43583 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43584 (struct grub_efi_expanded_acpi_device_path): New structure.
43585 (grub_efi_expanded_acpi_device_path_t): New type.
43586 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43587 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43588 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43589 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43590 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43591 (struct grub_efi_atapi_device_path): New structure.
43592 (grub_efi_atapi_device_path_t): New type.
43593 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43594 (struct grub_efi_fibre_channel_device_path): New structure.
43595 (grub_efi_fibre_channel_device_path_t): New type.
43596 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43597 (struct grub_efi_1394_device_path): New structure.
43598 (grub_efi_1394_device_path_t): New type.
43599 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43600 (struct grub_efi_usb_device_path): New structure.
43601 (grub_efi_usb_device_path_t): New type.
43602 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43603 (struct grub_efi_usb_class_device_path): New structure.
43604 (grub_efi_usb_class_device_path_t): New type.
43605 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43606 (struct grub_efi_i2o_device_path): New structure.
43607 (grub_efi_i2o_device_path_t): New type.
43608 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43609 (struct grub_efi_mac_address_device_path): New structure.
43610 (grub_efi_mac_address_device_path_t): New type.
43611 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43612 (struct grub_efi_ipv4_device_path): New structure.
43613 (grub_efi_ipv4_device_path_t): New type.
43614 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43615 (struct grub_efi_ipv6_device_path): New structure.
43616 (grub_efi_ipv6_device_path_t): New type.
43617 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43618 (struct grub_efi_infiniband_device_path): New structure.
43619 (grub_efi_infiniband_device_path_t): New type.
43620 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43621 (struct grub_efi_uart_device_path): New structure.
43622 (grub_efi_uart_device_path_t): New type.
43623 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43624 (struct grub_efi_vendor_messaging_device_path): New structure.
43625 (grub_efi_vendor_messaging_device_path_t): New type.
43626 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43627 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43628 (struct grub_efi_hard_drive_device_path): New structure.
43629 (grub_efi_hard_drive_device_path_t): New type.
43630 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43631 (struct grub_efi_cdrom_device_path): New structure.
43632 (grub_efi_cdrom_device_path_t): New type.
43633 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43634 (struct grub_efi_vendor_media_device_path): New structure.
43635 (grub_efi_vendor_media_device_path_t): New type.
43636 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43637 (struct grub_efi_file_path_device_path): New structure.
43638 (grub_efi_file_path_device_path_t): New type.
43639 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43640 (struct grub_efi_protocol_device_path): New structure.
43641 (grub_efi_protocol_device_path_t): New type.
43642 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43643 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43644 (struct grub_efi_bios_device_path): New structure.
43645 (grub_efi_bios_device_path_t): New type.
43646 (struct grub_efi_disk_io): New structure.
43647 (grub_efi_disk_io_t): New type.
43648 (struct grub_efi_block_io_media): New structure.
43649 (grub_efi_block_io_media_t): New type.
43650 (struct grub_efi_block_io): New structure.
43651 (grub_efi_block_io_t): New type.
43652
43653 * include/grub/misc.h (grub_stop): Removed.
43654 (grub_exit): New prototype.
43655 (grub_abort): Likewise.
43656
43657 * include/grub/disk.h (enum grub_disk_dev_id): Added
43658 GRUB_DISK_DEVICE_EFIDISK_ID.
43659
43660 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43661 disk/efi/efidisk.c.
43662 (kernel_syms.lst): Remove the target if an error occurs.
43663
49986a9f 436642006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43665
43666 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43667 as it was simply too buggy.
43668
970d3b8a 436692006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43670
43671 * kern/misc.c (grub_lltoa): New function.
43672 (grub_vsprintf): Added support for the long long suffix,
43673 i.e. "ll".
43674
ff04ec24 436752006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43676
43677 * Makefile.in (LDFLAGS): Add variable.
43678 (LD): Remove variable.
43679 * configure.ac: Add -m32 to LDFLAGS.
43680 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43681 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43682 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43683 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43684 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43685 variables.
43686 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43687 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43688 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43689
37e5e1a4 436902006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43691
43692 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43693 length for unknown glyph.
43694
c352d8dd 436952006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43696
2eab1c0d 43697 Add support for pre-loaded modules into the EFI port.
f19dbdb7 43698
2eab1c0d 43699 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43700 completely. Accept one more argument DIR. The caller has changed.
43701
43702 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43703
43704 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43705 (grub_efi_loaded_image_guid): New variable.
43706 (grub_efi_get_loaded_image): New function.
43707 (grub_arch_modules_addr): Likewise.
43708
43709 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43710 prototype.
43711
43712 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43713 (struct grub_efi_loaded_image): New structure.
43714 (grub_efi_loaded_image_t): New type.
43715
437162006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43717
c352d8dd 43718 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43719 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43720 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43721
6d01d6b4 437222006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43723
43724 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43725
976a4ea0 437262006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43727
43728 * DISTLIST: Added include/grub/efi/console.h,
43729 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43730 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43731
43732 * include/grub/efi/console.h: New file.
43733 * include/grub/efi/time.h: Likewise.
43734 * include/grub/i386/efi/kernel.h: Likewise.
43735 * kern/efi/init.c: Likewise.
43736 * kern/efi/mm.c: Likewise.
43737 * term/efi/console.c: Likewise.
f19dbdb7 43738
976a4ea0 43739 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43740 (grub_stop): Removed.
43741 (grub_get_rtc): Likewise.
43742 (grub_machine_init): Simply call grub_efi_init.
43743 (grub_machine_fini): Call grub_efi_fini.
43744
43745 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43746 (grub_efi_output_string): Removed.
43747 (grub_efi_stall): New function.
43748 (grub_stop): Likewise.
43749 (grub_get_rtc): Likewise.
43750
43751 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43752 (grub_efi_stall): New prototype.
43753 (grub_efi_allocate_pages): Likewise.
43754 (grub_efi_free_pages): Likewise.
43755 (grub_efi_get_memory_map): Likewise.
43756 (grub_efi_mm_init): Likewise.
43757 (grub_efi_mm_fini): Likewise.
43758 (grub_efi_init): Likewise.
43759 (grub_efi_fini): Likewise.
43760
43761 * include/grub/i386/efi/time.h: Do not include
43762 grub/symbol.h. Include grub/efi/time.h.
43763 (GRUB_TICKS_PER_SECOND): Removed.
43764 (grub_get_rtc): Likewise.
43765
43766 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43767 Added padding. The EFI spec is buggy.
43768 (GRUB_EFI_BLACK): New macro.
43769 (GRUB_EFI_BLUE): Likewise.
43770 (GRUB_EFI_GREEN): Likewise.
43771 (GRUB_EFI_CYAN): Likewise.
43772 (GRUB_EFI_RED): Likewise.
43773 (GRUB_EFI_MAGENTA): Likewise.
43774 (GRUB_EFI_BROWN): Likewise.
43775 (GRUB_EFI_LIGHTGRAY): Likewise.
43776 (GRUB_EFI_BRIGHT): Likewise.
43777 (GRUB_EFI_DARKGRAY): Likewise.
43778 (GRUB_EFI_LIGHTBLUE): Likewise.
43779 (GRUB_EFI_LIGHTGREEN): Likewise.
43780 (GRUB_EFI_LIGHTCYAN): Likewise.
43781 (GRUB_EFI_LIGHTRED): Likewise.
43782 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43783 (GRUB_EFI_YELLOW): Likewise.
43784 (GRUB_EFI_WHITE): Likewise.
43785 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43786 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43787 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43788 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43789 (GRUB_EFI_BACKGROUND_RED): Likewise.
43790 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43791 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43792 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43793 (GRUB_EFI_TEXT_ATTR): Likewise.
43794
43795 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43796 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43797 (kernel_mod_HEADERS): Added efi/time.h.
43798
83709125 437992006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43800
43801 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43802 include/grub/efi/api.h, include/grub/efi/console_control.h,
43803 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43804 include/grub/i386/efi/time.h, kern/efi/efi.c,
43805 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43806 and util/i386/efi/grub-mkimage.c.
43807
43808 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43809
43810 * genmk.rb (PModule#rule): Do not export symbols if
43811 #{prefix}_EXPORTS is set to "no".
43812
43813 * conf/i386-efi.mk: New file.
43814 * conf/i386-efi.rmk: Likewise.
43815 * include/grub/efi/api.h: Likewise.
43816 * include/grub/efi/console_control.h: Likewise.
43817 * include/grub/efi/efi.h: Likewise.
43818 * include/grub/efi/pe32.h: Likewise.
43819 * include/grub/i386/efi/time.h: Likewise.
43820 * kern/efi/efi.c: Likewise.
43821 * kern/i386/efi/init.c: Likewise.
43822 * kern/i386/efi/startup.S: Likewise.
43823 * util/i386/efi/grub-mkimage.c: Likewise.
43824
438252006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 43826
43827 * include/grub/script.h: Include <grub/parser.h> and
43828 "grub_script.tab.h".
43829 (struct grub_lexer_param): New struct.
43830 (struct grub_parser_param): Likewise.
43831 (grub_script_create_arglist): Pass the state in an argument.
43832 (grub_script_add_arglist): Likewise.
43833 (grub_script_create_cmdline): Likewise.
43834 (grub_script_create_cmdblock): Likewise.
43835 (grub_script_create_cmdif): Likewise.
43836 (grub_script_create_cmdmenu): Likewise.
43837 (grub_script_add_cmd): Likewise.
43838 (grub_script_arg_add): Likewise.
43839 (grub_script_lexer_ref): Likewise.
43840 (grub_script_lexer_deref): Likewise.
43841 (grub_script_lexer_record_start): Likewise.
43842 (grub_script_lexer_record_stop): Likewise.
43843 (grub_script_mem_record): Likewise.
43844 (grub_script_mem_record_stop): Likewise.
43845 (grub_script_malloc): Likewise.
43846 (grub_script_yylex): Likewise.
43847 (grub_script_yyparse): Likewise.
43848 (grub_script_yyerror): Likewise.
43849 (grub_script_yylex): Likewise.
43850 (grub_script_lexer_init): Return the state.
43851
43852 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43853 (grub_script_lexer_done): Likewise.
43854 (grub_script_lexer_getline): Likewise.
43855 (grub_script_lexer_refs): Likewise.
43856 (script): Likewise.
43857 (newscript): Likewise.
43858 (record): Likewise.
43859 (recording): Likewise.
43860 (recordpos): Likewise.
43861 (recordlen): Likewise.
43862 (grub_script_lexer_init): Return the state instead of setting
43863 global variables.
43864 (grub_script_lexer_ref): Use the newly added argument for state
43865 instead of globals.
43866 (grub_script_lexer_deref): Likewise.
43867 (grub_script_lexer_record_start): Likewise.
43868 (grub_script_lexer_record_stop): Likewise.
43869 (recordchar): Likewise.
43870 (nextchar): Likewise.
43871 (grub_script_yylex2): Likewise.
43872 (grub_script_yylex): Likewise.
43873 (grub_script_yyerror): Likewise.
43874
43875 * normal/parser.y (func_mem): Removed variable.
43876 (menu_entry): Likewise.
43877 (err): Likewise.
43878 (%lex-param): New parser option.
43879 (%parse-param): Likewise.
43880 (script): Always return the AST.
43881 (argument): Pass the state around.
43882 (arguments): Likewise.
43883 (grubcmd): Likewise.
43884 (commands): Likewise.
43885 (function): Likewise.
43886 (menuentry): Likewise.
43887 (if_statement): Likewise.
43888 (if): Likewise.
43889
43890 * normal/script.c (grub_script_memused): Removed variable.
43891 (grub_script_parsed): Likewise.
43892 (grub_script_malloc): Added a state argument. Use that instead of
43893 global variables.
43894 (grub_script_mem_record): Likewise.
43895 (grub_script_mem_record_stop): Likewise.
43896 (grub_script_arg_add): Likewise.
43897 (grub_script_add_arglist): Likewise.
43898 (grub_script_create_cmdline): Likewise.
43899 (grub_script_create_cmdif): Likewise.
43900 (grub_script_create_cmdmenu): Likewise.
43901 (grub_script_add_cmd): Likewise.
43902 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 43903
e2a8c904 439042006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 43905
43906 * normal/command.c (grub_command_init): Remove the title command.
43907
43908 * normal/lexer.c (grub_script_yylex): Renamed from this...
43909 (grub_script_yylex2): ... to this.
43910 (grub_script_yylex): New function. Temporary
43911 introduced to filter some tokens.
43912 (grub_script_yyerror): Print a newline.
43913
43914 * normal/main.c (read_config_file): Output information about the
43915 lines that contain errors. Wait for a key after all lines have
43916 been processed. Don't return an empty menu.
43917
43918 * normal/parser.y (func_mem): Don't initialize.
43919 (menu_entry): Likewise.
43920 (err): New variable.
43921 (script): Don't return anything when an error was encountered.
43922 (ws, returns): Removed rules.
43923 (argument): Disabled concatenated variable support.
43924 (arguments): Remove explicit separators.
43925 (grubcmd): Likewise.
43926 (function): Likewise.
43927 (menuentry): Likewise.
43928 (if): Likewise.
43929 (commands): Likewise. Add error handling.
43930
43931 * normal/script.c (grub_script_create_cmdline): If
43932 `grub_script_parsed' is 0, assume the parser encountered an error.
43933
c9a86192 439342006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43935
43936 * configure.ac: Add support for EFI. Fix the typo
43937 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43938
70f3b243 439392006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43940
43941 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43942 foreign multibyte characters should be shown correctly.
43943
65f201ad 439442006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43945
43946 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43947 calculation.
43948 (read_config_file): Made it to close file before returning.
43949
b4b93674 439502006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43951
43952 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43953 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43954 video/i386/pc/vbefill.c.
43955
43956 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43957 video/i386/pc/vbefill.c.
43958
43959 * include/grub/video.h (grub_video_blit_format): New enum.
43960 (grub_video_mode_info): Added new member blit_format.
43961 (grub_video_get_blit_format): New function prototype.
43962
43963 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43964 function prototype.
43965 (grub_video_vbe_map_rgb): Likewise.
43966 (grub_video_vbe_unmap_color): Likewise.
43967
43968 * include/grub/i386/pc/vbeblit.h: New file.
43969
43970 * include/grub/i386/pc/vbefill.h: New file.
43971
43972 * video/video.c (grub_video_get_blit_format): New function.
43973 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43974 (grub_video_vbe_map_rgb): Likewise.
43975 (grub_video_vbe_unmap_color): Likewise.
43976
43977 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43978 optimized fills.
43979 (grub_video_vbe_blit_render_target): Changed to use more optimized
43980 blits.
43981 (grub_video_vbe_setup): Added detection for optimized settings.
43982 (grub_video_vbe_create_render_target): Likewise.
43983
43984 * video/i386/pc/vbeblit.c: New file.
43985
43986 * video/i386/pc/vbefill.c: New file.
43987
c2379b9c 439882006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43989
43990 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43991 here...
43992
43993 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43994 parsing to support both hex and dec ranges. If filename was missing
43995 show usage information.
43996
bd0d7896 439972006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43998
43999 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
44000 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
44001
44002 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
44003 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
44004 (video_mod_SOURCES): Added.
44005 (video_mod_CFLAGS): Likewise.
44006 (video_mod_LDFLAGS): Likewise.
44007 (gfxterm_mod_SOURCES): Likewise.
44008 (gfxterm_mod_CFLAGS): Likewise.
44009 (gfxterm_mod_LDFLAGS): Likewise.
44010 (videotest_mod_SOURCES): Likewise.
44011 (videotest_mod_CFLAGS): Likewise.
44012 (videotest_mod_LDFLAGS): Likewise.
44013 (vesafb_mod_SOURCES): Removed.
44014 (vesafb_mod_CFLAGS): Likewise.
44015 (vesafb_mod_LDFLAGS): Likewise.
44016 (vga_mod_SOURCES): Likewise.
44017 (vga_mod_CFLAGS): Likewise.
44018 (vga_mod_LDFLAGS): Likewise.
44019
44020 * commands/videotest.c: New file.
44021
44022 * font/manager.c (fill_with_default_glyph): Modified to use
44023 grub_font_glyph.
44024 (grub_font_get_glyph): Likewise.
44025 (fontmanager): Renamed from this...
44026 (font_manager): ... to this.
44027
44028 * include/grub/font.h (grub_font_glyph): Added new structure.
44029 (grub_font_get_glyph): Modified to use grub_font_glyph.
44030
44031 * include/grub/misc.h (grub_abs): Added as inline function.
44032
44033 * include/grub/video.h: New file.
44034
44035 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
44036 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
44037 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
44038 (grub_vbe_get_controller_info): Renamed from this...
44039 (grub_vbe_bios_get_controller_info): ... to this.
44040 (grub_vbe_get_mode_info): Renamed from this...
44041 (grub_vbe_bios_get_mode_info): ... to this.
44042 (grub_vbe_set_mode): Renamed from this...
44043 (grub_vbe_bios_set_mode): ... to this.
44044 (grub_vbe_get_mode): Renamed from this...
44045 (grub_vbe_bios_get_mode): ... to this.
44046 (grub_vbe_set_memory_window): Renamed from this...
44047 (grub_vbe_bios_set_memory_window): ... to this.
44048 (grub_vbe_get_memory_window): Renamed from this...
44049 (grub_vbe_bios_get_memory_window): ... to this.
44050 (grub_vbe_set_scanline_length): Renamed from this...
44051 (grub_vbe_set_scanline_length): ... to this.
44052 (grub_vbe_get_scanline_length): Renamed from this...
44053 (grub_vbe_bios_get_scanline_length): ... to this.
44054 (grub_vbe_set_display_start): Renamed from this...
44055 (grub_vbe_bios_set_display_start): ... to this.
44056 (grub_vbe_get_display_start): Renamed from this...
44057 (grub_vbe_bios_get_display_start): ... to this.
44058 (grub_vbe_set_palette_data): Renamed from this...
44059 (grub_vbe_bios_set_palette_data): ... to this.
44060 (grub_vbe_set_pixel_rgb): Removed.
44061 (grub_vbe_set_pixel_index): Likewise.
44062
44063 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
44064 from this...
44065 (grub_vbe_bios_get_controller_info): ... to this.
44066 (grub_vbe_get_mode_info): Renamed from this...
44067 (grub_vbe_bios_get_mode_info): ... to this.
44068 (grub_vbe_set_mode): Renamed from this...
44069 (grub_vbe_bios_set_mode): ... to this.
44070 (grub_vbe_get_mode): Renamed from this...
44071 (grub_vbe_bios_get_mode): ... to this.
44072 (grub_vbe_set_memory_window): Renamed from this...
44073 (grub_vbe_bios_set_memory_window): ... to this.
44074 (grub_vbe_get_memory_window): Renamed from this...
44075 (grub_vbe_bios_get_memory_window): ... to this.
44076 (grub_vbe_set_scanline_length): Renamed from this...
44077 (grub_vbe_set_scanline_length): ... to this.
44078 (grub_vbe_get_scanline_length): Renamed from this...
44079 (grub_vbe_bios_get_scanline_length): ... to this.
44080 (grub_vbe_set_display_start): Renamed from this...
44081 (grub_vbe_bios_set_display_start): ... to this.
44082 (grub_vbe_get_display_start): Renamed from this...
44083 (grub_vbe_bios_get_display_start): ... to this.
44084 (grub_vbe_set_palette_data): Renamed from this...
44085 (grub_vbe_bios_set_palette_data): ... to this.
44086 (grub_vbe_bios_get_controller_info): Fixed problem with registers
44087 getting corrupted after calling it. Added more pushes and pops.
44088 (grub_vbe_bios_set_mode): Likewise.
44089 (grub_vbe_bios_get_mode): Likewise.
44090 (grub_vbe_bios_get_memory_window): Likewise.
44091 (grub_vbe_bios_set_scanline_length): Likewise.
44092 (grub_vbe_bios_get_scanline_length): Likewise.
44093 (grub_vbe_bios_get_display_start): Likewise.
44094 (grub_vbe_bios_set_palette_data): Likewise.
44095
44096 * normal/cmdline.c (cl_set_pos): Refresh the screen.
44097 (cl_insert): Likewise.
44098 (cl_delete): Likewise.
44099
44100 * term/gfxterm.c: New file.
44101
44102 * term/i386/pc/vesafb.c: Removed file.
44103
44104 * video/video.c: New file.
44105
44106 * video/i386/pc/vbe.c (real2pm): Added new function.
44107 (grub_video_vbe_draw_pixel): Likewise.
44108 (grub_video_vbe_get_video_ptr): Likewise.
44109 (grub_video_vbe_get_pixel): Likewise
44110 (grub_video_vbe_init): Likewise.
44111 (grub_video_vbe_fini): Likewise.
44112 (grub_video_vbe_setup): Likewise.
44113 (grub_video_vbe_get_info): Likewise.
44114 (grub_video_vbe_set_palette): Likewise.
44115 (grub_video_vbe_get_palette): Likewise.
44116 (grub_video_vbe_set_viewport): Likewise.
44117 (grub_video_vbe_get_viewport): Likewise.
44118 (grub_video_vbe_map_color): Likewise.
44119 (grub_video_vbe_map_rgb): Likewise.
44120 (grub_video_vbe_map_rgba): Likewise.
44121 (grub_video_vbe_unmap_color): Likewise.
44122 (grub_video_vbe_fill_rect): Likewise.
44123 (grub_video_vbe_blit_glyph): Likewise.
44124 (grub_video_vbe_blit_bitmap): Likewise.
44125 (grub_video_vbe_blit_render_target): Likewise.
44126 (grub_video_vbe_scroll): Likewise.
44127 (grub_video_vbe_swap_buffers): Likewise.
44128 (grub_video_vbe_create_render_target): Likewise.
44129 (grub_video_vbe_delete_render_target): Likewise.
44130 (grub_video_vbe_set_active_render_target): Likewise.
44131 (grub_vbe_set_pixel_rgb): Remove function.
44132 (grub_vbe_set_pixel_index): Likewise.
44133 (index_color_mode): Remove static variable.
44134 (active_mode): Likewise.
44135 (framebuffer): Likewise.
44136 (bytes_per_scan_line): Likewise.
44137 (grub_video_vbe_adapter): Added new static variable.
44138 (framebuffer): Likewise.
44139 (render_target): Likewise.
44140 (initial_mode): Likewise.
44141 (mode_in_use): Likewise.
44142 (mode_list): Likewise.
44143
5f97350b 441442006-03-10 Marco Gerards <marco@gnu.org>
44145
44146 * configure.ac (AC_INIT): Bumped to 1.93.
44147
44148 * DISTLIST: Added `include/grub/hfs.h'.
44149
a3c5c6f8 441502006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
44151
44152 * boot/i386/pc/boot.S (general_error): Before looping, try INT
44153 18H, which might help the BIOS falling back to next boot media.
44154
6de53d26 441552006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
44156
44157 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
44158 Poe Chen <poe.poechen@gmail.com>.
44159
77c4a393 441602006-01-17 Marco Gerards <marco@gnu.org>
44161
44162 * include/grub/normal.h: Include <grub/script.h>.
44163 (grub_command_list): Removed struct.
44164 (grub_command_list_t): Removed type.
44165 (grub_menu_entry): Remove members `num' and `command_list'. Add
44166 members `commands' and `sourcecode'.
44167 * include/grub/script.h: Add inclusion guards.
44168 (grub_script_cmd_menuentry): New struct.
44169 (grub_script_execute_menuentry): New prototype.
44170 (grub_script_lexer_record_start): Likewise.
44171 (grub_script_lexer_record_stop): Likewise.
44172 * normal/execute.c (grub_script_execute_menuentry): New function.
44173 * normal/lexer.c (record, recording, recordpos, recordlen): New
44174 variables.
44175 (grub_script_lexer_record_start): New function.
44176 (grub_script_lexer_record_stop): Likewise.
44177 (recordchar): Likewise.
44178 (nextchar): Likewise.
44179 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
44180 2048 as the buffer size. Add the tokens `menuentry' and `@'.
44181 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
44182 (current_menu): New variable.
44183 (free_menu): Mainly rewritten.
44184 (grub_normal_menu_addentry): New function.
44185 (read_config_file): Rewritten.
44186 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 44187 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 44188 the menu entry.
44189 (run): Mainly rewritten.
44190 * normal/parser.y (menu_entry): New variable.
44191 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
44192 (menuentry): New rule.
44193 (command): Add `menuentry'.
44194 (if_statement): Allow additional returns before `fi'.
44195 * normal/script.c (grub_script_create_cmdmenu): New function.
44196
144f1f98 441972006-01-03 Marco Gerards <marco@gnu.org>
44198
44199 * INSTALL: GNU Bison is required.
44200 * configure.ac: Rewritten the test to detect Bison.
44201 * Makefile.in (YACC): New variable. Reported by Xun Sun
44202 <xun.sun.cn@gmail.com>.
44203
af4b2d89 442042006-01-03 Marco Gerards <marco@gnu.org>
44205
44206 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
44207 the HFS+ filesystem to filesystem blocks.
44208 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
44209 GCC warning is silenced.
44210
15643b71 442112006-01-03 Marco Gerards <marco@gnu.org>
44212
44213 * partmap/apple.c (apple_partition_map_iterate): Convert the data
44214 read from disk from big endian to host byte order.
44215
00905879 442162006-01-03 Hollis Blanchard <hollis@penguinppc.org>
44217
44218 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
44219 documentation.
44220 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
44221 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
44222 embedded HFS+ filesystem.
44223 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
44224 (grub_hfs_sblock): Move from here...
44225 * include/grub/hfs.h: To here... New file.
44226 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
44227 documentation.
44228 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
44229 New macros.
44230 (grub_hfsplus_volheader): Change type of member `magic' to
44231 `grub_uint16_t'.
44232 (grub_hfsplus_data): Add new member `embedded_offset'.
44233 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
44234 returned block.
44235 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
44236 Calculate the offset.
44237
8899bc3e 442382005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44239
44240 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
44241 Removed.
44242 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
44243
ae8c0277 442442005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44245
44246 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
44247 ENV->NAME is NULL after allocating ENV->VALUE.
44248
07084456 442492005-12-25 Marco Gerards <marco@gnu.org>
44250
44251 * kern/env.c (grub_env_set): Rewritten the error handling code.
44252
4750f5f1 442532005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44254
44255 * geninit.sh: Made more robust, and more portable.
44256
50214199 442572005-12-25 Marco Gerards <marco@gnu.org>
44258
44259 Add support for Apple HFS+ filesystems.
f19dbdb7 44260
50214199 44261 * fs/hfsplus.c: New file.
44262
44263 * DISTLIST: Added `fs/hfsplus.c'.
44264
44265 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
44266 (hfsplus_mod_SOURCES): New variable.
44267 (hfsplus_mod_CFLAGS): Likewise.
44268 (hfsplus_mod_LDFLAGS): Likewise.
44269 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
44270 (grub_setup_SOURCES): Likewise.
44271 (grub_mkdevicemap_SOURCES): Likewise.
44272 (grub_emu_SOURCES): Likewise.
44273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44274
44275 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
44276
44277 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
44278
befaed6c 442792005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44280
44281 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
44282 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
44283 include/grub/parser.h, include/grub/script.h, kern/parser.c,
44284 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
44285 normal/lexer.c, normal/parser.y, normal/script.c, and
44286 partmap/gpt.c.
44287 Removed kern/sparc64/cache.c.
44288
44289 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
44290 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
44291 grub_emu_init.c.
44292
44293 * configure.ac (AC_INIT): Bumped to 1.92.
44294
6a124103 442952005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
44296
44297 * kern/err.c (grub_error_push): Added new function to support error
44298 stacks.
44299 (grub_error_pop): Likewise.
44300 (grub_error_stack_items): New local variable to support error stacks.
44301 (grub_error_stack_pos): Likewise.
44302 (grub_error_stack_assert): Likewise.
44303 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
44304 stack depth.
44305 (grub_print_error): Added support to print errors from error stack.
44306
44307 * include/grub/err.h (grub_error_push): Added function prototype.
44308 (grub_error_pop): Likewise.
44309
be973c1b 443102005-12-09 Hollis Blanchard <hollis@penguinppc.org>
44311
44312 * configure.ac: Accept `powerpc64' as host_cpu.
44313 (amd64): Rename to `biarch32'.
44314
44315 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
44316 non-cacheline-aligned addresses.
44317
44318 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
44319 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44320 if `size' is non-zero.
44321
b04216ab 443222005-12-03 Marco Gerards <mgerards@xs4all.nl>
44323
44324 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44325 and `cd' to make sure the filename is not prefixed with a
44326 directory name.
44327 (pkgdata_MODULES): Add `gpt.mod'.
44328 (gpt_mod_SOURCES): New variable.
44329 (gpt_mod_CFLAGS): Likewise.
44330 (gpt_mod_LDFLAGS): Likewise.
44331
44332 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44333
44334 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44335 New macro.
44336
44337 * partmap/gpt.c: New file.
44338
44339 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44340 GPT partition map is detected.
44341
41730ed9 443422005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44343
44344 * commands/i386/pc/play.c: New file.
44345 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44346 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44347 macros.
f19dbdb7 44348
95dc3643 443492005-11-27 Marco Gerards <mgerards@xs4all.nl>
44350
44351 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44352 ((unused))' to silence gcc warning.
44353
1569ec51 443542005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44355
44356 * configure.ac: Correct `AC_PROG_YACC' test.
44357
9abde152 443582005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44359
44360 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44361 check before installing files.
44362
44b83271 443632005-11-22 Mike Small <smallm@panix.com>
44364
44365 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44366 number regex so multidigit numbers are recognized correctly.
44367
443682005-11-22 Mike Small <smallm@panix.com>
44369
44370 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44371 debugging message before attempting to claim memory.
44372 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44373 multiple addresses in case of failure.
44374
9c12956b 443752005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44376
44377 * term/tparm.c (get_space): Remove empty `if' statement.
44378
44379 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44380
44381 * kern/parser.c (check_varstate): Rename `state' to 's'.
44382
aeaf81d9 443832005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44384
44385 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44386 variable definitions to the beginning of each function. Sort stack
44387 variables by size.
44388 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44389 `buf' argument to `char *'.
44390
79bbb63f 443912005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44392
44393 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44394 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44395 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 44396 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44397 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44398 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44399 configfile.mod, search.mod, gzio.mod and test.mod.
44400 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44401 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44402 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44403 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44404 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44405 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44406 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44407 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44408 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44409 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44410 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44411 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44412 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44413 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44414 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44415 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44416 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44417 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44418 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44419 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44420 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44421 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44422 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44423
44424 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44425 `grep --include'.
44426 (pkgdata_MODULES): Add test.mod.
44427
233b1628 444282005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44429
44430 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44431 appending to variables with "+=".
44432 (PModule): Use full pathname to generate *.lst filenames.
44433
44434 * Makefile.in: Fixed list rules moved from genmk.rb.
44435 (.DELETE_ON_ERROR): New special target.
44436 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44437
44438 * conf/i386-pc.rmk: Include conf/common.mk.
44439 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44440 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 44441 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44442 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44443 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44444 configfile.mod, search.mod, gzio.mod and test.mod.
44445 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44446 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44447 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44448 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44449 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44450 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44451 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44452 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44453 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44454 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44455 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44456 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44457 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44458 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44459 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44460 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44461 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44462 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44463 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44464 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44465 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44466 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44467 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44468 here...
44469 * conf/common.rmk: ... to here. New file.
44470
44471 * conf/common.mk: New file.
44472
16f820c8 444732005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44474
44475 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44476 (grub_script.tab.c): ... here.
44477
44478 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44479 (grub_script.tab.c): ... here.
44480
44481 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44482 (grub_script.tab.c): ... here.
44483
44484 * normal/command.c (grub_command_find): Fixed a memory leak of
44485 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44486
63ba1554 444872005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44488
44489 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44490 "@" which marks the start of a comment on ARM.
44491 (VARIABLE): Likewise.
44492
7f67dc13 444932005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44494
79bbb63f 44495 Add support for Linux/ADFS partition tables.
7f67dc13 44496
44497 * partmap/acorn.c: New file.
44498
44499 * include/grub/acorn_filecore.h: Likewise.
44500
44501 * DISTLIST: Added `partmap/acorn.c' and
44502 `include/grub/acorn_filecore.h'.
f19dbdb7 44503
7f67dc13 44504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44505 `partmap/acorn.c'.
44506 (pkgdata_MODULES): Add `acorn.mod'.
44507 (acorn_mod_SOURCES): New variable.
44508 (acorn_mod_CFLAGS): Likewise.
44509
44510 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44511 `partmap/acorn.c'.
44512 (pkgdata_MODULES): Add `acorn.mod'.
44513 (acorn_mod_SOURCES): New variable.
44514 (acorn_mod_CFLAGS): Likewise.
44515
44516 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44517 (pkgdata_MODULES): Add `acorn.mod'.
44518 (acorn_mod_SOURCES): New variable.
44519 (acorn_mod_CFLAGS): Likewise.
44520 (acorn_mod_LDFLAGS): Likewise.
44521
44522 * include/types.h (grub_disk_addr_t): New typedef.
44523
6d099807 445242005-11-13 Marco Gerards <mgerards@xs4all.nl>
44525
44526 * geninit.sh: New file.
44527
44528 * geninitheader.sh: Likewise.
44529
44530 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44531 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44532 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44533 * commands/configfile.c (grub_configfile_init)
44534 (grub_configfile_fini): Likewise.
44535 * commands/default.c (grub_default_init, grub_default_fini):
44536 Likewise.
44537 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44538 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44539 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44540 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44541 Likewise.
44542 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44543 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44544 Likewise.
44545 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 44546 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 44547 Likewise.
44548 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44549 Likewise.
fe6b695a 44550 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 44551 Likewise.
44552 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44553 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44554 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44555 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44556 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44557 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44558 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44559 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44560 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44561 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44562 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44563 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44564 * partmap/amiga.c (grub_amiga_partition_map_init)
44565 (grub_amiga_partition_map_fini): Likewise.
44566 * partmap/apple.c (grub_apple_partition_map_init)
44567 (grub_apple_partition_map_fini): Likewise.
44568 * partmap/pc.c (grub_pc_partition_map_init)
44569 (grub_pc_partition_map_fini): Likewise.
44570 * partmap/sun.c (grub_sun_partition_map_init,
44571 grub_sun_partition_map_fini): Likewise.
44572 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44573 Likewise.
44574
44575 * util/grub-emu.c: Include <grub_modules_init.h>.
44576 (main): Don't initialize and de-initialize any modules directly,
44577 use `grub_init_all' and `grub_fini_all' instead.
44578
44579 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44580 `grub_vesafb_mod_init'.
44581 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44582 all users.
44583 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44584 `grub_vga_mod_init'. Updated all users.
44585 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 44586
6d099807 44587 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44588 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44589 rules.
44590
44591 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44592 Generate a function to initialize the module in utilities.
44593 Updated all callers.
44594 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44595 initialize the module in utilities. Updated all callers.
44596
9046bcf0 445972005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44598
44599 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44600 escape sequence and a literal ^L to clear the screen.
44601
44602 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44603 when returning from Open Firmware.
44604
d13ea639 446052005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44606
44607 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44608 (grub_ofconsole_height): Likewise.
44609 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44610 manually insert a '\n'.
44611 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44612 `grub_ofconsole_height'. Return early if these are already set.
44613
a8fcf206 446142005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44615
44616 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44617 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44618 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44619 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44620 and `normal/script.c'.
44621 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44622 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44623 (test_mod_SOURCES): New variable.
44624 (test_mod_CFLAGS): Likewise.
44625 (test_mod_LDFLAGS): Likewise.
44626 (pkgdata_MODULES): Add `test.mod'.
44627 (grub_script.tab.c): New rule.
44628 (grub_script.tab.h): Likewise.
44629
b6b32745 446302005-11-07 Marco Gerards <mgerards@xs4all.nl>
44631
44632 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44633 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44634 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44635 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44636 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44637 (test_mod_SOURCES): New variable.
44638 (test_mod_CFLAGS): Likewise.
44639 (pkgdata_MODULES): Add `test.mod'.
44640 (grub_script.tab.c): New rule.
44641 (grub_script.tab.h): Likewise.
44642
daac212a 446432005-11-06 Marco Gerards <mgerards@xs4all.nl>
44644
44645 Add initial scripting support.
44646
44647 * commands/test.c: New file.
44648 * include/grub/script.h: Likewise.
44649 * normal/execute.c: Likewise.
44650 * normal/function.c: Likewise.
44651 * normal/lexer.c: Likewise.
44652 * normal/parser.y: Likewise.
44653 * normal/script.c: Likewise.
44654
44655 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 44656
daac212a 44657 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44658 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44659 `normal/function.c' and `normal/script.c'.
44660 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44661 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 44662 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44663 variables.
daac212a 44664 (pkgdata_MODULES): Add `test.mod'.
44665 (grub_script.tab.c): New rule.
44666 (grub_script.tab.h): Likewise.
44667
44668 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44669
44670 * include/grub/normal.h (grub_test_init): New prototype.
44671 (grub_test_fini): Likewise.
f19dbdb7 44672
daac212a 44673 * normal/command.c: Include <grub/script.h>.
44674 (grub_command_execute): Rewritten.
f19dbdb7 44675
daac212a 44676 * util/grub-emu.c (main): Call `grub_test_init' and
44677 `grub_test_fini'.
44678
77500b2b 446792005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44680
44681 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44682 to 0.
44683 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44684 there are no pending characters.
44685
e45deb9e 446862005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44687
44688 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44689 `grub_strndup' to drop device arguments. Replace unnecessary
44690 `grub_strndup' with `grub_strdup'.
44691
4ce32619 446922005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44693
44694 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44695 `debug' environment variable has been set.
44696
446972005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 44698
4ce32619 44699 * Makefile.in (install-local): Use $(DATA).
44700 (uninstall): Likewise.
44701 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44702 (sbin_UTILITIES): ... to here.
44703 (sbin_SCRIPTS): New variable.
44704 (grub_install_SOURCES): New variable.
44705 * util/powerpc/ieee1275/grub-install.in: New file.
44706 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44707 variable.
44708 (add_segments): Call `grub_util_get_path'.
44709
25fe6f03 447102005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44711
44712 From Timothy Baldwin:
44713 * commands/ls.c (grub_ls_list_files): Close FILE with
44714 grub_file_close.
44715 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44716
04ccf3ec 447172005-10-24 Marco Gerards <mgerards@xs4all.nl>
44718
44719 * include/grub/parser.h: New file.
44720
44721 * kern/parser.c: Likewise.
44722
44723 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44724 (grub_setup_SOURCES): Likewise.
44725 (grub_probefs_SOURCES): Likewise.
44726 (grub_emu_SOURCES): Likewise.
44727 (kernel_img_HEADERS): Add `parser.h'.
44728
44729 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44730 (grub_emu_SOURCES): Add `kern/parser.c'.
44731 (grubof_SOURCES): Likewise.
44732
44733 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44734 (grubof_SOURCES): Add `kern/parser.c'.
44735
44736 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44737
44738 * kern/misc.c (grub_split_cmdline): Removed function.
44739
44740 * kern/rescue.c: Include <grub/parser.h>.
44741 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44742 of `grub_split_cmdline'.
44743
44744 * normal/command.c: Include <grub/parser.h>.
44745 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44746 of `grub_split_cmdline'.
44747
44748 * normal/completion.c: Include <grub/parser.h>.
44749 (cmdline_state): New variable.
44750 (iterate_dir): End the filename with a quote depending on the
44751 command line state.
44752 (get_state): new function.
44753 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44754 split the arguments and determine the current argument. When the
44755 argument string is not quoted, escape all spaces.
44756
6d8f4b0e 447572005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44758
44759 * normal/sparc64/setjmp.S: New file.
44760
15cf03ed 447612005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44762
44763 * include/grub/sparc64/libgcc.h: New file.
44764 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44765 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44766 normal/sparc64/setjmp.c.
44767
03e8661a 447682005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44769
44770 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44771 * kern/sparc64/cache.S: New file.
44772 * kern/sparc64/cache.c: Removed.
44773 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44774 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44775 -mtune=ultrasparc.
44776 (COMMON_LDFLAGS): Add -melf64_sparc.
44777 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44778 (grubof_SOURCES): Use cache.S instead of cache.c.
44779 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44780 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44781 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44782 commented though.
44783 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44784 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44785 (linux_mod_CFLAGS): Commented out.
44786 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44787 out because module isn't built.
44788 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44789 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44790 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44791 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44792 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44793 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44794 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44795 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44796 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44797 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44798 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44799 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44800 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44801 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44802
34eeec8a 448032005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44804
44805 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44806 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44807 longer, because HFS should not be used on PC.
44808
708367a3 448092005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44810
44811 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44812 consistently within the loop.
44813
6fa1251a 448142005-10-15 Marco Gerards <mgerards@xs4all.nl>
44815
44816 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44817 directory can not be read.
44818
4801580b 448192005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44820
44821 * configure.ac (AC_INIT): Increase the version number to 1.91.
44822
44823 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44824 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44825 term/i386/pc/serial.c.
44826
219ad426 448272005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44828
44829 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44830 file size must be permitted.
44831
44832 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44833 between %ah and %al.
44834
688e5699 448352005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44836
44837 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44838 grub_uint64_t.
44839 Call the hook with a NUL-terminated filename.
44840 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44841 grub_cpu_to_be32.
44842
44843 * kern/term.c (cursor_state): New variable.
44844 (grub_term_set_current): Reset the cursor state on a new
44845 terminal.
44846 (grub_setcursor): Rewritten to use CURSOR_STATE.
44847 (grub_getcursor): New function.
44848
44849 * include/grub/term.h (grub_getcursor): New prototype.
44850
44851 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44852 integers on ARM. Reported by Timothy Baldwin
44853 <T.E.Baldwin99@members.leeds.ac.uk>.
44854
bb34586c 448552005-10-11 Marco Gerards <mgerards@xs4all.nl>
44856
44857 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44858 allocated.
44859 (grub_sfs_dir): Likewise.
44860
9a909877 448612005-10-09 Marco Gerards <mgerards@xs4all.nl>
44862
44863 Add support for the SFS filesystem.
44864
44865 * fs/sfs.c: New file.
44866
44867 * DISTLIST: Added `fs/sfs.c'.
44868
44869 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44870 (grub_probefs_SOURCES): Likewise.
44871 (grub_emu_SOURCES): Likewise.
44872 (pkgdata_MODULES): Add `sfs.mod'.
44873 (sfs_mod_SOURCES): New variable.
44874 (sfs_mod_CFLAGS): Likewise.
44875 (sfs_mod_LDFLAGS): Likewise.
44876
44877 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44878 (pkgdata_MODULES): Add `sfs.mod'.
44879 (sfs_mod_SOURCES): New variable.
44880 (sfs_mod_CFLAGS): Likewise.
44881
44882 * util/grub-emu.c (main): Call `grub_sfs_init' and
44883 `grub_sfs_fini'.
44884
44885 * include/grub/fs.h (grub_sfs_init): New prototype.
44886 (grub_sfs_fini): Likewise.
44887
57bdbde3 448882005-10-07 Marco Gerards <mgerards@xs4all.nl>
44889
44890 Add support for the AFFS filesystem.
44891
44892 * fs/affs.c: New file.
44893
44894 * DISTLIST: Added `fs/affs.c'.
44895
44896 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44897 (grub_probefs_SOURCES): Likewise.
44898 (grub_emu_SOURCES): Likewise.
44899 (pkgdata_MODULES): Add `affs.mod'.
44900 (affs_mod_SOURCES): New variable.
44901 (affs_mod_CFLAGS): Likewise.
44902 (affs_mod_LDFLAGS): Likewise.
44903
44904 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44905 (pkgdata_MODULES): Add `affs.mod'.
44906 (affs_mod_SOURCES): New variable.
44907 (affs_mod_CFLAGS): Likewise.
44908
44909 * util/grub-emu.c (main): Call `grub_affs_init' and
44910 `grub_affs_fini'.
44911
44912 * include/grub/fs.h (grub_affs_init): New prototype.
44913 (grub_affs_fini): Likewise.
44914
047b67e0 449152005-10-01 Marco Gerards <mgerards@xs4all.nl>
44916
44917 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44918
59b8208a 449192005-10-01 Marco Gerards <mgerards@xs4all.nl>
44920
44921 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44922 `-m32' to CFLAGS.
44923
44924 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44925 linking.
f19dbdb7 44926
59b8208a 44927 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44928 (COMMON_LDFLAGS): New variable.
44929 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44930 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44931 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44932 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44933 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44934 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44935 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44936 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44937 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44938 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44939 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44940 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44941 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44942 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44943 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44944 variables.
44945 (normal_mod_ASFLAGS): Add `-m32'.
44946
44947 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44948 (grub_host_size_t, grub_host_ssize_t): New types.
44949 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 44950 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 44951 `GRUB_HOST_SIZEOF_VOID_P'.
44952
44953 * include/grub/kernel.h (struct grub_module_header): Type of
44954 member offset changed to `grub_host_off_t'. Type of member size
44955 changed to `grub_host_size_t'.
44956 (struct grub_module_info): Type of member offset changed to
44957 `grub_host_off_t'. Type of member size changed to
44958 `grub_host_size_t'.
44959
b4093103 449602005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44961
44962 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 44963
b4093103 44964 * kern/i386/pc/startup.S (multiboot_header): New label.
44965 (multiboot_entry): Likewise.
44966 (multiboot_trampoline): Likewise.
44967
44968 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44969 Increased to 0x4A0.
44970
44971 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44972 put parentheses after a question mark.
44973 [!GRUB_UTIL] (my_mod): New variable.
44974
44975 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44976
b2499b29 449772005-09-28 Marco Gerards <mgerards@xs4all.nl>
44978
44979 Adds support for the XFS filesystem. Btrees are not supported
44980 yet.
44981
44982 * fs/xfs.c: New file.
44983
44984 * DISTLIST: Added `fs/xfs.c'.
44985
44986 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44987 (grub_probefs_SOURCES): Likewise.
44988 (grub_emu_SOURCES): Likewise.
44989 (pkgdata_MODULES): Add `xfs.mod'.
44990 (xfs_mod_SOURCES): New variable.
44991 (xfs_mod_CFLAGS): Likewise.
44992
44993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44994 (pkgdata_MODULES): Add `xfs.mod'.
44995 (xfs_mod_SOURCES): New variable.
44996 (xfs_mod_CFLAGS): Likewise.
44997
44998 * util/grub-emu.c (main): Call `grub_xfs_init' and
44999 `grub_xfs_fini'.
45000
45001 * include/grub/fs.h (grub_xfs_init): New prototype.
45002 (grub_xfs_fini): Likewise.
45003
f19dbdb7 45004
83d37a62 450052005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
45006
45007 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
45008 color modes, allow greater than 16 colors to be configured as
45009 a default palette.
45010
47d2d65e 450112005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
45012
45013 * normal/completion.c (complete_arguments): Add the qualifier
45014 const into OPTIONS.
45015
45016 From Omniflux <omniflux+lists@omniflux.com>:
45017 * include/grub/terminfo.h: New file.
45018 * include/grub/tparm.h: Likewise.
45019 * include/grub/i386/pc/serial.h: Likewise.
45020 * term/terminfo.c: Likewise.
45021 * term/tparm.c: Likewise.
45022 * term/i386/pc/serial.c: Likewise.
45023 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
45024 serial.mod.
45025 (terminfo_mod_SOURCES): New variable.
45026 (terminfo_mod_CFLAGS): Likewise.
45027 (serial_mod_SOURCES): Likewise.
45028 (serial_mod_CFLAGS): Likewise.
45029
48b671ff 450302005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
45031
45032 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
45033 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
45034 and kern/powerpc/ieee1275/cmain.c, respectively.
45035
45036 * boot/powerpc/ieee1275/crt0.S: Moved to ...
45037 * kern/powerpc/ieee1275/crt0.S: ... here.
45038
45039 * boot/powerpc/ieee1275/cmain.c: Moved to ...
45040 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 45041
48b671ff 45042 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
45043 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
45044 instead of boot/powerpc/ieee1275/crt0.S and
45045 boot/powerpc/ieee1275/cmain.c, respectively.
45046
45047 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
45048 sectors. It was not used anyway.
45049
09fc77a7 450502005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45051
45052 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
45053 `unused parameter' warning.
45054
003789c7 450552005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45056
45057 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
45058 function.
45059 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
45060 getcharwidth.
45061
67f44c86 450622005-08-28 Marco Gerards <metgerards@student.han.nl>
45063
45064 * include/grub/normal.h (enum grub_completion_type): Added
45065 `GRUB_COMPLETION_TYPE_ARGUMENT'.
45066
45067 * normal/cmdline.c (print_completion): Handle
45068 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
45069 * normal/menu_entry.c (store_completion): Likewise.
45070
45071 * normal/completion.c (complete_arguments): New function.
45072 (grub_normal_do_completion): Call `complete_arguments' when the
45073 current words start with a dash.
45074
0b5abe02 450752005-08-27 Marco Gerards <metgerards@student.han.nl>
45076
45077 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
45078 `gzio.mod' instead of `io.mod').
45079
d9864ee1 450802005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
45081
45082 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
45083 (DISTDIRS): Added io and video.
45084 Rewrite the search routine to make an output consistently.
45085
45086 * DISTLIST: Added conf/sparc64-ieee1275.mk,
45087 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
45088 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
45089 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
45090 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
45091 util/powerpc/ieee1275/misc.c.
f19dbdb7 45092
d9864ee1 45093 * include/grub/gzio.h: New file.
45094 * io/gzio.c: Likewise.
f19dbdb7 45095
d9864ee1 45096 * kern/file.c (grub_file_close): Call grub_device_close only if
45097 FILE->DEVICE is not NULL.
45098
45099 * include/grub/mm.h [!NULL] (NULL): New macro.
45100
45101 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
45102
45103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
45104 (pkgdata_MODULES): Added gzio.mod.
45105 (gzio_mod_SOURCES): New variable.
45106 (gzio_mod_CFLAGS): Likewise.
45107
45108 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
45109 (pkgdata_MODULES): Added gzio.mod.
45110 (gzio_mod_SOURCES): New variable.
45111 (gzio_mod_CFLAGS): Likewise.
45112
45113 * commands/cat.c: Include grub/gzio.h.
45114 (grub_cmd_cat): Use grub_gzfile_open instead of
45115 grub_file_open.
f19dbdb7 45116
d9864ee1 45117 * commands/cmp.c: Include grub/gzio.h.
45118 (grub_cmd_cmp): Use grub_gzfile_open instead of
45119 grub_file_open.
45120
45121 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
45122 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
45123 grub_file_open.
45124 (grub_rescue_cmd_module): Likewise.
45125
fa46f4b5 451262005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45127
45128 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
45129 kern/sparc64/ieee1275/init.c because it contains _start.
45130 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
45131
e9211b5d 451322005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45133
45134 * configure.ac: Add support for sparc64 host with ieee1275
45135 firmware.
45136 * configure: Generated from configure.ac.
45137 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
45138 instead of int.
45139 (grub_ofdisk_read): Likewise.
45140 (grub_ofdisk_open): Use %p to print pointer values, and cast the
45141 pointers as (void *) to remove a warning.
45142 (grub_ofdisk_close): Likewise.
45143 (grub_ofdisk_read): Likewise.
45144 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
45145 returns, so make it return void to remove a warning.
45146 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
45147 Corresponding prototype change.
45148 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
45149 values, and cast the pointers as (void *) to remove a warning.
45150 (grub_mm_dump): Likewise.
45151 * conf/sparc64-ieee1275.mk: New file.
45152 * conf/sparc64-ieee1275.rmk: Likewise.
45153 * include/grub/sparc64/setjmp.h: Likewise.
45154 * include/grub/sparc64/types.h: Likewise.
45155 * include/grub/sparc64/ieee1275/console.h: Likewise.
45156 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
45157 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
45158 * include/grub/sparc64/ieee1275/time.h: Likewise.
45159 * kern/sparc64/cache.c: Likewise.
45160 * kern/sparc64/dl.c: Likewise.
45161 * kern/sparc64/ieee1275/init.c: Likewise.
45162 * kern/sparc64/ieee1275/openfw.c: Likewise.
45163
385c6a92 451642005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
45165
45166 * util/console.c (grub_ncurses_putchar): If C is greater than
45167 0x7f, set C to a question mark.
45168 (grub_ncurses_getcharwidth): New function.
45169 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
45170 getcharwidth.
45171
45172 * normal/menu.c (print_entry): Made aware of Unicode. First,
45173 convert TITLE to UCS-4, and predict the cursor position by
45174 grub_getcharwidth.
45175
45176 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
45177 const to SRC.
45178 * kern/misc.c (grub_utf16_to_utf8): Likewise.
45179
16ccb8b1 451802005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45181
45182 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
45183 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
45184 grub_strcat.
45185
45186 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
45187 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
45188 grub_strcpy and grub_strlen. Take it into account that a space
45189 character is inserted as a delimiter.
45190
6a85ce79 451912005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45192
45193 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 45194 invalid magic in the error.
6a85ce79 45195
45196 * commands/search.c: New file.
f19dbdb7 45197
6a85ce79 45198 * util/grub-emu.c (main): Call grub_search_init and
45199 grub_search_fini.
45200
45201 * kern/rescue.c (grub_rescue_print_disks): Removed.
45202 (grub_rescue_print_devices): New function.
45203 (grub_rescue_cmd_ls): Use grub_device_iterate with
45204 grub_rescue_print_devices instead of grub_disk_dev_iterate with
45205 grub_rescue_print_disks.
45206
45207 * kern/partition.c (grub_partition_iterate): Return the result of
45208 PARTMAP->ITERATE instead of GRUB_ERRNO.
45209
45210 * kern/device.c: Include grub/partition.h.
45211 (grub_device_iterate): New function.
45212
45213 * include/grub/partition.h (grub_partition_iterate): Return int
45214 instead of grub_err_t.
45215
45216 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
45217 prototype.
45218 [GRUB_UTIL] (grub_search_fini): Likewise.
45219
45220 * include/grub/device.h (grub_device_iterate): New prototype.
45221
45222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45223 commands/search.c.
45224 (pkgdata_MODULES): Added search.mod.
45225 (search_mod_SOURCES): New variable.
45226 (search_mod_CFLAGS): Likewise.
45227
45228 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
45229 (pkgdata_MODULES): Added search.mod.
45230 (search_mod_SOURCES): New variable.
45231 (search_mod_CFLAGS): Likewise.
45232
45233 * commands/ls.c (grub_ls_list_disks): Renamed to ...
45234 (grub_ls_list_devices): ... this, and use grub_device_iterate.
45235 All callers changed.
45236
45237 * DISTLIST: Added commands/search.c.
45238
ef095434 452392005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45240
45241 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
45242 conversion.
45243 (grub_getcharwidth): New function.
45244
45245 * kern/misc.c (grub_utf8_to_ucs4): New function.
45246
45247 * include/grub/term.h (struct grub_term): Added a new member
45248 "getcharwidth".
45249 (grub_getcharwidth): New prototype.
45250
45251 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
45252
45253 * term/i386/pc/console.c (map_char): New function. Segregated from
45254 grub_console_putchar.
45255 (grub_console_putchar): Use map_char.
45256 (grub_console_getcharwidth): New function.
45257 (grub_console_term): Specified grub_console_getcharwidth as
45258 getcharwidth.
45259
45260 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
45261 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
45262
45263 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
45264 GRUB_ERRNO.
45265 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
45266 on grub_strtoul completely.
45267 (write_char): Declare local variables in the beginning of the
45268 function.
45269 (grub_vesafb_getcharwidth): New function.
45270 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
45271 getcharwidth.
45272
1f0a95e4 452732005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
45274
45275 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
45276 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
45277 commands/i386/pc/vbetest.c.
45278
45279 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
45280 call grub_vbe_get_controller_info again, because the returned
45281 information is volatile.
45282 (grub_vbe_set_video_mode): Mostly rewritten.
45283 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
45284 grub_vbe_status_t correctly.
45285 (grub_vbe_get_video_mode_info): Likewise.
45286 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
45287 several if statements.
45288
45289 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
45290 * commands/i386/pc/vbeinfo.c: ... this.
45291
45292 * commands/i386/pc/vbe_test.c: Renamed to ...
45293 * commands/i386/pc/vbetest.c: ... this.
45294
45295 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
45296 ...
45297 (grub_cmd_vbeinfo): ... this. Save video modes before
45298 iterating. Skip a video mode, if it is not available, not enough
45299 information is given or it is monochrome. Show the memory
45300 model. Leave the interpretation of MODEVAR to grub_strtoul
45301 completely.
45302 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
45303 (GRUB_MOD_FINI): Likewise.
45304
45305 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
45306 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
45307 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
45308 duplicated grub_env_get. Leave the interpretation of MODEVAR to
45309 grub_strtoul completely.
45310 (real2pm): Removed.
45311 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
45312 (GRUB_MOD_FINI): Likewise.
45313
45314 * normal/misc.c: Include grub/mm.h.
45315
45316 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
45317 vbe_list_modes with vbetest.mod and vbeinfo.mod.
45318 (vbe_list_modes_mod_SOURCES): Removed.
45319 (vbe_list_modes_mod_CFLAGS): Likewise.
45320 (vbe_test_mod_SOURCES): Likewise.
45321 (vbe_test_mod_CFLAGS): Likewise.
45322 (vbeinfo_mod_SOURCES): New variable.
45323 (vbeinfo_mod_CFLAGS): Likewise.
45324 (vbetest_mod_SOURCES): Likewise.
45325 (vbetest_mod_CFLAGS): Likewise.
45326
992ffbbe 453272005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45328
45329 * normal/misc.c: New file.
45330
45331 * DISTLIST: Added normal/misc.c.
f19dbdb7 45332
992ffbbe 45333 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45334 DISK to HOOK. Call HOOK with DISK.
45335 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45336 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45337 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45338
45339 * normal/menu_entry.c (struct screen): Added a new member
45340 "completion_shown".
45341 (completion_buffer): New global variable.
45342 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45343 (store_completion): New function.
45344 (complete): Likewise.
45345 (clear_completions): Likewise.
45346 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45347 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45348 a tab, call complete.
45349
45350 * normal/completion.c (disk_dev): Removed.
45351 (print_simple_completion): Likewise.
45352 (print_partition_completion): Likewise.
45353 (print_func): New global variable.
45354 (add_completion): Do not take the arguments WHAT or PRINT any
45355 longer. Added a new argument TYPE. Instead of printing directly,
45356 call PRINT_FUNC if not NULL.
45357 All callers changed.
45358 (complete_device): Use a local variable DEV instead of
45359 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45360 (grub_normal_do_completion): Take a new argument HOOK. Do not
45361 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45362 empty string, return NULL instead.
45363 All callers changed.
45364
45365 * normal/cmdline.c (print_completion): New function.
45366
45367 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45368 to HOOK.
45369 All callers changed.
45370
45371 * kern/disk.c (grub_print_partinfo): Removed.
45372
45373 * include/grub/partition.h (struct grub_partition_map): Add a new
45374 argument DISK into HOOK of ITERATE.
45375 (grub_partition_iterate): Add a new argument DISK to HOOK.
45376
45377 * include/grub/normal.h (enum grub_completion_type): New enum.
45378 (grub_completion_type_t): New type.
45379 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45380 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45381 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45382 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45383 (grub_normal_do_completion): Added a new argument HOOK.
45384 (grub_normal_print_device_info): New prototype.
45385
45386 * include/grub/disk.h (grub_print_partinfo): Removed.
45387
45388 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45389 (normal_mod_SOURCES): Likewise.
45390 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45391 (normal_mod_SOURCES): Likewise.
45392
45393 * commands/ls.c (grub_ls_list_disks): Use
45394 grub_normal_print_device_info instead of grub_print_partinfo. Free
45395 PNAME.
45396 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45397 duplicating the code.
45398
0bd41162 453992005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45400
45401 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 45402 follow GCS more precisely.
45403 * commands/i386/pc/vbe_test.c: Likewise.
45404 * include/grub/i386/pc/vbe.h: Likewise.
45405 * term/i386/pc/vesafb.c: Likewise.
45406 * video/i386/pc/vbe.c: Likewise.
0bd41162 45407
6323696a 454082005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45409
45410 * DISTLIST: Added term/i386/pc/vesafb.c
45411 DISTLIST: Added video/i386/pc/vbe.c
45412 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45413 DISTLIST: Added commands/i386/pc/vbe_test.c.
45414 * commands/i386/pc/vbe_list_modes.c: New file.
45415 * commands/i386/pc/vbe_test.c: Likewise.
45416 * term/i386/pc/vesafb.c: Likewise.
45417 * video/i386/pc/vbe.c: Likewise.
45418 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45419 (grub_vbe_probe) Added prototype.
45420 (grub_vbe_set_video_mode) Likewise.
45421 (grub_vbe_get_video_mode) Likewise.
45422 (grub_vbe_get_video_mode_info) Likewise.
45423 (grub_vbe_set_pixel_rgb) Likewise.
45424 (grub_vbe_set_pixel_index) Likewise.
45425 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45426 (pkgdata_MODULES): Added vesafb.mod.
45427 (pkgdata_MODULES): Added vbe_list_modes.mod.
45428 (pkgdata_MODULES): Added vbe_test.mod.
45429 (vbe_mod_SOURCES): Added.
45430 (vbe_mod_CFLAGS): Likewise.
45431 (vesafb_mod_SOURCES): Likewise.
45432 (vesafb_mod_CFLAGS): Likewise.
45433 (vbe_list_modes_mod_SOURCES): Likewise.
45434 (vbe_list_modes_mod_CFLAGS): Likewise.
45435 (vbe_test_mod_SOURCES): Likewise.
45436 (vbe_test_mod_CFLAGS): Likewise.
45437
0a74e62f 454382005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45439
0a74e62f 45440 * normal/command.c (grub_command_execute): If INTERACTIVE is
45441 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45442 CMDLINE. Disable the pager if INTERACTIVE is true.
45443 All callers are changed.
45444
45445 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45446 before reading a config file.
45447 * normal/main.c (read_config_file): Even if a command is not
45448 found, register it if it is within an entry.
45449
45450 * util/grub-emu.c: Include sys/types.h and unistd.h.
45451 (options): Added --hold.
45452 (struct arguments): Added a new member "hold".
45453 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45454 missing.
45455 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45456 cleared by a debugger, if it is not zero.
45457
45458 * include/grub/normal.h (grub_command_execute): Add an argument
45459 INTERACTIVE.
45460
e51f85ae 454612005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45462
45463 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45464
e9c6f39b 454652005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45466
45467 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45468 program with another one, because the old one didn't detect a bug
45469 in gcc-3.4. Always use regparm 2, because the new test is still
45470 not enough for gcc-4.0. Someone must investigate a simple test
45471 case which detects a bug in gcc-4.0.
45472
8de3495c 454732005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45474
45475 * DISTLIST: Added normal/completion.c.
45476
45477 * normal/completion.c: New file.
f19dbdb7 45478
8de3495c 45479 * term/i386/pc/console.c (grub_console_getwh): New function.
45480 (grub_console_term): Assign grub_console_getwh to getwh.
45481
45482 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45483 function is defined in normal/completion.c as
45484 grub_normal_do_completion.
45485 (grub_cmdline_get): Use grub_normal_do_completion instead of
45486 grub_tab_complete.
45487
45488 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45489 returns non-zero, otherwise return 0.
45490 (grub_partition_iterate): First, probe the partition map. Then,
45491 call ITERATE only for this partition map.
45492
45493 * kern/misc.c (grub_strncmp): Rewritten.
45494
45495 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45496 returns non-zero. Otherwise return 0.
45497
45498 * include/grub/partition.h (grub_partition_map_iterate): Return
45499 int instead of void.
45500
45501 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45502
45503 * include/grub/misc.h (grub_strncmp): Change the type of N to
45504 grub_size_t.
45505
45506 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45507 of void.
45508
45509 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 45510 unsigned explicitly before comparing it with I.
8de3495c 45511
45512 * kern/main.c (grub_env_write_root): Add the attribute unused into
45513 VAR.
45514
45515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45516 normal/completion.c.
45517 (normal_mod_SOURCES): Likewise.
45518 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45519 (normal_mod_SOURCES): Likewise.
45520
45521 * normal/command.c (grub_iterate_commands): If ITERATE returns
45522 non-zero, return one immediately.
45523
e85e144b 455242005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45525
45526 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45527 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45528 descriptions.
45529 (grub_vbe_get_controller_info): New function.
45530 (grub_vbe_get_mode_info): Likewise.
45531 (grub_vbe_set_mode): Likewise.
45532 (grub_vbe_get_mode): Likewise.
45533 (grub_vbe_set_memory_window): Likewise.
45534 (grub_vbe_get_memory_window): Likewise.
45535 (grub_vbe_set_scanline_length): Likewise.
45536 (grub_vbe_get_scanline_length): Likewise.
45537 (grub_vbe_set_display_start): Likewise.
45538 (grub_vbe_get_display_start): Likewise.
45539 (grub_vbe_set_palette_data): Likewise.
45540 * include/grub/i386/pc/vbe.h: New file.
45541
c46153d2 455422005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45543
45544 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45545 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45546 * DISTLIST: Likewise.
45547 * kern/ieee1275/of.c: Moved to ...
45548 * kern/ieee1275/ieee1275.c: ... here.
45549
0cb90c45 455502005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45551
45552 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45553 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45554 Pass 0 as `end' parameter to grub_strtoul().
45555
a19fb360 455562005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45557
45558 * include/grub/powerpc/ieee1275/console.h: Do not include
45559 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45560 ifdef.
45561 (grub_console_cur_color): Remove i386-specific prototype.
45562 (grub_console_real_putchar): Likewise.
45563 (grub_console_checkkey): Likewise.
45564 (grub_console_getkey): Likewise.
45565 (grub_console_getxy): Likewise.
45566 (grub_console_gotoxy): Likewise.
45567 (grub_console_cls): Likewise.
45568 (grub_console_setcursor): Likewise.
45569 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45570 Include <grub/machine/console.h>.
45571 * term/ieee1275/ofconsole.c: Likewise.
45572
4ac9bd04 455732005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45574
45575 * Makefile.in (LIBLZO): New variable.
45576
45577 * configure.ac: Check for LZO version 2.
45578
45579 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45580 lzo/lzo1x.h instead of lzo1x.h.
45581
45582 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45583 of -llzo.
45584
45585 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45586 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45587
45588 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45589 copying the data from PARTITION to P.
45590
f4917dfd 455912005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45592
45593 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45594 negative, unload the module.
45595
45596 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45597 map is "pc_partition_map" but not "pc".
45598 (usage): Fix the description. The options are --boot-image and
45599 --core-image but not --boot-file or --core-file.
45600 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45601 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45602 DEFAULT_DIRECTORY.
45603
45604 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45605 --core-file. Specify INSTALL_DEVICE as an argument.
45606
45607 * util/console.c: Include config.h.
45608 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45609 [HAVE_NCURSES_H]: Include ncurses.h.
45610 [HAVE_CURSES_H]: Include curses.h.
45611 [!A_NORMAL] (A_NORMAL): Defined as zero.
45612 [!A_STANDOUT] (A_STANDOUT): Likewise.
45613
45614 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45615 -lncurses.
45616 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45617
45618 * configure.ac: Check for curses libraries and headers.
45619
45620 * Makefile.in (LIBCURSES): New variable.
45621
45622 * genmk.rb (Script::rule): Set the executable bits.
45623
45624 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45625 name of the PC partition map is "pc_partition_map" but not "pc".
45626
0e143073 456272005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45628
45629 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45630 (modules): Likewise.
45631 (usage): Added descriptions for --modules and --grub-probefs.
45632 Handle --modules and --grub-probefs. Save the arguments in MODULES
45633 and GRUB_PROBEFS, respectively.
45634 Auto-detect a filesystem module against GRUBDIR. If the result is
45635 empty and modules are not specified explicitly, abort the
45636 installation. Add the result to MODULES.
45637
45638 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45639 disk/powerpc/ieee1275/ofdisk.c,
45640 include/grub/powerpc/ieee1275/init.h and
45641 term/powerpc/ieee1275/ofconsole.c.
45642 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45643 term/ieee1275/ofconsole.c.
45644
45645 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45646
45647 * COPYING: Upgraded to the latest version. Only the address of the
45648 FSF office has changed.
f19dbdb7 45649
efd6e6d5 456502005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45651
45652 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45653 kern/ieee1275.c with kern/ieee1275/of.c.
45654
45655 * kern/ieee1275.c: Moved to ...
45656 * kern/ieee1275/of.c: ... here.
45657
8ceafda2 456582005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45659
45660 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 45661 readability.
8ceafda2 45662
45663 * config.guess: Updated to the latest version from gnulib.
45664 * config.sub: Likewise.
45665 * install.sh: Likewise.
45666 * mkinstalldirs: Likewise.
45667
45668 * include/grub/console.h: Removed. This file is arch-specific. Do
45669 not put this in include/grub.
45670
45671 * include/grub/i386/pc/console.h: Resurrected.
45672
45673 * util/console.c: Include grub/machine/console.h instead of
45674 grub/console.h.
45675 * util/grub-emu.c: Likewise.
45676
267f6cd9 456772005-08-04 Marco Gerards <metgerards@student.han.nl>
45678
45679 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45680 hardcoded value.
f19dbdb7 45681
267f6cd9 45682 From Vincent Pelletier <subdino2004@yahoo.fr>
45683 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45684 Redefined to use grub_getwh.
45685 (grub_term): New member named getwh.
45686 (grub_getwh): New prototype.
45687 * kern/term.c (grub_getwh): New function.
45688 * term/i386/pc/console.c (grub_console_getwh): New function.
45689 (grub_console_term): New member `getwh'.
45690 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45691 (grub_vga_term): New member `getwh'.
0b5abe02 45692 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 45693 grub_ssize_t.
45694 (grub_ofconsole_getw): New function.
45695 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45696 (grub_ofconsole_term): New field named getwh and new initial
45697 value.
45698
3be7266d 456992005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45700
45701 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45702 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45703 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45704 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45705 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45706 of <grub/machine/ieee1275.h>.
45707 * commands/ieee1275/reboot.c: Likewise.
45708 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45709 * kern/ieee1275.c: ... to here. All users updated. Change all
45710 parameter structs to use new type `grub_ieee1275_cell_t'.
45711 * term/powerpc/ieee1275/ofconsole.c: Move ...
45712 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45713 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45714 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45715 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45716 to return int.
45717 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45718 Remove unused prototypes. All users updated.
45719 * include/grub/powerpc/ieee1275/console.h: Removed.
45720 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45721 `grub_ieee1275_cell_t'.
45722 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45723 Cast comparisons with -1 to the correct type.
45724 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45725 type to match `grub_ieee1275_entry_fn'.
45726
8b5f3938 457272005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45728
45729 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45730
45731 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45732 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45733 partmap/sun.c.
45734 (grub_probefs_SOURCES): New variable.
45735
45736 * util/i386/pc/grub-probefs.c: New file.
45737
45738 * util/i386/pc/grub-setup.c (main): Call
45739 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45740 grub_hfs_init and grub_jfs_init to initialize the system. Call
45741 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45742 grub_pc_partition_map_fini to finish the system.
45743
ea409713 457442005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45745
45746 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45747 function.
45748 (grub_multiboot_load_elf32): Likewise.
45749 (grub_multiboot_is_elf64): Likewise.
45750 (grub_multiboot_load_elf64): Likewise.
45751 (grub_multiboot_load_elf): Likewise.
45752 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45753 an ELF32 or ELF64 file.
45754 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45755
45756 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45757 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45758 NULL before calling FS->LABEL.
45759 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45760 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45761 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45762 before calling FS->LABEL.
45763
141a288b 457642005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45765
45766 * util/i386/pc/grub-install.in (datadir): New variable.
45767 (libdir): Removed.
45768 (pkgdatadir): New variable.
45769 (pkglibdir): Removed.
45770
0d5f8a54 457712005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45772
45773 * DISTLIST: Added util/i386/pc/grub-install.in.
45774
45775 * util/i386/pc/grub-install.in: New file.
45776
45777 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45778 (grub_install_SOURCES): Likewise.
45779
45780 * genmk.rb: Added support for scripts.
45781 (Script): New class.
45782 (scripts): New variable.
45783
45784 * Makefile.in (install-local): Install sbin_SCRIPTS by
45785 INSTALL_SCRIPT.
45786 (uninstall): Remove sbin_SCRIPTS.
45787
45788 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45789 device, try to get a GRUB device by
45790 grub_util_biosdisk_get_grub_dev.
45791 Free DEST_DEV.
45792
45793 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45794 description for --device-map.
45795
5f968e1e 457962005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45797
45798 Change the semantics of variable hooks. They now return strings
45799 instead of error values.
f19dbdb7 45800
5f968e1e 45801 * util/i386/pc/grub-setup.c: Include grub/env.h.
45802 (setup): Use grub_device_set_root instead of grub_env_set.
45803
45804 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45805 grub_env_get instead of grub_device_set_root and
45806 grub_device_get_root, respectively.
45807
45808 * kern/main.c (grub_env_write_root): New function.
45809 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45810 grub_env_set instead of grub_device_set_root.
45811
45812 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45813 many variables.
45814 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45815 rather than calling ENV->WRITE_HOOK afterwards.
45816 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45817 passing a pointer of a pointer.
45818 (grub_register_variable_hook): Change the types of "read_hook" and
45819 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45820 respectively.
45821 Allocate the default empty string on the heap, because this string
45822 may be freed later.
45823
45824 * kern/device.c: Include grub/env.h.
45825 (grub_device_set_root): Removed.
45826 (grub_device_get_root): Likewise.
45827 (grub_device_open): Use grub_env_get instead of
45828 grub_device_get_root.
45829
45830 * include/grub/env.h (grub_env_read_hook_t): New type.
45831 (grub_env_write_hook_t): Likewise.
45832 (grub_env_var): Change the types of "read_hook" and "write_hook"
45833 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45834 (grub_register_variable_hook): Likewise.
45835
45836 * include/grub/device.h (grub_device_set_root): Removed.
45837 (grub_device_set_root): Likewise.
45838
45839 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45840 make sure that DIRNAME terminates with '/', so that
45841 grub_fat_find_dir will fail if PATH is not a directory.
45842
45843 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45844 from DIRNAME.
45845 Use the qualifier auto for print_files and print_files_long.
45846 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45847 as a regular file.
45848 Put a newline only if there is no error.
45849 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45850 used.
45851
896f0afd 458522005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45853
45854 * kern/partition.c (grub_partition_probe): Initialize PART to
45855 NULL. Otherwise, when no partition map is registered, this returns
45856 a garbage.
45857
b28b81b2 458582005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45859
45860 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45861 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45862 valid.
45863
5f3607e0 458642005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45865
45866 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45867 information on each device, if it does not have partitions. Print
45868 "Device" instead of "Disk", because this function is not specific
45869 to disk devices.
45870
45871 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45872 static to ensure that it is put on the memory rather than a
45873 register.
45874
502c87e8 458752005-07-17 Yoshinori Okuji <okuji@enbug.org>
45876
45877 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45878 (grub_cat_init): Likewise.
45879 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45880 (options): Likewise.
45881 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45882 (grub_configfile_init): Likewise.
45883 * font/manager.c (GRUB_MOD_INIT): Likewise.
45884 * commands/help.c (GRUB_MOD_INIT): Likewise.
45885 (grub_help_init): Likewise.
45886 * normal/command.c (grub_command_init): Likewise.
45887 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45888 * disk/loopback.c (grub_loop_init): Likewise.
45889 (GRUB_MOD_INIT): Likewise.
45890 * commands/ls.c (grub_ls_init): Likewise.
45891 (GRUB_MOD_INIT): Likewise.
45892 (options): Likewise.
45893 * commands/boot.c (grub_boot_init): Likewise.
45894 (GRUB_MOD_INIT): Likewise.
45895 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45896 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45897 (GRUB_MOD_INIT): Likewise.
45898 * commands/cmp.c (grub_cmp_init): Likewise.
45899 (GRUB_MOD_INIT): Likewise.
45900
45901 * normal/arg.c: Use <> instead of "" to include header files.
45902 (SHORT_ARG_HELP): New macro.
45903 (SHORT_ARG_USAGE): Likewise.
45904 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45905 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45906 descriptions.
45907 (find_short): Check if C is 'h' or 'u' explicitly.
45908 (grub_arg_show_help): Use space characters instead of tabs. Treat
45909 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45910 are shown with --help and --usage only if they are not used for
45911 the command itself.
45912 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45913 'h' and 'u'.
45914
45915 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45916 const into "longarg". Change the type of "shortarg" to int.
45917
f806d18e 459182005-07-17 Yoshinori Okuji <okuji@enbug.org>
45919
45920 * boot/i386/pc/boot.S (boot_drive_check): New label.
45921
45922 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45923 macro.
45924
45925 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45926 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45927
e293232b 459282005-07-17 Yoshinori Okuji <okuji@enbug.org>
45929
45930 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45931 When turning off Gate A20, skip the check and return immediately,
45932 because this is not fatal usually.
45933
ebedfd00 459342005-07-17 Yoshinori Okuji <okuji@enbug.org>
45935
45936 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45937 be 0x7C00 instead of 0x8000.
45938
45939 * boot/i386/pc/pxeboot.S: Rewritten.
45940
45941 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45942 EXT_C.
45943 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45944 result.
45945
654fc59f 459462005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45947
45948 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45949 robustness. This routine now supports a BIOS call and System
45950 Control Port A to modify the gate A20.
45951
45952 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45953 Increased to 0x440.
45954
09f9923f 459552005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45956
45957 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45958 device path and resulting ihandle.
45959 (grub_ofdisk_close): dprintf the ihandle being closed.
45960 (grub_ofdisk_read): dprintf function parameters.
45961 * kern/mm.c (grub_mm_init_region): Likewise.
45962 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45963 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45964 size, and boot arguments.
45965 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45966 before loading into memory.
45967 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45968 before loading into memory.
45969
7ef504d8 459702005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45971
45972 * kern/mm.c: Added much documentation.
45973 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45974 8, set to 5 instead of 8.
45975
e0f050c2 459762005-07-10 Yoshinori Okuji <okuji@enbug.org>
45977
45978 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45979
45980 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45981 (grub_mkdevicemap_SOURCES): New variable.
45982
45983 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45984 lib/device.c of GRUB Legacy.
45985
7224189a 459862005-07-10 Yoshinori Okuji <okuji@enbug.org>
45987
45988 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45989 instead of PATH is NULL.
45990
68c864eb 459912005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45992
45993 * commands/cmp.c (BUFFER_SIZE): New macro.
45994 (grub_cmd_cmp): Close the right file at the right time. Compare
45995 only data just read. Don't report files of different size as
45996 identical. Dynamically allocate buffers. Move variable
45997 declarations at the beginning of function.
45998
e6f3e614 459992005-07-09 Yoshinori Okuji <okuji@enbug.org>
46000
46001 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
46002 reverse.
46003
f8f1559a 460042004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
46005
46006 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
46007 when backspace is pressed at beginning of line.
46008
39c9d41d 460092005-07-03 Yoshinori Okuji <okuji@enbug.org>
46010
46011 * DISTLIST: Added genfslist.sh.
46012
46013 * normal/main.c (fs_module_list): New variable.
46014 (autoload_fs_module): New function.
46015 (read_fs_list): Likewise.
46016 (grub_normal_execute): Call read_fs_list.
46017
46018 * kern/fs.c (grub_fs_autoload_hook): New variable.
46019 (grub_fs_probe): Added support for auto-loading.
46020
46021 * include/grub/normal.h (struct grub_fs_module_list): New struct.
46022 (grub_fs_module_list_t): New type.
46023
46024 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
46025 (grub_fs_autoload_hook): New prototype.
46026
46027 * genfslist.sh: New file.
f19dbdb7 46028
39c9d41d 46029 * genmk.rb: Added a rule to generate a filesystem list.
46030
121c1d83 460312005-06-30 Marco Gerards <metgerards@student.han.nl>
46032
46033 * configure.ac: Fix the test for cross-compiling.
46034
46035 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
46036 define GRUB_UTIL anymore.
46037
46038 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
46039 so this function works on other systems than just big endian.
46040 (load_modules): Likewise.
46041 (add_segments): Likewise.
46042
e75d76e1 460432005-06-23 Hollis Blanchard <hollis@penguinppc.org>
46044
46045 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
46046 contains `l' modifier, get a long from va_arg().
46047
50b5a0a7 460482005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
46049
46050 * kern/mm.c (grub_free): If the next free block which is being
46051 merged is the first free block, set the first block to the block
46052 being freed.
46053 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
46054
89371b20 460552005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46056
46057 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
46058 `grub_ieee1275_chosen'.
46059
168d6e58 460602005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46061
46062 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
46063 (grub_ieee1275_chosen): New variable.
46064 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
46065 `chosen'.
46066 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
46067 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46068 Rename first argument to `phandle' for consistency.
46069 (grub_ieee1275_get_property_length): Likewise.
46070 (grub_ieee1275_next_property): Likewise. Change type of first argument
46071 to grub_ieee1275_phandle_t.
46072 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
46073 Move export next to declaration.
46074 (grub_ieee1275_chosen): New variable.
46075 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
46076 Correct cosmetic typo.
46077 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
46078 `grub_ieee1275_chosen'.
46079 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
46080 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
46081 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
46082 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
46083 `grub_ieee1275_chosen'.
46084
ca5baa3f 460852005-05-10 Hollis Blanchard <hollis@penguinppc.org>
46086
46087 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
46088 /chosen/bootargs.
46089 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
46090 /chosen/bootargs as "variable=value" pairs.
46091
708b345f 460922005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
46093
46094 * include/grub/misc.h (grub_dprintf): New macro.
46095 (grub_real_dprintf): New prototype.
46096 (grub_strword): Likewise.
46097 (grub_iswordseparator): Likewise.
46098 * kern/misc.c (grub_real_dprintf): New function.
46099 (grub_strword): Likewise.
46100 (grub_iswordseparator): Likewise.
46101
f4c5e67c 461022005-04-30 Hollis Blanchard <hollis@penguinppc.org>
46103
46104 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
46105 (roundup): Remove macro.
46106 (grub_ieee1275_flags): Make static.
46107 (grub_ieee1275_realmode): Remove.
46108 (grub_ieee1275_test_flag): New function.
46109 (grub_ieee1275_set_flag): Likewise.
46110 (find_options): Rename to `grub_ieee1275_find_options'; update
46111 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
46112 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
46113 (cmain): New prototype.
46114 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
46115 `grub_ieee1275_flags' directly.
46116 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
46117 machine/biosdisk.h.
46118 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
46119 Don't include grub/machine/init.h.
46120 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
46121 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46122 Remove prototype.
46123 (grub_ieee1275_realmode): Likewise.
46124 (grub_ieee1275_flag): New enum.
46125 (grub_ieee1275_test_flag): New prototype.
46126 (grub_ieee1275_set_flag): New prototype.
46127 * include/grub/powerpc/ieee1275/init.h: Remove file.
46128 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
46129 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
46130 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
46131 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
46132 comment.
46133 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
46134 `grub_ieee1275_test_flag'.
46135 (grub_ieee1275_encode_devname): Likewise.
46136
ed16607e 461372005-04-21 Hollis Blanchard <hollis@penguinppc.org>
46138
46139 * include/grub/powerpc/ieee1275/ieee1275.h
46140 (grub_ieee1275_encode_devname): New prototype.
46141 (grub_ieee1275_get_filename): Likewise.
46142 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
46143 function.
46144 (grub_set_prefix): Likewise.
46145 (grub_machine_init): Call grub_set_prefix.
46146 * kern/powerpc/ieee1275/openfw.c: Fix typos.
46147 (grub_parse_type): New enum.
46148 (grub_ieee1275_get_devargs): New function.
46149 (grub_ieee1275_get_devname): Likewise.
46150 (grub_ieee1275_parse_args): Likewise.
46151 (grub_ieee1275_get_filename): Likewise.
46152 (grub_ieee1275_encode_devname): Likewise.
46153
be369920 461542005-03-30 Marco Gerards <metgerards@student.han.nl>
46155
46156 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
46157 `grub_loader_unset'.
46158
a5ce3a4a 461592005-03-26 Hollis Blanchard <hollis@penguinppc.org>
46160
46161 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
46162 instead of grub_ieee1275_interpret.
46163 (grub_halt_init): New function.
46164 (grub_halt_fini): Likewise.
46165 (GRUB_MOD_INIT): Correct message grammar.
46166 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
46167 instead of grub_ieee1275_interpret.
46168 (grub_reboot_init): New function.
46169 (grub_reboot_fini): Likewise.
46170 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
46171 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
46172 util/i386/pc/misc.c with commands/ieee1275/halt.c,
46173 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
46174 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
46175 function.
46176 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
46177 Add prototype.
46178 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
46179 prototype.
46180 (grub_halt): Likewise.
46181 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
46182 (cmain): Remove __attribute__((unused)).
46183 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
46184 (grub_heap_len): Likewise.
46185 (grub_machine_fini): New function.
46186 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
46187 (grub_halt): Likewise.
46188 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
46189 function.
46190 * util/powerpc/ieee1275/misc.c: New file.
46191
0058f771 461922005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
46193
46194 * DISTLIST: New file.
46195 * gendistlist.sh: Likewise.
f19dbdb7 46196
0058f771 46197 * Makefile.in (COMMON_DISTFILES): Removed.
46198 (BOOT_DISTFILES): Likewise.
46199 (CONF_DISTFILES): Likewise.
46200 (DISK_DISTFILES): Likewise.
46201 (FS_DISTFILES): Likewise.
46202 (INCLUDE_DISTFILES): Likewise.
46203 (KERN_DISTFILES): Likewise.
46204 (LOADER_DISTFILES): Likewise.
46205 (TERM_DISTFILES): Likewise.
46206 (UTIL_DISTFILES): Likewise.
46207 (DISTFILES): Likewise.
46208 (uninstall): Uninstall files in $(pkgdata_DATA).
46209 (DISTLIST): New target.
46210 (distdir): Use the contents of the file DISTLIST to get a list of
46211 distributed files.
46212
46b3b8a5 462132005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
46214
46215 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
46216 descriptor. This is ported from GRUB Legacy.
46217
46218 * gencmdlist.sh: Added an extra semicolon to make it work with
46219 old sed versions. Reported by Robert Bihlmeyer
46220 <robbe@orcus.priv.at>.
46221
5822ff87 462222005-03-08 Yoshinori Okuji <okuji@enbug.org>
46223
46224 Automatic loading of commands is supported.
f19dbdb7 46225
5822ff87 46226 * normal/main.c (read_command_list): New function.
46227 (grub_normal_execute): Call read_command_list.
46228
46229 * normal/command.c (grub_register_command): Return zero or CMD.
46230 Allocate CMD->NAME from the heap.
46231 Initialize CMD->MODULE_NAME to zero.
46232 Find the same name as well. If the same command is found and it is
46233 a dummy command, overwrite members. If it is not a dummy command,
46234 return zero.
46235 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
46236 (grub_command_find): If a dummy command is found, load a module
46237 and retry to find a command only once.
46238
46239 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
46240 make sure that each command is loaded.
46241
46242 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
46243 macro.
46244 (struct grub_command): Remove const from the member `name'.
46245 Add a new member `module_name'.
46246 (grub_register_command): Return grub_command_t.
46247
46248 * commands/help.c (grub_cmd_help): Call grub_command_find to make
46249 sure that each command is loaded.
46250
46251 * genmk.rb (PModule::rule): Specify a module name without the
46252 suffix ".mod" to gencmdlist.sh.
46253
7b1f4b57 462542005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46255
46256 * gencmdlist.sh: New file.
f19dbdb7 46257
7b1f4b57 46258 * genmk.rb (PModule::rule): Generate a rule for a command list.
46259 Clean command.lst.
46260 Generate command.lst from $(COMMANDFILES).
46261
46262 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
46263 (DATA): Added $(pkgdata_DATA).
46264 (install-local): Install files in $(pkgdata_DATA).
46265
062aaf39 462662005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46267
46268 * term/i386/pc/vga.c (debug_command): Removed.
46269 (GRUB_MOD_INIT): Do not register the command "debug".
46270
46271 From Hollis Blanchard:
46272 * commands/configfile.c: New file.
46273 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46274 commands/configfile.c.
46275 (pkgdata_MODULES): Added configfile.mod.
46276 (configfile_mod_SOURCES): New variable.
46277 (configfile_mod_CFLAGS): Likewise.
46278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46279 commands/configfile.c.
46280 (pkgdata_MODULES): Added configfile.mod.
46281 (configfile_mod_SOURCES): New variable.
46282 (configfile_mod_CFLAGS): Likewise.
46283 * util/grub-emu.c (main): Call grub_configfile_init and
46284 grub_configfile_fini.
46285 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
46286 prototype.
46287 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 46288
cee01aa6 462892005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46290
46291 * normal/arg.c (grub_arg_show_help): Do not show the bug report
46292 address.
46293
46294 * commands/help.c (grub_cmd_help): Do not print newlines after
46295 the last command in print_command_help.
46296
93f3a1d8 462972005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46298
46299 * commands/default.h: New file.
46300 * commands/timeout.h: Likewise.
46301 * normal/context.c: Likewise.
f19dbdb7 46302
93f3a1d8 46303 * util/misc.c: Do not include sys/times.h.
46304 Include sys/time.h and grub/machine/time.h.
46305 (grub_get_rtc): Rewritten with gettimeofday.
46306
46307 * util/grub-emu.c (main): Call grub_default_init and
46308 grub_timeout_init before grub_normal_init, and call
46309 grub_timeout_fini and grub_default_fini after grub_main.
46310
46311 * util/console.c (grub_ncurses_checkkey): Return the read
46312 character or -1.
46313
46314 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
46315 timeouts.
46316
46317 * normal/main.c (read_config_file): Push MENU. If this fails,
46318 print an error and wait for a user input.
46319 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46320 If a menu is empty or an error occurs, pop MENU.
46321 (grub_normal_execute): Pop and free MENU after grub_menu_run
46322 returns.
46323
46324 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46325
46326 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46327 include time.h.
46328 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46329 without GRUB_UTIL.
46330 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46331 time.h.
46332 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46333 without GRUB_UTIL.
46334
46335 * include/grub/normal.h (struct grub_menu_list): New struct.
46336 (grub_menu_list_t): New type.
46337 (struct grub_context): New struct.
46338 (grub_context_t): New type.
46339 (grub_register_command): Got rid of EXPORT_FUNC.
46340 (grub_unregister_command): Likewise.
46341 (grub_context_get): New prototype.
46342 (grub_context_get_current_menu): Likewise.
46343 (grub_context_push_menu): Likewise.
46344 (grub_context_pop_menu): Likewise.
46345 [GRUB_UTIL] (grub_default_init): Likewise.
46346 [GRUB_UTIL] (grub_default_fini): Likewise.
46347 [GRUB_UTIL] (grub_timeout_init): Likewise.
46348 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46349
46350 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46351 commands/timeout.c and normal/context.c.
46352 (pkgdata_MODULES): Added default.mod and timeout.mod.
46353 (normal_mod_SOURCES): Added normal/context.c.
46354 (default_mod_SOURCES): New variable.
46355 (default_mod_CFLAGS): Likewise.
46356 (timeout_mod_SOURCES): Likewise.
46357 (timeout_mod_CFLAGS): Likewise.
46358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46359 conf/i386-pc.rmk.
46360 (pkgdata_MODULES): Added default.mod and timeout.mod.
46361 (normal_mod_SOURCES): Added normal/context.c.
46362 (default_mod_SOURCES): New variable.
46363 (default_mod_CFLAGS): Likewise.
46364 (timeout_mod_SOURCES): Likewise.
46365 (timeout_mod_CFLAGS): Likewise.
46366
46367 * Makefile.in (all-local): Added $(MKFILES).
46368
4ed2e1dd 463692005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46370
46371 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46372 (grub_emu_SOURCES): Likewise.
46373 (pkgdata_MODULES): Add `sun.mod'.
46374 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46376 `partmap/sun.c'.
46377 (pkgdata_MODULES): Add `sun.mod'.
46378 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46379 * include/grub/partition.h (grub_sun_partition_map_init): New
46380 prototype.
46381 (grub_sun_partition_map_fini): Likewise.
46382 * partmap/sun.c: New file.
46383 * util/grub-emu.c (main): Initialize and de-initialize the sun
46384 partitionmap support.
46385
4d4e372e 463862005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46387
46388 This implements an Emacs-like menu entry editor.
f19dbdb7 46389
4d4e372e 46390 * normal/menu_entry.c: New file.
f19dbdb7 46391
4d4e372e 46392 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46393 characters to ASCII.
46394 (saved_char): New variable.
46395 (grub_ncurses_checkkey): Rewritten completely.
46396 (grub_ncurses_getkey): Likewise.
46397 (grub_ncurses_init): Call raw instead of cbreak.
46398
46399 * normal/menu.c (print_entry): Do not put a space.
46400 (init_page): Renamed to ...
46401 (grub_menu_init_page): ... this. All callers changed.
46402 (edit_menu_entry): Removed.
46403 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46404
46405 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46406
46407 * kern/misc.c (grub_vprintf): Call grub_refresh.
46408
46409 * normal/menu.c (DISP_LEFT): Renamed to ...
46410 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46411 * normal/menu.c (DISP_UP): Renamed to ...
46412 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46413 * normal/menu.c (DISP_RIGHT): Renamed to ...
46414 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46415 * normal/menu.c (DISP_DOWN): Renamed to ...
46416 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46417 * normal/menu.c (DISP_HLINE): Renamed to ...
46418 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46419 * normal/menu.c (DISP_VLINE): Renamed to ...
46420 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46421 * normal/menu.c (DISP_UL): Renamed to ...
46422 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46423 * normal/menu.c (DISP_UR): Renamed to ...
46424 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46425 * normal/menu.c (DISP_LL): Renamed to ...
46426 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46427 * normal/menu.c (DISP_LR): Renamed to ...
46428 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46429 * normal/menu.c (TERM_WIDTH): Renamed to ...
46430 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46431 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46432 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46433 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46434 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46435 * normal/menu.c (TERM_MARGIN): Renamed to ...
46436 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46437 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46438 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46439 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46440 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46441 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46442 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46443 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46444 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46445 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46446 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46447 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46448 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46449 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46450 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46451 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46452 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46453 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46454 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46455 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46456 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46457 All callers changed.
46458
46459 * include/grub/normal.h: New prototype.
46460
46461 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46462 normal/menu_entry.c.
46463 (normal_mod_SOURCES): Likewise.
46464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46465 (normal_mod_SOURCES): Likewise.
46466
e6b92c8a 464672005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46468
46469 * include/grub/normal.h (grub_halt_init): New prototype.
46470 (grub_halt_fini): Likewise.
46471 (grub_reboot_init): Likewise.
46472 (grub_reboot_fini): Likewise.
46473
46474 * util/grub-emu.c: Include signal.h.
46475 (main_env): New global variable.
46476 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46477 catch C-c.
46478 (grub_machine_fini): New function.
46479 (main): Call grub_halt_init and grub_reboot_init before
46480 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46481 Call setjmp with MAIN_ENV to go back afterwards.
46482 Call grub_machine_fini right before return.
46483
46484 * include/grub/util/misc.h: Include setjmp.h.
46485 (main_env): New prototype.
46486
46487 * include/grub/kernel.h (grub_machine_fini): New prototype.
46488 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46489 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46490
46491 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46492 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46493 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 46494
e6b92c8a 46495 * util/i386/pc/misc.c: New file.
f19dbdb7 46496
e6b92c8a 46497 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46498 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46499 commands/i386/pc/reboot.c.
46500
c642636f 465012005-02-14 Guillem Jover <guillem@hadrons.org>
46502
46503 * include/grub/dl.h (grub_dl_check_header): New prototype.
46504 (grub_arch_dl_check_header): Change return type to grub_err_t,
46505 remove size parameter and export function. Update all callers.
46506 * kern/dl.c (grub_dl_check_header): New function.
46507 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46508 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46509 are inside the core.
46510 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46511 independent ELF header checks.
46512 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46513 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46514 `grub_dl_check_header' instead of explicit checks. Check for the
46515 ELF type.
46516 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46517 `grub_dl_check_header' instead of explicit checks. Remove arch
46518 specific ELF header checks.
46519
e6b92c8a 46520 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46521 argument SIZE.
46522
5eabe94b 465232005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46524
46525 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46526 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46527
1b14a681 465282005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46529
46530 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 46531 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 46532 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 46533 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 46534 * partmap/amiga.c (amiga_partition_map_iterate): Return
46535 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46536 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46537
aca108aa 465382005-02-01 Guillem Jover <guillem@hadrons.org>
46539
46540 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46541 help info.
46542
c9f9c556 465432005-01-31 Marco Gerards <metgerards@student.han.nl>
46544
46545 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46546 Removed prototype.
46547 (grub_rescue_cmd_linux): New prototype.
46548 (grub_rescue_cmd_initrd): Likewise.
46549 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46550 `bi_rec'.
46551 (grub_linux_release_mem): Release the memory for the initrd.
46552 (grub_load_linux): Renamed from this...
46553 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46554 Changed `entry' not to be static. Loop over memory regions to
46555 find another one when the default fails.
46556 (grub_rescue_cmd_initrd): New function.
46557 (grub_linux_init): Remove function.
46558 (grub_linux_fini): Likewise.
46559 (GRUB_MOD_INIT): Register `initrd'.
46560 (GRUB_MOD_FINI): Unregister `initrd'.
46561 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46562 Function removed.
46563 (grub_linux_normal_fini): Likewise.
46564 (GRUB_MOD_INIT): Register `initrd'.
46565 (GRUB_MOD_FINI): Unregister `initrd'.
46566
990cf3aa 465672005-01-31 Marco Gerards <metgerards@student.han.nl>
46568
46569 * commands/help.c: New file.
46570 * normal/arg.c (show_help): Renamed to...
46571 (grub_arg_show_help): ... this.
46572 * commands/i386/pc/halt.c: New file.
46573 * commands/i386/pc/reboot.c: Likewise.
46574 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46575 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46576 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46577 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46578 variables.
46579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46580 `commands/help.c'.
46581 (pkgdata_MODULES): Add `help.mod'.
46582 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46583 * grub/i386/pc/init.h (grub_reboot): New prototype.
46584 (grub_halt): Likewise.
46585 * include/grub/normal.h (grub_arg_show_help): New prototype.
46586 (grub_help_init): Likewise.
46587 (grub_help_fini): Likewise.
46588 * util/grub-emu.c (main): Initialize and deinitialize the help
46589 command.
46590
46591 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46592
46593 * normal/command.c (grub_command_init): Fixed the description of
46594 the `set' and `unset' commands.
46595
465962005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 46597
46598 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46599 function.
46600 * commands/ieee1275/halt.c: New file.
46601 * commands/ieee1275/reboot.c: Likewise.
46602 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46603 `__attribute__ ((unused))'. Some GCS related fixed.
46604 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46605 (grub_suspend_fini): Likewise.
46606 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46607 and `halt.mod'.
46608 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46609 (halt_mod_CFLAGS): New variables.
46610 * include/grub/powerpc/ieee1275/ieee1275.h
46611 (grub_ieee1275_interpret): New prototype.
46612
1ab09cc7 466132005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46614
46615 * include/grub/misc.h (memmove): New prototype.
46616 (memcpy): Likewise.
46617
8b8cbdb2 466182005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46619
46620 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46621 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46622
e3741a27 466232005-01-22 Marco Gerards <metgerards@student.han.nl>
46624
46625 * kern/misc.c (grub_strndup): Function rewritten.
46626
776bd780 466272005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46628
46629 * normal/menu.c (TERM_WIDTH): Macro redefined.
46630 (TERM_TOP_BORDER_Y): Likewise.
46631 (draw_border): Replaced while-loop by a for-loop. Make the number
46632 of lines consistent with the number of lines displayed in
46633 print_entries. Added a margin below the rectangle.
46634 (print_entry): Make the entry fit in the rectangle.
46635 (print_entries): Display the scroll arrows next to the right
46636 border.
46637
78026bce 466382005-01-21 Marco Gerards <metgerards@student.han.nl>
46639
46640 * fs/minix.c (grub_minix_find_file): Reserve more space for
46641 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46642 `grub_strncpy' to copy `path' into it.
46643
67bbaf0f 466442005-01-21 Marco Gerards <metgerards@student.han.nl>
46645
46646 Add the loopback device, a device via which files can be accessed
46647 as devices.
f19dbdb7 46648
67bbaf0f 46649 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46650 (pkgdata_MODULES): Add loopback.mod.
46651 (loopback_mod_SOURCES): New variable.
46652 (loopback_mod_CFLAGS): Likewise.
46653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46654 `disk/loopback.c'.
46655 (pkgdata_MODULES): Add loopback.mod.
46656 (loopback_mod_SOURCES): New variable.
46657 (loopback_mod_CFLAGS): Likewise.
46658 * disk/loopback.c: new file.
46659 * include/grub/normal.h (grub_loop_init): New prototype.
46660 (grub_loop_fini): New prototype.
46661 * util/grub-emu.c (main): Initialize and de-initialize loopback
46662 support.
46663 * include/grub/disk.h (grub_disk_dev_id): Add
46664 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46665
6f1c18bd 466662005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46667
46668 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46669 function.
46670 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46671 (suspend_mod_SOURCES): New variable.
46672 (suspend_mod_CFLAGS): Likewise.
46673 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46674 New prototype.
46675 * commands/ieee1275/suspend.c: New file.
46676
b38551da 466772005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46678
46679 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 46680 ((unused))' to `__attribute__ ((used))'.
b38551da 46681 (GRUB_MOD_FINI): Likewise.
46682 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46683 * genmk.rb (PModule): Assign space to common symbols when linking
46684 modules.
46685
777aff39 466862005-01-20 Marco Gerards <metgerards@student.han.nl>
46687
46688 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46689 `unsigned' arguments to `grub_size_t'.
46690 (grub_malloc): Likewise.
46691 (grub_realloc): Likewise.
46692 (grub_memalign): Likewise.
46693 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46694 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46695 * util/misc.c (grub_malloc): Likewise.
46696 (grub_realloc): Likewise.
46697 * kern/mm.c (get_header_from_pointer): Change the casts to
46698 `unsigned' into a cast to `grub_size_t'.
46699
46700 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46701 point to `currnode' when `currnode' is changed.
46702
46703 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46704 Schottelius <nico-linux@schottelius.org>.
46705
d0ff18e1 467062005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46707
46708 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46709 (note_path): Remove variable.
46710 (GRUB_IEEE1275_NOTE_NAME): New macro.
46711 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46712 (grub_ieee1275_note_hdr): New structure.
46713 (grub_ieee1275_note_desc): Likewise.
46714 (grub_ieee1275_note): Likewise.
46715 (load_note): Remove `dir' argument. All callers updated. Remove
46716 `note_img' and `path'. Do not load a file from `note_path'.
46717 Initialize a struct grub_ieee1275_note and write that to `out'.
46718 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46719
4ca7004c 467202005-01-05 Marco Gerards <metgerards@student.han.nl>
46721
46722 * util/misc.c (grub_util_read_image): Revert last change. It
46723 called `grub_util_read_at', which seeks from the beginning of the
46724 file.
46725
0b412211 467262005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46727
46728 * TODO: Add note about endianness in grub-mkimage.
46729 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46730 section.
46731 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46732 (grub_mkimage_SOURCES): New target.
46733 * include/grub/kernel.h (grub_start_addr): Remove variable.
46734 (grub_end_addr): Likewise.
46735 (grub_total_module_size): Likewise.
46736 (grub_kernel_image_size): Likewise.
46737 (GRUB_MODULE_MAGIC): New constant.
46738 (grub_module_info): New structure.
46739 (grub_arch_modules_addr): New prototype.
46740 (grub_get_end_addr): Remove prototype.
46741 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46742 * include/grub/powerpc/ieee1275/kernel.h: New file.
46743 * include/grub/util/misc.h (grub_util_get_fp_size): New
46744 prototype.
46745 (grub_util_read_at): Likewise.
46746 (grub_util_write_image_at): Likewise.
46747 * kern/main.c (grub_get_end_addr): Remove function.
46748 (grub_load_modules): Call grub_arch_modules_addr instead of using
46749 grub_end_addr. Look for a grub_module_info struct in memory. Use
46750 the grub_module_info fields instead of calling grub_get_end_addr
46751 as loop conditions. Move grub_add_unused_region code here.
46752 (grub_add_unused_region): Remove function.
46753 * kern/i386/pc/init.c: Include grub/cache.h.
46754 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46755 one call to add_mem_region.
46756 (grub_arch_modules_addr): New function.
46757 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46758 (grub_total_module_size): Likewise.
46759 Include grub/machine/kernel.h.
46760 (grub_arch_modules_addr): New function.
46761 * util/grub-emu.c (grub_end_addr): Remove variable.
46762 (grub_total_module_size): Likewise.
46763 (grub_arch_modules_addr): New function.
46764 * util/misc.c: Include unistd.h.
46765 (grub_util_get_fp_size): New function.
46766 (grub_util_read_at): Likewise.
46767 (grub_util_write_image_at): Likewise.
46768 (grub_util_read_image): Call grub_util_read_at.
46769 (grub_util_write_image): Call grub_util_write_image_at.
46770 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46771 additional memory in kernel_img for a struct grub_module_info.
46772 Fill in that grub_module_info.
46773 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46774
458786f8 467752005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46776
46777 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46778 New function.
46779 * include/grub/powerpc/ieee1275/ieee1275.h
46780 (grub_ieee1275_milliseconds): New prototype.
46781 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46782 Change to 1000.
46783 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46784 grub_ieee1275_milliseconds.
46785
ac507d1b 467862005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46787
46788 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46789 variable.
46790 (find_options): New function.
46791 (cmain): Call find_options.
46792 * include/grub/powerpc/ieee1275/ieee1275.h
46793 (grub_ieee1275_realmode): New extern variable.
46794 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46795 grub_map if grub_ieee1275_realmode is false.
46796
6b8fd1c4 467972004-12-29 Marco Gerards <metgerards@student.han.nl>
46798
46799 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46800 lines are inserted and make it work like readline. Reported by
46801 Vincent Pelletier <subdino2004@yahoo.fr>.
46802
8514a1e0 468032004-12-28 Marco Gerards <metgerards@student.han.nl>
46804
46805 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46806
46807 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46808 `kern/powerpc/cache.S'.
46809
924b6140 468102004-12-27 Marco Gerards <metgerards@student.han.nl>
46811
46812 * genmk.rb: Handle the `Program' class in the main loop. Written
46813 by Johan Rydberg <jrydberg@gnu.org>.
46814 (Program): New class.
46815 (programs): New variable.
46816 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46817 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46818 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46819 (help_arch): Function removed.
46820 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46821 `powerpc/libgcc.h' and `loader.h'.
46822 (pkgdata_PROGRAMS): New variable.
46823 (sbin_UTILITIES): Variable removed.
46824 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46825 (grubof_SOURCES): Variable re-defined so it only includes the
46826 core functionality.
46827 (grubof_CFLAGS): Remove `-DGRUBOF'.
46828 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46829 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46830 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46831 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46832 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46833 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46834 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46835 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46836 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46837 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46838 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46839 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46840 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46841 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46842 (pc_mod_CFLAGS): New variables.
46843 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46844 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46845 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46846 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46847 Moved from here...
46848 * include/grub/i386/pc/init.h (grub_os_area_addr)
46849 (rub_os_area_size): ... to here.
46850 * include/grub/powerpc/ieee1275/ieee1275.h
46851 (grub_ieee1275_entry_fn): Export symbol.
46852 * include/grub/powerpc/ieee1275/init.h: New file.
46853 * include/grub/powerpc/libgcc.h: Likewise.
46854 * include/grub/cache.h: Likewise.
46855 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46856 <hollis@penguinppc.org>.
46857 * kern/dl.c: Include <grub/cache.h>.
46858 (grub_dl_flush_cache): New function.
46859 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46860 for this module.
46861 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46862 (grub_console_init): Removed prototypes.
46863 (grub_machine_init): Don't initialize the modules anymore.
46864 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46865 static.
46866 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46867 Macro undef removed.
46868 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46869 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46870 relocation `R_PPC_REL32'. Return an error when the relocation is
46871 unknown.
46872 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46873 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46874 * util/misc.c (grub_arch_sync_caches): Likewise.
46875
e4b47e0c 468762004-12-19 Marco Gerards <metgerards@student.han.nl>
46877
46878 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46879 `symlist.c', add `grubof_symlist.c'.
46880 (symlist.c): Variable removed.
46881 (grubof_HEADERS): Variable added.
46882 (grubof_symlist.c): New target.
46883 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46884 `kernel_img_HEADERS'.
46885 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46886 * kern/powerpc/dl.c: New file.
46887 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46888 Function removed.
46889 (grub_arch_dl_relocate_symbols): Likewise.
46890 (grub_register_exported_symbols): Likewise.
46891
4ceb3636 468922004-12-13 Marco Gerards <metgerards@student.han.nl>
46893
46894 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46895 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46896 to fail instead. Reported by Vincent Pelletier
46897 <subdino2004@yahoo.fr>.
46898
46899 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46900 it is not allocated. Reported by Vincent Pelletier
46901 <subdino2004@yahoo.fr>.
46902
46903 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46904 output so the output looks better.
f19dbdb7 46905
3f1578fe 469062004-12-04 Marco Gerards <metgerards@student.han.nl>
46907
46908 Modulize the partition map support and add support for the amiga
46909 partition map.
f19dbdb7 46910
3f1578fe 46911 * commands/ls.c: Include <grub/partition.h> instead of
46912 <grub/machine/partition.h>.
46913 * kern/disk.c: Likewise.
46914 * kern/rescue.c: Likewise.
46915 * loader/i386/pc/chainloader.c: Likewise.
46916 * normal/cmdline.c: Likewise.
46917 * kern/powerpc/ieee1275/init.c: Likewise.
46918 (grub_machine_init): Call `grub_pc_partition_map_init',
46919 `grub_amiga_partition_map_init' and
46920 `grub_apple_partition_map_init'.
46921 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46922 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46923 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46924 `partition.h' and `pc_partition.h'.
46925 (grub_setup_SOURCES): Remove
46926 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46927 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46928 (grub_emu_SOURCES): Likewise.
46929 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46930 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46931 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46933 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46934 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46935 (grubof_SOURCES): Likewise.
46936 * disk/i386/pc/partition.c: File removed.
46937 * disk/powerpc/ieee1275/partition.c: Likewise.
46938 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46939 * include/grub/i386/pc/partition.h: Likewise.
46940 * kern/partition.c: New file.
46941 * partmap/amiga.c: Likewise.
46942 * partmap/apple.c: Likewise.
46943 * partmap/pc.c: Likewise.
46944 * include/grub/partition.h: Likewise..
46945 * include/grub/pc_partition.h: Likewise.
46946 * util/grub-emu.c: Include <grub/partition.h> instead of
46947 <grub/machine/partition.h>.
46948 (main): Call `grub_pc_partition_map_init',
46949 `grub_amiga_partition_map_init' and
46950 `grub_apple_partition_map_init' and deinitialize afterwards.
46951 * util/i386/pc/biosdisk.c: Include `#include
46952 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46953 `<grub/machine/partition.h>'.
46954 * util/i386/pc/grub-setup.c: Likewise.
46955 * util/i386/pc/biosdisk.c: Likewise.
46956 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46957 partition information in case of a PC partition.
46958 * util/i386/pc/grub-setup.c: Include `#include
46959 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46960 `<grub/machine/partition.h>'.
46961 (setup): Only access the PC specific partition information in case
46962 of a PC partition.
46963
0ef4ced9 469642004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 46965
0ef4ced9 46966 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46967 (grub_longjmp): Likewise.
46968 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46969 20.
46970 * normal/powerpc/setjmp.S: New file.
46971 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46972 `normal/powerpc/setjmp.S'.
46973 (grubof_CFLAGS): Add `-DGRUBOF'.
46974 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46975 [GRUB_UTIL && !GRUBOF].
f19dbdb7 46976
19950e29 469772004-11-16 Marco Gerards <metgerards@student.han.nl>
46978
46979 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46980 property named `name'. Correctly handle the error returned by
46981 `grub_ieee1275_finddevice' if a device can not be opened.
46982
a2fea427 469832004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46984
46985 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46986 `actual' for negativity.
46987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46988 kern/fshelp.c.
46989
41ea0ea3 469902004-11-01 Marco Gerards <metgerards@student.han.nl>
46991
46992 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46993 (PAGE_OFFSET): New macro.
46994 (CRTC_ADDR_PORT): Likewise.
46995 (CRTC_DATA_PORT): Likewise.
46996 (START_ADDR_HIGH_REGISTER): Likewise.
46997 (START_ADDR_LOW_REGISTER): Likewise.
46998 (GRAPHICS_ADDR_PORT): Likewise.
46999 (GRAPHICS_DATA_PORT): Likewise.
47000 (READ_MAP_REGISTER): Likewise.
47001 (INPUT_STATUS1_REGISTER): Likewise.
47002 (INPUT_STATUS1_VERTR_BIT): Likewise.
47003 (page): New variable.
47004 (wait_vretrace): New function.
47005 (set_read_map): Likewise.
47006 (set_start_address): Likewise.
47007 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
47008 the right page.
47009 (check_vga_mem): Take the page into account.
47010 (write_char): Likewise.
47011 (write_cursor): Likewise.
47012 (scroll_up): Likewise. Copy the page to the page that is not
47013 shown and switch between both pages.
47014 (grub_vga_putchar): Fix off by one error.
47015 (grub_vga_cls): Wait for the vertical retrace. Take the page into
47016 account.
47017
ad0bd20b 470182004-11-01 Marco Gerards <metgerards@student.han.nl>
47019
47020 Add support for iso9660 (including rockridge).
f19dbdb7 47021
ad0bd20b 47022 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47023 (iso9660_mod_SOURCES): New variable.
47024 (iso9660_mod_CFLAGS): Likewise.
47025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47026 * include/grub/fs.h (grub_iso9660_init): New prototype.
47027 * util/grub-emu.c (main): Call `grub_iso9660_init'.
47028 * fs/iso9660.c: New file.
47029
47030 * include/grub/misc.h (grub_strncat): New prototype.
47031 * kern/misc.c (grub_strncat): New function.
f19dbdb7 47032
ad0bd20b 47033 * fs/hfs.c (grub_hfs_mount): Translate the error
47034 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
47035 * fs/jfs.c (grub_jfs_mount): Likewise.
47036 * fs/ufs.c (grub_ufs_mount): Likewise.
47037
a5477a59 470382004-10-28 Hollis Blanchard <hollis@penguinppc.org>
47039
47040 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
47041 which initialized BAT registers.
47042 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
47043 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
47044 Move from here...
47045 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
47046 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
47047 ... to here.
47048 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
47049 (grub_mapclaim): Likewise.
47050 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
47051 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
47052 hand.
47053
9304c1f8 470542004-10-19 Hollis Blanchard <hollis@penguinppc.org>
47055
47056 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
47057 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
47058 -ffreestanding and -msoft-float.
47059
86f4ae25 470602004-10-15 Hollis Blanchard <hollis@penguinppc.org>
47061
47062 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
47063 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
47064 set in grub_ieee1275_flags.
47065
38912228 470662004-10-14 Hollis Blanchard <hollis@penguinppc.org>
47067
47068 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
47069 prototype.
47070 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
47071 grub_console_init first.
47072 Change the memory range used for grub_ieee1275_claim and
47073 grub_mm_init_region.
47074 Print an error message if the claim fails.
47075 Include <grub/misc.h>.
47076
d1923dc8 470772004-10-13 Hollis Blanchard <hollis@penguinppc.org>
47078
47079 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
47080 Call grub_children_iterate for device nodes of type `scsi',
47081 `ide', or `ata'.
47082 (grub_ofdisk_open): Remove manual device alias resolution.
47083 Fix memory leak when device cannot be opened.
f19dbdb7 47084 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 47085 (grub_children_iterate): New prototype.
47086 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
47087 New function.
47088 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
47089 Return -1 if args.size was -1.
47090
4512e4f3 470912004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47092
47093 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
47094 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
47095 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
47096 Open Firmware's memory for it; claim memory from _start to _end.
47097 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
47098 (_end): New extern.
47099 (_start): Zero BSS from __bss_start to _end.
47100 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
47101 New extern.
47102 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
47103
4d61feb0 471042004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47105
ad0bd20b 47106 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
47107 -1 if args.base was -1.
4d61feb0 47108
026fa2f9 471092004-10-08 Hollis Blanchard <hollis@penguinppc.org>
47110
47111 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
47112 escape sequence instead of a literal ^L. Also call
47113 grub_ofconsole_gotoxy.
47114
9f2220ef 471152004-10-03 Hollis Blanchard <hollis@penguinppc.org>
47116
47117 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
47118 void * arguments to grub_addr_t. All callers updated. Also make
47119 the `result' argument optional.
47120 (grub_ieee1275_release): change void * arguments to grub_addr_t.
47121 All callers updated.
47122
8a572cd7 471232004-09-22 Hollis Blanchard <hollis@penguinppc.org>
47124
47125 * commands/ls.c (grub_ls_list_files): Use the string following the
47126 initial ')', if present, as the filesystem path.
47127 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
47128
47129 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
47130
18aa81f2 471312004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
47132
47133 Make the source code of the menu interface more readable.
f19dbdb7 47134
18aa81f2 47135 * normal/menu.c: Include grub/mm.h.
47136 (TERM_WIDTH): New macro.
47137 (TERM_HEIGHT): Likewise.
47138 (TERM_INFO_HEIGHT): Likewise.
47139 (TERM_MARGIN): Likewise.
47140 (TERM_SCROLL_WIDTH): Likewise.
47141 (TERM_TOP_BORDER_Y): Likewise.
47142 (TERM_LEFT_BORDER_X): Likewise.
47143 (TERM_BORDER_WIDTH): Likewise.
47144 (TERM_MESSAGE_HEIGHT): Likewise.
47145 (TERM_BORDER_HEIGHT): Likewise.
47146 (TERM_NUM_ENTRIES): Likewise.
47147 (TERM_FIRST_ENTRY_Y): Likewise.
47148 (TERM_ENTRY_WIDTH): Likewise.
47149 (TERM_CURSOR_X): Likewise.
47150 (draw_border): Use macros instead of magic numbers.
47151 (print_entry): Likewise.
47152 (print_entries): Likewise.
47153 (run_menu): Likewise. Also, handle the key 'e'.
47154 (run_menu_entry): Ignore empty command lines.
47155 (print_message): Added a new argument EDIT. If EDIT is true,
47156 print a different message.
47157 (init_page): Likewise.
47158 (edit_menu_entry): New function. Not implemented yet.
47159
b47efe30 471602004-09-17 Marco Gerards <metgerards@student.han.nl>
47161
47162 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
47163 can be loaded from normal mode.
f19dbdb7 47164
b47efe30 47165 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
47166 `multiboot.mod'.
47167 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
47168 (multiboot_mod_CFLAGS): New variables.
47169 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 47170 * loader/i386/pc/multiboot_normal.c: Likewise.
47171
b47efe30 47172 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
47173 attribute `unused'.
f19dbdb7 47174
b47efe30 47175 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
47176 `fdiro' to read the mode information from instead of `diro'.
47177
47178 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
47179 looking up a symlink.
47180
47181 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
47182 macro.
47183 * normal/command.c (grub_command_execute): Don't parse the
47184 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
47185 flags of the command.
47186
47187 * normal/menu.c (grub_menu_run): Fix typo.
47188
da75ac71 471892004-09-14 Hollis Blanchard <hollis@penguinppc.org>
47190
47191 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
47192
47193 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
47194 `y + 1' instead of `y - 1'.
47195
47196 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 47197
062b24c2 471982004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
47199
47200 From Hollis Blanchard <hollis@penguinppc.org>:
47201 * kern/misc.c (memmove): New alias for grub_memmove.
47202 (memcmp): New alias for grub_memcmp.
47203 (memset): New alias for grub_memset.
f19dbdb7 47204 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 47205 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 47206 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 47207 (grub_ieee1275_get_property): Likewise.
f19dbdb7 47208
8ddad845 472092004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
47210
47211 Added normal mode command `chainloader' as module chain.mod, which
47212 depends on normal.mod and _chain.mod.
f19dbdb7 47213
8ddad845 47214 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
47215 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
47216 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
47217 Deleted prototype.
47218 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
47219 but arguments parsing moved to ...
47220 (grub_chainloader_cmd): ... here. New function.
47221 * include/grub/i386/pc/chainloader.h: New file.
47222 * loader/i386/pc/chainloader_normal.c: Likewise.
47223
2c1f4ce3 472242004-09-11 Marco Gerards <metgerards@student.han.nl>
47225
47226 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
47227 (grub_mkimage_LDFLAGS): Likewise.
47228 (grub_emu_SOURCES): Likewise.
47229 (kernel_img_HEADERS): Added fshelp.h.
47230 * fs/ext2.c: Include <grub/fshelp.h>.
47231 (FILETYPE_REG): New macro.
47232 (FILETYPE_INO_REG): Likewise.
47233 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
47234 Changed all users.
47235 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
47236 all users.
47237 (grub_fshelp_node): New struct.
47238 (grub_ext2_data): Added member `diropen'. Changed member `inode'
47239 to a pointer.
47240 (grub_ext2_get_file_block): Removed function.
47241 (grub_ext2_read_block): New function.
47242 (grub_ext2_read_file): Replaced parameter `data' by `node'.
47243 This function was written.
47244 (grub_ext2_mount): Read the root inode. Create a diropen struct.
47245 (grub_ext2_find_file): Removed function.
47246 (grub_ext2_read_symlink): New function.
47247 (grub_ext2_iterate_dir): Likewise.
47248 (grub_ext2_open): Rewritten.
47249 (grub_ext2_dir): Rewritten.
47250 * include/grub/fshelp.h: New file.
47251 * fs/fshelp.c: Likewise.
47252
3c52136a 472532004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
47254
47255 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
47256 (print_message): Add a missing newline.
47257 (run_menu): Added timeout support.
47258 (run_menu_entry): New local function.
47259 (grub_menu_run): Added support for booting.
47260
47261 * kern/loader.c (grub_loader_is_loaded): New function.
47262
47263 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
47264 (grub_get_rtc): Exported.
47265
47266 * include/grub/i386/pc/time.h: Include grub/symbol.h.
47267 (grub_get_rtc): Exported.
47268
47269 * include/grub/normal.h (struct grub_command_list): Remove
47270 constant from the member `command'.
47271
47272 * include/grub/loader.h (grub_loader_is_loaded): Declared.
47273
47274 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
47275
47276 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
47277
aa033560 472782004-08-28 Marco Gerards <metgerards@student.han.nl>
47279
47280 Add support for the JFS filesystem.
47281
47282 * fs/jfs.c: New file.
47283 * include/grub/fs.h (grub_jfs_init): New prototype.
47284 (grub_jfs_fini): New prototype.
47285 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
47286 (grub_emu_SOURCES): Likewise.
47287 (pkgdata_MODULES): Add jfs.mod.
47288 (jfs_mod_SOURCES): New variable.
47289 (jfs_mod_CFLAGS): Likewise.
47290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
47291 (grubof_SOURCES): Likewise.
47292 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
47293
47294 * fs/fat.c (grub_fat_find_dir): Convert the filename little
47295 endian to the host endian.
47296 (grub_fat_utf16_to_utf8): Move function from there...
47297 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 47298 the endianness of the source string anymore.
aa033560 47299 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
47300
94bc45af 473012004-08-24 Marco Gerards <metgerards@student.han.nl>
47302
47303 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
47304 (grub_boot_fini) [GRUB_UTIL]: Likewise.
47305 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
47306 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 47307
94bc45af 47308 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
47309 (grub_hfs_iterate_dir): Make the function static. Add prototypes
47310 for `node_found' and `it_dir'.
47311 (grub_hfs_dir): Add prototype for `dir_hook'.
47312
47313 * fs/minix.c (grub_minix_get_file_block): Add prototype for
47314 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
47315 and `indir32' to silence a gcc warning.
47316
47317 * include/grub/fs.h (grub_hfs_init): New prototype.
47318 (grub_hfs_fini): Likewise.
f19dbdb7 47319
47320
97543f08 473212004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47322
47323 Each disk device has its own id now. This is useful to make use
47324 of multiple disk devices.
f19dbdb7 47325
97543f08 47326 * include/grub/disk.h (grub_disk_dev_id): New enum.
47327 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47328 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47329
47330 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47331 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47332
47333 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47334 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47335
47336 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47337 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47338
47339 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47340 "id" which is used by the cache manager.
47341
47342 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47343 of just "GRUB".
47344
64372eb4 473452004-08-18 Marco Gerards <metgerards@student.han.nl>
47346
47347 * fs/hfs.c: New file.
47348 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47349 (grub_emu_SOURCES): Likewise.
47350 (pkgdata_MODULES): Add hfs.mod.
47351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47352 (grubof_SOURCES): Likewise.
47353 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47354
47355 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47356 * kern/misc.c (grub_strncasecmp): Add function.
47357
cc61b58f 473582004-08-14 Marco Gerards <metgerards@student.han.nl>
47359
47360 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47361 with parentheses.
47362
47363 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47364 (grub_ext2_dir): In case the directory entry type is unknown, read
47365 it from the inode.
47366
0ef123f6 473672004-08-02 Peter Bruin <pjbruin@dds.nl>
47368
47369 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47370 grub_load_linux instead of grub_rescue_cmd_linux as second
47371 argument of grub_rescue_register_command.
47372
47373 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47374
a447c5df 473752004-07-27 Marco Gerards <metgerards@student.han.nl>
47376
47377 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47378 function.
47379 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47380 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47381 `loader/powerpc/ieee1275/linux.c',
47382 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47383 * include/grub/powerpc/ieee1275/ieee1275.h
47384 (grub_ieee1275_release): New prototype.
47385 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47386 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47387 normal, boot, linux and linux_normal.
47388 * loader/powerpc/ieee1275/linux.c: New file.
47389 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47390
5a9e3546 473912004-07-12 Marco Gerards <metgerards@student.han.nl>
47392
47393 * normal/arg.c (grub_arg_parse): Correct error handling after
47394 reallocating the argumentlist (check if `argl' is not null instead
47395 of checking if `args' is not null).
47396 * kern/mm.c (grub_realloc): Return the same pointer when using the
47397 same region, instead of returning the header address.
47398
e15199cb 473992004-07-11 Marco Gerards <metgerards@student.han.nl>
47400
47401 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47402 one block instead of two when looking for the initial partition.
47403 (grub_partition_probe): Initialize the local variable `p' with 0.
47404 Use base 10 for the grub_strtoul call.
47405 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47406 need for one local variable.
47407 (grub_strtoul): Don't add the new value to `num', instead of that
47408 just assign it.
47409
020616c2 474102004-07-11 Marco Gerards <metgerards@student.han.nl>
47411
47412 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47413 (pxeboot_img_SOURCES): New variable.
47414 (pxeboot_img_ASFLAGS): Likewise.
47415 (pxeboot_img_LDFLAGS): Likewise.
47416 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47417 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47418 <lode_leroy@hotmail.com>.
47419
6c51eb64 474202004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47421
47422 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47423 there was no input.
47424
cfb12aff 474252004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47426
47427 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47428 the history buffer logic.
47429
6eabba74 474302004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47431
47432 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47433 (FILETYPE_INO_SYMLINK): New macros.
47434 (grub_ext2_find_file): Check if the node is a directory using the
47435 inode stat information instead of using the filetype in the
47436 dirent. Exclude the first character of an absolute symlink.
47437 (grub_ext2_dir): Mask out the filetype part of the mode member of
47438 the inode.
47439
66e19ef8 474402004-05-24 Marco Gerards <metgerards@student.han.nl>
47441
47442 Add support for UFS version 1 and 2. Add support for the minix
47443 filesystem version 1 and 2, both the variants with 14 and 30 long
47444 filenames.
f19dbdb7 47445
66e19ef8 47446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47447 fs/minix.c.
47448 (grub_emu_SOURCES): Likewise.
47449 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47450 (ufs_mod_SOURCES): New variable.
47451 (ufs_mod_CFLAGS): Likewise.
47452 (minix_mod_SOURCES): Likewise.
47453 (minix_mod_CFLAGS): Likewise.
47454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47455 fs/minix.c.
47456 (grubof_SOURCES): Likewise.
47457 * fs/ufs.c: New file.
47458 * fs/minix.c: New file.
47459 * include/grub/fs.h (grub_ufs_init): New prototype.
47460 (grub_ufs_fini): Likewise.
47461 (grub_minix_init): Likewise.
47462 (grub_minix_fini): Likewise.
47463 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47464 minix fs.
47465
cc2e748a 474662004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47467
47468 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47469 commands/ls.c, commands/terminal.c, commands/boot.c,
47470 commands/cmp.c and commands/cat.c.
47471 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47472
47473 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47474 "env.h"
47475
4b13b216 474762004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47477
47478 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47479 and grub_, respectively. Because the conversion is trivial and
47480 mechanical, I omit the details here. Please refer to the CVS
47481 if you need more information.
47482
6a142551 474832004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47484
47485 * include/pupa: Renamed to ...
47486 * include/grub: ... this.
47487 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47488 * util/i386/pc/grub-mkimage.c: ... this.
47489 * util/i386/pc/pupa-setup.c: Renamed to ...
47490 * util/i386/pc/grub-setup.c: ... this.
47491 * util/pupa-emu.c: Renamed to ...
47492 * util/grub-emu.c: ... this.
47493
e56cdf21 474942004-03-29 Marco Gerards <metgerards@student.han.nl>
47495
47496 Add support for the newworld apple macintosh (PPC). This has been
47497 tested on the powerbook 2000 only. It only adds support for
47498 generic ieee1275 functions, console and disk support. This should
47499 be easy to port to other architectures with support for Open
47500 Firmware.
f19dbdb7 47501
e56cdf21 47502 * configure.ac: Accept the powerpc as host_cpu. In the case of
47503 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47504 specific tests are only executed while building for the i386.
47505 Inverse test for crosscompile.
47506 * genmk.rb (Utility): Allow assembler files.
47507 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47508 * conf/powerpc-ieee1275.rmk: New file.
47509 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47510 * disk/powerpc/ieee1275/partition.c: Likewise.
47511 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47512 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47513 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47514 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47515 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47516 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47517 * include/pupa/powerpc/ieee1275/loader.h
47518 * include/pupa/powerpc/setjmp.h: Likewise.
47519 * include/pupa/powerpc/types.h: Likewise.
47520 * kern/powerpc/ieee1275/init.c: Likewise.
47521 * kern/powerpc/ieee1275/openfw.c: Likewise.
47522 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47523
47524 These files were written by Johan Rydberg
47525 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 47526
e56cdf21 47527 * boot/powerpc/ieee1275/cmain.c: New file.
47528 * boot/powerpc/ieee1275/crt0.S: Likewise.
47529 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47530 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47531
8c8cc205 475322004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47533
47534 * Makefile.in: Update copyright.
47535 * genmodsrc.sh: Likewise.
47536 * gensymlist.sh: Likewise.
47537 * term/i386/pc/vga.c: Indent correctly.
47538
47539 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47540 bugreporting address.
47541 * util/i386/pc/pupa-setup.c (usage): Likewise,
47542 (main): Call pupa_ext2_init and pupa_ext2_fini.
47543
f19dbdb7 47544 * fs/fat.c (log2): Renamed to ...
8c8cc205 47545 (fat_log2): ... this.
47546 All callers changed.
47547 * kern/misc.c (memcpy): Alias to pupa_memmove.
47548 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47549 lvalue cast.
47550 * util/console.c (pupa_ncurses_fini): Return 0.
47551
47552 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47553 Move fail label here.
47554 [__GNU__]: Don't warn when using stat.
47555 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47556 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47557 long int. Use strtol instead of strtoul.
f19dbdb7 47558
db1771cf 475592004-03-14 Marco Gerards <metgerards@student.han.nl>
47560
47561 * commands/boot.c: New file.
47562 * commands/cat.c: Likewise.
47563 * commands/cmp.c: Likewise.
47564 * commands/ls.c: Likewise.
47565 * commands/terminal.c: Likewise.
47566 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47567 (pupa_register_command): Changed interface to match the new
47568 argument parser.
47569 (pupa_command_execute): Changed (almost rewritten) so it uses
47570 pupa_split_command. Added support for setting variables using the
47571 syntax `foo=bar'.
47572 (rescue_command): Changed to work with the new argument parser.
47573 (terminal_command): Moved from here to commands/terminal.c.
47574 (set_command): New function.
47575 (unset_command): New function.
47576 (insmod_command): New function.
47577 (rmmod_command): New function.
47578 (lsmod_command): New function.
47579 (pupa_command_init): Don't initialize the command terminal
47580 anymore. Initialize the commands set, unset, insmod, rmmod and
47581 lsmod.
47582 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47583 (kernel_img_HEADERS): Add arg.h and env.h.
47584 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47585 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47586 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47587 normal/arg.c.
47588 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47589 terminal.mod.
47590 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47591 (boot_mod_SOURCES): New variable.
47592 (terminal_mod_SOURCES): Likewise.
47593 (ls_mod_SOURCES): Likewise.
47594 (cmp_mod_SOURCES): Likewise.
47595 (cat_mod_SOURCES): Likewise.
47596
47597 * normal/arg.c: New file.
47598 * kern/env.c: Likewise.
47599 * include/pupa/arg.h: Likewise.
47600 * include/pupa/env.h: Likewise.
47601 * font/manager.c (font_command): Changed to match argument parsing
47602 interface changes.
47603 (PUPA_MOD_INIT): Likewise.
47604 * hello/hello.c (pupa_cmd_hello): Likewise.
47605 (PUPA_MOD_INIT): Likewise.
47606 * include/pupa/disk.h: Include <pupa/device.h>.
47607 (pupa_print_partinfo): New prototype.
47608 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47609 (pupa_dl_get_prefix): Likewise.
47610 * include/pupa/misc.h: Include <pupa/err.h>.
47611 (pupa_isgraph): New prototype.
47612 (pupa_isdigit): Likewise.
47613 (pupa_split_cmdline): Likewise.
47614 * include/pupa/normal.h: Include <pupa/arg.h>.
47615 (pupa_command): Changed the prototype of the member `func' to
47616 match the argument parsing interface. Added member `options'.
47617 (pupa_register_command): Updated to match function.
47618 (pupa_arg_parse): New prototype.
47619 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47620 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47621 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47622 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47623 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47624 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47625 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47626 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47627 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47628 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47629 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47630 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47631 * kern/disk.c: Include <pupa/file.h>.
47632 (pupa_print_partinfo): New function.
47633 * kern/dl.c: Include <pupa/env.h>.
47634 (pupa_dl_dir): Variable removed.
47635 (pupa_dl_load): Use the environment variable `prefix' instead of
47636 the variable pupa_dl_dir.
47637 (pupa_dl_set_prefix): Function removed.
47638 (pupa_dl_get_prefix): Likewise.
47639 * kern/i386/pc/init.c: Include <pupa/env.h>.
47640 (pupa_machine_init): Use the environment variable `prefix' instead of
47641 using pupa_dl_set_prefix to set the prefix.
47642 * kern/main.c: Include <pupa/env.h>.
47643 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47644 using pupa_dl_get_prefix to get the prefix.
47645 * kern/misc.c: Include <pupa/env.h>.
47646 (pupa_isdigit): New function.
47647 (pupa_isgraph): Likewise.
47648 (pupa_ftoa): Likewise.
47649 (pupa_vsprintf): Added support for printing values of the type
47650 `double'. Make it possible to format variable output when using
47651 formatting like `%1.2%f'.
47652 (pupa_split_cmdline): New function.
47653 * kern/rescue.c: Include <pupa/env.h>.
47654 (next_word): Removed function.
47655 (pupa_rescue_cmd_prefix): Likewise.
47656 (pupa_rescue_cmd_set): New function.
47657 (pupa_rescue_cmd_unset): New function.
47658 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47659 split the command line instead of splitting it here. Added
47660 support for setting variables using the syntax `foo=bar'. Don't
47661 initialize the prefix command anymore. Initialized the set and
47662 unset commands.
47663 * normal/cmdline.c: Include <pupa/env.h>.
47664 (pupa_tab_complete): Added prototypes for print_simple_completion,
47665 print_partition_completion, add_completion, iterate_commands,
47666 iterate_dev, iterate_part and iterate_dir. Moved code to print
47667 partition information from here to kern/disk.c.
fe6b695a 47668 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 47669 * normal/main.c: Include <pupa/env.h>.
47670 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47671 instead of using pupa_dl_get_prefix to get the prefix.
47672 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47673 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47674 warning.
47675 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47676 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47677 ((unused))' to silence a gcc warning.
47678 (pupa_vga_setcolor): Likewise.
47679 (debug_command): Changed to match argument parsing
47680 interface changes.
47681 * util/pupa-emu.c: Include <pupa/env.h>.
47682 (options): Added 0's for unused fields to silence a gcc warning.
47683 (argp): Likewise.
47684 (main): Use the environment variable `prefix' instead of using
47685 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47686 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47687 and terminal.
47688
47689 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47690 * util/misc.c: Include <malloc.h>.
47691 (pupa_malloc): Rewritten so errors are correctly reported.
47692 (pupa_realloc): Likewise.
47693 (pupa_memalign): Likewise.
47694 (pupa_mm_init_region): Declare unused variables with
47695 `__attribute__ ((unused))' to silence a gcc warning.
47696 * normal/i386/setjmp.S: Remove tab at the end of the file to
47697 silence a gcc warning.
47698 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47699 variables with `__attribute__ ((unused))' to silence a gcc
47700 warning.
47701 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47702 local variable i unsigned to silence a gcc warning.
47703
47704 * kern/term.c: Include <pupa/misc.h>.
47705 (pupa_more_lines): New variable.
47706 (pupa_more): Likewise.
47707 (pupa_putcode): When the pager is active pause at the end of every
47708 screen.
47709 (pupa_set_more): New function.
47710 * include/pupa/term.h (pupa_set_more): New prototype.
47711
47712
3b1139cb 477132004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47714
47715 Now this project is GRUB 2 rather than PUPA. The location of
47716 the CVS repository was moved to GRUB's.
f19dbdb7 47717
3b1139cb 47718 * configure.ac: Use bug-grub as the reporting address.
47719 Use GRUB instead of PUPA.
47720 Change the version number to 1.90.
47721
8367695c 477222004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47723
47724 * genkernsyms.sh: Updated copyright information.
47725 * genmk.rb: Likewise.
47726 * genmodsrc.sh: Likewise.
47727 * gensymlist.sh: Likewise.
47728 * boot/i386/pc/boot.S: Likewise.
47729 * boot/i386/pc/diskboot.S: Likewise.
47730 * disk/i386/pc/biosdisk.c: Likewise.
47731 * disk/i386/pc/partition.c: Likewise.
47732 * font/manager.c: Likewise.
47733 * fs/ext2.c: Likewise.
47734 * fs/fat.c: Likewise.
47735 * include/pupa/boot.h: Likewise.
47736 * include/pupa/device.h: Likewise.
47737 * include/pupa/disk.h: Likewise.
47738 * include/pupa/dl.h: Likewise.
47739 * include/pupa/elf.h: Likewise.
47740 * include/pupa/err.h: Likewise.
47741 * include/pupa/file.h: Likewise.
47742 * include/pupa/font.h: Likewise.
47743 * include/pupa/fs.h: Likewise.
47744 * include/pupa/kernel.h: Likewise.
47745 * include/pupa/loader.h: Likewise.
47746 * include/pupa/misc.h: Likewise.
47747 * include/pupa/mm.h: Likewise.
47748 * include/pupa/net.h: Likewise.
47749 * include/pupa/normal.h: Likewise.
47750 * include/pupa/rescue.h: Likewise.
47751 * include/pupa/setjmp.h: Likewise.
47752 * include/pupa/symbol.h: Likewise.
47753 * include/pupa/term.h: Likewise.
47754 * include/pupa/types.h: Likewise.
47755 * include/pupa/i386/setjmp.h: Likewise.
47756 * include/pupa/i386/types.h: Likewise.
47757 * include/pupa/i386/pc/biosdisk.h: Likewise.
47758 * include/pupa/i386/pc/boot.h: Likewise.
47759 * include/pupa/i386/pc/console.h: Likewise.
47760 * include/pupa/i386/pc/init.h: Likewise.
47761 * include/pupa/i386/pc/kernel.h: Likewise.
47762 * include/pupa/i386/pc/linux.h: Likewise.
47763 * include/pupa/i386/pc/loader.h: Likewise.
47764 * include/pupa/i386/pc/memory.h: Likewise.
47765 * include/pupa/i386/pc/multiboot.h: Likewise.
47766 * include/pupa/i386/pc/partition.h: Likewise.
47767 * include/pupa/i386/pc/time.h: Likewise.
47768 * include/pupa/i386/pc/vga.h: Likewise.
47769 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47770 * include/pupa/util/getroot.h: Likewise.
47771 * include/pupa/util/misc.h: Likewise.
47772 * include/pupa/util/resolve.h: Likewise.
47773 * kern/device.c: Likewise.
47774 * kern/disk.c: Likewise.
47775 * kern/dl.c: Likewise.
47776 * kern/err.c: Likewise.
47777 * kern/file.c: Likewise.
47778 * kern/fs.c: Likewise.
47779 * kern/loader.c: Likewise.
47780 * kern/main.c: Likewise.
47781 * kern/misc.c: Likewise.
47782 * kern/mm.c: Likewise.
47783 * kern/rescue.c: Likewise.
47784 * kern/term.c: Likewise.
47785 * kern/i386/dl.c: Likewise.
47786 * kern/i386/pc/init.c: Likewise.
47787 * kern/i386/pc/lzo1x.S: Likewise.
47788 * kern/i386/pc/startup.S: Likewise.
47789 * loader/i386/pc/chainloader.c: Likewise.
47790 * loader/i386/pc/linux.c: Likewise.
47791 * loader/i386/pc/multiboot.c: Likewise.
47792 * normal/cmdline.c: Likewise.
47793 * normal/command.c: Likewise.
47794 * normal/main.c: Likewise.
47795 * normal/menu.c: Likewise.
47796 * normal/i386/setjmp.S: Likewise.
47797 * term/i386/pc/console.c: Likewise.
47798 * term/i386/pc/vga.c: Likewise.
47799 * util/console.c: Likewise.
47800 * util/genmoddep.c: Likewise.
47801 * util/misc.c: Likewise.
47802 * util/pupa-emu.c: Likewise.
47803 * util/resolve.c: Likewise.
47804 * util/unifont2pff.rb: Likewise.
47805 * util/i386/pc/biosdisk.c: Likewise.
47806 * util/i386/pc/getroot.c: Likewise.
47807 * util/i386/pc/pupa-mkimage.c: Likewise.
47808 * util/i386/pc/pupa-setup.c: Likewise.
47809
e6eced71 478102004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47811
47812 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47813 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47814 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47815 reading and reset it after reading.
47816 (pupa_ext2_close): Return PUPA_ERR_NONE.
47817
47818 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47819 Correct value.
47820 (struct linux_kernel_header): Add kernel_version and
47821 initrd_addr_max.
47822 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47823 pupa_file_read succeeds.
47824 (pupa_rescue_cmd_initrd): Implement.
47825
5aded270 478262003-12-03 Marco Gerards <metgerards@student.han.nl>
47827
47828 * fs/ext2.c (pupa_ext2_label): New function.
47829 (pupa_ext2_fs): Added label.
47830 * fs/fat.c (pupa_fat_label): New function.
47831 (pupa_fat_fs): Added label.
47832 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47833
47834 * kern/misc.c (pupa_strndup): New function.
47835 * include/pupa/misc.h (pupa_strndup): New prototype.
47836
47837 * include/pupa/normal.h: Include <pupa/err.h>.
47838 (pupa_set_history): New prototype.
47839 (pupa_iterate_commands): New prototype.
47840 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47841 <pupa/disk.h>, <pupa/file.h>.
47842 (hist_size): New variable.
47843 (hist_lines): Likewise.
47844 (hist_end): Likewise.
47845 (hist_used): Likewise.
47846 (pupa_set_history): New function.
47847 (pupa_history_get): Likewise.
47848 (pupa_history_add): Likewise.
47849 (pupa_history_replace): Likewise.
47850 (pupa_tab_complete): Likewise.
47851 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47852 completion shows partitionnames while completing partitions, this
47853 feature was suggested by Jeff Bailey.
47854 * normal/command.c (pupa_iterate_commands): New function.
47855 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47856 (pupa_normal_init): Initialize history buffer.
47857 (PUPA_MOD_INIT): Likewise.
47858 (pupa_normal_fini): Free the history buffer.
47859 (PUPA_MOD_FINI): Likewise.
47860
47861 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47862 key.
47863
47864 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47865 * configure.ac [i386]: Check for regparam bug.
47866 (NESTED_FUNC_ATTR) [! i386]: Defined.
47867
1f7315a3 478682003-11-17 Marco Gerards <metgerards@student.han.nl>
47869
47870 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47871 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47872 (pupa_emu_SOURCES): New variable.
47873 (pupa_emu_LDFLAGS): Likewise.
47874 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47875 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47876 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47877 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47878 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47879 (pupa_jmp_buf): New typedef.
47880 (pupa_setjmp) [PUPA_UTIL]: New macro.
47881 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47882 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47883 (pupa_refresh): New prototype.
47884 * include/pupa/util/getroot.h: New file.
47885 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47886 it.
47887 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47888 (pupa_rescue_cmd_cat): Likewise.
47889 (pupa_rescue_cmd_ls): Likewise.
47890 (pupa_rescue_cmd_testload): Likewise.
47891 (pupa_rescue_cmd_lsmod): Likewise.
47892 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47893 * normal/menu.c (run_menu): Likewise.
47894 * kern/term.c (pupa_cls): Likewise.
47895 (pupa_refresh): New function.
47896 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47897 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47898 * util/console.c: New file.
f19dbdb7 47899
1f7315a3 47900 * util/i386/pc/getroot.c: New file.
47901 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47902 (pupa_putchar): New function.
47903 (pupa_refresh): Likewise.
47904 (xgetcwd): Function moved to ...
47905 (strip_extra_slashes): Likewise.
47906 (get_prefix): Likewise.
f19dbdb7 47907 * util/i386/pc/getroot.c: ... here.
1f7315a3 47908 (find_root_device): Function moved and renamed to...
47909 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47910 Changed all callers.
47911 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47912 and renamed to...
47913 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47914 Changed all callers.
47915 * util/misc.c (pupa_memalign): New function.
47916 (pupa_mm_init_region): Likewise.
47917 (pupa_register_exported_symbols): Likewise.
47918 (pupa_putchar): Function removed.
47919 * util/pupa-emu.c: New file.
47920
9a5c1ade 479212003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47922
47923 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47924 (_multiboot_mod_SOURCES): New variable.
47925 (_multiboot_mod_CFLAGS): Likewise.
47926 * loader/i386/pc/multiboot.c: New file.
47927 * include/pupa/i386/pc/multiboot.h: Likewise.
47928 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47929 (pupa_multiboot_real_boot): New function.
47930 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47931 (pupa_multiboot_real_boot): New prototype.
47932 (pupa_rescue_cmd_multiboot): Likewise
47933 (pupa_rescue_cmd_module): Likewise.
47934
47935 * kern/loader.c (pupa_loader_set): Continue when
47936 pupa_loader_unload_func() fails.
47937 (pupa_loader_unset): New function.
47938 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47939
47940 * kern/misc.c (pupa_stpcpy): New function.
47941 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47942
8e72a9c0 479432003-11-12 Marco Gerards <metgerards@student.han.nl>
47944
47945 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47946 for available extensions.
47947
47948 * include/pupa/i386/pc/time.h: New file.
47949 * kern/disk.c: Include <pupa/machine/time.h>.
47950 (PUPA_CACHE_TIMEOUT): New macro.
47951 (pupa_last_time): New variable.
47952 (pupa_disk_open): Flush the cache when there was a timeout.
47953 (pupa_disk_close): Reset the timer.
47954 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47955 pupa_currticks.
47956 * util/misc.c: Include <sys/times.h>
47957 (pupa_get_rtc): New function.
47958
c4adbd32 479592003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47960
47961 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47962 as blocks.
47963 (pupa_ext2_get_file_block): Use blocks member.
47964
47965 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47966 first block. Return -1 instead of pupa_errno on error.
47967
bfd30f06 479682003-10-27 Marco Gerards <metgerards@student.han.nl>
47969
47970 * README: In the pupa-mkimage example use _chain instead of chain
47971 and ext2 instead of fat.
47972 * TODO: Replace ext2fs with jfs as an example. Add an item for
47973 adding journal playback for ext2fs.
47974 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47975 (pkgdata_MODULES): Added ext2.mod.
47976 (ext2_mod_SOURCES): New variable.
47977 (ext2_mod_CFLAGS): Likewise.
47978 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47979 * include/pupa/misc.h (pupa_strncpy): New prototype.
47980 (pupa_strcat): Likewise.
47981 (pupa_strncmp): Likewise.
47982 * kern/misc.c (pupa_strcat): Enable function.
47983 (pupa_strncpy): New function.
47984 (pupa_strncmp): Likewise.
47985 * fs/ext2.c: New file.
f19dbdb7 47986
bfd30f06 47987 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47988 when the read failed before retrying.
47989 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47990 (_FILE_OFFSET_BITS): Likewise.
47991 * configure.ac: Added AC_SYS_LARGEFILE.
47992
98d15063 479932003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47994
47995 * genmk.rb (PModule#rule): Make sure to get only symbol names
47996 from the output of nm.
59cad637 47997 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 47998
18d9c7cd 479992003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48000
48001 I forgot to check in these changes for a long time. This adds
48002 incomplete support for VGA console, and this is still very
48003 buggy. Also, a lot of consideration is required for I18N,
48004 UNICODE, and VGA font issues. Therefore, assume that this is
48005 such that "better than nothing".
f19dbdb7 48006
18d9c7cd 48007 * font/manager.c: New file.
48008 * include/pupa/font.h: Likewise.
48009 * include/pupa/i386/pc/vga.h: Likewise.
48010 * term/i386/pc/vga.c: Likewise.
48011 * util/unifont2pff.rb: Likewise.
48012
48013 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
48014 (pkgdata_MODULES): Added vga.mod and font.mod.
48015 (vga_mod_SOURCES): New variables.
48016 (vga_mod_CFLAGS): Likewise.
48017 (font_mod_SOURCES): Likewise.
48018 (font_mod_CFLAGS): Likewise.
48019
48020 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
48021
48022 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 48023 (struct pupa_term): Added init and fini.
18d9c7cd 48024 Changed the argument of putchar to pupa_uint32_t.
48025
48026 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
48027 (pupa_console_real_putchar): New prototype.
48028 (pupa_console_putchar): Removed.
48029 (pupa_console_checkkey): Exported.
48030 (pupa_console_getkey): Likewise.
48031
48032 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
48033 characters.
48034
48035 * kern/term.c (pupa_term_set_current): Rewritten.
48036 (pupa_putchar): Likewise.
48037 (pupa_putcode): New function.
48038
48039 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
48040 (pupa_console_real_putchar): ... this.
48041 (pupa_vga_set_mode): New function.
48042 (pupa_vga_get_font): Likewise.
48043
48044 * normal/command.c: Include pupa/term.h.
48045 (terminal_command): New function.
48046 (pupa_command_init): Register the command "terminal".
48047
48048 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
48049 (DISP_UP): Likewise.
48050 (DISP_RIGHT): Likewise.
48051 (DISP_DOWN): Likewise.
48052 (DISP_HLINE): Likewise.
48053 (DISP_VLINE): Likewise.
48054 (DISP_UL): Likewise.
48055 (DISP_UR): Likewise.
48056 (DISP_LL): Likewise.
48057 (DISP_LR): Likewise.
48058
48059 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 48060
977329f5 480612003-02-08 NIIBE Yutaka <gniibe@m17n.org>
48062
48063 * util/resolve.c (pupa_util_resolve_dependencies): BUG
48064 FIX. Reverse the path_list.
48065
48066 * include/pupa/normal.h: Export pupa_register_command and
48067 pupa_unregister_command.
48068
48069 * hello/hello.c (pupa_cmd_hello): New module.
48070 * conf/i386-pc.rmk: Added hello.mod.
48071
1f5ab428 480722003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
48073
48074 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 48075
1f5ab428 48076 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
48077 (compress_kernel): New variable.
48078 (generate_image): Heavily modified to support compressing a
48079 large part of the core image.
48080
48081 * util/misc.c (pupa_util_read_image): Fix a file descriptor
48082 leak.
48083 (pupa_util_load_image): New function.
48084
48085 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
48086 (pupa_compressed_size): New variable.
48087 (codestart): Enable Gate A20 here.
48088 Decompress the compressed part of the core image.
48089 Rearrange the code to put functions and variables which are
48090 required for initialization in the non-compressed part.
48091 Include lzo1x.S.
48092
48093 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
48094 here.
48095
48096 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
48097
f19dbdb7 48098 * include/pupa/i386/pc/kernel.h
1f5ab428 48099 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
48100 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
48101 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48102 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48103 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
48104
48105 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
48106
48107 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
48108 (Utility#rule): Likewise.
48109
48110 * configure.ac: Check if LZO is available.
48111
ce5bf700 481122003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
48113
48114 * include/pupa/normal.h: New file.
48115 * include/pupa/setjmp.h: Likewise.
48116 * include/pupa/i386/setjmp.h: Likewise.
48117 * normal/cmdline.c: Likewise.
48118 * normal/command.c: Likewise.
48119 * normal/main.c: Likewise.
48120 * normal/menu.c: Likewise.
48121 * normal/i386/setjmp.S: Likewise.
f19dbdb7 48122
ce5bf700 48123 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
48124 (pupa_rescue_cmd_initrd): Likewise.
48125
48126 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
48127 Likewise.
48128
48129 * kern/i386/pc/startup.S (translation_table): New variable.
48130 (translate_keycode): New function.
48131 (pupa_console_getkey): Call translate_keycode.
48132
48133 * kern/rescue.c (attempt_normal_mode): New function.
48134 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
48135 it failed, print a message.
48136
48137 * kern/mm.c (pupa_real_malloc): Print more information when a
48138 free magic is broken.
48139 (pupa_free): If the first free header is not free actually, set
48140 it to P.
48141
48142 * kern/main.c (pupa_load_normal_mode): Just load the module
48143 "normal".
48144 (pupa_main): Don't print the message
48145 "Entering into rescue mode..." here.
48146
48147 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
48148 Declared.
48149 (pupa_rescue_cmd_initrd): Likewise.
48150 (pupa_rescue_cmd_initrd): Likewise.
48151
48152 * include/pupa/symbol.h (FUNCTION): Specify the type.
48153 (VARIABLE): Likewise.
48154
48155 * include/pupa/err.h (pupa_err_t): Added
48156 PUPA_ERR_UNKNOWN_COMMAND.
48157
48158 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
48159 (pupa_dl_get_prefix): Likewise.
48160
48161 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
48162 Added _chain.mod and _linux.mod instead of chain.mod and
48163 linux.mod.
48164 (chain_mod_SOURCES): Renamed to ...
48165 (_chain_mod_SOURCES): ... this.
48166 (chain_mod_CFLAGS): Renamed to ...
48167 (_chain_mod_CFLAGS): ... this.
48168 (linux_mod_SOURCES): Renamed to ...
48169 (_linux_mod_SOURCES): ... this.
48170 (linux_mod_CFLAGS): Renamed to ...
48171 (_linux_mod_CFLAGS): ... this.
48172 (normal_mod_SOURCES): New variable.
48173 (normal_mod_CFLAGS): Likewise.
48174 (normal_mod_ASFLAGS): Likewise.
48175
481762003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
48177
48178 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
48179 possible.
48180
fe6b695a 48181 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 48182 recursively.
48183 (pupa_dl_unref): Unrefer depending modules recursively.
48184 Don't call pupa_dl_unload implicitly, because PUPA can crash if
48185 a module is unloaded before one depending on that module is
48186 unloaded.
48187 (pupa_dl_unload): Unload depending modules explicitly,
48188 if possible.
48189
c04da074 481902003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
48191
48192 * include/pupa/i386/pc/linux.h: New file.
48193 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 48194
c04da074 48195 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
48196 Removed.
48197 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
48198 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
48199 of PUPA_CHAINLOADER_BOOT_SECTOR.
48200
48201 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
48202 (pupa_linux_prot_size): New variable.
48203 (pupa_linux_tmp_addr): Likewise.
48204 (pupa_linux_real_addr): Likewise.
48205 (pupa_linux_boot_zimage): New function.
48206 (pupa_linux_boot_bzimage): Likewise.
48207
48208 * kern/i386/pc/init.c (struct mem_region): New structure.
48209 (MAX_REGIONS): New macro.
48210 (mem_regions): New variable.
48211 (num_regions): Likewise.
48212 (pupa_os_area_addr): Likewise.
48213 (pupa_os_area_size): Likewise.
48214 (pupa_lower_mem): Likewise.
48215 (pupa_upper_mem): Likewise.
48216 (add_mem_region): New function.
48217 (compact_mem_regions): Likewise.
48218 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
48219 the size of the conventional memory and that of so-called upper
48220 memory (before the first memory hole).
48221 Instead of adding each found region to free memory, use
48222 add_mem_region and add them after removing overlaps.
48223 Also, add only 1/4 of the upper memory to free memory. The rest
48224 is used for loading OS images. Maybe this is ad hoc, but this
48225 makes it much easier to relocate OS images when booting.
48226
48227 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
48228 (pupa_enter_rescue_mode): Don't register initrd and module.
48229
48230 * kern/mm.c: Include pupa/dl.h.
48231
48232 * kern/main.c: Include pupa/file.h and pupa/device.h.
48233
48234 * kern/loader.c (pupa_loader_load_module_func): Removed.
48235 (pupa_loader_load_module): Likewise.
48236
48237 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
48238 ``.o''.
48239
48240 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
48241 (pupa_linux_tmp_addr): Likewise.
48242 (pupa_linux_real_addr): Likewise.
48243 (pupa_linux_boot_zimage): Likewise.
48244 (pupa_linux_boot_bzimage): Likewise.
48245
48246 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
48247 (pupa_upper_mem): Likewise.
48248 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
48249 module is too dangerous.
48250
48251 * include/pupa/loader.h (pupa_os_area_addr): Declared.
48252 (pupa_os_area_size): Likewise.
48253 (pupa_loader_set): Remove the first argument. Loader doesn't
48254 manage modules or initrd any longer.
48255 (pupa_loader_load_module): Removed.
48256
48257 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
48258 (linux_mod_SOURCES): New variable.
48259 (linux_mod_CFLAGS): Likewise.
48260
a13f9237 482612003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
48262
48263 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
48264 the length of a blocklist correctly.
48265
48266 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
48267 Use ioctl only if the OS file is a block device.
48268 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
48269 not very useful for normal files.
48270
48271 * kern/main.c (pupa_set_root_dev): New function.
48272 (pupa_load_normal_mode): Likewise.
48273 (pupa_main): Call those above.
48274
48275 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
48276 pupa_uint16_t.
48277
48278 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
48279
a5ffe966 482802003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
48281
48282 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
48283 (setup): Configure the installed partition information and the
48284 dl prefix.
48285
48286 * loader/i386/pc/chainloader.c (my_mod): New variable.
48287 (pupa_chainloader_unload): New function.
48288 (pupa_rescue_cmd_chainloader): Refer itself.
48289 (PUPA_MOD_INIT): Save its own module in MY_MOD.
48290
48291 * kern/i386/pc/startup.S (install_partition): Removed.
48292 (version_string): Likewise.
48293 (config_file): Likewise.
48294 (pupa_install_dos_part): New variable.
48295 (pupa_install_bsd_part): Likewise.
48296 (pupa_prefix): Likewise.
48297 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
48298
48299 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
48300 and pupa/misc.h.
48301 (make_install_device): New function.
48302 (pupa_machine_init): Set the dl prefix.
48303
48304 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
48305 (buf): Renamed to ...
48306 (linebuf): ... this.
48307 (pupa_rescue_cmd_prefix): New function.
48308 (pupa_rescue_cmd_insmod): Likewise.
48309 (pupa_rescue_cmd_rmmod): Likewise.
48310 (pupa_rescue_cmd_lsmod): Likewise.
48311 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
48312 rmmod and lsmod.
48313
48314 * kern/mm.c (pupa_memalign): If failed even after invalidating
48315 disk caches, unload unneeded modules and retry.
48316
48317 * kern/misc.c (pupa_memmove): New function.
48318 (pupa_memcpy): Removed.
48319 (pupa_strcpy): New function.
48320 (pupa_itoa): Made static.
48321
48322 * kern/dl.c (pupa_dl_iterate): New function.
48323 (pupa_dl_ref): Likewise.
48324 (pupa_dl_unref): Likewise.
48325 (pupa_dl_unload): Return if succeeded or not.
48326 (pupa_dl_unload_unneeded): New function.
48327 (pupa_dl_unload_all): Likewise.
48328 (pupa_dl_init): Renamed to ...
48329 (pupa_dl_set_prefix): ... this.
48330 (pupa_dl_get_prefix): New function.
48331
48332 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48333 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48334 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48335 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48336 (pupa_install_dos_part): Declared.
48337 (pupa_install_bsd_part): Likewise.
48338 (pupa_prefix): Likewise.
48339 (pupa_boot_drive): Likewise.
48340
48341 * include/pupa/types.h: Fix a typo.
48342
48343 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48344 pupa_memmove.
48345 (pupa_memmove): Declared.
48346 (pupa_strcpy): Likewise.
48347
48348 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48349 pupa_mod_init takes one argument, its own module.
48350 (pupa_dl_unload_unneeded): Declared.
48351 (pupa_dl_unload_all): Likewise.
48352 (pupa_dl_ref): Likewise.
48353 (pupa_dl_unref): Likewise.
48354 (pupa_dl_iterate): Likewise.
48355 (pupa_dl_init): Renamed to ...
48356 (pupa_dl_set_prefix): ... this.
48357 (pupa_dl_get_prefix): Declared.
48358
48359 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 48360 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 48361 unloaded.
48362 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48363 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48364
48365 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48366 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48367
012d7999 483682003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48369
48370 * util/i386/pc/pupa-setup.c (setup): Define the internal
48371 function find_first_partition_start at the top level, because GCC
48372 3.0.x cannot compile internal functions in deeper scopes
48373 correctly.
48374 (find_root_device): Use lstat instead of stat.
48375 Don't follow symbolic links.
48376 Fix the path-constructing code.
48377
48378 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48379 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48380 by a BLKGETSIZE ioctl first, because block devices don't fill
48381 the member st_mode of the structure stat on Linux.
48382 [__linux__] (linux_find_partition): Use a temporary buffer
48383 REAL_DEV for the working space. Copy it to DEV before returning.
48384 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48385 buffer cache consistent.
48386 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48387 strncmp. The previous value was merely wrong.
48388 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48389
48390 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48391 FAT size is 12. The previous value was merely wrong.
48392
48393 * kern/main.c (pupa_main): Don't split the starting message from
48394 newlines.
48395
48396 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48397 LF, because BIOS goes crazy about character attributes in this
48398 case.
48399
1cc73a62 484002003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48401
48402 * include/i386/pc/util/biosdisk.h: New file.
48403 * util/i386/pc/biosdisk.c: Likewise.
48404 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 48405
1cc73a62 48406 * Makefile.in (INCLUDE_DISTFILES): Added
48407 include/pupa/i386/pc/util/biosdisk.h.
48408 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48409 directory util/i386/pc.
48410 (install-local): Added a rule for sbin_UTILITIES.
48411 (uninstall): Likewise.
48412
48413 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48414
48415 * util/misc.c (xrealloc): New function.
48416 (pupa_malloc): Likewise.
48417 (pupa_free): Likewise.
48418 (pupa_realloc): Likewise.
48419 (pupa_stop): Likewise.
48420 (pupa_putchar): Likewise.
48421
48422 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48423
48424 * include/pupa/util/misc.h (xrealloc): Declared.
48425
48426 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48427 macro.
48428 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48429 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48430
48431 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48432 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48433
48434 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48435 way should be implemented.
48436 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48437
48438 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48439 the size of NAME for safety.
48440 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48441 0x88.
48442
48443 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48444 (pupa_setup_SOURCES): Likewise.
48445
48446 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48447
08b70fe8 484482002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48449
48450 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48451 bunch of pushl's from pusha, because this destroys the return
48452 value.
48453
62ddcc8f 484542002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48455
48456 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48457 This means that any missing prototypes could be fatal. Also, you
48458 must take care when writing assembly code. See the comments at
48459 the beginning of startup.S, for more details.
f19dbdb7 48460
62ddcc8f 48461 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48462 compilation mechanism.
48463 (pupa_chainloader_real_boot): Likewise.
48464 (pupa_biosdisk_rw_int13_extensions): Likewise.
48465 (pupa_biosdisk_rw_standard): Likewise.
48466 (pupa_biosdisk_check_int13_extensions): Likewise.
48467 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48468 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48469 (pupa_get_memsize): Likewise.
48470 (pupa_get_mmap_entry): Likewise.
48471 (pupa_console_putchar): Likewise.
48472 (pupa_console_setcursor): Likewise.
48473 (pupa_getrtsecs): Use pushl instead of push.
48474
48475 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48476 memory instead of the stack for a mmap entry, because some
48477 BIOSes may ignore the maximum size and overflow.
48478
48479 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48480
48481 * genmk.rb (PModule#rule): Compile automatically generated
48482 sources with module-specific CFLAGS as well as other sources.
48483
9962ed99 484842002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48485
48486 * configure.ac: Check ld.
48487 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48488 respectively, before checking endianness and sizes.
48489
48490 * Makefile.in (LD): New variable.
f19dbdb7 48491
abdfc3c5 484922002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48493
48494 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48495
6a161fa9 484962002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48497
48498 * Changelog: New file.
48499