]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Add serial on ARC platform.
[grub2.git] / ChangeLog
CommitLineData
b04b5990
VS
12013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Add serial on ARC platform.
4
88d2f302
VS
52013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
8 commit.
9
86eb23bc
VS
102013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * tests/partmap_test.in: Add missing double semicolon.
13
eec3bb75
VS
142013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15
16 * util/grub-mkrescue.in: Fix loongson filename.
17
e0810df3
VS
182013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19
20 * util/grub-mkrescue.in: Move all files that don't have a location
21 set in stone under /boot/grub. Use ISO hard links rather than copies
22 to save some space.
23
65a6b30b
VS
242013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
27 bogus SLOF values.
28
6aff0107
VS
292013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
30
31 Make check work on mips-arc.
32
5e013e56
VS
332013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
34
35 * util/grub-mkrescue.in: Alias sashARCS as sash.
36
d1989e2e
VS
372013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
38
39 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
40 it's serial.
41
1a25e72c
VS
422013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * util/grub-install.in: Fix target fo qemu_mips.
45 Fix extension on EFI.
46
a59a9826
VS
472013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
50 in front of chosen entry to mark it even if highlighting is lost.
51
1a40f80c
VS
522013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
55 gfxpayload=keep if cbfb is active.
56
e343549c
VS
572013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
58
59 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
60
45fbd9a2
VS
612013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
62
63 Add missing video ids to coreboot and ieee1275 video.
64
ab1440bd
VS
652013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
66
67 * util/grub-mkrescue.in: Add mips-arc support.
68
cdeb8324
VS
692013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
72
8528c879
VS
732013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
74
75 Move mips-arc link address. Previous link address was chosen
76 in belief that RAM on SGI platforms grows down while in fact it
77 grows up from an unusual base.
78
17fca573
VS
792013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
80
81 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
82 Fix a type which prevented CD-ROM and floppy boot.
83
d178788e
VS
842013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
85
86 Support coreboot framebuffer.
87
88 * grub-core/video/i386/coreboot/cbfb.c: New file.
89
fe4c3e7e
VS
902013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
91
92 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
93 detecting too small regions.
94
ec2dd179
VS
952013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
96
97 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
98
872dac83
VS
992013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
100
101 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
102 Remove dprintf.
103 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
104
90ec4b7f
VS
1052013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
106
107 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
108 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
109 * grub-core/loader/powerpc/ieee1275/linux.c
110 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
111
f32555dd
VS
1122013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
113
114 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
115 Look for /boot-rom as well as /rom/boot-rom.
116
38649799
VS
1172013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
118
119 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
120 handling when creating text_layer failed.
121 * grub-core/video/video.c (grub_video_create_render_target):
122 Set result to 0 on error.
123 (grub_video_delete_render_target): Do not dereference NULL.
124
aeace7f7
VS
1252013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
126
127 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
128 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
129 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
130 (grub_linux_load64): Mask out 2 high bits.
131
4eafa175
AB
1322013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
133
134 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
135 more place.
136
daaa64bd
VS
1372013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
138
139 Add support for pseries and other bootinfo machines to grub-mkrescue.
140
141 Tested by: Paulo Flabiano Smorigo.
142
d0d2daa6
VS
1432013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
144
145 * util/grub-mkrescue.in: Add GPT for EFI boot.
146
b193e100
VS
1472013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
148
149 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
150 It improves performance in qemu.
151
a0f8f3ac
VS
1522013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
153
154 * build-aux/snippet: Add missing gnulib files.
155
284df0e2
AB
1562013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
157
158 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
159
740201f3
AB
1602013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
161
162 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
163
a7e03923
PJ
1642013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1652013-04-15 Peter Jones <pjones@redhat.com>
166
167 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
168 sectors.
169 Based on patch by Peter Jones.
170
25fc51a8
VS
1712013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
172
173 Fix DMRAID partition handling.
174
88017d47
VS
1752013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
176
177 * tests/grub_cmd_date.in: Skip on sparc64.
178
fa7d914e
VS
1792013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
180
181 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
182 firmware error messages.
183
cbe57a48
VS
1842013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
185
186 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
187 source and destination differ.
188
21aecce0
VS
1892013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
190
191 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
192 detection.
193
25092d29
VS
1942013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
195
196 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
197 match config-util.h to avoid warnings and increase compatibility.
198
79451522 1992013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 2002013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
201
202 Add option to compress files on install/image creation.
203
78b7d77b
VS
2042013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
205
206 * docs/grub-dev.texi: Rearrange menu to match the section order.
207 Reported by: Bryan Hundven.
208
cc2fa5ec
VS
2092013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
210
211 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
212
b49fe879
VS
2132013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
214
215 Move GRUB out of system area when using xorriso 1.2.9 or later.
216
5351da81
VS
2172013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
218
219 * tests/grub_cmd_date.in: Add missing exit 1.
220
c9d586ea
VS
2212013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
222
223 * tests/partmap_test.in: Skip on sparc64.
224
3f729741
VS
2252013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
226
227 Support grub-shell on sparc64.
228
8ca86b3a
VS
2292013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
230
231 Support mkrescue on sparc64.
232
aa1af9bb
VS
2332013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
234
235 Allow IEEE1275 ports on path even if it wasn't detected automatically.
236 Needed on OpenBIOS due to incomplete device tree.
237
ac4fea79
VS
2382013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
239
240 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
241 would be otherwise excluded.
242
2432013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
244
245 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
246 Inline name defines used only once.
247
fe22b071
VS
2482013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
249
250 Fix memory leaks in ofnet.
251 Reported by: Francesco Lavra.
252
9d21381b
VS
2532013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
254
255 * docs/man/grub-glue-efi.h2m: Add missing file.
256
07aec23c
VS
2572013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
258
259 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
260
67ab8353
VS
2612013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
262
263 Better support Apple Intel Macs on CD.
264
ba44ca6d
VS
2652013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
266
267 Replace stpcpy with grub_stpcpy in tools.
268
bbdd6305
VS
2692013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
270
271 Handle Japanese special keys.
272 Reported by: Hiroyuki YAMAMORI.
273 Codes supplied by: Hiroyuki YAMAMORI.
274
8573d302
VS
2752013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * util/grub-mkimage.c: Document memdisk implying --prefix.
278
d70dbab7
VS
2792013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
280
281 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
282 much we can do about it anyway.
283
51a4c3e3
AN
2842013-04-12 Aleš Nesrsta <starous@volny.cz>
285
286 Fix handling of split transfers.
287
92c8f58d
VS
2882013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
289
290 * grub-core/net/http.c: Fix bad free.
291
b7d17a49
VS
2922013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
293
294 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
295 than buffer size.
296
a3d566d4
VS
2972013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
298
299 Disable partmap check on i386-ieee1275 due to openfirmware issues.
300
a936af56
VS
3012013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
302
303 * tests/util/grub-shell.in: Fix it on powerpc.
304
51212234
VS
3052013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
306
307 Turn off QEMU ACPI-way since new releases don't have shutdown port
308 anymore.
309
a21eec9e
VS
3102013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * docs/grub.texi: Update coreboot status info.
313
e3734b84
VS
3142013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
315
316 * tests/grub_cmd_date.in: New test for datetime.
317
f9d40055
VS
3182013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * tests/partmap_test.in: Fix missing qemudisk setting.
321
dbc56d8f
VS
3222013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
323
324 Support i386-ieee1275 grub-mkrescue and make check on it.
325
a79b8a15
VS
3262013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
327
328 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
329 feature for it.
330
48f39bb4
VS
3312013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
332
333 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
334 GRUB_CMDLINE_XEN_DEFAULT.
335 Reported by: Marc Warne (GigaTux) <gigatux>
336
053cfcdd
VS
3372013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
338
339 Import new gnulib.
340
93cd84df
VS
3412013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
342
343 Use ACPI shutdown intests as traditional port was removed.
344
f4b1fa4f
AB
3452013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
346
347 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
348 distinction.
349
49818a59
VS
3502013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
351
352 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
353 Fix few warining messages and leaks while on it.
354
9277a306
AB
3552013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
356
357 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
358 links under grub-core/lib/libgcrypt-grub/mpi.
359
d5e2a158
VS
3602013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
361
362 Fix ia64-efi image generation on big-endian machines. Deduplicate
363 some code while on it.
364 Reported by: Leif Lindholm.
365
18866643
AB
3662013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
367
368 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
369 as extra_dist.
370
ca53deb8
AB
3712013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
372
373 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
374
d4c4b8e1
BH
3752013-04-08 Bryan Hundven <bryanhundven@gmail.com>
376
377 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
378 texinfo-5.1.
379
47043f95
VS
3802013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * grub-core/normal/term.c: Few more fixes for menu entry editor
383 rendering.
384 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
385
a3216068
VS
3862013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * grub-core/normal/term.c: Few more fixes for menu entry editor
389 rendering.
390 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
391
21026747
AB
3922013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
393
394 * conf/Makefile.extra-dist (EXTRA_DIST): Add
395 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
396
59624ca8
AB
3972013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
398
399 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
400 instead of hardcoding grub.mo.
401
1f44478c
FN
4022013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
403
404 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
405
eeada7b1
VS
4062013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
407
408 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
409 grub-core/disk/geli.c.
410
132867de
VS
4112013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
412
413 * util/grub-mkfont.c: Prefer enum to #define.
414
de73de17
VS
4152013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
418
1865baa7
VS
4192013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
420
421 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
422
ce7d92a9
VS
4232013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
424
425 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
426
52eab656
VS
4272013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
428
429 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
430
98b23b95
VS
4312013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
432
433 * include/grub/bsdlabel.h: Use enums.
434
0467a5dd
VS
4352013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
436
437 Move GRUB_CHAR_BIT to types.h.
438
16cc9f03
AB
4392013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
440
441 * docs/grub.texi: Document more user commands.
442
3152aecb
AB
4432013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
444
445 * docs/grub.texi: Document menuentry --id option.
446
c506fc30
FL
4472013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
448
449 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
450
aa428238
VS
4512013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
452
453 Unify file copying setup across different install scripts. Add
454 options for performing partial install.
455
efe0cdda
PJ
4562013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4572013-04-04 Peter Jones <pjones@redhat.com>
458
459 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
460
f75835bd
VS
4612013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
462
463 Use TSC as a possible time source on i386-ieee1275.
464
2cd5ce6c
VS
4652013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
466
467 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
468 Init err.
469
c9625630
VS
4702013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
471
472 * util/grub-setup.c (setup): Handle some corner cases.
473
be008941
VS
4742013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
475
476 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
477
1a78d573
VS
4782013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
479
480 * grub-core/commands/verify.c: Save verified file to avoid it being
481 tampered with after verification was done.
482
db8ff59f
VS
4832013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
484
485 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
486 reported width by one to compensate for curesor algorithm problem.
487
91bf46b1
VS
4882013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
489
490 Fix screen corruption in menu entry editor and simplify the code
491 flow while on it.
492
a7b1d693
AB
4932013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
494
495 * util/grub-mount.c (fuse_init): Return error if fuse_main
496 failed.
497
31df9ad8
FL
4982013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
499
500 * include/grub/elf.h: Add missing ARM relocation codes and fix
501 existing ones.
502
07f392eb
VT
5032013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
504
505 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
506
9efd73ec 5072013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
5082013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
509
510 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
511 into account when calculating radius.
512
5132013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
514
515 * grub-core/gfxmenu/view.c: Fix off-by-one error.
516
4985ddaa
VT
5172013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
518
519 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
520
8c3635ff
RS
5212013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
522
523 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
524 missing closing bracket.
525
74a35e69
RS
5262013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
527
528 * INSTALL: Mention xorriso requirement.
529
40f1c000
AB
5302013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
531
532 * grub-core/commands/verify.c: Fix hash algorithms values for
533 the first three hashes - they start with 1, not with 0.
534
e75fdee4
VS
5352013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
536
537 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
538 Try terminating EFI services several times due to quirks in some
539 implementations.
540
33028f4c
CW
5412013-03-26 Colin Watson <cjwatson@ubuntu.com>
542
543 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
544 skipping Event, Device, Processor, PowerRes, ThermalZone, and
545 BankField extended opcodes.
546 (get_sleep_type): Add minimal scope handling (just enough to
547 handle setting the scope to the root path).
548 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
549 * include/grub/acpi.h: Add enumeration values for Event, Device,
550 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
551
33871a10
VT
5522013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
553
554 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
555 memory leak.
556
8990963a
VS
5572013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
558
559 * grub-core/disk/ahci.c: Give more time for AHCI request.
560
daae8f9e
VS
5612013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
562
563 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
564 command.
565
6a7fb94b
VS
5662013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
567
568 Replace the region at 0 from coreboot tables to available in BSD
569 memory map.
570
ff99babd
VS
5712013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
572
573 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
574 non-BIOS platforms.
575
30d6b1b2
VS
5762013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
577
578 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
579 platforms.
580
6ccd0b31
VS
5812013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
584 handling of multi-device filesystems.
585
23c9cc04
VS
5862013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
587
588 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
589 platforms.
590
ce50dbd7
VS
5912013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
592
593 Add new 'proc' filesystem framework and put luks_script into it.
594
d975e8d5
VS
5952013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
596
597 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
598 and qemu.
599
e73ba5e8
VS
6002013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
601
602 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
603
92750e4c
VS
6042013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
605
606 Add ability to generate newc additions on runtime.
607
0ec45a68
VS
6082013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
609
610 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
611 description.
612
320abd43
VS
6132013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
614
615 * po/POTFILES.in: Regenerate.
616
d7a6506e
VS
6172013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
618
619 * grub-core/commands/verify.c (hashes): Add several hashes
620 from the spec.
621
8fe05def
VS
6222013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
623
624 Slight improve in USB-related boot-time checkpoints.
625
524e2766
VS
6262013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * grub-core/commands/boottime.c: Fix copyright header.
629
cc19857a
VS
6302013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
631
632 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
633 coreboot tables content. Support for cbmemc.
634
ef8810e9
VS
6352013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
636
637 Fix a conflict between ports structures with 2 controllers of
638 same kind.
639
e9dabdfa
VS
6402013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * include/grub/boottime.h: Add missing file.
643
f6df57d2
VS
6442013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
645
646 Initialize USB ports in parallel to speed-up boot.
647
d745dda7
VS
6482013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
649
650 Fix USB devices not being detected when requested
651 due to delayed attach.
652
e5a2dd7b
VS
6532013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
654
e744219b
VS
655 Implement boot time analysis framework.
656
6572013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
658
659 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
660 descriptor to just receive it as argument rather than endpoint
661 address.
662
5dd6f587
VS
6632013-03-19 Aleš Nesrsta <starous@volny.cz>
664
665 Better estimate the maximum USB transfer size.
666
2f1071d5
VS
6672013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
668
669 Resend a packet if we got the wrong buffer in status.
670
46ecfc49
VS
6712013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
674 multiplication rather than division.
675
ea811130
VS
6762013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
677
678 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
679 than divisions.
680
d2789cf0
VS
6812013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
682
683 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
684 operations to have intended shifts and not divisions.
685
a9c94590
VS
6862013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
687
688 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
689 intended shifts rather than division.
690
84cfe81b
VS
6912013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
692
693 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
694 computation for some years before epoch. Avode confusing division
695 while on it.
696
21344ef6
VS
6972013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
698
699 * grub-core/video/i386/pc/vbe.c
700 (grub_video_vbe_print_adapter_specific_info): Replace division by
701 shifts.
702
3f2b4d1a
VS
7032013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
704
705 Adjust types in gdb module to have intended unsigned shifts rather than
706 signed divisions.
707
3dac5878
VS
7082013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
711 maximum size is 4G - 1 on hfs
712
5341c0fb
VS
7132013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
714
715 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
716
fc3ff2a2
VS
7172013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
718
719 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
720 function.
721
81455e8e
AB
7222013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
723
724 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
725 causing gcc error with gcc 4.7.1.
726
efd4f117
NZ
7272013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
728
729 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
730 dereference null pointer. While the code is technically correct, gcc
731 may eliminate a null check if pointer is already dereferenced.
732
e11645f4
NZ
7332013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
734
735 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
736 OOM check.
737 * grub-core/normal/term.c (read_terminal_list): Likewise.
738
77468368
VS
7392013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
740
741 Lift up core size limits on some platforms. Fix potential memory
742 corruption with big core on small memory systems. Document remaining
743 limits.
744
f6b58fe5
VS
7452013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
746
747 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
748 gotoxy to 0,0.
749
19ce697d
VS
7502013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
751
752 Remove all trampoline support. Add -Wtrampolines when
753 present. Remove symbols used for trampolines to make
754 link fail if trampolines are present.
755
73b5d90f
VS
7562013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
757
758 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
759 append out of its parent.
760
cb758e96
VS
7612013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
764 parent.
765
3188131f
VS
7662013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
767
768 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
769 all vars to a macro. All users updated.
770
e42b2514
VS
7712013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
772
773 * grub-core/disk/ieee1275/nand.c: Fix compilation on
774 i386-ieee1275.
775
83e1a1a1
VS
7762013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
777
778 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
779
1d5a880f
VS
7802013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
781
782 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
783
6e4146c4
VS
7842013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
785
786 Move to more hookless approach in IEEE1275 devices handling.
787
99fcda8a
VS
7882013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
789
790 * grub-core/kern/term.c (grub_term_normal_color),
791 (grub_term_highlight_color): Add back lost defaults.
792
73bf57e2
VS
7932013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
794
795 Make elfload not use hooks. Opt for flags and iterators instead.
796
7f8c105f
VS
7972013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
800 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
801
396d4091
VS
8022013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
803
804 * grub-core/script/execute.c (gettext_append): Remove nested functions.
805
8062013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
807
808 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
809 hook pass-through parameter. All users updated and unnested.
810
74a27421
VS
8112013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
812
813 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
814 out of its parent.
815
b46d4213
VS
8162013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
817
818 * grub-core/fs/hfs.c: Remove nested functions.
819
e114c3cc
VS
8202013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
821
822 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
823 the context through.
824 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
825
f9b7d780
VS
8262013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
827
828 * util/grub-editenv.c (list_variables): Move print_var out of its
829 parent.
830
ca9c2608
VS
8312013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
832
833 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
834 function.
835
5d983f5f
VS
8362013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
837
838 * grub-core/gentrigtables.c: Make tables const.
839
3056d3e7
VS
8402013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
841
842 Remove nested functions from videoinfo iterators.
843
e2303774
VS
8442013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
847 for 64-bit platforms.
848
f42e3a2f
VS
8492013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
852 a FOR_CHILDREN macro.
853
be174e5e
VS
8542013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
855
856 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
857 platform from firmware path.
858
0789b672
VS
8592013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
860
861 Enable linux16 on non-BIOS systems for i.a. memtest.
862
863 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
864 correctly.
865 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
866
005a9c32
VS
8672013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
868
869 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
870 Fix end of table condition.
871
ff2b3cd9
VS
8722013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
873
874 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
875 out of its parent.
876
4fc40ff8
VS
8772013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
878
879 * grub-core/fs/jfs.c: Remove nested functions.
880
be42d97a
VS
8812013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
882
883 * grub-core/fs/minix.c: Remove nested functions.
884
99373ce4
VS
8852013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * grub-core/fs/iso9660.c: Remove nested functions.
888
5aec2afe
VS
8892013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
890
891 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
892 of parent function.
893
6c69e691
VS
8942013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
895
896 * util/grub-fstest.c: Remove nested functions.
897
43c91882
VS
8982013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
899
900 * grub-core/loader/machoXX.c: Remove nested functions.
901
4eb8b756
CW
9022013-02-27 Colin Watson <cjwatson@ubuntu.com>
903
904 Remove nested functions from disk and file read hooks.
905
906 * include/grub/disk.h (grub_disk_read_hook_t): New type.
907 (struct grub_disk): Add read_hook_data member.
908 * include/grub/file.h (struct grub_file): Likewise.
909 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
910 argument.
911
912 Update all callers.
913
df6da5a5
AB
9142012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
915
916 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
917 Fix off by one error in enumerating extended partitions.
918
21aecde5
AB
9192013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
920
921 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
922 memory leak if device name is not found.
923
f1a19118
AB
9242013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
925
926 * grub-core/normal/menu_entry.c (update_screen): remove
927 unused variable `off' which caused scroll down arrow to be always shown.
928
958bfd20
AB
9292013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
930
931 * grub-core/normal/menu_entry.c (insert_string): fix off by one
932 access to unallocated memory.
933
b7b78edb
AB
9342013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
935
936 * Makefile.util.def: Add partmap/msdos.c to common library.
937 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
938 * grub-core/disk/ldm.c: Check for existence of
939 GRUB_PC_PARTITION_TYPE_LDM.
940
28d468d6
VS
9412013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
942
943 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
944 sizes and display sector size.
945
d55ffb02
VS
9462013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
947
948 Implement new command cmosdump.
949
b5ea6ce0
VS
9502013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
951
952 Support Openfirmware disks with non-512B sectors.
953
954 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
955 size of the disk.
956 * (grub_ofdisk_get_block_size): New function.
957 * (grub_ofdisk_prepare): Use the correct block size.
958 * (grub_ofdisk_read): Likewise.
959 * (grub_ofdisk_write): Likewise.
960 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
961 New proto.
962
cc0e476f
VS
9632013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
964
965 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
966
c5dbdc33
VS
9672013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
968
969 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
970 on first error.
971
3f078c0f
VS
9722013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
973
974 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
975 freeing it.
976
66a93674
VS
9772013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
978
979 Implement USBDebug (full USB stack variant).
980
c9f0c134
VS
9812013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
982
983 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
984 unless they have unexpected values.
985
cfe1288b
VS
9862013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
987
988 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
989 grub_print_error.
990
e42b9969
VS
9912013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
992
993 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
994 zero-out of port structure.
995
cf94fd62
VS
9962013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
997
998 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
999 of extended attributes.
1000
f81ef4b5
AB
10012013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
1002
1003 * util/grub-install.in: change misleading comment about
1004 device.map creation
1005
af18fdb4
VS
10062013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1007
1008 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
1009 when menu highlight color isn't set.
1010
08bcec50
M
10112013-01-27 C. Masloch <pushbx@38.de>
1012
1013 Improve FreeDOS direct loading support compatibility.
1014
1015 * include/grub/i386/relocator.h (grub_relocator16_state):
1016 New member ebp.
1017 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
1018 variable.
1019 (grub_relocator16_boot): Handle %ebp.
1020 * grub-core/lib/i386/relocator16.S: Likewise.
1021 * grub-core/loader/i386/pc/freedos.c:
1022 Load BPB to pass kernel which partition to load from.
1023 Check that kernel file is not too large.
1024 Set register dl to BIOS unit number as well.
1025
7782b8a6
CW
10262013-01-22 Colin Watson <cjwatson@ubuntu.com>
1027
1028 * util/grub-reboot.in (usage): Document the need for
1029 GRUB_DEFAULT=saved.
1030 * util/grub-set-default.in (usage): Likewise.
1031 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
1032
e661c180
VS
10332013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
1036 than defining WORDS_BIGENDIAN manually.
1037
1c22ca9a
VS
10382013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
1041 invariants.
1042
d44892fe
CW
10432013-01-21 Colin Watson <cjwatson@ubuntu.com>
1044
1045 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
1046 nested.
1047 (blit_comb: add_device_width): Likewise.
1048
5fdbaed1
CW
10492013-01-21 Colin Watson <cjwatson@ubuntu.com>
1050
1051 Remove nested functions from USB iterators.
1052
1053 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
1054 (grub_usb_controller_iterate_hook_t): Likewise.
1055 (grub_usb_iterate): Add hook_data argument.
1056 (grub_usb_controller_iterate): Likewise.
1057 (struct grub_usb_controller_dev.iterate): Likewise.
1058
1059 Update all implementations and callers.
1060
4250985a
VS
10612013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1062
1063 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
1064 margin when not needed.
1065
7d8848f3
VS
10662013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1067
bc136973 1068 Make color variables global instead of it being per-terminal.
7d8848f3
VS
1069
10702013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1071
bc136973
VS
1072 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
1073 asterisk.
7d8848f3 1074
ed12a003
CW
10752013-01-21 Colin Watson <cjwatson@ubuntu.com>
1076
1077 Fix powerpc and sparc64 build failures caused by un-nesting memory
1078 map iterators.
1079
6a0db449
CW
10802013-01-21 Colin Watson <cjwatson@ubuntu.com>
1081
1082 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
1083 parameter declarations.
1084
ccd86b21
VS
10852013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
1088
822b726b
VS
10892013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1090
1091 Improve spkmomdem reliability by adding a separator between bytes.
1092
115c2cc1
CW
10932013-01-21 Colin Watson <cjwatson@ubuntu.com>
1094
1095 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
1096 an Acer registration utility with several sightings in the wild.
1097 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
1098
fc524edf
CW
10992013-01-21 Colin Watson <cjwatson@ubuntu.com>
1100
1101 Remove nested functions from filesystem directory iterators.
1102
1103 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
1104 (struct grub_fs.dir): Add hook_data argument.
1105
1106 Update all implementations and callers.
1107
53d3e4e3
CW
11082013-01-21 Colin Watson <cjwatson@ubuntu.com>
1109
1110 * docs/grub.texi (Multi-boot manual config): Fix typo for
1111 "recommended".
1112
c821711f
LL
11132013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1114
1115 * util/grub-mkimage.c (main): Postpone freeing arguments.output
1116 until after its use in generate_image.
1117
6a0debbd
CW
11182013-01-20 Colin Watson <cjwatson@ubuntu.com>
1119
1120 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
1121 initrd size to addr_min, since the initrd will be allocated after
1122 this address.
1123
f41e08db
AB
11242013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1125
1126 * conf/Makefile.common: Fix autogen rules to pass definition
1127 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
1128
77529e0f
LL
11292013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1130
1131 * include/grub/elf.h: Update ARM definitions based on binutils.
1132
b879aa7b
VS
11332013-01-20 Aleš Nesrsta <starous@volny.cz>
1134
1135 Split long USB transfers into short ones.
1136
8eb8284d
AB
11372013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1138
1139 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
1140 is interrupted by ESC.
1141
08dad2dc
VS
11422013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * util/grub-script-check.c (main): Uniform the error message.
1145
6c724b85
CW
11462013-01-20 Colin Watson <cjwatson@ubuntu.com>
1147
1148 Remove nested functions from ELF iterators.
1149
25239370
CW
11502013-01-20 Colin Watson <cjwatson@ubuntu.com>
1151
1152 Remove nested functions from device iterators.
1153
1154 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
1155 (grub_arc_iterate_devs): Add hook_data argument.
1156 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
1157 (struct grub_ata_dev.iterate): Add hook_data argument.
1158 * include/grub/device.h (grub_device_iterate_hook_t): New type.
1159 (grub_device_iterate): Add hook_data argument.
1160 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
1161 (struct grub_disk_dev.iterate): Add hook_data argument.
1162 (grub_disk_dev_iterate): Likewise.
1163 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
1164 Likewise.
1165 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
1166 Likewise.
1167 * include/grub/partition.h (grub_partition_iterate_hook_t): New
1168 type.
1169 (struct grub_partition_map.iterate): Add hook_data argument.
1170 (grub_partition_iterate): Likewise.
1171 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
1172 (struct grub_scsi_dev.iterate): Add hook_data argument.
1173
1174 Update all callers.
1175
6c0314d6
CW
11762013-01-20 Colin Watson <cjwatson@ubuntu.com>
1177
1178 Fix typos for "developer" and "development".
1179
600dc5f1
VS
11802013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 Add license header to spkmodem-recv.c.
1183
17334a6b
VS
11842013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 Rewrite spkmodem to use PIT for timing. Double the speed.
1187
7d462559
VS
11882013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 Add new command pcidump.
1191
b78d6c32
VS
11922013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 New terminal outputs using serial: morse and spkmodem.
1195
34f71cb8
VS
11962013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1197
1198 Improve bidi handling in entry editor.
1199
4542e71b
VS
12002013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
1203 argument to prevent name collision.
1204
09fd6d82
CW
12052013-01-15 Colin Watson <cjwatson@ubuntu.com>
1206
1207 Remove nested functions from script reading and parsing.
1208
1209 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
1210 getline_data argument, passed to getline.
1211 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
1212 getline_data argument, passed to grub_parser_split_cmdline.
1213 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
1214 lexerstate->getline_data to lexerstate->getline.
1215 (grub_script_lexer_init): Add getline_data argument, saved in
1216 lexerstate->getline_data.
1217 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
1218 argument, passed to grub_script_parse.
1219 * grub-core/script/script.c (grub_script_parse): Add getline_data
1220 argument, passed to grub_script_lexer_init.
1221 * include/grub/parser.h (grub_parser_split_cmdline): Update
1222 prototype. Update all callers to pass appropriate getline data.
1223 (struct grub_parser.parse_line): Likewise.
1224 (grub_rescue_parse_line): Likewise.
1225 * include/grub/reader.h (grub_reader_getline_t): Add void *
1226 argument.
1227 * include/grub/script_sh.h (struct grub_lexer_param): Add
1228 getline_data member.
1229 (grub_script_parse): Update prototype. Update all callers to pass
1230 appropriate getline data.
1231 (grub_script_lexer_init): Likewise.
1232 (grub_normal_parse_line): Likewise.
1233
1234 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
1235 data argument.
1236 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
1237 static instead of nested. Rename to ...
1238 (grub_parser_execute_getline): ... this.
1239 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
1240 data argument.
1241 * grub-core/normal/main.c (read_config_file: getline): Make static
1242 instead of nested. Rename to ...
1243 (read_config_file_getline): ... this.
1244 (grub_normal_read_line): Add unused data argument.
1245 * grub-core/script/execute.c (grub_script_execute_sourcecode:
1246 getline): Make static instead of nested. Rename to ...
1247 (grub_script_execute_sourcecode_getline): ... this.
1248 * util/grub-script-check.c (main: get_config_line): Make static
1249 instead of nested.
1250
d0d4b8a0
CW
12512013-01-15 Colin Watson <cjwatson@ubuntu.com>
1252
1253 Remove nested functions from memory map iterators.
1254
1255 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
1256 argument, passed to hook.
1257 * grub-core/kern/i386/coreboot/mmap.c
1258 (grub_linuxbios_table_iterate): Likewise.
1259 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
1260 instead of nested.
1261 (grub_machine_mmap_iterate): Add hook_data argument.
1262 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
1263 Add hook_data argument, passed to hook.
1264 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
1265 Likewise.
1266 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
1267 Likewise.
1268 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
1269 Likewise.
1270 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
1271 Likewise.
1272 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
1273 Likewise.
1274 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
1275 Likewise.
1276 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
1277 (grub_machine_mmap_iterate): Likewise.
1278 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
1279 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
1280 prototype.
1281 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
1282 Remove NESTED_FUNC_ATTR from here and from all users.
1283 (grub_mmap_iterate): Update prototype.
1284 (grub_efi_mmap_iterate): Update prototype. Update all callers to
1285 pass appropriate hook data.
1286 (grub_machine_mmap_iterate): Likewise.
1287
1288 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
1289 static instead of nested.
1290 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
1291 Rename to ...
1292 (lsmmap_hook): ... this.
1293 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
1294 Likewise.
1295 (grub_efiemu_mmap_fill: fill_hook): Likewise.
1296 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
1297 heap_init): Likewise.
1298 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
1299 Rename to ...
1300 (mmap_iterate_hook): ... this.
1301 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
1302 Likewise.
1303 * grub-core/lib/ieee1275/relocator.c
1304 (grub_relocator_firmware_get_max_events: count): Likewise.
1305 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
1306 to ...
1307 (grub_relocator_firmware_fill_events_iter): ... this.
1308 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
1309 hook): Likewise. Rename to ...
1310 (grub_relocator_alloc_chunk_align_iter): ... this.
1311 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
1312 Rename to ...
1313 (generate_e820_mmap_iter): ... this.
1314 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
1315 Rename to ...
1316 (count_hook): ... this.
1317 (grub_linux_boot: hook): Likewise. Rename to ...
1318 (grub_linux_boot_mmap_find): ... this.
1319 (grub_linux_boot: hook_fill): Likewise. Rename to ...
1320 (grub_linux_boot_mmap_fill): ... this.
1321 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
1322 hook): Likewise. Rename to ...
1323 (grub_fill_multiboot_mmap_iter): ... this.
1324 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
1325 hook): Likewise. Rename to ...
1326 (count_hook): ... this.
1327 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
1328 hook): Likewise. Rename to ...
1329 (grub_fill_multiboot_mmap_iter): ... this.
1330 * grub-core/loader/powerpc/ieee1275/linux.c
1331 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
1332 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
1333 Likewise. Rename to ...
1334 (alloc_phys_choose): ... this.
1335 (determine_phys_base: get_physbase): Likewise.
1336 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
1337 find_hook): Likewise.
1338 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
1339 (malloc_hook: count_hook): Likewise.
1340 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
1341 Likewise. Rename to ...
1342 (lower_hook): ... this.
1343 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1344 (upper_hook): ... this.
1345 (grub_mmap_get_post64: hook): Likewise. Rename to ...
1346 (post64_hook): ... this.
1347 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
1348 Likewise. Rename to ...
1349 (lower_hook): ... this.
1350 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1351 (upper_hook): ... this.
1352 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
1353 (grub_mmap_iterate: fill_hook): Likewise.
1354 (fill_mask): Pass addr and mask within a single struct.
1355 (grub_cmd_badram: hook): Make static instead of nested. Rename
1356 to ...
1357 (badram_iter): ... this.
1358 (grub_cmd_cutmem: hook): Likewise. Rename to ...
1359 (cutmem_iter): ... this.
1360
22099030
VS
13612013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
1364 delimit path in strings using quotes.
1365 * util/getroot.c (grub_guess_root_devices): Likewise.
1366 (grub_make_system_path_relative_to_its_root): Likewise.
1367 * util/grub-probe.c (probe): Likewise.
1368 * util/ieee1275/ofpath.c (find_obppath): Likewise.
1369 (xrealpath): Likewise.
1370
4a9950ec
VS
13712013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1372
1373 Fix compilation with older compilers.
1374
1375 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
1376 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
1377 declarations.
1378 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
1379 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
1380 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
1381 identifier with b.
1382 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
1383 * include/grub/crypto.h: Add type defines.
1384 * util/import_gcrypth.sed: Remove duplicate type defines.
1385
adcc6020
VS
13862013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 New command list_trusted.
1389
1390 * grub-core/commands/verify.c (grub_cmd_list): New function.
1391
a4528937
CW
13922013-01-13 Colin Watson <cjwatson@ubuntu.com>
1393
1394 * util/grub-mkimage.c (generate_image): Fix "size of public key"
1395 info message.
1396
ca3a7446
CW
13972013-01-13 Colin Watson <cjwatson@ubuntu.com>
1398
1399 Remove nested functions from PCI iterators.
1400
1401 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
1402 passed to hook. Update all callers to pass appropriate hook data.
1403 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
1404 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
1405 Remove NESTED_FUNC_ATTR from here and from all users.
1406 (grub_pci_iterate): Update prototype.
1407 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
1408 instead of nested. Rename to ...
1409 (grub_cs5536_find_iter): ... this.
1410 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
1411 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
1412 Likewise.
1413 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1414 Likewise.
1415 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1416 Likewise.
1417 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1418 Likewise.
1419 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1420 * grub-core/video/radeon_fuloong2e.c
1421 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1422 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1423 find_card): Likewise.
1424 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1425 Likewise.
1426
f8e98fee
VS
14272013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1428
1429 * grub-core/commands/verify.c: Mark messages for translating.
1430
055b36b6
VS
14312013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1432
1433 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1434 fatal.
1435
f7ff879b
VS
14362013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1437
1438 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1439 fatal.
1440
14412013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
1442
1443 * autogen.sh: Do not try to delete nonexistant files.
1444 * util/import_gcrypth.sed: Add some missing header removals.
1445
01323d49
CW
14462013-01-12 Colin Watson <cjwatson@ubuntu.com>
1447
1448 Clean up dangling references to grub-setup.
1449 Fixes Ubuntu bug #1082045.
1450
1451 * docs/grub.texi (Images): Refer generally to grub-install rather
1452 than directly to grub-setup.
1453 (Installing GRUB using grub-install): Remove direct reference to
1454 grub-setup.
1455 (Device map) Likewise.
1456 (Invoking grub-install): Likewise.
1457 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1458 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1459 * util/grub-install.in (usage): Likewise.
1460
1461 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1462 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1463 grub-setup.
1464 * configure.ac: Remove grub_setup output variable.
1465
1466 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1467 to grub-bios-setup.
1468 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1469 grub-setup to grub-sparc64-setup.
1470
5e3b8dcb
VS
14712013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 Import gcrypt public-key cryptography and implement signature checking.
1474
535714bd
VS
14752013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1476
1477 * grub-core/fs/ntfs.c: Ue more appropriate types.
1478 * grub-core/fs/ntfscomp.c: Likewise.
1479 * include/grub/ntfs.h: Likewise.
1480
3e4f3566
VS
14812013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 Support Apple FAT binaries on non-Apple platforms.
1484
1485 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1486 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1487 Likewise.
1488 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1489 Apple FAT binaries.
1490
4dedb13f
VS
14912013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1492
1493 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1494 sector devices.
1495
f8861eaf
CW
14962013-01-07 Colin Watson <cjwatson@ubuntu.com>
1497
1498 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1499 explicitly zeroing elements.
1500 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1501 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1502 of elements in a structure already allocated using grub_zalloc.
1503 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1504
86065b0a
CW
15052013-01-07 Colin Watson <cjwatson@ubuntu.com>
1506
1507 * docs/grub.texi (grub_cpu): New subsection.
1508 (grub_platform): Likewise.
1509
c6f1e92f
VS
15102013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1513
f797ec85
VS
15142013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1515
1516 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1517 divisions.
1518
033d0b4b
VS
15192013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1520
1521 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1522 * grub-core/fs/ntfscomp.c: Likewise.
1523 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1524 (grub_ntfs_comp): Likewise.
1525
21d1b9a0
VS
15262013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1527
1528 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1529 Rename to ...
1530 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1531 of groups_per_block. All users updated.
1532
10ca8645
VS
15332013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1534
1535 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1536 grub_error properly.
1537 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1538 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1539
a4c3ed4c
VS
15402013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1543 always in /boot/zfs.
1544 Reported by: Yuta Satoh.
1545
0b716507
YS
15462013-01-03 Yuta Satoh <nigoro>
1547
1548 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1549 ${grub_probe}
1550
00c05e22
VS
15512013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1552
1553 * configure.ac: Extend -Wno-trampolines to host.
1554
dadddb76
VS
15552013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1558 entry->len = 0.
1559
54ce53ca
CW
15602013-01-03 Colin Watson <cjwatson@ubuntu.com>
1561
1562 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1563 (Invoking grub-script-check): Likewise.
1564
8912efca
CW
15652013-01-03 Colin Watson <cjwatson@ubuntu.com>
1566
1567 * docs/grub.texi (Invoking grub-mount): New section.
1568 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1569
c3fc8394
CW
15702013-01-02 Colin Watson <cjwatson@ubuntu.com>
1571
1572 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1573 test failures, so that a failing unit test correctly causes 'make
1574 check' to fail.
1575
45d26abb
CW
15762013-01-02 Colin Watson <cjwatson@ubuntu.com>
1577
1578 Fix failing printf test.
1579
1580 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1581 '$' in the correct order when collecting type information.
1582
971dd2c6
CW
15832013-01-02 Colin Watson <cjwatson@ubuntu.com>
1584
1585 * docs/grub.texi (configfile): Explain environment variable
1586 handling.
1587 (source): New section.
1588 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1589
5c67ea6c
CW
15902012-12-31 Colin Watson <cjwatson@ubuntu.com>
1591
1592 Remove several trivially-unnecessary uses of nested functions.
1593
1594 * grub-core/commands/i386/pc/sendkey.c
1595 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1596 instead of nested.
1597 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1598 Rename to ...
1599 (legacy_file_getline): ... this.
1600 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1601 Likewise.
1602 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1603 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1604 to ...
1605 (probe_dummy_iter): ... this.
1606 * grub-core/kern/i386/coreboot/mmap.c
1607 (grub_linuxbios_table_iterate: check_signature): Likewise.
1608 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1609 check_varstate): Likewise. Mark inline.
1610 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1611 an additional parameter.
1612 (find_long: fnd_long): Likewise. Pass two additional parameters.
1613 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1614 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1615 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1616 Likewise. Rename to ...
1617 (grub_cmos_find_port_iter): ... this.
1618 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1619 Rename to ...
1620 (find_rtc_iter): ... this.
1621
1622 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1623 function directly into the function body, since it is only called
1624 once.
1625
33a68ac6
CW
16262012-12-30 Colin Watson <cjwatson@ubuntu.com>
1627
1628 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1629 __attribute__ ((unused)).
1630 * grub-core/video/bochs.c (find_card): Likewise.
1631 * grub-core/video/cirrus.c (find_card): Likewise.
1632 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1633 * grub-core/video/sis315pro.c (find_card): Likewise.
1634 * grub-core/video/sm712.c (find_card): Likewise.
1635
608b647a
CW
16362012-12-28 Colin Watson <cjwatson@ubuntu.com>
1637
1638 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1639 Fixes Savannah bug #37821.
1640
fd49ceb3
CW
16412012-12-28 Colin Watson <cjwatson@ubuntu.com>
1642
1643 Apply program name transformations at build-time rather than at
1644 run-time. Fixes Debian bug #696465.
1645
1646 * acinclude.m4 (grub_TRANSFORM): New macro.
1647 * configure.ac: Create output variables with transformed names for
1648 most programs.
1649 * util/bash-completion.d/grub-completion.bash.in: Use
1650 pre-transformed variables for program names.
1651 * util/grub-install.in: Likewise.
1652 * util/grub-kbdcomp.in: Likewise.
1653 * util/grub-mkconfig.in: Likewise.
1654 * util/grub-mkconfig_lib.in: Likewise.
1655 * util/grub-mknetdir.in: Likewise.
1656 * util/grub-mkrescue.in: Likewise.
1657 * util/grub-mkstandalone.in: Likewise.
1658 * util/grub-reboot.in: Likewise.
1659 * util/grub-set-default.in: Likewise.
1660 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1661 * tests/util/grub-shell-tester.in: Remove unused assignment.
1662 * tests/util/grub-shell.in: Likewise.
1663 * util/grub.d/00_header.in: Likewise.
1664
7024b3c0
CW
16652012-12-28 Colin Watson <cjwatson@ubuntu.com>
1666
1667 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1668
1669 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1670 HAVE_RAW_DECL_GETS.
1671 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1672
e3501b13
VS
16732012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1676 Reported by: Eriks Latosheks <foresterlv>.
1677
b40c88a9
VS
16782012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * docs/grub.texi (Network): Update instructions on generating netboot
1681 image.
1682
ce96d01c
VS
16832012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1686 around device name if necessarry.
1687
0f596201
PFS
16882012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1689
1690 * util/grub-install.in: Follow the symbolic link parameter added
1691 to the file command.
1692
600d5bdb
AB
16932012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1694
1695 * util/grub-install.in: Remove stale TODO.
1696
64ebd2f4
PFS
16972012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1698
1699 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1700 dynamic allocation for the bootpath buffer.
1701
74b2fe3e
DTB
17022012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1703
1704 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1705 window too small.
1706
969b804f
VS
17072012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1708
1709 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1710 argument rather than font name. All users updated.
1711 (grub_gfxterm_set_window): Likewise.
1712
b9f5ebd6
VT
17132012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1714
1715 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1716 from working.
1717
258f43b7
VS
17182012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * util/getroot.c (convert_system_partition_to_system_disk): Support
1721 nbd disks.
1722
cc1ce5f9
VS
17232012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1726 infinite loop on corrupted FS.
1727
e77a16ca
VS
17282012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1729
1730 Fix big-endian mtime.
1731
1732 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1733 together sec and usec.
1734 (grub_ufs_dir): Use correct byteswapping for UFS time.
1735
d9c48c7b
VS
17362012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1737
1738 Support big-endian UFS1.
1739
1740 * Makefile.util.def (libgrubmods): Add ufs_be.c
1741 * grub-core/Makefile.core.def (ufs1_be): New module.
1742 * grub-core/fs/ufs_be.c: New file.
1743 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1744 the file.
1745
2f9f40ba
LL
17462012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1747
1748 * include/grub/types.h: Fix functionality unaffecting typo in
1749 GRUB_TARGET_WORDSIZE conditional macro.
1750
48ff0889
PFS
17512012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1752
1753 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1754
03711240
GS
17552012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1756
1757 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1758 that /netbsd appears first (when it exists).
1759
a31b11bd
CJ
17602012-10-12 Christoph Junghans <ottxor@gentoo.org>
1761
1762 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1763 Fixes Savannah bug #37558.
1764
e8a5d5d4
CW
17652012-10-12 Colin Watson <cjwatson@ubuntu.com>
1766
1767 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1768 description of extract_entries_configfile.
1769
17702012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
1771
1772 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1773 preferred_address.
1774 (grub_cmd_linux): Likewise.
1775 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1776 preferred_lifetime. Update all users.
1777
288c757d
CW
17782012-09-26 Colin Watson <cjwatson@ubuntu.com>
1779
1780 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1781 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1782
0d35da3f
CW
17832012-09-26 Colin Watson <cjwatson@ubuntu.com>
1784
1785 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1786 errors from grub-probe to /dev/null, not stdout.
1787
b78c3127
VS
17882012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1789
1790 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1791 sector 1.
1792
473959f0
CW
17932012-09-24 Colin Watson <cjwatson@ubuntu.com>
1794
1795 * util/grub-install.in: Make the error message if $source_dir
1796 doesn't exist more useful.
1797
794c8c33
CW
17982012-09-22 Colin Watson <cjwatson@ubuntu.com>
1799
1800 Fix grub-emu build on FreeBSD.
1801
1802 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1803 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1804 headers on Linux.
1805 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1806 implementation is currently Linux-specific.
1807 * util/getroot.c (exec_pipe): Define only on Linux or when either
1808 libzfs or libnvpair is unavailable.
1809 (find_root_devices_from_poolname): Remove unused path variable.
1810
86d08fdb
CW
18112012-09-19 Colin Watson <cjwatson@ubuntu.com>
1812
1813 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1814 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1815 should fit before end == 63.
1816
735abf54
CW
18172012-09-19 Colin Watson <cjwatson@ubuntu.com>
1818
1819 * util/grub-setup.c (write_rootdev): Remove unused core_img
1820 parameter. Update all callers.
1821 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1822 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1823 GRUB_SETUP_BIOS.
1824
140acd3c
VS
18252012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1828 (grub_add_tab): New function.
1829 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1830 * util/grub.d/10_illumos.in: Likewise.
1831 * util/grub.d/10_kfreebsd.in: Likewise.
1832 * util/grub.d/10_linux.in: Likewise.
1833 * util/grub.d/10_netbsd.in: Likewise.
1834 * util/grub.d/10_windows.in: Likewise.
1835 * util/grub.d/10_xnu.in: Likewise.
1836 * util/grub.d/20_linux_xen.in: Likewise.
1837 * util/grub.d/30_os-prober.in: Likewise.
1838
7ddffdad
VS
18392012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1842 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1843 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1844 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1845 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1846 ieee1275-nocursor.
1847 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1848 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1849
4e092454
VS
18502012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1851
1852 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1853 le-conversion.
1854 Reported by: BURETTE, Bernard.
1855
735abf54 18562012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
1857
1858 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1859 from comment.
1860
dfd39dbd
CW
18612012-09-14 Colin Watson <cjwatson@ubuntu.com>
1862
1863 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1864 IEEE1275 machines. Fixes powerpc-emu compilation.
1865 * include/grub/terminfo.h: Likewise.
1866
3bfa763c
VS
18672012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1868
1869 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1870 a const pointer.
1871 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1872 const pointer.
1873 (efiemu_set_variable): Make vendor_guid a const pointer.
1874
250e475b
VS
18752012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 Don't require grub-mkconfig_lib to generate manpages for programs.
1878
1879 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1880 dependencies, don't add grub-mkconfig_lib.
1881 (program): Pass empty adddeps.
1882 (script): Pass grub-mkconfig_lib as adddeps.
1883
592fd0e4
VS
18842012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1885
1886 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1887 * util/getroot.c (grub_find_device): Likewise.
1888 (get_mdadm_uuid): Likewise.
1889 (grub_util_is_imsm): Likewise.
1890 (grub_util_pull_device): Likewise.
1891 * util/grub-probe.c (probe): Likewise.
1892
801a3027
BG
18932012-09-10 Benoit Gschwind <gschwind>
1894
1895 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1896 (devs): Add devpath_8.
1897
c5052c81
PJ
18982012-09-08 Peter Jones <pjones@redhat.com>
1899
1900 * grub-core/Makefile.core.def (efifwsetup): New module.
1901 * grub-core/commands/efi/efifwsetup.c: New file.
1902 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1903 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1904 New define.
1905 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1906
8e832f71
JS
19072012-09-05 Jiri Slaby <jslaby@suse.cz>
1908
1909 * configure.ac: Add SuSe path.
1910
f0f55752
CW
19112012-09-05 Colin Watson <cjwatson@ubuntu.com>
1912
1913 * NEWS: Fix typo.
1914
ecadc4c2
CW
19152012-09-05 Colin Watson <cjwatson@ubuntu.com>
1916
1917 * util/import_gcry.py: Sort cipher_files, to make build system
1918 generation more deterministic.
1919
64498f25
VS
19202012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1921
1922 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1923 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1924 (grub_set_datetime): Likewise.
1925
9cc836a2
VS
19262012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1929 warnings.
1930
bcfcea01
VS
19312012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1934
a4099485
VS
19352012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1936
1937 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1938
265c162a
CW
19392012-09-04 Colin Watson <cjwatson@ubuntu.com>
1940
1941 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1942 required for checkouts from bzr, but it may be useful for users or
1943 distributors wishing to update translations against a tarball
1944 distribution, and it can be helpful for the tarball to be a superset
1945 of what's in bzr.
1946
3d171e95
CW
19472012-09-04 Colin Watson <cjwatson@ubuntu.com>
1948
1949 * Makefile.am (EXTRA_DIST): Add
1950 grub-core/tests/boot/linux.init-mips.S,
1951 grub-core/tests/boot/linux.init-ppc.S, and
1952 grub-core/tests/boot/linux-ppc.cfg.
1953
f2c2503e
CW
19542012-09-04 Colin Watson <cjwatson@ubuntu.com>
1955
1956 * grub-core/mmap/mips/loongson: Remove empty directory.
1957
19582012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
1959
1960 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1961 gone.
1962
ab2163d5
CW
19632012-09-04 Colin Watson <cjwatson@ubuntu.com>
1964
1965 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1966 grub-sparc64-setup.
1967
ce938140
GS
19682012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1969
1970 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1971
529f58a5
GS
19722012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1973
1974 * po/POTFILES.in: Regenerated.
1975
16cf79e9
GS
19762012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1977
1978 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1979 (NetBSD): New subsection.
1980
39b27f1e 19812012-07-22 Ales Nesrsta <starous@volny.cz>
1982
1983 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1984 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1985
a885261b
VS
19862012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1989 * util/grub.d/10_hurd.in: Add missing quoting.
1990 * util/grub.d/10_illumos.in: Likewise.
1991 * util/grub.d/10_kfreebsd.in: Likewise.
1992 * util/grub.d/10_linux.in: Likewise.
1993 * util/grub.d/20_linux_xen.in: Likewise.
1994
7bd29c01
VS
19952012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1996
1997 New command `lsefi'.
1998
1999 * grub-core/Makefile.core.def (lsefi): New module.
2000 * grub-core/commands/efi/lsefi.c: New file.
2001 * include/grub/efi/api.h: Add more GUIDs.
2002
ac625d8f
VS
20032012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2004
2005 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
2006 (grub_bsd_elf32_hook): Likewise.
2007 (grub_bsd_elf64_size_hook): Likewise.
2008 (grub_bsd_elf64_hook): Likewise.
2009 (grub_bsd_load_elf): Likewise.
2010
e73bb801
VS
20112012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
2014 if hash function is unavailable.
2015 (dec_stream_header): Likewise.
2016
e81db8b5
VS
20172012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2018
2019 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
2020 filter state.
2021
d187a1c3
VS
20222012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2023
2024 Fix coreboot compilation.
2025
2026 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
2027 (grub_vga_text_init_real): ... this.
2028 (grub_vga_text_fini): Rename to ...
2029 (grub_vga_text_fini_real): ... this.
2030
91a05f64
VS
20312012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
2032
2033 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
2034
6af96df7
VS
20352012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * grub-core/lib/legacy_parse.c: Support clear and testload.
2038
4d569e12
VS
20392012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2040
2041 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
2042
073b57bb
VS
20432012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 * grub-core/fs/ext2.c: Experimental support for 64-bit.
2046
a706f4cc
VS
20472012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 * grub-core/net/tftp.c (ack): Fix endianness problem.
2050 (tftp_receive): Likewise.
2051 Reported by: Michael Davidsaver.
2052
e7850aa9
VS
20532012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2054
2055 * gentpl.py: Make mans depend on grub-mkconfig_lib.
2056
20572012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2058
2059 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
2060 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
2061 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
2062
35692881
VS
20632012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2064
2065 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
2066 efi_mmap_size.
2067 Reported by: Stuart Hayes.
2068
c35fc5bd
VS
20692012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
2072
2073 * grub-core/Makefile.core.def (mda_text): New module.
2074 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
2075 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
2076 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
2077 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
2078 here.
2079 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
2080 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
2081 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
2082 here.
2083 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
2084 to ..
2085 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
2086 ... here
2087 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
2088 here.
2089 * grub-core/term/i386/vga_common.c: Removed.
2090 * include/grub/i386/vga_common.h: Likewise.
2091 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
2092 (grub_vga_cr_bw_read): Likewise.
2093 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
2094 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
2095 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
2096 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
2097 grub_vga_cr_read/grub_vga_cr_write.
2098 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
2099
5f91f701
VS
21002012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * configure.ac: Bump version to 2.00.
2103 * grub-core/normal/main.c (features): Add feature_200_final.
2104
0c4f85f6
VS
21052012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
21062012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
2107
2108 * NEWS: Fix unclarity and language mistakes.
2109
f923ad22
VS
21102012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
2113 additional size to 3 pages.
2114 Reported by: Stuart Hayes.
2115
d22029ba
VS
21162012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 * NEWS: Add 2.00 entry.
2119
58eee08f
VS
21202012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
2123 put explicit "/" for empty path.
2124 (wildcard_expand): Improve dprintf.
2125
c59bdff7
VS
21262012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2127
2128 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
2129 it's equal to currnode. This can happen with "" symlink.
2130
5e6a440a
YB
21312012-06-27 Yves Blusseau <blusseau@zetam.org>
2132
2133 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
2134 echo shell command by printf command.
2135
73a68bcb
VS
21362012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
2139 the value returned by firmware is the maximal position, not diumension.
2140 (grub_terminfo_output_state): Use a more sane fallback.
2141
392a603b
VS
21422012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
2145
42d0867f
VS
21462012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
2149 frequency to 150 MHz.
2150
489509f4
VS
21512012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2152
2153 Apple fixes.
2154
2155 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
2156 __APPLE_
2157 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
2158 definition.
2159 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
2160
9f3fc883
VS
21612012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 Handle slash in HFS label.
2164
2165 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
2166 (grub_hfs_dir): Tanslate slash.
2167 (grub_hfs_label): Don't translate slash.
2168
54853fd7
VS
21692012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2170
2171 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
2172 network protocol listing since it introduces problematic dependency on
2173 net module.
2174
4dc02ddf
VS
21752012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2176
2177 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
2178
c50c867d
VS
21792012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 Init video early on yeeloong to avoid being rebooted by watchdog.
2182
2183 * grub-core/Makefile.am (gensm712): New target.
2184 (sm712_start.S): Likewise.
2185 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
2186 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
2187 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
2188 description.
2189 * include/grub/vga.h: Move registry definitions to...
2190 * include/grub/vgaregs.h: ... here.
2191
5f92c8a1
VS
21922012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
2195 signedness.
2196
e9e6f111
VS
21972012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2198
2199 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
2200 platforms with firmware disk drivers in the core.
2201
754ad9eb
VS
22022012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2203
2204 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
2205 informative verbose message.
2206 (read_lv): Handle 64-bit segment size.
2207
315654c2
VS
22082012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
2211
fb022c79
VS
22122012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2213
2214 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
2215 character but still remove trainling spaces.
2216 (grub_fat_label): Ignore archive flag.
2217
8645f72c
VS
22182012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
2221 cast between linux_kernel_header and linux_kernel_params.
2222
36498496
VS
22232012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
2226 type for size.
2227 (grub_raid6_recover_func_t): Likewise.
2228 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
2229 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2230
0b5ea6b8
VS
22312012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
2234
650cfcfe
GS
22352012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
2236
2237 Fix overflow.
2238
2239 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
2240 [__NetBSD__]: Add explicit cast before bitshift.
2241
8a4d6a44
VS
22422012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * configure.ac: Bump to 2.00~rc1.
2245
2fb97ed3
VS
22462012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
2249 half of $a0.
2250
1fa097dc
VS
22512012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
22522012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
2253
2254 * docs/grub.texi: Fix search syntax.
2255 (Multi-boot manual config): Put msdos rather than GPT example.
2256 Grammar corrections.
2257
c890ba78
VS
22582012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
2261
0f92dca7
VS
22622012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2263
2264 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
2265
3988c4a0
VS
22662012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
2269 message on double free. Put the value of magic in case of mismatch.
2270
9e86d4c5
VS
22712012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 Speed-up video on yeeloong.
2274
2275 * grub-core/video/sm712.c (framebuffer): Remove render_target and
2276 add cached_ptr.
2277 (grub_video_sm712_video_fini): Unmap cached_ptr.
2278 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
2279 (grub_video_sm712_set_active_render_target): Removed.
2280 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2281 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
2282 sync caches.
2283
ed24c312
VS
22842012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 Avoid flushing the same line multiple times on loongson.
2287
2288 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
2289 Step in 32 bytes and not 1 byte.
2290 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
2291 Likewise.
2292
d1718e7d
VS
22932012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
2296 subvolumes.
2297
982f1909
VS
22982012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 Implement flow control for http.
2301
2302 * grub-core/net/http.c (parse_line): Handle response 206.
2303 (http_receive): Stall if too many packets are in the queue.
2304 (http_establish): Fix range header.
2305 (http_seek): Fix double free.
2306 (http_close): Likewise.
2307 (http_packets_pulled): New function.
2308 (grub_http_protocol): Set http_seek
2309 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
2310 (ack_real): Set window depending on i_stall.
2311 (grub_net_send_tcp_packet): Likewise.
2312 (grub_net_tcp_stall): New function.
2313 (grub_net_tcp_unstall): Likewise.
2314 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
2315 (grub_net_tcp_unstall): Likewise.
2316
bd407d6e
VS
23172012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2318
2319 * grub-core/net/tftp.c: Decrease stall to 50 packets.
2320
c7564b8e
VS
23212012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2322
2323 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
2324
a3706162
VS
23252012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2326
2327 * tests/util/grub-shell.in: Fix a typo.
2328
b27069e0
VS
23292012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 Implement flow control for tftp.
2332
2333 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
2334 packets but stop only if stop condition is satisfied.
2335 (grub_net_fs_read_real): Call packets_pulled after real read. Use
2336 `stall' instead of `eof' as stop condition.
2337 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
2338 (http_err): Likewise.
2339 * grub-core/net/tftp.c (ack): Replace the first argument with data
2340 instead of socket.
2341 (tftp_receive): Stall if too many packets are in wait queue.
2342 (tftp_packets_pulled): New function.
2343 (grub_tftp_protocol): Set packets_pulled.
2344 * include/grub/net.h (grub_net_packets): New field count.
2345 (grub_net_put_packet): Increment count.
2346 (grub_net_remove_packet): Likewise.
2347 (grub_net_app_protocol): New field `packets_pulled'.
2348 (grub_net): New field `stall'.
2349
6b9cfac6
VS
23502012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2351
2352 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
2353 sync part to handle them.
2354
f35abd81
VS
23552012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2356
2357 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
2358 * grub-core/net/drivers/ieee1275/ofnet.c
2359 (grub_ieee1275_net_config_real): Likewise.
2360
0e7ec820
VS
23612012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2362
2363 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
2364 the direct route for server/gateway.
2365
9d611a31
VS
23662012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
2369 IP address to server name since we may not hame the DNS.
2370
418f45ab
VS
23712012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
2374 freeing random buffer on failure.
2375 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
2376
44a0efc1
VS
23772012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2378
2379 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
2380
531e2241
VS
23812012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
2384 reserved bytes.
2385 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
2386 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
2387 Handle malloc error correctly.
2388
cde393c9
VS
23892012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
2392 blocks.
2393
538478d0
VS
23942012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2395
2396 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
2397 increment.
2398
9b55efe0
VS
23992012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2400
2401 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
2402 none is explicitly specified.
2403
9eb832c3
VS
24042012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2405
2406 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
2407 while reallocating.
2408
d6b7c7c9
VS
24092012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2410
2411 Respect netmask from bootp/dhcp.
2412
2413 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2414 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2415 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2416 into ...
2417 (grub_net_add_ipv4_local): ... this.
2418 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2419 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2420 (grub_net_add_ipv4_local): New proto.
2421
67caf9eb
VS
24222012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2423
2424 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2425 determining EFI memory map size.
2426
43657558
VS
24272012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2428
2429 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2430
eb6d0dd3
VS
24312012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2434 when looking for partition separator.
2435
31230544
VS
24362012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2437
2438 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2439 Escape commas.
2440
918a2517
VS
24412012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2442
2443 Restructure FAT driver to avoid hook in label reading as it hits a
2444 GCC bug.
2445
2446 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2447 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2448 (grub_fat_iterate_dir): Split into ...
2449 (grub_fat_iterate_init): ... this, ...
2450 (grub_fat_iterate_fini): ... this, ...
2451 (grub_fat_iterate_dir_next): ... and this. All users updated.
2452
9f1d654e
VS
24532012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2456 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2457 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2458 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2459 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2460 New fields last_key and last_key_time.
2461 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2462 extended key-esc into extended key-extended key.
2463
52f0f643
VS
24642012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 Avoid unnecessary memcpy of whole video buffer.
2467
2468 * grub-core/video/fb/video_fb.c (dirty): New struct.
2469 (framebuffer): Add members current_dirty and previous_dirty.
2470 (dirty): New function.
2471 (grub_video_fb_fill_rect): Update dirty.
2472 (common_blitter): Likewise.
2473 (grub_video_fb_scroll): Likewise.
2474 (doublebuf_blit_update_screen): Copy only dirty part.
2475 (doublebuf_pageflipping_update_screen): Likewise.
2476 (grub_video_fb_doublebuf_blit_init): Init dirty.
2477 (doublebuf_pageflipping_init): Likewise.
2478 (grub_video_fb_setup): Likewise.
2479
e169a180
VS
24802012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2483 poll rate.
2484
48556879
VS
24852012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 Fix wildcard regexp dot and other special characters handling.
2488 Reported by: Robert Mabee.
2489
2490 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2491 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2492 (split_path): Trigger expansion on '?'.
2493 (unescape): New function.
2494 (wildcard_expand): Unescape parts copied without globbing.
2495 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2496 (grub_script_arglist_to_argv): Don't unescape expansions.
2497
0494408e
VS
24982012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 * include/grub/net.h (grub_net_card): New member txbufsize.
2501 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2502 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2503 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2504 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2505 txbufsize.
2506 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2507 compatible property to check for macs. Set
2508 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2509 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2510 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2511 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2512 (send_card_buffer): Use txbuf.
2513 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2514 nested function out of the parent while on it.
2515
cc35fe8f
VS
25162012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2519 presence check.
2520 (grub_ieee1275_net_config_real): Fix config pointer.
2521
970a0a09
VS
25222012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2525 filename parsing to non-block devices.
2526
3e19bf87
VS
25272012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2528
2529 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2530
c62d1a0c
VS
25312012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2534 All users updated.
2535
ef76bec3
VS
25362012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2537
2538 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2539 UUID search command even if hints probing failed.
2540
25412012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
2542
2543 * po/POTFILES.in: Regenerated.
2544
70aaf305
VS
25452012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2546
2547 Speed-up video on fuloong.
2548
2549 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2550 New function.
2551 (grub_pci_device_unmap_range): Handle non-cached address.
2552 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2553 add direct_ptr.
2554 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2555 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2556 (grub_video_sis315pro_set_active_render_target): Removed.
2557 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2558 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2559 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2560 sync caches.
2561 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2562 New proto.
2563
10400f0b
VS
25642012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * docs/grub.texi (Multi-boot manual config): New section.
2567
ba67e2c6
VS
25682012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2569
2570 Avoid slow read-back from VRAM.
2571
2572 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2573 Move from here ...
2574 * grub-core/video/fb/video_fb.c
2575 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2576 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2577 (front_target): Remove front_target. Add pages.
2578 (grub_video_fb_init): Skip setting front_pages.
2579 (grub_video_fb_fini): Likewise.
2580 (doublebuf_blit_update_screen): Use pages.
2581 (grub_video_fb_doublebuf_blit_init): Likewise.
2582 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2583 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2584 (grub_video_fb_setup): Prefer doublebuffing.
2585
377c98cb
VS
25862012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2587
2588 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2589 gzio.
2590
eac49cff
VS
25912012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 Add loongson tests.
2594
2595 * tests/util/grub-shell.in: Handle loongson.
2596 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2597 drivers.
2598 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2599 Reboot instead of shutdown if REBOOT is defined.
2600
0321415e
VS
26012012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2602
2603 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2604 sized ports since unlike on real hardware qemu supports only 32-bit
2605 regs.
2606
3f2bdd8f
VS
26072012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2610 * util/grub-mkrescue.in: Handle loongson.
2611
29a049c9
VS
26122012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2615 Set is_part appropriately.
2616 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2617 names. Canonicalize partition without full disk.
2618
4abde346
VS
26192012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 Revert usb-quiesce since it's wrong.
2622
2623 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2624 (grub_ofdisk_init): Don't do quiesce.
2625
61f1d93b
VS
26262012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2627
2628 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2629 PowerMac workaround to Xserves as well.
2630 Information supplied by: Benjamin Herrenschmidt.
2631
a09eb541
VS
26322012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 Don't assume that beginning address is also the entry point on ppc.
2635
2636 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2637 (grub_linux_boot): Use linux_entry.
2638 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2639 (grub_linux_load64): Likewise.
2640
505b3c9b
VS
26412012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2642
2643 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2644
cbe0b4ef
VS
26452012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2646
2647 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2648 needlessly lose the console.
2649
3006e981
VS
26502012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2653 space.
2654
4e5a96b0
VS
26552012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2656
7da036bb
VS
2657 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2658 than current grub_get_rtc() not implemented when booted with
2659 coreboot without TSC.
2660
2661 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2662 Add machine/time.h to kernel headers on loongson.
2663 * grub-core/Makefile.core.def (kernel): Remove
2664 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2665 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2666 (grub_get_rtc): Likewise.
2667 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2668 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2669 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2670 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2671 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2672 rather than installing known non-working time source.
2673 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2674 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2675 * include/grub/time.h: Don't include machine/time.h.
2676 * include/grub/efi/time.h: Removed.
2677 * include/grub/i386/efi/time.h: Likewise.
2678 * include/grub/i386/ieee1275/time.h: Likewise.
2679 * include/grub/powerpc/ieee1275/time.h: Likewise.
2680 * include/grub/sparc64/ieee1275/time.h: Likewise.
2681 * include/grub/x86_64/efi/time.h: Likewise.
2682
26832012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2684
2685 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
2686
2687 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2688 value.
2689 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2690 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2691 with dotless variants when any combining above is present.
2692
5561c22d
VS
26932012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2694
2695 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2696 text and not binary.
2697
96f7e60e
VS
26982012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2699
2700 Stop polling as soon as we have the packet we were waiting for.
2701
2702 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2703 All users updated.
2704 * grub-core/net/arp.c (have_pending): New var.
2705 (pending_req): Likewise.
2706 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2707 stop indicator.
2708 (grub_net_arp_receive): Set have_pending.
2709 * grub-core/net/dns.c (recv_data): New field stop.
2710 (recv_hook): Set stop.
2711 (grub_net_dns_lookup): Init stop and use as stop condition.
2712 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2713 condition.
2714 * grub-core/net/net.c (grub_net_poll_cards): New argument
2715 stop_condition. Stop when it goes true.
2716 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2717 indicator.
2718 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2719
3e747239
VS
27202012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 Keep TX and RX buffers on EFI rather than always allocate new ones.
2723
2724 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2725 card. All users updated.
2726 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2727 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2728 (get_card_packet): Likewise.
2729 (grub_efinet_findcards): Init new fields.
2730
f695e99a
VS
27312012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2734 compilation error on sparc64.
2735
9e5e66d1
VS
27362012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2737
2738 Use ITC on IA64 rather than broken routine based on daytime.
2739
2740 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2741 ia64.
2742 (grub_get_rtc) [__ia64__]: Likewise.
2743 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2744 (get_itc): New function.
2745 (grub_rtc_get_time_ms): Likewise.
2746 (grub_machine_init): Calibrate ITC.
2747 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2748 Keep only on non-ia64. Don't export since it's broken and used only
2749 if TSC is unavailable.
2750
a1767404
VS
27512012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2754 even if it's used.
2755 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2756 Skip if parent is unused.
2757
34b2bced
VS
27582012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2759
2760 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2761
5e619f40
VS
27622012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 Fix wildcard escaping.
2765
2766 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2767 * grub-core/script/execute.c (wildcard_escape): .. to here.
2768 Don't escape dot.
2769 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2770 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2771 Don't escape dot.
2772 * grub-core/script/execute.c (gettext_append): Always escape.
2773 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2774 * grub-core/script/yylex.l: Don't cut away the escaping.
2775 * tests/grub_script_echo1.in: Add tests with wildcard.
2776
c8ca5855
VS
27772012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2778
2779 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2780 (ftdi_hw_configure): Likewise.
2781 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2782 define.
2783 (real_config): Handle 1.5 stop bits.
2784 (pl2303_hw_configure): Likewise.
2785
7183452c
VS
27862012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * Makefile.am: Add ppc linux bootcheck.
2789 * grub-core/tests/boot/linux-ppc.cfg: New file.
2790 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2791
f57c84cd
VS
27922012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2793
2794 * tests/grub_script_expansion.in: Skip network protocols.
2795
ecfc6207
VS
27962012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2797
2798 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2799
8d03d284
VS
28002012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2803 --rom-directory.
2804 Add -graft-points.
2805
61c42af0
VS
28062012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2807
2808 ESCC serial driver for conducting sautomated tests in qemu.
2809 Not tested on real hardware.
2810
2811 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2812 * grub-core/term/ieee1275/escc.c: New file.
2813 * grub-core/Makefile.core.def (escc): New module.
2814
08fd1291
VS
28152012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2818 invalid on error.
2819 (serial_hw_fetch): Don't read invalid handle.
2820 (serial_hw_put): Don't write into invalid handle.
2821
08dafeea
VS
28222012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 Add a 1.5 stop bits value.
2825
2826 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2827 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2828 GRUB_SERIAL_STOP_BITS_1_5.
2829
9068fdcf
VS
28302012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2831
2832 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2833 value rather than let it uninited.
2834
f4d5820f
VS
28352012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 * grub-core/commands/wildcard.c (+check_file): New function.
2838 (wildcard_expand): Don't expand to non-existing files, expand with
2839 suffix and not attempt to expand if not needed.
2840
3d2de9a7
VS
28412012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2844 out of partitions containing other partitions.
2845
c5c81ff9
VS
28462012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2847
2848 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2849 on some qemu versions with GRUB.
2850
2851 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2852 define.
2853 (grub_openbsd_bootarg_pcibios): New struct.
2854 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2855 Add PCIINFO.
2856
08a14e0b
VS
28572012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 * tests/util/grub-shell.in: Trim firmware output on EFI.
2860
cede3ca3
VS
28612012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2862
2863 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2864 and coreboot since it's already in kernel.
2865
558d3a60
VS
28662012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2869 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2870 to here. New return value start. All users updated.
2871 Recursively scan linear mappings.
2872 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2873 proto.
2874 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2875 Use grub_util_get_dm_node_linear_info.
2876 * util/getroot.c (convert_system_partition_to_system_disk): Use
2877 grub_util_info rather than grub_dprintf.
2878 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2879
60fde14d
VS
28802012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2883
2884 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2885 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2886
24bd8838
VS
28872012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * include/grub/types.h (grub_set_unaligned64): New function.
2890 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2891 (setup): Likewise.
2892
7bc06a49
VS
28932012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2896 (grub_ofdisk_fini): Quiesce USB devices.
2897
49cea015
VS
28982012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2901 caches.
2902
8dcbe03b
VS
29032012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2906
5b258735
VS
29072012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * grub-core/disk/pata.c (grub_pata_pio_read)
2910 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2911 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2912
37ba07eb
VS
29132012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 Extend automated tests to qemu-mips.
2916
2917 * Makefile.am: reorganise tests and enable qemu-mips.
2918 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2919 * grub-core/tests/boot/linux.init-mips.S: New file.
2920 * tests/partmap_test.in: Handle ata0 disks.
2921 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2922 non-pc i386.
2923
070038f8
VS
29242012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2927 ia64.
2928 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2929 quotes while on it.
2930
004be2cd
VS
29312012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2934 (grub_halt): Likewise.
2935 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2936
b1622487
VS
29372012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 * grub-core/term/serial.c (grub_serial_register)
2940 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2941 the behaviour in line with x86 platforms.
2942
b7b4ab33
VS
29432012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2946 (grub_ata_strncpy): Likewise.
2947 (grub_ata_identify): Add missing byteswaps.
2948
5e3535ae
VS
29492012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2952 byte-swap.
2953 (screen_read_char): Likewise.
2954 (grub_vga_text_cls): Likewise.
2955
c21b17e6
VS
29562012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2959 filenames.
2960 (make_file_path): Likewise.
2961
bf293dec
VS
29622012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2963
2964 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2965 machines.
2966 Tested by: Paulo Flabiano Smorigo.
2967 Crucial information about API supplied by: Coleen <Last name unknown>.
2968 Reviewed by: Coleen <Last name unknown>.
2969
81f6ef0e
VS
29702012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2971
2972 * util/grub-mkimage.c: Disable -Wcast-align.
2973
7284143a
VS
29742012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2977 as they are fatal.
2978
b99f3e00
VS
29792012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2982
944f752d
VS
29832012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * util/grub-probe.c (escape_of_path): Fix double free.
2986
6cce6f38
VS
29872012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * grub-core/commands/videoinfo.c (hook): Show pitch.
2990
1e1eb50e
VS
29912012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2994
1c715b5a
VS
29952012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2998 (probe): Add ieee1275 to OFW devices.
2999
007ae52d
VS
30002012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
3003
4557a36d
VS
30042012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 Handle IBM OFW path.
3007
3008 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
3009 available.
3010 (of_path_of_scsi): Handle vdevice.
3011
efbeefe9
VS
30122012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
3013
3014 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
3015 Allocate in multiples of 16 to avoid adding a few bytes free region the
3016 windows bugs upon.
3017
15a940bb
VS
30182012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
3021 Allocate in multiples of 16 to avoid adding a few bytes free region the
3022 windows bugs upon.
3023 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
3024
6e5efd60
VS
30252012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
3028 resolutions.
3029 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
3030 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
3031
0d3d137e
IS
30322012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
3033
3034 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
3035
45dbe300
VS
30362012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
3039 resulted in \\ at the end of the line.
3040
6d8db947
VS
30412012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
3044 (grub_parser_cmdline_state): Likewise.
3045 (grub_parser_split_cmdline): Likewise.
3046
de89d338
VS
30472012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
3050 /dev/root and /dev/dm-*.
3051
00d41dee
VS
30522012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
3055 fix partially stale display.
3056
f95d1f11
VS
30572012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/normal/menu_entry.c (backward_char): Use right line for
3060 substraction.
3061
6297e197
VS
30622012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
3065 Fix MBR remapping workaround.
3066 (grub_util_biosdisk_read) [__linux__]: Likewise.
3067
8a7ecad3
VS
30682012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * util/grub-install.in: Check for ieee1275 and not ieee1276.
3071
2b34f944
VS
30722012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 * configure.ac: Bump to beta6.
3075
684aef11
CW
30762012-05-31 Christer Weinigel <christer@weinigel.se>
3077
3078 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
3079
05b0bb91
VS
30802012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
3083 (grub_cmd_linux): Likewise.
3084
bda36bfa
CW
30852012-05-31 Christer Weinigel <christer@weinigel.se>
3086
3087 Fix EHCI low-speed.
3088
3089 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
3090 (GRUB_EHCI_MULT_TWO): Likewise.
3091 (GRUB_EHCI_MULT_THREE): Likewise.
3092 (GRUB_EHCI_CMASK_MASK): New enum value.
3093 (GRUB_EHCI_SMASK_MASK): Likewise.
3094 (GRUB_EHCI_CMASK_OFF): Likewise.
3095 (GRUB_EHCI_SMASK_OFF): Likewise.
3096 (grub_ehci_pci_iter): Enable periodic schedule.
3097 (grub_ehci_parse_notrun): Likewise.
3098 (grub_ehci_restore_hw): Likewise.
3099 (grub_ehci_setup_qh): Set flags for low speed transfers.
3100 (grub_ehci_find_qh): Use periodic list for low speed.
3101 (grub_ehci_setup_transfer): Check periodic queue as well.
3102 (grub_ehci_check_transfer): Likewise.
3103 (grub_ehci_cancel_transfer): Cancel periodic transfer.
3104
e12bcb1c
PFS
31052012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3106
3107 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
3108 parameter is used.
3109
bcc75fb3
PJ
31102012-05-31 Peter Jones <pjones@redhat.com>
3111
3112 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
3113 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
3114 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
3115
f19cb95e
VS
31162012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
3119 uninited variable. Allocate at least setup_sects.
3120
a4e5ca80
VS
31212012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 Fix handling of EFI with big memory maps.
3124
3125 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
3126 (real_mode_mem): Likewise.
3127 (real_mode_target): Likewise.
3128 (real_mode_pages): Likewise.
3129 (prot_mode_pages): Likewise.
3130 (linux_params): New var.
3131 (linux_cmdline): Likewise.
3132 (free_pages): Don't set real mode variables.
3133 (allocate_pages): Don't allocate real mode memory.
3134 (grub_e820_add_region): Remove the limit.
3135 (grub_linux_boot): Allocate and copy real mode memory.
3136 (grub_linux_unload): Free linux_cmdline.
3137 (grub_cmd_linux): Use temporary storage for parameters.
3138 (grub_cmd_initrd): Likewise.
3139 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
3140 (linux_kernel_params): Make it 1K big.
3141
ddb73558
VS
31422012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 * Makefile.util.def: Remove -Wno-format.
3145 * grub-core/Makefile.core.def: Likewise.
3146
1c4afb60
VS
31472012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3148
3149 * tests/cmp_unit_test.c: Add missing failure message.
3150 * tests/example_unit_test.c: Likewise.
3151 * tests/printf_unit_test.c: Likewise.
3152
941e3a6d
VS
31532012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
3156 relaxation of protective MBR requirements.
3157
b105df76
VS
31582012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * configure.ac: Add condition for COND_HOST_XNU.
3161 * Makefile.util.def (10_xnu): New script.
3162 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
3163
84e1569e
VS
31642012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
3167 objconv bug.
3168
130c0f77
VS
31692012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3170
3171 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
3172 Binary on other platforms stays identical.
3173
6fd0b143
VS
31742012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
3177 Apple.
3178
0af1751d
VS
31792012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
3182
176d5f7d
VS
31832012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
3186 rather than defining size_t ourselves to avoid conflict.
3187
7de5e20a
VS
31882012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
3191 initialisation to avoid __bzero reference.
3192
f7143efe
VS
31932012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
3196 version.
3197 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
3198 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
3199 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
3200 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
3201 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
3202
e6ad0555
VS
32032012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
3206 * grub-core/kern/misc.c: Likewise.
3207 * grub-core/loader/i386/xnu.c: Likewise.
3208 * include/grub/i386/tsc.h: Likewise.
3209 * include/grub/symbol.h: Likewise.
3210
4a5a3c4a
VS
32112012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
3214 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
3215 on older compiler.
3216
037f6d90
VS
32172012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3220 Implement Apple flavour.
3221 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
3222
f7194551
VS
32232012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
3226 (memmove) [__APPLE__]: Likewise.
3227 (memcpy) [__APPLE__]: Likewise.
3228 (memset) [__APPLE__]: Likewise.
3229 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
3230 (memmove) [__APPLE__]: Likewise.
3231 (memcpy) [__APPLE__]: Likewise.
3232 (memset) [__APPLE__]: Likewise.
3233
85a730ca
VS
32342012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
3237 dependency discard.
3238
40e80b94
VS
32392012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * grub-core/normal/main.c (read_config_file): Provide config_file and
3242 config_directory.
3243 * util/grub.d/41_custom.in: Use config_directoy when available.
3244
9da59c32
VS
32452012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
3248 (grub_bfs_dir): Likewise.
3249
2787ae53
PJ
32502012-05-27 Peter Jones <pjones@redhat.com>
3251
3252 The old code gives arguments to a printf function which can't work
3253 correctly, and the compiler complains.
3254
3255 * grub-core/tests/example_functional_test.c (example_test): Add
3256 missing text.
3257 * grub-core/tests/lib/test.c (add_failure): Rewrite.
3258 * include/grub/test.h (grub_test_assert_helper): New declaration.
3259 (grub_test_assert): Use grub_test_assert_helper.
3260
526ef13d
VS
32612012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3262
3263 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
3264 (exfctest): ... this to avoid overlong filenames.
3265 All users updated.
3266
20dd511c
VS
32672012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 Handle "." and ".." on squashfs.
3270
3271 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
3272 Make inode numbers into stack.
3273 (grub_squash_read_symlink): Use stack.
3274 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
3275 (make_root_node): Fill stack.
3276 (grub_squash_open): Use stack.
3277
1d80c62a
VS
32782012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3279
3280 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
3281 freeing.
3282
d336f652
VS
32832012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3284
3285 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
3286 stderr on test calls.
3287
8b43f587
VS
32882012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
3291
80a3dc3f
VS
32922012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
3295
47e297d4
VS
32962012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3297
3298 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
3299 "..".
3300
df042ccb
VS
33012012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
3304 (grub_hfsplus_iterate_dir): Add "." and "..".
3305
fc977f48
VS
33062012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 * grub-core/fs/cpio.c (canonicalize): Handle "..".
3309 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
3310
f3250e5f
VS
33112012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3312
3313 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
3314 (find_path): Handle "." and "..".
3315
fd8ed4c5
VS
33162012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3317
3318 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
3319 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
3320 (grub_affs_iterate_dir): Handle hardlinks.
3321
4ce776d2
MG
33222012-05-26 Matthew Garrett <mjg@redhat.com>
3323
3324 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
3325 (grub_efi_console_fini): Likewise.
3326 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
3327 (grub_video_gop_fill_mode_info): Rename to ...
3328 (grub_video_gop_fill_real_mode_info): ... this.
3329 (grub_video_gop_fill_mode_info): New function.
3330 (grub_video_gop_setup): Setup double framebuffer.
3331 (grub_video_gop_get_info_and_fini): Use original framebuffer.
3332 Free offscreen.
3333 (grub_video_gop_swap_buffers): Copy framebuffer.
3334 (grub_video_gop_fini): Free offscreen buffer.
3335 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
3336 New enum.
3337 (grub_efi_gop_blt_pixel): New struct.
3338
683031ba
VS
33392012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * gentpl.py: Remove error disabling for objconv.
3342
c2deb798
VS
33432012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3344
3345 * configure.ac: Remove -Wunitialized as it's not available on older
3346 compilers.
3347
33482012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
3349
3350 Fix extent overflow comparator.
3351
3352 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
3353 (grub_hfsplus_read_block): Set type.
3354 (grub_hfsplus_cmp_extkey): Compare type.
3355
d6b1fd36
VS
33562012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
3357
3358 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
3359
0a9aa0f6
VS
33602012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
3363 than 0.
3364
8360e159
VS
33652012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
3368 (dejavu_bold_14.pf2): New target.
3369
501b9e4b
VS
33702012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 * configure.ac: Fix djvu font detection.
3373
7026b0e2
VS
33742012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
3377 ext* instead of ext2.
3378
c2a51ade
VS
33792012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3380
3381 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
3382 name with \0.
3383
8f803a5d
JU
33842012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
3385
3386 * docs/grub-dev.texi: Remove dot from .png.
3387
13c6353f
VS
33882012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3389
3390 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
3391 protective entry in any slot.
3392 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
3393 if protective entry is found in any slot.
3394
3395 Protective entry in non-first slot make no sense but is a widespread
3396 brain damage.
3397
4cf6be1b
VS
33982012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
3401
937d1c44
VS
34022012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3403
3404 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
3405 with old reiserfs.
3406 (grub_reiserfs_open): Don't free root.
3407
021d90ec
VS
34082012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
3411 after freeing for safety.
3412
967b2b64
VS
34132012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3416 Reported by: Jordan Uggla.
3417
34274d02
JU
34182012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3419
967b2b64
VS
3420 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3421 actual implementation. Specifically, clarify that the grub menu will
3422 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3423 passed.
34274d02 3424
dcaaae9d
BH
34252012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3426
3427 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3428 of r0.
3429
7086ad52
VS
34302012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 Remove unjustified hard dependency of normal.mod on gfxterm.
3433
3434 * include/grub/term.h (grub_term_output): New member fullscreen.
3435 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3436 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3437 (grub_gfxterm): Set .fullscreen.
3438 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3439 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3440
37ed2c9b
VS
34412012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3444 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 3445 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 3446
a4469c88
VS
34472012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3448
3449 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3450
4e461486
VS
34512012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3454 a bad FS.
3455
aa78f5c4
VS
34562012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3457
3458 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3459 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3460
197626b5
VS
34612012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3462
3463 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3464 (grub_jfs_mount): Fill caseins.
3465 (grub_jfs_find_file): Respect caseins.
3466
8ad3f28c
VS
34672012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3470 through UTF-16.
3471
0c6c324e
VS
34722012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3475 New argument origpath. All users updated.
3476
c6666ba6
VS
34772012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3480 (read_attr): Ensure that we read start of possibly compressed block.
3481
e28e5fe5
VS
34822012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3485 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3486 All users updated.
3487
5fc23ab2
VS
34882012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3489
3490 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3491 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3492 (dejavu.pf2): Replace with ...
3493 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3494 this.
3495
79dbc21c
VS
34962012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * util/grub.d/20_linux_xen.in: Add missing line.
3499
d2fcfb0c
VS
35002012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3503 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3504 (grub_utf16_to_utf8): Likewise.
3505
5560e9d6
VS
35062012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3509 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3510 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3511 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3512 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3513 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3514
35152012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
3516
3517 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3518 a bad FS.
3519
5560e9d6 35202012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
3521
3522 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3523 (grub_udf_read_symlink): Handle read_string failure.
3524
5eae3175
VS
35252012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3526
3527 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3528 comment.
3529
c1ad82db
VS
35302012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 Fix handling of UDF symlinks.
3533
3534 * grub-core/fs/udf.c (read_string): New argument outbuf.
3535 All users updated.
3536 (grub_ufs_read_symlink): Rename to ...
3537 (grub_udf_read_symlink): ... this. All users updated.
3538 Handle symlinks with more than one component.
3539
33eca6e0
VS
35402012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3543 symlinks. Replace leading colon with a slash.
3544
57f4a70b
VS
35452012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3548 filename.
3549
38c8ee20
VS
35502012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3553 match in inner node.
3554
2e57f28f
VS
35552012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3558 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3559 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3560 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3561 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3562 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3563 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3564 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3565 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3566
fe8c2f11
VS
35672012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 Use grub-probe and not cmp to check that disk is empty.
3570
3571 * util/grub-install.in: Use grub-probe for zero-check.
3572 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3573 (probe): Handle PRINT_ZERO_CHECK.
3574 (argp_parser): Handle -t zero_check.
3575
35762012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
3577
3578 Flush block cache on adding disk to device map.
3579
3580 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3581 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3582 adding.
3583 (read_device_map): Likewise.
3584 (open_device): Flush on opening.
3585
690434e8
VS
35862012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3589 (handle_symlink): Fix off-by-one error.
3590 Canonicalize the target.
3591 (grub_cpio_dir): Canonicalize the name.
3592 Fix memory leak.
3593 Set directory.
3594 (grub_cpio_open): Canonicalize the name.
3595
742d2be6
VS
35962012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3599 handling.
3600
3244fe96
VS
36012012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3602
3603 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3604 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3605
8aeb1837
VS
36062012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3607
3608 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3609 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 3610 All users updated.
8aeb1837 3611
9133fd05
VS
36122012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3613
3614 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3615 counterpart.
3616
6d521c5b
VS
36172012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 Fix UFS1 big file support.
3620
3621 * grub-core/fs/ufs.c (INODE): Removed.
3622 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3623 64-bit.
3624 (INODE_MODE): Simplify.
3625 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3626 (grub_ufs_lookup_symlink): Don't use INODE.
3627
21b82e17
VS
36282012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3631
3632 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3633 (grub_minix_data): Replace log_block_size with block_size.
3634 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3635 (grub_minix_mount): Fill block_size.
3636
36372012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
3638
3639 * configure.ac: Bump to beta5.
3640
f417ed04
VS
36412012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 Fix wrapped HFS+ handling.
3644
3645 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3646 blocks_start. All users updated.
3647 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3648 wrapping offset.
3649 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3650
607d282b
VS
36512012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 Fix long symlinks on reiserfs.
3654
3655 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3656 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3657 (grub_reiserfs_iterate_dir): Save size for non-directories.
3658 (grub_reiserfs_open): Don't reread stat block as we already know the
3659 size.
3660 (grub_reiserfs_read): Split into...
3661 (grub_reiserfs_read_real): ... and ...
3662 (grub_reiserfs_read): ...this.
3663
ae16024d
VS
36642012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 Fix non-indexed JFS.
3667
3668 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3669 (grub_jfs_data): New field namecomponentlen.
3670 (grub_jfs_mount): Fill namecomponentlen.
3671 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3672
eea1e26e
VS
36732012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3676 * tests/grub_script_echo1.in: Add tests.
3677
df760f77
VS
36782012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * util/grub-install.in: Ignore empty devicetree directory.
3681
5efb817d
B
36822012-05-08 Bean <bean123ch@gmail.com>
3683
3684 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3685 All users updated.
3686 (free_rsm): Free header as well.
3687 (free_old_fragments): Fix memory leak.
3688 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3689 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3690 (destroy_pq): Likewise.
3691 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3692
668ea6d2
VS
36932012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3694
3695 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3696 resulting hash as a precaution.
3697
1739b1fe
VS
36982012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3701 '_' in variable names.
3702 * grub-core/net/net.c (grub_net_network_level_interface_register):
3703 Likewise.
3704
6ae485aa
VS
37052012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3706
3707 Fix AFFS with non-512B blocks.
3708
3709 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3710 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3711 (grub_affs_data): Replace blocksize with log_blocksize.
3712 (grub_affs_read_block): Fix non-512B blocks.
3713 (grub_affs_read_symlink): Likewise.
3714 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3715 (grub_affs_read): Fix non-512B blocks.
3716 (grub_affs_label): Likewise.
3717 (grub_affs_mtime): Likewise.
3718 (grub_affs_mount): Fix block detection routine.
3719
d20fab84
VS
37202012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3721
3722 Add filesystem mtime to AFFS.
3723
3724 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3725 (aftime2ctime): New function.
3726 (grub_affs_dir): Use aftime2ctime.
3727 (grub_affs_label): Fix return value.
3728 (grub_affs_mtime): New function.
3729 (grub_affs_fs): Add mtime.
3730
e87b10f5
VS
37312012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3732
3733 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3734 UTF-8.
3735
7dceec9b
VS
37362012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3739 UTF-8.
3740
2f48221f
VS
37412012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3744
dacd85cf
VS
37452012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3748 flags.
3749 (FLAGS_CASE_SENSITIVE): New enum value.
3750 (cache_entry): New struct.
3751 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3752 cache_size and cache.
3753 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3754 Add log_blocksize and fshelp_flags.
3755 (grub_sfs_read_extent): Handle non-512 blocks.
3756 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3757 (grub_sfs_read_file): Handle non-512 blocks.
3758 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3759 fshelp_flags.
3760 (grub_sfs_read_symlink): Handle non-512 blocks.
3761 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3762 (grub_sfs_dir): Free cache.
3763 (grub_sfs_close): Likewise.
3764
24e9a854
VS
37652012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3768 filesystems.
3769
62ace64d
VS
37702012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3771
3772 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3773
83b2e89c
VS
37742012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3777
75ccaea3
VS
37782012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3781 (grub_sfs_read_extent): Likewise.
3782 (grub_sfs_read_block): Likewise.
3783 (grub_sfs_mount): Likewise.
3784 (grub_sfs_iterate_dir): Likewise.
3785 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3786 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3787
1b8463f2
VS
37882012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3789
3790 Fix errors on compressed NTFS with 512B clusters.
3791
3792 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3793 types.
3794 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3795 not 0.
3796 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3797 Relax check for inline extents.
3798 (ntfscomp): Return correct -1 on error and not 0.
3799
4f8e368f
VS
38002012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * util/grub-install.in: Fix handling of prefix containing spaces.
3803
6f5d5ee8
VS
38042012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3807 (grub_squash_read_data): Fix offset byte-swapping.
3808
ce41ab7a
VS
38092012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3812 per common usage and preffered in several parts of code.
3813 (grub_memcmp): Likewise.
3814 (grub_strncmp): Likewise.
3815 * include/grub/misc.h (grub_strcasecmp): Likewise.
3816 (grub_strncasecmp): Likewise.
3817 * Makefile.util.def (cmp_test): New test.
3818 (grub_script_strcmp): Likewise.
3819 * tests/cmp_unit_test.c: New file.
3820 * tests/grub_script_strcmp.in: Likewise.
3821 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3822
49717bf4
VS
38232012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * include/grub/pci.h: Move enums into no-asm part.
3826
0a308f64
VS
38272012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3830
1796965f
ST
38312012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3832
3833 * util/getroot.c (find_hurd_root_device): Try to make error message
3834 and comments to translators clearer.
3835
4e9b2819
VS
38362012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3839
076aeb50
VS
38402012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3841
3842 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3843 btrfs.
3844
19424d94
VS
38452012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * docs/grub.cfg: Update.
3848
ebb73076
VS
38492012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * docs/grub.texi (PXE): Remove not present variables.
3852
9a1b669c
VS
38532012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 * grub-core/net/net.c (defserver_set_env): New function.
3856 (defserver_get_env): Likewise.
3857 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3858
d38bf7d3
VS
38592012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3862 entries.
3863
38642012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
3865
3866 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3867 * grub-core/kern/emu/hostdisk.c: Likewise.
3868
e5e4ca48
ST
38692012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3870
3871 Handle hurd userspace partitions.
3872
3873 * util/getroot.c (find_hurd_root_device): New function.
3874 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3875
56bb5dd5
VS
38762012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3879 names.
3880 Reported by: Bastian Blank.
3881
9e8bc27a
VS
38822012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3885 crossing page boundary.
3886
aa01499d
VS
38872012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 Fix B-tree search in BFS, especially in presence of non-ASCII
3890 characters.
3891
3892 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3893 (find_in_b_tree): Use standard bsearch + btree algorithm.
3894
57006035
VS
38952012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3896
3897 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3898 and so on.
3899
9d34bb85
MG
39002012-05-03 Matthew Garrett <mjg@redhat.com>
39012012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3902
3903 Suspend broadcom cards in order to stop their DMA.
3904
3905 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3906 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3907 (pci): Don't build on x86 EFI.
3908 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3909 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3910 New function.
3911 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3912 stop_broadcom if running on EFI.
3913 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3914 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3915 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3916 (grub_pci_find_capability): New proto.
3917
01aab997
VS
39182012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * docs/grub.texi: Remove dot from the extension as it apparently
3921 doesn't work with some makeinfo versions.
3922
fbd8dca6
VS
39232012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3924
3925 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3926 with GRUB expectance.
3927
dab797f4
VS
39282012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3929
3930 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3931
1516bfb4
VS
39322012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3935 zero after directory block since last entry may be not 0-terminated if
3936 it ends on block boundary. Use continue instead of if spanning whole
3937 loop.
3938
a3a0eace
VS
39392012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 Support 4K sectors UDF inline files.
3942
3943 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3944 (grub_udf_extended_file_entry): Likewise.
3945 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3946 All users updated.
3947 (get_fshelp_size): New function.
3948 (grub_udf_read_icb): Read whole block.
3949 (grub_udf_iterate_dir): Likewise.
3950 (grub_udf_dir): Likewise.
3951 (grub_udf_open): Likewise.
3952
c82f16c1
VS
39532012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3954
3955 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3956
59fd2aac
VS
39572012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3958
3959 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3960 inline symlinks in addition to workaround.
3961
3b4afb4d
VS
39622012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3963
3964 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3965
f45c794a
VS
39662012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3969
f25cecbd
VS
39702012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3973
bb9a34e8
VS
39742012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 Fix reiserfs big seek times.
3977
3978 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3979 exact. All users updated.
3980 (grub_reiserfs_read): Use nearest btree search for seeking.
3981 Fix return value on error.
3982
dc478aea
VS
39832012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3986 entries.
3987 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3988 * docs/grub.texi: Update menuentry description.
3989
8db10f47
VS
39902012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3993 crash when embedding onto filesystem.
3994
bcb288ed
VS
39952012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3998 name.
3999
a626fdd7
VS
40002012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
4003
b2f68477
VS
40042012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
4007 commit.
4008
ba15b2af
B
40092012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
40102012-05-01 Bean <bean123ch@gmail.com>
4011
4012 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
4013
a188012e
VS
40142012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
4017 Special behaviour for len = 0 to read whole file isn't used anywhere and
4018 can cause buffer ovewrflows in several places.
4019
f0a53ed2
VS
40202012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
4023
5ed554f0
VS
40242012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4025
4026 Handle RAIDZ on non-512B sectors.
4027
4028 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
4029 max_children_ashift.
4030 (fill_vdev_info_real): Fill max_children_ashift.
4031 (read_device): Use max_children_ashift.
4032
ddc58357
VS
40332012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
4036
e3282399
VS
40372012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4038
4039 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
4040 disk names.
4041 * docs/grub.texi: Update device.map parts.
4042
ee618bd4
VS
40432012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4044
4045 Don't scan into non-diskfilter devices having diskfilter names.
4046
4047 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
4048 (scan_disk): New argument accept_diskfilter. Fix recursion depth
4049 handling.
4050 (scan_disk_hook): New function.
4051
bdf88864
B
40522012-04-29 Bean <bean123ch@gmail.com>
4053
4054 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
4055 allocation.
4056
32745f51
MK
40572012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
4058
4059 * configure.ac: Detect starfield theme font path
4060 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
4061
bc95c8c0
VS
40622012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4063
4064 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
4065 geometry on serial consoles.
4066
147fbcab
VS
40672012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4068
4069 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
4070 because of network consoles.
4071
0f42c889
VS
40722012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
4075 handling.
4076
4a3594c9
VS
40772012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4078
4079 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
4080 falls on Q syndrom.
4081
5cb53879
VS
40822012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4083
4084 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
4085 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
4086
b282dfe5
VS
40872012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
4090 Allocate at lest 8192 for temporary buffer as required for lzo.
4091
daa59f47
VS
40922012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
4095 to cluster_bits, since it's already added in.
4096 (grub_fat_read_data): Likewise.
4097
986748ce
VS
40982012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4099
4100 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
4101 as long as cluster size is multiple of 512 bytes.
4102
a20f6ad0
VS
41032012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * util/grub-mkrescue.in: Fix locale directory.
4106
385f9abb
VS
41072012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * grub-core/kern/emu/hostdisk.c (map): Make static.
4110
1c557d30
B
41112012-04-23 Bean <bean123ch@gmail.com>
4112
4113 * util/grub-fstest.c (fstest): Add missing break.
4114
524b5d3a
ST
41152012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
4116
4117 Fix hurd build.
4118
4119 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
4120 not define nr variable.
fe4824e9 4121 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
4122 find_root_devices_from_poolname, find_root_devices_from_libzfs,
4123 grub_find_device): Do not define.
524b5d3a 4124
9a06490c
VS
41252012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 Fix kfreebsd compile and behaviour.
4128
4129 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
4130 format-security.
4131 * util/getroot.c: Fix wait.h include.
4132 (grub_guess_root_devices): Error if grub_find_device fails.
4133 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
4134 (grub_util_get_dev_abstraction): Likewise.
4135 (grub_util_pull_device): Likewise.
4136 (grub_util_get_grub_dev): Likewise.
4137 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
4138
48143d96
VS
41392012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4140
4141 Fix and unify wholedisk detection.
4142
4143 * util/getroot.c (convert_system_partition_to_system_disk): New argument
4144 is_part. All users updated.
4145 (device_is_wholedisk): Removed.
4146 (grub_util_biosdisk_get_grub_dev): Use is_part.
4147
ebbd24f3
VS
41482012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
4151 mode.
4152
56f7aa1e
VS
41532012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 * configure.ac: Bump to beta4.
4156
9c815e01
VS
41572012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4158
4159 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
4160 --fs-uuid --set UUID syntax.
4161
59e2651a
VS
41622012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
4165 disunification.
4166
54e03cfc
VS
41672012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4168
4169 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
4170
81092a75
MK
41712012-04-18 Mads Kiilerich <mads@kiilerich.com>
4172
4173 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
4174
f8315e14
MG
41752012-04-18 Mike Gilbert <floppym@gentoo.org>
4176
4177 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
4178
1501ac21
B
41792012-04-18 Bean <bean123ch@gmail.com>
4180
4181 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
4182 place.
4183
cb7f944e
VS
41842012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4185
4186 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
4187 users updated.
4188 (grub_util_biosdisk_read): Handle Linux partitions not exactly
4189 corresponding to GRUB partitions.
4190 (grub_util_biosdisk_write): Likewise.
4191
b72d44a1
VS
41922012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4193
4194 Scan mdraid before LVM.
4195
4196 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
4197 (grub_diskfilter_register_front): ... this.
4198 (grub_diskfilter_register_back): New function.
4199 All users of grub_diskfilter_register updated.
4200
33d918b8
VS
42012012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * util/grub-install.in: Fix an automatic target detection bug.
4204
c6ca973d
VS
42052012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4206
4207 * util/grub-install.in: New option --efi-directory.
4208
b41be562
VS
42092012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
4212 boot services if we have no other choice.
4213
42142012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * util/grub-mknetdir.in: Rename --override-directory to --directory and
4217 document it.
4218 * tests/util/grub-shell.in: Update to --directory.
4219
e0595a73
VS
42202012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
4223
4ed80652
VS
42242012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4225
4226 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
4227 (grub_minix_read_file): Likewise.
4228 (grub_minix_read_inode): Likewise.
4229 (grub_minix_find_file): Likewise.
4230 (grub_minix_dir): Likewise.
4231
56008077
VS
42322012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4233
4234 * util/grub-setup.c (setup): Fix partition handling and blocklist
4235 check.
4236
ee520775
VS
42372012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
4240 redundant buggy overlap check.
4241
16fc9293
VS
42422012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
4245 and grub-mknetdir.
4246
9bab65c4
VS
42472012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
4250 kh.loadflags on pre-2.00 kernels.
4251
3c491b47
VS
42522012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4253
4254 Terminate UNDI and PXE before launching the payload to avoid problems
4255 with DMA.
4256
4257 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
4258 (grub_loader_flags): ... this. All users updated.
4259 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
4260 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
4261 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
4262 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
4263 function.
4264 (grub_pxe_restore): Likewise.
4265 (fini_hnd): New var.
4266 (GRUB_MOD_INIT): Register shutdown hook.
4267 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
4268 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
4269 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
4270 (grub_loader_set): Rename second argument to flags.
4271
851ffada
VS
42722012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
4275 written bytes.
4276 (grub_get_num_of_utf8_bytes): New function.
4277 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
4278 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
4279 executing it.
4280 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
4281 (grub_ucs4_to_utf8): Change return type.
4282
491c57a8
VS
42832012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4284
4285 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
4286 warning.
851ffada
VS
4287 * grub-core/fs/bfs.c (hop_level): Likewise.
4288 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 4289
756773df
VS
42902012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * grub-core/lib/adler32.c: Recode due to license unclearness.
4293
fd556a96
VS
42942012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
4297 (test_header): Likewise.
4298
9f9d3f69
VS
42992012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 Fix --help formatting.
4302
4303 * util/grub-mkconfig_lib.in (print_option_help): New function.
4304 (grub_fmt): Likewise.
4305 * util/grub-install.in: Use print_option_help and grub_fmt.
4306 * util/grub-kbdcomp.in: Likewise.
4307 * util/grub-mkconfig.in: Likewise.
4308 * util/grub-mknetdir.in: Likewise.
4309 * util/grub-mkrescue.in: Likewise.
4310 * util/grub-mkstandalone.in: Likewise.
4311 * util/grub-reboot.in: Likewise.
4312 * util/grub-set-default.in: Likewise.
4313 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4314
561ec77e
VS
43152012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 * linguas.sh: Remove autogenerated *.po.
4318
7ec2b021
VS
43192012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * po/README: Move language fetcing to ...
4322 * linguas.sh: ... here.
4323 * po/README: Point to linguas.sh.
4324
a88f3270
VS
43252012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4326
4327 * po/README: Exclude ko.po due to disclaimer problems.
4328
d61357ce
VS
43292012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4330
4331 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
4332 len = 0.
4333 (grub_gettext_translate_real): Handle 0th string.
4334 (grub_gettext_translate): Ensure that "" isn't translated.
4335
505e41dc
VS
43362012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4337
4338 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
4339 TRANSLATORS comment.
4340 (grub_diskfilter_print_partmap): Propagate changing of error into
4341 warning.
4342
e44092db
VS
43432012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4344
4345 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
4346 to uint64_t to prevent overflow.
4347 (grub_diskfilter_lv): Increase start_extent and extent_count
4348 to uint64_t to prevent overflow.
4349
9b83956a
VS
43502012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4351
4352 * configure.ac: Increase version.
4353
da0d5b3f
VS
43542012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
4357
4358 * po/Rules-translit: New file.
4359 * po/arabic.sed: Likewise.
4360 * po/cyrillic.sed: Likewise.
4361 * po/greek.sed: Likewise.
4362 * po/hebrew.sed: Likewise.
4363 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
4364 * po/Makefile.in.in: Add extra_dist4.
4365
ac66b453
VS
43662012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4367
4368 Handle big-endian minixfs (fixes minixfs tests on bigendian).
4369
4370 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
4371 modify names. Introduce MODE_BIGENDIAN.
4372 * grub-core/fs/minix_be.c: New file.
4373 * grub-core/fs/minix2_be.c: Likewise
4374 * grub-core/fs/minix3_be.c: Likewise.
4375 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
4376 minix3_be.
4377 * grub-core/Makefile.core.def (minix_be): New module.
4378 (minix2_be): Likewise.
4379 (minix3_be): Likewise.
4380
43812012-04-01 Felix <email@hamburg.de>
4382
4383 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
4384 (devs): Add MBP 2011.
4385
0a2d5a82
VS
43862012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
4389
d1625889
VS
43902012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * grub-core/normal/cmdline.c (print_completion): New field
4393 prompt_len.
4394 (grub_cmdline_get): Handle width properly.
4395
6d36a236
VS
43962012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 * grub-core/commands/lsacpi.c (options): Add missing terminator.
4399
9576977e
VS
44002012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 4403 after 29th of February.
9576977e 4404
d73ff15d
VS
44052012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 Fix exfat endianness handling.
4408
4409 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
4410 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
4411 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
4412 Byte-swap utf16 when necessary.
4413 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4414
bbb39a45
AB
44152012-03-31 Anton Blanchard <anton@samba.org>
44162012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 Fix btrfs endianness handling.
4419
4420 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4421 (lower_bound): Make root uint64_t. Use root in le.
4422 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4423 (find_path): Fix template key init.
4424 (grub_btrfs_dir): Fix mtime byteswap.
4425 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4426
354e0af7
VS
44272012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4428
4429 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4430 recursion_depth. Break infinite resursions. All users updated.
4431
4e75f21c
VS
44322012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4435 after free.
4436 Reported by: Peter Jones.
4437
25581802
AB
44382012-03-31 Anton Blanchard <anton@samba.org>
4439
4440 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4441 8 bit values.
4442
08fbf92e
VS
44432012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4444
4445 * util/grub-install.in: Fix nvram call for PreP.
4446
5d1182a6
VS
44472012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4450 the error when some elements are missing into a warning.
4451
3f8cdd90
VS
44522012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4453
4454 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4455
51006716
CW
44562012-03-28 Colin Watson <cjwatson@ubuntu.com>
4457
4458 * docs/grub.texi (Invoking grub-probe): New section.
4459 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4460
e1bd676b
VS
44612012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 Fix tab and wide character handling in editor and menu.
4464
4465 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4466 agglomerate control characters with combining marks.
4467 (bidi_line_wrap): Allow break on tab.
4468 (grub_unicode_get_comb_start): New function.
4469 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4470 and tab correctly.
4471 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4472 with a space.
4473 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4474 fixed_tab_size. All users updated.
4475 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4476 (grub_term_getcharwidth): Handle \t.
4477 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4478 and copy.
4479
22e6a774
VS
44802012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4481
4482 Handle big-endian mdraid.
4483
4484 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4485 * grub-core/Makefile.core.def (mdraid09_be): New module.
4486 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4487 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4488 * grub-core/disk/mdraid_linux_be.c: New file.
4489
3c0eae66
VS
44902012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4493
b6cf74c9
VS
44942012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4497 missing quotes which caused confusion among translators.
4498
83c93b9c
VS
44992012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4500
4501 * util/grub-mkconfig_lib.in: Fix typo.
4502
ac6fd218
VS
45032012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4504
4505 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4506 spaces.
4507 * tests/grub_script_leading_whitespace.in: New file.
4508 * Makefile.util.def (grub_script_leading_whitespace): New test.
4509
ba287dd8
VS
45102012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4513 to work.
4514
d2d58d0a
VS
45152012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4518 starts with control character.
4519
0382d9bb
VS
45202012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4523 overflow.
4524 (grub_gdb_outbuf): Likewise.
4525
d83ff9f9
VS
45262012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4527
4528 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4529 zero terminator. Fixes a crash.
4530
2282da4a
VS
45312012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4532
4533 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4534 beyond 4 GiB.
4535 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4536 images independently of preffered adderss field.
4537
0ae4f0bd
VS
45382012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4541 * grub-core/commands/regexp.c: Likewise.
4542 * grub-core/loader/i386/linux.c: Likewise.
4543 * grub-core/partmap/msdos.c: Likewise.
4544 * grub-core/script/execute.c: Likewise.
4545 * grub-core/term/gfxterm.c: Likewise.
4546
546fbe9b
VS
45472012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 Add variable parsing in $"..." and fix several mismatches with bash.
4550
4551 * Makefile.util.def (grub_script_gettext): New test.
4552 * grub-core/script/execute.c (parse_string): New function.
4553 (gettext_append): Likewise.
4554 (grub_script_arglist_to_argv): Use gettext_append.
4555 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4556 * tests/grub_script_gettext.in: New file.
4557
9fdb2d7b
VS
45582012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 Fix handling of leading spaces in scripts.
4561
4562 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4563 spaces.
4564 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4565 other than skipping \r. All users updated.
4566 * tests/grub_script_echo1.in: Add space-related tests.
4567 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4568
1a1ac4f6
VS
45692012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4572
b63d89b6
VS
45732012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4574
4575 * configure.ac: Bump up the version to beta2.
4576
17f38c0f
VS
45772012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 Fix gettext reload bugs (e.g. inability to disable gettext
4580 once enabled).
4581
4582 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4583 main_context and secondary_context. All functions updated.
4584 (grub_gettext_translate): Rename to ...
4585 (grub_gettext_translate_real): ... this. Return NULL on failed
4586 translate.
4587 (grub_gettext_translate): Handle secondary context.
4588 (grub_gettext_delete_list): Close file and zero-out the context.
4589 (grub_mofile_open): Don't call grub_gettext_delete_list.
4590 Don't close file.
4591 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4592 if locale="" to avoid pointless error message.
4593 (grub_gettext_env_write_lang): Update lang even if load fails.
4594 Handle secondary context.
4595 (grub_gettext_reread_prefix): New function.
4596 (read_main): Likewise.
4597 (read_secondary): Likewise.
4598 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4599 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4600 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4601 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4602
8e56f870
VS
46032012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 * configure.ac: Decrease warning level to avoid spurious warnings and
4606 to be able to compile with GCC 4.2.
4607 * Makefile.util.def: Remove -Wno-error=logical-op.
4608
82f6d455
WB
46092012-03-10 William Bittner <william.bittner@gmail.com>
4610
4611 * util/import_unicode.py: Add missing brackets around string for
4612 python 3 support.
4613
1ecd61a4
VS
46142012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 Fix efi chainloader on network root.
4617
4618 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4619 network devices.
4620 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4621 New function.
4622
14361ee8
VS
46232012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4626 unused show_text member.
4627 * docs/grub.texi: Document "text" property.
4628
922aabf3
VS
46292012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4630
4631 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4632 in dprintf.
4633
ec316771
VS
46342012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4635
4636 Fix IMSM handling on Fedora.
4637
4638 * util/getroot.c (grub_util_is_imsm): New function.
4639 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4640
0f021838
VS
46412012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4642
4643 * Makefile.am: Strip gold section.
4644 * conf/Makefile.common: Likewise.
4645 * gentpl.py: Likewise.
4646 * grub-core/Makefile.core.def: Likewise.
4647 * grub-core/genmod.sh.in: Likewise.
4648
1039c8eb
VS
46492012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4650
4651 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4652 * util/grub.d/20_linux_xen.in: Likewise.
4653 Based on Debian patch.
4654
6dd412cd
VS
46552012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4656
4657 * util/grub.d/10_linux.in: Fix syntax error resulting in
4658 Richard Laager's patch.
4659 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4660
3fd8bae5
VS
46612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4662
4663 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4664 dependencies.
4665
7eea1671
RL
46662012-03-10 Richard Laager <rlaager@wiktel.com>
4667
4668 * util/grub.d/10_linux.in: Fix ZFS root passing.
4669
e8e0566b
VS
46702012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4671
4672 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4673 * grub-core/commands/xnu_uuid.c: Likewise.
4674 * grub-core/loader/efi/appleloader.c: Likewise.
4675 * grub-core/script/execute.c: Likewise.
4676 * grub-core/script/main.c: Likewise.
4677 * util/grub-mkfont.c: Likewise.
4678
1acc5b1f
VS
46792012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4680
4681 * util/grub-mkfont.c (options): Use more appropriate "select" that
4682 "set" for face index.
4683
35d70620
VS
46842012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4685
4686 * util/grub-editenv.c (options): Gettextize command summaries.
4687
c9eb96b5
VS
46882012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4689
4690 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4691 "out of memory" error messagge.
4692
1f493136
VS
46932012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4694
4695 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4696 of diskfilter for diskfilter on diskfilter support.
4697
6d790129
VS
46982012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4701
005f46c9
VS
47022012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4703
4704 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4705 themes/starfield.
4706
c8f778a0
VS
47072012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4708
4709 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4710
de1e64eb
VS
47112012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4714
c6d54211
VS
47152012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4718 of error message.
4719
dd390777
VS
47202012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4721
4722 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4723
5fd1c522
VS
47242012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4725
4726 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4727 message.
c6d54211 4728 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 4729
fae01f6c
VS
47302012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4731
4732 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4733 Gettextize.
4734 * util/grub-mount.c (options): Likewise.
4735
292fdaff
VS
47362012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4737
4738 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4739 gettextize.
4740 * grub-core/commands/search_wrap.c (options): Likewise.
4741
ecdbae77
VS
47422012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4743
4744 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4745
52bfedfa
VS
47462012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4749 size calculation.
4750 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4751 none is known.
4752
55b20e58
VS
47532012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4754
4755 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4756 "temporary" since it's used in identifier and is limited in space.
4757
fda9d101
VS
47582012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4759
4760 * po/POTFILES.in: Regenerate. Include *.h since they contain
4761 translatable strings as well.
4762
6a0295e2
VS
47632012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4766 byte-swap on big-endian.
4767 Reported by: Lennart Sorensen
4768
807fb77c
VS
47692012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4772 (allocate_pages): Improve dprintf.
4773 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4774 code32_start. Fill code32_start and kernel_alignment in params.
4775 (grub_cmd_initrd): Use prot_init_space.
4776
61ac50ba
VS
47772012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4780
abdd26dd
VS
47812012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 * util/grub-install.in: Add missing dot at the end of sentence.
4784
6e69da9c
VS
47852012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4786
4787 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4788 * grub-core/commands/videotest.c: Likewise.
4789 * grub-core/loader/i386/linux.c: Likewise.
4790
4a929343
VS
47912012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4792
4793 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4794 sentence.
4795 Reported by: Milo Casagrande.
4796
bb51c6c6
VS
47972012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4798
4799 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4800 * grub-core/commands/gptsync.c: Likewise.
4801 * grub-core/commands/hashsum.c: Likewise.
4802 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4803 * grub-core/commands/legacycfg.c: Likewise.
4804 * grub-core/io/gzio.c: Likewise.
4805 * grub-core/net/net.c: Likewise.
4806 * grub-core/term/gfxterm.c: Likewise.
4807 * grub-core/term/terminfo.c: Likewise.
4808 * grub-core/tests/test_blockarg.c: Likewise.
4809 * grub-core/video/video.c: Likewise.
4810 * util/grub-install.in: Likewise.
4811 * util/grub-mkfont.c: Likewise.
4812
b2b149cb
VS
48132012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4816
c7c080ad
VS
48172012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4818
4819 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 4820 Reported by: David Prévot.
c7c080ad 4821
f2e243c0
VS
48222012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4823
4824 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4825 description.
4826
09963c76
VS
48272012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 * util/grub-script-check.c (main): Fix a syntax error message which was
4830 unclear.
4831
a50514a8
VS
48322012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4835
4650daec
VS
48362012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4837
4838 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4839 messages.
4840
48412012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
4842
4843 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4844 without argument.
4845 * util/grub-mount.c (options): Likewise.
4846
bbc5a342
VS
48472012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4850
ef292a87
VS
48512012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4852
4853 * grub-core/net/http.c: Add TRANSLATORS comments.
4854 * grub-core/normal/cmdline.c: Likewise.
4855 * grub-core/normal/misc.c: Likewise.
4856 * grub-core/partmap/msdos.c: Likewise.
4857 * grub-core/parttool/msdospart.c: Likewise.
4858 * grub-core/script/execute.c: Likewise.
4859 * grub-core/script/main.c: Likewise.
4860 * grub-core/term/terminfo.c: Likewise.
4861 * grub-core/video/bitmap.c: Likewise.
4862 * util/grub-install.in: Likewise.
4863 * util/grub-mkimage.c: Likewise.
4864 * util/grub-mklayout.c: Likewise.
4865 * util/grub-setup.c: Likewise.
4866
0fc19bd0
VS
48672012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4868
4869 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4870 with similar messages in grub-fstest.
4871
d95862ef
VS
48722012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 * util/grub-install.in: Unify "option requires an argument" message
4875 with similar messages in other files.
4876 * util/grub-mkconfig.in: Likewise.
4877
b7308f90
VS
48782012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4879
4880 * util/grub-set-default.in: Replace printf with gettext_printf (the
4881 string in in question is already translated from grub-reboot)
4882
559dc587
VS
48832012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4884
4885 * configure.ac: Bump up the version to beta1.
4886
1a11761f
VS
48872012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4890 case when min_align = 0.
4891
24539abd
VS
48922012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4893
4894 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4895 and fix a case when line_start overflows.
4896
32bd735b
VS
48972012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 * util/grub-reboot.in (usage): Mention id posibility.
4900 * util/grub-set-default.in (usage): Likewise.
4901
1a2fd1e6
VS
49022012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4903
4904 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4905 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4906 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4907 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4908 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4909 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4910 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4911
90eeab76
VS
49122012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4913
4914 * grub-core/commands/menuentry.c (options): Remove
4915 GRUB_ARG_OPTION_REPEATABLE.
4916 Reported by: Andreas Vogel
4917
5ad1be82
AV
49182012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4919
4920 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4921
cb055286
HE
49222012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4923
4924 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4925 error.
4926
93b1cd79
VS
49272012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4928
4929 Use sort -V by the idea of Georgi Georgiev.
4930
4931 * util/grub-mkconfig_lib.in (version_sort): New function.
4932 (version_test_numeric): Use version_sort.
4933
0cdc126c
VS
49342012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4935
4936 Use submenus in grub-mkconfig.
4937
4938 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4939 * util/grub-mkconfig_lib.in (grub_quote): New function.
4940 (gettext_printf): Use gettext and not gettext_quoted to fix several
4941 messages.
4942 * util/grub.d/10_hurd.in: Use submenus.
4943 * util/grub.d/10_kfreebsd.in: Likewise.
4944 * util/grub.d/10_linux.in: Likewise.
4945 * util/grub.d/10_netbsd.in: Likewise.
4946 * util/grub.d/20_linux_xen.in: Likewise.
4947 * util/grub.d/30_os-prober.in: Likewise.
4948 * util/grub.d/10_illumos.in: Add missing quoting.
4949 * util/grub.d/10_windows.in: Likewise.
4950
d9bef9bc
VS
49512012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 Fix menu title instability bug.
4954
4955 * grub-core/commands/menuentry.c (options): New option --id.
4956 (grub_normal_add_menu_entry): New argument id. All users updated.
4957 (grub_cmd_menuentry): Handle --id.
4958 (grub_menu_init): Accept unknown arguments.
4959 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4960 feature_menuentry_options.
4961 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4962 saved_entry.
4963 (get_entry_number): Match with id as well.
4964 * include/grub/menu.h (grub_menu_entry): New member id.
4965 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4966 * util/grub.d/00_header.in: Define menuentry_id_option.
4967 * util/grub.d/10_hurd.in: Define id.
4968 * util/grub.d/10_illumos.in: Likewise.
4969 * util/grub.d/10_kfreebsd.in: Likewise.
4970 * util/grub.d/10_linux.in: Likewise.
4971 * util/grub.d/10_netbsd.in: Likewise.
4972 * util/grub.d/10_windows.in: Likewise.
4973 * util/grub.d/20_linux_xen.in: Likewise.
4974 * util/grub.d/30_os-prober.in: Likewise.
4975
49762012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
4977
4978 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4979 "scope" with "body".
4980
7c8d0ce7
VS
49812012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4984 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4985 prot_size and prot_file_size.
4986
49de079b
VS
49872012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4990 All users updated. If easily=1 require raid-5/-6 to be full.
4991 (is_node_readable): Likewise.
4992 (scan_devices): Scan incomplete but readable LVs at the end.
4993 (grub_diskfilter_memberlist): Pull missing devices.
4994 (insert_array): Skip scanning until device is complete or scan is
4995 done otherwise.
4996 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4997 check.
4998 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4999 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
5000
aff05d45
MG
50012012-03-03 Matthew Garrett <mjg@redhat.com>
50022012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 Avoid EFI boot services when loading Linux.
5005
5006 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
5007 avoid_efi_bootservices. All users updated.
5008 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
5009 argument avoid_efi_bootservices. All users updated.
5010 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
5011 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
5012 align, min_align, relocatable, prefered_address. All users updated.
5013 Allocate avoiding boot services if kernel is relocatable.
5014 (grub_cmd_linux): Check if kernel is relocatable.
5015 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
5016 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
5017 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
5018 avoid_efi_boot_services.
5019 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
5020 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
5021 (linux_kernel_params): Likewise.
5022
3935dde2
MG
50232012-03-03 Matthew Garrett <mjg@redhat.com>
50242012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5025
5026 Use EDID on EFI.
5027
5028 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
5029 datasize_out.
5030 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
5031 modes. Set gop_handle.
5032 (grub_video_gop_get_edid): New function.
5033 (grub_gop_get_preferred_mode): Likewise.
5034 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
5035 (grub_video_efi_gop_adapter): Set .get_edid.
5036 * include/grub/efi/edid.h: New file.
5037 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
5038
32107ec0
VS
50392012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5040
5041 * util/grub-install.in: Load efivars unconditionally.
5042
e70a2c50
VS
50432012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5044
5045 * po/Rules-piglatin: Change suffix from .po-update-en to
5046 .po-update-en-piglatin.
5047
8f9cace1
VS
50482012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 Add a pig farm.
5051
5052 * po/piglatin.sed: New file.
5053 * po/en@piglatin.header: Likewise.
5054 * po/Rules-piglatin: Likewise.
5055 * po/README: Add en@piglatin to autogenerated languages.
5056
8f95d002
VS
50572012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
5060 "Command for ...".
5061 * grub-core/commands/hdparm.c (options): Use "Display" rather than
5062 "Check" since we don't check anything.
5063 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
5064 is 64-bit one.
5065 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
5066 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
5067 (grub_md_sha512_real): Likewise.
5068
805a8dcc
VS
50692012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5070
5071 * grub-core/commands/gptsync.c: Fix typographic quoting.
5072 * grub-core/commands/ieee1275/suspend.c: Likewise.
5073 * grub-core/commands/parttool.c: Likewise.
5074 * grub-core/commands/search_wrap.c: Likewise.
5075 * grub-core/commands/videoinfo.c: Likewise.
5076 * grub-core/gfxmenu/gui_label.c: Likewise.
5077 * grub-core/hello/hello.c: Likewise.
5078 * grub-core/kern/emu/main.c: Likewise.
5079 * grub-core/net/net.c: Likewise.
5080 * grub-core/normal/menu.c: Likewise.
5081 * grub-core/normal/menu_text.c: Likewise.
5082 * grub-core/normal/misc.c: Likewise.
5083 * util/grub-editenv.c: Likewise.
5084 * util/grub-install.in: Likewise.
5085 * util/grub-kbdcomp.in: Likewise.
5086 * util/grub-mkconfig.in: Likewise.
5087 * util/grub-mknetdir.in: Likewise.
5088 * util/grub-mkrescue.in: Likewise.
5089 * util/grub-mkstandalone.in: Likewise.
5090 * util/grub-reboot.in: Likewise.
5091 * util/grub-set-default.in: Likewise.
5092 * util/grub-setup.c: Likewise.
5093 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5094
40211ab8
VS
50952012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5096
5097 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
5098 * grub-core/commands/keystatus.c: Likewise.
5099 * grub-core/commands/loadenv.c: Likewise.
5100 * grub-core/commands/probe.c: Likewise.
5101 * grub-core/commands/regexp.c: Likewise.
5102 * grub-core/commands/true.c: Likewise.
5103 * grub-core/commands/videoinfo.c: Likewise.
5104 * grub-core/disk/cryptodisk.c: Likewise.
5105 * grub-core/disk/ldm.c: Likewise.
5106 * grub-core/disk/loopback.c: Likewise.
5107 * grub-core/disk/luks.c: Likewise.
5108 * grub-core/fs/zfs/zfsinfo.c: Likewise.
5109 * grub-core/kern/disk.c: Likewise.
5110 * grub-core/kern/emu/hostdisk.c: Likewise.
5111
0c7d99c7
VS
51122012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5113
5114 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
5115 * util/grub-install.in: Add missing quote in the comment.
5116
e7d2559b
VS
51172012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5118
5119 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
5120 * grub-core/commands/lsmmap.c: Likewise.
5121 * grub-core/commands/minicmd.c: Likewise.
5122 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
5123 * grub-core/commands/regexp.c: Likewise.
5124 * grub-core/gdb/gdb.c: Likewise.
5125 * grub-core/term/gfxterm.c: Likewise.
5126 * util/grub-mkconfig.in: Likewise.
5127 * util/grub-mkfont.c: Likewise.
5128 * util/grub-mklayout.c: Likewise.
5129 * util/grub-mknetdir.in: Likewise.
5130 * util/grub-mkrescue.in: Likewise.
5131 * util/grub.d/30_os-prober.in: Likewise.
5132
49ce9e50
VS
51332012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5134
5135 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
5136 with "Direct color" and "Packed" with "Packed pixel".
5137 (grub_cmd_videoinfo): Simplify legend.
5138
e4b791fa
VS
51392012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5140
5141 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5142 absolutely unclear error message.
5143
fd1265cb
VS
51442012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5145
5146 * util/grub-mkstandalone.in: Remove confusing leftover print.
5147
8822a8a0
VS
51482012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
5151 comments.
5152 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
5153 (GRUB_MOD_INIT): Likewise.
5154 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
5155 VGA mode.
5156 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
5157 comments.
5158 * util/grub-install.in (usage): Likewise.
5159 Spell ID in whole letters.
5160 Add missing ending dot.
5161 Quote variables.
5162 * util/grub-reboot.in: Fix capitalisation.
5163 * util/grub-set-default.in: Likewise.
5164
937fd0cc
VS
51652012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
5168 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
5169 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
5170 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
5171 Disable -Werror for -Wdeprecated-declarations.
5172 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
5173 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
5174 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
5175 (grub_util_get_grub_dev): Make luks handling dependent on
5176 HAVE_DEVICE_MAPPER and not __linux__.
5177 (get_win32_path): Fix format security.
5178 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
5179 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
5180 Don't try grub_find_zpool_from_dir.
5181 (grub_make_system_path_relative_to_its_root) [!__linux__]:
5182 #ifdef-out paresdir.
5183
1bab1ae3
VS
51842012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * util/grub-pe2elf.c (usage): Add missing noreturn.
5187 (write_section_data): Rename name to shname to avoid shadowing.
5188 (write_symbol_table): Rename name to symname to avoid shadowing.
5189 Fix write_reloc_section call.
5190
ef023e42
VS
51912012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5192
5193 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
5194 to ensure that it's after the last byte of .text.
5195
48afcb75
VS
51962012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 * util/ieee1275/ofpath.c (my_isdigit): New function.
5199 (trailing_digits): Use my_isdigit.
5200 (strip_trailing_digits): Likewise.
5201
88d51eff
VS
52022012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5203
5204 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
5205 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
5206
17edc2ba
VS
52072012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5208
5209 * grub-core/kern/i386/pc/startup.S: Define __start.
5210
ad5518d7
VS
52112012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5212
5213 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
5214 strip already transforms he format.
5215
9e95e1bf
VS
52162012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5217
5218 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
5219
9cc3ee5c
VS
52202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * util/grub-install.in: Add missing gettext init.
5223 * util/grub-kbdcomp.in: Likewise.
5224 * util/grub-mkconfig.in: Likewise.
5225 * util/grub-mknetdir.in: Likewise.
5226 * util/grub-mkrescue.in: Likewise.
5227 * util/grub-mkstandalone.in: Likewise.
5228 * util/grub-reboot.in: Likewise.
5229 * util/grub-set-default.in: Likewise.
5230 * util/grub.d/00_header.in: Likewise.
5231 * util/grub.d/10_hurd.in: Likewise.
5232 * util/grub.d/10_windows.in: Likewise.
5233 * util/grub.d/30_os-prober.in: Likewise.
5234 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5235
49e08a06
VS
52362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5237
5238 * po/Rules-swiss: Fix header comment.
5239
3809cb41
AV
52402012-02-29 Andreas Vogel <anvoit>
5241
5242 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
5243 resulted in leak of arguments.
5244
fa6ec573
VS
52452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * grub-core/boot/i386/pc/startup_raw.S: Use separate
5248 reed_solomon_size const definition instead of computing it since
5249 Apple assembler doesn't support the later.
5250
22899b9c
VS
52512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 * gentpl.py (kernel): Rewrite Apple part.
5254
a132afc3
VS
52552012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5256
5257 * include/grub/kernel.h (FOR_MODULES): Check module magic.
5258
9d742bd4
VS
52592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5260
5261 * util/grub-mkimagexx.c (locate_sections): Support non-standard
5262 ELF section gap.
5263 (load_image): Likewise.
5264
f04a9a21
VS
52652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5266
5267 * configure.ac: Fix a typo in previous commit.
5268
46cf439c
VS
52692012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5270
5271 Don't add -Wl,-N on Apple platform.
5272
5273 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
5274 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
5275
c4c48c54
VS
52762012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5277
5278 * grub-core/Makefile.core.def (lzma_decompress): Use
5279 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
5280
31a12124
VS
52812012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5282
5283 * grub-core/genmod.sh.in: Rewrite the Apple part.
5284
4f3aa1af
VS
52852012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5286
5287 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
5288 comparison.
5289
7bd8b0c7
VS
52902012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5291
5292 * acinclude.m4 (grub_CHECK_PIC): New test.
5293 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
5294
97304d7c
VS
52952012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5296
5297 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
5298 to avoid the warning.
5299
fb883812
VS
53002012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5301
5302 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
5303 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
5304 after. All users updated.
5305
a121c964
VS
53062012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5307
5308 Use the common size routine in hostfs so we can read disks as well.
5309
5310 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
5311 (grub_util_get_fd_size): ... this. Return size in bytes.
5312 All users updated.
5313 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
5314 grub_util_get_fd_size.
5315
c66d6410
VS
53162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5317
5318 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
5319 Add blocksize retrieval.
5320
dfc8aeb0
VS
53212012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5322
5323 * configure.ac: Restore CFLAGS after efiemu check.
5324
403e25a5
VS
53252012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5326
5327 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
5328 Apple bug.
5329
382775d1
VS
53302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5331
5332 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
5333
6fd4e6e4
VS
53342012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5335
5336 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
5337 (grub_cmd_halt): Likewise.
5338
bea359d6
VS
53392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5340
5341 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
5342 for local arithmetics.
5343 Break %sp init into 2 instructions.
5344 Add 0 byte at the end.
5345
32eb6ee1
VS
53462012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5347
5348 * grub-core/disk/diskfilter.c (read_segment): Initialise err
5349 before loops.
5350
e8377389
VS
53512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5352
5353 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
5354 for context.
5355
8cb17de7
VS
53562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5357
5358 * grub-core/disk/ldm.c (make_vg): Init part.name.
5359 (grub_ldm_detect): Silence spurious warning.
5360 (grub_util_is_ldm): Likewise.
5361
595717e6
VS
53622012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5363
5364 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
5365 sane value to avoid a spurious warning.
5366
c4b7e588
VS
53672012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5368
5369 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
5370 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
5371
59824957
VS
53722012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5373
5374 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
5375 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
5376
70115b99
VS
53772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5378
5379 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
5380 hardcoding the relevant info.
5381
56733740
VS
53822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5383
5384 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
5385 missing const qualifiers.
5386 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
5387
43481481
VS
53882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 * util/getroot.c [__APPLE__]: Add missing includes.
5391 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
5392
3cb38f01
VS
53932012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5394
5395 * util/grub-mkimage.c (generate_image): Silence spurious warning.
5396
d9dbf11e
VS
53972012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5398
5399 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
5400 avoid conflicts.
5401
0c42a45d
VS
54022012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5403
5404 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
5405
46c34eb0
VS
54062012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
5409 and grub_file_close call.
5410
99ce1597
VS
54112012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5412
5413 Add LZSS Mach-O support (needed for new xnu kernelcache).
5414
5415 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5416 * grub-core/loader/lzss.c: New file.
5417 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5418 on Mach-O open failure.
5419 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5420 Don't free cmdsXX in uncompressedXX is set.
5421 (grub_macho_file): Init new fields.
5422 New argument is_64bit. All users updated.
5423 Handle compressed. Error out if no suitable architecture is found.
5424 Don't close file.
5425 (grub_macho_open): New argument is_64bit. All users updated.
5426 * grub-core/loader/macho32.c: Add defines for new fields.
5427 * grub-core/loader/macho64.c: Likewise.
5428 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5429 (grub_macho_parse): Handle compressed.
5430 Defer actual processing if compressed.
5431 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5432 "filename". All users updated.
5433 (grub_macho_size): New argument "filename". All users updated.
5434 (grub_macho_get_entry_point): Likewise.
5435 (grub_macho_load): Handle compressed.
5436 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5437 (GRUB_MACHO_LZSS_OFFSET): New define.
5438 (grub_decompress_lzss): New proto.
5439 * include/grub/machoload.h (grub_macho_file): New fields to handle
5440 compressed.
5441 (grub_macho_contains_macho64): Remove proto.
5442 (grub_macho_contains_macho32): Likewise.
5443 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5444
ebd17d6f
VS
54452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5448
2702b4e4
VS
54492012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5450
5451 Fix make dist.
5452
5453 * Makefile.am (starfield_theme_files): New var.
5454 (starfield_DATA): Use starfield_theme_files.
5455 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5456 Add bootcheck-related files.
5457 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5458 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5459 and font_char_metrics.txt.
5460 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5461 (setjmp): Add lib/ia64/longjmp.S.
5462 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5463 * po/POTFILES.in: Regenerate.
5464 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5465 DISTFILES.common.extra1.
5466 * util/devicemap.c: Removed.
5467 * grub-core/lib/i386/relocator_backward.S: Likewise.
5468 * util/import_gcry.py: Remove unused files. Add extra_dist for
5469 ChangeLog.
5470
cf1adfdf
VS
54712012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5472
5473 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5474 grub_gettext_delete_list before changing grub_gettext_max to avoid
5475 running out of array bounds.
5476
54772012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
5478
5479 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5480 grub_vga_text_init/grub_vga_text_fini.
5481
cf1adfdf 54822012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
5483
5484 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5485
541d92e9
VS
54862012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * configure.ac: Bump to 2.00~beta0.
5489
7931dddf
VS
54902012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5493 missing initialisation.
5494
f1b16fa3
VS
54952012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5498
83ddae23
VS
54992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5500
5501 Support v2 xnu boot arguments.
5502
5503 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5504 New argument fsbfreq_out.
5505 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5506 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5507 be used.
5508 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5509 darwin_version.
5510 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5511 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5512 (grub_xnu_boot_params): Rename to ...
5513 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5514 (grub_xnu_boot_params_v2): New struct.
5515
dc693fe6
VS
55162012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5517
5518 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5519 zeroing of CRC field before computing CRC.
5520
5a6e39c2
VS
55212012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5522
5523 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5524 Change order of allocations to decrease fragmentation.
5525
6c21f5d7
VS
55262012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5529
cfe456dc
CW
55302012-02-27 Colin Watson <cjwatson@ubuntu.com>
5531
5532 Use write-combining MTRR to speed up video with buggy BIOSes.
5533
5534 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5535 (cpuid): New define.
5536 (rdmsr): Likewise.
5537 (wrmsr): Likewise.
5538 (mtrr_base): Likewise.
5539 (mtrr_mask): Likewise.
5540 (grub_vbe_enable_mtrr_entry): New function.
5541 (grub_vbe_enable_mtrr): Likewise.
5542 (grub_vbe_disable_mtrr): Likewise.
5543 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5544 control off to BIOS.
5545 (grub_video_vbe_init): Fill mtrr.
5546 (grub_video_vbe_fini): Disable mtrr.
5547 (grub_video_vbe_get_info_and_fini): Likewise.
5548 (grub_video_vbe_setup): Enable mtrr.
5549
e3c78337
CW
55502012-02-27 Colin Watson <cjwatson@ubuntu.com>
5551
5552 * include/grub/partition.h (grub_partition_map): Change prototype of
5553 embed to take a maximum value for nsectors.
5554 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5555 * include/grub/fs.h (grub_fs): Likewise.
5556 * grub-core/partmap/msdos.c (embed_signatures): New array.
5557 (pc_partition_map_embed): Check for and avoid sectors matching any
5558 of the signatures in embed_signatures, up to max_nsectors.
5559 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5560 returned sector map to max_nsectors.
5561 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5562 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5563 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5564 * util/grub-setup.c (setup): Allow for the embedding area being
5565 split into multiple blocklists. Tell dest_partmap->embed the
5566 maximum number of sectors we care about.
5567
55682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5569
5570 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5571 Specify blocklist_install and reserver_first_sector for all fs.
5572 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5573 blocklists.
5574
984b973f
VS
55752012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5576
5577 * util/grub-install.in: Clarify strings.
5578 Fix source dir check.
5579
f122e0d6
RL
55802012-02-27 Richard Laager <rlaager@wiktel.com>
5581
5582 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5583 "zfs" and "fuse.zfs" as synonyms.
5584
071114bb
VS
55852012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5586
5587 * configure.ac: Put platform and target_cpu substitutions back since
5588 they are used for directories.
5589
817e6abc
RL
55902012-02-27 Richard Laager <rlaager@wiktel.com>
55912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5592
5593 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5594 * util/grub.d/20_linux_xen.in: Likewise.
5595
897b7419
RL
55962012-02-27 Richard Laager <rlaager@wiktel.com>
5597
5598 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5599 with full paths.
5600
a414bd15
RL
56012012-02-27 Richard Laager <rlaager@wiktel.com>
5602
5603 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5604 unescape.
5605
30ac48c4
VS
56062012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 Don't use insecure popen in getroot.
5609
5610 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5611 (exec_pipe): ... here.
5612 (find_root_devices_from_poolname): Use exec_pipe.
5613
53f13848
VS
56142012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5615
5616 Remove platform and target_cpu replacement.
5617
5618 * configure.ac: Remove platform and target_cpu substitutions.
5619 * tests/util/grub-shell.in: Use modinfo.
5620 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5621 explicitly.
5622
90cb2803
VS
56232012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5624
5625 Autodetect platform in grub-install but allow override.
5626
5627 * util/grub-install.in: Autodetect platform. Support --target and
5628 --directory. Read platform from modinfo.sh.
5629
b9136427
VS
56302012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 Support btrfs multi-volume probe.
5633
5634 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5635 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5636 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5637 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5638 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5639 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5640 grub_find_root_devices_from_btrfs if on btrfs.
5641
c36e5cd1
VS
56422012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5643
5644 Remove any awareness of *.c util files about target.
5645
5646 * Makefile.util.def (grub-setup): Split to ...
5647 (grub-bios-setup): ... and this.
5648 (grub-sparc64-setup): ... and this.
5649 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5650 * docs/man/grub-setup.h2m: Split into ...
5651 * docs/man/grub-sparc64-setup.h2m: ... this.
5652 * docs/man/grub-bios-setup.h2m: ... and this.
5653 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5654 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5655 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5656 (grub_target_addr_t): Remove.
5657 (grub_target_size_t): Remove.
5658 (grub_target_ssize_t): Remove.
5659 * util/grub-install.in: Use new grub-*-setup.
5660 * util/grub-mkimagexx.c (Elf_Word): New define.
5661 (Elf_Half): Likewise.
5662 (Elf_Section): Likewise.
5663 (ELF_ST_TYPE): Likewise.
5664 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5665 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5666
584b2f8a
VS
56672012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5668
5669 Replace grub_target_addr with more appropriate types.
5670
5671 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5672 grub_target_addr with grub_addr.
5673 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5674 grub_target_addr with grub_port.
5675 (grub_cmd_write): Likewise.
5676 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5677 grub_target_addr with grub_addr.
5678 (grub_cmd_write): Likewise.
5679 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5680
5a0dc6fb
VS
56812012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5684 const qualifier for vendor_guid.
5685
786aff6e
VS
56862012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5687
5688 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5689 const qualifier.
5690 (efiemu_memequal): Likewise.
5691 (find_variable): Likewise.
5692
49017b17
VS
56932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5694
5695 Fix missing console prototype on qemu-mips.
5696
5697 * include/grub/mips/qemu_mips/console.h: New file.
5698
c5988629
MG
56992012-02-27 Matthew Garrett <mjg@redhat.com>
57002012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5701
5702 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5703 * include/grub/efi/efi.h: Likewise.
5704 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5705 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5706 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5707 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5708 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5709 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5710
e33f8d69
MG
57112012-02-27 Matthew Garrett <mjg@redhat.com>
5712
5713 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5714
fb312cd9
VS
57152012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5716
5717 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5718 error.
5719
7134247c
VS
57202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5721
5722 * configure.ac: Remove inappropriate use of program_transform_name
5723 on grubdir and bootdir but allow explicit specification of those
5724 variables.
5725
6a313124
VS
57262012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 * util/grub-mknetdir.in (grub_prefix): Removed.
5729 (subdir): Use @bootdirname@ and @grubdirname@.
5730
2311c5ca
VS
57312012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5732
5733 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5734
7d5d60f7
VS
57352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5736
5737 * po/POTFILES.in: Regenerated.
5738
8151bc82
VS
57392012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5740
5741 Remove improper use of program_transform_name on pkglibrootdir.
5742
5743 * configure.ac (pkglibrootdir): Removed.
5744 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5745 * util/grub-mkimage.c: Likewise.
5746
b4a6a533
VS
57472012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5750 warning.
5751
668f304f
VS
57522012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 * util/grub-install.in: Use file identifier if no UUID is available
5755 or user explicitly prompted for it.
5756
665f2341
NP
57572012-02-27 Navdeep Parhar <nparhar@gmail.com>
5758
5759 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5760 (freebsd_get_zfs): New function.
5761 (grub_freebsd_boot): Pass zfs UUID.
5762 (grub_cmd_freebsd): Set zfs UUID.
5763
8151bc82 57642012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
5765
5766 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5767 pkglibrootdir.
5768
e4c498a1
MG
57692012-02-27 Mike Gilbert <floppym@gentoo.org>
5770
5771 Add configure flag to control libzfs integration.
5772
5773 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5774
1e9a9a3f
VS
57752012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5778 device.
5779 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5780 small devices.
5781
036985b8
VS
57822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5783
5784 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5785 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5786 be used on non-modules.
5787
5788 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5789 Rename to grub_boot_init.
5790 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5791 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5792 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5793 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5794 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5795 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5796 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5797 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5798 includes.
5799 (grub_machine_init): Remove empty inits.
5800 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5801 includes.
5802 (grub_machine_init): Remove empty inits.
5803 * grub-core/term/arc/console.c: Remove explicit proto.
5804 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5805 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5806 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5807 grub_at_keyboard_fini.
5808 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5809 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5810 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5811 grub_gfxterm_fini.
5812 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5813 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5814 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5815 grub_vgatext_fini.
5816 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5817 * grub-core/term/serial.c (GRUB_MOD_INIT)
5818 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5819 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5820 grub_serial_fini.
5821 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5822 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5823 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5824 grub_terminfo_fini.
5825 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5826 (GRUB_MOD_FINI): Likewise.
5827 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5828 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5829 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5830 grub_video_radeon_fuloong2e_fini.
5831 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5832 [LOONGSON]: Rename to grub_video_sis315pro_init.
5833 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5834 grub_video_sis315pro_fini.
5835 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5836 [LOONGSON]: Rename to grub_video_sm712_init.
5837 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5838 grub_video_sm712_fini.
5839 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5840 (grub_at_keyboard_fini): Likewise.
5841 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5842 Don't declare grub_{modname}_init.
5843 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5844 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5845 New proto.
5846 (grub_keylayouts_fini) [!EMU]: Likewise.
5847 * include/grub/serial.h (grub_serial_init) [!EMU]:
5848 New proto.
5849 (grub_serial_fini) [!EMU]: Likewise.
5850 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5851 New proto.
5852 (grub_terminfo_fini) [!EMU]: Likewise.
5853 * include/grub/video.h (grub_font_init) [!EMU]:
5854 New proto.
5855 (grub_font_fini) [!EMU]: Likewise.
5856 (grub_gfxterm_init) [!EMU]: Likewise.
5857 (grub_gfxterm_fini) [!EMU]: Likewise.
5858 (grub_video_sm712_init) [!EMU]: Likewise.
5859 (grub_video_sm712_fini) [!EMU]: Likewise.
5860 (grub_video_sis315pro_init) [!EMU]: Likewise.
5861 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5862 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5863 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5864
d5534665
VS
58652012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5866
5867 Make nand a prefix for nand devices.
5868
5869 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5870
10133b5f
VS
58712012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5872
5873 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5874 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5875
8e307a62
VS
58762012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5877
5878 * include/grub/env.h (grub_env_find): Remove prototype.
5879 * grub-core/kern/env.c (grub_env_find): Make static.
5880 (grub_env_set): Remove useless set.
5881
a4c65f34
VS
58822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5883
5884 * grub-core/kern/i386/realmode.S: Remove useless align.
5885
d87893d5
VS
58862012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5887
5888 * include/grub/dl.h (grub_dl_load_file): Don't export.
5889
50159add
VS
58902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5891
5892 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5893 grub_dprintf.
5894
b2582b84
VS
58952012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5896
5897 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5898 grub_errors.
5899 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5900 not reloading whole superblock but only the part which is really needed.
5901 Remove useless grub_errors.
5902 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5903 grub_errors.
5904
e2a83395
VS
59052012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5906
5907 Don't export grub_get_rtc.
5908
5909 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5910 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5911
e7d2a906
VS
59122012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5915
6cf1363b
VS
59162012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5917
5918 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 5919 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 5920
eece3349
VS
59212012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5922
5923 Remove prio_list.
5924
5925 * include/grub/list.h (grub_prio_list): Removed.
5926 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5927 GRUB_COMMAND_PRIO_MASK.
5928 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5929 GRUB_COMMAND_FLAG_ACTIVE.
5930 (grub_prio_list_insert): Removed.
5931 (grub_prio_list_remove): Likewise.
5932 (GRUB_AS_PRIO_LIST): Likewise.
5933 (GRUB_AS_PRIO_LIST_P): Likewise.
5934 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5935 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5936 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5937 * grub-core/kern/command.c (grub_register_command_prio): Inline
5938 the prio_list code.
5939 (grub_unregister_command): Likewise.
5940
94f064b4
VS
59412012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5942
5943 Fix interrupt mixup from previous commit.
5944
5945 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5946 (grub_realidt): New var.
5947 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5948 Load idt.
5949 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5950 New declaration.
5951 (grub_relocator16_boot): Set grub_relocator16_idt.
5952 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5953 (LOCAL(realidt)): ... this.
5954 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5955 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5956 (grub_realidt): New variable.
5957
27317084
VS
59582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5959
5960 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5961 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5962 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5963 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5964 Gettextize.
5965 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5966 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5967 * po/POTFILES.in: Regenerate.
5968
47b40053
VS
59692012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5970
5971 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5972 errors.
5973
2b343101
VS
59742012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5977 \0.
5978 (add_length): Likewise.
5979
ff27c3dd
LK
59802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
59812012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5982
5983 GDB serial and backtrace support.
5984
5985 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5986 (prot_to_real): Likewise.
5987 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5988 * grub-core/Makefile.core.def (backtrace): New module.
5989 (gdb): Likewise.
5990 * grub-core/gdb/cstub.c: New file.
5991 * grub-core/gdb/gdb.c: Likewise.
5992 * grub-core/gdb/i386/idt.c: Likewise.
5993 * grub-core/gdb/i386/machdep.S: Likewise.
5994 * grub-core/gdb/i386/signal.c: Likewise.
5995 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 5996 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
5997 * include/grub/backtrace.h: Likewise.
5998 * include/grub/gdb.h: Likewise.
5999 * include/grub/i386/gdb.h: Likewise.
6000
60012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
6002
6003 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
6004 New function.
6005 (add_length): Likewise.
6006 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
6007 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
6008 proto.
6009 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
6010 __argp_get_display_len.
6011
ff27c3dd 60122012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
6013
6014 $"..." support in scripts.
6015
6016 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
6017 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
6018 * grub-core/script/yylex.l: Likewise.
6019 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
6020 value.
6021
ff27c3dd 60222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
6023
6024 * gentpl.py: Remove obsolete pkglib_DATA handling.
6025
ff27c3dd 60262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
6027
6028 Don't transform PACKAGE_TARNAME following a discussion on autoconf
6029 mailing list.
6030
6031 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
6032 * util/grub-kbdcomp.in: Likewise.
6033 * util/grub-mkconfig.in: Likewise.
6034 * util/grub-mkconfig_lib.in: Likewise.
6035 * util/grub-mknetdir.in: Likewise.
6036 * util/grub-mkrescue.in: Likewise.
6037 * util/grub-mkstandalone.in: Likewise.
6038 * util/grub-reboot.in: Likewise.
6039 * util/grub-set-default.in: Likewise.
6040 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6041
ff27c3dd 60422012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
6043
6044 Remove GRUB_PREFIX.
6045
6046 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
6047 * util/grub.d/00_header.in: Compute prefix in the only place it's still
6048 used for backward compatibility.
6049
ff27c3dd 60502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
6051
6052 Add new all_video module.
6053
6054 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
6055 * grub-core/Makefile.core.def (all_video): New module.
6056 * grub-core/genmoddep.awk: Generate dependency of all_video from
6057 video.lst.
6058 * grub-core/lib/fake_module.c: New file.
6059 * grub-core/normal/main.c (features): Add feature_all_video_module.
6060 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
6061 don't do explicit search again.
47454da5 6062 insmod all_video in load_video if available.
22c7ce85 6063
ff27c3dd 60642012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
6065
6066 Another round of string clarification and adding TRANSLATORS comments.
6067
ff27c3dd 60682012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
6069
6070 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
6071
ff27c3dd 60722012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
6073
6074 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
6075 to grub_ssize_t.
6076 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
6077 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
6078
ff27c3dd 60792012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
6080
6081 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
6082 trailing newline implicitly. All users updated.
6083
ff27c3dd 60842012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
6085
6086 Implement serial on IEEE1275 and EFI.
6087
6088 * docs/grub.texi (Platform-specific limitations): Fix the columen video
6089 on emu. Mention arc and emu as the only platforms without serial
6090 support.
6091 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
6092 ieee1275 platforms.
6093 * grub-core/term/efi/serial.c: New file.
6094 * grub-core/term/ieee1275/serial.c: Likewise.
6095 * grub-core/term/serial.c (grub_serial_find): Disable direct port
6096 specification if no ns8250 driver is available.
6097 (grub_cmd_serial): Likewise.
6098 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
6099 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
6100 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
6101 (grub_efi_parity_type_t): New type.
6102 (grub_efi_stop_bits_t): Likewise.
6103 (grub_efi_serial_io_interface): New struct.
6104 * include/grub/serial.h (grub_serial_port): Make 'broken' field
6105 available for all interfaces.
6106 Add EFI and IEEE1275 fields.
6107 (grub_ofserial_init): New proto.
6108 (grub_efiserial_init): Likeiwse.
6109 * util/grub.d/00_header.in: Don't check for the presence of serial
6110 module.
6111
ff27c3dd 61122012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
6113
6114 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
6115 name as if it was an alias.
6116
114076ef
VS
61172012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 * grub-core/commands/lsacpi.c (options): Fix typo.
6120
6a656b0e
VS
61212012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 Convert grub-emu to argp.
6124
6125 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
6126 emu.
6127 * util/argp_common.c: Rename to ...
6128 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
6129 Add missing includes.
6130 * grub-core/kern/emu/main.c: Convert to argp.
6131 * po/POTFILES.in: Regenerate.
6132 * util/grub-install.in (usage): Make first letter lowcase in messages
6133 for uniformity.
6134 * util/grub-setup.c (options): Likewise.
6135
1e3f8ae8
VS
61362012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6137
6138 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
6139 Put back accidently commented-out code.
6140
ed167a80
VS
61412012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6142
6143 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
6144 loop check using Brent algorithm.
6145 (grub_hfsplus_btree_search): Likewise.
6146
6753c0ec
VS
61472012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6148
6149 * util/grub-install.in: Fix usage of wrong device for PreP install.
6150
4e27343f
VS
61512012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6152
6153 * conf/Makefile.common (CFLAGS_GNULIB): Add
6154 -Wno-unsafe-loop-optimizations.
6155 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
6156 on tools.
6157 * grub-core/commands/legacycfg.c: Add pragma to skip
6158 -Wunsafe-loop-optimizations.
6159 (check_password_md5_real): Fix loop counter type.
6160 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
6161 reading.
6162 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
6163 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
6164 loop condition.
6165 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
6166 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
6167 * grub-core/net/net.c (grub_net_route_address): Add safety loop
6168 condition.
6169 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
6170 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
6171 avoid possible infinite loops.
6172 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
6173 and -Wunsafe-loop-optimizations.
6174 * grub-core/script/yylex.l: Likewise.
6175 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
6176 (print_glyphs): Avoid infinite loops.
6177 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
6178
697f18b0
GS
61792012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
6180
6181 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
6182 to avoid infinite loop.
6183 (disp_acpi_rsdt_table): Likewise.
6184
274416e8
VS
61852012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * grub-core/font/font.c (grub_font_load): Add support for default
6188 path for fonts ($prefix/fonts).
6189 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
6190 for checking if string is a path.
6191 * grub-core/normal/main.c (features): Add feature_default_font_path.
6192 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
6193 * util/grub.d/00_header.in: Use default directory if possible.
6194 * util/grub-install.in: Install unicode.pf2.
6195
b3e08622
VS
61962012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6197
6198 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
6199 * po/Rules-swiss: New file.
6200 * po/swiss.sed: Likewise.
6201
fe42ce09
VS
62022012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6203
6204 * grub-core/fs/btrfs.c (find_device): Fix typos.
6205 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
6206 * util/grub-mkrelpath.c (argp_parser): Likewise.
6207 Reported by: Yuri Chornoivan.
6208
72f1d065
DO
62092012-02-23 Dalet Omega <daletomega@gmail.com>
6210
6211 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
6212 for usual informative messages.
6213
c5884973
DO
62142012-02-23 Dalet Omega <daletomega@gmail.com>
6215
6216 Starfield theme.
6217
6218 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
6219 * conf/Makefile.common: Define starfielddir.
6220 * configure.ac: Configure starfield.
6221 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
6222 * themes/starfield/README: Likewise.
6223 * themes/starfield/blob_w.png: Likewise.
6224 * themes/starfield/boot_menu_c.png: Likewise.
6225 * themes/starfield/boot_menu_e.png: Likewise.
6226 * themes/starfield/boot_menu_n.png: Likewise.
6227 * themes/starfield/boot_menu_ne.png: Likewise.
6228 * themes/starfield/boot_menu_nw.png: Likewise.
6229 * themes/starfield/boot_menu_s.png: Likewise.
6230 * themes/starfield/boot_menu_se.png: Likewise.
6231 * themes/starfield/boot_menu_sw.png: Likewise.
6232 * themes/starfield/boot_menu_w.png: Likewise.
6233 * themes/starfield/slider_c.png: Likewise.
6234 * themes/starfield/slider_n.png: Likewise.
6235 * themes/starfield/slider_s.png: Likewise.
6236 * themes/starfield/src/blob_nw.xcf: Likewise.
6237 * themes/starfield/src/bootmenu/: Likewise.
6238 * themes/starfield/src/bootmenu/center.xcf: Likewise.
6239 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
6240 * themes/starfield/src/bootmenu/side.xcf: Likewise.
6241 * themes/starfield/src/slider_c.xcf: Likewise.
6242 * themes/starfield/src/slider_n.xcf: Likewise.
6243 * themes/starfield/src/slider_s.xcf: Likewise.
6244 * themes/starfield/src/terminalbox/: Likewise.
6245 * themes/starfield/src/terminalbox/center.xcf: Likewise.
6246 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
6247 * themes/starfield/src/terminalbox/side.xcf: Likewise.
6248 * themes/starfield/starfield.png: Likewise.
6249 * themes/starfield/terminal_box_c.png: Likewise.
6250 * themes/starfield/terminal_box_e.png: Likewise.
6251 * themes/starfield/terminal_box_n.png: Likewise.
6252 * themes/starfield/terminal_box_ne.png: Likewise.
6253 * themes/starfield/terminal_box_nw.png: Likewise.
6254 * themes/starfield/terminal_box_s.png: Likewise.
6255 * themes/starfield/terminal_box_se.png: Likewise.
6256 * themes/starfield/terminal_box_sw.png: Likewise.
6257 * themes/starfield/terminal_box_w.png: Likewise.
6258 * themes/starfield/theme.txt: Likewise.
6259
17d73325
VS
62602012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 * util/grub.d/00_header.in: Add missing export theme.
6263
dbebaf92
VS
62642012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6265
6266 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
6267 already included.
6268 Reported by: Eren D.
6269
3d68bffb
VS
62702012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * conf/Makefile.common (grubdatadir): Removed.
6273 (Makefile.am): Move eveything grubdata to pkgdata.
6274
4b59234d
VS
62752012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6276
6277 * grub-core/commands/acpihalt.c (get_sleep_type):
6278 Remove unused variable.
6279
463dcadc
VS
62802012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
6283 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
6284 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
6285 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
6286 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
6287 i18n with gettext no-op.
6288 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
6289 GRUB_ACPI_OPCODE_STRING_CONST.
6290 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
6291 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
6292
e5b90c82
VS
62932012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * po/POTFILES.in: Regenerate.
6296
2a704ca9
VS
62972012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
6300 -Wno-error=missing-noreturn.
6301
84f9d341
VS
63022012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6303
6304 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
6305 condition to avoid possibly infinite loops.
6306 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
6307 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
6308
d46683f9
VS
63092012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6310
6311 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
6312 condition to avoid possibly infinite loops.
6313
c44866b2
VS
63142012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6315
6316 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
6317 on show_error.
6318
96790539
VS
63192012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6320
6321 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
6322
1ba7e295
VS
63232012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6324
6325 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
6326
21ffe8f1
VS
63272012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 * util/bin2h.c (usage): Add missing attribute noreturn.
6330
0ccb6b3c
VS
63312012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
6334 if the size isn't divisible by 512.
6335
b00d7fb6
VS
63362012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6337
6338 Make list_push and list_remove functions rather than inline functions
6339 to decrease size and avoid aliasing violations.
6340
6341 * include/grub/list.h (grub_list_push): Move to ...
6342 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
6343 * include/grub/list.h (grub_list_remove): Move to ...
6344 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
6345
9d369087
VS
63462012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
6349 and -Wunused-result.
6350
af0250d9
VS
63512012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6352
6353 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
6354 Reported by: Seth Goldberg
6355
aad32b14
VS
63562012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6357
6358 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
6359
ac96441c
ST
63602012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6361
6362 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
6363 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
6364 command line.
6365 * docs/grub.texi (Simple configuration): Document
6366 GRUB_CMDLINE_GNUMACH.
6367
63682012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
6369
6370 * conf/Makefile.common (platform_SCRIPTS): New variable.
6371 (platform_PROGRAMS): Likewise.
6372 * gentpl.py: Mark *,module and *.image for install.
6373 * grub-core/gdb_grub.in: Add a notice of expected environment.
6374 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
6375 (gmodule.pl): Likewise.
6376
ac96441c 63772012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
6378
6379 Replace grub_checkkey with grub_getkey_noblock.
6380
6381 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
6382 (grub_getkey_noblock): ... this. All users updated.
6383
ac96441c 63842012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
6385
6386 * grub-core/kern/emu/console.c: Move to ...
6387 * grub-core/term/emu/console.c: ...here.
6388 (grub_ncurses_getkey): Fix return value if no key is detected.
6389
e51b5666
VS
63902012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
6393 (grub_unit_test_fini): Likewise.
6394 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
6395
63962012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 * include/grub/test.h (GRUB_UNIT_TEST)
6399
d9a62292
VS
64002012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6401
6402 * grub-core/script/execute.c (grub_script_break): Clarify logic.
6403 Better error handling.
6404 (grub_script_return): Likewise.
6405 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6406
77c9182f
VS
64072012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6408
6409 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
6410 rimplicit redifinition.
6411
edb13cf9
VS
64122012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6415 GRUB.
6416
a9e9dc7c
VS
64172012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6420 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6421 prompt here.
6422
b4ba8e02
VS
64232012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6424
6425 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6426 as GRUB_ERR_BUG. Don't malloc if no device is available.
6427
dded5540
VS
64282012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6429
6430 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6431 Mark calling with invalid term as GRUB_ERR_BUG.
6432
0cf69874
VS
64332012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6436 packets rather than raising an error.
6437
59bfe502
VS
64382012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6441 in if.
6442
db5fc596
VS
64432012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6444
6445 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6446 diagnostic to dprintf.
6447 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6448
e4b7f404
VS
64492012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6452 device name.
6453
e7b02f9e
VS
64542012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6455
6456 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6457 (grub_ntfs_iterate_dir): Likewise.
6458
0331e102
VS
64592012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6460
6461 Efiemu stylistic fixes and gettext.
6462
6463 * grub-core/efiemu/i386/loadcore32.c
6464 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6465 * grub-core/efiemu/i386/loadcore64.c
6466 (grub_arch_efiemu_relocate_symbols64): Likewise.
6467 * grub-core/efiemu/i386/pc/cfgtables.c
6468 (grub_machine_efiemu_init_tables): Likewise.
6469 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6470 (grub_efiemu_loadcore_initXX): Add a filename argument.
6471 All users updated.
6472 Improved error message.
6473 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6474 Add a filename argument.
6475 All users updated.
6476 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6477 Reclassify double relocation as GRUB_ERR_BUG.
6478
306fc074
VS
64792012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6480
6481 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6482 handling.
6483
794d8ef2
VS
64842012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6485
6486 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6487 on partition.
6488
64892012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
6490
6491 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6492
794d8ef2 64932012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
6494
6495 Improve string. Gettextize.
6496
78dde88e
VS
64972012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6500 utils.
6501 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6502
4786a90f
VS
65032012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6504
6505 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6506 [GRUB_UTIL]: New function.
6507 (insert_array) [GRUB_UTIL]: Store partmaps.
6508 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6509 partmaps.
6510 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6511 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6512 (probe_abstraction): Print diskfilter and not raid.
6513 Reported by: Lennart Sorensen
6514
0b6225bd
VS
65152012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6518 * util/grub-mkimagexx.c (MASK3): New define.
6519 (add_value_to_slot_20b): Use MASK3.
6520 (add_value_to_slot_21): Likewise.
6521 (relocate_addresses): Fix format specification.
6522 (load_image): Explicitly init symtab_section.
6523
b055f8f6
VS
65242012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6525
6526 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6527 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6528
b77c2fb7
VS
65292012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6530
6531 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6532 on powerpc.
6533 Reported by: Lennart Sorensen
6534
e3ec28ab
VS
65352012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6536
6537 * gentpl.py: Add missing license header.
6538 * docs/grub.texi: Update copyright year.
6539
c8d9ead6
GS
65402012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6541
6542 Source grub-mkconfig_lib from the build directory at build time.
6543 Suggested by: Vladimir Serbinenko.
6544
6545 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6546 * util/grub-install.in: Define pkgdatadir if not already set, and source
6547 grub-mkconfig_lib from there.
6548 * util/grub-kbdcomp.in: Likewise.
6549 * util/grub-mkconfig.in: Likewise.
6550 * util/grub-mknetdir.in: Likewise.
6551 * util/grub-mkrescue.in: Likewise.
6552 * util/grub-mkstandalone.in: Likewise.
6553 * util/grub-reboot.in: Likewise.
6554 * util/grub-set-default.in: Likewise.
6555 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6556
ebcecdf1
VS
65572012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 Increase warning level.
6560
6561 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6562 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6563 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6564 (TARGET_CFLAGS): Likewise.
6565 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6566 * grub-core/Makefile.core.def (decompressor_xz): Add
6567 -Wno-unreachable-code.
6568 (normal): Add -Wno-redundant-decls.
6569 (xzio): Add -Wno-unreachable-code.
6570 (lzopio): Add -Wno-redundant-decls -Wno-error.
6571 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6572 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6573 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6574 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6575 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6576 * grub-core/kern/i386/coreboot/init.c: Add exception to
6577 -Wsuggest-attribute=noreturn.
6578 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6579 * grub-core/kern/ia64/dl_helper.c: Likewise.
6580 * grub-core/kern/mips/dl.c: Likewise.
6581 * grub-core/kern/sparc64/dl.c: Likewise.
6582 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6583 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6584 (memcmp): Likewise.
6585 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6586 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6587 * grub-core/loader/mips/linux.c: Likewise.
6588 * grub-core/loader/multiboot_elfxx.c: Likewise.
6589 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6590 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6591 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6592 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6593 fixme.
6594 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6595 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6596 Fix prototype.
6597
37bb97fe
VS
65982012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6599
6600 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6601 address.
6602
29a3550b
VS
66032012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6606 Avoid improper use of strings.
6607 (grub_cmd_legacy_initrdnounzip): Likewise.
6608
dfdffd0d
VS
66092012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6610
6611 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6612 attribute.
6613 (grub_util_info): Likewise.
6614 (grub_util_error): Likewise.
6615
102fae4a
VS
66162012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6617
6618 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6619 * util/grub-fstest.c (fstest): Likewise.
6620
7e94d044
VS
66212012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6622
6623 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6624 (grub_md_sha512_real): Likewise.
6625 (grub_util_get_geli_uuid): Likewise.
6626 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6627 (grub_util_biosdisk_open): Fix format specification.
6628 Respect format security.
6629 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6630 (xrealloc): Likewise.
6631 (xasprintf): Likewise.
6632
5ebd9769
VS
66332012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6634
6635 * util/import_gcry.py: Include grub/crypto.h in init.c.
6636
495fc8c1
VS
66372012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6640 (generate_image): Make prefix a const char *.
6641 Fix format specifications. Respect format security.
6642 Avoid void * arithmetics.
6643 Avoid shadowing.
6644 (argp_parser): Remove unused variable. Respect format security.
6645 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6646 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6647 (count_funcs): Remove unused variable.
6648 (relocate_addresses): Fix format specification.
6649 Disable x86-64 with elf32. Remove unused variables.
6650 (add_fixup_entry): Avoid shadowing.
6651 (make_reloc_section): Fix format specification.
6652 Use assert.
6653 (locate_sections): Fix format specifications.
6654 (load_image): Avoid shadowing.
6655
043c2ea3
VS
66562012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6659 Fix format specifications. Respect format security.
6660 Don't translate already translated grub_errmsg.
6661 (argp_parser): Remove unused variable
6662
3ec65a81
VS
66632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6666
a4d9fe4a
VS
66672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6668
6669 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6670 (main): Likewise. Use xmalloc. Respect format security.
6671
15b81d49
VS
66722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6673
6674 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6675 a const char *.
6676 (argp_parser): Remove unused variable.
6677
31731fc0
VS
66782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6681 (add_pixel): Make static.
6682 (add_font): Likewise.
6683 (write_string_section): Make name and str a const char *.
6684 (write_be16_section): Make name a const char *.
6685 (print_glyphs): Make static.
6686 (write_font_ascii_bitmap): Likewise.
6687 (write_font_width_spec): Likewise.
6688 (write_font_pf2): Likewise.
6689 (argp_parser): Remove unused variable.
6690 Respect format security.
6691 (main): Avoid shadowing. Respect format security.
6692
0809527b
VS
66932012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 * util/grub-editenv.c (argp_parser): Make static.
6696 (create_envblk_file): Use xmalloc.
6697 (open_envblk_file): Likewise.
6698 Resepect format security.
6699 (set_variables): Respect format security.
6700
45b0c8b7
VS
67012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * util/getroot.c (grub_find_device): Respect format security.
6704 (get_mdadm_uuid): Remove unused variable.
6705 (grub_util_pull_device): Dont call gettext on already translated
6706 grub_errmsg.
6707 (find_system_device): Remove unused variable.
6708 (grub_util_get_grub_dev): Likewise.
6709 (grub_make_system_path_relative_to_its_root): Respect format security.
6710
1b024b4e
VS
67112012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 * util/grub-fstest.c (execute_command): Make first argument
6714 a const char *.
6715 (read_file): Avoid shadowing.
6716 Reuse underlying error message if device open fails.
6717 (cmd_cmp): Respect format security.
6718 (root): Make const char *.
6719 (fstest): Remove args argument and use global copy.
6720 Respect format security.
6721 (argp_parser): Make static.
6722 (main): Make default_root const char *.
6723
5d1d4e28
VS
67242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6725
6726 * util/grub-mount.c (root): Make const char *.
6727 (execute_command): Make first argument a const char *.
6728 (fuse_init): Respect format security.
6729 (argp_parser): Make static. Remove unused variable.
6730 (main): Make default_root a const char *.
6731 Respect format security.
6732
36eb7379
VS
67332012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * util/grub-probe.c (probe): Don't call gettext on already translated
6736 grub_errmsg.
6737 Remove unused variables.
6738 (argp_parser): Remove unused variable.
6739
76fb2ea9
VS
67402012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 * util/grub-script-check.c (argp_parser): Remove unused variable.
6743 (main): Rename read to curread to avoid shadowing.
6744
56c98584
VS
67452012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6746
6747 * util/misc.c (grub_util_write_image_at): Fix format specification.
6748 (grub_util_write_image): Likewise.
6749 (grub_script_execute_argument_to_string): Removed (unused).
6750 (grub_script_execute_menuentry): Likewise.
6751 (grub_putchar): Likewise.
6752
164ebb48
VS
67532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6754
6755 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6756 (FUNCTION) [GRUB_UTIL]: Likewise.
6757 (VARIABLE) [GRUB_UTIL]: Likewise.
6758
44318d61
VS
67592012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6760
6761 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6762 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6763
31a26002
VS
67642012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6765
6766 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6767 buffer.
6768
67692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6770
6771 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6772 (LzmaEnc_SaveState): Removed (unused).
6773 (LzmaEnc_RestoreState): Likewise.
6774 (LzmaEnc_InitPriceTables): Made static.
6775 (LzmaEnc_Construct): Likewise.
6776 (LzmaEnc_FreeLits): Likewise.
6777 (LzmaEnc_Destruct): Likewise.
6778 (LzmaEnc_Init): Likewise.
6779 (LzmaEnc_InitPrices): Likewise.
6780 (LzmaEnc_Finish): Likewise.
6781 (LzmaEnc_PrepareForLzma2): Removed (unused).
6782 (LzmaEnc_MemPrepare): Likewise.
6783 (LzmaEnc_GetNumAvailableBytes): Likewise.
6784 (LzmaEnc_GetCurBuf): Likewise.
6785 (LzmaEnc_CodeOneMemBlock): Likewise.
6786
6fa67967
VS
67872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6788
6789 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6790 (grub_util_ldm_embed): Likewise.
6791
9a7428e6
VS
67922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6793
6794 * util/grub-editenv.c (print_var): Rename name to varname to
6795 avoid shadowing.
6796 (main): Rename index to curindex to avoid shadowing.
31a26002 6797 Make filename a const char *.
9a7428e6 6798
4f96abd1
VS
67992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6800
6801 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6802 to arg_getline to avoid shadowing.
6803
44d10dad
VS
68042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6805
6806 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6807 disk_ to avoid shadowing.
6808
340ba63e
VS
68092012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6810
6811 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6812 curindex to avoid shadowing.
6813 Make static.
6814 (MatchFinder_GetNumAvailableBytes): Make static.
6815
22965bce
VS
68162012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6817
6818 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6819 avoid shadowing.
6820
7b5784d4
VS
68212012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6824 argument from encrypt to do_encrypt to avoid shadowing.
6825
6f48ca01
VS
68262012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6827
6828 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6829 incorrect nesting of #if's.
6830
a4ea2dff
VS
68312012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6832
6833 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6834 checks which are always false on some platforms.
6835 (grub_cmd_lsacpi): Likewise.
6836 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6837 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6838 Likewise.
6839
def9fc1b
VS
68402012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6843 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6844
a67b2a04
VS
68452012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6848 re_dfa_t to avoid breaking alignment invariants.
6849 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6850 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6851
44c6828d
VS
68522012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6855 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6856
bebe0dd0
VS
68572012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6860 Fix declaration.
6861
a9cdb3cf
VS
68622012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6863
6864 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6865 conserve alignment invariants.
6866 (grub_ehci_ehcc_read16): Likewise.
6867 (grub_ehci_oper_read32): Likewise.
6868 (grub_ehci_oper_write32): Likewise.
6869 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6870 Conserve alignment invariants.
6871
ccc3b1b8
VS
68722012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6875 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6876 declarations.
6877
987fbd95
VS
68782012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6881 Remove unused variable.
6882
0df363f3
VS
68832012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6884
6885 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6886 Remove set in if.
6887
b2c0c4a6
VS
68882012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6889
6890 * include/grub/net.h: Remove double declarations.
6891
690c531f
VS
68922012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 Remove "payload" command in ia64 Linux loader since I couldn't
6895 find any evidence of it being used for anything.
6896 Replace "relocate" command with an environment variable
6897
6898 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6899 fields.
6900 (ia64_boot_payload): Removed.
6901 (last_payload): Likewise.
6902 (RELOCATE_OFF): Likewise.
6903 (RELOCATE_ON): Likewise.
6904 (RELOCATE_FORCE): Likewise.
6905 (relocate): Likewise.
6906 (free_pages): Don't free payloads.
6907 (grub_load_elf64): Use common error messages.
6908 Use "linux_relocate" variable.
6909 Increase the space after boot_params.
6910 (grub_cmd_payload): Removed.
6911 (grub_cmd_relocate): Likewise.
6912 (grub_cmd_fpswa): Improve messages.
6913 (cmd_payload): Removed.
6914 (cmd_relocate): Likewise.
6915 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6916 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6917
01783768
VS
69182012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 Convert UHCI to DMA framework.
6921
6922 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6923 (grub_uhci_pci_iter): Fill new members
6924 (grub_alloc_td): Use P2V and V2P functions.
6925 (grub_free_queue): Likewise.
6926 (grub_alloc_qh): Likewise.
6927 (grub_uhci_setup_transfer): Likewise.
6928 (grub_uhci_check_transfer): Likewise.
6929
43206939
VS
69302012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6933 Remove assignment in if while on it.
6934
571e140e
VS
69352012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6936
6937 * util/grub-mkstandalone.in: Fix modules directory.
6938
a9d96eeb
VS
69392012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6942 on i386-pc target.
6943 (argp_parser): Accept "auto" as compression specification.
6944
e4e37e8d
VS
69452012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6946
6947 Fix `help' with unloaded modules.
6948
6949 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6950 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6951 (grub_dyncmd_dispatcher): Small stylistic fix.
6952 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6953 explicit help is requested.
6954
e1ea3ade
VS
69552012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6958 Explicitly init restart while on it.
6959
27556881
VS
69602012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6963 uninited variable.
6964
d65f6b36
VS
69652012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 * util/grub-mknetdir.in: Use . rather than source for POSIX
6968 compatibility.
6969
0a1e473c
VS
69702012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6973
ce6647c8
VS
69742012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6977 variable.
6978
66747894
VS
69792012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6980
6981 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6982 without quotes.
6983
71645f6e
VS
69842012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6985
6986 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6987
0e1c1f61
VS
69882012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6989
6990 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6991 iteration of partitions.
6992
9c4b5c13
VS
69932012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6994
6995 Improve gettext support. Stylistic fixes and error handling fixes while
6996 on it.
6997
215c90cb
VS
69982012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6999
7000 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
7001 part. Instead setup the correct stack in RM.
7002 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
7003 for stack.
7004 * include/grub/i386/relocator_private.h: New file.
7005
b5c1f9bf
VS
70062012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7007
7008 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
7009 argument.
7010 * util/grub-fstest.c (options): Add missing DEVICE part.
7011
b525fd83
VS
70122012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7013
7014 Clarify and unify messages.
7015
7016 * grub-core/commands/hashsum.c (options): Unify messages.
7017 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
7018 literal-only message as translatable.
7019 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
7020 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
7021 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
7022 commands.
7023 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
7024 key, not the key used to unlock. Clarify what it's used for.
7025 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
7026 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
7027 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
7028 * util/grub-editenv.c (options): Unify "verbose" message.
7029 * util/grub-fstest.c (read_file): Unify error message.
7030 (fstest): Add quotes around commands.
7031 (options): Unify "verbose" message.
7032 * util/grub-install.in: Add quotes around variable name.
7033 * util/grub-kbdcomp.in: Unify error message.
7034 * util/grub-mkfont.c (main): Likewise.
7035 * util/grub-mkrescue.in: Likewise.
7036 * util/grub-mklayout.c (options): Unify "verbose" message.
7037 * util/grub-mkstandalone.in: Unify help and verbose messages.
7038 * util/grub-mount.c (options): Unify "verbose" message.
7039 * util/grub-probe.c (options): Likewise.
7040 * util/grub-script-check.c (options): Likewise.
7041 * util/grub-setup.c (setup): Unify no-terminator message.
7042 (options): Use DEVICE and not DEV.
7043 Unify "verbose" message.
7044 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
7045
0ae70393
VS
70462012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 Improve and unify messages.
7049
7050 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
7051 name. All users updated.
7052 Print filename in error.
7053 (read_device_map): Print filename in error.
7054 * util/getroot.c (grub_guess_root_devices): Print filename in error.
7055 (grub_util_get_os_disk): Likewise.
7056 (grub_util_biosdisk_get_grub_dev): Likewise.
7057 (grub_util_check_block_device): Likewise.
7058 (grub_util_check_char_device): Likewise.
7059 (grub_make_system_path_relative_to_its_root): Likewise.
7060 * util/grub-editenv.c (create_envblk_file): Likewise.
7061 (open_envblk_file): Likewise.
7062 (write_envblk): Likewise.
7063 * util/grub-fstest.c (cmd_cp): Likewise.
7064 (cmd_cat): Likewise.
7065 (cmd_cmp): Likewise.
7066 * util/grub-menulst2cfg.c (main): Likewise.
7067 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
7068 (write_font_width_spec): Likewise.
7069 (write_font_pf2): Likewise.
7070 * util/grub-mkimage.c (generate_image): New argument outname.
7071 All users updated.
7072 Remove unreacheable message.
7073 (options): Unify messages.
7074 (help_filter): Likewise.
7075 * util/grub-mklayout.c (usage): Removed (unused).
7076 (main): Print filename in error.
7077 * util/grub-mkrescue.in: Fix wrong quoting.
7078 * util/grub-setup.c (setup): Print filename in error.
7079 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
7080 (check_sas): Likewise.
7081 * util/misc.c (grub_util_get_fp_size): Removed.
7082 (grub_util_get_image_size): Print filename in error.
7083 (grub_util_read_at): Removed.
7084 (grub_util_read_image): Print filename in error.
7085 (grub_util_load_image): Likewise.
7086 (grub_util_write_image_at): New argument filename. All users updated.
7087 Print filename in error.
7088 (grub_util_write_image): New argument filename. All users updated.
7089 Print filename in error.
7090 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
7091 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
7092
0a96117d
VS
70932012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 * grub-core/Makefile.core.def (pxechain): New module.
7096 * grub-core/loader/i386/pc/pxechainloader.c: New file.
7097 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
7098 function.
7099 (grub_pc_net_config_real): Use grub_pxe_get_cached.
7100 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
7101
aca002f7
VS
71022012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7103
7104 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
7105 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
7106 * include/grub/err.h (grub_error_saved): New struct.
7107 (grub_errmsg): Make array size explicit.
7108 * include/grub/misc.h (grub_error_save): New function.
7109 (grub_error_load): Likewise.
7110 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
7111 (grub_error_push): Update `errno' member name.
7112 (grub_error_pop): Likewise
7113 * grub-core/net/tftp.c (tftp_data): New member save_err.
7114 (tftp_receive): Save error.
7115 (tftp_open): Restore error.
7116
a51dab13
VS
71172012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7118
7119 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
7120 to real mode down to execute A20-related code in protected mode as
7121 intended.
7122
eb6e6649
GS
71232012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7124
7125 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
7126 NULL when the argument `level' has an unexpected value.
7127
92cd0f6e
VS
71282012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 Move platform-dependent files from $prefix to $prefix/$platform.
7131
7132 * config.h.in (GRUB_TARGET_CPU): New definition.
7133 (GRUB_PLATFORM): Likewise.
7134 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
7135 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
7136 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
7137 * grub-core/kern/dl.c (grub_dl_load): Likewise.
7138 * grub-core/normal/autofs.c (read_fs_list): Likewise.
7139 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
7140 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
7141 * grub-core/normal/term.c (read_terminal_list): Likewise.
7142 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
7143 $prefix/locale.
7144 (grub_gettext_init_ext): Likewise.
7145 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
7146 grub_platform.
7147 * util/grub-install.in: Update directories.
7148 * util/grub-mknetdir.in: Likewise.
7149 * util/grub-mkrescue.in: Likewise.
7150
db606889
VS
71512012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
7154 grub_error framework. All users updated.
7155
c39992a4
VS
71562012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7157
7158 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
7159 lists (by always binsearching), improve caching (cache strings
7160 used for binsearch, not only results), improve
7161 maintainability (by using more structured binary search) and correct
7162 error handling.
7163
1e5ec32f
VS
71642012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7165
7166 * grub-core/script/execute.c (grub_script_return): Fix warning.
7167
ac576cde
VS
71682012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7169
7170 * grub-core/script/execute.c (grub_script_return): Fix potential
7171 NULL-dereference.
7172 Reported by: Jim Meyering.
7173
498453f6
VS
71742012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 * po/POTFILES.in: Regenerate.
7177 * util/grub-install.in: Gettextize the strings missed in first pass.
7178
8be63f2e
VS
71792012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7180
7181 * Makefile.util.def (grub-mkdevicemap): Removed.
7182 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
7183 * include/grub/util/deviceiter.h: Removed.
7184 * util/deviceiter.c: Likewise.
7185 * util/getroot.c (grub_util_get_os_disk): New function.
7186 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
7187 replacement for EFI.
7188 * util/grub-mkdevicemap.c: Removed.
7189 * util/grub-probe.c (probe): Handle PRINT_DISK.
7190 (argp_parser): Handle -t disk.
7191
8e1e4e39
VS
71922012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * util/grub-mkfont.c: Migrate to argp.
7195 * util/grub-mklayout.c: Likewise.
7196 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7197 * util/grub-mkrelpath.c: Likewise.
7198 * util/grub-probe.c: Likewise.
7199 * util/grub-script-check.c: Likewise.
7200
4459819a
VS
72012012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7202
7203 * util/grub-reboot.in: Add missing datarootdir.
7204 Add missing newline.
7205 * util/grub-set-default.in: Add missing datarootdir.
7206 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
7207 * util/grub-mkrescue.in: Likewise.
7208
f65741c7
VS
72092012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7210
7211 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
7212
c1a33466
VS
72132012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7214
7215 * util/grub-kbdcomp.in: Add decent help and gettextize.
7216 * docs/man/grub-kbdcomp.h2m: New file.
7217
c76899a0
VS
72182012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 Migrate grub-mkimage.c to argp.
7221
7222 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
7223 (grub-setup): Likewise.
7224 * util/grub-setup.c (print_version): Move to ...
7225 * util/argp_common.c (print_version): ... here.
7226 * util/grub-setup.c (argp_program_version_hook): Move to ...
7227 * util/argp_common.c (argp_program_version_hook): ... here.
7228 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
7229 safety.
7230 * util/grub-mkimage.c (main): Migrate to argp.
7231
57db0757
VS
72322012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7233
7234 * util/grub-mkrescue.in: Use same message as
7235 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
7236 for better translations.
7237
18534ad9
VS
72382012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7239
7240 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
7241 options with generic grub-mkrescue.in with the goal of future
7242 merge.
7243
c84ba308
VS
72442012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/kern/mm.c: Add missing include of i18n.h
7247 * grub-core/lib/relocator.c: Likewise.
7248
347998c2
VS
72492012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
7252 error.
7253 (allocate_pages): Check return value.
7254 Replace fatal with error.
7255 (grub_linux_boot): Replace printf with dprintf.
7256 Check find_mmap_size return value.
7257 Replace fatal with error.
7258 Don't call grub_machine_fini.
7259 (grub_load_elf64): Replace printf with dprintf.
7260 (grub_cmd_linux): Likewise.
7261 (grub_cmd_initrd): Likewise.
7262 (grub_cmd_payload): Likewise.
7263
c779226e
VS
72642012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7265
7266 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
7267 message.
7268 * grub-core/video/radeon_fuloong2e.c
7269 (grub_video_radeon_fuloong2e_setup): Likewise.
7270 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
7271 * grub-core/video/video.c (grub_video_set_mode): Don't override
7272 standard out of memory message.
7273
dc87d45a
GS
72742012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7275
7276 NetBSD disk wedge support.
7277
7278 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
7279 [__NetBSD__]: Handle NetBSD disk wedges.
7280 * util/getroot.c (convert_system_partition_to_system_disk)
7281 [__NetBSD__]: Likewise.
7282
055f856f
MW
72832012-02-03 Mark Wooding <mdw@distorted.org.uk>
7284
7285 * util/grub-mkconfig.in: Use umask rather than chmod to create
7286 grub.cfg.new to avoid insecure grub.cfg.
7287
4a9f8346
VS
72882012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7289
7290 * grub-core/commands/ls.c: Gettextize.
7291 * grub-core/commands/setpci.c: Likewise.
7292 * grub-core/commands/videotest.c: Likewise.
7293 * grub-core/disk/geli.c: Likewise.
7294 * grub-core/kern/mm.c: Likewise.
7295 * grub-core/lib/relocator.c: Likewise.
7296 * grub-core/loader/efi/appleloader.c: Likewise.
7297 * grub-core/loader/i386/xnu.c: Likewise.
7298 * grub-core/loader/ia64/efi/linux.c: Likewise.
7299 * grub-core/loader/xnu.c: Likewise.
7300 * grub-core/net/dns.c: Likewise.
7301 * grub-core/net/net.c: Likewise.
7302 * grub-core/script/lexer.c: Likewise.
7303 * grub-core/script/parser.y: Likewise.
7304 * grub-core/script/yylex.l: Likewise.
7305 * util/getroot.c: Likewise.
7306 * util/grub-setup.c: Likewise.
7307
a646a366
VS
73082012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7309
7310 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
7311 number.
7312
54e2be26
VS
73132012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
7316
f7c71e68
VS
73172012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
7320 macro.
7321 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
7322 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
7323
a32d5c71
VS
73242012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
7327 * util/grub-install.in: Gettextize.
7328 * util/grub-mkconfig.in: Likewise.
7329 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
7330 if not available.
7331 (grub_warn): Gettextize.
7332 * util/grub-mknetdir.in: Gettextize.
7333 * util/grub-mkrescue.in: Likewise.
7334 * util/grub-mkstandalone.in: Likewise.
7335 * util/grub-reboot.in: Likewise.
7336 * util/grub-set-default.in: Likewise.
7337 * util/grub.d/00_header.in: Likewise.
7338 * util/grub.d/10_hurd.in: Likewise.
7339 * util/grub.d/10_kfreebsd.in: Likewise.
7340 * util/grub.d/10_linux.in: Likewise.
7341 * util/grub.d/10_netbsd.in: Likewise.
7342 * util/grub.d/10_windows.in: Likewise.
7343 * util/grub.d/20_linux_xen.in: Likewise.
7344 * util/grub.d/30_os-prober.in: Likewise.
7345 * po/POTFILES-shell.in: Regenerate.
7346
69edd81a
RL
73472012-02-03 Richard Laager <rlaager@wiktel.com>
7348
7349 * util/grub-mkimage.c (main): Fix format-security warning.
7350 * util/grub-mkrelpath.c (main): Likewise.
7351 * util/grub-probe.c (main): Likewise.
7352
65f08dbf
RL
73532012-02-03 Richard Laager <rlaager@wiktel.com>
7354
7355 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
7356 failure.
7357 Put back lost PRINT_DRIVE.
7358
e9084abe
RL
73592012-02-03 Richard Laager <rlaager@wiktel.com>
7360
7361 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
7362 (grub_guess_root_devices): Replace strlen with sizeof.
7363 Avoid crash.
7364 (find_root_devices_from_poolname): Remove unused variable.
7365 Handle raidzN.
7366
cf5f7ee7
VS
73672012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7368
7369 Support install on multi-device filesystems.
7370
7371 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
7372 (grub_guess_root_devices): ...this. Return char **. All users updated.
7373 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
7374 Removed.
7375 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
7376 (find_root_devices_from_poolname): ... here.
7377 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
7378 Support zfs-fuse.
7379 (grub_guess_root_device): Rename to ...
7380 (grub_guess_root_devices): ... this. Return char **. All users updated.
7381 * util/grub-install.in: Handle multi-device filesystems.
7382 * util/grub-probe.c (probe). Make device_names a char **. Add delim
7383 argument. All users updated.
7384 Handle multi-device filesystems.
7385 Use 'delim' as separator.
7386 Remove device check to allow filesystems on file.
7387 (main): Support -0 argument. Handle multi-device.
7388 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
7389 Fix a cross-device check while on it.
7390 (arguments): Remove root_dev.
7391 (argp_parser): Remove -r.
7392 (main): Remove root_dev.
7393
2f53a9ed
VS
73942012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
7397
17e1d934
VS
73982012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
7401 symbol.
7402 Reported by: NODA, Kai <nodakai>.
7403
d3e3fab5
VS
74042012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 Fix ehci on amd64.
7407
7408 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
7409 pointers.
7410 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
7411 (grub_ehci_setup_qh): Likewise.
7412 (grub_ehci_find_qh): Likewise.
7413 (grub_ehci_transaction): Likewise.
7414 (grub_ehci_setup_transfer): Likewise.
7415 (grub_ehci_check_transfer): Likewise.
7416 (grub_ehci_portstatus): Likewise.
7417 (grub_ehci_detect_dev): Likewise.
7418 (grub_ehci_transfer_controller_data): New field td_last_phys.
7419 (grub_ehci_setup_transfer): Fill td_last_phys.
7420 (grub_ehci_check_transfer): Use td_last_phys.
7421
3008675b
SG
74222012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7423
7424 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7425 if no submenu is present.
7426
fc9b5652
AN
74272012-02-01 Aleš Nesrsta <starous@volny.cz>
7428
7429 CBI support.
7430
7431 * include/grub/usb.h (grub_usbms_protocol_t): New values
7432 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7433 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7434 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7435 (grub_usbms_dev): Add subclass, protocol and intrpt.
7436 Remove in_maxsz and out_maxsz.
7437 (grub_usbms_reset): Rename to ...
7438 (grub_usbms_bo_reset): .. this.
7439 (grub_usbms_cbi_cmd): New function.
7440 (grub_usbms_cbi_reset): Likewise.
7441 (grub_usbms_reset): Likewise.
7442 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7443 (grub_usbms_transfer): Rename to ...
7444 (grub_usbms_transfer_bo): ... this.
7445 (grub_usbms_transfer_cbi): Likewise.
7446 (grub_usbms_transfer): Likewise.
7447
a2b81d53
AN
74482012-02-01 Aleš Nesrsta <starous@volny.cz>
74492012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7452 the support for the CS5536 modification thereos and few bugfixes.
7453
7454 * grub-core/Makefile.core.def (ehci): New module.
7455 * grub-core/bus/usb/ehci.c: New file.
7456 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7457 port and hubaddr. All users updated.
7458 Save port and hubaddr into dev structure.
7459 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7460 define.
7461 * include/grub/pci.h (grub_dma_phys2virt): New function.
7462 (grub_dma_virt2phys): Likewise.
7463 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7464
b1d51f02
VS
74652012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7468 check as some mkfs implementations omit it.
7469
fc694106
VS
74702012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7471
7472 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7473
6c0920e3
VS
74742012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7475
7476 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7477 Add new member volname2.
7478 (grub_jfs_label): Use volname2 if available.
7479
d1a46f9a
VS
74802012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7481
7482 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7483 over last_mounted as seen in image generated by mkfs.nilfs2.
7484 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7485
dec8ed14
VS
74862012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7487
7488 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7489 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7490 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7491
7397c69b
VS
74922012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7493
7494 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7495 over the sector.
7496
b3fe42ad
VS
74972012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7498
7499 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7500 subvolume name (by removing a bogus and useless check).
7501
10476bb0
VS
75022012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7503
7504 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7505 sizeof while on it.
7506
9c08ad87
VS
75072012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7508
7509 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7510 (grub_scsi_read_capacity10): ... this.
7511 (grub_scsi_read_capacity16): New function.
7512 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7513 0xffffffff.
7514 Fix off-by-one error.
7515 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7516 64-bit unsigned.
7517 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7518 (grub_scsi_read_capacity10): ... this.
7519 (grub_scsi_read_capacity_data): Rename to ...
7520 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7521 (grub_scsi_read_capacity16): New struct.
7522 (grub_scsi_read_capacity16_data): Likewise.
7523 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7524 grub_scsi_cmd_read_capacity10.
7525 New command grub_scsi_cmd_read_capacity16.
7526
bc8d0f45
VS
75272012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7528
7529 SCSI >2TiB support.
7530
7531 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7532 (grub_scsi_write16): Likewise.
7533 (grub_scsi_read): Use read16 when necessary.
7534 (grub_scsi_write): Likewise.
7535 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7536 (grub_scsi_write16): Likewise.
7537 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7538
cc774926
VS
75392012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7540
7541 SCSI write support (for usbms mainly).
7542
7543 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7544 a const pointer.
7545 (grub_scsi_write): Implement.
7546 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7547
67639fd7
VS
75482012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7551 variable.
7552
9079d3ed
VS
75532012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7556
c6a6f204
VS
75572012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7558
7559 * po/POTFILES.in: Regenerate.
7560
ecbf8cd1
VS
75612012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7562
7563 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7564 with grub_printf to avoid unnecessary fatal failure.
7565
0b3b3b38
VS
75662012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7567
7568 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7569 (INT_MAX): Likewise.
7570 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7571 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7572 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7573 (strcpy): Likewise.
7574 (strstr): Likewise.
7575 (strchr): Likewise.
7576 (strncpy): Likewise.
7577 (strcat): Likewise.
7578 (strncat): Likewise.
7579 (strcoll): Likewise.
7580 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7581 (GRUB_INT_MAX): Likewise.
7582
db7337a3
VS
75832012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7584
7585 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7586 unexpected error.
7587 (optimize_utf8): Likewise.
7588 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7589
f37c87e1
VS
75902012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7591
7592 * grub-core/boot/i386/pc/lnxboot.S: Use
7593 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7594 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7595 location.
7596 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7597 definition.
7598 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7599
63fe43f3
VS
76002012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7601
7602 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7603 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7604 now to avoid double free.
7605 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7606 hostdisk.
7607 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7608 * util/grub-probe.c (escape_of_path): Always return a new copy.
7609 (print_full_name): Escape path.
7610 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7611 Fix hints on abstractions.
7612
ebe2c961
VS
76132012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7614
7615 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7616 Don't add "root" line if no compatibility hont is available.
7617 Suggested by: Seth Goldberg.
7618
2b5336a2
VS
76192012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7622 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7623 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7624 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7625
74310bd8
VS
76262012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7627
7628 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7629
c30582ba
VS
76302012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * util/grub-pe2elf.c (ehdr): Make static.
7633 (shdr): Likewise.
7634 (num_sections): Likewise.
7635 (offset): Likewise.
7636
5f47782c
VS
76372012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7638
7639 Eliminate ofpath limits and possible overflows.
7640
7641 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7642 (OF_PATH_MAX): Removed.
7643 (MAX_DISK_CAT): New const.
7644 (find_obppath): Use allocated rather than preallocated buffer.
7645 Return result. Argument of_path removed. All users updated.
7646 Add missing fdstat.
7647 (xrealpath): New function.
7648 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7649 Allocate rather than use preallocated buffer. All users updated.
7650 (__of_path_common): Use allocated rather than preallocatecd buffer.
7651 Return result. Argument of_path removed. All users updated.
7652 (vendor_is_ATA): Read only needed part form the file.
7653 (check_sas): Allocate depending on contents rather than fixed.
7654 (main) [STANDALONE]: Handle NULL result.
7655
f990cbf9
VS
76562012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7659
9c6e84b8
VS
76602012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7661
7662 Cryptodisk write support.
7663
7664 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7665 (grub_cryptodisk_decrypt): Moved logic to ...
7666 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7667 (grub_cryptodisk_write): Implement.
7668 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7669 (grub_util_fd_write): ... this. Make global.
7670 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7671
87cf9744
VS
76722012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7673
7674 * include/grub/list.h (grub_list_remove): Don't crash if element is
7675 removed twice.
7676
ca8c0baf
VS
76772012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7678
7679 Rename ofconsole to console.
7680
7681 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7682 as sysnonym to console.
7683 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7684 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7685 Rename grub_ofconsole_ to grub_console_. All users updated
7686 (grub_console_term_output): Rename "ofconsole" to "console".
7687 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7688 as "console".
7689
64c8b8f6
VS
76902012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7693 handling.
7694 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7695 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7696 GRUB_DISK_DEVICE_FILE_ID.
7697
f6c434d5
VS
76982012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7699
7700 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7701 and improve performance.
7702
5858b42d
VS
77032012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7706 missing ieee1275/ prefix on whole disk.
7707
4ed3c26b
VS
77082012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7711 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7712
df71143e
VS
77132012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7716
076e7c0f
VS
77172012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7718
7719 Merge common RAID and LVM logic to an abstract diskfilter.
7720 Add LDM support using the same framework.
7721
7722 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7723 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7724 (libgrubmods): Remove grub-core/disk/raid.c and
7725 grub-core/partmap/gpt.c.
7726 * grub-core/Makefile.core.def (ldm): New module.
7727 (raid): Renamed to diskfilter. All users updated.
7728 * grub-core/disk/raid.c: Moved to ...
7729 * grub-core/disk/diskfilter.c: ... here.
7730 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7731 (lv_num): New var.
7732 (find_array): Renamed to ...
7733 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7734 (grub_is_array_readable): Renamed to ...
7735 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7736 (insert_array): New argument id.
7737 (is_node_readable): New function.
7738 (scan_device): Rename to ...
7739 (scan_disk): .. this. Restrict to one disk.
7740 (scan_devices): New function.
7741 (grub_diskfilter_iterate): Support multi-LV.
7742 Skip invisible and nameless LVs.
7743 (grub_diskfilter_memberlist): Support multi-LV.
7744 (grub_diskfilter_read_node): New function.
7745 (grub_raid_read): Most of logic moved to ...
7746 (read_segment): ... here
7747 (read_lv): New function.
7748 (grub_diskfilter_get_vg_by_uuid): New function.
7749 (grub_diskfilter_make_raid): Likewise.
7750 * grub-core/disk/ldm.c: New file.
7751 * grub-core/disk/lvm.c (vg_list): Removed.
7752 (lv_count): Likewise.
7753 (scan_depth): Likewise.
7754 (is_lv_readable): Likewise.
7755 (grub_lvm_getvalue): Advance pointer past the number.
7756 (find_lv): Removed.
7757 (do_lvm_scan): Refactored into ...
7758 (grub_lvm_detect): ... this. Support raid.
7759 (grub_lvm_iterate): Removed.
7760 (grub_lvm_memberlist): Likewise.
7761 (grub_lvm_open): Likewise.
7762 (grub_lvm_close): Likewise.
7763 (read_lv): Likewise.
7764 (read_node): Likewise.
7765 (is_node_readable): Likewise.
7766 (is_lv_readable): Likewise.
7767 (grub_lvm_read): Likewise.
7768 (grub_lvm_write): Likewise.
7769 (grub_lvm_dev): Use diskfilter
7770 (GRUB_MOD_INIT): Likewise.
7771 (GRUB_MOD_FINI): Likewise.
7772 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7773 new interface.
7774 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7775 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7776 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7777 grub_diskfilter_read_node.
7778 Fix a bug with xor.
7779 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7780 grub_diskfilter_read_node.
7781 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7782 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7783 (grub_disk_dev_iterate): Move from here...
7784 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7785 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7786 Make global.
7787 (grub_hostdisk_find_partition_start): Likewise.
7788 (grub_hostdisk_os_dev_to_grub_drive): New function.
7789 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7790 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7791 * util/getroot.c (make_device_name): ... here.
7792 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7793 Move to ...
7794 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7795 * grub-core/kern/emu/hostdisk.c
7796 (convert_system_partition_to_system_disk): Move to ...
7797 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7798 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7799 * util/getroot.c (device_is_wholedisk): ... here.
7800 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7801 * util/getroot.c (find_system_device): ... here.
7802 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7803 Move to ...
7804 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7805 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7806 Move to ...
7807 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7808 Handle LDM.
7809 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7810 Move to ...
7811 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7812 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7813 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7814 DISKFILTER.
7815 * include/grub/raid.h: Renamed to ...
7816 * include/grub/diskfilter.h: ... this.
7817 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7818 (GRUB_RAID_LAYOUT_*): Make into array.
7819 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7820 (grub_diskfilter_vg): New struct.
7821 (grub_diskfilter_pv_id): Likewise.
7822 (grub_raid_member): Removed.
7823 (grub_raid_array): Likewise.
7824 (grub_diskfilter_pv): New struct.
7825 (grub_diskfilter_lv): Likewise.
7826 (grub_diskfilter_segment): Likewise.
7827 (grub_diskfilter_node): Likewise.
7828 (grub_diskfilter_get_vg_by_uuid): New proto.
7829 (grub_raid_register): Inline.
7830 (grub_diskfilter_unregister): Likewise.
7831 (grub_diskfilter_make_raid): New proto.
7832 (grub_diskfilter_vg_register): Likewise.
7833 (grub_diskfilter_read_node): Likewise.
7834 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7835 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7836 (grub_util_is_ldm): Likewise.
7837 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7838 (grub_hostdisk_find_partition_start): Likewise.
7839 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7840 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7841 New definition.
7842 (grub_gpt_partition_map_iterate): New proto.
7843 * include/grub/lvm.h (grub_lvm_vg): Removed.
7844 (grub_lvm_pv): Likewise.
7845 (grub_lvm_lv): Likewise.
7846 (grub_lvm_segment): Likewise.
7847 (grub_lvm_node): Likewise.
7848 * util/getroot.c [...]
7849 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7850 (probe_abstraction): Likewise.
7851 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7852 (main): Remove dead logic.
7853
8a7f9b9c
VS
78542012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7855
7856 Simplify root device discover and don't fail when trying to open
7857 incorrect devices.
7858
7859 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7860 function.
7861 (get_diskname_from_path): Likewise.
7862 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7863 of iterating.
7864
30545b85
VS
78652012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7866
7867 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7868
28ea58cf
VS
78692012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7870
7871 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7872 pastthe end.
7873
692dabca
VS
78742012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7875
7876 * util/grub-install.in: Add missing \.
7877 Reported by: gentoofan
7878
f6e4ea70
VS
78792012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7880
7881 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7882 (direct_read): Use correct compressed size.
7883 (grub_squash_read_data): Likewise.
7884
78852012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
7886
7887 * docs/grub.texi (Platform limitations): New section.
7888 (Platform-specific operations): Likewise.
7889 * docs/grub-dev.texi (Porting): Likewise.
7890
76261110
VS
78912012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7892
7893 IEEE1275 disk write support.
7894
7895 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7896 const void *.
7897 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7898 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7899 and seek loginc to ...
7900 (grub_ofdisk_prepare): ... here.
7901 (grub_ofdisk_write): Implement.
7902
fc36d603
VS
79032012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7904
7905 ARC disk write support.
7906
7907 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7908 (reopen): New argument writable. All users updated.
7909 Handle required access mode.
7910 (grub_arcdisk_write): Implement.
7911 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7912 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7913
e06c2e7a
VS
79142012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7915
7916 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7917 (read_sblock): Don't attempt to read superblocks outside the disk size.
7918
ff447958
VS
79192012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7920
7921 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7922 first superblock to find the second one when possible.
7923
9e88df39
VS
79242012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 * util/grub-install.in: Fix an ARC bug.
7927 Print a warning if no platform-specific setup is available.
7928
bb26e4ff
VS
79292012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7930
7931 Use static allocation rather than scratch pointer in reed_solomon.
7932 It decreases its size significantly and avoids a variable in .text.
7933
7934 * grub-core/lib/reed_solomon.c (scratch): Removed.
7935 (chosenstat): New const or static array.
7936 (sigma): Likewise.
7937 (errpot): Likewise.
7938 (errpos): Likewise.
7939 (sy): Likewise.
7940 (mstat): Likewise.
7941 (errvals): Likewise.
7942 (eqstat): Likewise.
7943 (pol_evaluate): Replace x with log_x argument. All users updated.
7944 (syndroms): Removed.
7945 (gauss_solve): Use statically allocated arrays.
7946 (rs_recover): Likewise.
7947 Calculate syndroms directly.
7948 (decode_block): Use statically allocated arrays.
7949 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7950 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7951
2e13ede5
VS
79522012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7953
7954 Eliminate fixed limit on reed solomon decoder length.
7955
7956 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7957 rather than hardcoding the address.
7958 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7959 no_reed_solomon_length.
7960 Move gate_a20 to no-reed-solomon part.
7961 Don't force a particular size of no reed-solomon part.
7962 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7963 Removed.
7964 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7965 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7966
f8a9ab12
VS
79672012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7968
7969 * grub-core/commands/wildcard.c (match_files): Handle filenames
7970 without explicit device.
7971 (wildcard_expand): Don't add explicit device if not already present.
7972 * tests/grub_script_echo1.in: Add a new expansion test.
7973
87edb894
VS
79742012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7975
7976 Replace single-linked with double-linked lists. It results in more
7977 compact and more efficient code.
7978
7979 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7980 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7981 (grub_list_remove): Moved from here ...
7982 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7983 (grub_prio_list_insert): Set prev.
7984 * include/grub/list.h (grub_list): Add prev. All users updated.
7985
48b391e9
VS
79862012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7987
7988 Handle newer autotools. Add some missing quotes while on it.
7989
7990 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7991 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7992 (pkgdata_DATA): ... here.
7993 * Makefile.util.def (update-grub_lib): Removed.
7994 * conf/Makefile.common (pkglib_DATA): Removed.
7995 (pkglib_SCRIPTS): Likewise.
7996 (pkgdata_DATA): New variable.
7997 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7998 needed.
7999 Add missing quotes.
8000 Remove unused variable while on it.
8001 * tests/util/grub-shell.in: Likewise.
8002 * util/grub-install.in: Likewise.
8003 * util/grub-mkconfig.in: Likewise.
8004 * util/grub-mknetdir.in: Likewise.
8005 * util/grub-mkrescue.in: Likewise.
8006 * util/grub-mkstandalone.in: Likewise.
8007 * util/grub.d/00_header.in: Likewise.
8008 * util/grub.d/10_hurd.in: Likewise.
8009 * util/grub.d/10_illumos.in: Likewise.
8010 * util/grub.d/10_kfreebsd.in: Likewise.
8011 * util/grub.d/10_linux.in: Likewise.
8012 * util/grub.d/10_netbsd.in: Likewise.
8013 * util/grub.d/10_windows.in: Likewise.
8014 * util/grub.d/20_linux_xen.in: Likewise.
8015 * util/grub.d/30_os-prober.in: Likewise.
8016 * util/update-grub_lib.in: Removed.
8017
80182012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
8019
8020 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
8021 a workaround for intel problem.
8022
66832792
PRP
80232012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
80242012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
80252012-01-23 pfsmorigo
8026
8027 * util/grub-install.in: Support dd'in into PreP partition.
8028 * util/grub-probe.c (probe): Support discovering partition type.
8029 (main): Support -t msdos_parttype.
8030
7816a17e
VS
80312012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
8032
8033 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
8034 infinite recursion using counter.
8035 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
8036 init to skip it if the magic check fails.
8037 (dec_stream_header): Init s->crc32.
8038
8f9d3a8c
ZB
80392012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
80402012-01-22 Zachary Bedell <pendorbound@gmail.com>
80412012-01-22 Richard Laager <rlaager@wiktel.com>
8042
8043 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
8044 All users updated.
8045 (find_bestub): Determine correct size.
8046 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
8047 (scan_disk): Align the size down.
8048 Call check pool before find_bestub to have ashift.
8049
b055dd32
VS
80502012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8051
8052 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
8053 dprintf in no-malloc zone.
8054
d779e9bd
ML
80552012-01-22 Mario Limonciello <mario_limonciello@dell.com>
8056
8057 * configure.ac: Add back in test for limits.h.
8058
b508af69
VS
80592012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8060
8061 Support 4K-sector NTFS.
8062
8063 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
8064 (grub_ntfs_data): Remove blocksize.
8065 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
8066 Remove data argument. All users updated.
8067
dad9c8b5
VS
80682012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8069
8070 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
8071 being in .text to avoid dprel references.
8072 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
8073 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
8074 (grub_arch_highmemsize): Likewise.
8075 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
8076 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
8077 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
8078
d43a777e
VS
80792012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8080
8081 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
8082
8083 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
8084 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
8085
34e4208f
VS
80862012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8087
8088 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
8089 GRUB_UTIL.
8090 (grub_set_datetime_cmos): Likewise.
8091
3ec0fc1c
VS
80922012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 Make XZ compression parameters dependent on target and not host CPU.
8095
8096 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
8097 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
8098
22489834
VS
80992012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8100
8101 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
8102 set but not used variable.
8103
8502fbca
VS
81042012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8105
8106 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
8107 created when no uuid support is compiled into mkfs.reiser.
8108
76df2068
VS
81092012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8110
8111 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
8112 (utf8_to_macroman): Do the opposite.
8113 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
8114
64e3f8f6
VS
81152012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8116
8117 * configure.ac: Refise build qemu_mips w/o unifont.
8118
9c271078
VS
81192012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8120
8121 Eliminate grub_min/grub_max prone to overflow usage.
8122
8123 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
8124 (poll_nonroot_hub): Likewise.
8125 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
8126 (grub_affs_label): Likewise.
8127 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
8128 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
8129 (grub_hfs_label): Likewise.
8130 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
8131 * grub-core/fs/zfs/zfs.c (MIN): Remove.
8132 (zap_leaf_array_equal): Use grub_size. Remove MIN.
8133 (zap_leaf_array_get): Likewise.
8134 (dnode_get_path): Likewise.
8135 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
8136 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
8137 * grub-core/script/execute.c (grub_script_break): Likewise.
8138 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
8139 grub_max.
8140 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
8141 * include/grub/misc.h (grub_min): Removed.
8142 (grub_max): Likewise.
8143
80662dbc
VS
81442012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8145
8146 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
8147 direct.inode = 0.
8148
e6da1467
VS
81492012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8150
8151 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
8152
b1ac4cb1
VS
81532012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8154
8155 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
8156
b4bf7c3b
VS
81572012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8158
8159 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
8160 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
8161
8ee1101a
VS
81622012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8163
8164 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
8165 rather than a hack for grub_strncasemap.
8166
81672012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8168
8169 Support multiple initrds
8170 Note: part of this was accidently committed in r3739.
8171
8172 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
8173 initrd.
8174 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8175 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8176 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8177 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8178 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8179
4d1e2bc9
VS
81802012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8181
8182 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
8183 disks with unknown size.
8184 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
8185
75b49ebe
VS
81862012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8187
8188 Remove defines pertaining to arbitrary limits not affecting GRUB
8189 anymore.
8190
8191 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
8192 (EXT2_MAX_SYMLINKCNT): Likewise.
8193 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
8194 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
8195 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
8196 (GRUB_PXE_MAX_BLKSIZE): Likewise.
8197 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
8198 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
8199 (DN_MAX_OBJECT_SHIFT): Likewise.
8200 (DN_MAX_OFFSET_SHIFT): Likewise.
8201 (DN_MAX_OBJECT): Likewise.
8202 (DNODES_PER_LEVEL_SHIFT): Likewise.
8203 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
8204 (SPA_MAXBLOCKSIZE): Likewise.
8205 (SPA_BLOCKSIZES): Likewise.
8206 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
8207 (MZAP_MAX_BLKSZ): Likewise.
8208
74a1dce7
VS
82092012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8210
8211 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
8212 handle NULL appropriately.
8213 Remove MIN.
8214
30c7d3ce
VS
82152012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8216
8217 Fix efiemu.
8218
8219 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
8220 cpu/types.h.
8221 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
8222 * configure.ac: Fix efiemu check.
8223
3c76ea0c
VS
82242012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8225
8226 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
8227 grub_probe.
8228 Reported by: adamwill
8229
7e532280
SG
82302012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
8231
8232 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
8233
30492374
VS
82342012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8235
8236 Fix handling of wide characters in gfxterm.
8237
8238 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
8239 (clear_char): Likewise.
8240 (paint_char): Skip code == NULL chars.
8241 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
8242
e70cb72f
VS
82432012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 * grub-core/normal/charset.c: Move comment to right place.
8246
5c827cf9
VS
82472012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8248
8249 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
8250 (GRUB_AFFS_FLAG_FFS): Put back where it was.
8251 (grub_affs_mount): Revert the correct version checking.
8252
53603892
VS
82532012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8254
8255 * docs/grub.texi (Unicode): Mention several other unsupported features.
8256
ff094b9b
VS
82572011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8258
8259 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
8260 case statements as compile-time one.
8261 (direct_read): Prevent spurious warnings.
8262 (grub_squash_read_data): Likewise.
8263
c029da8a
VS
82642011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8265
8266 Various squash4 fixes and LZO and XZ support.
8267
8268 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
8269 Add xzembed source files.
8270 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
8271 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
8272 (grub_squash_inode): New subtype long_dir.
8273 (SQUASH_TYPE_LONG_DIR): New inode type.
8274 (COMPRESSION): New enum.
8275 (XZBUFSIZ): New const.
8276 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
8277 (read_chunk): Use data->decompress.
8278 (zlib_decompress): New function.
8279 (lzo_decompress): Likewise.
8280 (xz_decompress): Likewise.
8281 (squash_mount): Set new data fields.
8282 (grub_squash_iterate_dir): Handle long dir.
8283 (squash_unmount): Free xzdec and xzbuf.
8284 (grub_squash_open): Check ino type.
8285 (direct_read): Stylistic fixes. Use data->decompress.
8286 (grub_squash_read_data): Likewise.
8287 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
8288 (get_byte): Likewise.
8289 (grub_zlib_disk_read): Removed.
8290 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
8291 (GRUB_POSIX_BOOL_DEFINED): New define.
8292 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
8293 * grub-core/lib/xzembed/xz.h: Addmissing includes.
8294 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
8295 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
8296
7a45a539
VS
82972011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8298
8299 Don't override more informative errors.
8300
8301 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
8302 * grub-core/font/font.c (open_section): Likewise.
8303 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
8304 filename. Don't override errors.
8305 (grub_cmd_openbsd_ramdisk): Don't override errors.
8306 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
8307 (grub_cmd_initrd): Likewise.
8308 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8309 (grub_cmd_initrd): Likewise.
8310 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
8311 (grub_cmd_linux): Likewise.
8312 (grub_cmd_initrd): Likewise.
8313 (grub_cmd_payload): Likewise.
8314 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8315 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
8316 (grub_cmd_module): Likewise.
8317 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8318 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8319 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
8320 (grub_cmd_xnu_mkext): Likewise.
8321 (grub_cmd_xnu_ramdisk): Likewise.
8322 (grub_xnu_check_os_bundle_required): Likewise.
8323 (grub_xnu_load_kext_from_dir): Likewise.
8324 (grub_cmd_xnu_kextdir): Likewise.
8325 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
8326
b2d004db
VS
83272011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8328
8329 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
8330 as 1024 in block size field. Found on one of my test images.
8331 Small optimisation while on it.
8332
ec000eac
VS
83332011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8334
8335 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
8336 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
8337 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
8338 performance fixes while on it.
8339 (grub_sfs_close): Fix memory leak while on it.
8340 (grub_sfs_label): Convert Latin1 to UTF-8.
8341
f50e1165
VS
83422011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8343
8344 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
8345 space to avoid overflows.
8346 (grub_hfs_label): Convert from macroman to UTF-8.
8347
2ae254de
VS
83482011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8349
8350 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
8351
0108f491
VS
83522011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8353
8354 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
8355
f45f5f89
VS
83562011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8357
8358 * unicode: Import Unicode 6.0 data.
8359
4d8c4765
VS
83602011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8361
63fa8ef9
VS
8362 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
8363 outside of range.
8364
83652011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8366
8367 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
8368
8369 * include/grub/charset.h (grub_getend): New function.
8370 * grub-core/script/function.c (grub_script_function_find): Use
8371 grub_getend.
8372 * grub-core/normal/completion.c (add_completion): Likewise.
8373
f3cb4a4e
VS
83742011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8375
8376 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
8377 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
8378 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
8379 (GRUB_UNICODE_TAG_END): Likewise.
8380 (GRUB_UNICODE_LAST_VALID): Likewise.
8381
5da8dbc5
VS
83822011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8383
8384 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
8385 len and make it smaller. All users updated.
8386 * util/import_unicode.py: Put length and not end character.
8387 Check length.
8388
8569f13d
VS
83892011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8390
8391 Make better Unicode-compliant and unify some UTF-8 code pathes.
8392
8393 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
8394 valid character.
8395 (grub_is_valid_utf8): Use grub_utf8_process.
8396 Check resulting code range.
8397 (grub_utf8_to_ucs4): Use grub_utf8_process.
8398 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
8399 valid character.
8400
cc4fddf5
VS
84012011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8402
8403 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
8404
bbc47747
VS
84052011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8406
8407 * docs/grub.texi (Filesystems): Mention AFS.
8408
f63d6bf4
VS
84092011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8410
8411 * docs/grub.texi (Filesystems): Clarify restrictions.
8412 (Regexp): Mention non-Unicode regexp behaviour.
8413 (Other): Mention non-Unicode matching behaviour.
8414
74bbf0db
VS
84152011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8416
f63d6bf4 8417 Make HFS implementation use MacRoman.
74bbf0db
VS
8418
8419 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8420 (macroman): New const array.
8421 (macroman_to_utf8): New function.
8422 (utf8_to_macroman): Likewise.
8423 (grub_hfs_find_dir): Use utf8_to_macroman.
8424 (grub_hfs_dir): Use macroman_to_utf8.
8425 Set case_insensitive.
8426
4ea0316e
VS
84272011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8428
8429 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8430
d3c13cbd
VS
84312011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8432
8433 Integrate hints into autogeneration scripts.
8434
8435 * docs/grub.texi (Filesystems): Add a hostdisk example.
8436 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8437 (grub-probe): Add ofpath.
8438 * gentpl.py: Remove group nosparc64.
8439 * grub-core/commands/search.c (cache_entry): New struct.
8440 (cache): New var.
8441 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8442 * grub-core/commands/search_wrap.c (options): Add platform-specific
8443 hint options.
8444 (grub_cmd_search): Handle platform-specific hints.
8445 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8446 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8447 (grub_util_biosdisk_data): Likewise.
8448 (grub_util_biosdisk_open): Set device_map.
8449 (read_device_map): Handle "" as indication of no map.
8450 Set device_map.
8451 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8452 (grub_util_biosdisk_get_compatibility_hint): New function.
8453 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8454 * include/grub/emu/hostdisk.h
8455 (grub_util_biosdisk_get_compatibility_hint): New proto.
8456 * util/grub-install.in: Don't call grub-mkdevicemap.
8457 Add platform-specific hint to load.cfg.
8458 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8459 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8460 hints. Set root preliminary to compatibility hint, not to OS name.
8461 * util/grub-probe.c (PRINT_*): Add hints.
8462 (print): Make static.
8463 (escape_of_path): New function.
8464 (guess_bios_drive): Likewise.
8465 (guess_efi_drive): Likewise.
8466 (guess_baremetal_drive): Likewise.
8467 (print_full_name): Likewise.
8468 (probe): Handle hints.
8469 (main): Likewise.
8470 * util/ieee1275/devicemap.c: Removed.
8471 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8472 updated.
8473 (grub_util_devname_to_ofpath): Return NULL on failure.
8474
8475 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8476 resource leak.
8477 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8478
8479 * po/POTFILES.in: Regenerated.
8480
8481 Allow purely long options
8482
8483 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8484 (SHORT_ARG_USAGE): Likewise.
8485 (grub_arg_show_help): Compare opt with help_options.
8486 (parse_option): Receive opt as argument. If makes big simplificatons.
8487 All users updated
8488
00ce2df3
VS
84892011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8492 Restructure to avoid warning.
8493
e77e325f
VS
84942011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 * util/grub-install.in: Account for possible escaped comma in device
8497 name.
8498
165099ea
VS
84992011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8500
8501 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8502 channel.
8503
ce4a999d
VS
85042011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8505
8506 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8507 allocation and zero-setting.
8508 (grub_ieee1275_get_devname): Check that alias is complete.
8509
379586ad
VS
85102011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8511
8512 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8513 unaligned segments.
8514
9197b0ad
VS
85152011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8516
8517 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8518 prefix.
8519 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8520 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8521 Add ieee1275 prefix.
8522
edddb7f9
VS
85232011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8524
8525 * docs/grub.texi (Filesystems): Update.
8526
a1a8b1b9
VS
85272011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8528
8529 Support odc, newc and bigendian cpio formats.
8530
8531 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8532 * grub-core/Makefile.core.def (newc): New module.
8533 (odc): Likewise.
8534 (cpio_be): Likewise.
8535 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8536 (MAGIC): Likewise.
8537 (MAGIC2): Likewise.
8538 (head) [MODE_ODC]: Adapt for the format.
8539 (head) [MODE_NEWC]: Likewise.
8540 (head) [!MODE_*]: Write fields of interest as arrays.
8541 (MAGIC_USTAR): Removed.
8542 (read_number) [MODE_NEWC]: Change to hex.
8543 (read_number) [!MODE_*]: Parse binary arrays.
8544 (grub_cpio_find_file): Factor out the code for better structure and
8545 always use read_number.
8546 (grub_cpio_mount): Use MAGIC and MAGIC2.
8547 (grub_cpio_dir): Exit on first hook non-0 return.
8548 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8549 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8550 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8551 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8552 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8553 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8554 * grub-core/fs/newc.c: New file.
8555 * grub-core/fs/odc.c: Likewise.
8556 * grub-core/fs/cpio_be.c: Likewise.
8557
58eba9ee
VS
85582011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 Fix handling of tar numbers occupying the whole field.
8561
8562 * grub-core/fs/cpio.c (read_number): New function.
8563 (grub_cpio_find_file): Use read_number instead of strtoull.
8564
a54a0e12
VS
85652011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8566
8567 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8568 occupying the whole field size.
8569
a6120aca
LA
85702011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8571
8572 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8573
a93964ce
VS
85742011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8575
8576 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8577
3ea1ca46
SG
85782011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8579
8580 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8581 TARGET_IMG_LDFLAGS.
8582
b87f7ef2
VS
85832011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8584
8585 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8586 (mountinfo_entry): Increase the field size to take escaping into
8587 account.
8588 (find_root_device_from_libzfs): Add one byte to size of strings for
8589 security.
8590
62092395
VS
85912011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8592
8593 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8594 an assert.
8595 * util/grub-setup.c (setup): Likewise.
8596
1f0b1a77
VS
85972011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8598
8599 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8600 _LzmaDecodeA.
8601
8eba9997
VS
86022011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8603
8604 * docs/grub.texi (Internationalisation): New section.
8605
dd0c91e9
VS
86062011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8607
8608 * docs/grub.texi (Loopback booting): New section.
8609
86102011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
8611
8612 * util/grub-mkstandalone.in: Fix minor typo errors.
8613
198e150a
VS
86142011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8615
8616 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8617
8618 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8619 net/icmp.c and net/icmp6.c.
8620 (http): New module.
8621 (priority_queue): Likewise.
8622 * grub-core/io/bufio.c: Rewritten.
8623 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8624 TYPE_WITH_CONFIGFILE_OPTION.
8625 (legacy_commands): Add bootp and dhcp.
8626 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8627 (grub_legacy_parse): Likewise.
8628 * grub-core/lib/priority_queue.c: New file.
8629 * grub-core/net/arp.c: Add missing license header.
8630 (arp_find_entry): Removed.
8631 (arp_find_entry): Likewise.
8632 (grub_net_arp_resolve): Rename to ...
8633 (grub_net_arp_send_request): ...this.
8634 (grub_net_arp_receive): New card argument.
8635 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8636 Set router and DNS server.
8637 (grub_net_configure_by_dhcp_ack): Handle routing information.
8638 (grub_cmd_bootp): Set checksum.
8639 (grub_bootp_init): Remove net_dhcp.
8640 * grub-core/net/dns.c: New file.
8641 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8642 completion.
8643 (get_card_packet): Handle allocation.
8644 (grub_efinet_findcards): Set mtu.
8645 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8646 (get_card_packet): Handle allocation.
8647 (emucard): Set mtu.
8648 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8649 (GRUB_MOD_INIT): Set mtu.
8650 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8651 mtu.
8652 (get_card_packet): Handle allocation.
8653 (grub_ofnet_findcards): Set mtu.
8654 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8655 assert.
8656 (grub_net_recv_ethernet_packet): Handle IPv6.
8657 * grub-core/net/http.c: New file.
8658 * grub-core/net/icmp.c: Likewise.
8659 * grub-core/net/icmp6.c: Likewise.
8660 * grub-core/net/ip.c (ip6addr): New type.
8661 (ip6hdr): Likewise.
8662 (reassemble): Likewise.
8663 (cmp): New function.
8664 (reassembles): New variable.
8665 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8666 (id): New variable.
8667 (send_fragmented): New function.
8668 (grub_net_send_ip_packet): Rename to ...
8669 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8670 Handle non-UDP.
8671 (grub_net_recv_ip_packets): Rename to ...
8672 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8673 (free_rsm): New function.
8674 (free_old_fragments): Likewise.
8675 (grub_net_recv_ip4_packets): New function.
8676 (grub_net_send_ip6_packet): Likewise.
8677 (grub_net_send_ip_packet): Likewise.
8678 (grub_net_recv_ip6_packets): Likewise.
8679 (grub_net_recv_ip_packets): Likewise.
8680 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8681 (LINK_LAYER_CACHE_SIZE): New const.
8682 (link_layer_find_entry): New function.
8683 (grub_net_link_layer_add_address): Likewise.
8684 (grub_net_link_layer_resolve_check): Likewise.
8685 (grub_net_link_layer_resolve): Likewise.
8686 (grub_net_ipv6_get_slaac): Likewise.
8687 (grub_net_ipv6_get_link_local): Likewise.
8688 (grub_cmd_ipv6_autoconf): Likewise.
8689 (parse_ip): Handle one number representation.
8690 (parse_ip6): New functoion.
8691 (match_net): Handle IPv6.
8692 (grub_net_resolve_address): Handle IPv6 and DNS.
8693 (grub_net_resolve_net_address): Handle IPv6.
8694 (route_cmp): New function.
8695 (grub_net_route_address): Find best route.
8696 (grub_net_addr_to_str): Handle IPv6.
8697 (grub_net_addr_cmp): New function.
8698 (grub_net_add_addr): Register local route.
8699 (print_net_address): Handle net address.
8700 (grub_net_poll_cards): Retransmit TCP.
8701 (grub_net_poll_cards_idle_real): Likewise.
8702 (have_ahead): New function.
8703 (grub_net_seek_real): Use underlying seek.
8704 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8705 * grub-core/net/tcp.c: New file.
8706 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8707 (cmp): New function.
8708 (ack): Likewise.
8709 (tftp_receive): Handle unordered input.
8710 (destroy_pq): New function.
8711 (tftp_close): Close pq.
8712 * grub-core/net/udp.c: Put missing license header.
8713 (grub_net_udp_socket): New function.
8714 (udp_socket_register): Likewise.
8715 (grub_net_udp_close): Likewise.
8716 (grub_net_recv_udp_packet): Check checksum.
8717 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8718 * include/grub/misc.h (grub_memchr): New function.
8719 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8720 (grub_net_card_driver): Return buf in recv.
8721 (grub_net_slaac_mac_list): New struct.
8722 (grub_network_level_protocol_id): Add ipv6.
8723 (grub_net_network_level_addr): Likewise.
8724 (grub_net_network_level_net_addr): Likewise.
8725 (grub_net_app_protocol): Add seek.
8726 (grub_net_socket): Removed.
8727 (grub_net_sockets): Likewise.
8728 (grub_net_socket_register): Likewise.
8729 (grub_net_socket_unregister): Likewise.
8730 (FOR_NET_SOCKETS): Likewise.
8731 (grub_net_add_addr): Add const.
8732 (GRUB_NET_BOOTP_*): New enum.
8733 (grub_net_addr_cmp): New proto.
8734 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8735 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8736 (grub_net_hwaddr_to_str): NEw proto.
8737 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8738 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8739 (grub_dns_init): New proto.
8740 (grub_dns_fini): Likewise.
8741 (grub_net_tcp_retransmit): Likewise.
8742 (grub_net_link_layer_add_address): Likewise.
8743 (grub_net_link_layer_resolve_check): Likewise.
8744 (grub_net_link_layer_resolve): Likewise.
8745 (grub_net_dns_lookup): Likewise.
8746 (grub_net_add_dns_server): Likewise.
8747 (grub_net_remove_dns_server): Likewise.
8748 (GRUB_NET_TRIES): New const.
8749 (GRUB_NET_INTERVAL): Likewise.
8750 * include/grub/net/arp.h: Mostly rewritten.
8751 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8752 * include/grub/net/ip.h: Mostly rewritten.
8753 * include/grub/net/netbuff.h: Indent.
8754 * include/grub/net/tcp.h: New file.
8755 * include/grub/net/udp.h: Mostly rewritten.
8756 * include/grub/priority_queue.h: New file.
8757 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8758 (grub_swap_bytes64_compile_time): Likewise.
8759 (grub_cpu_to_be16_compile_time): Likewise.
8760 (grub_cpu_to_be32_compile_time): Likewise.
8761 (grub_cpu_to_be64_compile_time): Likewise.
8762 (grub_be_to_cpu64_compile_time): Likewise.
8763
215c1800
VS
87642011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8765
8766 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8767 UINT_TO_PTR with cast.
8768
c17e546c
VS
87692011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8772 don't use them.
8773
ff6b18b6
VS
87742011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8777 already there.
8778
70ffcc93
VS
87792011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8780
8781 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8782 confusing ipxe.
8783
e5f4d260
VS
87842011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8785
8786 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8787 Add missing const attribute.
8788 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8789 Likewise.
8790 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8791 Likewise.
8792
8e54b4b7
VS
87932011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8794
8795 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8796 misaligned access.
8797 (serpent_setkey): Likewise.
8798 (serpent_encrypt_internal): Likewise.
8799 (serpent_decrypt_internal): Likewise.
8800 (serpent_encrypt): Don't put an alignment-increasing cast.
8801 (serpent_decrypt): Likewise.
8802 (serpent_test): Likewise.
8803
813c0a2b
VS
88042011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8807
f2b60fbd
VS
88082011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8809
8810 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8811
8812 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8813 grub_addr_t casts.
8814 (PTR_TO_UINT64): Likewise.
8815 (PTR_TO_UINT32): Likewise.
8816
5ef5c511
VS
88172011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8818
8819 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8820 because of stack.
8821 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8822 limit.
8823
c476e6df
VS
88242011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8825
8826 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8827 text_width > available width a bit more gracefully.
8828
384ad7cc
VS
88292011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8832 current address calculation.
8833
96f8caf8
VS
88342011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8835
8836 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8837 stack.
8838 (encode_block): Likewise.
8839
276b7a8b
VS
88402011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8841
8842 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8843 certainety.
8844
e3fd394a
VS
88452011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8846
8847 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8848 non-RS part to avoid RS messing with GDT.
8849 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8850 Increase to suit in realmode routines.
8851
88522011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8853
8854 * grub-core/kern/i386/realmode.S: Increase alignment.
8855 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8856
ee9c2e7a
VS
88572011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8860 be deterministic.
8861 (syndroms): Compute 0 syndrom.
8862 (rs_recover): Use 0 syndrom.
8863
7a7f7cc9
VS
88642011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8867
a14b16d1
VS
88682011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8869
8870 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8871 brackets.
8872
9f59e9fc
VS
88732011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8874
ca1b552c
VS
8875 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8876 account.
8877 (get_top_pad): Likewise.
8878 (get_right_pad): Likewise.
8879 (get_bottom_pad): Likewise.
8880
88812011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8882
8883 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 8884
e739d698
VS
88852011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8886
8887 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8888 attribute as the structure isn't guaranteed to be properly aligned.
8889 (grub_efi_pci_device_path): Likewise.
8890 (grub_efi_pccard_device_path): Likewise.
8891 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8892 specify the size of `memory_type'.
8893 (grub_efi_vendor_device_path): Likewise.
8894 (grub_efi_controller_device_path): Likewise.
8895 (grub_efi_acpi_device_path): Likewise.
8896 (grub_efi_expanded_acpi_device_path): Likewise.
8897 (grub_efi_atapi_device_path): Likewise.
8898 (grub_efi_scsi_device_path): Likewise.
8899 (grub_efi_fibre_channel_device_path): Likewise.
8900 (grub_efi_1394_device_path): Likewise.
8901 (grub_efi_usb_device_path): Likewise.
8902 (grub_efi_usb_class_device_path): Likewise.
8903 (grub_efi_i2o_device_path): Likewise.
8904 (grub_efi_mac_address_device_path): Likewise.
8905 (grub_efi_ipv4_device_path): Likewise.
8906 (grub_efi_ipv6_device_path): Likewise.
8907 (grub_efi_infiniband_device_path): Likewise.
8908 (grub_efi_uart_device_path): Likewise.
8909 (grub_efi_vendor_messaging_device_path): Likewise.
8910 (grub_efi_hard_drive_device_path): Likewise.
8911 (grub_efi_cdrom_device_path): Likewise.
8912 (grub_efi_vendor_media_device_path): Likewise.
8913 (grub_efi_file_path_device_path): Likewise.
8914 (grub_efi_protocol_device_path): Likewise.
8915 (grub_efi_piwg_device_path): Likewise.
8916 (grub_efi_bios_device_path): Likewise.
8917
cb8f88ea
VS
89182011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8919
8920 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8921 (grub_ucs4_to_utf8_alloc): Likewise.
8922 (grub_ucs4_to_utf8): Likewise.
8923 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8924 (grub_ucs4_to_utf8_alloc): Likewise.
8925
309e5352
VS
89262011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8927
8928 AFFS never uses unicode.
8929
8930 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8931 (grub_latin1_to_utf8): New inline function.
8932 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8933
e7987e1b
VS
89342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8935
8936 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8937 overflow.
8938
efc2616e
VS
89392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8942 (grub_squash_dirent_header): Likewise.
8943 (read_chunk): Don't double swap.
8944 (grub_squash_iterate_dir): Fix swap sizes.
8945
3c349f5a
VS
89462011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8947
8948 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8949
b453412d
VS
89502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8953 (grub_hfs_iterate_dir): Likewise.
8954
12e9d4d1
VS
89552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 Fix video on platforms where unaligned access is forbidden.
8958 Make several optimisations while on it.
8959
8960 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8961 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8962 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8963 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8964 Disable.
8965 (grub_video_fbblit_replace_16bit_1bit):
8966 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8967 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8968 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8969 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8970 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8971 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8972 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8973 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8974 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8975 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8976 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8977 (grub_video_fbblit_replace_index_RGB888): Likewise.
8978 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8979 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8980 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8981 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8982 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8983 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8984 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8985 Disable.
8986 (grub_video_fbblit_blend_XXX565_1bit):
8987 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8988 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8989 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8990 void *.
8991 * grub-core/video/fb/video_fb.c (common_blitter)
8992 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8993 (grub_video_fb_create_render_target_from_pointer)
8994 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8995 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8996 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8997 definition.
8998 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8999
ace96609
VS
90002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9001
9002 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
9003 HH22 and HM10 relocations.
9004
fd261d73
VS
90052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9006
9007 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
9008
e59b7857
VS
90092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9010
9011 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
9012 allocation succeeded.
9013
9b4baaa4
VS
90142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9015
9016 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
9017 argument a u8 pointer. All users updated.
9018 Handle unaligned buffers.
9019
dc713193
VS
90202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9021
9022 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
9023 add_part to workaround compiler bug.
9024
30dd48c2
VS
90252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9026
9027 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
9028
0c6087a8
VS
90292011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9030
9031 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
9032 Reserve alignment invariants.
9033 (grub_multiboot_load): Likewise.
9034 (retrieve_video_parameters): Likewise.
9035 (grub_multiboot_make_mbi): Likewise.
9036
c2e77777
VS
90372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9038
9039 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
9040 incorrect pointer.
9041
b70b6d11
VS
90422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
9045 (grub_pata_pio_write): Likewise.
9046
02a2bf83
VS
90472011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 Add noreturn attributes and remove unreachable code.
9050
9051 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
9052 code.
9053 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
9054 code. Mark as noreturn.
9055 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
9056 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
9057 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
9058 unreachable code.
9059 * grub-core/kern/main.c (grub_main): Mark as noreturn.
9060 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
9061 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
9062 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
9063 * include/grub/kernel.h (grub_main): Mark as noreturn.
9064 * include/grub/reader.h (grub_rescue_run): Likewise.
9065
2019d09e
VS
90662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
9069 redundant declaration.
9070
d1c501ee
VS
90712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9072
9073 * include/grub/net.h (grub_net_network_level_interfaces): Remove
9074 redundant declaration.
9075 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
9076
61664420
VS
90772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
9080 to ensure alignment.
9081 (grub_hdparm_print_identify): Make argument uint16 * to ensure
9082 alignment. Ensure tmp alignment.
9083 (grub_cmd_hdparm): Ensure buf alignment.
9084 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
9085 to ensure alignment.
9086 (grub_ata_dumpinfo): Ensure text alignment.
9087 (grub_atapi_identify): Preserve alignment invariant.
9088 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
9089
0d51ee20
VS
90902011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
9093 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
9094 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
9095 * include/grub/misc.h (grub_reboot)
9096 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
9097 (grub_halt) [__mips__]: Likewise.
9098
753ef8c1
VS
90992011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9100
9101 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
9102 Remove redundant declaration.
9103 (grub_mmap_get_post64): Likewise.
9104 (grub_mmap_get_upper): Likewise.
9105 (grub_mmap_get_lower): Likewise.
9106
85c85365
VS
91072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9108
9109 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
9110 uint32_t * to ensure alignment.
9111 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
9112
a23f2cc4
VS
91132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9114
93018f64
VS
9115 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
9116 uint16_t * to ensure alignment.
9117 (sun_pc_partition_map_iterate): Make `block' a union to ensure
9118 alignment.
9119
91202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9121
9122 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
9123 to ensure alignment.
9124 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
9125
58acccd6
VS
91262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9127
9128 * grub-core/fs/ntfs.c (u16at): Make into inline function.
9129 Handle unaligned pointers.
9130 (u32at): Likewise.
9131 (u64at): Likewise.
9132 (fixup): Use byte access instead of v16at.
9133 (find_attr): Fix imporper usage of v32at.
9134 (read_data): Likewise.
9135 (list_file): Handle byte-swapping and unaligned strings.
9136 (grub_ntfs_label): Likewise.
9137
9b05cad7
VS
91382011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9139
9140 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
9141 as it's not necessarily aligned.
9142
b3950b84
VS
91432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9144
9145 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
9146 redundant declaration.
9147 (grub_serial_init): Likewise.
9148 (grub_terminfo_init): Likewise.
9149
fcd232b7
VS
91502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9151
9152 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
9153 function.
9154 (ZAP_HASH_IDX): Likewise.
9155 (ZAP_LEAF_HASH_SHIFT): Likewise.
9156 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
9157 (LEAF_HASH): Likewise.
9158 (ZAP_LEAF_NUMCHUNKS): Likewise.
9159 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
9160 alignment invariants. Return pointer. All users updated.
9161 (ZAP_LEAF_ENTRY): Make into inline function.
9162 (NBBY): Removed.
9163 (xor): LIkewise.
9164 (xor_out): Use grub_crypto_xor.
9165 (dnode_get_path): Use grub_get_unaligned.
9166 (nvlist_find_value): Likewise.
9167 (grub_zfs_nvlist_lookup_uint64): Likewise.
9168 (grub_zfs_nvlist_lookup_string): Likewise.
9169 (get_nvlist_size): Likewise.
9170 (grub_zfs_open): Likewise.
9171 (fill_fs_info): Likewise.
9172 (grub_zfs_dir): Likewise.
9173 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
9174 alignment invariants.
9175 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
9176 necessarily aligned.
9177
f138623a
VS
91782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9179
9180 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
9181
564840dc
VS
91822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9183
9184 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
9185 arithmetic to conserve alignment invariants.
9186
9b40df20
VS
91872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
9190 redundant declaration.
9191 (grub_efiemu_mm_obtain_request): Likewise.
9192 (grub_efiemu_prepare): Likewise.
9193
d1c930f9
VS
91942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
9197 to match types.
9198
4c5f3056
VS
91992011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
9202 case of aunaligned recptr.
9203 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
9204 alignment.
9205 (grub_hfsplus_btree_search): Handle unaligned index.
9206
728cba91
VS
92072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9208
9209 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
9210 to get freetag and skip.
9211
eb561f31
VS
92122011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9213
9214 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
9215 array.
9216 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
9217 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
9218
20993fbb
VS
92192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9220
9221 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
9222 name for checksum and fix allocation algorithm.
9223
1f313b94
VS
92242011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 * include/grub/types.h (grub_properly_aligned_t): New type.
9227 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
9228 (grub_get_unaligned16): Add explicit casts.
9229 (grub_get_unaligned32): Likewise.
9230 (grub_get_unaligned64): Likewise.
9231 (grub_set_unaligned16): New function.
9232 (grub_set_unaligned32): Likewise.
9233
47ae27ec
VS
92342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9235
9236 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9237
78c2cd1c
VS
92382011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9239
9240 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
9241 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
9242 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
9243
53072f9b
VS
92442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9245
9246 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
9247 conditionals.
9248
055dc239
VS
92492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9250
9251 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
9252 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
9253
496bd074
VS
92542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9255
9256 Unify and improve RAID and crypto xor.
9257
9258 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
9259 changed to grub_crypto_xor
9260 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
9261 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
9262 Use bigger types when possible.
9263
ef6e4335
VS
92642011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9265
9266 * grub-core/disk/raid.c (scan_devices): Fix condition.
9267
5d048bf2
VS
92682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9269
9270 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
9271 Make name a const ptr.
9272
ee533335
VS
92732011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9274
9275 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
9276 first argument a const pointer.
9277 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
9278 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
9279 proto.
9280 (grub_children_iterate): Likewise.
9281 (grub_machine_mmap_iterate): Remove redundant declaration.
9282
cc8f3668
VS
92832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
9286 (grub_cmd_acpi) [!x86]: Disable EBDA.
9287
c5fc563a
VS
92882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 Enable UTF8 in gnulib regexp.
9291
9292 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
9293 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
9294 (isupper): Use grub_isupper.
9295 (isascii): New inline function.
9296 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
9297 * grub-core/lib/posix_wrap/wctype.h: Likewise.
9298 * grub-core/normal/charset.c (grub_utf8_process): New function.
9299 (grub_utf8_to_utf16): Use grub_utf8_process.
9300 (grub_encode_utf8_character): New function.
9301 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
9302 * include/grub/charset.h (grub_utf8_process): New declaration.
9303 (grub_encode_utf8_character): Likewise.
9304 * include/grub/misc.h (grub_islower): New inline function.
9305 (grub_isupper): Likewise.
9306 (grub_strchrsub): Moved down to fix the definitions.
9307
0af2346f
VS
93082011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9309
9310 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
9311 specification.
9312
74dbd244
VS
93132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 * include/grub/loader.h (grub_loader_register_preboot_hook):
9316 Use struct preboot * and not void * for handle. All users updated.
9317 (grub_loader_unregister_preboot_hook): Likewise.
9318
1bc8f60d
VS
93192011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
9320
9321 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
9322 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
9323 UTF-16-BE. All users updated.
9324 (grub_hfsplus_cmp_catkey): Fix unicode handling.
9325 (grub_hfsplus_iterate_dir): Likewise.
9326 (grub_hfsplus_label): Likewise.
9327
48d6e456
VS
93282011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
9331
bf3a3857
VS
93322011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 Add missing const qualifiers.
9335
9336 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
9337 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
9338 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
9339 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
9340 (grub_lvm_check_flag): Likewise.
9341 * grub-core/efiemu/i386/coredetect.c
9342 (grub_efiemu_get_default_core_name): Likewise
9343 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9344 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
9345 * grub-core/fs/ntfs.c (fixup): Likewise.
9346 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
9347 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
9348 (fzap_lookup): Likewise.
9349 (zap_lookup): Likewise.
9350 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
9351 * grub-core/lib/legacy_parse.c (check_option): Likewise.
9352 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
9353 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
9354 (grub_freebsd_add_meta_module): Likewise.
9355 (grub_cmd_freebsd_module): Likewise.
9356 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
9357 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
9358 (grub_xnu_writetree_get_size): Likewise.
9359 (grub_xnu_writetree_toheap_real): Likewise.
9360 (grub_xnu_find_key): Likewise.
9361 (grub_xnu_create_key): Likewise.
9362 (grub_xnu_create_value): Likewise.
9363 (grub_xnu_register_memory): Likewise.
9364 (grub_xnu_check_os_bundle_required): Likewise.
9365 (grub_xnu_scan_dir_for_kexts): Likewise.
9366 (grub_xnu_load_kext_from_dir): Likewise.
9367 * grub-core/normal/color.c (color_list): Likewise.
9368 * grub-core/normal/completion.c (current_word): Likewise.
9369 * grub-core/normal/menu_entry.c (insert_string): Likewise.
9370 * grub-core/term/serial.c (grub_serial_find): Likewise.
9371 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
9372 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
9373 Likewise.
9374 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
9375 (grub_freebsd_add_meta_module): Likewise.
9376 * include/grub/lib/arg.h (grub_arg_option): Likewise.
9377 * include/grub/net.h (grub_net_card_driver): Likewise.
9378 (grub_net_card): Likewise.
9379 (grub_net_app_protocol): Likewise.
9380 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
9381 * include/grub/serial.h (grub_serial_find): Likewise.
9382 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
9383 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
9384 (grub_xnu_create_value): Likewise.
9385 (grub_xnu_find_key): Likewise.
9386 (grub_xnu_scan_dir_for_kexts): Likewise.
9387 (grub_xnu_load_kext_from_dir): Likewise.
9388
9389 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
9390 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
9391 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
9392 Moved from here ...
9393 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
9394
112b4837
CW
93952011-11-28 Colin Watson <cjwatson@ubuntu.com>
9396
9397 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
9398
49e891ac
VS
93992011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
9400
9401 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
9402 (read_device): Fix size calculation.
9403
fd258e5c
RM
94042011-11-25 Robert Millan <rmh@gnu.org>
9405
9406 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
9407 (find_root_device_from_libzfs): Add zpool output parser to be used
9408 as fallback when libzfs isn't available.
9409
78845dc2
SG
94102011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
9411
9412 * po/Makefile.in.in: Add missing escape-continuation.
9413
adac5211
VS
94142011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9415
9416 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9417
10b64f1c
VS
94182011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9421
bb416954
VS
94222011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9423
9424 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9425
bdfe9eeb
VS
94262011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9429
581ffa8a
VS
94302011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 * grub-core/lib/adler32.c: Add missing license specification.
9433 * grub-core/lib/crc64.c: Likewise.
9434 * grub-core/loader/i386/pc/plan9.c: Likewise.
9435 * grub-core/partmap/plan.c: Likewise.
9436
2536cf64
LK
94372011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9438
9439 Add facility to debug GRUB with gdb under qemu.
9440
9441 * grub-core/gdb_grub.in: New file.
9442 * grub-core/gmodule.pl.in: Likewise.
9443 * grub-core/Makefile.core.def (gmodule.pl): New script.
9444 (gdb_grub): Likewise.
9445
bc108a4a
VS
94462011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9447
9448 * util/grub-mount.c (argp_parser): Accept relative pathes.
9449 * util/grub-fstest.c (argp_parser): Likewise.
9450
111c1778
VS
94512011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 Plan9 support.
9454
9455 * Makefile.util.def (libgrubmods): Add
9456 grub-core/partmap/plan.c.
9457 * docs/grub.texi: Notice Plan9 support.
9458 * grub-core/Makefile.core.def (plan9): New module.
9459 (part_plan): Likewise.
9460 * grub-core/loader/i386/pc/plan9.c: New file.
9461 * grub-core/partmap/plan.c: Likewise.
9462 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9463 define.
9464 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9465 * include/grub/mm.h (grub_extend_alloc): New inline function.
9466
c30be3b6
VS
94672011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9468
9469 Make Reed-Solomon faster by using power of generator representation of
9470 GF(256)*.
9471
9472 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9473 (gf_double_t): Likewise.
9474 (gf_invert): Removed.
9475 (gf_powx): New array.
9476 (gf_powx_inv): Likewise.
9477 (scratch): Move higher.
9478 (gf_reduce): Removed.
9479 (gf_mul): Use powx.
9480 (gf_invert): Likewise.
9481 (init_inverts): Replaced with ...
9482 (init_powx): ...this. All users updated.
9483 (pol_evaluate): Replace multiplications with additions.
9484 (rs_encode): Likewise.
9485 (gauss_eliminate): Call gf_invert.
9486 (grub_reed_solomon_add_redundancy): Call init_powx.
9487 (grub_reed_solomon_recover): Call init_powx unconditionally.
9488
fa5aeffc
VS
94892011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9490
9491 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9492
a346b81c
VS
94932011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9494
9495 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9496 disk->partiton for safety.
9497
d89ee414
VS
94982011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9499
9500 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9501 Fix a memory leak.
9502 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9503
91ee7b6d
VS
95042011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9505
9506 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9507
91e5a33d
VS
95082011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9511
9edd7be2
VS
95122011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9513
9514 Fix spaces handling in proc/self/mountinfo.
9515
9516 * util/getroot.c (unescape): New function.
9517 (grub_find_root_device_from_mountinfo): Use unescape.
9518
ba102053
VS
95192011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9520
9521 Support ZFS embedding.
9522
9523 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9524 (grub_zfs_fs): Register grub_zfs_embed.
9525
aa94b870
VS
95262011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 Fix MIPS compilation.
9529
9530 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9531 * include/grub/offsets.h: Rename decompressor fields from
9532 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9533 * util/grub-mkimage.c (image_targets): Use new names.
9534
5fbdac14
VS
95352011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9536
9537 Defer multiboot device parsing until we're in compressed part.
9538
9539 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9540 bsd_part. setdevice has fallen into disuse.
9541 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9542 (bsd_part): Likewise.
9543 (boot_dev): New variable.
9544 (multiboot_trampoline): Don't parse multiboot device.
9545 Pass multiboot device in %edx.
9546 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9547 grub_boot_device.
9548 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9549 Likewise.
9550 * grub-core/kern/i386/pc/startup.S: Save edx.
9551 (grub_boot_drive): Removed.
9552 (grub_install_dos_part): Likewise.
9553 (grub_install_bsd_part): Likewise.
9554 (grub_boot_device): New variable.
9555 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9556 (grub_install_bsd_part): Likewise.
9557 (grub_boot_drive): Likewise.
9558 (grub_boot_device): New variable.
9559 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9560 Removed.
9561 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9562 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9563 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9564 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9565 * util/grub-install.in: Remove redundant condition.
9566
691cbb58
VS
95672011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9568
9569 Fix bug introduced by previous commit.
9570
9571 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9572
60240b8b
VS
95732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9574
9575 Use decompressors framework on i386-pc. It increases core size
9576 by 46 bytes but improves compatibility and maintainability.
9577
9578 * grub-core/Makefile.core.def (lzma_decompress): New image.
9579 (kernel): Add i386_pc_ldflags.
9580 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9581 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9582 to real_to_prot, prot_to_real and device info.
9583 * include/grub/offsets.h: Renamed decompressor offsets.
9584 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9585 (image_target_desc): Remove raw_size and rename decompressor fields.
9586 (compress_kernel): Handle lzma.
9587 (generate_image): Handle decompressors on i386-pc.
9588
e9d3421c
VS
95892011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9590
9591 * configure.ac: Add -fno-asynchronous-unwind-tables.
9592
2b23074a
VS
95932011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9594
9595 Move assembly code to C by using intwrap. It increases core size
9596 by 88 bytes but improves compatibility and maintainability.
9597
9598 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9599 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9600 ... here. Translated to C.
9601 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9602 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9603 ... here. Translated to C.
9604 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9605 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9606 ... here. Translated to C.
9607 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9608 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9609 ... here. Translated to C.
9610 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9611 * grub-core/term/i386/pc/console.c (grub_console_cls):
9612 ... here. Translated to C.
9613 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9614 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9615 ... here. Translated to C.
9616 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9617 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9618 Translated to C.
9619 * grub-core/term/i386/pc/console.c (int10_9): New function.
9620 (grub_console_putchar): Likewise.
9621 * include/grub/i386/pc/console.h: Removed the not anymore shared
9622 functions.
9623
678f4b67
VS
96242011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 Move grub_chainloader_real_boot out of the kernel.
9627
9628 * grub-core/Makefile.am: Remove machine/loader.h.
9629 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9630 Removed.
9631 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9632 variable.
9633 (grub_relocator16_keep_a20_enabled): Likewise.
9634 (grub_relocator16_boot): Fill new variables.
9635 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9636 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9637 relocator.
9638 (grub_chainloader_unload): Likewise.
9639 (grub_chainloader_cmd): Likewise.
9640 * include/grub/i386/pc/loader.h: Removed.
9641 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9642 and esi. All initialisers updated.
9643
4626edf6
VS
96442011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
96452011-11-12 Colin Watson <cjwatson@ubuntu.com>
9646
9647 * Makefile.util.def (grub-mount): New util.
9648 * .bzrignore: Add grub-mount.
9649 * configure.ac: Check for fuse and enable grub-mount if available.
9650 * docs/man/grub-mount.h2m: New file.
9651 * util/grub-mount.c: Likewise.
9652
10f0117b
VS
96532011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 * grub-core/commands/efi/fixvideo.c: Gettextize.
9656 * grub-core/commands/hashsum.c: Likewise.
9657 * grub-core/commands/i386/cmostest.c: Likewise.
9658 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9659 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9660 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9661 * grub-core/commands/lsmmap.c: Likewise.
9662 * grub-core/commands/menuentry.c: Likewise.
9663 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9664 * grub-core/commands/setpci.c: Likewise.
9665 * grub-core/loader/i386/bsd.c: Likewise.
9666 * grub-core/loader/i386/linux.c: Likewise.
9667 * util/getroot.c: Likewise.
9668 * util/grub-editenv.c: Likewise.
9669 * util/grub-fstest.c: Likewise.
9670 * util/grub-mkfont.c: Likewise.
9671 * util/grub-mkimage.c: Likewise.
9672 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9673 * util/grub-pe2elf.c: Likewise.
9674 * util/grub-probe.c: Likewise.
9675 * util/grub-setup.c: Likewise.
9676 * util/ieee1275/ofpath.c: Likewise.
9677 * util/misc.c: Likewise.
9678 * util/raid.c: Likewise.
9679
566f779b
RM
96802011-11-11 Robert Millan <rmh@gnu.org>
9681
9682 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9683 __attribute__((unused)) from `os_dev', which *is* being used.
9684
b50787de
VS
96852011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9688 forgotten define.
9689 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9690 GRUB_IA64_DL_GOT_ALIGN.
9691 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9692 GRUB_IA64_DL_TRAMP_ALIGN.
9693
119d11c8
VS
96942011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9695
9696 Replace grub_fatal with normal errors in i386 linux loader.
9697
9698 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9699 (allocate_pages): Check find_efi_mmap_size return value.
9700 (grub_e820_add_region): Return error.
9701 (grub_linux_boot): Check mmap return value.
9702
6e0632e2
VS
97032011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 * grub-core/commands/acpihalt.c: Gettextized.
9706 * grub-core/commands/cacheinfo.c: Likewise.
9707 * grub-core/commands/cmp.c: Likewise.
9708 * grub-core/commands/efi/loadbios.c: Likewise.
9709 * grub-core/commands/gptsync.c: Likewise.
9710 * grub-core/commands/ieee1275/suspend.c: Likewise.
9711 * grub-core/commands/legacycfg.c: Likewise.
9712 * grub-core/commands/memrw.c: Likewise.
9713 * grub-core/commands/minicmd.c: Likewise.
9714 * grub-core/commands/parttool.c: Likewise.
9715 * grub-core/commands/time.c: Likewise.
9716 * grub-core/commands/videoinfo.c: Likewise.
9717 * grub-core/disk/geli.c: Likewise.
9718 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9719 * grub-core/disk/luks.c: Likewise.
9720 * grub-core/disk/lvm.c: Likewise.
9721 * grub-core/font/font_cmd.c: Likewise.
9722 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9723 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9724 * grub-core/gfxmenu/view.c: Likewise.
9725 * grub-core/kern/emu/hostdisk.c: Likewise.
9726 * grub-core/kern/emu/main.c: Likewise.
9727 * grub-core/kern/emu/misc.c: Likewise.
9728 * grub-core/kern/emu/mm.c: Likewise.
9729 * grub-core/kern/mips/arc/init.c: Likewise.
9730 * grub-core/kern/mips/loongson/init.c: Likewise.
9731 * grub-core/kern/partition.c: Likewise.
9732 * grub-core/lib/i386/halt.c: Likewise.
9733 * grub-core/lib/mips/arc/reboot.c: Likewise.
9734 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9735 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9736 * grub-core/loader/i386/xnu.c: Likewise.
9737 * grub-core/loader/multiboot.c: Likewise.
9738 * grub-core/net/bootp.c: Likewise.
9739 * grub-core/net/net.c: Likewise.
9740 * grub-core/normal/term.c: Likewise.
9741 * grub-core/partmap/bsdlabel.c: Likewise.
9742 * grub-core/parttool/msdospart.c: Likewise.
9743 * grub-core/term/gfxterm.c: Likewise.
9744 * grub-core/term/terminfo.c: Likewise.
9745 * grub-core/video/i386/pc/vbe.c: Likewise.
9746 * util/grub-menulst2cfg.c: Likewise.
9747 * util/grub-mkdevicemap.c: Likewise.
9748 * util/grub-mklayout.c: Likewise.
9749 * util/grub-mkrelpath.c: Likewise.
9750 * util/grub-script-check.c: Likewise.
9751 * util/ieee1275/grub-ofpathname.c: Likewise.
9752 * util/resolve.c: Likewise.
9753
073aa7a9
VS
97542011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9755
9756 Support %1$d syntax.
9757
9758 * tests/printf_unit_test.c: New file.
9759 * Makefile.util.def (printf_test): New test.
9760 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9761
c76b5417
VS
97622011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9763
9764 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9765 fix.
9766
df067ad1
VS
97672011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9770 dprintf.
9771 * grub-core/font/font.c (grub_font_load): Likewise.
9772
5b289bc5
VS
97732011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9774
9775 * util/grub-macho2img.c: Add comment concerning gettext.
9776 * grub-core/lib/legacy_parse.c: Likewise.
9777
c1860f87
VS
97782011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9779
9780 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9781 (grub_xvasprintf): Likewise.
9782
d35d0d37
VS
97832011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9784
9785 Add const keyword to grub_env_get and gettextize week days.
9786
9787 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9788 (grub_read_hook_datetime): Return const char *.
9789 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9790 updated.
9791 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9792 Mark for gettext.
9793 (grub_get_weekday_name): Return const char *. Call gettext.
9794 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9795 char * and len as the argument. All users updated.
9796 (grub_script_argv_split_append): Receive const char *.
9797 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9798 * include/grub/env.h (grub_env_get): Likewise.
9799 (grub_env_read_hook_t): Return const char *.
9800 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9801 (grub_script_argv_split_append): Likewise.
9802
9aed8a71
VS
98032011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9806
067fdf00
VS
98072011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9810 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9811
a8bd9d39
VS
98122011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9813
9814 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9815 Fix prototype.
9816
f7ce5baf
VS
98172011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9818
9819 Fix mips compilation.
9820
9821 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9822 normal decoder.
9823 (hashes): Use in embed decoder as well (for sizes).
9824 (dec_stream_header): Fix embed decompressor logic.
9825 (dec_stream_footer): Likewise.
9826
9bb182f3
VS
98272011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9828
9829 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9830 an error and not a fatal on unrecognised relocation types.
9831
63a9e6f6
VS
98322011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9835 Issue error rather than printf on unknown arguments.
9836
4c458569
VS
98372011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9838
9839 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9840 Make buf a const.
9841
e2d22baf
VS
98422011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9845 Fix module name.
9846
53dc8590
VS
98472011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9848
9849 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9850 leftover debug printf.
9851
6c189294
VS
98522011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9853
9854 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9855
f7688369
VS
98562011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9859 A stylistic fix.
9860
11a775a3
VS
98612011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9862
9863 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9864
33f784e8
SL
98652011-11-10 Shea Levy <slevy@tieronedesign.com>
9866
9867 Allow all modules to perform serial IO
9868
9869 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9870 * include/grub/serial.h (grub_serial_port_configure): New inline
9871 function.
9872 (grub_serial_port_fetch): Likewise.
9873 (grub_serial_port_put): Likewise.
9874 (grub_serial_port_fini): Likewise.
9875 (grub_serial_find): New proto.
9876
f6276525
VS
98772011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9878
9879 Put symlink at the end of the node and fix a potential
9880 memory corruption.
9881
9882 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9883 Make symlink into an array.
9884 (set_rockridge): Set have_symlink and alloc_dirents.
9885 (grub_iso9660_read_symlink): Use new layout.
9886 (grub_iso9660_iterate_dir): Fix memory corruption.
9887 Use new layout.
9888 (grub_iso9660_dir): Set have_symlink.
9889 (grub_iso9660_open): Likewise.
9890
c3591189
VS
98912011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9892
9893 Remove local keyword.
9894
9895 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9896 (version_test_gt): Likewise.
9897 (version_find_latest): Likewise.
9898 (gettext_printf): Likewise.
9899 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9900
cb544caa
VS
99012011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9904
45bd824d
VS
99052011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9906
9907 Fix ZFS memory and resource leaks.
9908
9909 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9910 All users updated.
9911 Free type on exit.
9912 (fill_vdev_info): New parameter inserted. All users updated.
9913 (check_pool_label): Likewise.
9914 (scan_disk): Likewise.
9915 (scan_devices): Close non-inserted disks.
9916 (fzap_iterate): Free l.
9917 (unmount_device): Free children descripto memory.
9918
ad9a2f44
VS
99192011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9920
9921 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9922 argument (access out of bounds).
9923
6b68db81
VS
99242011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9925
9926 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9927 >= 6 drives.
9928
28840fda
VS
99292011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9932 Fix declaration.
9933
8a5a3a5b
VS
99342011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 Fix several memory leaks.
9937
9938 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9939 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9940 (grub_cpio_dir): Likewise.
9941 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9942 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9943 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9944 (grub_romfs_label): Likewise.
9945 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9946 (squash_unmount): New function.
9947 (grub_squash_dir): Fix memory leak.
9948 (grub_squash_open): Likewise.
9949 (grub_squash_read): Likewise.
9950 (grub_squash_mtime): Likewise.
9951 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9952 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9953 * util/grub-fstest.c (fstest): Likewise.
9954
57b01250
VS
99552011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9958 avoid accessing beyond the array.
9959
19e81ba7
VS
99602011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9961
9962 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9963
52b656c0
VS
99642011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 Several AFFS fixes.
9967
9968 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9969 (GRUB_AFFS_FLAG_FFS): Removed.
9970 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9971 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9972 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9973 (grub_fshelp_node): Make block 32-bit.
9974 Add block_cache and last_block_cache.
9975 (grub_affs_read_block): Fill and use block cache.
9976 (grub_affs_read_file): Removed.
9977 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9978 boot block.
9979 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9980 safety.
9981 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9982 space.
9983 (grub_affs_close): Free block cache.
9984 (grub_affs_read): Use grub_fshelp_read_file directly.
9985
438a746a
VS
99862011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9987
9988 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9989 with no error set.
9990
49a45021
VS
99912011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9992
9993 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9994 used variable.
9995 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9996 Likewise.
9997
3ae17eb8
VS
99982011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
10001
10002 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
10003 byteswap when needed.
10004
27610c38
VS
100052011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10006
10007 Fix FreeBSD compilation.
10008
10009 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
10010 to avoid circular dependency.
10011 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
10012 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
10013 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
10014
4a19b601
VS
100152011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10016
10017 Fix ZFS crypto error types.
10018
10019 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
10020 (grub_gcm_decrypt): Likewise.
10021 (grub_zfs_load_key_real): Fix error code type. Handle possible error
10022 from PBKDF2.
10023
958ee221
VS
100242011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10025
10026 Illumos support.
10027
10028 * Makefile.util.def (10_illumos): New script.
10029 * configure.ac: Set COND_HOST_ILLUMOS.
10030 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
10031 Support Illumos calls.
10032 (find_partition_start) [__sun__]: Likewise.
10033 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
10034 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
10035 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
10036 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
10037 device.
10038 * util/grub-probe.c (probe) [__sun__]: Do character check.
10039 * util/grub.d/10_illumos.in: New file.
10040
cac14fb6
VS
100412011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10042
10043 Support escaped commas in hostdisk.
10044
10045 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
10046 (find_grub_drive): Use unescape_cmp.
10047 (make_device_name): Escape commas.
10048
78e08dc3
VS
100492011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10050
10051 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
10052
9f421dd1
VS
100532011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10054
10055 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
10056 variable.
10057
ed64e9e2
VS
100582011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10059
10060 Support trampoline jumps on powerpc.
10061
10062 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
10063 __ia64__ path.
10064 (grub_dl_load_segments): Set mod->sz.
10065 (grub_dl_flush_cache): Flush whole space occupied by module, not just
10066 segments.
10067 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
10068 (jump): Likewise.
10069 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
10070 function.
10071 (trampoline): New struct.
10072 (trampoline_template): New const.
10073 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
10074 * include/grub/dl.h (grub_dl): Add sz element.
10075 [__powerpc__]: Follow __ia64__.
10076 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
10077 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
10078 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
10079 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
10080
3084ede4
VS
100812011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 ZFS crypto support.
10084
10085 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
10086 * grub-core/Makefile.core.def (zfscrypt): New module.
10087 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
10088 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
10089 it. All users updated.
10090 (grub_zfs_decrypt): New var.
10091 (grub_zfs_load_key): Likewise.
10092 (zio_checksum_functions): Add SHA256+MAC.
10093 (zio_checksum_verify): Handle incomplete comparison due to MAC.
10094 (zio_read): Handle encrypted blocks.
10095 (zap_verify): Remove incorrect check.
10096 (fzap_iterate): Handle non-standard fzap.
10097 (zap_iterate): Likewise.
10098 (zap_iterate_u64): New function.
10099 (dnode_get_fullpath): Load keys.
10100 * grub-core/fs/zfs/zfscrypt.c: New file.
10101 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
10102 (grub_crypto_ecb_encrypt): Make input const.
10103 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
10104 (grub_crypto_ecb_encrypt): Make input const.
10105 (GRUB_CIPHER_AES): New macro.
10106 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
10107 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
10108 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
10109 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
10110 prefix. All users updated.
10111 (grub_zfs_add_key): New proto.
10112 (grub_zfs_decrypt): Likewise.
10113 (grub_zfs_load_key): Likewise.
10114 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
10115 * util/grub-fstest.c (options): Add -K option.
10116 (argp_parser): Likewise.
10117
b632b404
VS
101182011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10119
10120 Support zle compression on ZFS.
10121
10122 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
10123 (decomp_table): Add zle.
10124 * include/grub/zfs/zio.h (zio_compress): Add zle.
10125
c7ba4f69
VS
101262011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10127
10128 Support BtrFS embedding.
10129
10130 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
10131 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
10132 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
10133 * util/grub-setup.c (setup): Use fs embedding if available.
10134 Add additional sanity check.
10135
455377d9
VS
101362011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10137
10138 * util/grub-install.in: Fix condition for config_opt.
10139
c2fd16ca
VS
101402011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 Support third redundancy strip on raidz3.
10143
10144 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
10145 Return error on singularity. All users updated.
10146 (read_device): Don't stop on 3rd failure on raidz3.
10147
8622923b
VS
101482011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 Support case-insensitive ZFS subvolumes.
10151
10152 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
10153 All users updated.
10154 (zap_hash): Likewise.
10155 (name_cmp): New function.
10156 (zap_leaf_array_equal): New parameter case_insensitive.
10157 All users updated.
10158 (zap_leaf_lookup): Likewise.
10159 (fzap_lookup): Likewise.
10160 (zap_lookup): Likewise.
10161 (dnode_get_path): New parameter case_insensitive. Retrieve case
10162 sensitiviness of a volume. All users updated.
10163 (dnode_get_fullpath): New parameter case_insensitive.
10164 All users updated.
10165 (grub_zfs_dir): Set info.case_insensitiveness.
10166
95f2e860
VS
101672011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10168
10169 Support second redundancy strip on raidz(2,3).
10170
10171 * grub-core/fs/zfs/zfs.c (powx): New array.
10172 (powx_inv): Likewise.
10173 (poly): New const.
10174 (xor_out): New function.
10175 (gf_mul): Likewise.
10176 (recovery): Likewise.
10177 (read_device): Use second redundancy strip.
10178
11ee4389
VS
101792011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10180
10181 Use a power of generator representation of GF(256) multiplication group
10182 to save space time and complexity.
10183
10184 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
10185 (raid6_table2): Likewise.
10186 (powx): New array.
10187 (powx_inv): Likewise.
10188 (poly): New const.
10189 (grub_raid_block_mul): Replace with ...
10190 (grub_raid_block_mulx): ...this.
10191 (grub_raid6_init_table): Rewritten.
10192 (grub_raid6_recover): Use power of generator representation.
10193
09e2763f
VS
101942011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
10197 for the right device.
10198
8bec9a28
VS
101992011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
10202 expected by grub-mkimage and it's more clear since there is no implicit
10203 padding.
10204
dbd3a32e
VS
102052011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10206
10207 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
10208 disk.
10209 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10210
182c872a
PMH
102112011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
10212
10213 * util/grub-mkrescue.in: Fix handling xorriso option.
10214
1e51cabd
VS
102152011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10216
10217 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
10218 NULL.
10219
9cc3581d 102202011-11-03 crocket <crockabiscuit@gmail.com>
10221
10222 * util/grub.d/10_linux.in: Add Slackware initrd naming.
10223
158dc1ea
VS
102242011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10225
10226 XZ CRC64 and SHA256 support.
10227
10228 * Makefile.util.def (libgrubmods): Add crc64.c.
10229 * grub-core/Makefile.core.def (crc64): New module.
10230 * grub-core/lib/crc64.c: New file.
10231 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
10232 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
10233 Fix the type.
10234 (MAX_HASH_SIZE): New define.
10235 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
10236 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
10237 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10238 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10239 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
10240 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
10241 Handle non-crc32 hashes.
10242 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
10243 (dec_stream_header): Handle non-crc32 hashes.
10244 (dec_stream_footer): Likewise.
10245 (dec_block_header): Likewise.
10246 (dec_main): Likewise.
10247 (xz_dec_init): Likewise.
10248 (xz_dec_reset): Likewise.
10249 (xz_dec_end): Likewise.
10250 * util/import_gcry.py: Add CRC64 line.
10251
9d9b3d2f
VS
102522011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
10255 as well.
10256
7d0ac931
VS
102572011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10258
10259 Make reiserfs label retrieval similar to other *_label functions.
10260
10261 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
10262 (REISERFS_MAX_LABEL_LENGTH): Removed.
10263 (REISERFS_LABEL_OFFSET): Likewise.
10264 (grub_reiserfs_label): Rewritten.
10265
102662011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10267
10268 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
10269 field.
10270
cf5ba824
VS
102712011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10272
10273 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
10274
17744004
VS
102752011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
10278 drive failure on both raidz and raidz2.
10279
aca5aefc
VS
102802011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
10281
10282 Fix RAIDZ(2) for >= 5 devices.
10283
10284 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
10285 asize argument. All users updated.
10286
ce8ca56e
VS
102872011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10288
10289 Fix RAIDZ(2).
10290
10291 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
10292 (fill_vdev_info_real): Set ashift.
10293 (read_device): Rewrite RAIDZ part based on reverse engineering.
10294
7c01e783
VS
102952011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10296
10297 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
10298 don't report potentially unavialiable fields in debug output.
10299 (find_path): Fix double-free and memory leak.
10300
ce109e84
VS
103012011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 Read label on UFS1.
10304
10305 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
10306 (grub_ufs_fs): Always set .label.
10307
87661123
VS
103082011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10309
10310 Use shifts in UFS.
10311
10312 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
10313 (grub_ufs_data): New field log2_blksz.
10314 (grub_ufs_read_file): Use shifts.
10315 (grub_ufs_mount): Check block size and logarithm it.
10316
46bc1dc2
VS
103172011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10318
10319 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
10320 long symlinks.
10321
19ee2987
VS
103222011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10323
10324 Handle symlinks and long names on tar and cpio.
10325
10326 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
10327 (ATTR_FILE): Likewise.
10328 (ATTR_DIR): Likewise.
10329 (ATTR_LNK): Likewise.
10330 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
10331 (grub_cpio_find_file): Fill mode, handle linkname field as well as
10332 L and K entries.
10333 (grub_cpio_mount): Zero-fill data.
10334 (handle_symlink): New function.
46bc1dc2
VS
10335 (grub_cpio_dir): Handle symlinks.
10336 (grub_cpio_open): Likewise.
10337 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 10338
c83a08d8
VS
103392011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 Fix iso9660 filename limitations and fix memory leaks.
10342
10343 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
10344 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
10345
45cdd3ea
VS
103462011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 Fix JFS file name length limitations.
10349
10350 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
10351 (grub_jfs_diropen): Fix maximum filename length.
10352 (grub_jfs_getent): Fix filename length.
10353 (grub_jfs_lookup_symlink): Fix size checks.
10354
94ef05c2
VS
103552011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10356
10357 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
10358 string.
10359
785ab8c7
VS
103602011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10361
eb0b6b45
VS
10362 Leverage BFS implementation to read AFS.
10363
10364 * Makefile.util.def (libgrubmods): Add afs.c.
10365 * grub-core/Makefile.core.def (afs): New module
10366 * grub-core/fs/afs.c: New file.
10367 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
10368
103692011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10370
10371 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 10372
c4a1628f
VS
103732011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 * grub-core/fs/bfs.c: Run indent.
10376
5825b379
VS
103772011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10378
10379 BFS implementation based on the specification.
10380
10381 * grub-core/fs/bfs.c: New file.
10382 * Makefile.util.def (libgrubmods): Add bfs.c.
10383 * grub-core/Makefile.core.def (bfs): New module.
10384
42b2a706
VS
103852011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * util/grub-fstest.c (cmd_cp): Clarify error message.
10388 (cmd_cmp): Likewise.
10389
61b99bfc
YB
103902011-10-30 Yves Blusseau <blusseau@zetam.org>
10391
10392 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
10393 and befs_be.
10394
faba3d16
VS
103952011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
10396
10397 Remove afs and befs because of copyright problem.
10398
10399 * grub-core/fs/afs.c: Removed.
10400 * grub-core/fs/afs_be.c: Removed.
10401 * grub-core/fs/befs.c: Removed.
10402 * grub-core/fs/befs_be.c: Removed.
10403 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
10404 * grub-core/Makefile.core.def (afs): Removed.
10405 (afs_be): Likewise.
10406 (befs): Likewise.
10407 (befs_be): Likewise.
10408
c39224b0
VS
104092011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10410
10411 Prefer rockridge over Joliet.
10412
10413 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10414 to ...
10415 (set_rockridge): ... here.
10416 (grub_iso9660_mount): Check rockridge on the primary label when
10417 discovering. Ignore Joliet if Rockridge is present.
10418
e551115a
VS
104192011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10420
10421 Use shifts in nilfs2.
10422
10423 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10424 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10425 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10426 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10427 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10428 (grub_nilfs2_entries_per_block): Replaced with ...
10429 (grub_nilfs2_log_entries_per_block_log): ... this.
10430 (grub_nilfs2_blocks_per_group): Replaced with ...
10431 (grub_nilfs2_blocks_per_group_log): ... this.
10432 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10433 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10434 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10435 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10436 (grub_nilfs2_palloc_entry_offset): Replaced ...
10437 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10438 (grub_nilfs2_dat_translate): Use shifts.
10439 (grub_nilfs2_read_inode): Likewise.
10440 (GRUB_MOD_INIT): Ensure that logs are correct.
10441
564dd58c
VS
104422011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 Use shifts in minix filesystem.
10445
10446 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10447 (GRUB_MINIX_ZONE2SECT): Likewise.
10448 (grub_minix_data): Replace block_size with log_block_size.
10449 (grub_minix_read_file): Use shifts.
10450 (grub_minix_mount): Check block size and take a logarithm.
10451
ed9ba06d
VS
104522011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10453
10454 Use shifts in squash4.
10455
10456 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10457 (squash_mount): Check block size and take logarithm.
10458 (direct_read): Use shifts.
10459
ad03fe76
VS
104602011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10461
10462 Correct befs block counting logic.
10463
10464 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10465 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10466 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10467 (grub_afs_read_inode): Use block_shift.
10468 (RANGE_SHIFT): New definition.
10469 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10470 unexpected conditions, use shifts and appropriate types.
10471 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10472
6563f63d
VS
104732011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10474
10475 * grub-core/disk/raid.c (scan_devices): Check partition.
10476 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10477
5b1ae25f
VS
104782011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 Support BFS (befs) UUID.
10481
10482 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10483 (grub_afs_small_data_element_header): New struct.
10484 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10485 (grub_afs_read_attribute) [MODE_BFS]: New function.
10486 (grub_afs_iterate_dir): Allocate for complete inode.
10487 (grub_afs_mount): Likewise.
10488 (grub_afs_uuid) [MODE_BFS]: New function.
10489 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10490
f8d82408
VS
104912011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10492
10493 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10494 (zfs_unmount): Fix memory leak.
10495
5773fb64
VS
104962011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 Support NTFS reparse points.
10499
10500 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10501 (symlink_descriptor): New struct.
10502 (grub_ntfs_read_symlink): New function.
10503 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10504 (grub_ntfs_open): Likewise.
10505
91c3fdde
VS
105062011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10507
10508 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10509
3be82e10
VS
105102011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 fstest xnu_uuid subcommand.
10513
10514 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10515 grub-core/commands/xnu_uuid.c.
10516 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10517 (fstest): Handle xnu_uuid.
10518 (options): Document xnu_uuid.
10519 (argp_parser): Parse xnu_uuid.
10520
8e32442e
VS
105212011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10522
10523 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10524 -l argument. Add newline at the end if printing.
10525 (GRUB_MOD_INIT): Document -l.
10526
52a05075
VS
105272011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10528
10529 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10530
1869edb5
VS
105312011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10532
10533 ZFS multi-device and version 33 support.
10534
10535 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10536 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10537 (grub_zfs_data): Add multidev-ice-related fields.
10538 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10539 (dva_get_offset): Make dva const.
10540 (zfs_fetch_nvlist): New function.
10541 (fill_vdev_info_real): Likewise.
10542 (fill_vdev_info): Likewise.
10543 (check_pool_label): Likewise.
10544 (scan_disk): Likewise.
10545 (scan_devices): Likewise.
10546 (read_device): Likewise.
10547 (read_dva): Likewise.
10548 (zio_read_gang): Use read_dva.
10549 (zio_read_data): Likewise.
10550 (zap_leaf_lookup): Add missing endian conversion.
10551 (zap_verify): Add missing endian conversion. All users updated.
10552 (fzap_lookup): Likewise.
10553 (fzap_iterate): Likewise.
10554 (dnode_get_path): Handle SA bonus.
10555 (nvlist_find_value): Make input const. All users updated.
10556 (unmount_device): New function.
10557 (zfs_unmount): Use unmount_device.
10558 (zfs_mount): Use scan_disk.
10559 (zfs_mtime): New function.
10560 (grub_zfs_open): Handle system attributes.
10561 (fill_fs_info): Likewise.
10562 (grub_zfs_dir): Likewise.
10563 (grub_zfs_fs): Add mtime.
10564 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10565 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10566 (SA_MTIME_OFFSET): Likewise.
10567 (SA_SYMLINK_OFFSET): Likewise.
10568 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10569 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10570 (fstest): Support zfsinfo.
10571 (argp_parser): Likewise.
10572
186b4028
VS
105732011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10574
10575 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10576 error.
10577
105782011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
10579
10580 ZFS fixes.
10581
10582 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10583 sharing the same block. Iterate over correct number of indices.
10584 (dnode_get_path): Handle symlinks correctly.
10585
c0584900
VS
105862011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10587
10588 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10589
67e2bd71
VS
105902011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10591
10592 Read label on HFS+.
10593
10594 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10595 (grub_hfsplus_btree_search): Fix types.
10596 (grub_hfsplus_label): Implement.
10597
e9cc6b7b
VS
105982011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10599
10600 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10601
19832ddb
VS
106022011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10603
10604 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10605
66b40850
VS
106062011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10607
10608 Fix symlink handling on iso9660.
10609
10610 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10611 All users updated.
10612 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10613 (grub_iso9660_read_symlink): Moved most of code ...
10614 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10615
db821363
VS
106162011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10619 Use union to avoid breaking strict-aliasing rules.
10620
e1211949
VS
106212011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 Support multi-extent iso files.
10624
10625 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10626 Add node.
10627 (grub_fshelp_node): Revamp. All users updated.
10628 (FLAG_*): New enum.
10629 (read_node): New function.
10630 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10631 All users updated.
10632 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10633 (get_node_size): New function.
10634 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10635 entries.
10636 Fix memory leak on . and ..
10637 (grub_iso9660_read): Use read_node.
10638 (grub_iso9660_close): Free node.
10639
d4888031
VS
106402011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10641
10642 Fix tar 4G limit and handle paths containing dot.
10643
10644 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10645 (canonicalize): New function.
10646 (grub_cpio_find_file): Use canonicalize. Store offs in
10647 grub_disk_addr_t.
10648 (grub_cpio_dir): Use grub_disk_addr_t.
10649 (grub_cpio_open): Likewise.
10650
9f12e664
VS
106512011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10652
10653 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10654
10655 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10656 unused flags.
10657 (grub_squash_inode): Add long_file and block_size.
10658 (grub_squash_cache_inode): New struct.
10659 (grub_squash_dirent): Make types into enum.
10660 (SQUASH_TYPE_LONG_REGULAR): New type.
10661 (grub_squash_frag_desc): Add field size.
10662 (SQUASH_BLOCK_FLAGS): New enum.
10663 (grub_squash_data): Use grub_squash_cache_inode.
10664 (grub_fshelp_node): Make ino_chunk 64-bit.
10665 (read_chunk): Minor argument change. All users updated.
10666 (squash_mount): Use correct le_to_cpu.
10667 (grub_squash_open): Handle LONG_REGULAR.
10668 (direct_read): New function.
10669 (grub_squash_read_data): Handle blocks correctly.
10670
9f326fba
VS
106712011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10672
10673 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10674
f4d9b64b
VS
106752011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10678
5bbd28b8
VS
106792011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10680
10681 Fix 2G limit on ZFS.
10682
10683 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10684 types.
10685 (uberblock_verify): Likewise.
10686 (dmu_read): Likewise.
10687 (grub_zfs_read): Likewise. Remove invalid cast.
10688
68c72069
VS
106892011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10690
10691 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10692 (grub_jfs_blkno): Fix incorrect shift.
10693 (grub_jfs_read_file): Use more appropriate types.
10694
6e536dc8
VS
106952011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10696
10697 Support triple indirect on minix2 and minix3.
10698
10699 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10700 Declare triple_indir_zone.
10701 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10702 indirect.
10703
e0864e7a
VS
107042011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10705
10706 Minix FS fixes.
10707
10708 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10709 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10710 Rename ctime to mtime. All users updated.
10711 (grub_minix_get_file_block): Fix types and double indirect computations.
10712
89481cab
VS
107132011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10714
10715 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10716 if no label is found.
10717 (grub_fat_iterate_dir): Fix file size type.
10718 (grub_fat_iterate_dir): Likewise.
10719
f646e143
VS
107202011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10721
10722 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10723 save some space.
10724 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10725 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10726
534d769e
VS
107272011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10728
10729 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10730
e084ba18
VS
107312011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10732
10733 * util/import_gcry.py: Accept space between # and include.
10734
3471ecdf
VS
107352011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10736
10737 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10738
124df5f6
VS
107392011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10740
10741 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10742
10743 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10744 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10745 yylex_strncpy.
10746 * grub-core/script/yylex.l: Add fine-grained #pragma.
10747
4defb8d5
VS
107482011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10749
10750 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10751 New inline function.
10752 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10753 Likewise.
10754 (memset) [GRUB_UTIL]: Likewise.
10755 (memcmp) [GRUB_UTIL]: Likewise.
10756
4e94ae65
VS
107572011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10758
10759 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10760 inline function rather than a define.
10761
18c575e5
VS
107622011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10763
10764 * util/grub-setup.c: Add missing include.
10765
f8bc22a8
VS
107662011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10767
10768 * util/ieee1275/grub-ofpathname.c: Add missing include.
10769
3ce69fc9
VS
107702011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10771
10772 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10773 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10774 Likewise.
10775
d1e293bb
VS
107762011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10777
10778 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10779 grub_memcmp usage.
10780
7a5c54a4
VS
107812011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10782
10783 * util/grub-install.in: Add datarootdir as per automake manual
10784 suggestion.
10785 * util/grub-mknetdir.in: Likewise.
10786
107872011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
10788
10789 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10790 suggestion.
10791 * util/grub.d/10_kfreebsd.in: Likewise.
10792 * util/grub.d/10_linux.in: Likewise.
10793 * util/grub.d/10_netbsd.in: Likewise.
10794 * util/grub.d/10_windows.in: Likewise.
10795 * util/grub.d/20_linux_xen.in: Likewise.
10796
766f7d08
VS
107972011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10798
10799 Remove redundant grub_kernel_image_size.
10800
10801 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10802 _edata and _start.
10803 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10804 the small code. It moves it only by few bytes but simplifies the code.
10805 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10806 _start.
10807 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10808 (grub_kernel_image_size): Removed.
10809 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10810 (grub_kernel_image_size): Removed.
10811 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10812 compiled with Apple toolchain.
10813 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10814 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10815 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10816 (grub_total_module_size): Likewise.
10817 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10818 Removed.
10819 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10820 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10821 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10822 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10823 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10824 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10825 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10826 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10827 Removed.
10828 (grub_total_module_size): Removed.
10829 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10830 (image_targets): Likewise.
10831 Set .compressed_size to no field on sparc.
10832 (generate_image): Remove kernel_image_size handling.
10833
fcf1d672
SJ
108342011-10-19 Szymon Janc <szymon@janc.net.pl>
10835
10836 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10837 NULL pointer dereference.
10838
de9c615e
VS
108392011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10840
10841 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10842 done with a dedicated section.
10843
10844 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10845 Ensure the correct position of boot_path.
10846 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10847 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10848 other fields.
10849 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10850 * include/grub/boot.h: Removed. All references removed.
10851 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10852 Removed.
10853 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10854
e55599dc
VS
108552011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10858 name.
10859
36dd20ad
VS
108602011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10863
f8f72eb8
VS
108642011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10865
10866 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10867 Don't add the bogus brackets.
10868
a374751b
VS
108692011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10870
10871 ExFAT support.
10872
10873 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10874 * grub-core/Makefile.core.def (exfat): New module.
10875 * grub-core/fs/exfat.c: New file.
10876 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10877 (GRUB_FAT_ATTR_*): Make into an enum.
10878 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10879 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10880 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10881 (GRUB_FAT_MAXFILE): Removed.
10882 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10883 (grub_current_fat_bpb_t): New type.
10884 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10885 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10886 (grub_fat_dir_node_t): New type.
10887 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10888 (fat_log2) [MODE_EXFAT]: Removed.
10889 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10890 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10891 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10892 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10893 (grub_fat_label) [MODE_EXFAT]: New function.
10894 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10895 reserved_first_sector to 0.
10896
544c2487
VS
108972011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10898
10899 Move grub_reboot out of the kernel.
10900
10901 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10902 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10903 * grub-core/lib/efi/reboot.c: ... here.
10904 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10905 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10906 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10907 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10908 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10909 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10910 * grub-core/lib/ieee1275/reboot.c: ... here.
10911 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10912 * grub-core/lib/mips/arc/reboot.c: ... here.
10913 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10914 * grub-core/lib/mips/loongson/reboot.c: ...here.
10915 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10916 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10917 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10918 * include/grub/i386/reboot.h: New file.
10919 * include/grub/mips/loongson/ec.h: Fix includes.
10920 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10921 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10922 * grub-core/lib/i386/reboot.c: New file.
10923
a97501d2
VS
109242011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10925
10926 Make grub_prefix into module to fix the arbitrary limit and save
10927 some space.
10928
10929 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10930 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10931 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10932 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10933 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10934 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10935 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10936 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10937 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10938 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10939 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10940 * include/grub/ia64/efi/kernel.h: Removed.
10941 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10942 (grub_prefix): Removed.
10943 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10944 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10945 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10946 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10947 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10948 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10949 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10950 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10951 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10952 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10953 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10954 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10955 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10956 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10957 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10958 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10959 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10960 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10961 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10962 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10963 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10964 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10965 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10966 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10967 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10968 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10969 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10970 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10971 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10972 from module.
10973 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10974 prefix_end.
10975 (image_targets): Likewise.
10976 (generate_image): Put prefix as a module.
10977
39705fad
VS
109782011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10979
10980 Replace grub_module_iterate with FOR_MODULES.
10981
10982 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10983 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10984 (grub_efi_modules_addr): ...this.
10985 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10986 (grub_efi_init): Set grub_modbase.
10987 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10988 (grub_modbase): New variable.
10989 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10990 (grub_modbase): New variable.
10991 (grub_machine_init): Set grub_modbase.
10992 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10993 (grub_modbase): New variable.
10994 (grub_machine_init): Set grub_modbase.
10995 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10996 (grub_modbase): New variable.
10997 (grub_machine_init): Set grub_modbase.
10998 * grub-core/kern/main.c (grub_module_iterate): Remove.
10999 (grub_modules_get_end): Use grub_modbase.
11000 (grub_load_modules): Use FOR_MODULES.
11001 (grub_load_config): Likewise.
11002 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
11003 (grub_modbase): New variable.
11004 (grub_machine_init): Set grub_modbase.
11005 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
11006 (grub_modbase): New variable.
11007 (grub_machine_init): Set grub_modbase.
11008 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
11009 Removed.
11010 (grub_modbase): New variable.
11011 (grub_machine_init): Set grub_modbase.
11012 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
11013 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
11014 (grub_module_iterate): Likewise.
11015 (grub_modbase): New variable declaration.
11016 (FOR_MODULES): New macro.
11017
2afb7f6c
VS
110182011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11019
11020 * configure.ac: Check for __ctzdi2 and __ctzsi2.
11021 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
11022
366e34fa
VS
110232011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11024
11025 Fix few obvious type discrepancies.
11026
11027 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
11028 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
11029 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
11030 variable.
11031 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
11032 and connected types.
11033 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
11034 offset.
11035 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
11036 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
11037 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
11038 and connected types.
11039
177b960e
VS
110402011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11041
11042 Fix python 3.x incompatibilities.
11043
11044 * gentpl.py: Put brackets around print strings.
11045 * util/import_gcry.py: Open explicitly as utf-8.
11046 Use in instead of has_key.
11047
3b619ae1
VS
110482011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11049
11050 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
11051 (GRUB_XFS_INO_AGBITS): Make into inline function.
11052 (GRUB_XFS_INO_INOINAG): Likewise.
11053 (GRUB_XFS_INO_AG): Likewise.
11054 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
11055 (GRUB_XFS_EXTENT_OFFSET): Likewise.
11056 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11057 (GRUB_XFS_EXTENT_SIZE): Likewise.
11058 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
11059 (GRUB_XFS_NEXT_DIRENT): Likewise.
11060 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
11061 (grub_xfs_read_file): Fix offset type.
11062
8bcebcb8
RM
110632011-10-15 Robert Millan <rmh@gnu.org>
11064
11065 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
11066
0017e5ef
RM
110672011-10-15 Robert Millan <rmh@gnu.org>
11068
11069 Fix build problem on FreeBSD and GNU/kFreeBSD.
11070
11071 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
11072
d8919552
VS
110732011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11074
11075 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
11076
11077 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
11078 types.
11079 (grub_hfsplus_btree_recoffset): Likewise.
11080 (grub_hfsplus_btree_recptr): Likewise.
11081 (grub_hfsplus_find_block): Likewise.
11082 (grub_hfsplus_btree_search): Likewise.
11083 (grub_hfsplus_read_block): Likewise.
11084 (grub_hfsplus_read_file): Likewise.
11085 (grub_hfsplus_mount): Likewise.
11086 (grub_hfsplus_btree_iterate_node): Likewise.
11087 (grub_hfsplus_btree_search): Likewise.
11088 (grub_hfsplus_iterate_dir): Likewise.
11089 (grub_hfsplus_read): A small code simplification.
11090
c81296b6
VS
110912011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11092
11093 * grub-core/kern/emu/hostdisk.c
11094 (convert_system_partition_to_system_disk): Don't assume that children
11095 of mapper nodes are mapper nodes.
11096
0eb8ffb1
VS
110972011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11098
11099 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
11100 * include/grub/misc.h (grub_isxdigit): New function.
11101 * grub-core/video/colors.c (my_isxdigit): Removed. All users
11102 switched to grub_isxdigit.
11103 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
11104 number starting with a letter.
11105
a98f4a08
RM
111062011-10-09 Robert Millan <rmh@gnu.org>
11107
11108 LVM support for FreeBSD and GNU/kFreeBSD.
11109
11110 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
11111 GNU/kFreeBSD.
11112 (LVM_DEV_MAPPER_STRING): Move from here ...
11113 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
11114 * util/getroot.c: Include `<grub/util/lvm.h>'.
11115 (grub_util_get_dev_abstraction): Enable
11116 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
11117 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
11118 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
11119 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
11120 support it.
11121 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
11122 GNU/kFreeBSD.
11123 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
11124 when LVM abstraction is required for ${GRUB_DEVICE}.
11125
050e8e90
SJ
111262011-10-06 Szymon Janc <szymon@janc.net.pl>
11127
11128 Add support for LZO compression in GRUB:
11129 - import of minilzo library,
11130 - LZO decompression for btrfs,
11131 - lzop files decompression.
11132
11133 * grub-core/io/lzopio.c: New file.
11134 * grub-core/lib/adler32.c: Likewise.
11135 * grub-core/lib/minilzo/lzoconf.h: Likewise.
11136 * grub-core/lib/minilzo/lzodefs.h: Likewise.
11137 * grub-core/lib/minilzo/minilzo.c: Likewise.
11138 * grub-core/lib/minilzo/minilzo.h: Likewise.
11139 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
11140 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
11141 grub-core/lib/minilzo/minilzo.c to common.
11142 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
11143 cflags in cppflags.
11144 * grub-core/Makefile.core.def (btrfs): Likewise.
11145 * grub-core/Makefile.core.def (lzopio): New module.
11146 (adler32): Likewise.
11147 * grub-core/fs/btrfs.c: Include minilzo.h.
11148 (GRUB_BTRFS_COMPRESSION_LZO): New define.
11149 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
11150 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
11151 (grub_btrfs_lzo_decompress): New function.
11152 (grub_btrfs_extent_read): Add support for LZO compression type.
11153 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
11154 (GRUB_USHRT_MAX): Likewise.
11155 (GRUB_UINT_MAX): Likewise.
11156 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
11157 (UINT_MAX): Likewise.
11158 (CHAR_BIT): Likewise.
11159 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
11160 grub-core/lib/posix_wrap/limits.h
11161 (UCHAR_MAX): Likewise.
11162 * include/grub/file.h (grub_file_filter_id): New compression filter
11163 GRUB_FILE_FILTER_LZOPIO.
11164 * include/grub/file.h (grub_file_filter_id): Set
11165 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
11166 * include/grub/types.h (grub_get_unaligned16): New function.
11167 (grub_get_unaligned32): Likewise.
11168 (grub_get_unaligned64): Likewise.
11169 * util/import_gcry.py (cryptolist): Add adler32.
11170
0eb8ffb1
VS
111712011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
11172
11173 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
11174 in perspective decreases the complexity of build system and fixes
11175 compilation right now.
11176
ce79cc99 111772011-10-01 Ales Nesrsta <starous@volny.cz>
11178
11179 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
11180 (fixed problem related to using UHCI with coreboot).
11181
8667a314
BC
111822011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
11183
11184 * gentpl.py: Use Autogen macros so that the output template file
11185 (Makefile.tpl) size is reduced.
11186
fc5efcc0
MK
111872011-09-29 Mads Kiilerich <mads@kiilerich.com>
11188
11189 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
11190 extra_dist.
11191
d1ab689d
ML
111922011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11193
11194 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
11195 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
11196
c05de032
ML
111972011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11198
11199 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
11200 _fullpath.
11201
cca7ccd8
ML
112022011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11203
11204 Remove extra declaration of sleep for mingw32.
11205
11206 * util/misc.c (sleep) [__MINGW32__]: Removed.
11207 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
11208
e0b0dc83
GS
112092011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
11210
11211 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
11212 type and packname.
11213 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
11214 Resurrected.
11215 (NETBSD_BTINFO_BOOTWEDGE): New definition.
11216 (grub_netbsd_btinfo_bootwedge): New struct.
11217 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11218 New function.
11219 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
11220
91a1a164
TH
112212011-09-28 Thomas Haller <thomas.haller@fen-net.de>
11222
11223 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
11224 loader.
11225
2ded951e
AB
112262011-09-28 Andreas Born <futur.andy@googlemail.com>
11227
11228 Fix incorrect identifiers in bash-completion.
11229
11230 * util/bash-completion.d/grub-completion.bash.in
11231 (_grub_mkpasswd-pbkdf2): Rename to ...
11232 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
11233 (_grub_script-check): Rename to ...
11234 (_grub_script_check): ... this. All users updated.
11235
69915030
VS
112362011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
11237
11238 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11239 Return 0 if disk isn't biosdisk.
11240
20fd15f9
GS
112412011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11242
11243 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
11244 on NetBSD.
11245 * Makefile.util.def (grub-fstest): Likewise.
11246
1a7d7db9
GS
112472011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11248
11249 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
11250 Get sector size from disk label.
11251
2221ab6c
CW
112522011-09-05 Colin Watson <cjwatson@ubuntu.com>
11253
11254 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
11255 */README* as well as README*.
11256 Reported by: Axel Beckert.
11257
ca51c4a0
VS
112582011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11259
11260 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
11261 case of less than 256 MiB of RAM.
11262
ab80f326
VS
112632011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11264
11265 * grub-core/commands/wildcard.c (make_regex): Handle @.
11266
4155e697
VS
112672011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11268
11269 * util/grub-install.in: Move cryptodisk logic to appropriate place.
11270
ab178c08
SJ
112712011-08-21 Szymon Janc <szymon@janc.net.pl>
11272
11273 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
11274 AC_LANG_CONFTEST macros.
11275
7dc3c686
SJ
112762011-08-20 Szymon Janc <szymon@janc.net.pl>
11277
11278 Add grub-fstest option to uncompress data for commands.
11279
11280 * util/grub-fstest.c (uncompress): New var.
11281 (options): New option -u.
11282
fe8d4a7b
SJ
112832011-08-20 Szymon Janc <szymon@janc.net.pl>
11284
11285 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
11286 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
11287
a5219af1
SJ
112882011-08-20 Szymon Janc <szymon@janc.net.pl>
11289
11290 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
11291 file type was not recognized correctly (not gzip or corrupted).
11292
f87abff5
VS
112932011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11294
11295 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
11296 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
11297
d94497ea
VS
112982011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11299
11300 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
11301 loongson.
11302 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
11303 video_radeon_fuloong2e.
11304 * grub-core/video/radeon_fuloong2e.c: New file.
11305 * include/grub/video.h (grub_video_id_t): Add new ID
11306 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
11307
0d1fd011
VS
113082011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11309
11310 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
11311 define.
11312 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
11313 that PRID matches the detected subplatform and reset the subplatform
11314 if it doesn't.
11315
84beb0ee
VS
113162011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11317
11318 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
11319
1227c133
VS
113202011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11321
11322 Fix PCI iterating on functions >= 4.
11323
11324 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
11325 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
11326 Removed.
11327 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
11328 (grub_pci_read): Fix bitmask.
11329 (grub_pci_read_word): Likewise.
11330 (grub_pci_read_byte): Likewise.
11331 (grub_pci_write): Likewise.
11332 (grub_pci_write_word): Likewise.
11333 (grub_pci_write_byte): Likewise.
11334
9594c689
VS
113352011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11336
11337 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
11338 can still be specified in TARGET_CFLAGS)
11339
14a2562c
VS
113402011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11341
11342 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
11343
11344 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
11345 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
11346 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
11347 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
11348 (FULOONG): Rename to ...
11349 (FULOONG2F): ... this. All users updated.
11350 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
11351 (machtype_fuloong2f_str): ... this.
11352 (machtype_fuloong2e_str): New string.
11353 Check for machtype_fuloong2e_str.
11354 * grub-core/loader/mips/linux.c (loongson_machtypes)
11355 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
11356 * grub-core/term/serial.c (loongson_defserial)
11357 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
11358 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
11359 loongson_defserial.
11360 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
11361 Rename to ...
11362 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
11363 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
11364 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
11365 to IMAGE_FULOONG2F_FLASH. All users updated.
11366 (image_targets): Rename images.
11367 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
11368
b526cbb6
SJ
113692011-08-19 Szymon Janc <szymon@janc.net.pl>
11370
11371 Make enable of disk cache statistics code configurable.
11372
11373 * configure.ac: --enable-cache-stats added.
11374 * config.h.in (DISK_CACHE_STATS): New define.
11375 * grub-core/Makefile.core.def (cacheinfo): New command.
11376 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
11377 * grub-core/commands/cacheinfo.c: New file.
11378 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
11379 moved to cacheinfo.c.
11380 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
11381 debug code.
11382 * include/grub/disk.h: Likewise.
11383
fb739ccd
SJ
113842011-08-19 Szymon Janc <szymon@janc.net.pl>
11385
11386 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
11387 * grub-core/Makefile.am: Likewise.
11388
2bba8cfd
VS
113892011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
11392 non-zero pull.
11393
43526629
VS
113942011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11395
11396 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
11397 All users updated.
11398 (grub_jfs_lookup_symlink): Use correct starting inode.
11399
5c144cc8
VS
114002011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11401
11402 * util/grub-setup.c (main): Add missing gcry initialisation.
11403
b1257f65
VS
114042011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11405
11406 Don't accept text modes on EFI when booting Linux.
11407
11408 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
11409 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
11410
828bc390
ML
114112011-08-15 Mario Limonciello <mario_limonciello@dell.com>
114122011-08-15 Colin Watson <cjwatson@ubuntu.com>
11413
11414 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11415 use of "/path/.." as in grub-install for EFI as well as handling
11416 symlinks correctly.
11417 Fixes Debian bug #637768.
11418
5f60ccac
CW
114192011-08-15 Colin Watson <cjwatson@ubuntu.com>
11420
11421 * util/grub-probe.c: Remove duplicate #include.
11422
6dc212f9
RM
114232011-08-10 Robert Millan <rmh@gnu.org>
11424
11425 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11426
11427 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11428 function.
11429 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11430 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11431
66816d85
RM
114322011-08-03 Robert Millan <rmh@gnu.org>
11433
11434 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11435 la_array as packed.
11436 Reported by: Zachary Bedell
11437
20168fca
CW
114382011-07-26 Colin Watson <cjwatson@ubuntu.com>
11439
11440 * configure.ac: The Loongson port requires grub-mkfont due to its
11441 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11442 be built.
11443
303b6246
CW
114442011-07-26 Colin Watson <cjwatson@ubuntu.com>
11445
11446 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11447 processing arguments (otherwise help2man fails when GRUB has not yet
11448 been installed).
11449
6795300e
VS
114502011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11451
41aa28ea
VS
11452 New script grub-mkstandalone.
11453
11454 * Makefile.util.def (grub-mkstandalone): New script.
11455 * docs/man/grub-mkstandalone.h2m: New file.
11456 * util/grub-mkstandalone.in: Likewise.
11457
114582011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 Support ATA disks with 4K sectors.
6795300e
VS
11461
11462 * include/grub/ata.h (grub_ata): New member log_sector_size.
11463 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11464 (grub_ata_identify): Read sector size.
11465 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11466
92227597
VS
114672011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11468
11469 * util/grub-install.in: Don't use uhci outside of x86.
11470
c77069f5
VS
114712011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11472
11473 * util/grub-mkrescue.in: Add missing quotes.
11474
114752011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
11476
11477 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11478 dereference.
11479
583168a2
VS
114802011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11483
6be1c01f
VS
114842011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11485
11486 * include/grub/video.h: add missing EXPORT_FUND on
11487 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11488
a1167439
VS
114892011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11490
11491 * include/grub/mips/kernel.h: Fix define conflict.
11492
bf66054f
VS
114932011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11494
11495 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11496 all four ways.
11497
8fc4fa45
CW
114982011-07-21 Colin Watson <cjwatson@ubuntu.com>
11499
11500 Preferred resolution detection for VBE.
11501
11502 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11503 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11504 the Flat Panel extension, in line with the X.org VESA driver.
11505 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11506 New function.
11507 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11508 (grub_vbe_bios_read_edid): Likewise.
11509 (grub_vbe_get_preferred_mode): Likewise.
11510 (grub_video_vbe_setup): When the mode is "auto", try to get the
11511 preferred mode from VBE, and use the largest mode that is no larger
11512 than the preferred mode (some BIOSes expose a preferred mode that is
11513 not in their mode list!). If this fails, fall back to 640x480 as a
11514 safe conservative choice.
11515 (grub_video_vbe_get_edid): New function.
11516 (grub_video_vbe_adapter): Add get_edid.
11517 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11518 (struct grub_video_adapter): Add get_edid.
11519 (grub_video_edid_checksum): Add prototype.
11520 (grub_video_edid_preferred_mode): Likewise.
11521 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11522 structure.
11523
11524 * grub-core/commands/videoinfo.c (print_edid): New function.
11525 (grub_cmd_videoinfo): Print EDID if available.
11526
11527 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11528 is more appropriate on a wider range of platforms than 640x480.
11529 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11530 documentation.
11531
ca5572a9
VS
115322011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11533
11534 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11535
e4bcf625
VS
115362011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11537
11538 * po/POTFILES.in: Regenerate.
11539
c4edd548
VS
115402011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11541
11542 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11543 incorrect memory usage.
11544
16a2bab0
VS
115452011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11546
11547 * util/grub-install.in: Source grub-mkconfig_lib.
11548
2e418de6
VS
115492011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11550
11551 Remove getroot.c from core on emu platform.
11552
11553 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11554 kern/emu/raid.c.
11555 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11556 useless.
11557 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11558 * util/getroot.c (get_win32_path): ... here.
11559 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11560 * util/getroot.c (fini_libzfs): ... here.
11561 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11562 * util/getroot.c (grub_get_libzfs_handle): ... here.
11563 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11564 Moved from here...
11565 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11566 * grub-core/kern/emu/misc.c
11567 (grub_make_system_path_relative_to_its_root): Moved from here...
11568 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11569 * grub-core/kern/emu/getroot.c: Moved from here ...
11570 * util/getroot.c: ... here. All users updated.
11571 * grub-core/kern/emu/raid.c: Moved from here ...
11572 * util/raid.c: ... here. All users updated.
11573
def9832a
VS
115742011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11575
11576 * po/POTFILES.in: Regenerate.
11577
cd8fe79a
VS
115782011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11579
11580 Fix compilation on GNU/Linux.
11581
11582 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11583 Disable geli.
11584 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11585 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11586 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11587
a251b719
VS
115882011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
115892011-07-07 Michael Gorven <michael@gorven.za.net>
115902011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11591
11592 LUKS and GELI support.
11593
11594 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11595 grub-core/disk/luks.c, grub-core/disk/geli.c,
11596 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11597 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11598 grub-core/lib/arg.c.
11599 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11600 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11601 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11602 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11603 (grub-bin2h): Add libgcry.a.
11604 (grub-mkimage): Likewise.
11605 (grub-mkrelpath): Likewise.
11606 (grub-script-check): Likewise.
11607 (grub-editenv): Likewise.
11608 (grub-mkpasswd-pbkdf2): Likewise.
11609 (grub-pe2elf): Likewise.
11610 (grub-fstest): Likewise.
11611 (grub-mkfont): Likewise.
11612 (grub-mkdevicemap): Likewise.
11613 (grub-probe): Likewise.
11614 (grub-ofpath): Likewise.
11615 (grub-mklayout): Likewise.
11616 (example_unit_test): Likewise.
11617 (grub-menulst2cfg): Likewise.
11618 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11619 * grub-core/Makefile.core.def (cryptodisk): New module.
11620 (luks): Likewise.
11621 (geli): Likewise.
11622 * grub-core/disk/AFSplitter.c: New file.
11623 * grub-core/disk/cryptodisk.c: Likewise.
11624 * grub-core/disk/geli.c: Likewise.
11625 * grub-core/disk/luks.c: Likewise.
11626 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11627 grub_util_is_lvm.
11628 (grub_util_get_dm_abstraction): New function.
11629 (grub_util_follow_gpart_up): Likewise.
11630 (grub_util_get_geom_abstraction): Likewise.
11631 (grub_util_get_dev_abstraction): Use new functions.
11632 (grub_util_pull_device): Pull GELI and LUKS.
11633 (grub_util_get_grub_dev): Handle LUKS and GELI.
11634 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11635 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11636 (follow_geom_up): Removed.
11637 (grub_util_fd_seek): New function.
11638 (open_device): Use grub_util_fd_seek.
11639 (nread): Rename to ..
11640 (grub_util_fd_read): ... this. All users updated.
11641 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11642 (grub_crypto_cbc_decrypt): Likewise.
11643 (grub_crypto_hmac_write): Likewise.
11644 (grub_crypto_hmac_buffer): Likewise.
11645 (grub_password_get): Extend to util.
11646 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11647 New member modname.
11648 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11649 * include/grub/cryptodisk.h: New file.
11650 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11651 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11652 LUKS and GELI.
11653 (grub_util_follow_gpart_up): New proto.
11654 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11655 (grub_util_fd_read): Likewise.
11656 (grub_cryptodisk_cheat_mount): Likewise.
11657 (grub_util_cryptodisk_print_uuid): Likewise.
11658 (grub_util_get_fd_sectors): Likewise.
11659 * util/grub-fstest.c (mount_crypt): New var.
11660 (fstest): Mount crypto if requested.
11661 (options): New option -C.
11662 (argp_parser): Parse -C.
11663 (main): Init and fini gcry.
11664 * util/grub-install.in: Support cryptodisk install.
11665 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11666 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11667 cryptodisk.
11668 (prepare_grub_to_access_device): Likewise.
11669 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11670 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11671 (probe_cryptodisk_uuid): New function.
11672 (probe_abstraction): Likewise.
11673 (probe): Use new functions.
11674 * util/import_gcry.py: Create Makefile.utilgcry.def.
11675 Add modname member.
11676
9bfdcbbc
VS
116772011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11678
11679 Lazy device scanning.
11680
11681 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11682 (grub-setup): Remove util/raid.c.
11683 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11684 * grub-core/disk/lvm.c (scan_depth): New variable.
11685 (grub_lvm_iterate): Rescan if necessary.
11686 (find_lv): New function based on grub_lvm_open.
11687 (grub_lvm_open): Use find_lv. Rescan on error.
11688 (is_node_readable): New function.
11689 (is_lv_readable): Likewise.
11690 (grub_lvm_scan_device): Skip already found disks.
11691 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11692 Stop if searched device is found and readable.
11693 * grub-core/disk/raid.c (inscnt): New variable.
11694 (scan_depth): Likewise.
11695 (scan_devices): New function based on grub_raid_register. Abort if
11696 looked for device is found.
11697 (grub_raid_iterate): Rescan if needed.
11698 (find_array): NEw function based on -grub_raid_open.
11699 (grub_raid_open): Use find_array and rescan.
11700 (insert_array): Set became_readable_at.
11701 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11702 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11703 New function.
11704 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11705 (grub_util_pull_device): New function.
11706 (grub_util_get_grub_dev): Call grub_util_pull_device.
11707 * util/raid.c: Moved to ..
11708 * grub-core/kern/emu/raid.c: ... here.
11709 (grub_util_raid_getmembers): New parameter "bootable".
11710 All users updated. Support 1.x.
11711 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11712 All users updated.
11713 * include/grub/disk.h (grub_disk_pull_t): New enum.
11714 (grub_disk_dev): Change iterate prototype.
11715 All users updated.
11716 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11717 New proto.
11718 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11719 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11720 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11721 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11722 All users updated.
11723 * include/grub/util/raid.h: Removed.
11724
1c358e59
VS
117252011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11726
11727 * po/POTFILES.in: Regenerate.
11728
abee94ed
VS
117292011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11730
11731 Unify sparc init with other ieee1275.
11732
11733 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11734 instead of kern/sparc64/ieee1275/init.c.
11735 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11736 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11737 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11738 grub/machine/kernel.h.
11739 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11740 (grub_claim_heap) [__sparc__]: Use sparc version.
11741 (grub_machine_init): Moved args parsing to
11742 (grub_parse_cmdline): ...this.
11743 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11744 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11745 New definition.
11746 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11747
11748 Move BOOTP to separate file.
11749
11750 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11751 * grub-core/net/net.c: Move all BOOTP functions to
11752 * grub-core/net/bootp.c: ... here.
11753
11754 Use frame interface on PXE.
11755
11756 * grub-core/Makefile.core.def (pxecmd): Removed.
11757 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11758 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11759 * grub-core/i386/pc/pxe.c: Moved from here ...
11760 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11761 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11762 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11763
11764 EFI network support.
11765
11766 * grub-core/Makefile.core.def (efinet): New module.
11767 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11768 here...
11769 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11770 All users updated.
11771 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11772 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11773 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11774 * grub-core/net/drivers/efi/efinet.c: New file.
11775 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11776 (grub_efi_net_config): New extern var.
11777
11778 Various cleanups and bugfixes.
11779
11780 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11781 error.
11782 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11783 disk declared as partition.
11784 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11785 leak on failure.
11786 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11787 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11788 (grub_debug_zalloc): Likewise.
11789 (grub_debug_realloc): Likewise.
11790 (grub_debug_memalign): Likewise.
11791 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11792 Check that target is IPv4.
11793 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11794 local-mac-address as fallback.
11795 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11796 memory leak.
11797 * grub-core/net/ip.c (ipchksum): Rename to ...
11798 (grub_net_ip_chksum): ... this. All users updated.
11799 (grub_net_recv_ip_packets): Special handling for DHCP.
11800 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11801
11802 Unify prefix handling
11803
11804 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11805 (grub_machine_get_bootlocation): ... this.
11806 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11807 (grub_machine_get_bootlocation): ... this.
11808 (grub_prefix): New variable.
11809 (prefix): Removed.
11810 (root_dev): New variable.
11811 (dir): Likewise.
11812 (main): Use new variables.
11813 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11814 Revamped into ...
11815 (grub_machine_get_bootlocation): ... this.
11816 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11817 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11818 (grub_machine_get_bootlocation): ... this.
11819 (grub_machine_set_prefix): Removed.
11820 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11821 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11822 Revamped into ...
11823 (grub_machine_get_bootlocation): ... this.
11824 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11825 (grub_set_prefix_and_root): ... this. All users updated.
11826 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11827 Revamped into ...
11828 (grub_machine_get_bootlocation): ... this.
11829 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11830 (grub_machine_get_bootlocation): New proto.
11831 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11832
11833 Less intrusive and more reliable seek on network implementation.
11834
11835 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11836 (grub_file_seek): Don't call grub_file_net_seek.
11837 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11838 (grub_net_fs_read_real): .. this.
11839 (grub_net_seek_real): Use net->offset.
11840 (grub_net_fs_read): Seek if necessary.
11841
11842 Unify IEEE1275 netwotk config with the other platforms.
11843
11844 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11845 New variable.
11846 (grub_machine_get_bootlocation): Support network.
11847 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11848 Support type and device parsing.
11849 (grub_ieee1275_get_device_type): New function.
11850 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11851 into ...
11852 (grub_ieee1275_net_config_real): ... this.
11853 (grub_ofnet_probecards): Removed.
11854 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11855 * include/grub/ieee1275/ofnet.h: Removed.
11856 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11857 extern var.
11858 (grub_ieee1275_get_device_type): New function.
11859
11860 Unify network device closing across platforms and make more robust.
11861
11862 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11863 grub_grubnet_fini.
11864 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11865 already.
11866 * grub-core/net/net.c (grub_net_network_level_interface_register):
11867 Update num_ifaces.
11868 (grub_net_card_unregister): Close all interfaces.
11869 (receive_packets): Don't poll if no iterfaces are registered.
11870 Open if necessary.
11871 (grub_net_fini_hw): New function.
11872 (grub_net_restore_hw): Likewise.
11873 (fini_hnd): New variable.
11874 (GRUB_MOD_INIT): Register preboot hook.
11875 (GRUB_MOD_FINI): Run and unregister preboot hook.
11876
11877 Poll network cards when idle.
11878
11879 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11880 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11881 * grub-core/net/net.c (receive_packets): Save last poll time.
11882 (grub_net_poll_cards_idle_real): New function.
11883 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11884 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11885 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11886
11887 Rename ofnet interfaces.
11888
11889 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11890 (grub_ofnet_findcards): Use ofnet_%s names.
11891
11892 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11893
11894 Cleanup socket opening.
11895
11896 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11897 (grub_net_fs_close): Likewise.
11898 (grub_net_fs_read_real): Use eof member.
11899 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11900 (+grub_net_udp_close): New inline function.
11901
11902 * include/grub/net/tftp.h: Moved to the top of ...
11903 * grub-core/net/tftp.c: ... here.
11904 * include/grub/net/ip.h: Moved mostly to the top of ...
11905 * grub-core/net/ip.c: ... here.
11906 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11907 * grub-core/net/ethernet.c: ... here.
11908
11909 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11910
11911 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11912 FS name.
11913
11914 * include/grub/net/ip.h (ipv4_ini): Removed.
11915 (ipv4_fini): Likewise.
11916
11917 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11918 (grub_net_send_ip_packets): Likewise.
11919
cf1337aa
VS
119202011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11921
11922 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11923 grub_read_cmos prototype.
11924
93c06ff9
VS
119252011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11926
11927 VGA text support in qemu-mips
11928
11929 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11930 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11931 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11932 text.
11933 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11934 * grub-core/kern/vga_init.c: ... this.
11935 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11936 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11937 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11938 Adjust.
11939 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11940 GRUB_MACHINE_PCI_IO_BASE.
11941
748ccabe
VS
119422011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11943
11944 MIPS qemu flash support.
11945
11946 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11947 magic.
11948 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11949 (grub_machine_init): Probe memory if its size isn't known.
11950 * util/grub-mkimage.c (image_targets): Add flash targets.
11951 (generate_image): Handle flash targets.
11952
d7345994
VS
119532011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 MIPS qemu at_keyboard support.
11956
11957 * gentpl.py (videoinkernel): Add qemu-mips.
11958 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11959 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11960 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11961 modules.
11962 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11963 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11964 * grub-core/term/serial.c (grub_serial_register)
11965 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11966
a07a81b3
VS
119672011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11968
11969 CMOS support on sparc.
11970
11971 * gentpl.py (cmos): Add powerpc and sparc.
11972 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11973 powerpc and sparc.
11974 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11975 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11976 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11977 grub_set_datetime_cmos.
11978 * grub-core/lib/ieee1275/cmos.c: New file.
11979 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11980 (find_rtc): Set no_ieee1275_rtc on error.
11981 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11982 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11983 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11984 fail. Move value to argument. All users updated
11985 (grub_cmos_write): Likewise.
11986 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11987 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11988 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11989 grub_get_datetime_cmos and grub_set_datetime_cmos.
11990
77546584
GS
119912011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11992
11993 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11994 sourcing grub-mkconfig_lib.
11995 * util/update-grub_lib.in: Likewise.
11996 * util/grub.d/00_header.in: Likewise.
11997 * util/grub.d/10_hurd.in: Likewise.
11998 * util/grub.d/10_kfreebsd.in: Likewise.
11999 * util/grub.d/10_linux.in: Likewise.
12000 * util/grub.d/10_netbsd.in: Likewise.
12001 * util/grub.d/10_windows.in: Likewise.
12002 * util/grub.d/20_linux_xen.in: Likewise.
12003 * util/grub.d/30_os-prober.in: Likewise.
12004
54894791
CW
120052011-06-28 Colin Watson <cjwatson@ubuntu.com>
12006
12007 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
12008 default_bg_color rather than black.
12009 (grub_gfxterm_fullscreen): Likewise.
12010 (grub_gfxterm_background_color_cmd): Save new background color in
12011 default_bg_color.
12012
8d5d8444
VS
120132011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
12016
5afeb5bd
VS
120172011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12018
12019 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
12020 mismerge.
12021
ba7df45e
VS
120222011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12023
12024 Chainloading on coreboot support.
12025
12026 * grub-core/Makefile.core.def (chain): Add coreboot.
12027 * grub-core/loader/i386/coreboot/chainloader.c: New file.
12028
d0b526b2
VS
120292011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12030
12031 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
12032 if it happens.
12033
5ff1d945
VS
120342011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12035
12036 Implement time command.
12037
12038 * grub-core/Makefile.core.def (time): New module.
12039 * grub-core/commands/time.c: New file.
12040 * grub-core/script/parser.y: Remove "time" keyword.
12041 * grub-core/script/yylex.l: Likewise.
12042
5ebaad7e
VS
120432011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
12046
bdea3798
VS
120472011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12048
12049 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
12050 when handling leftovers.
12051
b28c5655
VS
120522011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12053
12054 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
12055 so that help2man doesn't fail.
12056
b6f945dc
VS
120572011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12058
12059 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
12060 type in pointers on sparc64.
12061 (get_card_packet): Likewise.
12062
f9b75e8a
CW
120632011-06-27 Colin Watson <cjwatson@ubuntu.com>
12064
12065 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
12066 with `*'.
12067 (grub_cmd_videoinfo): Fetch current video mode.
12068
1e3d9b86
VS
120692011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12070
12071 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
12072 because of underlying system restrictions.
12073
efff4b1c
VS
120742011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
12077 necessary.
12078
9fc9ce37
VS
120792011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12080
12081 Coreboot video support.
12082
12083 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
12084 (vbe): Likewise.
12085 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
12086 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
12087 here ...
12088 * grub-core/kern/i386/int.S: ... here.
12089 * grub-core/video/i386/pc/vbe.c: Updated includes.
12090 * grub-core/video/i386/pc/vga.c: Likewise.
12091 * include/grub/i386/coreboot/memory.h
12092 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
12093 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
12094 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
12095 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
12096 Disable interrupts.
12097 * include/grub/i386/pc/vga.h: Removed. All users updated.
12098
41bec7fe
VS
120992011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12100
12101 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
12102 definitions for dprintf.
12103 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
12104
ca80309d
VS
121052011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12106
12107 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
12108 prototype.
12109 (get_card_packet): Likewise.
12110
9e322ce8
YB
121112011-06-26 Yves Blusseau <blusseau@zetam.org>
12112
12113 Display the path of the file when file is not found
12114
12115 * grub-core/fs/fat.c: Display the filename when file is not found.
12116 * grub-core/fs/fshelp.c: Likewise.
12117 * grub-core/fs/hfs.c: Likewise.
12118 * grub-core/fs/jfs.c: Likewise.
12119 * grub-core/fs/minix.c: Likewise.
12120 * grub-core/fs/ufs.c: Likewise.
12121 * grub-core/fs/btrfs.c: Likewise.
12122 * grub-core/commands/i386/pc/play.c: Likewise.
12123
cbf597af
SJ
121242011-06-26 Szymon Janc <szymon@janc.net.pl>
12125
12126 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
12127 pointer checks before calling grub_free().
12128 * grub-core/commands/wildcard.c (match_devices): Likewise.
12129 * grub-core/commands/wildcard.c (match_files): Likewise.
12130 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
12131 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
12132 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
12133 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
12134 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
12135 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
12136 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
12137 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
12138 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
12139
6295b32f
P
121402011-06-25 Patrick <p55@mailinator.com>
12141
12142 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
12143
77c0840b
VS
121442011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
12147 (grub_pxe_send): Likewise.
12148 (GRUB_MOD_INIT): Fix types.
12149
40ea05de
SJ
121502011-06-24 Szymon Janc <szymon@janc.net.pl>
12151
12152 * grub-core/io/xzio.c: Fix code style issues
12153
90162423
MRA
121542011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
121552011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
12156
12157 Network infrastructure.
12158 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
12159
12160 * include/grub/net/arp.h: New file.
90162423
MRA
12161 * include/grub/net/device.h: Likewise.
12162 * include/grub/net/ethernet.h: Likewise.
12163 * include/grub/net/ip.h: Likewise.
12164 * include/grub/net/netbuff.h: Likewise.
12165 * include/grub/net/tftp.h: Likewise.
12166 * include/grub/net/udp.h: Likewise.
12167 * include/grub/ieee1275/ofnet.h: Likewise.
12168 * include/grub/emu/export.h: Likewise.
12169 * include/grub/net.h: Likewise.
12170 * grub-core/net/arp.c: Likewise.
12171 * grub-core/net/ethernet.c: Likewise.
12172 * grub-core/net/ip.c: Likewise.
12173 * grub-core/net/udp.c: Likewise.
12174 * grub-core/net/tftp.c: Likewise.
12175 * grub-core/net/netbuff.c: Likewise.
12176 * grub-core/net/net.c: Likewise.
12177 * grub-core/net/drivers/emu/emunet.c: Likewise.
12178 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
12179 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
12180 export.h.
12181 * grub-core/Makefile.core.def (net): New module.
12182 (tftp): Likewise.
12183 (ofnet): Likewise.
12184 (emunet): Likewise.
12185 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
12186 network protocols.
12187 * grub-core/kern/device.c (grub_net_open) : New variable.
12188 (grub_device_open): Handle network device.
12189 (grub_device_close): Likewise.
12190 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
12191 (grub_grubnet_fini): Likewise.
12192 (grub_file_seek): Seek in network device.
12193 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
12194 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
12195 network root.
12196 (grub_machine_fini): Call grub_grubnet_fini.
12197 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
12198 network.
12199 (grub_ieee1275_get_aliasdevname): New function.
12200 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
12201 Add unofficial Solaris network info.
12202 (grub_multiboot_make_mbi): Likewise.
12203 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
12204 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
12205 * include/grub/device.h (grub_fs): Removed.
12206 * include/grub/err.h (grub_err_t): Add network-related values.
12207 * include/grub/i386/pc/pxe.h: Removed bootp parts.
12208 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
12209 (grub_ieee1275_get_aliasdevname): New proto.
12210 * include/grub/net.h: Rewritten.
423a1849 12211
031f22a0
VS
122122011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12213
12214 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
12215 names.
12216
4388ca72
VS
122172011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12218
12219 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
12220 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
12221 it truncates the output.
12222 Reported by: Ximin Luo.
12223
98e2f506
VS
122242011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12225
12226 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
12227
2a5e94d8
VS
122282011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12229
12230 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
12231 partmap before abstraction.
12232
535c1910
AK
122332011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
12234
12235 * util/grub-mkconfig_lib.in: Add missing quotes.
12236
bc09e1a2
VS
122372011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12238
12239 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
12240 old method if mountinfo would return /dev/root and /dev/root doesn't
12241 exist.
12242
290766fb
VS
122432011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12244
12245 ZFS zlib support
12246
12247 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
12248 (decomp_table): Add zlib entries.
12249 (zio_read): USe 8 bits for compression function rather than 3.
12250 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
12251
122522011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12253
12254 * grub-core/disk/ahci.c: Add missing license statements.
12255 * grub-core/fs/romfs.c: Likewise.
12256 * grub-core/lib/ia64/setjmp.S: Likewise.
12257 * grub-core/loader/i386/pc/freedos.c: Likewise.
12258 * grub-core/loader/ia64/efi/linux.c: Likewise.
12259 * grub-core/video/colors.c: Likewise.
12260 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
12261
5ab3f48a
VS
122622011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12263
12264 AHCI support.
12265
12266 * grub-core/Makefile.core.def (ata_pthru): Removed.
12267 (ahci): New module.
12268 (pata): Likewise.
12269 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
12270 on unload.
12271 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
12272 readwrite.
12273 (grub_hdparm_do_check_powermode_cmd): Likewise.
12274 (grub_hdparm_do_smart_cmd): Likewise.
12275 (grub_hdparm_set_val_cmd): Likewise.
12276 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
12277 * grub-core/disk/ahci.c: New file.
12278 * grub-core/disk/ata.c: Factor out the low-level part into ...
12279 * grub-core/disk/pata.c: ... here.
12280 * grub-core/disk/ata_pthru.c: Contents moved to ...
12281 * grub-core/disk/pata.c: ... here.
12282 * grub-core/disk/scsi.c (grub_scsi_names): New array.
12283 (grub_scsi_iterate): Use grub_scsi_names.
12284 (grub_scsi_open): Likewise.
12285 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
12286 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
12287 (grub_ata_regs_t): New struct.
12288 (grub_disk_ata_pass_through_parms): Likewise.
12289 (grub_ata_device): Renamed to ...
12290 (grub_ata): ... this.
12291 (grub_ata_dev): New struct.
12292 Removed all low-level inline functions.
12293 * include/grub/scsi.h: Add PATA and AHCI subsystems.
12294 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
12295 iterate hooks and open. All users updated.
12296 * util/grub-install.in: Handle AHCI disk module.
12297
c31dc5f5
SJ
122982011-06-23 Szymon Janc <szymon@janc.net.pl>
12299
12300 Add support for DRI and RSTn markers in JPEG files.
12301
12302 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
12303 (JPEG_MARKER_RST0): Likewise.
12304 (JPEG_MARKER_RST1): Likewise.
12305 (JPEG_MARKER_RST2): Likewise.
12306 (JPEG_MARKER_RST3): Likewise.
12307 (JPEG_MARKER_RST4): Likewise.
12308 (JPEG_MARKER_RST5): Likewise.
12309 (JPEG_MARKER_RST6): Likewise.
12310 (JPEG_MARKER_RST7): Likewise.
12311 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
12312 (grub_jpeg_decode_dri): New function.
12313 (grub_jpeg_decode_sos): Move image data related part into
12314 grub_jpeg_decode_data function.
12315 (grub_jpeg_decode_data): New function.
12316 (grub_jpeg_reset): New function.
12317 (grub_jpeg_decode_jpeg): Handle new markers.
12318
fe12fd5b
VS
123192011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12320
12321 * util/ieee1275/ofpath.c (check_sas): Close fd.
12322 (main): Free of_path.
12323 Reported by: David Volgyes <dvolgyes>.
12324
03147f46
VS
123252011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12326
12327 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
12328 Reported by: David Volgyes <dvolgyes>.
12329
cad3237f
VS
123302011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12331
12332 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
12333 file after stat.
12334 Reported by: David Volgyes <dvolgyes>.
12335
13548d26
VS
123362011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12337
12338 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
12339
12340 Reported by: David Volgyes <dvolgyes>.
12341
e061a1b5
VS
123422011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12343
12344 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
12345 Prevent memory leak.
12346
1abe47dc
VS
123472011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12348
12349 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
12350 (main): Close file.
e061a1b5 12351 Reported by: David Volgyes <dvolgyes>.
1abe47dc 12352
fbc62666
VS
123532011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12354
12355 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
12356 to continue if allocation is failed.
12357
12358 Reported by: David Volgyes <dvolgyes>.
12359
e98c83e9
DV
123602011-06-23 David Volgyes <dvolgyes>
12361
12362 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
12363 dereference.
12364
a199a8cd
VS
123652011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12366
12367 Fix spurious warning.
12368
12369 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
12370 (acorn_partition_map_find): Use .bin member.
12371
e2d1dba0
VS
123722011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12373
12374 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
12375 /dev/root as a valid device.
12376
8a5d6919
JM
123772011-06-23 Jim Meyering <meyering@redhat.com>
12378
e2d1dba0
VS
12379 Avoid NULL deref in grub_device_open.
12380
8a5d6919
JM
12381 * grub-core/kern/device.c (grub_device_open): Don't dereference
12382 a NULL pointer upon failed grub_env_get.
12383
f7db6f4a
VS
123842011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12385
12386 Support non-512B sectors and agglomerate reads.
12387
12388 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
12389 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
12390 (disk_io_guid): Removed.
12391 (make_devices): Locate solely by BlockIO.
12392 (grub_efidisk_open): Fill log_sector_size and total_sectors.
12393 (grub_efidisk_read): Use read_blocks.
12394 (grub_efidisk_write): Use write_blocks.
12395 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
12396 log_sector_size.
12397 (get_safe_sectors): Handle non-512B sectors.
12398 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
12399 sectors.
12400 (grub_biosdisk_write): Handle non-512B sectors.
12401 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
12402 (grub_scsi_read): Remove special non-512B block handling (now handled
12403 one level up).
12404 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
12405 and do sanity checks.
12406 (grub_disk_adjust_range): Handle non-512B sectors.
12407 (transform_sector): New function.
12408 (grub_disk_read_small): Likewise.
12409 (grub_disk_read): Rewritten.
12410 (grub_disk_write): Handle non-512B sectors.
12411 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
12412 log_sector_size.
12413 (open_device): Use log_sector_size.
12414 (grub_util_biosdisk_read): Likewise.
12415 (grub_util_biosdisk_write): Likewise.
12416 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12417 non-512B sectors.
12418 (pc_partition_map_embed): Likewise.
12419 * include/grub/disk.h (grub_disk): New field log_sector_size.
12420 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12421 (GRUB_DISK_CACHE_BITS): Increased to 6.
12422 * util/grub-fstest.c (fstest): New command testload.
12423 (argp_parser): Likewise.
12424
881ac815
RM
124252011-06-16 Robert Millan <rmh@gnu.org>
12426
12427 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12428 `ata' driver on kernel of FreeBSD 9.
12429
12430 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12431 (get_ataraid_disk_name): New functions.
12432 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12433 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12434 get_ataraid_disk_name() and get_ada_disk_name().
12435
1e9aef7d
CW
124362011-06-13 Colin Watson <cjwatson@ubuntu.com>
12437
12438 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12439 input format.
12440
351c7c8a
CW
124412011-05-29 Colin Watson <cjwatson@ubuntu.com>
12442
12443 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12444 `ftp.gnu.org' for `alpha.gnu.org'.
12445
6b4e6430
CW
124462011-05-27 Colin Watson <cjwatson@ubuntu.com>
12447
12448 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12449 partitions under /dev/disk/by-id/.
12450
c64db050
CW
124512011-05-27 Colin Watson <cjwatson@ubuntu.com>
12452
12453 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12454 after ten consecutive open failures. Scanning all the way up to
12455 10000 is excessive and can cause serious performance problems in
12456 some configurations.
12457 Fixes Ubuntu bug #787461.
12458
245f4aba
VS
124592011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12460
12461 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12462 opening new one.
12463
f767c929
VS
124642011-05-21 Colin Watson <cjwatson@ubuntu.com>
124652011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12466
12467 Don't stat devices unless we have to.
12468
12469 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12470 dir == /dev/mapper.
12471 (grub_guess_root_device): Use already known os_dev if possible.
12472 * grub-core/kern/emu/hostdisk.c
12473 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12474 if device is known to be a dm one.
12475
f35fa3a6
CW
124762011-05-20 Colin Watson <cjwatson@ubuntu.com>
12477
12478 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12479 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12480 Reported by: Pawel Tecza.
12481
9a79fcf2
VS
124822011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12483
12484 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12485 (lsefisystab): Likewise.
12486 (lssal): Likewise.
12487 (lsefimmap): Likewise.
12488 (hdparm): Enable on qemu-mips.
12489 (setjmp): Add ia64 nodist.
12490 (serial): Simplify tags.
12491
63e3eea9
CW
124922011-05-18 Colin Watson <cjwatson@ubuntu.com>
12493
12494 * Makefile.util.def (grub-ofpathname): Install manual page.
12495
09728256
CW
124962011-05-18 Colin Watson <cjwatson@ubuntu.com>
12497
12498 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12499
8b63a142
CW
125002011-05-18 Colin Watson <cjwatson@ubuntu.com>
12501
12502 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12503
e775d8ed
VS
125042011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12505
12506 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12507 into dprintf.
12508
bf947d36
VS
125092011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12510
12511 Use full 64-bit division.
12512
12513 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12514 (grub_divmod64): ... this.
12515 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12516 version.
12517
b84f26c5
CW
125182011-05-18 Colin Watson <cjwatson@ubuntu.com>
12519
12520 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12521 `source'.
12522
5626056f
CW
125232011-05-18 Colin Watson <cjwatson@ubuntu.com>
12524
12525 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12526 to avoid accidents when debugging with 'sh -x'.
12527 * grub-core/gensyminfo.sh.in: Likewise.
12528 * tests/example_scripted_test.in: Likewise.
12529 * tests/grub_cmd_regexp.in: Likewise.
12530 * tests/grub_script_blanklines.in: Likewise.
12531 * tests/grub_script_dollar.in: Likewise.
12532 * tests/grub_script_expansion.in: Likewise.
12533 * tests/grub_script_final_semicolon.in: Likewise.
12534 * tests/partmap_test.in: Likewise.
12535 * tests/util/grub-shell-tester.in: Likewise.
12536 * tests/util/grub-shell.in: Likewise.
12537
e2965f4a
CW
125382011-05-18 Colin Watson <cjwatson@ubuntu.com>
12539
12540 Move gfxmenu color handling to video, so that gfxterm can use it
12541 too.
12542
12543 * grub-core/gfxmenu/named_colors.c: Move to ...
12544 * grub-core/video/colors.c: ... here. Rename
12545 grub_gui_get_named_color to grub_video_get_named_color.
12546 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12547 * grub-core/video/colors.c (my_isxdigit): ... here.
12548 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12549 Move to ...
12550 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12551 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12552 to ...
12553 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12554
12555 * include/grub/gui.h (grub_gui_color_t): Move to ...
12556 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12557 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12558 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12559 * include/grub/gui.h (grub_gui_map_color): Move to ...
12560 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12561 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12562 to ...
12563 * include/grub/video.h (grub_video_get_named_color): ... here.
12564 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12565 * include/grub/video.h (grub_video_parse_color): ... here.
12566
12567 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12568 video/colors.c.
12569 (gfxmenu): Remove gfxmenu/named_colors.c.
12570 (video) [videomodules]: Add video/colors.c.
12571
12572 Add a background_color command.
12573
12574 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12575 function.
12576 (GRUB_MOD_INIT): Register background_color command.
12577 (GRUB_MOD_FINI): Unregister background_color command.
12578 (redraw_screen_rect): Allow blend/replace of text layer to be
12579 controlled independently from whether there is a background bitmap.
12580 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12581 changing bitmap.
12582
1e4b4390
VS
125832011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12584
26618ff0
VS
12585 Patch BPB in ntldr and chainloader --bpb.
12586
1e4b4390
VS
12587 * grub-core/fs/fat.c: Include grub/fat.h.
12588 (grub_fat_bpb): Moved to ...
12589 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12590 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12591 grub/ntfs.h.
12592 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12593 Moved from here...
12594 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12595 here.
12596 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12597 New function.
12598 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12599 (GRUB_MOD_INIT): Show --bpb.
12600 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12601 * grub-core/normal/main.c (features): New variable.
12602 (GRUB_MOD_INIT): Set feature_* variables.
12603 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12604 proto.
12605 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12606
cf02731e
VS
126072011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12608
12609 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12610 for cleanness.
12611
e3a1073f
VS
126122011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12613
12614 FreeDOS direct loading support.
12615
12616 * docs/grub.texi (Supported OS): Add FreeDOS.
12617 * grub-core/Makefile.core.def (freedos): New module.
12618 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12619 variable.
12620 (grub_relocator16_boot): Handle %ebx.
12621 * grub-core/lib/i386/relocator16.S: Likewise.
12622 * grub-core/loader/i386/pc/freedos.c: New file.
12623
05caa461
VS
126242011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12625
12626 Long Linux command line support.
12627
12628 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12629 (maximal_cmdline_size): New variable.
12630 (allocate_pages): Use maximal_cmdline_size.
12631 (grub_cmd_linux): Set and use maximal_cmdline_size.
12632 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12633 (allocate_pages): Use maximal_cmdline_size.
12634 (grub_cmd_linux): Set and use maximal_cmdline_size.
12635 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12636 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12637 and cmdline_size.
12638
a2491e23
VS
126392011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
126402011-05-18 Colin Watson <cjwatson@ubuntu.com>
12641
12642 Improve devmapper support
12643
12644 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12645 (grub_util_is_lvm): New function.
12646 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12647 than lvm if not dmraid.
12648 Handle mapped md nodes.
12649 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12650 (grub_util_device_is_mapped): ... this. Make always available. All users
12651 updated.
12652 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12653 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12654 dmraid nodes.
12655 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12656
6ad6223e
VS
126572011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12658
12659 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12660
12661 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12662 * grub-core/modinfo.sh.in: New file.
12663 * grub-core/Makefile.core.def (modinfo.sh): New script.
12664 * util/grub-mknetdir.in: Use modinfo.sh.
12665 * util/grub-mkrescue.in: Likewise.
12666
543a8f6e
VS
126672011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12668
12669 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12670 Fix potential usage of Elf32 instead of Elf64 when compiling on
12671 32-bit architecture. Add endianness macros while on it.
12672
4959e111
VS
126732011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 Use mipsel- rather than mips- in directories involving mipsel ports to
12676 allow both endiannesses coexist.
12677
12678 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12679 mips. All conditions adjusted.
12680 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12681 variable.
12682 * util/grub-install.in: Adjust conditions to take renaming into account.
12683 * util/grub-mkimage.c (image_targets): Likewise. New target
12684 mips-qemu_mips-elf for bigendian mips.
12685
35341bbc
VS
126862011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12687
12688 Avoid unnecessary copying on MIPS.
12689
12690 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12691 early if src == dest.
12692 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12693 compression is none.
12694
b772baed
VS
126952011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12696
12697 Reduce memory footprint on SGI by putting modules before the kernel
12698 as opposed to after.
12699
12700 * grub-core/Makefile.core.def (kernel): Increase linking address.
12701 (none_decompress): Likewise.
12702 (xz_decompress): Likewise.
12703 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12704 address.
12705 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12706 layout change.
12707 (grub_arch_modules_addr): New function.
12708 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12709 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12710 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12711 here.
12712 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12713 (grub_total_modules_size): ... this. Make global.
12714 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12715 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12716 New definition.
12717 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12718 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12719 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12720 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12721 * util/grub-mkimage.c (image_target_desc): New flag
12722 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12723 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12724 (generate_image): Handle images with modules before kernel.
12725
566a1917
VS
127262011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12727
12728 Prevent potential loss of memory map by overwrite on qemu-mips.
12729
12730 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12731 Save ram size in $s4.
12732 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12733 All users changed to grub_arch_memsize.
12734 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12735 Loongson.
12736 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12737 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12738 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12739 external variable.
12740
5d420cd9
CW
127412011-05-17 Colin Watson <cjwatson@ubuntu.com>
12742
12743 * .bzrignore: Remove grub-dumpbios.
12744
d064b830
CW
127452011-05-17 Colin Watson <cjwatson@ubuntu.com>
12746
12747 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12748 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12749 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12750 existing options which append).
12751 * docs/grub.texi (Simple configuration): Document new options.
12752 Reported by: Ian Jackson. Fixes Debian bug #617538.
12753
3ca2b466
CW
127542011-05-17 Colin Watson <cjwatson@ubuntu.com>
12755
12756 * util/grub-fstest.c (cmd_cat): New function.
12757 (fstest): Handle CMD_CAT.
12758 (options): Add cat.
12759 (argp_parser): Handle cat.
12760
24c9143a
CW
127612011-05-17 Colin Watson <cjwatson@ubuntu.com>
12762
12763 * Makefile.util.def (grub-bin2h): Don't install.
12764 * docs/man/grub-bin2h.h2m: Remove.
12765
90f7ac19
VS
127662011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12767
12768 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12769 place.
12770
8d4a5178
VS
127712011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12772
12773 Reenable qemu-mips port.
12774
12775 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12776 Fix small arc bug while on it.
12777 * gentpl.py: Handle qemu_mips.
12778 * grub-core/Makefile.am: Likewise.
12779 * grub-core/Makefile.core.def: Likewise.
12780 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12781 inappropriate includes.
12782 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12783 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12784 * grub-core/kern/main.c (grub_modules_get_end)
12785 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12786 * grub-core/kern/mips/qemu-mips: Moved to ..
12787 * grub-core/kern/mips/qemu_mips: ... this.
12788 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12789 (grub_machine_init): Call terminfo_init and serial_init.
12790 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12791 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12792 New variable.
12793 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12794 parameter passing.
12795 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12796 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12797 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12798 * include/grub/mips/qemu_mips/cmos.h: New file.
12799 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12800 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12801 Removed.
12802 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12803 Use correct mips-style address.
12804 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12805 (GRUB_TICKS_PER_SECOND): Removed.
12806 (grub_get_rtc): Likewise.
12807 (grub_cpu_idle): Likewise.
12808 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12809 New definition.
12810 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12811 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12812 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12813 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12814 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12815 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12816 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12817 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12818
400b9371
VS
128192011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12820
12821 SGI ARCS port.
12822
12823 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12824 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12825 platforms.
12826 * configure.ac: New target mips-arc.
12827 * gentpl.py: Likewise.
12828 * grub-core/Makefile.am: Likewise.
12829 * grub-core/Makefile.core.def: Likewise.
12830 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12831 (none_decompress): Likewise.
12832 (lsdev): New module.
12833 (datetime): Use lib/arc/datetime.c on ARC.
12834 (part_dvh): New module.
12835 * grub-core/commands/arc/lsdev.c: New file.
12836 * grub-core/disk/arc/arcdisk.c: Likewise.
12837 * grub-core/kern/mips/arc/init.c: Likewise.
12838 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12839 aligned addresses.
12840 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12841 support.
12842 (grub_arch_dl_relocate_symbols): Likewise.
12843 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12844 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12845 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12846 platforms.
12847 * grub-core/lib/arc/datetime.c: New file.
12848 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12849 pci.h on non-loongson.
12850 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12851 (grub_linux_boot): Set unused registers to 0.
12852 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12853 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12854 * grub-core/mmap/mips/uppermem.c: ...here.
12855 * grub-core/partmap/dvh.c: New file.
12856 * grub-core/term/arc/console.c: Likewise.
12857 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12858 (grub_terminfo_set_current): Add terminal "arc".
12859 (grub_terminfo_readkey): Support ARC sequences.
12860 * include/grub/arc/arc.h: New file.
12861 * include/grub/arc/console.h: Likewise.
12862 * include/grub/disk.h (grub_disk_dev_id): Add
12863 GRUB_DISK_DEVICE_ARCDISK_ID.
12864 * include/grub/mips/arc/kernel.h: New file.
12865 * include/grub/mips/arc/memory.h: Likewise.
12866 * include/grub/mips/arc/time.h: Likewise.
12867 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12868 * include/grub/mips/kernel.h (grub_halt): ... here.
12869 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12870 here...
12871 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12872 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12873 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12874 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12875 proto.
12876 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12877 from here ...
12878 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12879 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12880 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12881 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12882 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12883 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12884 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12885 (grub_phys_addr_t): Moved from here ...
12886 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12887 (grub_vtop): Moved from here ...
12888 * include/grub/mips/memory.h (grub_vtop): ... here.
12889 (grub_map_memory): Moved from here ...
12890 * include/grub/mips/memory.h (grub_map_memory): ... here.
12891 (grub_unmap_memory): Moved from here ...
12892 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12893 (grub_machine_mmap_iterate): Moved from here ...
12894 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12895 (grub_mmap_get_lower): Moved from here ...
12896 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12897 (grub_mmap_get_upper): Moved from here ...
12898 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12899 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12900 here ...
12901 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12902 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12903 here ...
12904 * include/grub/mips/time.h (grub_get_rtc): ... here.
12905 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12906 here ...
12907 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12908 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12909 here ...
12910 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12911 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12912 definition.
12913 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12914 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12915 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12916 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12917 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12918 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12919 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12920 (GRUB_MACHINE_LINK_ADDR): Likewise.
12921 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12922 to 6.
12923 * util/grub-install.in: Run dvhtool on ARC.
12924 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 12925 (generate_image): Handle ECOFF output for mips-arc.
400b9371 12926
c8ecc840
VS
129272011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12928
12929 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12930 blocks.
12931
153a4b55
VS
129322011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12935 after enabling port.
12936
ff44d107
VS
129372011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12938
12939 Skip incorrect USB devices.
12940
12941 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12942 configcnt == 0.
12943 * include/grub/usb.h (grub_usb_err_t): New enum value
12944 GRUB_USB_ERR_BADDEVICE.
12945
638dbe4f
VS
129462011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12947
12948 Fuloong video init support.
12949
12950 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12951 well.
12952 (grub_vga_read_arx): New function.
12953 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12954 definition.
12955 (framebuffer): New members io, mmioptr and mmiobase.
12956 (read_sis_cmd): New function.
12957 (write_sis_cmd): Likewise.
12958 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12959 rather than 640x400.
12960 * grub-core/video/sis315_init.c: New file.
12961
c3fc520c
VS
129622011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12963
12964 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12965 non-loongson.
12966 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12967 to grub_dl_register_symbol.
12968
67b1e5c9
VS
129692011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 Fix compilation errors.
12972
12973 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12974 potentially unused.
12975 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12976 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12977 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12978 to loongson machines.
12979
b756f75f
VS
129802011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 Several FS mtime support.
12983
12984 * grub-core/fs/affs.c (grub_affs_time): New struct.
12985 (grub_affs_file): New field mtime.
12986 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12987 type. Removed 'size'. New field 'di'. All users updated.
12988 (grub_affs_mount): Simplify checsum checking.
12989 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12990 (grub_affs_dir): Handle mtime.
12991 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12992 (grub_cpio_dir): Likewise.
12993 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12994 (grub_hfs_filerec): New field mtime.
12995 (grub_hfs_dir): Handle mtime.
12996 (grub_hfs_mtime): New function.
12997 (grub_hfs_fs): Register grub_hfs_mtime.
12998 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12999 (grub_iso9660_dir): New field mtime.
13000 (grub_fshelp_node): New field dirent.
13001 (iso9660_to_unixtime): New function.
13002 (iso9660_to_unixtime2): Likewise.
13003 (grub_iso9660_read_symlink): Use node->dirent.
13004 (grub_iso9660_iterate_dir): Likewise.
13005 (grub_iso9660_dir): Set mtime.
13006 (grub_iso9660_mtime): New function.
13007 (grub_iso9660_fs): Register grub_iso9660_mtime.
13008 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
13009 (grub_jfs_inode): New fields atime, ctime and mtime.
13010 (grub_jfs_dir): Set mtime.
13011 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
13012 * grub-core/fs/ntfs.c (list_file): Set mtime.
13013 (grub_ntfs_dir): Likewise.
13014 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
13015 (grub_reiserfs_iterate_dir): Set mtime.
13016 (grub_reiserfs_dir): Likewise.
13017 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
13018 (grub_fshelp_node): Likewise.
13019 (grub_sfs_iterate_dir): Set mtime.
13020 (grub_sfs_dir): Likewise.
13021 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
13022 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
13023 (grub_xfs_inode): New fields atime, mtime, ctime.
13024 (grub_xfs_dir): Set mtime.
13025 * include/grub/datetime.h (grub_datetime2unixtime): New function.
13026 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
13027 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
13028
13029 Support UDF symlinks.
13030
13031 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
13032 (grub_ufs_read_symlink): New function. All users updated.
13033
13034 Check amiga partmap checksum.
13035
13036 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
13037 (grub_amiga_partition): Likewise.
13038 (amiga_partition_map_checksum): New function.
13039 (amiga_partition_map_iterate): Check checksum.
13040
5470225d
VS
130412011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 ROMFS support.
13044
13045 * Makefile.util.def (libgrubmods.a): Add romfs.
13046 * grub-core/Makefile.core.def (romfs): New module.
13047 * grub-core/fs/romfs.c: New file.
13048
d4680a35
VS
130492011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13050
13051 Squashfs v4 support.
13052
13053 * Makefile.util.def (libgrubmods.a): Add squash4.
13054 * grub-core/Makefile.core.def (squash4): New module.
13055 * grub-core/fs/squash4.c: New file.
13056 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
13057 disk_input_start, disk_input.
13058 (get_byte): Handle disk_input.
13059 (grub_zlib_disk_read): New function.
13060 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
13061
bcb18e74
FZ
130622011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
130632011-05-15 Feiran Zheng <famcool@gmail.com>
13064
13065 * Makefile.util.def (libgrubmods.a): Add minix3.
13066 * grub-core/Makefile.core.def (minix3): New module.
13067 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
13068 (GRUB_MINIX_BSIZE): Removed.
13069 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
13070 (grub_minix_ino_t): New type.
13071 (grub_minix_le_to_cpu_ino): New macro.
13072 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
13073 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
13074 (grub_minix_data): New field block_size.
13075 (grub_minix_read_file): Handle 64-bit correctly.
13076 * grub-core/fs/minix3.c: New file.
13077
32297d5f
TG
130782011-05-15 Tristan Gingold <gingold@free.fr>
130792011-05-15 Robert Millan <rmh.grub@aybabtu.com>
130802011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13081
13082 IA64 support.
13083
13084 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
13085 * configure.ac: Add ia64-efi target.
13086 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
13087 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
13088 * gentpl.py: Add ia64_efi platform.
13089 Rename x86_efi to efi and Add ia64-efi. All users updated.
13090 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
13091 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
13092 Remove kern/generic/rtc_get_time_ms.c on EFI.
13093 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
13094 kern/ia64/dl_helper.c on ia64-efi.
13095 Add kern/emu/cache.c on emu.
13096 (linux): Use on loader/ia64/efi/linux.c on ia64.
13097 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
13098 whether symbol is a function.
13099 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
13100 (grub_symbol): New field 'isfunc'.
13101 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
13102 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
13103 (grub_dl_load_segments): Place all sections into the same region.
13104 [__ia64__]: Create trampolines and got.
13105 [GRUB_MACHINE_EMU]: Call mprotect.
13106 (grub_dl_resolve_symbols): Resolve symbol type as well.
13107 [__ia64__]: Create function descriptors.
13108 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
13109 (grub_rtc_get_time_ms): ... this. Expressions simplified.
13110 (grub_get_rtc): New function.
13111 * grub-core/kern/emu/cache.c [__ia64__]: New file.
13112 * grub-core/kern/emu/cache.S: Renamed to ...
13113 * grub-core/kern/emu/cache_s.S: ... this.
13114 [__ia64__]: Add a nop.
13115 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
13116 [__ia64__]: New function.
13117 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
13118 * grub-core/kern/ia64/dl.c: New file.
13119 * grub-core/kern/ia64/dl_helper.c: Likewise.
13120 * grub-core/kern/ia64/efi/init.c: New file.
13121 * grub-core/kern/ia64/efi/startup.S: Likewise.
13122 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
13123 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
13124 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
13125 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
13126 * grub-core/loader/ia64/efi/linux.c: New file.
13127 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
13128 (GRUB_MOD_DEP): Likewise.
13129 (grub_dl) [__ia64__]: New fields got and tramp.
13130 (grub_dl): New field 'base'.
13131 (grub_dl_register_symbol): New argument isfunc. All users updated.
13132 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
13133 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
13134 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
13135 (grub_ia64_dl_get_tramp_got_size): New proto.
13136 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
13137 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
13138 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
13139 * include/grub/efi/api.h: Skip call wrappers on ia64.
13140 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
13141 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
13142 * include/grub/elf.h (ELF_ST_INFO): New definition.
13143 * include/grub/ia64/efi/kernel.h: New file.
13144 * include/grub/ia64/efi/memory.h: Likewise.
13145 * include/grub/ia64/efi/time.h: Likewise.
13146 * include/grub/ia64/kernel.h: Likewise.
13147 * include/grub/ia64/setjmp.h: Likewise (from glibc).
13148 * include/grub/ia64/time.h: New file.
13149 * include/grub/ia64/types.h: Likewise.
13150 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
13151 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
13152 New protos.
13153 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
13154 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
13155 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
13156 * util/grub-mkimage.c (image_target_desc): New field pe_target.
13157 All users updated.
13158 (EFI64_HEADER_SIZE): New definition. All users updated.
13159 (image_targets): Add ia64-efi.
13160 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
13161 jumpers_addr. All users updated.
13162 Create function descriptors.
13163 (count_funcs): New function.
13164 (unaligned_uint32): New struct.
13165 (MASK20): New definition.
13166 (MASK19): Likewise.
13167 (MASKF21): Likewise.
13168 (add_value_to_slot_20b): New function.
13169 (add_value_to_slot_21_real): Likewise.
13170 (add_value_to_slot_21): Likewise.
13171 (ia64_kernel_trampoline): New struct.
13172 (nopm): New variable.
13173 (jump): Likewise.
13174 (make_trampoline): New function.
13175 (relocate_addresses): Handle ia64.
13176 (make_reloc_section): Likewise.
13177 (load_image): Likewise.
13178
983b414d
VS
131792011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13180
13181 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
13182 warning. Move variables before code while on it.
13183
5d063cdc
VS
131842011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13185
13186 Fuloong support.
13187
13188 * configure.ac: Rename yeeloong platform to loongson. All users updated.
13189 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
13190 * grub-core/boot/mips/loongson/fuloong.S: New file.
13191 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
13192 Explicitly init CS5536.
13193 [FULOONG]: Don't use serial until CS5536 is available.
13194 Set GPIO based on dumps.
13195 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
13196 [FULOONG]: Handle GPIO and memory controller differences.
13197 Parse machine type in $a2.
13198 * grub-core/boot/mips/startup_raw.S: Determine and save the
13199 architecture.
13200 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
13201 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
13202 init on architecture type.
13203 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
13204 SIS315E. Don't init at_keyboard on fuloong.
13205 (grub_halt): Support Fuloong.
13206 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
13207 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
13208 (loongson_machtypes): New array.
13209 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
13210 type.
13211 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
13212 config. All users updated. Handle CS5536 serial.
13213 * grub-core/term/serial.c (grub_serial_register): Conditionalise
13214 default port on machine type. Register serial as inactive.
13215 * grub-core/video/sis315pro.c: New file.
13216 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
13217 definition.
13218 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
13219 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
13220 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
13221 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
13222 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
13223 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
13224 to ...
13225 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
13226 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
13227 definition.
13228 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
13229 (grub_arch_machine): New extern var.
13230 * include/grub/mips/loongson/serial.h
13231 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
13232 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
13233 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
13234 (GRUB_MACHINE_SERIAL_PORT0): ... this.
13235 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
13236 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
13237 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
13238 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
13239 * include/grub/term.h (grub_term_register_input_inactive): New inline
13240 function.
13241 (grub_term_register_output_inactive): Likewise.
13242 * include/grub/video.h (grub_video_driver_id): New value
13243 GRUB_VIDEO_DRIVER_SIS315PRO.
13244 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
13245 New field "names". All users updated.
13246 New field value IMAGE_FULOONG_FLASH.
13247 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
13248
6ada82d1
JU
132492011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
13250
13251 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
13252 and add some clarification.
13253
90c571a4
VS
132542011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13255
13256 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
13257 platforms if kernel is compressed.
13258
de04eecf
VS
132592011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13260
13261 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
13262 unused modules since currently referrence counter isn't reliable and
13263 there isn't much memory to recover there anyway.
13264
57688121
VS
132652011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13266
13267 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
13268 rather than resetting it to allow modules to reference themselves
13269 in init.
13270
3d2c7e35
VS
132712011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13272
13273 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
13274 counter on dependencies since grub_dl_unref already handles this.
13275
b25db218
VS
132762011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13277
13278 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
13279 on error if not already done.
13280
25a45338
VS
132812011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13282
13283 Fix few potential memory misusage.
13284
13285 * grub-core/font/font.c (load_font_index): Don't free char_index to
13286 avoid double free.
b25db218
VS
13287 (grub_font_load): Zero-fill font at alloc for safety.
13288 Close file on error.
13289 (free_font): Free bmp_idx.
25a45338 13290
0cac83df
VS
132912011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13292
13293 * docs/grub.texi (Installation): Fix several outdated claims.
13294
2217a143
VS
132952011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13296
13297 Handle module_license on windows.
13298
13299 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
13300 sections shifted.
13301 (insert_string): Make argument const char * instead of char *.
13302 (write_section_data): Handle long section names.
13303 Handle module_license.
13304
d4de6b01
VS
133052011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13306
13307 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
13308 handle class-free menuentries.
13309 (grub_normal_add_menu_entry): Add a check to be sure.
13310
4c2a3b43
VS
133112011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13312
13313 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
13314 PgUp and PgDown.
13315
85c6210f
VS
133162011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13317
13318 * configure.ac: Bump version to 1.99.
13319
36084912
VS
133202011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13321
13322 Give ATA device a bit more time on first try in order to allow disks
13323 to spin up.
13324
13325 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
13326 if dev->present is 1. Reset dev->present on failure.
13327 (grub_ata_device_initialize): Set dev->present to 1.
13328 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
13329 (grub_ata_device): New member 'present'.
13330
bda0e219
VS
133312011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13332
13333 * util/grub-mkimage.c (generate_image): Update hash.
13334
19e1c41b
VS
133352011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13336
13337 Flush caches on DMA memory.
13338
13339 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
13340 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
13341 (grub_dma_free): Likewise.
13342 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
13343
91bbcc0c
VS
133442011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13345
13346 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
13347 to avoid asm treating ld and sd as macros.
13348
60ddfad3
VS
133492011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13350
13351 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
13352 decompressor.
13353
a298aa04
VS
133542011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13355
13356 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
13357 grub_decompress_core since later would fail if grub_decompress_core
13358 is too far.
13359
9b44feca
VS
133602011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13361
13362 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
13363 R_MIPS_JALR since it's used by newer compiler.
13364
56dbe7b4
VS
133652011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
13366
13367 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
13368
52856af2
VS
133692011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13370
13371 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
13372 file_path to 0 for surety.
13373 (grub_chainloader_boot): Set exit_data to NULL.
13374 Unset the loader once done.
13375 (grub_cmd_chainloader): Fix confusing error message if file is empty.
13376
9c9bfc6d
VS
133772011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13378
13379 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
13380 unknown key into a dprintf.
13381
dd94a3df
VS
133822011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13383
13384 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
13385 on first non-existant partition.
13386
fa68d99c
VS
133872011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13388
13389 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
13390 openning fails.
13391 Reported by: Mark Korenberg.
13392
157effb7
VS
133932011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13394
13395 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
13396 overflow.
13397
ea75312f
VS
133982011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13399
13400 * util/grub-mkimage.c (main): Explicitely flush and sync the output
13401 before closing to ensure that it will be readable by grub-setup.
13402
072b5d31
VS
134032011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13404
13405 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
13406 (devpath_1): Use MAKE_PIWG_PATH.
13407 (devpath_2): Likewise.
13408 (devpath_3): Likewise.
13409 (devpath_4): Likewise.
13410 (devpath_5): Likewise.
13411 (devpath_6): Likewise.
13412
13413 The appleldr.mod was checked that to be binary identical to previous
13414 version.
13415
7fae0051
Z
134162011-05-05 Zach <mikezackles>
13417
13418 Support 2010 Macbooks.
13419
13420 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13421 (devs): Add devpath_6.
13422
7c515bee
VS
134232011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13426 /dev/random. /dev/urandom is good enough for our purposes (salting).
13427
ed660bd8
VS
134282011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13429
13430 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13431
ee5614b7
VS
134322011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13433
13434 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13435 hexadecimal.
13436
664889a6
VS
134372011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13438
13439 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13440 and not 0 on failure.
13441
bd405bbc
CW
134422011-05-03 Colin Watson <cjwatson@ubuntu.com>
13443
13444 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13445 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13446 disk; otherwise grub_fs_probe will not fall back to the next
13447 filesystem.
13448 (grub_pxefs_open): Likewise, for consistency.
13449 Reported and tested by: Ezekiel Grave.
13450
4ebff753
CW
134512011-05-03 Colin Watson <cjwatson@ubuntu.com>
13452
13453 * tests/partmap_test.in: Don't hardcode path to parted.
13454 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13455
8f942553
CW
134562011-05-01 Colin Watson <cjwatson@ubuntu.com>
13457
13458 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13459 of `ls' to find out which devices are available.
13460
3c62402d
VS
134612011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13462
13463 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13464 than source address for efi mmap buffer.
13465
723f63f2
VS
134662011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13467
13468 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13469 wrong action on non-detecting the magic.
13470
68797f92
VS
134712011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13472
13473 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13474 already supplied by another part of the module (fixes compilation on
13475 FreeBSD).
13476
6be8715d
VS
134772011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13480 match the one used by mdadm.
13481
e91dba5b
CW
134822011-04-21 Colin Watson <cjwatson@ubuntu.com>
13483
13484 * po/README: Add instructions for creating po/LINGUAS.
13485
c85140b3
CW
134862011-04-21 Colin Watson <cjwatson@ubuntu.com>
13487
13488 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13489 #551428.
13490
13491 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13492 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13493 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13494 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13495 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13496 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13497 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13498 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13499 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13500 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13501 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13502 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13503 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13504 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13505 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13506 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13507 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13508 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13509 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13510 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13511 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13512 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13513
92051871
CW
135142011-04-21 Colin Watson <cjwatson@ubuntu.com>
13515
13516 * grub-core/kern/emu/getroot.c
13517 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13518 test that was incorrectly reintroduced in r3214.
13519 Reported by: Ian Dall. Fixes Savannah bug #33133.
13520
b13f79a4
CW
135212011-04-21 Colin Watson <cjwatson@ubuntu.com>
13522
13523 Fix stack pointer handling in 16-bit relocator.
13524
13525 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13526 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13527 Fixes Ubuntu bug #683904.
13528
9b710a88
VS
135292011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13530
13531 * configure.ac: Bump version to 1.99~rc2.
13532
d97e7b59
VS
135332011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13534
13535 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13536 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13537 * grub-core/lib/x86_64/setjmp.S: Likewise.
13538 * grub-core/lib/mips/setjmp.S: Likewise.
13539 * grub-core/lib/powerpc/setjmp.S: Likewise.
13540 * grub-core/lib/sparc64/setjmp.S: Likewise.
13541
0624551c
VS
135422011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13543
13544 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13545 * grub-core/lib/efi/datetime.c: Likewise.
13546
e8f28d4c
VS
135472011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13548
13549 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13550 New function.
13551 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13552 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13553 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13554
bba79a15
VS
135552011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13556
13557 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13558 bitmap.
13559 (grub_gfxterm_term_init): Likewise.
13560
abc474ef
VS
135612011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13562
13563 Take into account the decorations the computing menu entry width.
13564
13565 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13566 (grub_gfxmenu_create_box): Register get_border_width.
13567 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13568 if available.
13569 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13570 get_border_width.
13571
e74b3947
EP
135722011-04-18 Endres Puschner <code@e7p.de>
13573
13574 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13575 Don't skip first class.
13576
34faa595
VS
135772011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13578
13579 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13580 chunks.
13581 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13582
93a777e3
VS
135832011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13584
13585 Complete 64-bit division support.
13586
13587 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13588 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13589 * include/grub/misc.h (grub_divmod64): Rename to ...
13590 (grub_divmod64_full): ... this.
13591 (grub_divmod64): New inline function.
13592
a5102d94
VS
135932011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13596
f3fb7b36
VS
135972011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13598
13599 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13600 performing the necessary test.
13601
9ac718b0
VS
136022011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13603
13604 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13605 (kfreebsd.elf): Likewise.
13606 (pc-chainloader.elf): Likewise.
13607 (ntldr.elf): Likewise.
13608
50d2cc5a
VS
136092011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13610
13611 Identify RAID by its UUID rather than (guessed) name.
13612
13613 * grub-core/disk/raid.c (ascii2hex): New function.
13614 (grub_raid_open): Accept mduuid/%s specification.
13615 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13616 (get_mdadm_uuid): ... this.
13617 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13618
e03f7bea
VS
136192011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13620
13621 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13622 to negative size.
13623
e74c3112
CW
136242011-04-13 Colin Watson <cjwatson@ubuntu.com>
13625
13626 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13627 btrfs subvolume.
13628 * util/grub.d/20_linux_xen.in: Likewise.
13629
78fa584f
CW
136302011-04-13 Colin Watson <cjwatson@ubuntu.com>
13631
13632 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13633 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13634
13635 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13636 Build a list of relevant visible mounts using the mnt_id and
13637 parent_mnt_id fields, and then scan that list at the end.
13638
9d5f8162
CW
136392011-04-12 Colin Watson <cjwatson@ubuntu.com>
13640
13641 * docs/grub.texi (normal): New section.
13642 (normal_exit): New section.
13643 (Embedded configuration): Add reference to normal.
13644 (GRUB only offers a rescue shell): Likewise.
13645 * docs/grub-dev.texi (Error Handling): Fix typo.
13646
09a9d66f
CW
136472011-04-12 Colin Watson <cjwatson@ubuntu.com>
13648
13649 * NEWS: Drop obsolete entry about probe-only btrfs support.
13650
0c676933
CW
136512011-04-12 Colin Watson <cjwatson@ubuntu.com>
13652
13653 * util/import_gcry.py: Fix typo.
13654
ec9f5e0d
VS
136552011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13656
13657 * NEWS: Add btrfs support.
13658
fe6b2cba
VS
136592011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
136602011-04-11 Colin Watson <cjwatson@ubuntu.com>
13661
13662 BtrFS support. Written by me (Vladimir) with important bugfixes and
13663 even more important testing by Colin.
13664
13665 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13666 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13667 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13668 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13669 mem_input_off and mem_input. All users updated to accept in-RAM input.
13670 (gzio_seek): New function.
13671 (test_zlib_header): Likewise.
13672 (grub_gzio_read): Likewise.
13673 (grub_zlib_decompress): Likewise.
13674 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13675 Accept partial and non-virtual mounts.
13676 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13677 avoid receiving /dev/dm-X as device.
13678 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13679 Handle bind and partial mounts.
13680 * grub-core/lib/crc.c: New file.
13681 * include/grub/deflate.h: Likewise.
13682 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13683 proto.
13684 * include/grub/lib/crc.h: New file.
13685
e745cf0c
VS
136862011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13687
13688 Implement automatic module license checking according to new GNU
13689 guidelines.
13690
13691 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13692 (grub_dl_load_core): Use grub_dl_check_license.
13693 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13694 (GRUB_MOD_LICENSE): Likewise.
13695 (GRUB_MOD_DUAL_LICENSE): Likewise.
13696 All modules updated.
13697
2a9bc016
CW
136982011-04-11 Colin Watson <cjwatson@ubuntu.com>
13699
13700 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13701 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13702 loaders.
13703 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13704
8a3bc88e
VS
137052011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13706
13707 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13708
af869a4a
VS
137092011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13710
13711 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13712 failed.
13713
9ee8d94f
VS
137142011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13715
13716 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13717 parenthesis in the middle of the filename.
13718
b01abe3e
VS
137192011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13720
13721 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13722 rather than trying to put initrd way too high.
13723 Reported by: Ryan Lortie <desrt@desrt.ca>
13724
335bda1e
VS
137252011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13726
13727 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13728 improperly removed string.
13729
5ca1a64d
VS
137302011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13731
13732 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13733 is_disk.
13734 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13735 (open_device) Likewise.
13736 (grub_util_biosdisk_close): Likewise.
d8ce9995 13737 Reported by: Mark Korenberg.
5ca1a64d 13738
cbac5b1e
AK
137392011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13740
13741 * util/grub-mkconfig_lib.in: Add missing quotes.
13742
088cdb65
CW
137432011-04-10 Colin Watson <cjwatson@ubuntu.com>
13744
13745 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13746 is NULL.
13747
8b8a81fa
VS
137482011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13749
13750 Dynamically count the number of lines for the lower banner.
13751
13752 * grub-core/normal/menu_entry.c (per_term_screen): New member
13753 num_entries.
13754 (print_down): Use num_entries.
13755 (update_screen): Likewise.
13756 (grub_menu_entry_run): Set num_entries.
13757 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13758 num_entries.
13759 (grub_print_message_indented): Move real part to ...
13760 (grub_print_message_indented_real): ... here. Additional argument
13761 dry_run.
13762 (draw_border): Additional argument num_entries.
13763 (print_message): Additional argument dry_run.
13764 (print_entries): Receive menu viewer data.
13765 (grub_menu_init_page): New argment num_entries.
13766 (menu_text_set_chosen_entry): Use num_entries.
13767 (grub_menu_try_text): Likewise.
13768 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13769 All users updated.
13770 (grub_ucs4_count_lines): New function.
13771 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13772 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13773 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13774 (grub_term_border_height): Likewise.
13775 (grub_term_num_entries): Likewise.
13776
277f955b
VS
137772011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13778
13779 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13780 Remove now unused string.
13781
536ce85a
CW
137822011-04-09 Colin Watson <cjwatson@ubuntu.com>
13783
13784 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13785 build system.
13786 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13787
13788 (Comment): Fix typo.
13789 (Getting started): General copy-editing.
13790 (Typical Development Experience): Likewise.
13791 (Error Handling): Likewise.
13792 (Video API): Likewise.
13793
2cf09e32
CW
137942011-04-09 Colin Watson <cjwatson@ubuntu.com>
13795
13796 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13797 throughout.
13798
1ec652f4
VS
137992011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13800
13801 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13802 directory.
13803
2c583728
CW
138042011-04-08 Colin Watson <cjwatson@ubuntu.com>
13805
13806 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13807 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13808 "development".
13809
d7a565e9
VS
138102011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13811
13812 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13813 grub_strcpy since the lines aren't necessarily 0-terminated.
13814
7c2e4909
VS
138152011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13818 root on legacy.
13819
34c09785
VS
138202011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13821
13822 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13823 (GRUB_MOD_INIT): DEVICE isn't optional.
13824
6a6f8058
VS
138252011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13826
13827 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13828 word on new line if it's too long anyway. Fixes a hang.
13829
2e335e90
VS
138302011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13831
13832 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13833 const.
13834 * util/grub-setup.c (main): Reuse md device name if available.
13835 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13836 not GRUB name as argument.
13837 Based on patch by: Florian Wagner <fwagner>.
13838
10a7a867
VS
138392011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13840
13841 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13842 Place mbi on low memory for better compatibility.
13843
7a3d6cd9
VS
138442011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13845
13846 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13847
18dd6b47
VS
138482011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
138492011-04-08 Colin Watson <cjwatson@ubuntu.com>
13850
13851 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 13852 * conf/Makefile.common: Likewise.
18dd6b47 13853
3c0e3f14
VS
138542011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13855
f7148863
VS
13856 * grub-core/normal/menu.c: Add missing include.
13857
138582011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13859
13860 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 13861
6d1fa41f
MZ
138622011-04-08 Martin Zuther <mzuther@mzuther.de>
13863
13864 * util/grub-mkconfig.in: Ignore emacsen backup.
13865
478182a8
VS
138662011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13867
13868 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13869 on open.
13870 (grub_util_biosdisk_close): Likewise.
13871
72a89a54
VS
138722011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13873
13874 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13875 const attribute and use grub_isdigit.
13876
b5ebecfa
A
138772011-04-06 Andrey <dev_null@ukr.net>
13878
13879 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13880 gcc warning.
13881
7755f66e
VS
138822011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13883
13884 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13885 useful grub_dprintf's.
13886
461121ff
VS
138872011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13888
13889 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13890
2a961775
VS
138912011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13892
13893 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13894
adf594cc
VS
138952011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13896
13897 Output errors if theme loading failed.
13898
13899 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13900 grub_gfxterm_fullscreen on error paths to ...
13901 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13902 theme loading error.
13903
665900a3
VS
139042011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13905
13906 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13907 space for older compilers.
13908 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13909
a562b479
VS
139102011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13911
13912 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13913 and report them as not RAID members since they are useless for GRUB.
13914 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13915
850e9373
VS
139162011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13917
13918 Increase LVM implementation robustness in order not to crash on
13919 configurations like pvmove. Previously code assumed that in some places
13920 only lvs or only pvs are used whereas it seems that they are used
13921 interchangeably.
13922
13923 * grub-core/disk/lvm.c (read_node): New function.
13924 (read_lv): Use read_node.
13925 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13926 Match volumes only at the end when all lvs are found. Take both
13927 pvs (first) and lvs (second) into account.
13928 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13929 mirror_* into node_*. All users updated.
13930 (grub_lvm_stripe): Merge this ...
13931 (grub_lvm_mirror): ... and this ...
13932 (grub_lvm_node): ... into this. All users updated.
13933
6f332153
VS
139342011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13935
13936 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13937 of function to allow further scanning for LVMs.
13938
829ea451
VS
139392011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13940
13941 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13942 on failed seek as it breaks open fd reusage.
13943
09ceb9a5
VS
139442011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13945
13946 * util/grub-install.in: Add a recommendation to use --recheck before
13947 reporting bugs.
13948
67e11623
VS
139492011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13950
13951 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13952 are obtained.
13953
caee5efd
VS
139542011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13955
13956 GRUB developper manual based on existing Internals section and
13957 contributions by the various authors with active copyright assignment.
13958
13959 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13960 * docs/font_char_metrics.png: New file.
13961 * docs/font_char_metrics.txt: Likewise.
13962 * docs/grub-dev.texi: Likewise.
13963 * docs/grub.texi (Internals): Move from here ...
13964 * docs/grub-dev.texi: ... here.
13965
2cccc747
CW
139662011-04-01 Colin Watson <cjwatson@ubuntu.com>
13967
13968 Store the loopback device as data on loopback grub_disk structures,
13969 rather than the file it points to. This fixes use of freed memory
13970 if an existing loopback device is replaced.
13971
13972 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13973 disk->data, not dev->file.
13974 (grub_loopback_read): Adjust file assignment to match.
13975 Fixes Ubuntu bug #742967.
13976
186ae367
CW
139772011-04-01 Colin Watson <cjwatson@ubuntu.com>
13978
13979 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13980 when replacing an existing device.
13981
cfed2ad0
VS
139822011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13983
13984 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13985 memory corruptions.
13986
13987 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13988 unsigned.
13989 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13990 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13991 (grub_jfs_read_inode): Likewise.
13992 (grub_jfs_opendir): Likewise. Remove now useless casts.
13993 (grub_jfs_getent): Likewise.
13994 Make ino a grub_uint32_t rather than int.
13995 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13996 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13997 division and module with bit operations.
13998 (grub_jfs_find_file): Make ino a grub_uint32_t.
13999 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
14000
05d2ed32
CW
140012011-04-01 Colin Watson <cjwatson@ubuntu.com>
14002
14003 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
14004 warning. (This was in fact always initialised before use, but GCC
14005 wasn't smart enough to prove that.)
14006 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
14007
91dc6073
VS
140082011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14009
14010 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
14011 stack alignment.
14012 (efi_wrap_1): Likewise.
14013 (efi_wrap_2): Likewise.
14014 (efi_wrap_3): Likewise.
14015 (efi_wrap_4): Likewise.
14016 (efi_wrap_5): Likewise.
14017 (efi_wrap_6): Likewise.
14018 (efi_wrap_10): Likewise.
14019 Based on information by: Red Hat/Peter Jones.
14020
a8afc1d1
CW
140212011-03-31 Colin Watson <cjwatson@ubuntu.com>
14022
14023 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
14024 set-but-not-used variable.
14025
a826cc7d
CW
140262011-03-31 Colin Watson <cjwatson@ubuntu.com>
14027
14028 * docs/grub.texi (Simple configuration): Be more explicit about
14029 GRUB_DEFAULT, and add an example.
14030 Reported by: Leslie Rhorer.
14031
875b67ba
CW
140322011-03-30 Colin Watson <cjwatson@ubuntu.com>
14033
14034 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
14035 shell".
14036
fd7cd914
AS
140372011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
14038
14039 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
14040 * util/grub.d/20_linux_xen.in: Likewise.
14041
090b1b6a
VS
140422011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14043
14044 * util/grub.d/10_linux.in: Try alternative config filenames where
14045 we parse config file.
14046 * util/grub.d/20_linux_xen.in: Likewise.
14047
baad885c
AS
140482011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
14049
14050 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
14051 * util/grub.d/20_linux_xen.in: Likewise.
14052
241e41f5
VS
140532011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14054
14055 * grub-core/disk/raid.c (insert_array): Add few potentially
14056 useful grub_util_info.
14057 (grub_raid_register): Likewise.
14058
56445fb2
VS
140592011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14060
14061 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
14062 Preserve partition number in mdadm code path.
14063
c871b1c6
VS
140642011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14065
14066 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
14067 few potentially useful grub_util_info.
14068
5e631b4f
CW
140692011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14070
14071 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
14072
2d5d0333
CW
140732011-03-30 Colin Watson <cjwatson@ubuntu.com>
14074
14075 * docs/grub.texi (default): Use @example rather than nested
14076 itemized lists to avoid breaking gendocs.
14077
3d7ed04e
CW
140782011-03-30 Colin Watson <cjwatson@ubuntu.com>
14079
14080 * docs/grub.texi (Future): Update.
14081
abf04200 140822011-03-30 Colin Watson <cjwatson@ubuntu.com>
14083
14084 * docs/grub.texi (Environment): New chapter.
14085 (Changes from GRUB Legacy): Link to "Environment block" section for
14086 details of limitations.
14087 (Simple configuration): Likewise. Link to documentation of gfxmode
14088 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
14089 respectively.
14090 (Shell-like scripting): Note that normal variables are stored in the
14091 environment.
14092 (gettext): Link to documentation of lang and locale_dir.
14093 (list_env): New section.
14094 (load_env): New section.
14095 (save_env): New section.
14096
14097 (Reporting bugs): Fix typo.
14098
e1ad0edd
VS
140992011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14100
14101 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
14102 the example.
14103
5d803174
VS
141042011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14105
14106 * grub-core/term/at_keyboard.c (set_scancodes)
14107 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
14108
2a2da1d0
CW
141092011-03-30 Colin Watson <cjwatson@ubuntu.com>
14110
14111 * docs/grub.texi (Menu-specific commands): Remove some semantics
14112 that were true in GRUB Legacy but not in GRUB 2.
14113 (submenu): New section.
14114 (false): New section.
14115 (read): New section.
14116 (true): New section.
14117
a7527639
CW
141182011-03-30 Colin Watson <cjwatson@ubuntu.com>
14119
14120 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
14121
141222011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
14123
14124 * docs/grub.texi (Simple configuration): Explain some of the
14125 current limitations of grub-mkconfig.
8a748df2 14126 Reported by: Leslie Rhorer.
e30af029 14127
fc858482
VS
141282011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14129
14130 Old macs search for boot.efi rather than for bootia32.efi.
14131
14132 * util/grub-install.in: Copy bootia32.efi to boot.efi.
14133 * util/grub-mkrescue.in: Likewise.
14134 Suggested by: Peter Jones.
14135
e1eb511d
VS
141362011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14137
14138 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
14139
70e75364
VS
141402011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14141
14142 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
14143 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
14144 (grub_lvm_mirror): New struct.
14145 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
14146 (grub_lvm_iterate): Iterate only visible volumes.
14147 (grub_lvm_read): Factor out to ..
14148 (read_lv): ... this. Support mirrors.
14149 (grub_lvm_read): New wrapper function.
14150 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
14151 stripped or mirrored.
14152
fc18f6a3
VS
141532011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14154
14155 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
14156
5c650f4c
CW
141572011-03-29 Colin Watson <cjwatson@ubuntu.com>
14158
14159 * docs/grub.texi (loopback): New section.
14160
61d7156b
CW
141612011-03-29 Colin Watson <cjwatson@ubuntu.com>
14162
14163 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
14164 removed -p option.
14165
994b8264
CW
141662011-03-29 Colin Watson <cjwatson@ubuntu.com>
14167
14168 * docs/grub.texi (BIOS installation): New section, partly based on
14169 previous text in other sections.
14170 (Installing GRUB using grub-install): Replace BIOS discussion with a
14171 cross-reference.
14172 (Images): Likewise.
14173
9e4d19e0
VS
141742011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14175
14176 * grub-core/kern/emu/hostdisk.c (find_partition_start)
14177 [HAVE_DIOCGDINFO]: Add safety checks.
14178
a307c0b2
VS
141792011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14180
14181 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
14182 per default compiled in kernel and prior to 8.0 isn't shipped at all.
14183
b4db4f39
CW
141842011-03-29 Colin Watson <cjwatson@ubuntu.com>
14185
14186 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
14187 real_sb->size is zero (e.g. RAID-0), get the disk size from
14188 real_sb->data_size instead.
14189 Fixes Ubuntu bug #743136.
14190
35e5f84c
VS
141912011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14192
14193 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
14194 printf clauses for printing size and start.
14195
d2e29d81
VS
141962011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14197
14198 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
14199 Reported and tested by: Timothy Nikkel.
14200
ed5587af
VS
142012011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14202
14203 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
14204 (dirty_region_add_real): ... this.
14205 (dirty_region_add): Don't discard margin refresh when performing
14206 scheduled repaint.
14207
a1dc717c
VS
142082011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14209
14210 * grub-core/lib/relocator.c (allocate_regstart)
14211 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
14212 terminals are capabple of malloc-free operation.
14213 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14214 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14215
9f3677d3
VS
142162011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
14217
14218 * util/grub-setup.c: Copy the partition table zone if floppy support
14219 is disabled, even if no partition table is found.
14220
14221 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
14222 during POST if an invalid partition table is contained in the PBR
14223 of the active partition when GRUB is installed to a partition.
14224
24148725
CW
142252011-03-28 Colin Watson <cjwatson@debian.org>
14226
14227 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
14228 comment.
14229
f329eda7
CW
142302011-03-28 Colin Watson <cjwatson@debian.org>
14231
14232 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
14233 to be specific about what kind of RAID device we're scanning for.
14234
c482ad98
SG
142352011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
14236
14237 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
14238 return freed string.
14239
5ee04984
VS
142402011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14241
14242 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
14243
f4727da9
VS
142442011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14245
14246 Use libgeom on FreeBSD to detect partitions.
14247
14248 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
14249 (grub-mkrelpath): Likewise.
14250 (grub-script-check): Likewise.
14251 (grub-editenv): Likewise.
14252 (grub-mkpasswd-pbkdf2): Likewise.
14253 (grub-fstest): Likewise.
14254 (grub-mkfont): Likewise.
14255 (grub-mkdevicemap): Likewise.
14256 (grub-probe): Likewise.
14257 (grub-setup): Likewise.
14258 (grub-ofpathname): Likewise.
14259 (grub-mklayout): Likewise.
14260 (example_unit_test): Likewise.
14261 (grub-menulst2cfg): Likewise.
14262 * grub-core/Makefile.core.def (grub-emu): Likewise.
14263 (grub-emu-lite): Likewise.
14264 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
14265 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
14266 define HAVE_DIOCGDINFO.
14267 (follow_geom_up) [FreeBSD]: New function.
14268 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
14269 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
14270 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
14271 unconditionally of HAVE_DIOCGDINFO.
14272
82fe6c75
VS
142732011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 Fix FreeBSD compilation problem.
14276
14277 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
14278 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
14279
4c6c9431
CW
142802011-03-24 Colin Watson <cjwatson@ubuntu.com>
14281
14282 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
14283 Switch back to page zero before loading a kernel, since some kernel
14284 drivers expect that.
14285 Thanks to: Felix Kuehling.
14286
c7064d94
VS
142872011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14288
14289 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
14290 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
14291 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
14292
3f71cded
VS
142932011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14294
14295 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
14296 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
14297
ef6de21a
VS
142982011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14299
14300 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
14301 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
14302 malloc is disabled.
14303
8bc66a2c
VS
143042011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14305
14306 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
14307 for modules headers when counting the needed allocation size.
14308
5657722c
VS
143092011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14310
14311 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
14312 if no ASCII character is found to prevent crash.
14313
41a85f55
AK
143142011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
14315
14316 * grub-core/video/bitmap.c (match_extension): Ignore case.
14317
59e1e5f1
VS
143182011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14319
14320 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
14321
bd4d051a
VS
143222011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14323
14324 * grub-core/script/parser.y: Declare "time" as valid argument.
14325
bae7fcc1
PJ
143262011-03-23 Peter Jones <pjones@redhat.com>
14327
14328 Fix incorrect assert failure reporting.
14329
14330 * grub-core/tests/example_functional_test.c (example_test): Add
14331 a failure comment.
14332 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
14333 (failure_start): ...this. Check that malloc succeeded.
14334 Don't call xvasprintf. Return failure struct.
14335 (failure_append_vtext): New function.
14336 (failure_append_text): Likewise.
14337 (add_failure): Likewise.
14338 (grub_test_assert_helper): Likewise.
14339 * include/grub/test.h (grub_test_assert_helper): New declaration.
14340 (grub_test_assert): Macro rewritten.
14341
537dc9be
VS
143422011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14343
14344 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
14345
fa3e01bf
VS
143462011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14347
14348 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
14349
b1d28404
VS
143502011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14351
14352 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
14353 into GRUB-style one.
14354
2e3e2e09
VS
143552011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14356
14357 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
14358 error and not grub_errno.
14359 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
14360
ed57e557
VS
143612011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14362
14363 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
14364 GRUB_USB_SPEED_NONE in case of failure and not the error code.
14365
d1611f01
VS
143662011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 * grub-core/efiemu/i386/pc/cfgtables.c
14369 (grub_machine_efiemu_init_tables): Make declaration a prototype.
14370 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
14371 (grub_xnu_unlock): Likewise.
14372 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
14373
7d4e39d6
VS
143742011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14375
14376 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
14377 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
14378 * grub-core/commands/hashsum.c (aliases): Likewise.
14379 * grub-core/commands/setpci.c (pci_registers): Likewise.
14380 * grub-core/disk/usbms.c (attach_hook): Likewise.
14381 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
14382 (zio_checksum_table): Likewise.
14383 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
14384 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
14385 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
14386 * grub-core/lib/relocator.c (leftovers): Likewise.
14387 (extra_blocks): Likewise.
14388 * grub-core/loader/i386/bsd.c (relocator): Likewise.
14389 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
14390 (modules_last): Likewise.
14391 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
14392 (devices): Likewise.
14393 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
14394 (modules_last): Likewise.
14395 * grub-core/normal/auth.c (users): Likewise.
14396 * grub-core/normal/context.c (initial_menu): Likewise.
14397 (current_menu): Likewise.
14398 * grub-core/normal/crypto.c (crypto_specs): Likewise.
14399 * grub-core/term/serial.c (grub_serial_ports): Likewise.
14400 (grub_serial_terminfo_input_template): Likewise.
14401 (grub_serial_terminfo_output_template): Likewise.
14402 (grub_serial_terminfo_input): Likewise.
14403 (grub_serial_terminfo_output): Likewise.
14404 (registered): Likewise.
14405 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
14406
40fc4659
VS
144072011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14408
14409 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
14410 grub_video_mode_type_t.
14411 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
14412 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
14413 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14414
2da48d28
VS
144152011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14416
14417 * util/grub-install.in: Correct the x86-64 name as x86_64.
14418
9b43bf39
CW
144192011-03-11 Colin Watson <cjwatson@ubuntu.com>
14420
14421 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14422 initial chunk read from the kernel always includes GRUB's multiboot
14423 header, which is now outside the first sector.
14424
be1a7ce0
CW
144252011-03-09 Colin Watson <cjwatson@ubuntu.com>
14426
14427 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14428 cached mmap_size, so that this works correctly when called multiple
14429 times.
14430 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14431
83a3c48d
CW
144322011-03-09 Colin Watson <cjwatson@ubuntu.com>
14433
14434 * docs/grub.texi (Simple configuration): Tidy up formatting.
14435
57d75699
SJ
144362011-03-07 Szymon Janc <szymon@janc.net.pl>
14437
14438 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14439 Set-but-not-used variable removed.
14440
028501a0
VS
144412011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14442
14443 Workaround yet another IEEE1275 bug.
14444
14445 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14446 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14447 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14448 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14449 is set.
14450 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14451 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14452
d998657d
VS
144532011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14454
14455 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14456 error.
14457
fee7cdd4
CW
144582011-02-11 Colin Watson <cjwatson@ubuntu.com>
14459
14460 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14461 empty, since in that case we can only generate either nothing or a
14462 syntactically invalid configuration file.
14463 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14464
97286eb5
CW
144652011-02-09 Colin Watson <cjwatson@ubuntu.com>
14466
14467 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14468 (Making a GRUB bootable CD-ROM): Likewise.
14469 (Invoking grub-mkrescue): New section.
14470 Reported by: Yann Dirson. Fixes Debian bug #612585.
14471
22b28eb3
CW
144722011-02-09 Colin Watson <cjwatson@ubuntu.com>
14473
14474 * util/grub-install.in: Remove unnecessary brackets from tr
14475 arguments.
14476 * util/grub.d/10_hurd.in: Likewise.
14477 * util/grub.d/10_kfreebsd.in: Likewise.
14478 * util/grub.d/10_linux.in: Likewise.
14479 * util/grub.d/20_linux_xen.in: Likewise.
14480 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14481
7e735e43
CW
144822011-02-08 Colin Watson <cjwatson@ubuntu.com>
14483
14484 * include/grub/file.h (not_easly_seekable): Rename to ...
14485 (not_easily_seekable): ... this. Update all users.
14486
800f1881
CW
144872011-01-28 Colin Watson <cjwatson@ubuntu.com>
14488
14489 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14490 grub-mkrescue.
14491
3281d3d6
VS
144922011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14493
14494 * util/grub-mkimage.c (generate_image): Refuse to create the images
14495 bigger than the actual flash (512K) in Loongson machines. 512K is also
14496 the biggest chip supported by them.
14497
3533413c
VS
144982011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14499
14500 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14501
73ae4f4f
VS
145022011-01-22 Anthony DeRobertis <anthony@derobert.net>
14503
14504 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14505 super_offset field.
14506
37f4f608
VS
145072011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14508
14509 * util/grub-install.in: Ignore install device on platforms
14510 where it doesn't make sense. Always use UUIDs except on pc, efi and
14511 sparc64.
14512 Reported by: Daniel Kahn Gillmor.
14513
03a4ccb5
VS
145142011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14517
ffc8f4d8
VS
145182011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14519
14520 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14521 (iterate_real): Don't rely on partition being non-NULL.
14522
80f23be7
VS
145232011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14524
14525 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14526 supported platforms. Put a compile time assert for this rather than
14527 generate a warning with 32-bit shift.
14528
5d4f4dd5
VS
145292011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14530
14531 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14532 logical expression more readable.
14533
e489601a
VS
145342011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14535
14536 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14537 even if some elements have a name.
14538 Reported by: Alexander GQ Gerasiov.
14539
96e0a6ea
CW
145402011-01-22 Colin Watson <cjwatson@ubuntu.com>
14541
14542 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14543 path unreadable if `grub-probe -t abstraction' fails, for example if
14544 memberlist fails on an LVM volume group.
14545 Reported by: Darius Jahandarie.
14546
81431e2b
CW
145472011-01-22 Colin Watson <cjwatson@ubuntu.com>
14548
14549 * docs/grub.texi (Simple configuration): Document
14550 GRUB_PRELOAD_MODULES.
14551
5e79d66a
CW
145522011-01-17 Colin Watson <cjwatson@ubuntu.com>
14553
14554 * .bzrignore: Remove nonexistent grub-pbkdf2.
14555
646ada34
VS
145562011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14557
14558 * configure.ac: Bump version to 1.99~rc1.
14559
04360337
VS
145602011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14561
14562 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14563 for safety.
14564
46c9db88
VS
145652011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14566
14567 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14568 module.
14569
145702011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
14571
14572 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14573
4fbf1852
VS
145742011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14575
14576 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14577 diskdevid.
14578
f1632d4d
VS
145792011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14580
14581 Fix compilation on cygwin.
14582
14583 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14584 -R .drectve on cygwin.
14585 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14586 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14587 (COND_CYGWIN): New condition.
14588 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14589 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14590 not @TARGET_OBJ2ELF@.
14591 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14592 type to determine whether aux is to be used.
14593
0b5e127b
VS
145942011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14595
14596 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14597 realpath'ed device string.
14598 Handle floppy (somewhat).
14599 Issue error in unknown case rather than garbage.
14600 Reported by: Axel Beckert.
14601
173b71e9
VS
146022011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14603
14604 * util/grub.d/00_header.in (load_video): Handle the case when no video
14605 drivers available.
14606 Thanks to: Axel Beckert.
14607
f8f479db
VS
146082011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14609
14610 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14611 variable. Fixes problem on big endian platforms.
14612
8fc0a245
VS
146132011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14614
14615 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14616 It doesn't work well there.
14617
b8494fbe
VS
146182011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14619
14620 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14621 warning.
14622 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14623 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14624 counter.
14625
b44a558c
VS
146262011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14627
14628 Use alias->path rather than buggy "canon".
14629
14630 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14631 (ofdisk_hash_add): New argument curcan. All users updated.
14632
51fa856c
CW
146332011-01-11 Colin Watson <cjwatson@ubuntu.com>
14634
14635 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14636
9da068a5
VS
146372011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14638
14639 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14640 loadmask before doing any calculations. Use correct type for offset.
14641 (grub_linux_load64): Likewise.
14642
86205c94
CW
146432011-01-11 Colin Watson <cjwatson@ubuntu.com>
14644
14645 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14646 with NULL.
14647 (console_grub_equivalences_unshift): Likewise.
14648 Reported by: Daniel Dehennin.
14649
4531a206
VS
146502011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14653 (set_env_limn_ro): Likewise.
14654 (GRUB_MOD_INIT): Likewise.
14655 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14656 ARRAY_SIZE while on it.
14657 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14658 * grub-core/normal/context.c (grub_env_export): Move from here ...
14659 * grub-core/kern/env.c (grub_env_export): ... here.
14660 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14661 prefix.
14662 * grub-core/kern/main.c (grub_main): Export root and prefix.
14663 * include/grub/env.h (grub_env_export): Export.
14664 Reported by: Seth Goldberg.
14665
45146057
VS
146662011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14667
14668 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14669 Take into account space used by ELF sections and multiboot palette.
14670 Reported by: Grégoire Sutre.
14671
f093110b
VS
146722011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14673
14674 * BUGS: New file.
14675
3395fe52
VS
146762011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14677
14678 Pass more appropriate video id to Linux.
14679
14680 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14681 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14682 fill have_vga.
14683 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14684 shift params->lfb_size.
14685 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14686
c2fa6cbb
VS
146872011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14688
14689 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14690
b3ff6ff0
VS
146912011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14692
14693 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14694 separator and pass bootpath/devid even if only one of them is available.
14695 Reported by: Seth Goldberg.
14696
ae67942e
VS
146972011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14698
14699 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14700 implementations bug on them.
14701
14702 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14703 memory.
14704 (filter_memory_map): Likewise.
14705
d570097a
VS
147062011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14707
14708 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14709 Reported by: nebuchadnezzar.
14710
a508e776
VS
147112011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14712
14713 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14714 Reported by: nebuchadnezzar.
14715
dcb883b1
VS
147162011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14717
14718 Submenu default support.
14719
14720 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14721 auto_boot. All users updated.
14722 Declared static.
14723 Handle chosen and default with submenus.
14724 (grub_menu_execute_with_fallback): Declared static.
14725 Don't notify failure if autobooted. Upper level does it.
14726 (menuentry_eq): New function.
14727 (get_entry_number): Use menuentry_eq.
14728 (show_menu): New parameter "autobooted". All users updated.
14729 (grub_show_menu): Likewise.
14730 * include/grub/normal.h (grub_show_menu): Likewise.
14731 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14732 (grub_menu_execute_with_fallback): Likewise.
14733
6fef99b4
VS
147342011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14735
14736 * util/grub-mklayout.c (usage): Update help text.
14737
47a77af5
VS
147382011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14739
14740 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14741
ce6bb3ee
VS
147422011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14743
14744 * util/grub-menulst2cfg.c (main): Trim the line.
14745
db87be2a
VS
147462011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14747
14748 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14749 (grub_machine_init): Don't check amount of low memory as reportedly
14750 INT 12h can be broken and if low memory is too low we wouldn't have
14751 gotten into grub_machine_init anyway.
14752
c49849cc
VS
147532011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14754
14755 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14756 (grub_machine_mmap_iterate): Take low memory into account
14757
b1969b30
VS
147582011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14759
14760 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14761 badfs.
14762 Reported by: TiCPU.
14763
cf0eaf13
VS
147642011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14765
14766 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14767 members errors.
14768
1f060f39
GS
147692011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14770
14771 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14772 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14773
a21e5672
GS
147742011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14775
14776 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14777 openbsd and netbsd types being in part_bsd module.
14778
c88172fa
VS
147792011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14780
14781 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14782 (_FILE_OFFSET_BITS): Likewise.
14783 Reported by: Seth Goldberg.
14784
53798c4b
GS
147852011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14786
14787 * configure.ac: Check for libdevmapper header.
14788
e7121b69
VS
147892011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14790
14791 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14792 avoid aliasing.
14793 (fzap_lookup): Likewise.
14794 (dnode_get): Likewise.
14795 (make_mdn): Likewise.
14796 (zfs_mount): Likewise.
14797 (fzap_iterate): Use temporary pointer to avoid aliasing.
14798 (grub_zfs_read): Likewise.
14799 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14800 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14801 pointers to avoid aliasing.
14802 (grub_cmd_xnu_kernel64): Likewise.
14803 (grub_xnu_load_driver): Likewise.
14804
fc836af9
VS
148052011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14806
14807 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14808 aliasing warning.
14809 (grub_cmd_terminal_output): Likewise.
14810 Reported and tested by: Grégoire Sutre.
14811
f9f37648
VS
148122011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14813
14814 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14815 warning.
14816 Reported and tested by: Grégoire Sutre.
14817
ec1dfd63
VS
148182011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14819
14820 * configure.ac: Do CPU substitution even if it's specified explicitly.
14821 Reported and tested by: Alain Greppin.
14822
9462775a
VS
148232011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14824
14825 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14826 Reported and tested by: Alain Greppin.
14827
0fd48e35
VS
148282011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14829
14830 Satisfy some bison versions need for inttypes.h.
14831
14832 * grub-core/lib/posix_wrap/inttypes.h: New file.
14833 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14834 (int16_t): Likewise.
14835 (int32_t): Likewise.
14836 (int64_t): Likewise.
14837 Reported and tested by: Alain Greppin.
14838
43f1bc83
VS
148392011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14840
14841 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14842 Silence spurious warning.
14843 Reported and tested by: Alain Greppin.
14844
64d1f041
SJ
148452011-01-07 Szymon Janc <szymon@janc.net.pl>
14846
14847 * docs/grub.texi (Support automatic decompression): Update with xz
14848 decompression support.
14849
25953e10
SJ
148502011-01-07 Szymon Janc <szymon@janc.net.pl>
14851
14852 Improve loaders' kernel command line handling.
14853
14854 * grub-core/lib/cmdline.c: New file.
14855 * include/grub/lib/cmdline.h: Likewise.
14856 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14857 grub_create_loader_cmdline to create kernel command line.
14858 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14859 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14860 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14861 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14862 (linux): Add lib/cmdline.c on common.
14863
e72d259f
VS
148642011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14865
14866 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14867 inopos might be unaligned.
14868
c0cf26da
VS
148692011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14870
14871 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14872 endian transformations.
14873 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14874 Based on report by: Doug Nazar.
14875
0ca09e6c
DN
148762011-01-07 Doug Nazar <nazard.michi@gmail.com>
14877
14878 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14879 array->members[i].start_sector.
14880 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14881
014b6806
VS
148822011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14883
14884 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14885 Reported and tested by: Grégoire Sutre.
14886
415502c2
CW
148872011-01-06 Colin Watson <cjwatson@ubuntu.com>
14888
14889 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14890 avoid causing test failures by clearing the screen.
14891
71b6a2b7
CW
148922011-01-06 Colin Watson <cjwatson@ubuntu.com>
14893
14894 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14895 Fix prefix check to handle the case where dir ends with a slash
14896 (most significantly, "/" itself).
14897 Reported by: Michael Vogt.
14898
b3f8d28a
VS
148992011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14900
14901 Run terminfo_cls on initing terminfo output to clear the screen and
14902 move the cursor to (0,0).
14903
14904 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14905 Call grub_terminfo_output_init.
14906 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14907 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14908 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14909
4c3e4f37
VS
149102011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14911
14912 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14913 only when needed.
14914
488f71f1
VS
149152011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14916
14917 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14918 CTRL.
14919
18a38098
VS
149202011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14921
14922 The E820 type 5 is BADRAM, not EXEC_CODE.
14923
14924 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14925 (GRUB_E820_BADRAM): New define.
14926 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14927 into reserved. Propagate BADRAM.
14928 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14929 (GRUB_E820_BADRAM): New define.
14930
9eae2084
VS
149312011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14932
14933 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14934 Ignore the memory post-4G.
14935 (grub_relocator_firmware_alloc_region): Additional debug statement.
14936
ebc71d28
VS
149372011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14938
14939 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14940 names.
14941 Reported by: David Pravec.
14942
446fa400
VS
149432011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14944
14945 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14946 BIOSes.
14947
a0159f37
VS
149482011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14949
14950 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14951 Prevent overflow.
14952 (grub_reed_solomon_recover): Likewise.
14953
e5146ca1
VS
149542011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14955
14956 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14957
149582011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
14959
14960 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14961 variable.
14962
5b1bdf12
CW
149632011-01-04 Colin Watson <cjwatson@ubuntu.com>
14964
14965 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14966 descriptions of extract_legacy_entries_source and
14967 extract_legacy_entries_configfile.
14968 Reported by: Seung Soo, Ha.
14969
99d925aa
CW
149702011-01-03 Colin Watson <cjwatson@ubuntu.com>
14971
14972 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14973 on devices that do not implement function 0.
14974
4af0504b
DV
149752011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14976
14977 * grub-core/fs/hfsplus.c: Make parent unsigned.
14978 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14979 overflows.
14980 (grub_hfsplus_cmp_extkey): Likewise
14981
469ee10a
VS
149822011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14983
14984 * util/grub-install.in: Correctly use bootloader_id and not
14985 GRUB_DISTRIBUTOR on efibootmgr line.
14986
323a8e9c
VS
149872011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14988
14989 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14990
1b394975
IC
149912010-12-31 Ian Campbell <ijc@hellion.org.uk>
14992
14993 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14994 Xen and reorder menu item wording to make it clearer that this entry
14995 will launch Xen. Print separate messages when loading Xen and
14996 Linux.
14997
275bff5f
VS
149982010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14999
15000 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
15001 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
15002 loop in case of incorrect amiga partmap.
15003
307806cb
VS
150042010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15005
15006 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
15007 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
15008 Reported by:EHeM.
15009
b12b923e
VS
150102010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15011
15012 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
15013 spurious warning.
15014 Reported by: crocket
15015
14b48a19
VS
150162010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15017
15018 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
15019 Preload EFIemu.
15020 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
15021
693db2df
VS
150222010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15023
15024 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
15025 is loaded
15026 (grub_cmd_xnu_kextdir): Likewise.
15027 (grub_cmd_xnu_splash): Likewise.
15028
c7638645
VS
150292010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15030
15031 Avoid using Reed-Solomon with 0 redundancy.
15032
15033 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
15034 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
15035 or 0 redundancy.
15036 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
15037 (grub_reed_solomon_recover): Likewise.
15038
25dd4780
VS
150392010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15040
15041 Don't use disk subsystem in freebsd_boot.
15042
15043 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
15044 (freebsd_biosdev): Likewise.
15045 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
15046 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
15047
0b2db943
VS
150482010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15049
15050 Handling of files of unknown size is currently limited. They can't be
15051 used e.g. for initrd or modules. Moreover gzip handling of not
15052 easily seekable files is buggy. Disable unknown file size for now. May
15053 be inefficient but works.
15054
15055 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
15056 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
15057
5c408d0f
MP
150582010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
15059
15060 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
15061 floppy probe.
15062
190a011a
JD
150632010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
15064
15065 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
15066
022d01b8
SL
150672010-12-25 Shea Levy <shlevy>
15068
15069 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
15070
c4855fdc
VS
150712010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15072
15073 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
15074 Windows Server 2008.
15075 Reported by: Devin Giddings.
15076
0354b867
VS
150772010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15078
15079 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
15080 writing an error message because of async power management.
15081 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
15082 (grub_reboot): Likewise.
15083
ab66c69f
JU
150842010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
15085
15086 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
15087 keep unit tests from failing when they shouldn't.
15088
1426ef35
CW
150892010-12-21 Colin Watson <cjwatson@ubuntu.com>
15090
15091 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
15092 previous patch increased the size of the RS code by 20 bytes (at
15093 least with gcc-4.4), so increase this by 20 bytes to match.
15094 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15095
20641b6b
CW
150962010-12-21 Colin Watson <cjwatson@ubuntu.com>
15097
15098 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
15099 scratch area. Make sure to initialise chosen in standalone mode as
15100 well as non-standalone.
15101 Reported by: Robert Hooker and Andy Whitcroft.
15102 Tested by: Andy Whitcroft.
15103
d060ad60
CW
151042010-12-21 Colin Watson <cjwatson@ubuntu.com>
15105
15106 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
15107 constructing a new unescaped string and passing it to grub_xputs in
15108 one go, rather than passing characters to grub_printf one at a time.
15109
b889cfad
CW
151102010-12-21 Colin Watson <cjwatson@ubuntu.com>
15111
15112 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
15113 initialising utf16.
15114
4e01b6c8
CW
151152010-12-21 Colin Watson <cjwatson@ubuntu.com>
15116
15117 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
15118 comment. Add an extra layer of quotation, requiring the output of
15119 this function to be used in a printf format string.
15120 (gettext_printf): New function.
15121 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
15122 Extract translatable strings from here-documents and use a temporary
15123 variable instead, so that xgettext can find them.
15124 * util/grub.d/10_kfreebsd.in: Likewise.
15125 * util/grub.d/10_linux.in: Likewise.
15126 * util/grub.d/20_linux_xen.in: Likewise.
15127
15128 * po/grub.d.sed: New file.
15129 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
15130 arguments. Set c-format flags on all strings extracted from
15131 util/grub.d/ (xgettext refuses to include these itself for strings
15132 it extracted from a shell file, but these really are c-format).
15133
5318fe98
VS
151342010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15135
15136 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
15137 Avoid next pointing to nowhere.
15138
6c85b743
VS
151392010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15140
15141 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
15142 rather than assuming than rootblock is exactly in the middle.
15143 (grub_affs_label): Likewise.
15144
a2a08a35
VS
151452010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15146
15147 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
15148 reserved_first_sector to 0.
15149 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
15150 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
15151 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
15152
7059d1ec
VS
151532010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15154
15155 Fix handling of UTF-16 UDF labels.
15156
15157 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
15158 (read_string): .. here.
15159 (grub_udf_label): Use read_string.
15160
30aff4cb
BC
151612010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
15162
15163 * grub-core/normal/menu_entry.c (run): Execute commands from menu
15164 editor under argument scope.
15165 Reported by: Jordan Uggla
15166
5cf86f4b
VS
151672010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15168
15169 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
15170
32570200
CW
151712010-12-18 Colin Watson <cjwatson@ubuntu.com>
15172
15173 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
15174 line, and other keys scroll an entire page (previous handling was
15175 for \r and \n to scroll a page and other keys to scroll two lines).
15176
e1dffcf2
VS
151772010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15178
15179 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15180 Set ptrdest to correct get_physical_target_address rather than
15181 incorrect get_virtual_current_address.
15182
b04298cf 151832010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
15184
15185 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
15186 correct cat to grub_uint8_t * rather than grub_uint32_t *.
15187
5367ecd3
CW
151882010-12-10 Colin Watson <cjwatson@ubuntu.com>
15189
15190 * .bzrignore: Ignore grub-core/rs_decoder.S.
15191
1fb430f8
CW
151922010-12-10 Colin Watson <cjwatson@ubuntu.com>
15193
15194 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
15195 .mo/.mo.gz opening sequence to ...
15196 (grub_mofile_open_lang): ... here.
15197 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
15198 * util/grub.d/00_header.in (grub_lang): Include country part of
15199 locale.
15200 Reported by: Mario Limonciello.
15201
a94a6671
RM
152022010-12-09 Robert Millan <rmh@gnu.org>
15203
15204 * NEWS: Document addition of ZFS support.
15205
24b7938b
CW
152062010-12-04 Colin Watson <cjwatson@ubuntu.com>
15207
15208 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
15209 rather than `/ 2', as the latter requires -Wa,--divide which would
15210 require bumping our minimum binutils version.
15211
bddc3ef6
BC
152122010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
15213
15214 * util/grub-script-check.c (main): Print script line number on
15215 error.
15216
bf78d5b2
RM
152172010-12-01 Robert Millan <rmh@gnu.org>
15218
15219 * grub-core/fs/zfs/zfs.c: New file.
15220 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
15221 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
15222 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
15223 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15224
15225 * include/grub/zfs/dmu.h: Likewise.
15226 * include/grub/zfs/dmu_objset.h: Likewise.
15227 * include/grub/zfs/dnode.h: Likewise.
15228 * include/grub/zfs/dsl_dataset.h: Likewise.
15229 * include/grub/zfs/dsl_dir.h: Likewise.
15230 * include/grub/zfs/sa_impl.h: Likewise.
15231 * include/grub/zfs/spa.h: Likewise.
15232 * include/grub/zfs/uberblock_impl.h: Likewise.
15233 * include/grub/zfs/vdev_impl.h: Likewise.
15234 * include/grub/zfs/zap_impl.h: Likewise.
15235 * include/grub/zfs/zap_leaf.h: Likewise.
15236 * include/grub/zfs/zfs.h: Likewise.
15237 * include/grub/zfs/zfs_acl.h: Likewise.
15238 * include/grub/zfs/zfs_znode.h: Likewise.
15239 * include/grub/zfs/zil.h: Likewise.
15240 * include/grub/zfs/zio.h: Likewise.
15241 * include/grub/zfs/zio_checksum.h: Likewise.
15242
15243 * Makefile.util.def: Build ZFS into libgrubmods.
15244 * grub-core/Makefile.core.def: Build zfs.mod.
15245
3f0f3831
SJ
152462010-11-30 Szymon Janc <szymon@janc.net.pl>
15247
15248 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
15249 variable.
15250 * grub-core/commands/wildcard.c (match_files): Likewise.
15251
3a4253b2
RM
152522010-11-30 Robert Millan <rmh@gnu.org>
15253
15254 * grub-core/loader/i386/bsd.c
15255 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
15256 whether kernel is loaded using grub_loader_is_loaded(), rather
15257 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
15258 certain error conditions.
15259
8c317b27
RM
152602010-11-30 Robert Millan <rmh@gnu.org>
15261
c5c9cd3e
RM
15262 * grub-core/commands/echo.c: Include `<grub/term.h>'.
15263 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 15264
49d3ab46
VS
152652010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15266
15267 Avoid using tricks for initialising endian variables.
15268
15269 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
15270 Make const.
15271 (GRUB_MOD_INIT): Don't byte-swap.
15272 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15273 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
15274 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
15275 (grub_swap_bytes32_compile_time): Likewise.
15276 (grub_cpu_to_le32_compile_time): Likewise.
15277 (grub_cpu_to_le16_compile_time): Likewise.
15278
f420a804
VS
152792010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15280
15281 * util/grub-setup.c (setup): Stop recommending --force. People who
15282 understand the dangers of blocklists are able to find this option
15283 anyway and the ones who don't shouldn't use it anyway.
15284
4e7db17b
RM
152852010-11-26 Robert Millan <rmh@gnu.org>
15286
15287 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
15288 Update all users.
15289
9be57a0d
CW
152902010-11-26 Colin Watson <cjwatson@ubuntu.com>
15291
15292 Fix LVM-on-RAID probing.
15293
15294 * util/grub-probe.c (probe): Remember which disk was detected as
15295 RAID (perhaps an LVM physical volume). Use that disk's raidname
15296 rather than that of the top-level disk.
15297
2c7859b3 152982010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 15299
d7647bb6
BC
15300 Fix cmdline argument quotes for setparams command of menuentry
15301 definitions.
7e623b0d
BC
15302
15303 * grub-core/commands/menuentry.c (setparams_prefix): Use single
15304 quotes for arguments.
f866fe80 15305 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 15306 grub_strchrsub function instead.
f866fe80 15307
7955bea0 15308 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 15309
74f72a64
CW
153102010-11-24 Colin Watson <cjwatson@ubuntu.com>
15311
15312 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
15313 effort by skipping "." and ".." entries up-front.
15314 Suggested by: Michael Lazarev.
15315
5a407278
CW
153162010-11-24 Colin Watson <cjwatson@ubuntu.com>
15317
15318 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
15319 ldflags to ldadd, to fix link line ordering.
15320 (none_decompress): Likewise.
15321
3030d8ec
CW
153222010-11-24 Colin Watson <cjwatson@ubuntu.com>
15323
15324 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
15325 platforms.
15326 (grub-emu-lite): Remove kern/emu/cache.S.
15327
b7fbac12
CW
153282010-11-23 Colin Watson <cjwatson@ubuntu.com>
15329
15330 * util/deviceiter.c (compare_devices): If the by-id link for a
15331 device couldn't be resolved, fall back to sorting by the by-id link
15332 rather than segfaulting.
15333 Reported and tested by: Daniel Mierswa.
15334
5225f328
CW
153352010-11-23 Colin Watson <cjwatson@ubuntu.com>
15336
15337 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
15338 ldflags, to fix link line ordering.
15339
038b3ce8
CW
153402010-11-23 Colin Watson <cjwatson@ubuntu.com>
15341
15342 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
15343 linkers are picky about this.
15344
bf16e98e
CW
153452010-11-23 Colin Watson <cjwatson@ubuntu.com>
15346
15347 * grub-core/Makefile.am (command.lst): Adjust sed expression
15348 ordering so that extended and priority commands aren't treated as
15349 ordinary commands.
15350
7242bab6
CW
153512010-11-23 Colin Watson <cjwatson@ubuntu.com>
15352
15353 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15354 Remove byte-swapping function calls, which are not valid in
15355 structure initialisers.
15356 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
15357 non-const.
15358 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
15359 grub_gpt_partition_type_bios_boot.
15360
14e8b279
CW
153612010-11-22 Colin Watson <cjwatson@ubuntu.com>
15362
15363 Fix test program build on GNU/kFreeBSD.
15364
15365 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
15366 $(LIBNVPAIR)' library dependencies.
15367
e6f63338 153682010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
15369
15370 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
15371
cf8ffc38
CW
153722010-11-22 Colin Watson <cjwatson@ubuntu.com>
15373
15374 * util/grub-install.in: Remove excessive quoting that broke
15375 installations to RAID devices.
15376
7f8b0fd7
VS
153772010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15378
15379 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
15380 bootloader version instead of 0.
15381
dfd240b1
VS
153822010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15383
15384 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
15385 warning.
15386
7b61e609
VS
153872010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15388
15389 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
15390 retrieve the metadat sector if size isn't known.
15391 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15392
9dfe92d0
RM
153932010-11-18 Robert Millan <rmh@gnu.org>
15394
15395 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
15396 with grub_memcmp().
15397
41cc919e
VS
153982010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
15399
15400 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
15401 arrow.
15402 Reported by: Jordan Uggla.
15403
1afcc914
VS
154042010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15405
15406 Make better UTF compliant.
15407
15408 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
15409 sequences as incorrect.
15410 (grub_is_valid_utf8): Likewise.
15411 (grub_utf8_to_ucs4): Likewise.
15412 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
15413 (grub_ucs4_to_utf8_alloc): Likewise.
15414 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15415
f1808884
VS
154162010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15417
15418 Make legacy_source behave like source.
15419
15420 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15421 grub_show_menu.
15422 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15423
24ec575b
CW
154242010-11-16 Colin Watson <cjwatson@debian.org>
15425
15426 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15427 (-Wunused implies -Wunused-parameter, but not vice versa).
15428
72b7c7aa
CW
154292010-11-16 Colin Watson <cjwatson@ubuntu.com>
15430
15431 * configure.ac: Make error messages less confusing by testing for
15432 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15433 accepted, but produces a diagnostic if something else is wrong).
15434
e98937aa
VS
154352010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15436
15437 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15438 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15439 (now unused).
15440 (grub_keyboard_controller_init)
15441 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15442 read the initial state since controller isn't inited yet.
15443
f6bbabc3
VS
154442010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15445
15446 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15447 allocate_regbeg may need to create new chunk header.
15448
22e7dbb2
VS
154492010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15450
15451 Fix quoting in legacy parser.
15452
15453 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15454 single quotes.
15455 (grub_legacy_parse): Likewise.
15456 Reported by: Jordan Uggla.
15457 Tested by: Jordan Uggla.
15458
03f80960
VS
154592010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15460
15461 Don't add -lgcc on i386 and x86_64.
15462
15463 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15464 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15465 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15466
779dc15b
VS
154672010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15468
15469 * configure.ac: Add -Wno-trampolines when supported.
15470
d20a3b37
MV
154712010-11-14 Modestas Vainius <modax@debian.org>
15472
15473 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15474 fakeraid.
15475
e5360933
GC
154762010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15477
15478 Add generic logical block size support for UDF.
15479
15480 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15481 (GRUB_UDF_BLKSZ): Removed.
15482 (struct grub_udf_data): New field "lbshift" to hold the logical block
15483 size of the file system in log2 format. All users updated.
15484 (sblocklist): Change type to unsigned.
15485 (grub_udf_mount): Change type of "sblklist" to unsigned.
15486 Move AVDP search before VRS recognition, because the latter requires
15487 knowledge of the logical block size, which is detected during the
15488 former.
15489 Detect and validate logical block size during AVDP search, adding
15490 support for block sizes 512, 1024 and 4096.
15491 Make VRS recognition independent of block size.
15492
cb0229c5
GC
154932010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15494
15495 Properly handle deleted files on UDF.
15496
15497 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15498 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15499 set.
15500
406858a8
GC
155012010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15502
15503 Support reading files larger than 2 GiB.
15504
15505 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15506 "offset" to grub_off_t.
15507 (grub_udf_read_file): Likewise for parameter "pos".
15508
130da6a7
VS
155092010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15510
15511 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15512 unavailable.
15513 (Simple configuration): Refer to Changes from GRUB Legacy about
15514 save_env availability.
15515
65e93f6b
VS
155162010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15517
15518 * util/grub-install.in: Ignore empty partition table detection
15519 instead of trying to include part_ module.
15520
1fd08bf1
VS
155212010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15522
15523 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15524 LVM on RAID support.
15525
de1a024f
VS
155262010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15527
15528 Properly define WORDS_BIGENDIAN in wrapped environments.
15529
15530 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15531 definition.
15532 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15533
15534 Reported by: Manoel Rebelo Abranches.
15535 Tested by: Manoel Rebelo Abranches.
15536
bc5dd0b9
VS
155372010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15538
15539 * util/grub-mkconfig.in: Fix quoting.
15540
58c184be
VS
155412010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15542
15543 Support big ext2 files.
15544
15545 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15546 (grub_ext2_read_block): Support triple indirect blocks.
15547 (grub_ext2_read_file): Use 64-bit types and read size_high.
15548 (grub_ext2_open): Read size_high.
15549 Reported by: Ximin Luo.
15550 Tested by: Manoel Rebelo Abranches.
15551
5f0c02b3
VS
155522010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15553
15554 * util/grub-install.in: Handle filenames containing spaces.
15555 Reported by: Jordan Uggla.
15556 Tested by: Jordan Uggla.
15557
4417aae6
VS
155582010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15559
15560 * util/grub-mkconfig.in (grub_script_check): New variable.
15561 Use grub_script_check instead of grub-script-check.
15562 Reported by: Barry Jackson.
15563
7625a68e
VS
155642010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15565
15566 * docs/grub.texi (menu): Correct the order.
15567 Reported by: D. Hugh Redelmeier.
15568
10001ac5
VS
155692010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15570
15571 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15572 jump.
15573
9c4cf53b
MRA
155742010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15575
10001ac5
VS
15576 * include/grub/elfload.h (grub_elf32_size): New parameter.
15577 All users updated.
9c4cf53b
MRA
15578 Return maximum segments alignment.
15579 (grub_elf64_size): Likewise.
15580 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15581 Return maximum segments alignment.
15582 (grub_elf64_size): Likewise.
15583 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
15584 (grub_linux_claimmap_iterate): New function. Uses the
15585 "available" property in the "memory" node for memory allocation
15586 for kernel in the PowerPC loader.
9c4cf53b
MRA
15587 (grub_linux_load32): Correctly find linux entry point offset.
15588 (grub_linux_load64): Likewise.
15589
d2bf06bf
RM
155902010-11-07 Robert Millan <rmh@gnu.org>
15591
15592 On mips-yeeloong, build with -march=loongson2f when this flag is
15593 available (GCC >= 4.4).
15594 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15595 `-march=mips3'.
15596 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15597 or otherwise add -march=mips3.
15598
898c99a2
BC
155992010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15600
87220a68
BC
15601 Suppress shell expansion on echo '*' and echo "*" like cases.
15602 Reported by: Jordan Uggla.
898c99a2
BC
15603
15604 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15605 string arguments before shell expansion.
15606 * tests/grub_cmd_echo.in: New testcases.
15607
4f9b406a
RM
156082010-11-07 Robert Millan <rmh@gnu.org>
15609
15610 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15611 transition.
15612
80c6d25e
VS
156132010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15614
15615 * grub-core/kern/emu/hostdisk.c
15616 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15617
4a1a0153
VS
156182010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15619
15620 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15621 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15622 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15623
34706ddc
VS
156242010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15625
15626 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15627
6972dea9
VS
156282010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15629
15630 * util/grub-install.in: Replace useless recomendation to pass
15631 --modules with a recomendation to report a bug.
15632
9c693bd6
VS
156332010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15634
15635 Properly register serial terminfo.
15636 Reported by: Jordan Uggla
15637
15638 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15639 const.
15640 (grub_serial_terminfo_output_template): Likewise.
15641 (grub_cmd_serial): Register "serial" with terminfo.
15642 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15643 grub_serial_terminfo_output.
15644
6c9e4c0c
RM
156452010-11-05 Robert Millan <rmh@gnu.org>
15646
15647 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15648 needed).
15649
b9b3839f
RM
156502010-11-05 Robert Millan <rmh@gnu.org>
15651
15652 On Yeeloong, pass machine type information to Linux.
15653
15654 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15655 (LOONGSON_MACHTYPE): New macro, set to
15656 "machtype=lemote-yeeloong-2f-8.9inches".
15657 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15658 additional argument to Linux.
15659
1a3aaff4
RM
156602010-11-04 Robert Millan <rmh@gnu.org>
15661
15662 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15663 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15664 (its SATA disks are detected as slaveless IDE master drives on
15665 kFreeBSD).
15666 Reported by Carsten Aulbert.
15667
a75f4f62
CW
156682010-11-02 Colin Watson <cjwatson@ubuntu.com>
15669
15670 * util/bin2h.c (main): Fix spelling error in generated output.
15671
33b4b0c6
GS
156722010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15673
15674 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15675
2b36fbf4
VS
156762010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15677
15678 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15679 vga= option is supplied.
15680
74aaf558
VS
156812010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15682
15683 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15684 * util/grub.d/10_kfreebsd.in: Likewise.
15685 * util/grub.d/10_linux.in: Likewise.
15686 * util/grub.d/20_linux_xen.in: Likewise.
15687
6428dec3
VS
156882010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15691 argument as an argument to no-argument option.
15692
f8729d98
VS
156932010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15694
15695 * util/grub.d/10_linux.in: Add missing load_video with explicit
15696 GRUB_GFXPAYLOAD_LINUX.
15697
89d68fa6
VS
156982010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15699
15700 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15701
3a1197cd
VS
157022010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15703
15704 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15705 elements with invlid index.
15706 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15707 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15708 members.
15709 * include/grub/raid.h (grub_raid_member): New struct.
15710 (grub_raid_array): Transform devices and start_sector into usage of
15711 grub_raid_member. All users updated
15712 (allocated_devs): New member.
15713
71574288
VS
157142010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15715
15716 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15717 is modified
15718
8d40ec65
BC
157192010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15720
15721 NetBSD build fix for getline function conflict from gnulib.
15722
15723 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15724 components that depend on gnulib headers.
15725 (libgrubmods.a): Renamed from earlier libgrub.a.
15726 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15727
95b9257e
VS
157282010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15729
15730 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15731 install rather than creating a broken install.
15732
26c53dc6
VS
157332010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15734
15735 * util/grub-setup.c (argp): Remove misleading example of installing to
15736 a partition.
15737
4171b3c5
VS
157382010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15739
15740 * util/grub-setup.c (setup): Clarify the error message.
15741
18568d18
VS
157422010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15743
15744 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15745
4f6a2e21
VS
157462010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15747
15748 * grub-core/kern/emu/misc.c
15749 (grub_make_system_path_relative_to_its_root)
15750 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15751
157522010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
15753
15754 * grub-core/kern/emu/misc.c
15755 (grub_make_system_path_relative_to_its_root): Revert r2882.
15756
e138c458
VS
157572010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15758
15759 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15760 useless field head. All users updated.
15761 (free_subchunk): Correct handling of IN_REGION subchunk.
15762
0cbcdf0e
CW
157632010-10-22 Colin Watson <cjwatson@ubuntu.com>
15764
15765 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15766 (Supported kernels): Likewise.
15767
b65ea155
GS
157682010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15769
15770 Make mktemp invocations portable.
15771
15772 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15773 exit if mktemp fails.
15774 * tests/grub_script_blockarg.in: Likewise.
15775 * tests/partmap_test.in: Likewise.
15776 * tests/util/grub-shell-tester.in: Likewise.
15777 * tests/util/grub-shell.in: Likewise.
15778 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15779 * Makefile.am: Likewise, and chain shell commands with `&&'
15780 instead of ';'.
15781 * util/grub-mkrescue.in: Use the same explicit template as above, and
15782 exit if mktemp fails.
15783
05f43cdd
BC
157842010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15785
15786 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15787 Linux kernel, reported by Dennis Schridde.
15788
800e6a9b
SJ
157892010-10-17 Szymon Janc <szymon@janc.net.pl>
15790
15791 * grub-core/normal/auth.c (grub_auth_check_authentication):
15792 Set-but-not-used variable removed.
15793
d82df574
VS
157942010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15795
15796 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15797 32-bit linux protocol.
15798
7bced458
VS
157992010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15800
15801 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15802 cursor shape for sanity.
15803
5b027690
VS
158042010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15805
15806 * docs/grub.texi (Installation): Document buggy BIOS install.
15807
ba5f65cf
VS
158082010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15809
15810 * docs/grub.texi (Installation): Indent.
15811
fdf2ec9c
VS
158122010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15813
15814 * util/grub-setup.c (setup): New parameter allow_floppy.
15815 (arguments): New member allow_floppy.
15816 (argp_parser): Handle --allow-floppy.
15817 (main): Pass allow_floppy.
15818 * util/grub-install.in: New option --allow-floppy passed though to
15819 grub-setup.
15820
861dfd4c
VS
158212010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15822
15823 * util/grub-install.in: Handle partitionless disks.
15824
f77a8c24
VS
158252010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15826
15827 * util/grub-setup.c (setup): Don't clean blocklists before readability
15828 verfification.
15829
27d9ee32
VS
158302010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15831
15832 * docs/grub.texi (Installation): Document embedding zone. Remove
15833 obsolete grub-install example.
15834
6bdda8f8
SJ
158352010-10-16 Szymon Janc <szymon@janc.net.pl>
15836
15837 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15838 Set-but-not-used variable ifdef'ed.
15839 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15840 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15841 variable removed.
15842 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15843 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15844 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15845 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15846 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15847 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15848 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15849 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15850 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15851 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15852 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15853 Likewise.
15854
e19b016b
VS
158552010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15856
15857 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15858 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15859 enum value.
15860
6c8d3002
VS
158612010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15862
15863 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15864 synonym to _S5_. Needed for some DSDTs.
15865
c32b51c9
VS
158662010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15867
15868 Userspace ACPI parser debugging.
15869
15870 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15871 headers and add relevant defines. Don't include standard headers.
15872 (main) [GRUB_DSDT_TEST]: New function.
15873 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15874 Don't declare functions.
15875
fbfbeb39
VS
158762010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15877
15878 Remove dead grub_efi_mm_fini.
15879
15880 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15881 (ALLOCATED_PAGES_SIZE): Likewise.
15882 (MAX_ALLOCATED_PAGES): Likewise.
15883 (allocated_pages): Likewise.
15884 (grub_efi_allocate_pages): Don't record allocated pages.
15885 (grub_efi_free_pages): Likewise.
15886 (grub_efi_mm_init): Likewise.
15887 (grub_efi_mm_fini): Removed.
15888
65f7ed7c
VS
158892010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15890
15891 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15892 (grub_efi_mm_init): Take into account the memory map size increase.
15893
24977b44
VS
158942010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15895
15896 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15897 (serial_hw_put): Wait based on real time rather than port reads. Don't
15898 roken ports.
15899 * include/grub/serial.h (grub_serial_port): New field broken.
15900
1eb01cd2
RM
159012010-10-16 Robert Millan <rmh@gnu.org>
15902
15903 * grub-core/kern/emu/misc.c
15904 (grub_make_system_path_relative_to_its_root): Fix premature return
15905 when processing non-root ZFS filesystems.
5f8b440b 15906 Reported by Sergio Talens-Oliag.
1eb01cd2 15907
2d5fed60
RM
159082010-10-15 Robert Millan <rmh@gnu.org>
15909
15910 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15911 guarantee compressed ones are processed first.
15912
d0f4c1ea
VS
159132010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15914
15915 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15916 grub_efiemu_autocore.
15917
d87c681f
VS
159182010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15919
15920 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15921 rather than 0x1b.
15922 (grub_console_getkey): Use correct jae opcode rather than ja.
15923
219b3564
RM
159242010-10-12 Robert Millan <rmh@gnu.org>
15925
15926 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15927 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15928 variable. All references updated.
15929
15930 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15931
20c6bb7e
VS
159322010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15933
15934 Correctly distinguish mdraid flavours.
15935
15936 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15937 (insert_array): New argument raid.
15938 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15939 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15940 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15941
74baff84
VS
159422010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15943
15944 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15945 handling of special keys.
15946
3ef068df 159472010-10-02 Aleš Nesrsta <starous@volny.cz>
15948
c7980ad9
VS
15949 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15950 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 15951
a9455194 159522010-10-02 Aleš Nesrsta <starous@volny.cz>
15953
c7980ad9
VS
15954 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15955 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15956 users updated.
a9455194 15957 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 15958 Use right endpoint when querying descriptor.
a9455194 15959
441cfe65
VS
159602010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15961
15962 Clear out 0x80 color bit on EFI.
15963 Tested by: decoder
15964 Reported by: decoder and meta tech.
15965
15966 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15967 (grub_console_setcolorstate): Clear out 0x80 bit.
15968 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15969 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15970 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15971
bf26bcc4
VS
159722010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15973
15974 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15975 Set to "auto".
15976
6e3c515d
VS
159772010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15978
15979 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15980 mo_file after freeing.
15981
e6d983ba
VS
159822010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15983
15984 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15985
74ccb5b5
VS
159862010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15987
15988 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15989 flags.
15990
17821956
VS
159912010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15992
15993 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15994 usage.
15995
ee74fa48
VS
159962010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15997
15998 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15999
16000 * gentpl.py: New groups terminfoinkernel and terminfomodule.
16001 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
16002 and terminfo.h when needed.
16003 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
16004 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
16005 (terminfo): Enable only on terminfokernel.
16006 (extcmd): Likewise.
16007 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
16008 * include/grub/lib/arg.h: Likewise.
16009 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
16010 incorrect usage of ->.
16011
aa438e68
VS
160122010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16013
16014 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
16015 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
16016
57994012
VS
160172010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16018
16019 Fix coreboot compilation.
16020
16021 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16022 Take VBE info into account even if only text is supported.
16023 (fill_vbe_info): Take into account the case when only VGA text
16024 is supported.
16025 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
16026 on coreboot, multiboot and qemu.
16027
2a406611
VS
160282010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16029
16030 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
16031 debug messages.
16032 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
16033
d33613fc
VS
160342010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16035
16036 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
16037 parameters.
16038
44a1b432
VS
160392010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16040
16041 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
16042 if they were BSD-style.
16043
edde54e6
VS
160442010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16045
16046 * grub-core/boot/i386/pc/lnxboot.S: Replace
16047 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
16048 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
16049
b65830fa
VS
160502010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16051
16052 Write embedding zone using Reed-Solomon.
16053
16054 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
16055 * grub-core/Makefile.am (rs_decoder.S): New target.
16056 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
16057 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
16058 (multiboot): Move to RS part.
16059 (post_reed_solomon): New label.
16060 (grub_boot_drive): Move to non-RS part since it's modified in memory
16061 on boot.
16062 Include rs_decoder.S.
16063 * grub-core/lib/reed_solomon.c: New file.
16064 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
16065 New definition.
16066 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
16067 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
16068 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
16069 * include/grub/partition.h (grub_partition_map): Change prototype of
16070 embed to allow returning additional sectors.
16071 * include/grub/reed_solomon.h: New file.
16072 * util/grub-setup.c (setup): Handle Reed-Solomon.
16073
0b4b227f
CW
160742010-09-28 Colin Watson <cjwatson@ubuntu.com>
16075
16076 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16077 i386 and x86-64 definedness tests.
16078
f772623b
YB
160792010-09-27 Yves Blusseau <blusseau@zetam.org>
16080
16081 Fix generation of kernel_syms.lst
16082
16083 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
16084 ASM_PREFIX
16085
8e57a6ca
RM
160862010-09-26 Robert Millan <rmh@gnu.org>
16087
16088 Support degraded ZFS arrays in "grub-probe -t device" resolution.
16089
16090 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
16091 the pool is an array of devices, iterate through it and return the
16092 first device that passes a stat() test (instead of blindly returning
16093 the first one).
16094
f9130836
RM
160952010-09-26 Robert Millan <rmh@gnu.org>
16096
16097 Build fixes for GNU/kFreeBSD.
16098
16099 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
16100 to programs that require ZFS conversion.
16101 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
16102 kernels that don't have FLOPPY_MAJOR.
16103
96510faf
BC
161042010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16105
16106 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
16107
449333eb
BC
161082010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16109
16110 Fix grub-emu build.
16111
16112 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
16113 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
16114 mdraid09 and mdraid1x.
16115
e1fd1939
CW
161162010-09-24 Colin Watson <cjwatson@ubuntu.com>
16117
16118 Re-enable grub-extras.
16119
16120 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
16121 avoid confusing Automake. Run autogen only twice, once for the top
16122 level and once for grub-core. Add Makefile.util.def and
16123 Makefile.core.def from extra modules to the appropriate autogen
16124 invocations. If Makefile.common exists in an extra module, include
16125 it in both Makefile.util.am and grub-core/Makefile.core.am;
16126 similarly, include any Makefile.util.common file in Makefile.util.am
16127 and any Makefile.core.common file in grub-core/Makefile.core.am.
16128 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
16129 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
16130 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
16131 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
16132
16133 * gentpl.py (gvar_add): Turn GVARS into a set.
16134 (global_variable_initializers): Sort global variables on output.
16135 (vars_init): New function.
16136 (first_time): Likewise.
16137 (library): Ensure that non-global variable initialisations are
16138 emitted before the first time we emit code for a library block.
16139 Append to variables rather than setting them. Only emit
16140 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
16141 each conditional path.
16142 (program): installdir() emits an Autogen macro, so must be passed to
16143 var_add rather than gvar_add.
16144 (data): Likewise.
16145 (script): Likewise.
16146 (rules): New function, centralising handling for different target
16147 types. Set up Guile association lists for first_time and vars_init,
16148 and send most output to a diversion so that variable initialisations
16149 can be emitted first.
16150 (module_rules): Use new rules function.
16151 (kernel_rules): Likewise.
16152 (image_rules): Likewise.
16153 (library_rules): Likewise.
16154 (program_rules): Likewise.
16155 (script_rules): Likewise.
16156 (data_rules): Likewise.
16157
16158 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
16159
16160 * .bzrignore: Add contrib and grub-core/contrib. Remove
16161 grub-core/Makefile.gcry.am.
16162
1d12cf29
YB
161632010-09-24 Yves Blusseau <blusseau@zetam.org>
16164
16165 * grub-core/lib/LzFind.c: Add missing include.
16166 * grub-core/lib/LzmaEnc.c: Likewise.
16167 * grub-core/script/lexer.c: Likewise.
16168 * grub-core/script/yylex.l: Likewise.
16169 * util/grub-macho2img.c: Likewise.
16170 * util/grub-menulst2cfg.c: Likewise.
16171 * util/grub-mklayout.c: Likewise.
16172 * util/grub-mkpasswd-pbkdf2.c
16173 * util/grub-mkrelpath.c: Likewise.
16174 * util/resolve.c: Likewise.
16175
dd363028
BC
161762010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
16177
16178 * Makefile.util.def (example_unit_test): Add
16179 grub-core/gnulib/libgnu.a.
16180
f5a109e2
GS
161812010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
16182
16183 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
16184
6d0fa83c
VS
161852010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
16186
16187 Support xz compression on yeeloong.
16188
16189 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
16190 * configure.ac: Check for LZMA.
16191 * grub-core/Makefile.core.def (xz_decompress): New target.
16192 (none_decompress): Likewise.
16193 * grub-core/boot/decompressor/minilib.c: New file.
16194 * grub-core/boot/decompressor/none.c: Likewise.
16195 * grub-core/boot/decompressor/xz.c: Likewise.
16196 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
16197 * grub-core/kern/mips/cache_flush.S: Likewise.
16198 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
16199 * grub-core/kern/mips/startup.S: Move first stage to ...
16200 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
16201 nomacro.
16202 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
16203 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
16204 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
16205 Allocate statically.
16206 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
16207 Allocate statically or use scratch. Don't check CRC32.
16208 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
16209 Allocate statically. Don't check CRC32.
16210 * include/grub/decompressor.h: New file.
16211 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
16212 Removed.
16213 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
16214 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
16215 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
16216 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
16217 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
16218 * util/grub-mkimage.c (grub_compression_t): New type.
16219 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
16220 (image_target_desc): New field default_compression.
16221 (image_targets): Adjust yeeloong targets.
16222 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
16223 (compress_kernel): New parameter comp.
16224 (generate_image): Likewise. Handle new compression case.
16225 (options): New option --compression
16226 (help): Likewise.
16227 (main): Handle new option.
16228
1b655af6
GS
162292010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
16230
16231 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
16232
8f03f0b5
CW
162332010-09-22 Colin Watson <cjwatson@ubuntu.com>
16234
16235 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16236 typo in __i386__ conditional.
16237
7835dfd3
VS
162382010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16239
16240 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
16241 include.
16242
e255597e
VS
162432010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16244
6d0fa83c 16245 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
16246
16247 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
16248 new tags as supported.
16249 (acpiv2_size): New function.
16250 (grub_multiboot_get_mbi_size): Take new tags into account.
16251 (grub_multiboot_make_mbi): Add new tags.
16252 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 16253
6cc14051 162542010-09-21 Aleš Nesrsta <starous@volny.cz>
16255
16256 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
16257 Added missing configuration of USB device.
16258
df7769d8
CW
162592010-09-21 Colin Watson <cjwatson@ubuntu.com>
16260
16261 * grub-core/normal/menu_entry.c (run): Make sure we always return
16262 a value.
16263
b031012d
CW
162642010-09-21 Colin Watson <cjwatson@ubuntu.com>
16265
16266 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
16267 NumberOfPages is UINT64 according to the UEFI specification, not
16268 UINTN. Fix printf format.
16269
174de8f3
CW
162702010-09-21 Colin Watson <cjwatson@ubuntu.com>
16271
16272 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
16273 `err' to grub_usb_err_t.
16274 Reported and tested by: KESHAV P.R.
16275
d7dbe923
CW
162762010-09-21 Colin Watson <cjwatson@ubuntu.com>
16277
16278 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
16279 tpart non-const, so that we can assign to it. (Since this is a
16280 typedef, the constness refers to the pointer rather than what it
16281 points to.)
16282
8d5e2af3
CW
162832010-09-21 Colin Watson <cjwatson@ubuntu.com>
16284
16285 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
16286 $(top_srcdir)/grub-core/gnulib as well as
16287 $(top_builddir)/grub-core/gnulib.
16288 Reported by: KESHAV P.R.
16289
5c527783
CW
162902010-09-21 Colin Watson <cjwatson@ubuntu.com>
16291
16292 * util/grub-install.in: Fix the bootloader ID option to be
16293 consistently --bootloader-id, not --bootloader_id.
16294 Reported by: KESHAV P.R.
16295
d309a16e
CW
162962010-09-21 Colin Watson <cjwatson@ubuntu.com>
16297
16298 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
16299 check hash checksum." consistently translatable.
16300
b830cd16
YB
163012010-09-21 Yves Blusseau <blusseau@zetam.org>
16302
16303 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
16304 $(top_builddir).
16305
c4fe27a8
CW
163062010-09-21 Colin Watson <cjwatson@ubuntu.com>
16307
16308 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
16309 (GRUB_MOD_INIT): Register sha1sum command.
16310 (GRUB_MOD_FINI): Unregister sha1sum command.
16311
a4c1d277
YB
163122010-09-21 Yves Blusseau <blusseau@zetam.org>
16313
16314 Keep boot and grub directory names in sync with utils scripts
16315
16316 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
16317 * config.h.in: Add previous macros.
16318 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
16319 * util/grub-install.in: Use $bootdir and $grubdir variables.
16320
4eff79d2
CW
163212010-09-21 Colin Watson <cjwatson@ubuntu.com>
16322
16323 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
16324 convert partition names to disk names if the new `convert' parameter
16325 is set.
16326 (grub_util_biosdisk_get_grub_dev): If opening the disk device
16327 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
16328 disk in its own right. This can happen with Xen disk images.
16329
934d7e44
YB
163302010-09-21 Yves Blusseau <blusseau@zetam.org>
16331
16332 * util/grub-editenv.c: Update strings to avoid warnings when generating
16333 grub.pot file.
16334 * util/grub-setup.c: Likewise.
934d7e44 16335
df3367cc
VS
163362010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16337
16338 * configure.ac: Change version to 1.99~beta0.
16339
77a94e98
VS
163402010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16341
16342 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
16343 Add BADRAM.
16344 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
16345 Likewise.
16346 * include/multiboot.h: Resynced with specification.
16347 * include/multiboot2.h: Likewise.
16348
269004c1
CW
163492010-09-21 Colin Watson <cjwatson@ubuntu.com>
16350
16351 Fix po directory handling.
16352
16353 * configure.ac: Create po/Makefile.in rather than po/Makefile.
16354 * grub-core/gnulib/Makefile.am: Import gettext module.
16355 * m4/gnulib-cache.m4: Likewise.
16356 * m4/gnulib-comp.m4: Likewise.
16357 * m4/gettext.m4: New file, from gnulib.
16358 * m4/glibc2.m4: Likewise.
16359 * m4/iconv.m4: Likewise.
16360 * m4/intdiv0.m4: Likewise.
16361 * m4/intl.m4: Likewise.
16362 * m4/intldir.m4: Likewise.
16363 * m4/intlmacosx.m4: Likewise.
16364 * m4/intmax.m4: Likewise.
16365 * m4/inttypes-pri.m4: Likewise.
16366 * m4/lcmessage.m4: Likewise.
16367 * m4/lib-ld.m4: Likewise.
16368 * m4/lib-link.m4: Likewise.
16369 * m4/lib-prefix.m4: Likewise.
16370 * m4/lock.m4: Likewise.
16371 * m4/nls.m4: Likewise.
16372 * m4/po.m4: Likewise.
16373 * m4/printf-posix.m4: Likewise.
16374 * m4/progtest.m4: Likewise.
16375 * m4/threadlib.m4: Likewise.
16376 * m4/uintmax_t.m4: Likewise.
16377 * m4/visibility.m4: Likewise.
16378 * po/Makefile.am: Remove.
16379 * po/Makefile.in.in: New file, from gettext.
16380 ($(DOMAIN).pot-update): Support POTFILES-shell.
16381 * po/Makevars: New file.
16382 * po/POTFILES-shell: Rename to ...
16383 * po/POTFILES-shell.in: ... this. Update.
16384 * po/POTFILES: Rename to ...
16385 * po/POTFILES.in: ... this. Update.
16386 * po/Rules-quot: New file, from gettext.
16387 * po/boldquot.sed: Likewise.
16388 * po/en@boldquot.header: Likewise.
16389 * po/en@quot.header: Likewise.
16390 * po/insert-header.sin: Likewise.
16391 * po/quot.sed: Likewise.
16392 * po/remove-potcdate.sin: Likewise.
16393
3e0fa5d0
VS
163942010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16395
16396 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
16397
ade9bd66
VS
163982010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16399
16400 * util/grub.d/20_linux_xen.in: Use submenus.
16401
fc55cc4c
VS
164022010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16403
16404 Support submenus.
16405
16406 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
16407 parameter submenu. All users updated.
16408 * grub-core/normal/main.c (free_menu): Rename to ...
16409 (grub_normal_free_menu): ... this. Made global.
16410 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
16411 if requested.
16412 * grub-core/normal/menu_entry.c (screen): New field submenu.
16413 (make_screen): Set submenu.
16414 (run): Open new context if requested.
16415 * include/grub/menu.h (grub_menu_entry): New field submenu.
16416 * include/grub/normal.h (grub_normal_free_menu): New proto.
16417
600cedf7
VS
164182010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16419
16420 Menu entries extractor.
16421
16422 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16423 variants.
16424 (GRUB_MOD_INIT): Register new variants.
16425 (GRUB_MOD_FINI): Unregister new variants.
16426 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16427 into grub_cmd_legacy_source.
16428 (grub_cmd_legacy_source): Implement extractor variants.
16429 (GRUB_MOD_INIT): Register new variants.
16430 (GRUB_MOD_FINI): Unregister new variants.
16431 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16432 as an extractor.
16433 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16434 search as an extractor.
16435 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16436 test as an extractor.
16437 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16438 as an extractor.
16439 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16440 (grub_env_new_context): New function.
16441 (grub_env_context_open): Likewise.
16442 (grub_env_extractor_open): Likewise.
16443 (grub_env_extractor_close): Likewise.
16444 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16445 grub_extractor_level.
16446 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16447 * include/grub/env.h (grub_env_extractor_open): New proto.
16448 (grub_env_extractor_close): Likewise.
16449 * include/grub/normal.h (grub_extractor_level): New external variable.
16450
7bda3a87
VS
164512010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16452
16453 Make cutmem accept a region specification.
16454 Suggested by: Samuel Thibault
16455
16456 * grub-core/mmap/mmap.c (parsemem): New function.
16457 (grub_cmd_cutmem): Handle new arguments.
16458
2ea57f88
VS
164592010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16460
16461 New command cutmem.
16462
16463 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16464 (GRUB_MOD_INIT): Register new command.
16465 (GRUB_MOD_FINI): Unregister new command.
16466
74342e31
VS
164672010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16468
16469 Support some annoying BSD and Minix subpartitions.
16470
16471 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16472 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16473 Properly handle concatenation.
16474 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16475 * grub-core/normal/completion.c (iterate_partition): Likewise.
16476 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16477 contain partition. All users updated.
16478 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16479 struct.
16480 (grub_openbsdlabel_partition_map): Likewise.
16481 (bsdlabel_partition_map_iterate): Rename to ..
16482 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16483 (bsdlabel_partition_map_iterate): New function.
16484 (netopenbsdlabel_partition_map_iterate): Likewise.
16485 (netbsdlabel_partition_map_iterate): Likewise.
16486 (openbsdlabel_partition_map_iterate): Likewise.
16487 (GRUB_MOD_INIT): Register new partmaps.
16488 (GRUB_MOD_FINI): Unregister new partmaps.
16489 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16490 (grub_partition_msdos_iterate): ... this. All users updated.
16491 Don't support embedding other than in a minix partition.
16492 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16493 proto.
16494 * include/grub/partition.h (grub_partition): New field msdostype.
16495 * util/grub-install.in: Handle openbsd and netbsd types being in
16496 part_bsd module.
16497
1e8d555b
VS
164982010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16499
16500 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16501
16502 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16503 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16504 (mdraid09): ... this.
16505 (mdraid1x): New module.
16506 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16507 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16508
899d8af4
VS
165092010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16510
16511 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16512 vsprintf.
16513
40901acd
CW
165142010-09-20 Colin Watson <cjwatson@ubuntu.com>
16515
16516 * grub-core/commands/efi/lsefimmap.c: Correct header.
16517 * NEWS: Update.
16518
dfe3b247
CW
165192010-09-20 Colin Watson <cjwatson@ubuntu.com>
16520
16521 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16522 as printf format strings; the translations might contain '%' which
16523 could cause a crash.
16524 (main): Likewise.
16525 * util/grub-fstest.c (argp_parser): Likewise.
16526 * util/grub-setup.c (argp_parser): Likewise.
16527 (main): Likewise.
16528
3286a4b4
VS
165292010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16530
16531 Use argp in grub-fstest.
16532
16533 * util/grub-fstest.c: Don't include getopt.h.
16534 Include argp.h.
16535 (root): New variable.
16536 (args_count): Likewise.
16537 (nparm): Likewise.
16538 (num_disks): Likewise.
16539 (images): Likewise.
16540 (cmd): Likewise.
16541 (debug_str): Likewise.
16542 (args): Likewise.
16543 (options): Transformed to argp.
16544 (usage): Removed.
16545 (main): Split argument parsing into ...
16546 (argp_parser): ... this. Changed to argp format.
16547 (argp): New variable.
16548 (main): Use argp_parse.
16549
3dccbe4b
TG
165502010-09-20 Tristan Gingold <gingold@free.fr>
165512010-09-20 Robert Millan <rmh.grub@aybabtu.com>
165522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16553
16554 * grub-core/commands/efi/lsefimmap.c: New file.
16555 * grub-core/Makefile.core.def (lsefimmap): New module.
16556 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16557
38c259a7
VS
165582010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16559
16560 Pause the execution (10s max) if any errors are displayed so the user
16561 has a chance to see them.
16562
16563 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16564 (grub_print_error): Increment grub_err_printed_errors.
16565 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16566 execution if any errors were displayed.
16567 (show_menu): Remove old code for pause.
16568 * grub-core/normal/menu_entry.c (run): Likewise.
16569 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16570 users updated.
16571 (grub_normal_get_char_counter): Likewise.
16572 * include/grub/err.h (grub_err_printed_errors): New external variable.
16573 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16574
f218b09c
VS
165752010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16576
16577 Support multiboot VBE info.
16578
16579 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16580 Take VBE info into account.
16581 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16582 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16583 Call fill_vbe_info when appropriate.
16584 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16585 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16586 as supported.
16587 (grub_multiboot_get_mbi_size): Take new tags into account.
16588 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16589 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16590 Call fill_vbe_tag when appropriate.
16591 (grub_multiboot_make_mbi): Properly align tags.
16592 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16593 function.
16594 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16595 proto.
16596 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16597
a9cc5438
VS
165982010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16599
16600 Suport manual terminal geometry specification.
16601
16602 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16603 Save state in grub_ofconsole_terminfo_output.
16604 (grub_ofconsole_term): Use grub_terminfo_getwh.
16605 (grub_ofconsole_getwh): Removed.
16606 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16607 (grub_serial_term): Use grub_terminfo_getwh.
16608 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16609 (options): New struct.
16610 (OPTION_*): New enum.
16611 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16612 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16613 width and height.
16614 (grub_terminfo_getwh): New proto.
16615 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16616
1a8fed20
VS
166172010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16618
16619 Handle legacy "terminal" command.
16620
16621 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16622 and FLAG_TERMINAL.
16623 (legacy_commands): Add terminal and title.
16624 (grub_legacy_parse): Handle terminal. Simplify title handling.
16625
41e9c57d
VS
166262010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16627
16628 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16629 parameters overflow.
16630
61c874c5
CW
166312010-09-20 Colin Watson <cjwatson@ubuntu.com>
16632
16633 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16634 widthspec.h.
16635
16636 * docs/grub.texi (Shell-like scripting): Document `!'.
16637 (Network): Simplify using new i386-pc-pxe format. Mention
16638 grub-mknetdir.
16639
16640 * NEWS: Update.
16641
943682b4
CW
166422010-09-20 Colin Watson <cjwatson@ubuntu.com>
16643
16644 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16645 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16646 when needed.
16647
6d3d698d
CW
166482010-09-20 Colin Watson <cjwatson@ubuntu.com>
16649
16650 * grub-core/commands/efi/lsefisystab.c: Correct header.
16651 * grub-core/commands/efi/lssal.c: Likewise.
16652 * grub-core/commands/testload.c: Likewise.
16653
c982589f
CW
166542010-09-20 Colin Watson <cjwatson@ubuntu.com>
16655
16656 * util/grub-mkrescue.in: Add explicit root argument to --set to
16657 prevent the UUID being interpreted as an argument to --set (matches
16658 previous change to prepare_grub_to_access_device).
16659
a63c31b6
CW
166602010-09-20 Colin Watson <cjwatson@ubuntu.com>
16661
16662 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16663 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16664 the verbosity of later #ifs.
16665 (find_partition_start): Define this function on FreeBSD too.
16666 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16667 function.
16668 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16669 on FreeBSD.
16670
6439b8ee
YB
166712010-09-20 Yves Blusseau <blusseau@zetam.org>
16672
16673 * util/grub-editenv.c: Use argp instead of getopt.
16674
c5930ec8
YB
166752010-09-20 Yves Blusseau <blusseau@zetam.org>
16676
16677 * util/grub-setup.c: Use argp instead of getopt.
16678
15c69261
YB
166792010-09-20 Yves Blusseau <blusseau@zetam.org>
16680
16681 Use gnulib-tool to create gnulib source files.
16682
16683 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16684 grub-core/gnulib directories
16685 * .bzignore: Add **/.deps and autogenerated gnulib files
16686 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16687 of gnulib macros, add grub-core/gnulib/Makefile
16688 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16689 include m4 directory to aclocal.
16690 * Makefile.util.def: Remove direct compilation of gnulib source files
16691 and use the new grub-core/gnulib/libgnu.a.
16692 * build-aux/config.rpath: move config.rpath from top directory to
16693 build-aux
16694 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16695 in gnulib headers
16696 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16697 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16698 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16699 header.
16700 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16701 string.
16702
e511c9f5
YB
167032010-09-20 Yves Blusseau <blusseau@zetam.org>
16704
16705 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16706 grub-core/genmod.sh and grub-core/gensyminfo.sh
16707
c2dede05
BC
167082010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16709
16710 Add a test for echo command options.
16711
16712 * tests/grub_cmd_echo.in: New test.
16713 * Makefile.util.def: Rules for new test.
16714
c55f5018
SJ
167152010-09-20 Szymon Janc <szymon@janc.net.pl>
16716
16717 Remove crc.mod and move crc command to hashsum.mod.
16718 Remove lib/crc.c - users updated to use gcrypt implementation.
16719
16720 * grub-core/commands/crc.c: Removed.
16721 * grub-core/Makefile.core.def (crc): Module removed.
16722 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16723 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16724 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16725 * grub-core/lib/crc.c: Removed.
16726 * include/grub/lib/crc.h: Removed.
16727 * Makefile.util.def (crc): Remove lib/crc.c
16728 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16729 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16730 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16731 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16732 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16733 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16734
e0337366
VS
167352010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16736
16737 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16738
742f9232
VS
167392010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16740
16741 Split config.h for util and core.
16742
16743 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16744 (ADDR32): Likewise.
16745 (DATA32): Likewise.
16746 (BSS_START_SYMBOL): Likewise.
16747 (END_SYMBOL): Likewise.
16748 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16749 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16750 * config.h.in: New file.
16751 * configure.ac: Use config-util.h as config define file.
16752 Rename MACHINE into GRUB_MACHINE. All users updated.
16753 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16754 updated.
16755 (NESTED_FUNC_ATTR): Likewise.
16756 Substitue new variables.
16757 (COND_HAVE_ASM_USCORE): New conditional.
16758 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16759 (kernel_syms.lst): Use ASM_PREFIX.
16760 * grub-core/kern/emu/console.c: Include config-util.h.
16761 * grub-core/kern/emu/misc.c: Likewise.
16762 * grub-core/kern/emu/mm.c: Likewise.
16763 * include/grub/emu/misc.h: Likewise.
16764 * include/grub/libgcc.h: Likewise.
16765
39feb0e8
VS
167662010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16767
16768 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16769 constants usage.
16770 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16771 Fix GRUB_TERM_KEY_* constants usage.
16772 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16773
9af6dac3
VS
167742010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16775
16776 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16777 print pointer.
16778 * grub-core/bus/usb/uhci.c: Remove empty define.
16779 (grub_uhci_check_transfer): Add missing cast.
16780 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16781 print pointer.
16782 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16783 PRIuGRUB_SIZE.
16784 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16785
d6d94820
VS
167862010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16787
16788 * grub-core/Makefile.core.def (legacycfg): Add
16789 lib/i386/pc/vesa_modes_table.c on emu.
16790
3572f2b6
BC
167912010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16792
16793 Reduce number of temporary files generated by build system.
16794
16795 * grub-core/gencmdlist.sh: Removed.
16796 * grub-core/genfslist.sh: Removed.
16797 * grub-core/genhandlerlist.sh: Removed.
16798 * grub-core/genmodsrc.sh: Removed.
16799 * grub-core/genpartmaplist.sh: Removed.
16800 * grub-core/genparttoollist.sh: Removed.
16801 * grub-core/gentermiinallist.sh: Removed.
16802 * grub-core/genvideolist.sh: Removed.
16803
16804 * grub-core/genmod.sh.in: New file.
16805 * grub-core/gensyminfo.sh.in: New file.
16806
16807 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16808 * conf/Makefile.extra-dist: Update with new files.
16809 * gentpl.py: Remove rules related to unnecessary temporary files.
16810 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16811 and und-* files.
16812 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16813 genmod.sh scripts.
16814 * grub-core/bus/usb/uhci.c: Remove empty #define.
16815 * grub-core/genmoddep.awk: Updated with new syminfo format.
16816 * util/bash-completion.d/Makefile.am: Add config.log to
16817 CLEANFILES.
16818
c836b030
YB
168192010-09-19 Yves Blusseau <blusseau@zetam.org>
16820
16821 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16822
2f4e8053
BC
168232010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16824
16825 * util/grub-mkconfig.in: Check the config script for syntax errors
16826 before saving.
16827
75831c34
CW
168282010-09-19 Colin Watson <cjwatson@ubuntu.com>
168292010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16830
16831 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16832 platforms.
16833 * util/grub-install.in: Add EFI and IEEE1275 support.
16834 * util/i386/efi/grub-install.in: Removed.
16835 * util/ieee1275/grub-install.in: Likewise.
16836
eaf41b25
VS
168372010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16838
16839 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16840 (grub_cmd_cmosclean): Likewise.
16841 (GRUB_MOD_INIT): Register command cmosclean.
16842 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16843 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16844
1a9130dd
CPE
168452010-09-18 Carles Pina i Estany <carles@pina.cat>
168462010-09-18 Aleš Nesrsta <starous@volny.cz>
168472010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16848
16849 Add keyboard layouts support.
16850
16851 * Makefile.util.def (grub-mklayout): New file.
16852 (grub-kbdcomp): New script.
16853 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16854 Add keyboard_layouts.h.
16855 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16856 commands/boot.c on yeeloong.
16857 (keylayouts): New module.
16858 * grub-core/bus/usb/ohci.c
16859 * grub-core/bus/usb/uhci.c
16860 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16861 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16862 (attach_root_port): Likewise.
16863 (poll_nonroot_hub): Likewise.
16864 (grub_usb_poll_devices): Likewise.
16865 (detach_device): Close transfer.
16866 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16867 function.
16868 (grub_usb_bulk_setup_readwrite): Likewise.
16869 (grub_usb_bulk_finish_readwrite): Likewise.
16870 * grub-core/commands/keylayouts.c: New file.
16871 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16872 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16873 aliases.
16874 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16875 support scancode 2.
16876 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16877 * include/grub/keyboard_layouts.h: New file.
16878 * util/grub-mklayout.c: New file.
16879 * util/grub-kbdcomp.in: Likewise.
16880
a1d84a5e
VS
168812010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16882
16883 Unify memory types.
16884
16885 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16886 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16887 types.
16888 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16889 (grub_upper_mem): Likewise.
16890 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16891 * include/grub/memory.h (grub_memory_type_t): New enum.
16892 All users updated.
16893
9696382e
VS
168942010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16895
16896 * grub-core/Makefile.core.def (lsapm): New module.
16897 * grub-core/commands/i386/pc/lsapm.c: New file.
16898 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16899 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16900 Likewise.
16901 * include/grub/i386/pc/apm.h: New file.
16902 * include/multiboot.h (multiboot_apm_info): New struct.
16903
169042010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16905
16906 GRUB-legacy configuration file support.
16907
16908 * Makefile.util.def (grub-menulst2cfg): New util.
16909 * docs/man/grub-menulst2cfg.h2m: New file.
16910 * grub-core/Makefile.core.def (legacycfg): New module.
16911 * grub-core/commands/legacycfg.c: New file.
16912 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16913 (grub_normal_add_menu_entry): ... this.
16914 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16915 (grub_normal_set_password): ...this.
16916 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16917 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16918 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16919 * grub-core/lib/legacy_parse.c: New file.
16920 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16921 * include/grub/i386/pc/vesa_modes_table.h: New file.
16922 * include/grub/legacy_parse.h: Likewise.
16923 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16924 * util/grub-menulst2cfg.c: New file.
16925
bf8d1338
CW
169262010-09-17 Colin Watson <cjwatson@ubuntu.com>
16927
16928 * grub-core/kern/emu/hostdisk.c
16929 (convert_system_partition_to_system_disk): Initialise node.
16930
9c0bad2e
CW
169312010-09-17 Colin Watson <cjwatson@ubuntu.com>
16932
16933 * grub-core/kern/emu/hostdisk.c
16934 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16935 leak.
16936 Reported and based on patch by: Modestas Vainius.
16937
a939d135
CW
169382010-09-17 Colin Watson <cjwatson@ubuntu.com>
16939
16940 Fix DM-RAID probing with recent versions of device-mapper udev
16941 rules.
16942
16943 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16944 canonicalise device paths under /dev/mapper/.
16945 (convert_system_partition_to_system_disk): Compare the
16946 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16947 path, since device nodes under /dev/mapper/ are often symlinks.
16948
0f7ee3c9
YB
169492010-09-17 Yves Blusseau <blusseau@zetam.org>
16950
16951 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16952
10854d0d
YB
169532010-09-16 Yves Blusseau <blusseau@zetam.org>
16954
16955 * configure.ac: Avoid some annoying error messages if freetype-config
16956 program is not found.
16957
108538d8
CW
169582010-09-16 Colin Watson <cjwatson@ubuntu.com>
16959
16960 Support RAID on virtio devices, and others.
16961
16962 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16963 Rename to ...
16964 [__MINGW32__] (grub_find_device): ... this.
16965 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16966 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16967 reasonable default if dir is NULL.
16968 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16969 ...
16970 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16971 (grub_guess_root_device): Update callers.
16972 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16973
16974 * util/raid.c (grub_util_getdiskname): Remove.
16975 (grub_util_raid_getmembers): Use grub_find_device rather than
16976 grub_util_getdiskname.
16977
e5bfc130
CW
169782010-09-16 Colin Watson <cjwatson@ubuntu.com>
16979
16980 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16981 needing to be compiled with serial support.
16982 (ls): Indicate that multiple files are accepted.
16983 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16984 indicate that multiple files are accepted.
16985
be458ae2
CW
169862010-09-16 Colin Watson <cjwatson@ubuntu.com>
16987
16988 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16989 libgrub_a_init.c, and util/bash-completion.d/grub.
16990
cb731b5e
VS
169912010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16992
16993 * util/grub-setup.c (setup): Fix incorrect container semantics.
16994
35139e8a
VS
169952010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16996
16997 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16998 misusage.
16999 Reported by: J. Nick Terry
17000
e50fca4a
VS
170012010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17002
17003 Move embedding routines to partmap sources files.
17004
17005 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
17006 [GRUB_UTIL]: New variable.
17007 (gpt_partition_map_iterate): Set part.parent.
17008 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
17009 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
17010 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
17011 New function.
17012 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
17013 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
17014 (grub_partition_map) [GRUB_UTIL]: New field embed.
17015 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
17016 (setup): Use ->embed.
17017
f00478b7
VS
170182010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17019
17020 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
17021 function.
17022 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
17023 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
17024
2b94e3ff
YB
170252010-09-15 Yves Blusseau <blusseau@zetam.org>
17026
17027 Add function to get completions from usage.
17028
17029 * util/bash-completion.d/grub-completion.bash.in: Add function to get
17030 completions from usage. Use LC_ALL=C to get options properly.
17031
2e04a006
VS
170322010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17033
17034 * grub-core/gnulib/basename-lgpl.c: Imported.
17035 * grub-core/gnulib/basename.c: Likewise.
17036 * grub-core/gnulib/dirname-lgpl.c: Likewise.
17037 * grub-core/gnulib/dirname.c: Likewise.
17038 * grub-core/gnulib/dirname.h: Likewise.
17039 * grub-core/gnulib/stripslash.c: Likewise.
17040
5dcdf93a
VS
170412010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17042
17043 * grub-core/gnulib/error.c: Resynced.
17044 * grub-core/gnulib/getopt.c: Likewise.
17045 * grub-core/gnulib/getopt_int.h: Likewise.
17046 * grub-core/gnulib/regex.h: Likewise.
17047 * grub-core/gnulib/regex_internal.c: Likewise.
17048 * grub-core/gnulib/regex_internal.h: Likewise.
17049
014f47b7
SJ
170502010-09-15 Szymon Janc <szymon@janc.net.pl>
17051
17052 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
17053 CRC calculations and validity checks.
17054 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
17055 calculations.
17056
dd521a4a
SJ
170572010-09-15 Szymon Janc <szymon@janc.net.pl>
17058
17059 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
17060
79c4eeb9
VS
170612010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17062
17063 Fix incorrect echo options handling.
17064 Reported by: Yves Blusseau.
17065
17066 * include/grub/command.h (grub_command_flags_t): New flags
17067 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
17068 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
17069 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
17070
ed80f7d5
VS
170712010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17072
17073 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
17074 users updated.
17075 (GRUB_COMMAND_FLAG_MENU): Likewise.
17076 (GRUB_COMMAND_FLAG_BOTH): Likewise.
17077 (GRUB_COMMAND_FLAG_TITLE): Removed.
17078 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
17079 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
17080 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
17081 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
17082 (grub_command_flags_t): New enum. All users updated.
17083
5fe7620a
SG
170842010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
17085
17086 Fix solaris compilation.
17087
17088 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
17089 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
17090 (grub-emu-list): Likewise.
17091
545b752f
VS
170922010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17093
17094 Remove deprecated root command.
17095
17096 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
17097 updated.
17098
6c1a338c
VS
170992010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17100
17101 * util/i386/pc/grub-setup.c: Merge this ...
17102 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
17103 * util/grub-setup.c: ... into this.
17104 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
17105 New struct.
17106
171072010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17108
17109 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
17110 possible.
17111
d2ea4551
VS
171122010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17113
17114 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
17115 allocate p.
17116
3c3b5040
VS
171172010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17118
17119 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
17120 explicit root argument to set to prevent UUID to be interpreted as
17121 argument to set.
17122
b71c3fae
VS
171232010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17124
17125 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
17126
275433e6
VS
171272010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17128
17129 Don't export grub_gate_a20.
17130
17131 * grub-core/kern/i386/pc/init.c: Remove leftovers.
17132 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
17133 to ...
17134 (grub_gate_a20): ... this. All users updated.
17135 * include/grub/i386/pc/init.h: Removed. All users updated.
17136
a5dbb1f1
VS
171372010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17138
17139 Create euro.pf2 which supports most European languages.
17140
17141 * Makefile.am (grubdata_DATA): Add euro.pf2.
17142 (euro.pf2): New target.
17143 (CLEANFILES): Add euro.pf2.
17144
62a747cb
VS
171452010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17146
17147 * configure.ac: Disable emu-usb by default to prevent inadvertent
17148 device takeover.
17149
608e43b1
VS
171502010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17151
17152 Disable usbserial on grub-emu since our libusb code isn't good enough
17153 yet.
17154
17155 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
17156 (usbserial_pl2303): Likewise.
17157 (usbserial_ftdi): Likewise.
17158
94564f81
VS
171592010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17160
17161 * include/grub/disk.h (grub_disk): Remove has_partitions.
17162 All users updated.
17163 * disk/loopback.c (grub_loopback): Remove has_partitions.
17164 All users updated.
17165 (options): Remove partitions. All users updated.
17166 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
17167 * util/i386/pc/grub-setup.c (setup): copy partition table only when
17168 actual partition table is found.
17169
3352800b
VS
171702010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17171
17172 Remove readability checks (too many false negatives).
17173
17174 * util/grub-install.in: Remove readability checks.
17175 * util/grub-mkconfig.in: Likewise.
17176 * util/grub.d/10_hurd.in: Likewise.
17177 * util/grub.d/10_kfreebsd.in: Likewise.
17178 * util/grub.d/10_linux.in: Likewise.
17179 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
17180 way.
17181
2419f17a
VS
171822010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17183
17184 Enable acpi shutdown on all ACPI platforms.
17185
17186 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
17187 on coreboo, multiboot and EFI.
17188 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
17189 (grub_acpi_halt): Likewise.
17190 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
17191 (grub_cmd_halt): Don't call grub_acpi_halt directly.
17192 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
17193 * grub-core/lib/i386/halt.c (grub_halt)
17194 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
17195
0575c7c3
VS
171962010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17197
17198 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
17199 context.
17200
54ac3cd1
VS
172012010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17202
17203 * grub-core/video/efi_gop.c: Fix over-80-chars line.
17204 * grub-core/video/efi_uga.c: Likewise.
17205
b2a30ac5
VS
172062010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17207
17208 Filter devaliases and never open same device twice.
17209
17210 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
17211 (last_ihandle): Likewise.
17212 (ofdisk_hash_ent): New member shortest.
17213 (ofdisk_hash_add): Add canonical path too.
17214 (scan): New function.
17215 (grub_ofdisk_iterate): Iterate over hashed entries.
17216 (compute_dev_path): Don't add :0.
17217 (grub_ofdisk_open): Don't really open the disk.
17218 (grub_ofdisk_close): Avoid closing unrelated disk.
17219 (grub_ofdisk_read): Implement reopen logic.
17220 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
17221 New function.
17222 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
17223 New proto.
17224
fb53b340
VS
172252010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17226
17227 Fix sparc64.
17228
17229 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
17230 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
17231 right address. Add sparc64_ieee1275_ldflags.
17232 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
17233 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
17234 to grub_host_to_target_addr
17235 (load_image): Likewise.
17236
f452b040
VS
172372010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17238
17239 * grub-core/normal/completion.c (complete_file): Handle device
17240 containing slash.
17241 Fix based on patch by Doug Nazar.
17242
9b5b2541
VS
172432010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17244
17245 grub-mknetdir script.
17246
17247 * Makefile.util.def (grub-mknetdir): New module.
17248 * tests/util/grub-shell.in: Support boot=net
17249 * util/grub-mknetdir.in: New file.
17250
9d2be652
VS
172512010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17252
17253 videoinfo on non-vbe.
17254
17255 * grub-core/Makefile.core.def (vbeinfo): Removed.
17256 (vbetest): Removed.
17257 (videoinfo): New module.
17258 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
17259 * grub-core/commands/i386/pc/vbetest.c: Removed.
17260 * grub-core/commands/videoinfo.c: New file.
17261 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
17262 specification.
17263 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
17264 as vbetest.
17265 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
17266 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
17267 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
17268 mode_number. New parameter mode. All users updated.
17269 (grub_video_gop_iterate): New function.
17270 (grub_video_efi_gop): New member iterate.
17271 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
17272 (grub_vbe_set_video_mode): Remove setting useless fields.
17273 (vbe2videoinfo): New function.
17274 (grub_video_vbe_iterate): Likewise.
17275 (grub_video_vbe_setup): Use vbe2videoinfo.
17276 (grub_video_vbe_print_adapter_specific_info): New function.
17277 (grub_video_vbe_adapter): New fields iterate and
17278 print_adapter_specific_info.
17279 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
17280 All users updated.
17281 (grub_video_mode_info): New field mode_number.
17282 (grub_video_adapter): New fields iterate and
17283 print_adapter_specific_info.
17284
179503f5
TG
172852010-09-13 Tristan Gingold <gingold@free.fr>
172862010-09-13 Robert Millan <rmh.grub@aybabtu.com>
172872010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17288
17289 * grub-core/commands/efi/lsefisystab.c: New file.
17290 * grub-core/commands/efi/lssal.c: Likewise.
17291 * grub-core/Makefile.core.def (lsacpi): New module.
17292 (lsefisystab): Likewise.
17293 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
17294 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
17295 (grub_efi_sal_system_table): New struct.
17296 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
17297 (grub_efi_sal_system_table_memory_descriptor): Likewise.
17298 (grub_efi_sal_system_table_platform_features): Likewise.
17299 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
17300 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
17301 (grub_efi_sal_system_table_ap_wakeup): Likewise.
17302 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
17303
cf9827de
VS
173042010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17305
17306 Support explicit user claim that a device is BIOS-visible.
17307
17308 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
17309 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
17310 * grub-core/kern/emu/hostdisk.c
17311 (convert_system_partition_to_system_disk): Support mdX.
17312 (find_system_device): New parameter add. All users updated.
17313 (grub_util_biosdisk_is_present): New function.
17314 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
17315 proto.
17316
53f0eb1f
VS
173172010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17318
17319 Search hints support.
17320
17321 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
17322 All users updated.
17323
b23ffd70
YB
173242010-09-13 Yves Blusseau <blusseau@zetam.org>
17325
17326 Bash completion script for util commands
17327
17328 * Makefile.am: Add util/bash-completion.d directory
17329 * configure.ac: Likewise.
17330 * util/bash-completion.d/Makefile.am: New file.
17331 * util/bash-completion.d/grub-completion.bash.in: Likewise.
17332
d547dc28
VS
173332010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17334
17335 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
17336 (print_backlog): set backlog_ucs4 and backlog_glyphs.
17337 Reported by: Yves Blusseau.
17338
2fc8ccb9
VS
173392010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17340
17341 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
17342 partition size and offset.
17343
d8a84076
VS
173442010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17345
17346 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
17347
84fb3b3d
VS
173482010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17349
17350 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
17351
768ec2e2
VS
173522010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17353
17354 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
17355 (grub_xvasprintf): Likewise.
17356
4870900f
VS
173572010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17358
17359 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
17360
faca6bec
VS
173612010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17362
17363 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
17364 args ending with NULL.
17365
173662010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
17367
17368 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
17369 pointer.
17370
3c70f225
SJ
173712010-09-11 Szymon Janc <szymon@janc.net.pl>
17372
17373 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
17374
4df7996d
VS
173752010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17376
17377 Shutdown using ACPI.
17378
17379 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
17380 * grub-core/commands/acpihalt.c: New file.
17381 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
17382 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
17383 (grub_acpi_halt): New proto.
17384 (GRUB_ACPI_SLP_EN): New const.
17385 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
17386 (GRUB_ACPI_OPCODE_*): New enum.
17387 (GRUB_ACPI_EXTOPCODE_*): Likewise.
17388
126b4c32
TG
173892010-09-11 Tristan Gingold <gingold@free.fr>
173902010-09-11 Robert Millan <rmh.grub@aybabtu.com>
173912010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17392
17393 * commands/lsacpi.c: New file.
17394 * grub-core/Makefile.core.def (lsacpi): New module.
17395 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
17396 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
17397 (grub_acpi_madt_entry_header): New struct.
17398 (grub_acpi_madt): Likewise.
17399 (grub_acpi_madt_entry_interrupt_override): Likewise.
17400 (grub_acpi_madt_entry_sapic): Likewise.
17401 (grub_acpi_madt_entry_lsapic): Likewise.
17402 (grub_acpi_madt_entry_platform_int_source): Likewise.
17403 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
17404 (PRIuGRUB_UINT32_T): Likewise.
17405 (PRIxGRUB_UINT64_T): Likewise.
17406
1aa4fe88
VS
174072010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17408
17409 Implement loading palette on ieee1275_fb.
17410
17411 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
17412 (have_setcolors): Likewise.
17413 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17414 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17415 (grub_video_ieee1275_set_palette): Implement.
17416
25761e13
VS
174172010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
174182010-09-11 Colin Watson <cjwatson@ubuntu.com>
17419
17420 * util/grub-install.in (grub_partition): New variable.
17421 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17422 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17423 Fixes a bug reported by Yves Blusseau.
17424
050abaea
VS
174252010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17426
17427 Fix emu on mipsel.
17428
17429 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17430 =grub_cpu_flush_cache on all mips and not only yeeloong.
17431 * configure.ac (COND_mips): New conditional.
17432 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17433 platforms.
17434 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17435 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17436 [GRUB_LINKER_HAVE_INIT]: New function.
17437 (grub_emu_post_init): Likewise.
17438 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17439 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17440 * include/grub/cache.h (_mips): Include mips/cache.h.
17441 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17442 LVM and RAID prototypes.
17443 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17444 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17445 function.
17446
5ed7d816
CW
174472010-09-10 Colin Watson <cjwatson@ubuntu.com>
17448
17449 * util/grub-install.in: Don't try to verify core.img until after
17450 running grub-mkimage to create it.
17451
90367e04
RM
174522010-09-10 Robert Millan <rmh@gnu.org>
17453
17454 * util/grub.d/10_hurd.in: Add misc readability checks.
17455 * util/grub.d/10_kfreebsd.in: Likewise.
17456 * util/grub.d/10_linux.in: Likewise.
17457
c452fa66
CW
174582010-09-10 Colin Watson <cjwatson@ubuntu.com>
17459
17460 * util/grub-install.in: ${imgext} won't be defined here until the
17461 install branch is merged. For the meantime, only verify core.img on
17462 i386-pc and sparc64-ieee1275 platforms.
17463
c38fe9f4
RM
174642010-09-10 Robert Millan <rmh@gnu.org>
17465
17466 Solaris support in grub_find_zpool_from_dir(). Thanks
17467 Seth Goldberg for referring to getextmntent() facility.
17468
17469 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17470 `sys/mkdev.h'.
17471 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17472 `<sys/mnttab.h>'.
17473 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17474 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17475 method for finding zpool name.
17476
905f7773
CW
174772010-09-10 Colin Watson <cjwatson@ubuntu.com>
17478
17479 grub-fstest needs the host and hostfs modules while other utilities
17480 actively require those modules to be absent, so grub-fstest needs
17481 its own initialisation and finalisation code.
17482
17483 * Makefile.am (grub_fstest.pp): New target.
17484 (grub_fstest_init.lst): Likewise.
17485 (grub_fstest_init.c): Likewise.
17486 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17487
fb90b546
RM
174882010-09-10 Robert Millan <rmh@gnu.org>
17489
17490 * configure.ac: Check for `struct statfs.f_fstypename' and
17491 `struct statfs.f_mntfromname'.
17492
17493 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17494 kFreeBSD-specific code.
17495
66d4bea5
RM
174962010-09-10 Robert Millan <rmh@gnu.org>
17497
17498 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17499 on ZFS. Now non-main filesystems are supported as / too.
17500
b6a690ee
CW
175012010-09-09 Colin Watson <cjwatson@ubuntu.com>
17502
17503 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17504 and grub-core/disk/host.c to ...
17505 (grub-fstest): ... here. Having the host disk implementation
17506 present confuses grub-probe and other utility programs.
17507
17508 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17509 when writing to a file, not when writing to stdout.
17510
8901b00c 175112010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17512
17513 * tests/partmap_test.in: New test for partitions.
17514 * Makefile.util.def: Rules for new test.
17515
7bf45fdd
RM
175162010-09-09 Robert Millan <rmh@gnu.org>
17517
17518 * util/grub-probe.c (probe): Fix a pair of unhandled error
17519 conditions.
17520
4dfbc574
RM
175212010-09-09 Robert Millan <rmh@gnu.org>
17522
17523 Basic Btrfs support (detection and UUID).
17524
17525 * grub-core/fs/btrfs.c: New file.
17526 * Makefile.util.def (library): Register btrfs.c.
17527 * grub-core/Makefile.core.def: Likewise.
17528
6b8e78ae
RM
175292010-09-08 Robert Millan <rmh@gnu.org>
17530
17531 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17532 with (optional) parameters to specify device and relative path.
17533 * util/grub-install.in: Use is_path_readable_by_grub() to
17534 verify readability of a few critical files.
17535 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17536 verify readability of grub.cfg.new.
17537
27f21a8b
VS
175382010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17539
17540 Split minix.mod into minix.mod and minix2.mod.
17541
17542 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17543 * grub-core/Makefile.core.def (minix2): New module.
17544 * grub-core/fs/minix.c: Use definitions instead of runtime version
17545 checking.
17546 * grub-core/fs/minix2.c: New file.
17547
c0e53ea5
YB
175482010-09-08 Yves Blusseau <blusseau@zetam.org>
17549
17550 Add new --boot-directory option to replace --root-directory
17551
17552 * util/grub-install.in: Add new --boot-directory option
17553 * util/grub-reboot.in: Likewise.
17554 * util/grub-set-default.in: Likewise.
17555
b9fe6ea2
YB
175562010-09-08 Yves Blusseau <blusseau@zetam.org>
17557
17558 * util/grub-mkconfig.in: Use new variable.
17559
d87aedff
YB
175602010-09-08 Yves Blusseau <blusseau@zetam.org>
17561
17562 * configure.ac: Define some useful variables.
17563
e55e8495
VS
175642010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17565
17566 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17567 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17568 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17569 Use terminfo and don't use cursor-on/cursor-off unless it's known
17570 to work.
17571 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17572 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17573
6fa6d675
CW
175742010-09-08 Colin Watson <cjwatson@ubuntu.com>
17575
17576 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17577 starts with "(,", fill the drive containing the loaded image in
17578 between those two characters, but expect that a full partition
17579 specification including partition map names will follow.
17580
92f2aef0
RM
175812010-09-08 Robert Millan <rmh@gnu.org>
17582
17583 * configure.ac: Remove `--enable-grub-fstest' option.
17584 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17585
17586 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17587 `grub-fstest' instead of `grub-probe' for readability verification.
17588 * util/grub-probe.c (probe): Remove readability verification kludge.
17589
99fd620d
RM
175902010-09-08 Robert Millan <rmh@gnu.org>
17591
17592 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17593 initializing `GRUB_FS'.
17594
058e30ac 175952010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17596
17597 Not command (!) support to GRUB script.
17598
17599 * tests/grub_script_not.in: New test.
17600 * Makefile.util.def: Rules for new test.
17601
17602 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17603 ! command as a special case.
17604 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17605
b61d05ed 176062010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17607
058e30ac 17608 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17609 grub_free.
b61d05ed 17610
4d69c786 176112010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17612
17613 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17614
aa3119c4 176152010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17616
17617 * docs/grub.texi (Shell-like scripting): Documentation for break,
17618 continue, shift and return commands.
17619
db0f7e3d
VS
176202010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17621
17622 Rename CD-ROM to cd on BIOS.
17623
17624 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17625 "cd".
17626 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17627
88b87c93
VS
176282010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17629
17630 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17631 * util/grub-probe.c (main): Likewise.
17632 * util/i386/pc/grub-setup.c (main): Likewise.
17633 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17634 Reported and debugged by: alexxy
17635
294f324d
VS
176362010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17637
17638 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17639 diagnostic info.
17640
d7ee3441
JS
176412010-09-05 Jo Shields <directhex@apebox.org>
17642
17643 * util/grub.d/30_os-prober.in: Add missing classes.
17644
d7e06c1f
VS
176452010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17646
17647 * docs/grub.texi (Theme file format): Document new position format.
17648
fc157e53
VS
176492010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17650
17651 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17652 a table. Use @code instead of @verbatim.
17653
506e9a1c
CB
176542010-09-05 Colin D Bennett <colin@gibibit.com>
17655
17656 Gfxmenu documentation.
17657
17658 * docs/grub.texi (Theme file format): New chapter.
17659
f0aff67c
SJ
176602010-09-05 Szymon Janc <szymon@janc.net.pl>
17661
17662 * grub-core/Makefile.core.def (xzio): New module.
17663 * grub-core/io/xzio.c: New file.
17664 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17665 * grub-core/lib/xzembed/xz_config.h: Likewise.
17666 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17667 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17668 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17669 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17670 * grub-core/lib/xzembed/xz_private.h: Likewise.
17671 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17672 * include/grub/file.h (grub_file_filter_id): New compression filter
17673 GRUB_FILE_FILTER_XZIO.
17674
82a85062
VS
176752010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17676
17677 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17678 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17679 size.
17680
3579415d
VS
176812010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17682
17683 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17684 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17685
5124ae6d
VS
176862010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17687
17688 Uncompressed checksum support.
17689
17690 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17691 (check_list): New parameter uncompress.
17692 (grub_cmd_hashsum): Handle --uncompress.
17693
9aadb3d1
VS
176942010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17695
17696 Reintroduce testload.
17697
17698 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17699 from here ...
17700 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17701 (GRUB_MOD_INIT): New function.
17702 (GRUB_MOD_FINI): Likewise.
17703 * grub-core/Makefile.core.def (testload): New module.
17704
a17792c3
SJ
177052010-09-05 Szymon Janc <szymon@janc.net.pl>
17706
17707 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17708 (uint8_t): New type.
17709 (uint16_t): Likewise.
17710 (uint32_t): Likewise.
17711 (uint64_t): Likewise.
17712
b81e40a3
SJ
177132010-09-05 Szymon Janc <szymon@janc.net.pl>
17714
17715 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17716
fc2ef117
VS
177172010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17718
17719 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17720 Made static.
17721 (grub_gzfile_open): Removed. All users updated.
17722 (GRUB_MOD_INIT): New function.
17723 (GRUB_MOD_FINI): Likewise.
17724 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17725 (grub_file_filters_enabled): Likewise.
17726 (grub_file_open): Handle filters.
17727 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17728 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17729 * include/grub/file.h (grub_file_filter_id_t): New type.
17730 (grub_file_filter_t): Likewise.
17731 (grub_file_filters_all): New extern variable.
17732 (grub_file_filters_enabled): Likewise.
17733 (grub_file_filter_register): New inline function.
17734 (grub_file_filter_unregister): Likewise.
17735 (grub_file_filter_disable): Likewise.
17736 (grub_file_filter_disable_compression): Likewise.
17737 * include/grub/gzio.h: Removed.
17738
35ee15e0
BC
177392010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17740
17741 Filename expansion support for wildcards in GRUB script.
17742
17743 * tests/grub_script_expansion.in: New test.
17744 * Makefile.util.def: Rule for new test.
17745
17746 * grub-core/commands/wildcard.c: New file, implements filename
17747 expansion support for GRUB script.
17748 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17749 * grub-core/script/argv.c: Cosmetic changes.
17750 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17751 Refactored to perform wildcard expansion on arguments.
17752 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17753 struct.
17754
17755 * tests/util/grub-shell.in: Fix quoting for read input.
17756
5f0c4aca
BC
177572010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17758
17759 Support for updating environment variables with matched substrings
17760 of regexp.
17761
17762 * tests/grub_cmd_regexp.in: New test.
17763 * Makefile.util.def: Rule for new test.
17764
17765 * grub-core/commands/regexp.c: New option -s to update environment
17766 variables with regexp matches.
17767
3759a35f
SJ
177682010-09-04 Szymon Janc <szymon@janc.net.pl>
17769
17770 * include/grub/file.h (grub_file): New member not_easly_seekable.
17771 (grub_file_seekable): New inline function.
17772 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17773 easily seekable.
17774 (grub_gzio_open): Set not_easly_seekable.
17775 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17776 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17777
ed8c6dec
BC
177782010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17779
17780 Support for options to appear multiple times on cmdline.
17781
17782 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17783 * grub-core/commands/extcmd.c: Support for repeatable option.
17784 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17785 repeatable option support.
17786
17787 Refactor menuentry into a regular command.
17788
17789 * grub-core/commands/menuentry.c: New file, menuentry command
17790 implementation.
17791 * grub-core/Makefile.core.def: Rule update for normal.mod.
17792 * grub-core/normal/main.c: Moved menuentry creation to
17793 grub-core/commands/menuentry.c.
17794 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17795 (grub_menu_execute_entry_real): Removed.
17796 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17797 function.
17798 (grub_script_execute_menuentry): Removed.
17799 * grub-core/script/parser.y (menuentry): Removed.
17800 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17801 * grub-core/script/yylex.l (menuentry): Removed.
17802 * include/grub/menu.h (grub_menu_init): New prototype.
17803 (grub_menu_fini): New prototype.
17804 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17805 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17806 (grub_script_execute_sourcecode): New prototype.
17807
dacd0cf0
BC
178082010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17809
17810 "return" command for GRUB script functions.
17811
17812 * tests/grub_script_return.in: New test.
17813 * Makefile.util.def: Rules for new test.
17814
17815 * grub-core/script/execute.c (grub_script_return): New function.
17816 * grub-core/script/main.c: Register/unregister return commaond.
17817 * include/grub/script_sh.h (grub_script_return): New prototype.
17818
52e72f9d
BC
178192010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17820
17821 "setparams" command to update positional parameters.
17822
17823 * tests/grub_script_setparams.in: New test.
17824 * Makefile.util.def: Rules for new test.
17825
17826 * grub-core/script/argv.c (grub_script_argv_make): New function.
17827 * grub-core/script/execute.c (replace_scope): New function.
17828 (grub_script_setparams): New function.
17829 * grub-core/script/lexer.c: Remove unused variables.
17830 * grub-core/script/main.c: Register/unregister setparams command.
17831 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17832 (grub_script_setparams): New prototype.
17833
25b60c91
BC
178342010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17835
17836 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17837 grub_free order.
17838
37e7bf68
BC
178392010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17840
17841 Support for passing block of commands as an argument to extcmds.
17842
17843 * Makefile.util.def: Rules for new test.
17844 * tests/grub_script_blockarg.in: New test.
17845 * grub-core/tests/test_blockarg.c: New file, block argument
17846 command used in the test.
17847
17848 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17849 (grub_register_extcmd_prio): New function prototype.
17850 (grub_extcmd_dispatcher): New function prototype.
17851 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17852 type.
17853 * include/grub/script_sh.h (struct grub_script): New members
17854 `children', `next_siblings' and `refcnt' for block arguments and
17855 reference counting.
17856 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17857 (grub_script_arg): New member `script' for block argument.
17858 (grub_script_argv): New member `script' for block argument.
17859 (grub_parser_param): New member `scripts' for block argument.
17860 (grub_script_mem_free): New extern function prototype.
17861 (grub_script_ref): New function prototype.
17862 (grub_script_unref): New function prototype.
17863
17864 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17865 extcmd form to support block arguments.
17866 * grub-core/script/argv.c: Block arguments support.
17867 * grub-core/script/execute.c: Likewise.
17868 * grub-core/script/lexer.c: Likewise.
17869 * grub-core/script/main.c: Likewise.
17870 * grub-core/script/script.c: Likewise.
17871 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17872 non-terminals.
17873
17874 * grub-core/commands/acpi.c: Update extcmd implementations with
17875 grub_extcmd_context_t.
17876 * grub-core/commands/cat.c: Likewise.
17877 * grub-core/commands/echo.c: Likewise.
17878 * grub-core/commands/extcmd.c: Likewise.
17879 * grub-core/commands/hashsum.c: Likewise.
17880 * grub-core/commands/hdparm.c: Likewise.
17881 * grub-core/commands/help.c: Likewise.
17882 * grub-core/commands/hexdump.c: Likewise.
17883 * grub-core/commands/i386/cpuid.c: Likewise.
17884 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17885 * grub-core/commands/i386/pc/halt.c: Likewise.
17886 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17887 * grub-core/commands/iorw.c: Likewise.
17888 * grub-core/commands/keystatus.c: Likewise.
17889 * grub-core/commands/loadenv.c: Likewise.
17890 * grub-core/commands/ls.c: Likewise.
17891 * grub-core/commands/lspci.c: Likewise.
17892 * grub-core/commands/memrw.c: Likewise.
17893 * grub-core/commands/probe.c: Likewise.
17894 * grub-core/commands/search_wrap.c: Likewise.
17895 * grub-core/commands/setpci.c: Likewise.
17896 * grub-core/commands/sleep.c: Likewise.
17897 * grub-core/disk/loopback.c: Likewise.
17898 * grub-core/hello/hello.c: Likewise.
17899 * grub-core/loader/i386/bsd.c: Likewise.
17900 * grub-core/loader/xnu.c: Likewise.
17901 * grub-core/term/gfxterm.c: Likewise.
17902 * grub-core/term/serial.c: Likewise.
17903 * grub-core/tests/lib/functional_test.c: Likewise.
17904
888d1500
BC
179052010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17906
17907 Multi-line quoted strings support.
17908
17909 * grub-core/script/lexer.c (append_newline): Removed.
17910 (grub_script_lexer_yywrap): Refactored.
17911 (grub_script_lexer_init): Refactored.
17912 * grub-core/script/yylex.l (yywrap): New function.
17913 (grub_lexer_resplit): New function.
17914 (grub_lexer_unput): New function.
17915 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17916 and resplit.
17917 * tests/grub_script_echo1.in: Added few more testcases.
17918
dda060dd
VS
179192010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17920
17921 * grub-core/kern/misc.c: Don't add abort alias in utils.
17922 Reported by: echoline.
17923
6556eba9
BC
179242010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17925
17926 Add missing files into "make dist" tarball for other platforms.
17927
17928 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17929 * conf/Makefile.common (dist_noinst_DATA): New variable.
17930 * conf/Makefile.extra-dist: Added missing make dist files.
17931 * grub-core/Makefile.core.def: Likewise.
17932
c8e7bf5f
VS
179332010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17934
17935 Compress grub_prefix.
17936
17937 * grub-core/boot/i386/pc/lnxboot.S: Use
17938 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17939 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17940 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17941 GRUB_MACHINE_PREFIX_END. All users updated.
17942 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17943 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17944 + 0x40.
17945 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17946 * util/grub-mkimage.c (image_target_desc): Change data_end to
17947 prefix_end. All users updated.
17948
a7c00cdb
VS
179492010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17950
17951 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17952 value.
17953 (grub_openbsd_boot): Likewise.
17954 (grub_netbsd_boot): Likewise.
17955 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17956 (grub_xnu_boot): Likewise.
17957
9f915872
VS
179582010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17959
17960 * configure.ac: Clean LIBS variable after tests.
17961
efa1bee7
CW
179622010-09-02 Colin Watson <cjwatson@ubuntu.com>
17963
17964 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17965
61d720e5
VS
179662010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17967
17968 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17969 echo if libdevmapper will be used.
17970
ef8e0ec8
IT
179712010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17972
17973 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17974 constant for the same file.
17975
03e261d8
VS
179762010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17977
17978 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17979
c2a4eba6
CW
179802010-09-02 Colin Watson <cjwatson@ubuntu.com>
17981
17982 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17983 grub-core/*.pp.
17984
9056cbf3
CW
179852010-09-02 Colin Watson <cjwatson@ubuntu.com>
17986
17987 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17988 required by the boot protocol.
17989
17990 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17991 ebp and edi members.
17992 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17993 state.ebp and state.edi.
17994 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17995 %ebp and %edi according to grub_relocator32_ebp and
17996 grub_relocator32_edi respectively.
17997 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17998 and state.edi.
17999
529cc99a
VS
180002010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18001
18002 Add i386-pc-pxe image target.
18003
18004 * util/grub-mkimage.c (image_target_desc): New enum value
18005 IMAGE_I386_PC_PXE.
18006 (image_targets): New target i386-pc-pxe.
18007 (generate_image): Handle i386-pc-pxe image.
18008
9a093920
VS
180092010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18010
18011 Fix grub_pxe_scan.
18012
18013 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
18014 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
18015 All users updated.
18016 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
18017 (grub_pxe_pxenv): Correct type.
18018
f9cefc4e
CW
180192010-09-01 Colin Watson <cjwatson@ubuntu.com>
18020
18021 * NEWS: Document most of the important changes since 1.98.
18022
4066f57f
CW
180232010-09-01 Colin Watson <cjwatson@ubuntu.com>
18024
18025 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
18026 generated manual page) a little.
18027
da2891f9
CW
180282010-09-01 Colin Watson <cjwatson@ubuntu.com>
18029
18030 * docs/grub.texi: Add myself as an author.
18031
ad717fae
VS
180322010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
18033
18034 * Makefile.util.def (libgrub.a): Add missing sunpc.
18035 Reported by: Seth Goldberg.
18036
eefe8abd
VS
180372010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18038
18039 Interrupt wrapping and code simplifications.
18040
9494ef9a
VS
18041 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
18042 x86_noieee1275 which are functionaly equivalent in this case.
18043 (grub-install): Make source on each platform explicit. Enable on
18044 all noemu.
18045 * gentpl.py (x86_efi_pc): Removed group.
18046 (x86_noefi): Likewise.
18047 (i386_noefi): Likewise.
18048 (x86_noieee1275): Likewise.
18049 (i386_noieee1275): Likewise.
18050 (i386_noefi_noieee1275): Likewise.
18051 (i386_pc_qemu_coreboot): Likewise.
18052 (i386_coreboot_multiboot): Likewise.
18053 (i386_pc_coreboot_multiboot_qemu): Likewise.
18054 (x86_noefi_mips): Likewise.
18055 (noieee1275): Likewise.
18056 (ieee1275_mips): Likewise.
18057 (noemu_noieee1275): Likewise.
18058 (cmos): New group.
18059 (usb): Likewise.
18060 (videoinkernel): Likewise.
18061 (videomodules): Likewise.
eefe8abd 18062 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
18063 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
18064 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
18065 include/grub/loader.h, include/grub/msdos_partition.h,
18066 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
18067 include/grub/machine/console.h, include/grub/machine/vga.h,
18068 include/grub/machine/vbe.h, include/grub/machine/init.h,
18069 include/grub/machine/kernel.h, include/grub/cpu/time.h,
18070 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 18071 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
18072 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
18073 * grub-core/Makefile.core.def (kernel): Explicit the source for
18074 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
18075 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
18076 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
18077 Use videoinkernel tag.
18078 (usb): Enable on all usb.
18079 (usbserial_common): Likewise.
18080 (usbserial_pl2303): Likewise.
18081 (usbserial_ftdi): Likewise.
18082 (uhci): Enable on all x86.
18083 (ohci): Enable on all pci.
18084 (cmostest): Enable on all CMOS.
18085 (acpi): Include commands/acpi.c on all platforms.
18086 (halt): Add relevant lib/*/halt.c.
18087 (hdparm): Enable on all pci.
18088 (lspci): Likewise.
18089 (usbtest): Enable on all usb.
18090 (ata): Enable on all pci.
18091 (ata_pthru): Likewise.
18092 (usbms): Enable on all usb.
18093 (usb_keyboard): Likewise.
18094 (font): Use tag videomodules.
18095 (bufio): Likewise.
18096 (datetime): Use tag cmos. Enable on all noemu.
18097 (mmap): Use tags common and x86.
18098 (gfxterm): Use tag videomodules.
18099 (bitmap): Likewise.
18100 (bitmap_scale): Likewise.
18101 (video_fb): Likewise.
18102 (video): Likewise.
18103 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
18104 adjust padding accordingly. All users updated.
18105 (grub_ohci_transaction): Fix bad format specification.
18106 (GRUB_MOD_INIT): Add asserts for struct size.
18107 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
18108 (grub_alloc_td): Likewise.
18109 (grub_free_queue): Likewise.
18110 (grub_uhci_transfer): Likewise.
18111 (grub_uhci_transaction): Fix bad format specification.
18112 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
18113 (grub_usb_bulk_readwrite): Likewise.
18114 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
18115 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
18116 Made static.
18117 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
18118 Made static.
18119 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
18120 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
18121 Transformed into C.
18122 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
18123 Moved from here ...
18124 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
18125 ... here. Transformed into C. Made static.
18126 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
18127 Moved from here ...
18128 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
18129 ... here. Transformed into C. Made static.
18130 * grub-core/kern/i386/pc/startup.S
18131 (grub_biosdisk_check_int13_extensions): Moved from here ...
18132 * grub-core/disk/i386/pc/biosdisk.c
18133 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
18134 Made static.
18135 * grub-core/kern/i386/pc/startup.S
18136 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
18137 * grub-core/disk/i386/pc/biosdisk.c
18138 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
18139 Transformed into C. Made static.
18140 * grub-core/kern/i386/pc/startup.S
18141 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
18142 * grub-core/disk/i386/pc/biosdisk.c
18143 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
18144 Transformed into C. Made static.
18145 * grub-core/kern/i386/pc/startup.S
18146 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
18147 * grub-core/disk/i386/pc/biosdisk.c
18148 (grub_biosdisk_get_diskinfo_standard): ... here.
18149 Transformed into C. Made static.
18150 * grub-core/kern/i386/pc/startup.S
18151 (grub_biosdisk_get_num_floppies): Moved from here ...
18152 * grub-core/disk/i386/pc/biosdisk.c
18153 (grub_biosdisk_get_num_floppies): ... here.
18154 Transformed into C. Made static.
18155 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
18156 New function.
18157 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
18158 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
18159 Transformed into C. Made static.
18160 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
18161 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
18162 Transformed into C. Made static.
18163 * grub-core/kern/i386/ieee1275/init.c: Removed.
18164 * grub-core/kern/i386/misc.S: Likewise.
18165 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
18166 Splitted from here ...
18167 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
18168 Transformed into C. Made static. All users updated.
18169 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
18170 Transformed into C. Made static. All users updated.
18171 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
18172 Moved from here...
18173 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
18174 Transformed into C. Made static. All users updated.
18175 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
18176 Moved from here...
18177 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
18178 Transformed into C. Made static. All users updated.
18179 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
18180 Removed (replaced by C version).
18181 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
18182 Moved from here...
18183 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
18184 Transformed into C. Made static.
18185 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
18186 Moved from here...
18187 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
18188 ... here. Transformed into C.
18189 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
18190 Moved from here...
18191 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
18192 ... here. Transformed into C.
18193 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
18194 Moved from here...
18195 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
18196 ... here. Transformed into C. Made static.
18197 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
18198 Moved from here...
18199 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
18200 ... here. Transformed into C.
21ed554b
VS
18201 * grub-core/kern/i386/pc/startup.S
18202 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
18203 * grub-core/video/i386/pc/vbe.c
18204 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
18205 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
18206 Moved from here...
18207 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
18208 ... here. Transformed into C.
18209 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
18210 Moved from here...
18211 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
18212 ... here. Transformed into C.
18213 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
18214 Moved from here...
18215 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
18216 ... here. Transformed into C.
18217 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
18218 Moved from here...
18219 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
18220 ... here. Transformed into C.
18221 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
18222 Moved from here...
18223 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
18224 ... here. Transformed into C. Made static.
18225 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
18226 Moved from here...
18227 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
18228 ... here. Transformed into C. Made static.
18229 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
18230 Moved from here...
18231 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
18232 ... here. Transformed into C. Made static.
18233 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
18234 pxe_rm_entry as third argument.
18235 (grub_bios_interrupt): New function.
18236 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
18237 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
18238 of calling grub_stop.
18239 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
18240 * grub-core/lib/efi/halt.c (grub_halt): ...here.
18241 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
18242 * grub-core/lib/emu/halt.c (grub_halt): ... here.
18243 * grub-core/lib/i386/halt.c: Moved from here ...
18244 * grub-core/lib/i386/halt.c: ... here.
18245 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
18246 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
18247 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
18248 grub_stop_floppy.
18249 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
18250 * include/grub/i386/coreboot/init.h: Removed.
18251 * include/grub/i386/multiboot/init.h: Likewise.
18252 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
18253 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
18254 * include/grub/i386/pc/int.h: New file.
18255 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
18256 (grub_pxe_scan): Removed.
18257 (grub_pxe_call): Update prototype.
18258 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
18259 prototypes.
18260 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
18261 * include/grub/i386/qemu/init.h: Removed.
18262 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
18263 noreturn.
18264 (grub_halt): Likewise.
18265 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
18266 (grub_reboot): Likewise.
18267 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
18268 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
18269 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
18270
215dd471
RM
182712010-08-30 Robert Millan <rmh@gnu.org>
18272
18273 * NEWS: Document addition of ZFS support in `grub-install' and
18274 `grub-mkconfig'.
18275
ebd65b82
BC
182762010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
18277
18278 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
18279 dprintf output.
18280
11721d19
VS
182812010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18282
18283 Remove leftover embedding of font objects.
18284
18285 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
18286 * util/grub-install.in (font): Removed.
18287 * util/grub-mkimage.c (generate_image): Remove font support. All users
18288 updated.
18289
37837d4e
VS
182902010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18291
18292 Remove leftover embedding of font objects.
18293
18294 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
18295 * util/grub-install.in (font): Removed.
18296 * util/grub-mkimage.c (generate_image): Remove font support. All users
18297 updated.
18298
b4c1aae0
VS
182992010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18300
18301 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 18302 Reported by: Ian Turner
b4c1aae0 18303
8920a08d
VS
183042010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18305
18306 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
18307 timeout to avoid indefinite boot stalling.
18308
f21db033
VS
183092010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18310
18311 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
18312 (grub_env_write_color_highlight): Likewise.
18313
9a9de209
VS
183142010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18315
18316 * grub-core/normal/term.c (print_more): Return to normal and not
18317 to standard state after printing "---MORE---".
18318
3dca01d7
VS
183192010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18320
18321 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
18322 Mask out the bit 0x80 since it has other meaning that specifiing color.
18323
0b986c40
VS
183242010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18325
18326 New relocator. Allows for more kernel support and more straightforward
18327 loader writing.
18328
18329 * Makefile.am (BOOTTARGET): New variable.
18330 (QEMU32): Likewise.
18331 (linux.init.x86_64): New target.
18332 (linux.init.i386): Likewise.
18333 (multiboot.elf): Likewise.
18334 (kfreebsd.elf): Likewise.
18335 (kfreebsd.aout): Likewise.
18336 (pc-chainloader.elf): Likewise.
18337 (pc-chainloader.bin): Likewise.
18338 (ntldr.elf): Likewise.
18339 (ntldr.bin): Likewise.
18340 (multiboot2.elf): Likewise.
18341 (kfreebsd.init.x86_64): Likewise.
18342 (kfreebsd.init.i386): Likewise.
18343 (knetbsd.init.i386): Likewise.
18344 (kopenbsd.init.i386): Likewise.
18345 (knetbsd.init.x86_64): Likewise.
18346 (kopenbsd.init.x86_64): Likewise.
18347 (linux-initramfs.i386): Likewise.
18348 (linux-initramfs.x86_64): Likewise.
18349 (kfreebsd-mfsroot.i386.img): Likewise.
18350 (knetbsd.image.i386): Likewise.
18351 (kopenbsd.image.i386): Likewise.
18352 (kopenbsd.image.x86_64): Likewise.
18353 (knetbsd.miniroot-image.i386.img): Likewise.
18354 (kfreebsd-mfsroot.x86_64.img): Likewise.
18355 (knetbsd.image.x86_64): Likewise.
18356 (knetbsd.miniroot-image.x86_64.img): Likewise.
18357 (kfreebsd-mfsroot.i386.gz): Likewise.
18358 (bootcheck-kfreebsd-i386): Likewise.
18359 (kfreebsd-mfsroot.x86_64.gz): Likewise.
18360 (bootcheck-kfreebsd-x86_64): Likewise.
18361 (knetbsd.miniroot-image.i386.gz): Likewise.
18362 (bootcheck-knetbsd-i386): Likewise.
18363 (bootcheck-kopenbsd-i386): Likewise.
18364 (bootcheck-kopenbsd-x86_64): Likewise.
18365 (knetbsd.miniroot-image.x86_64.gz): Likewise.
18366 (bootcheck-knetbsd-x86_64): Likewise.
18367 (bootcheck-linux-i386): Likewise.
18368 (bootcheck-linux-x86_64): Likewise.
18369 (bootcheck-linux16-i386): Likewise.
18370 (bootcheck-linux16-x86_64): Likewise.
18371 (bootcheck-multiboot): Likewise.
18372 (bootcheck-multiboot2): Likewise.
18373 (bootcheck-kfreebsd-aout): Likewise.
18374 (bootcheck-pc-chainloader): Likewise.
18375 (bootcheck-ntldr): Likewise.
18376 (CLEANFILES): Add new targets.
18377 (BOOTCHECKS): New variable.
18378 (.PHONY): Add bootchecks.
18379 (SUCCESSFUL_BOOT_STRING): New variable.
18380 (BOOTCHECK_TIMEOUT): Likewise.
18381 (bootcheck): New target
18382 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
18383 * configure.ac: Correct efiemu excuse.
18384 * docs/grub.texi (Supported kernels): New chapter.
18385 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
18386 include/grub/mm_private.h. Simplify inclusion of
18387 include/grub/boot.h, include/grub/loader.h
18388 and include/grub/msdos_partition.h
18389 (KERNEL_HEADER_FILES) [i386_coreboot]:
18390 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
18391 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
18392 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
18393 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
18394 include/grub/machine/loader.h.
18395 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
18396 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
18397 extra_dist.
18398 (pci.mod): Enable on i386-multiboot.
18399 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
18400 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
18401 i386-qemu.
18402 (relocator.mod): Rewritten.
18403 (aout.mod): Enable on all x86.
18404 (bsd.mod): Likewise.
18405 (ntldr.mod): New module.
18406 (linux.mod): Use loader/i386/linux.c on all x86.
18407 (xnu.mod): Enable on all x86.
18408 (vga_text.mod): disable on EFI and QEMU.
18409 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
18410 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
18411 * grub-core/efiemu/loadcore.c: Likewise.
18412 * grub-core/efiemu/main.c: Likewise.
18413 (grub_efiemu_exit_boot_services): Removed.
18414 (grub_efiemu_finish_boot_services): Likewise.
18415 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18416 function.
18417 * grub-core/efiemu/i386/nocfgtables.c: New file.
18418 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18419 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18420 (grub_efi_finish_boot_services): Moved from here ...
18421 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18422 Fille finish memory map and related data.
18423 (finish_mmap_buf): New variable.
18424 (grub_efi_uintn_t finish_mmap_size): Likewise.
18425 (grub_efi_uintn_t finish_key): Likewise.
18426 (grub_efi_uintn_t finish_desc_size): Likewise.
18427 (grub_efi_uint32_t finish_desc_version): Likewise.
18428 (grub_efi_is_finished): Likewise.
18429 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18430 finished.
18431 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18432 (grub_elf64_phdr_iterate): Likewise.
18433 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18434 (grub_os_area_size): Likewise.
18435 (grub_machine_init): Don't reserve os area.
18436 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18437 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18438 * grub-core/kern/i386/loader.S: Removed.
18439 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18440 (grub_os_area_size): Likewise.
18441 (grub_machine_init): Don't reserve os area.
18442 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18443 Don't call grub_dl_unload_all.
18444 Don't include loader.S.
18445 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18446 Declare the memory after _end as available.
18447 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 18448 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 18449 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
18450 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18451 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18452 * include/grub/mm_private.h (grub_mm_header): ... here.
18453 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18454 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
18455 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18456 (grub_mm_region): ..here. Removed addr. Added pre_size.
18457 All users updated.
18458 * grub-core/kern/mm.c (base): Renamed to ...
18459 (grub_mm_base): ... this. Made global.
18460 (grub_real_malloc): Alloc from end of region.
18461 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18462 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18463 * grub-core/kern/powerpc/cache_flush.S: ... here.
18464 * grub-core/lib/efi/relocator.c: New file.
18465 * grub-core/lib/i386/relocator.c: Rewritten.
18466 * grub-core/lib/i386/relocator16.S: New file.
18467 * grub-core/lib/i386/relocator32.S: Likewise.
18468 * grub-core/lib/i386/relocator64.S: Likewise.
18469 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18470 * grub-core/lib/i386/relocator_common.S: New file.
18471 * grub-core/lib/ieee1275/relocator.c: Likewise.
18472 * grub-core/lib/mips/relocator.c: Rewritten.
18473 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18474 stylistic adjustments.
18475 * grub-core/lib/powerpc/relocator.c: New file.
18476 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18477 * grub-core/lib/relocator.c: Rewritten.
18478 * grub-core/lib/x86_64/relocator_asm.S: New file.
18479 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18480 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18481 (bsd_tag): New struct.
18482 (tags): New variable.
18483 (tags_last): Likewise.
18484 (netbsd_module): New struct.
18485 (netbsd_mods): New variable.
18486 (netbsd_mods_last): Likewise.
18487 (openbsd_opts): New parameter "serial".
18488 (OPENBSD_SERIAL_ARG): New definition.
18489 (netbsd_opts): New parameter "serial".
18490 (NETBSD_SERIAL_ARG): New definition.
18491 (grub_freebsd_add_meta): Reorganised into ...
18492 (grub_bsd_add_meta): ...this. All users updated.
18493 (grub_freebsd_add_mmap): Reorganised into ...
18494 (generate_e820_mmap): ...this...
18495 (grub_bsd_add_mmap): ...and this. All users updated.
18496 (grub_freebsd_list_modules): Use tags.
18497 (grub_netbsd_add_meta_module): New function.
18498 (grub_netbsd_list_modules): Likewise.
18499 (grub_freebsd_boot): Use relocator and finish EFI.
18500 (grub_openbsd_boot): Likewise.
18501 (grub_netbsd_setup_video): New function.
18502 (grub_netbsd_add_modules): Likewise.
18503 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18504 and finish EFI.
18505 (grub_bsd_unload): Unload tags.
18506 (grub_bsd_load_aout): Use relocator.
18507 (grub_bsd_elf32_size_hook): New function.
18508 (grub_bsd_elf32_hook): Use relocator.
18509 (grub_bsd_elf64_size_hook): New function.
18510 (grub_bsd_elf64_hook): Use relocator.
18511 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18512 (grub_bsd_load): Zero-out openbsd_ramdisk.
18513 (grub_bsd_load): Use relocator.
18514 (grub_cmd_openbsd): Support serial.
18515 (grub_cmd_netbsd): Support modules.
18516 (grub_cmd_freebsd_module): Use relocator.
18517 (grub_netbsd_module_load): New function.
18518 (grub_cmd_netbsd_module): Likewise.
18519 (grub_cmd_openbsd_ramdisk): Likewise.
18520 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18521 kopenbsd_ramdisk.
18522 (GRUB_MOD_FINI): Unregister new commands.
18523 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18524 (grub_freebsd_load_elfmodule_obj): Use relocator.
18525 (grub_freebsd_load_elfmodule): Likewise.
18526 (grub_freebsd_load_elf_meta): Likewise.
18527 (grub_netbsd_load_elf_meta): New function.
18528 (grub_openbsd_find_ramdisk): Likewise.
18529 * grub-core/loader/i386/bsd_helper.S: Removed.
18530 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18531 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18532 * grub-core/loader/i386/efi/linux.c: Likewise.
18533 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18534 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18535 (DEFAULT_VIDEO_MODE): Likewise.
18536 (real_mode_target): New variable.
18537 (prot_mode_target): Likewise.
18538 (initrd_mem_target): Likewise.
18539 (relocator): Likewise.
18540 (efi_mmap_buf): Likewise.
18541 (efi_mmap_size): Likewise.
18542 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18543 (free_pages): Use relocator.
18544 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18545 (grub_linux_setup_video): Return error.
18546 (grub_linux_trampoline_start): Removed.
18547 (grub_linux_trampoline_end): Likewise.
18548 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18549 andd video parameters depending on firmware.
18550 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18551 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18552 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18553 (grub_cmd_initrd): Use relocator.
18554 * grub-core/loader/i386/linux_trampoline.S: Removed.
18555 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18556 (elf_sec_entsize): Likewise.
18557 (elf_sec_shstrndx): Likewise.
18558 (elf_sections): Likewise.
18559 (grub_multiboot_load): Use relocator.
18560 (grub_multiboot_get_mbi_size): Account for sections.
18561 (grub_multiboot_make_mbi): Use relocator and support sections.
18562 (grub_multiboot_add_elfsyms): New function.
18563 (grub_multiboot_free_mbi): Free sections.
18564 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18565 (grub_linux_real_target): Likewise.
18566 (grub_linux_real_chunk): Likewise.
18567 (grub_linux16_prot_size): Likewise.
18568 (grub_linux16_boot): Use relocator.
18569 (grub_linux_unload): Unload relocator.
18570 (grub_cmd_linux): Use relocator.
18571 (grub_cmd_initrd): Likewise.
18572 * grub-core/loader/i386/pc/ntldr.c: New file.
18573 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18574 Don't try to guess CPU frequency.
18575 (grub_xnu_set_video): Stretch bitmap.
18576 (grub_xnu_boot): Use relocator.
18577 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18578 (grub_linux_unload): Free relocator.
18579 (grub_linux_load32): Use relocator.
18580 (grub_linux_load64): Likewise.
18581 (grub_cmd_initrd): Likewise.
18582 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18583 (grub_multiboot_unload): Unload relocator.
18584 (grub_cmd_multiboot): Use relocator.
18585 (grub_cmd_module): Likewise.
18586 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18587 Use relocator and support sections.
18588 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18589 (elf_sec_entsize): Likewise.
18590 (elf_sec_shstrndx): Likewise.
18591 (elf_sections): Likewise.
18592 (grub_multiboot_load): Use relocator.
18593 (grub_multiboot_get_mbi_size): Account for sections.
18594 (grub_multiboot_make_mbi): Use relocator and support sections.
18595 (grub_multiboot_add_elfsyms): New function.
18596 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18597 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18598 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18599 Prototype changed. All users updated.
18600 (grub_xnu_align_heap): Simplified.
18601 (grub_xnu_writetree_toheap): Likewise.
18602 (grub_xnu_unload): Unload relocator.
18603 (grub_cmd_xnu_kernel): Use relocator.
18604 (grub_cmd_xnu_kernel64): Likewise.
18605 (grub_xnu_register_memory): Simplified.
18606 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
18607 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18608 EFI is finished.
18609 (grub_console_checkkey): Likewise.
18610 (grub_console_getkey): Likewise.
18611 (grub_console_getwh): Likewise.
18612 (grub_console_getxy): Likewise.
18613 (grub_console_gotoxy): Likewise.
18614 (grub_console_cls): Likewise.
18615 (grub_console_setcolorstate): Likewise.
18616 (grub_console_setcursor): Likewise.
18617 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18618 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18619 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18620 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18621 * grub-core/tests/boot/kernel-8086.S: Likewise.
18622 * grub-core/tests/boot/kernel-i386.S: Likewise.
18623 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18624 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18625 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18626 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18627 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18628 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18629 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18630 * grub-core/tests/boot/linux.cfg: Likewise.
18631 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18632 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18633 * grub-core/tests/boot/linux16.cfg: Likewise.
18634 * grub-core/tests/boot/multiboot.cfg: Likewise.
18635 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18636 * grub-core/tests/boot/ntldr.cfg: Likewise.
18637 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18638 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18639 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18640 New definition.
18641 * include/grub/dl.h (grub_dl_unload_all): Removed.
18642 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18643 (grub_efi_finish_boot_services): Change prototype.
18644 (grub_efi_is_finished): New variable.
18645 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18646 Changed prototype.
18647 (grub_efiemu_finish_boot_services): Removed.
18648 (grub_machine_efiemu_init_tables): New prototype.
18649 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18650 (grub_elf64_phdr_iterate): Likewise.
18651 * include/grub/i386/bsd.h: Include relocator.h.
18652 (freebsd_tag_header): New struct.
18653 (grub_openbsd_bios_mmap): Removed.
18654 (grub_unix_real_boot): Removed.
18655 (grub_freebsd_load_elfmodule32): Changed prototype.
18656 (grub_freebsd_load_elfmodule_obj64): Likewise.
18657 (grub_freebsd_load_elf_meta32): Likewise.
18658 (grub_freebsd_load_elf_meta64): Likewise.
18659 (grub_freebsd_add_meta): Removed.
18660 (grub_netbsd_load_elf_meta32): New prototype.
18661 (grub_netbsd_load_elf_meta64): Likewise.
18662 (grub_bsd_add_meta): Likewise.
18663 (grub_openbsd_ramdisk_descriptor): New struct.
18664 (grub_openbsd_find_ramdisk32): New prototype.
18665 (grub_openbsd_find_ramdisk64): Likewise.
18666 * include/grub/i386/coreboot/loader.h: Removed.
18667 * include/grub/i386/efi/loader.h: Likewise.
18668 * include/grub/i386/ieee1275/loader.h: Likewise.
18669 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18670 to grub_uint32_t.
18671 * include/grub/i386/loader.h: Removed.
18672 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18673 value.
18674 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18675 (grub_phys_addr_t): New type.
18676 (grub_vtop): New inline function.
18677 (grub_map_memory): Likewise.
18678 (grub_unmap_memory): Likewise.
18679 * include/grub/i386/multiboot/loader.h: Removed.
18680 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18681 (NETBSD_BTINFO_CONSOLE): New definition.
18682 (NETBSD_BTINFO_SYMTAB): Likewise.
18683 (NETBSD_BTINFO_MODULES): Likewise.
18684 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18685 (grub_netbsd_bootinfo): New struct.
18686 (grub_netbsd_btinfo_common): Use explicit bitsize.
18687 (grub_netbsd_btinfo_mmap_entry): Removed.
18688 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18689 (grub_netbsd_btinfo_bootdisk): New struct.
18690 (grub_netbsd_btinfo_symtab): Likewise.
18691 (grub_netbsd_btinfo_serial): Likewise.
18692 (grub_netbsd_btinfo_modules): Likewise.
18693 (grub_netbsd_btinfo_framebuf): Likewise.
18694 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18695 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18696 Likewise.
18697 (grub_openbsd_bootargs): Use explicit bitsize.
18698 (grub_openbsd_bootarg_console): New struct.
18699 (GRUB_OPENBSD_COM_MAJOR): New definition.
18700 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18701 * include/grub/i386/pc/efiemu.h: Removed.
18702 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18703 * include/grub/i386/qemu/loader.h: Removed.
18704 * include/grub/i386/relocator.h: Rewritten.
18705 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18706 * include/grub/mips/memory.h: New file.
18707 * include/grub/mips/multiboot.h: Rewritten.
18708 * include/grub/mips/relocator.h: Rewritten.
18709 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18710 (grub_vtop): New function.
18711 (grub_map_memory): Likewise.
18712 (grub_unmap_memory): Likewise.
18713 * include/grub/misc.h (ALIGN_DOWN): New definition.
18714 * include/grub/mm.h (grub_mm_check_real): New proto.
18715 (GRUB_MM_CHECK): New definition.
18716 * include/grub/mm_private.h: New file.
18717 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18718 (grub_multiboot_get_mbi_size): Removed.
18719 (grub_multiboot_make_mbi): Change prottype.
18720 (grub_multiboot_set_accepts_video): New proto.
18721 (grub_multiboot_add_elfsyms): Likewise.
18722 (grub_multiboot_payload_eip): New variable.
18723 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18724 New prototype.
18725 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18726 New definition.
18727 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18728 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18729 * include/grub/powerpc/ieee1275/loader.h: Removed.
18730 * include/grub/powerpc/memory.h: New file.
18731 * include/grub/powerpc/relocator.h: Likewise.
18732 * include/grub/relocator.h: Likewise.
18733 * include/grub/relocator_private.h: Likewise.
18734 * include/grub/sparc64/ieee1275/loader.h: Removed.
18735 * include/grub/x86_64/memory.h: New file.
18736 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18737 (grub_xnu_heap_malloc): Likewise.
18738 (grub_xnu_heap_real_start): Removed.
18739 (grub_xnu_heap_start): Likewise.
18740 (grub_xnu_relocator): New variable.
18741 (grub_xnu_heap_target_start): Likewise.
18742 * tests/util/grub-shell.in: Support non-pc.
18743 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 18744
5303b85d
VS
187452010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18746
18747 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18748 on malloc error.
18749 (grub_bidi_logical_to_visual): Check that malloc succeded.
18750 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18751 puts.
18752 (grub_xputs_normal): Likewise.
18753
d768d159
VS
187542010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18755
18756 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18757 extra_dist.
18758
187592010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18760
18761 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18762
5bf84df4
VS
187632010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18764
18765 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18766
3626810e
VS
187672010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18768
18769 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18770 dprintf.
18771
a7363f53
BC
187722010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18773
18774 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18775
902f75f6
VS
187762010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18777
18778 * grub-core/normal/term.c (print_more): Fix a memory leak.
18779 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18780 (grub_xputs_normal): Likewise.
18781
3c707967
VS
187822010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18783
18784 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18785 the begining of the string
18786
2053cc07
VS
187872010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18788
18789 * grub-core/script/script.c (grub_script_parse): Free parsed on
18790 failure.
18791
46422ebf
VS
187922010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18793
18794 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18795 on failure.
18796
9e0fa3f6
VS
187972010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18798
18799 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18800 return.
18801
3393cf16
VS
188022010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18803
18804 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18805 (scroll_up): Fix a memory leak.
18806
b17540cb
VS
188072010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18808
18809 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18810 errors.
18811
67140446
VS
188122010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18813
18814 Handle USB pendrives exposed as floppies.
18815
18816 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18817 floppy.
18818 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18819 Check for partitions on all devices.
18820
e35e46fc
VS
188212010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18822
18823 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18824 (readkey): Likewise.
18825
d24c6190
BC
188262010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18827
18828 Multiple variable names support to "export" command.
18829
18830 * normal/context.c (grub_cmd_export): "export" command supports
18831 multiple variable names.
18832
04ddcc6a
ST
188332010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18834
18835 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18836 --target=drive output to Mach device name.
18837
0c8b61d8
BC
188382010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18839
18840 New Automake based build system for GRUB.
18841
18842 * ABOUT-NLS: New file.
18843 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18844 in Makefile.util.def file.
18845 * Makefile.util.def: New file. Autogen build definitions file for
18846 GRUB host utils.
18847 * conf/Makefile.common: New file. Common variables for GRUB host
18848 utils and target modules.
18849 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18850 * docs/Makefile.am: New file. Automake file for docs.
18851 * gentpl.py: New file. Python script to generate Autogen
18852 template.
18853 * grub-core/Makefile.am: New file. GRUB target modules' rules
18854 that doesn't fit in Makefile.core.def file.
18855 * grub-core/Makefile.core.def: New file. Autogen build
18856 definitions file for GRUB target modules.
18857 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18858 specific setjmp.S file.
18859 * po/Makefile.am: New file.
18860
18861 * .bzrignore: New ignores.
18862 * INSTALL: New requirements, without Ruby.
18863 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18864 * autogen.sh: Updated to invoke autogen as necessary.
18865 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18866 and defines for Automake conditionals.
18867 * geninit.sh: Refactoring.
18868
18869 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18870 necessary.
18871 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18872 New prototype.
18873
18874 * include/grub/test.h: Fix functional test modules' naming.
18875 * grub-core/tests/example_functional_test.c: Fix test module name.
18876
18877 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18878 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18879 * util/grub-editenv.c: Likewise.
18880 * util/grub-fstest.c: Likewise.
18881 * util/grub-mkdevicemap.c: Likewise.
18882 * util/grub-mkfont.c: Likewise.
18883 * util/grub-mkimage.c: Likewise.
18884 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18885 * util/grub-probe.c: Likewise.
18886 * util/grub-script-check.c: Likewise.
18887 * util/i386/pc/grub-setup.c: Likewise.
18888 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18889
18890 * tests/util/grub-shell.in: Fix override directory path.
18891 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18892 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18893
18894 * util/lvm.c: Update #includes.
18895 * util/raid.c: Likewise.
18896 * util/resolve.c: Likewise.
18897 * grub-core/bus/emu/pci.c: Likewise.
18898 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18899 * grub-core/lib/posix_wrap/string.h: Likewise.
18900 * grub-core/kern/emu/main.c: Likewise.
18901
18902 * grub-core/gensymlist.sh: New file. Script for generating kernel
18903 symbols file.
18904 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18905
18906 * grub-core/gentrigtables.c: Fix unused variable warnings.
18907
18908 * Makefile.in: Removed.
18909 * conf/any-emu.rmk: Removed.
18910 * conf/common.rmk: Removed.
18911 * conf/i386-coreboot.rmk: Removed.
18912 * conf/i386-efi.rmk: Removed.
18913 * conf/i386-ieee1275.rmk: Removed.
18914 * conf/i386-multiboot.rmk: Removed.
18915 * conf/i386-pc.rmk: Removed.
18916 * conf/i386-qemu.rmk: Removed.
18917 * conf/i386.rmk: Removed.
18918 * conf/mips-yeeloong.rmk: Removed.
18919 * conf/mips.rmk: Removed.
18920 * conf/powerpc-ieee1275.rmk: Removed.
18921 * conf/sparc64-ieee1275.rmk: Removed.
18922 * conf/tests.rmk: Removed.
18923 * conf/x86-efi.rmk: Removed.
18924 * conf/x86_64-efi.rmk: Removed.
18925 * gendistlist.sh: Removed.
18926 * geninitheader.sh: Removed.
18927 * genkernsyms.sh.in: Removed.
18928 * genmk.rb: Removed.
18929 * gensymlist.sh.in: Removed.
18930 * mkinstalldirs: Removed.
18931 * boot: Moved ...
18932 * grub-core/boot: ... to here.
18933 * bus: Moved ...
18934 * grub-core/bus: ... to here.
18935 * commands: Moved ...
18936 * grub-core/commands: ... to here.
18937 * disk: Moved ...
18938 * grub-core/disk: ... to here.
18939 * efiemu: Moved ...
18940 * grub-core/efiemu: ... to here.
18941 * font: Moved ...
18942 * grub-core/font: ... to here.
18943 * fs: Moved ...
18944 * grub-core/fs: ... to here.
18945 * gencmdlist.sh: Moved ...
18946 * grub-core/gencmdlist.sh: ... to here.
18947 * genemuinit.sh: Moved ...
18948 * grub-core/genemuinit.sh: ... to here.
18949 * genemuinitheader.sh: Moved ...
18950 * grub-core/genemuinitheader.sh: ... to here.
18951 * genfslist.sh: Moved ...
18952 * grub-core/genfslist.sh: ... to here.
18953 * genhandlerlist.sh: Moved ...
18954 * grub-core/genhandlerlist.sh: ... to here.
18955 * genmoddep.awk: Moved ...
18956 * grub-core/genmoddep.awk: ... to here.
18957 * genmodsrc.sh: Moved ...
18958 * grub-core/genmodsrc.sh: ... to here.
18959 * genpartmaplist.sh: Moved ...
18960 * grub-core/genpartmaplist.sh: ... to here.
18961 * genparttoollist.sh: Moved ...
18962 * grub-core/genparttoollist.sh: ... to here.
18963 * genterminallist.sh: Moved ...
18964 * grub-core/genterminallist.sh: ... to here.
18965 * gentrigtables.c: Moved ...
18966 * grub-core/gentrigtables.c: ... to here.
18967 * genvideolist.sh: Moved ...
18968 * grub-core/genvideolist.sh: ... to here.
18969 * gettext: Moved ...
18970 * grub-core/gettext: ... to here.
18971 * gfxmenu: Moved ...
18972 * grub-core/gfxmenu: ... to here.
18973 * gnulib: Moved ...
18974 * grub-core/gnulib: ... to here.
18975 * hello: Moved ...
18976 * grub-core/hello: ... to here.
18977 * hook: Moved ...
18978 * grub-core/hook: ... to here.
18979 * io: Moved ...
18980 * grub-core/io: ... to here.
18981 * kern: Moved ...
18982 * grub-core/kern: ... to here.
18983 * lib: Moved ...
18984 * grub-core/lib: ... to here.
18985 * loader: Moved ...
18986 * grub-core/loader: ... to here.
18987 * mmap: Moved ...
18988 * grub-core/mmap: ... to here.
18989 * normal: Moved ...
18990 * grub-core/normal: ... to here.
18991 * partmap: Moved ...
18992 * grub-core/partmap: ... to here.
18993 * parttool: Moved ...
18994 * grub-core/parttool: ... to here.
18995 * script: Moved ...
18996 * grub-core/script: ... to here.
18997 * term: Moved ...
18998 * grub-core/term: ... to here
18999 * tests/example_functional_test.c: Moved ...
19000 * grub-core/tests/example_functional_test.c: ... to here.
19001 * tests/lib/functional_test.c: Moved ...
19002 * grub-core/tests/lib/functional_test.c: ... to here.
19003 * tests/lib/test.c: Moved ...
19004 * grub-core/tests/lib/test.c: ... to here.
19005 * video: Moved ...
19006 * grub-core/video: ... to here.
19007
645586e6
BC
190082010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
19009
19010 Replace --enable-grub-emu-modules with grub-emu-lite.
19011
19012 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
19013 cache.S.
19014
19015 * include/grub/emu/misc.h (grub_emu_init): New prototype.
19016 * kern/emu/full.c: New file. For grub-emu specific initialization.
19017 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
19018 * kern/emu/main.c: Call initialization function grub_emu_init.
19019
19020 * Makefile.in: Include grub-emu-lite in install.
19021 * commands/parttool.c: Use grub_no_autoload to differentiate
19022 between grub-emu and grub-emu-lite.
19023 * include/grub/misc.h: New variable grub_no_autoload.
19024
19025 * conf/any-emu.rmk: New rules for grub-emu-lite.
19026 * configure.ac: Remove --enable-grub-emu-modules.
19027 * genmk.rb: Cleanup unnecessary rules.
19028 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
19029
19030 * normal/main.c: Don't load list files on grub-emu-lite.
19031 * util/misc.c (grub_arch_sync_caches): Removed.
19032
f86a4030
CW
190332010-08-23 Colin Watson <cjwatson@ubuntu.com>
19034
19035 * kern/mips/startup.S (grub_prefix): Update comment to refer to
19036 grub-mkimage rather than grub-mkelfimage.
19037 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
19038
06776944
VS
190392010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
19040
19041 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
19042 a key after CapsLock or NumLock. It's just a qemu bug.
19043
df262419
VS
190442010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
19045
19046 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
19047 needed by libusb wrapper.
19048
b40ea81b
ST
190492010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19050
19051 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
19052
dee50575
VS
190532010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
19054
19055 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
19056 --nounzip is passed.
19057
fb1d7b79
VS
190582010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
19059
19060 USB hotunplugging and USB serial support.
19061
19062 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
19063 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
19064 (grub_uhci_transfer): Respect timeout and set *actual.
19065 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
19066 non-standard length.
19067 (grub_usb_device_attach): Autoload modules.
19068 (GRUB_MOD_INIT): Set grub_term_poll_usb.
19069 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
19070 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
19071 users updated.
19072 (grub_usb_add_hub): Fill nports and children.
19073 (attach_root_port): Receive hub instead of controller.
19074 All users updated. Fill hub->devices.
19075 (grub_usb_root_hub): Allocate hub->devices.
19076 (detach_device): New function.
19077 (poll_nonroot_hub): Fill children and detach devices.
19078 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
19079 actual arguments. All users updated.
19080 (grub_usb_bulk_read_extended): New function.
19081 * bus/usb/serial/common.c: New file.
19082 * bus/usb/serial/ftdi.c: Likewise.
19083 * bus/usb/serial/pl2303.c: Likewise.
19084 * commands/terminal.c (handle_command): Support wildcard.
19085 * commands/usbtest.c: Output "Unknown" instead of empty string.
19086 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
19087 (usbserial_common_mod_SOURCES): New variable.
19088 (usbserial_common_mod_CFLAGS): Likewise.
19089 (usbserial_common_mod_LDFLAGS): Likewise.
19090 (pkglib_MODULES): Add usbserial_pl2303.mod.
19091 (usbserial_pl2303_mod_SOURCES): New variable.
19092 (usbserial_pl2303_mod_CFLAGS): Likewise.
19093 (usbserial_pl2303_mod_LDFLAGS): Likewise.
19094 (pkglib_MODULES): Add usbserial_ftdi.mod.
19095 (usbserial_ftdi_mod_SOURCES): New variable.
19096 (usbserial_ftdi_mod_CFLAGS): Likewise.
19097 (usbserial_ftdi_mod_LDFLAGS): Likewise.
19098 (pkglib_MODULES): Add serial.mod.
19099 (serial_mod_SOURCES): New variable.
19100 (serial_mod_CFLAGS): Likewise.
19101 (serial_mod_LDFLAGS): Likewise.
19102 * conf/i386-pc.rmk: Likewise.
19103 * conf/mips-yeeloong.rmk: Likewise.
19104 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
19105 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19106 * disk/usbms.c (first_available_slot): New variable.
19107 (grub_usbms_attach): Don't reuse free slots due to potential cache
19108 problems.
19109 * include/grub/serial.h: Moved to ..
19110 * include/grub/ns8250.h: ...this.
19111 * include/grub/serial.h: New file.
19112 * include/grub/term.h (grub_term_poll_usb): New variable.
19113 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
19114 readkey. All users updated.
19115 (grub_terminfo_output_state): Pass term to put.
19116 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
19117 (grub_usb_controller_dev): Add timeout and actual arguments to
19118 transfer. All users updated.
19119 (grub_usb_interface): New field detach_data.
19120 (grub_usb_device): New fields children and nports.
19121 (grub_usb_ep_type_t): New type.
19122 (grub_usb_get_ep_type): New function.
19123 (grub_usb_bulk_read_extended): Likewise.
19124 * include/grub/usbdesc.h (grub_usb_desc): New type.
19125 * include/grub/usbserial.h: New file.
19126 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
19127 * kern/term.c (grub_term_poll_usb): New variable.
19128 (grub_getkey): Call grub_term_poll_usb if set.
19129 (grub_checkkey): Likewise.
19130 (grub_getkeystatus): Likewise.
19131 * term/serial.c: Moved controller-specific parts to ...
19132 * term/ns8250.c: ... here.
19133 * term/serial.c: Mostly rewritten.
19134 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
19135 according to spec.
19136
21a313de
RM
191372010-08-20 Robert Millan <rmh@gnu.org>
19138
19139 Make kFreeBSD code more generic to support ext2fs as root, ufs as
19140 a separate module and maybe other interesting combinations.
19141
19142 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
19143 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
19144 (kfreebsd_entry): Add generic filesystem module load routine.
19145 Map GRUB `ext2' to kFreeBSD `ext2fs'.
19146
63c734a6
CW
191472010-08-20 Colin Watson <cjwatson@ubuntu.com>
19148
19149 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
19150 "numcenter" (I misunderstood the purpose of this entry).
19151 * docs/grub.texi (sendkey): Likewise.
19152
c4d16542
CW
191532010-08-20 Colin Watson <cjwatson@ubuntu.com>
19154
19155 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
19156 status flag options; simply omitting the option is equivalent and
19157 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
19158 (keysym_table): Rename "num5numlock" to "numlock".
19159 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
19160 can uniformly say that only the last of multiple `sendkey'
19161 invocations has any effect.
19162 * docs/grub.texi (sendkey): New section.
19163
93541d66
CW
191642010-08-19 Colin Watson <cjwatson@ubuntu.com>
19165
19166 * commands/i386/pc/sendkey.c (options): Fix three typos.
19167
b4ece5e1
VS
191682010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
19169
19170 Implement sendkey support.
19171
19172 * commands/i386/pc/sendkey.c: New file.
19173 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
19174 (sendkey_mod_SOURCES): New variable.
19175 (sendkey_mod_CFLAGS): Likewise.
19176 (sendkey_mod_LDFLAGS): Likewise.
19177
51f1f5af
CW
191782010-08-18 Colin Watson <cjwatson@ubuntu.com>
19179
19180 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
19181 fix warnings from Autoconf.
19182
9da94e05
CW
191832010-08-18 Colin Watson <cjwatson@ubuntu.com>
19184
19185 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
19186 to avoid false positives with some assemblers that output things
19187 like "someprefix_func" as part of their output.
19188
729a0f2e
RM
191892010-08-15 Robert Millan <rmh@gnu.org>
19190
19191 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
19192 errors.
19193 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
19194 grub_get_libzfs_handle() errors.
19195
f3710e08
RM
191962010-08-14 Robert Millan <rmh@gnu.org>
19197
19198 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
19199 filesystem is not ZFS.
19200
7a3c13de
BC
192012010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19202
19203 Fix for misspelled color names defaulting to black/black (bug
19204 reported by Doug Nazar)
19205
19206 * include/grub/normal.h (grub_parse_color_name_pair): Add return
19207 status to prototype.
19208 * normal/color.c (grub_parse_color_name_pair): Return failure
19209 status.
19210 (grub_env_write_color_normal): Ignore bad color names.
19211 (grub_env_write_color_highlight): Likewise.
19212 * normal/main.c (GRUB_MOD_INIT): Set default color names.
19213
ab8ba50d
BC
192142010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19215
19216 "shift" command support to GRUB script.
19217
19218 * include/grub/script_sh.h (grub_script_shift): New prototype.
19219 * script/execute.c (grub_script_shift): New function.
19220 * script/main.c (grub_script_init): Register shift command.
19221 (grub_script_fini): Unregister shift command.
19222 * util/grub-script-check.c (grub_script_cmd_shift): New function.
19223
19224 * tests/grub_script_shift.in: New testcase.
19225 * conf/tests.rmk: Rules for new testcase.
19226
4d61999e
BC
192272010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19228
19229 "continue" command support to GRUB script.
19230
19231 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
19232 (grub_script_break): Continue support.
19233 * script/main.c (grub_script_init): Register continue command.
19234 (grub_script_fini): Unregister continue command.
19235
19236 * tests/grub_script_continue.in: New testcase.
19237 * conf/tests.rmk: Rules for new testcase.
19238
4df51e00
BC
192392010-08-12 BVK Chaitanya <bvk@dbook>
19240
19241 "break" command support to GRUB script.
19242
19243 * conf/common.rmk: Rule updates to grub-script-check.
19244 * include/grub/misc.h (grub_min): New function.
19245 * include/grub/script_sh.h (grub_script_init): New prototype.
19246 (grub_script_fini): New prototype.
19247 (grub_script_break): New prototype.
19248 * script/main.c (grub_script_init): New function.
19249 (grub_script_fini): New function.
19250 * script/execute.c (grub_script_break): New function.
19251 * normal/main.c: Calls to grub_script_{init,fini}.
19252 * util/grub-script-check.c (grub_script_break): New function.
19253
19254 * tests/grub_script_break.in: New testcase.
19255 * conf/tests.rmk: Rules for new test case.
19256
f12c8420
BC
192572010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19258
19259 Function parameters support to GRUB script.
19260
19261 * script/yylex.l (VARIABLE): Regular expression update.
19262 * script/function.c (grub_script_function_call): Moved ...
19263 * script/execute.c (grub_script_function_call): ... to here.
19264 (grub_script_execute_arglist_to_argv): Removed.
19265 (grub_script_arglist_to_argv): New function.
19266 * script/argv.c: New file.
19267 (grub_script_argv_free): New function.
19268 (grub_script_argv_next): Likewise.
19269 (grub_script_argv_append): Likewise.
19270 (grub_script_argv_split_append): Likewise.
19271 * include/grub/script_sh.h (grub_script_argv): New struct.
19272 (grub_script_argv_free): New function.
19273 (grub_script_argv_next): Likewise.
19274 (grub_script_argv_append): Likewise.
19275 (grub_script_argv_split_append): Likewise.
19276
19277 * conf/common.rmk (normal.mod): New source script/argv.c.
19278
19279 * tests/grub_script_echo1.in: More tests.
19280 * tests/grub_script_vars1.in: Likewise.
19281 * tests/grub_script_functions.in: New test case.
19282 * conf/tests.rmk: Rules for new testcase.
19283
8022b748
BC
192842010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19285
19286 Remove grub_script_cmdblock struct.
19287
19288 * include/grub/script_sh.h: Remove grub_script_cmdblock.
19289 * script/parser.y: Likewise.
19290 * script/execute.c: Rename cmdblock suffix to cmdlist.
19291 * script/script.c: Likewise.
19292 * util/grub-script-check.c: Likewise.
19293
79a6ba61
YB
192942010-08-11 Yves Blusseau <blusseau@zetam.org>
19295
19296 * .bzrignore: add grub-macho2img
19297
d04b9414
VS
192982010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
19299
19300 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
19301
f947ab49
VS
193022010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
19303
19304 Remove the dump of sm712 initialisation sequence.
19305
19306 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
19307 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
19308 (GRUB_VGA_IO_MISC_WRITE): Likewise.
19309 (GRUB_VGA_CR_*): Added many registers.
19310 (GRUB_VGA_SR_*): Likewise.
19311 (GRUB_VGA_GR_*): Likewise.
19312 (grub_vga_write_arx): New function.
19313 (grub_video_hw_config): New struct.
19314 (grub_vga_set_geometry): New function.
19315 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
19316 GRUB_PCI_CLASS_SUBCLASS_VGA.
19317 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
19318 * video/sm712.c (grub_sm712_write_reg): New function
19319 (grub_sm712_read_reg): Likewise.
19320 (grub_sm712_sr_write): Likewise.
19321 (grub_sm712_gr_write): Likewise.
19322 (grub_sm712_cr_write): Likewise.
19323 (grub_sm712_write_arx): Likewise.
19324 (grub_sm712_cr_shadow_write): Likewise.
19325 (grub_sm712_write_dda_lookup): Likewise.
19326 (grub_video_sm712_setup): Initialise the video rather then
19327 blindly replay the dump.
19328 (main) [TEST]: Add a routine to be able to compile as standalone for
19329 tests.
19330 * video/sm712_init.c (sm712_init): Removed.
19331 (sm712_sr_seq1): New array.
19332 (sm712_sr_seq2): Likewise.
19333
f0206638
VS
193342010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19335
19336 * include/grub/vga.h: Add missing grub/pci.h include.
19337
2764da3b
YB
193382010-08-10 Yves Blusseau <blusseau@zetam.org>
19339
19340 * util/grub-macho2img.c (main): fix typo
19341
cf0c775e
VS
193422010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19343
19344 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
19345 (grub_vga_gr_read): Likewise.
19346 (grub_vga_cr_write): Likewise.
19347 (grub_vga_cr_read): Likewise.
19348 (grub_vga_sr_write): Likewise.
19349 (grub_vga_sr_read): Likewise.
19350 (grub_vga_palette_read): Likewise.
19351 (grub_vga_palette_write): Likewise.
19352 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
19353 (grub_sm712_sr_read): New function.
19354 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
19355 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
19356
07f360e9
RM
193572010-08-09 Robert Millan <rmh@gnu.org>
19358
19359 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
19360 out unused variables on non-ZFS build.
19361
346c2072
RM
193622010-08-08 Robert Millan <rmh@gnu.org>
19363
19364 Fix path generation for sub-filesystems in ZFS.
19365
19366 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
19367 missing slash.
19368
71175420
RM
193692010-08-08 Robert Millan <rmh@gnu.org>
19370
19371 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
19372
0d8286f3
RM
193732010-08-08 Robert Millan <rmh@gnu.org>
19374
19375 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
19376 exist, issue a proper error message (rely on `ls' for translated
19377 strings).
19378
55dd2924
RM
193792010-08-08 Robert Millan <rmh@gnu.org>
19380
19381 Fix grub-probe invocation.
19382
19383 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
19384
d3dd9e80
RM
193852010-08-04 Robert Millan <rmh@gnu.org>
19386
19387 * configure.ac: Remove checks for getfsstat() and getmntany().
19388 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
19389 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
19390 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
19391 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
19392 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
19393 function.
19394 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
19395 via find_mount_point_from_dir() and getfsstat() / getmntany().
19396
0de22aa9
RM
193972010-08-04 Robert Millan <rmh@gnu.org>
19398
19399 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19400 (grub_find_zpool_from_mount_point): Merge into ...
19401 (grub_find_zpool_from_dir): ... this.
19402 * kern/emu/misc.c: Likewise.
19403
19404 * kern/emu/misc.c
19405 (grub_make_system_path_relative_to_its_root): Replace
19406 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
19407 with grub_find_zpool_from_dir().
19408 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
19409
62858144
RM
194102010-08-04 Robert Millan <rmh@gnu.org>
19411
19412 Support OpenSolaris in ZFS device resolution.
19413
19414 * configure.ac: Check for getmntany().
19415 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19416 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19417 support.
19418
9dd6fd50
RM
194192010-08-03 Robert Millan <rmh@gnu.org>
19420
19421 Fix grub-emu build.
19422
19423 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19424 * include/grub/emu/misc.h: ... here.
19425
19426 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19427 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19428
19429 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19430 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19431 (grub_get_libzfs_handle): Move to ...
19432 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19433 (grub_get_libzfs_handle): ... here.
19434
c9f7ff97
BC
194352010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19436
19437 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19438 as command name case.
19439
a870a783
CW
194402010-08-02 Colin Watson <cjwatson@ubuntu.com>
19441
19442 * disk/raid.c (insert_array): Select unique numbers for named arrays
19443 as well, for use as keys in the disk cache.
19444
c7db243b
RM
194452010-08-01 Robert Millan <rmh@gnu.org>
19446
19447 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19448 kFreeBSD device name, except on ZFS where the filesystem label is
19449 used.
19450 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19451 `/boot/zfs/zpool.cache'.
19452 Set mountfrom kernel variable using ${kfreebsd_device}.
19453
f7abdefb
RM
194542010-08-01 Robert Millan <rmh@gnu.org>
19455
19456 Make it even harder to use uninitialized `libzfs_handle' (and
19457 make the interface a bit simpler).
19458
19459 * include/grub/util/misc.h (grub_util_init_libzfs)
19460 (libzfs_handle): Remove.
19461 (grub_get_libzfs_handle): New prototype.
19462
19463 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19464 attribute.
19465 (grub_util_init_libzfs): Remove.
19466 (grub_get_libzfs_handle): New function.
19467
19468 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19469 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19470 accessing `libzfs_handle' directly.
19471
c882acc0
RM
194722010-08-01 Robert Millan <rmh@gnu.org>
19473
19474 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19475 (grub_find_zpool_from_mount_point): New function prototypes.
19476
19477 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19478 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19479
19480 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19481 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19482 `static' attribute.
19483
19484 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19485 finding zpool from mount point into ...
19486 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19487
19488 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19489 requested path is part of a ZFS pool, use
19490 grub_find_zpool_from_mount_point() to detect its filesystem name,
19491 and generate a path with `/fsname@path' syntax.
19492
8bfe31d8
CW
194932010-08-01 Colin Watson <cjwatson@ubuntu.com>
19494
19495 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19496 (void) rather than () so that this is a proper prototype.
19497
553df63d
VS
194982010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19499
19500 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19501
8687cf07
VS
195022010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19503
19504 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19505 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19506
ea9be8ea
CW
195072010-08-01 Colin Watson <cjwatson@ubuntu.com>
19508
19509 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19510
6eea041a
CW
195112010-08-01 Colin Watson <cjwatson@ubuntu.com>
19512
19513 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19514
2cfb45df
CW
195152010-08-01 Colin Watson <cjwatson@ubuntu.com>
19516
19517 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19518 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19519 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19520 disable gfxpayload.
19521 (Shell-like scripting): Add real content.
19522 (Serial terminal): Suggest `terminal_input serial; terminal_output
19523 serial' rather than putting the two commands on separate lines,
19524 since console input will be inoperative after the first command.
19525 (menuentry): Document --class, --users, and --hotkey options.
19526 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19527 Vladimir Serbinenko).
19528
7decd202
VS
195292010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
195302010-08-01 Colin Watson <cjwatson@ubuntu.com>
19531
19532 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19533
c882acc0
RM
195342010-08-01 Robert Millan <rmh@gnu.org>
19535
19536 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19537 (grub_find_zpool_from_mount_point): New function prototypes.
19538
19539 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19540 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19541
19542 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19543 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19544 `static' attribute.
19545
19546 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19547 finding zpool from mount point into ...
19548 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19549
19550 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19551 requested path is part of a ZFS pool, use
19552 grub_find_zpool_from_mount_point() to detect its filesystem name,
19553 and generate a path with `/fsname@path' syntax.
19554
deb0caa3
RM
195552010-08-01 Robert Millan <rmh@gnu.org>
19556
19557 Prevent accidental use of uninitialized libzfs_handle.
19558
19559 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19560 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19561 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19562
ce04ef47
CW
195632010-08-01 Colin Watson <cjwatson@ubuntu.com>
19564
19565 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19566 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19567
ebf53056
RM
195682010-08-01 Robert Millan <rmh@gnu.org>
19569
19570 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 19571
3710bb6b
RM
195722010-07-31 Robert Millan <rmh@gnu.org>
19573
19574 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19575
8072efeb
RM
195762010-07-31 Robert Millan <rmh@gnu.org>
19577
19578 * kern/emu/misc.c: Add missing license header.
19579
3169f4c7
RM
195802010-07-31 Robert Millan <rmh@gnu.org>
19581
19582 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19583
19584 * include/grub/util/libnvpair.h: Include `<config.h>'.
19585 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19586 declaring libnvpair prototypes ourselves.
19587 * include/grub/util/libzfs.h: Include `<config.h>'.
19588 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19589 declaring libzfs prototypes ourselves.
19590
19591 (libzfs_handle): Moved to ...
19592 * include/grub/util/misc.h (libzfs_handle): ... here.
19593 Include `<grub/util/libzfs.h>'.
19594
c9a00aee
RM
195952010-07-30 Robert Millan <rmh@gnu.org>
19596
19597 * include/grub/emu/misc.h: Add missing license header.
19598
a184f9c8
RM
195992010-07-30 Robert Millan <rmh@gnu.org>
19600
19601 Enable `grub-probe -t device' resolution on ZFS.
19602
19603 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19604 * include/grub/util/libnvpair.h: New file.
19605 * include/grub/util/libzfs.h: New file.
19606
19607 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19608 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19609 `<grub/util/libnvpair.h>'.
19610 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19611
19612 (find_mount_point_from_dir): New static function.
19613 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19614 function.
19615 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19616 find_root_device_from_libzfs() before ressorting to find_root_device().
19617
19618 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19619 prototype.
19620 * util/misc.c: Include `<grub/util/libzfs.h>'.
19621 (grub_util_init_libzfs): New function.
19622 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19623 [HAVE_LIBZFS] (fini_libzfs): New static function.
19624 (grub_util_init_libzfs): New function.
19625 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19626
f7790cdd
RM
196272010-07-30 Robert Millan <rmh@gnu.org>
19628
19629 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19630 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19631 `warn_unused_result' attribute.
19632 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19633 (grub_xasprintf, grub_xvasprintf): Likewise.
19634 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19635
0806b63c
RM
196362010-07-29 Robert Millan <rmh@gnu.org>
19637
19638 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19639 (probe): Handle `PRINT_FS_LABEL'.
19640 (main): Handle `-t fs_label'.
19641
9f841f5c
RM
196422010-07-29 Robert Millan <rmh@gnu.org>
19643
19644 * configure.ac: Remove grub-mkisofs checks.
19645
46371121
VS
196462010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19647
19648 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19649 Reported by: Lennart Sorensen.
19650
196512010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19652
19653 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19654 prior to terminal_input/terminal_output separation. It's been over 1.5
19655 years and those versions weren't widely deployed.
19656
a9600892
CW
196572010-07-22 Colin Watson <cjwatson@ubuntu.com>
19658
19659 * disk/raid.c (insert_array): Don't count named arrays when looking
19660 for unused array numbers.
697e053c 19661 Reported and tested by: Michael Guntsche.
a9600892 19662
c03507df
CW
196632010-07-20 Colin Watson <cjwatson@ubuntu.com>
19664
19665 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19666 implementation of this so that grub-emu links again, with a note
19667 that this should support hotplugging in the future.
19668
b26f1c11
CW
196692010-07-20 Colin Watson <cjwatson@ubuntu.com>
19670
19671 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19672
efc9d7f1
CW
196732010-07-20 Colin Watson <cjwatson@ubuntu.com>
19674
19675 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19676 handle on failure.
19677 (grub_loopback_close): Remove empty function.
19678 (grub_loopback_dev): Remove close method.
19679
dd8ff5c9
CW
196802010-07-20 Colin Watson <cjwatson@ubuntu.com>
19681
19682 Disable EFI cursor when the EFI console becomes inactive.
19683
19684 * term/efi/console.c (grub_efi_console_init): New function.
19685 (grub_efi_console_fini): New function.
19686 (grub_console_term_output): Register init and fini methods.
19687
5e3bec67
VS
196882010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19689
19690 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19691 sh script.
19692
afaec079
VS
196932010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19694
19695 * disk/loopback.c (grub_loopback): Replace filename with file.
19696 (delete_loopback): Handle new semantics.
19697 (grub_cmd_loopback): Likewise.
19698 (grub_loopback_iterate): Likewise.
19699 (grub_loopback_close): Likewise.
19700
a6a11f3c
VS
197012010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19702
19703 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19704 with -p "".
19705 Reported by: Tito Keitel.
19706
64a638b0
VS
197072010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19708
19709 * docs/grub.texi (Naming convention): Document new naming convention.
19710
ab8ba957
VS
197112010-07-20 Vadim Solomin <vadic052@gmail.com>
197122010-07-20 Colin Watson <cjwatson@ubuntu.com>
19713
19714 Generate device.map in something closer to the old ordering.
19715
19716 * util/deviceiter.c (struct device): New declaration.
19717 (compare_file_names): Rename to ...
19718 (compare_devices): ... this. Sort by kernel name in preference to
19719 the stable by-id name, but keep the latter as a fallback comparison.
19720 Update header comment.
19721 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19722 of `struct device' rather than of plain file names.
19723
a29d6a4b
TF
197242010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19725
19726 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19727 on i386.
19728
39d824e8
VS
197292010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19730
19731 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19732 hardcoding size.
19733 (setv1table): Likewise.
19734
f058276b
FZ
197352010-07-20 Colin Watson <cjwatson@ubuntu.com>
19736
19737 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19738 removing the homehost if present.
19739 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19740 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19741 removing the homehost if present.
19742 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19743 if possible.
19744 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19745
19746 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19747 parameter. Set its pointer target to 0.
19748 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19749 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19750 `data_offset' value from the superblock for 1.x metadata.
19751 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19752 data on the device.
19753 (insert_array): Record the start sector of data on the device.
19754 (grub_raid_register): Pass start_sector parameters to
19755 grub_raid_list->detect and insert_array.
19756 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19757 member.
19758 (struct grub_raid): Add start_sector parameter to `detect'.
19759
19760 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19761 __attribute__ ((packed)), leaving a comment.
19762 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19763 (grub_mdraid_detect_09): ... here and ...
19764 (grub_mdraid_detect_1x): ... here.
19765
197662010-07-20 Peter Henn <peter.henn@web.de>
19767
19768 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19769 chunk size and disk size, which are already given as sector counts
19770 as distinct from the 0.90 units. Fetch the correct device number
19771 from the role table instead of using the table index.
19772
197732010-07-20 Felix Zielcke <fzielcke@z-51.de>
19774
19775 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19776 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19777 (WriteMostly1): New macro.
19778 Set array->name to NULL for metadata format 0.90. Add support for
19779 metadata 1.x. Fix some comments.
19780 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19781 few comments.
19782 * util/getroot.c (grub_util_get_grub_dev): Add support for
19783 /dev/md/name style devices.
19784
4b761da9
CW
197852010-07-20 Colin Watson <cjwatson@ubuntu.com>
19786
19787 * .bzrignore: Ignore 20_linux_xen.
19788
5771289a
CW
197892010-07-17 Colin Watson <cjwatson@ubuntu.com>
19790
19791 * util/import_unicode.py: Remove unnecessary imports.
19792
5dab68df
AN
197932010-07-17 Aleš Nesrsta <starous@volny.cz>
19794
19795 Hotplugging and USB hub support.
19796
19797 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19798 (grub_ohci): Likewise.
19799 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19800 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19801 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19802 (GRUB_OHCI_CTRL_EDS): Likewise.
19803 (GRUB_OHCI_BULK_EDS): Likewise.
19804 (GRUB_OHCI_TDS): Likewise.
19805 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19806 (grub_ohci_ed_phys2virt): New function.
19807 (grub_ohci_virt_to_phys): Likewise.
19808 (grub_ohci_td_phys2virt): Likewise.
19809 (grub_ohci_td_virt2phys): Likewise.
19810 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19811 attachment.
19812 (grub_ohci_find_ed): New function.
19813 (grub_ohci_alloc_td): Likewise.
19814 (grub_ohci_free_td): Likewise.
19815 (grub_ohci_free_tds): Likewise.
19816 (grub_ohci_transfer): Use previously allocated memory.
19817 (grub_ohci_portstatus): Reset status changed bit.
19818 (grub_ohci_detect_dev): Supply status changed.
19819 (grub_ohci_fini_hw): Free memory.
19820 (grub_ohci_restore_hw): Reallocate memory.
19821 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19822 Reset status change.
19823 (grub_uhci_detect_dev): Supply status_change.
19824 * bus/usb/usb.c (attach_hooks): New var.
19825 (grub_usb_device_attach): New function.
19826 (grub_usb_register_attach_hook_class): Likewise.
19827 (grub_usb_unregister_attach_hook_class): Likewise.
19828 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19829 (grub_usb_add_hub): Reset connection changed bit.
19830 (attach_root_port): New function.
19831 (grub_usb_root_hub): Likewise.
19832 (poll_nonroot_hub): Likewise.
19833 (grub_usb_poll_devices): Likewise.
19834 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19835 * disk/usbms.c (grub_usbms_open): Use device hooks.
19836 (grub_usbms_iterate) :Poll devices.
19837 (grub_usbms_finddevs): Split into ...
19838 (grub_usbms_attach): ... this ...
19839 (grub_usbms_attach): ... and this.
19840 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19841 in detect_dev.
19842 (grub_usb_interface): New fields attached and detach_hook.
19843 (grub_usb_attach_hook_class): New type.
19844 (grub_usb_attach_desc): New struct.
19845 (grub_usb_register_attach_hook_class): New function.
19846 (grub_usb_unregister_attach_hook_class): Likewise.
19847 (grub_usb_poll_devices): Likewise.
19848 (grub_usb_device_attach): Likewise.
19849 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19850 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19851
3222efaf
VS
198522010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19853
19854 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19855 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19856 delta determination style. Works with most NetBSD partitions too.
19857
139b714a
VS
198582010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19859
19860 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19861 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19862
986aad56
VS
198632010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19864
19865 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19866
99be513c
AB
198672010-07-14 Anton Blanchard <anton@samba.org>
19868
19869 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19870 ET_DYN files.
19871
18075f62
GS
198722010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19873
19874 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19875
8d9a5b15
GS
198762010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19877
19878 * kern/partition.c (grub_partition_check_containment): New function to
19879 check that a partition is physically contained in a parent. Since
19880 offsets are relative (and non-negative), this reduces to checking that
19881 the partition ends before its parent.
19882 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19883 (grub_partition_iterate): Likewise.
19884 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19885 comments.
19886 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19887 partitions that start before their parent, and add debug printfs.
19888
19563c25
CW
198892010-07-13 Colin Watson <cjwatson@ubuntu.com>
19890
19891 * Makefile.in (.SUFFIX): Spell correctly, as ...
19892 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19893 bare module name without `.mod', e.g. `test') tried to invoke a
19894 Modula-2 compiler.
19895
1a1f1e67
CW
198962010-07-13 Colin Watson <cjwatson@ubuntu.com>
19897
19898 * README: Point to the Info manual.
19899
811b0dca
JS
199002010-07-13 Jiro SEKIBA <jir@unicus.jp>
19901
19902 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19903 2nd superblock position from partition size.
19904
e4f4eafc
CW
199052010-07-10 Colin Watson <cjwatson@ubuntu.com>
19906
19907 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19908 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19909 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19910 outputs.
19911
4274c30f
VS
199122010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19913
19914 Restructure SCSI .id handling.
19915 Reported and tested by: Aleš Nesrsta.
19916
19917 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19918 (grub_atapi_dev): Changed .name to "ata". New field .id.
19919 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19920 (grub_usbms_dev): New field .id.
19921 * disk/scsi.c (grub_scsi_iterate): Generate name.
19922 (grub_scsi_open): Parse name.
19923 * include/grub/scsi.h (grub_make_scsi_id): New function.
19924 (grub_scsi_dev): Change iterate and open to number instead of naming
19925 busses. All users updated.
19926 (grub_scsi): Remove name. Add .bus.
19927
5bc24388
VS
199282010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19929
19930 * commands/help.c (grub_cmd_help): Fix a typo.
19931
249975ba
VS
199322010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19933
19934 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19935 Reported and tested by: Colin Watson.
19936
3eaac1a1
VS
199372010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19938
19939 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19940 in this context.
19941
becce1b1
VS
199422010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19943
19944 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19945
f7bf0918
CW
199462010-07-07 Colin Watson <cjwatson@ubuntu.com>
19947
19948 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19949 indentation.
19950
0b0f9620
CW
199512010-07-06 Colin Watson <cjwatson@ubuntu.com>
19952
19953 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19954 and disk/raid6_recover.c.
19955 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19956 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19957
1e545469
CW
199582010-07-06 Colin Watson <cjwatson@ubuntu.com>
19959
19960 * term/gfxterm.c (repaint_schedulded): Rename to ...
19961 (repaint_scheduled): ... this. Update all callers.
19962 (repaint_was_schedulded): Rename to ...
19963 (repaint_was_scheduled): ... this. Update all callers.
19964
5357687a
CW
199652010-07-06 Colin Watson <cjwatson@ubuntu.com>
19966
19967 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19968 which we expect to be handled by upper layers.
19969
29d7e783
BC
199702010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19971
19972 * bus/usb/usbhub.c: #include time.h header.
19973
37582066
CW
199742010-07-06 Colin Watson <cjwatson@ubuntu.com>
19975
19976 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19977 entry_name also for entries without stat blocks (e.g. ".."); fixes
19978 corruption of the first entry in a directory.
19979
c8c06953
CW
199802010-07-06 Colin Watson <cjwatson@ubuntu.com>
19981
19982 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19983 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19984 doesn't work otherwise.
19985
e75056f1
CW
199862010-07-05 Colin Watson <cjwatson@ubuntu.com>
19987
19988 * docs/grub.texi (Features): Update list of supported file systems.
19989 (GNU/Linux): Update for GRUB 2.
19990 (Serial terminal): Remove mention of --disable-serial, which was a
19991 GRUB Legacy configure option. Update instructions to use
19992 `terminal_input' and `terminal_output' rather than `terminal'.
19993 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19994 configuration' and `Installing GRUB using grub-install'.
19995 (Menu entry editor): Update for GRUB 2.
19996 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19997 Document new -a, -u, and -v options.
19998 (initrd): New section.
19999 (initrd16): New section.
20000 (linux): New section.
20001 (linux16): New section.
20002 (search): The `var' argument to `--set' is optional.
20003 (GRUB only offers a rescue shell): Go into a little more detail on
20004 drive ordering.
20005
5cf69151
CW
200062010-07-05 Colin Watson <cjwatson@ubuntu.com>
20007
20008 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
20009
e3f90044
CW
200102010-07-05 Colin Watson <cjwatson@ubuntu.com>
20011
20012 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
20013 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
20014
38d8f4f3
CW
200152010-07-05 Colin Watson <cjwatson@ubuntu.com>
20016
20017 * util/i386/pc/grub-setup.c (setup): Rename prefix to
20018 install_prefix, in line with install_dos_part and install_bsd_part.
20019 Add new prefix variable, which is copied to install_prefix after
20020 comparing core.img in memory with the one read from disk in the
20021 no-embedding case, and use that rather than overwriting
20022 install_prefix immediately when installing to a partition.
20023 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
20024 Bicakci.
20025
57ebd41e
GS
200262010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
20027
20028 * configure.ac: Avoid == in test command, it's not portable.
20029 * util/grub.d/30_os-prober.in: Likewise.
20030
cb7f64b2
CW
200312010-07-04 Colin Watson <cjwatson@ubuntu.com>
20032
20033 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
20034
6b654bb0
GS
200352010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
20036
20037 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
20038 multiple (top-level) partmaps.
20039
72a2026d
VS
200402010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20041
20042 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 20043 Reported by: Tino Keitel.
72a2026d 20044
df3eb88f
VS
200452010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20046
20047 Bidi and diacritics support.
20048
20049 * Makefile.in (widthspec.bin): New target.
20050 (widthspec.h): Likewise.
20051 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
20052 * autogen.sh: Generate unidata.c.
20053 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
20054 * commands/ls.c (grub_ls_list_devices): Likewise.
20055 (grub_ls_list_files): Likewise.
20056 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
20057 (grub_mini_cmd_lsmod): Likewise.
20058 * commands/read.c: Likewise.
20059 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
20060 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
20061 * lib/arg.c (grub_arg_show_help): Likewise.
20062 * lib/crypto.c (grub_password_get): Likewise.
20063 * normal/auth.c (grub_username_get): Likewise.
20064 * normal/misc.c (grub_normal_print_device_info): Likewise.
20065 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
20066 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
20067 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
20068 (normal/charset.c_DEPENDENCIES): New variable.
20069 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
20070 (pkglib_MODULES): Remove charset.mod.
20071 (charset_mod_SOURCES): Removed.
20072 (charset_mod_CFLAGS): Likewise.
20073 (charset_mod_LDFLAGS): Likewise.
20074 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
20075 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
20076 and term/tparm.c.
20077 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20078 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20079 (kernel_img_HEADERS): Add terminfo.h.
20080 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
20081 Fill ->font. Reverse ascii bitmaps.
20082 (grub_font_get_xheight): New function.
20083 * font/font.c (grub_font_get_string_width): Moved from here ...
20084 * gfxmenu/font.c (grub_font_get_string_width): ... here.
20085 * font/font.c (grub_font_draw_string): Moved from here ...
20086 * gfxmenu/font.c (grub_font_draw_string): ... here.
20087 * font/font.c (grub_font_dup_glyph): New function.
20088 (grub_font_blit_glyph): Likewise.
20089 (grub_font_blit_glyph_mirror): Likewise.
20090 (blit_comb): Likewise.
20091 (grub_font_construct_dry_run): Likewise.
20092 (grub_font_get_constructed_device_width): Likewise.
20093 (grub_font_construct_glyph): Likewise.
20094 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
20095 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
20096 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
20097 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
20098 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
20099 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
20100 (grub_font_get_xheight): New proto.
20101 (grub_font_get_constructed_device_width): Likewise.
20102 (grub_font_construct_glyph): Likewise.
20103 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
20104 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
20105 * include/grub/font.h (grub_font_draw_string): Moved from here ...
20106 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
20107 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
20108 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
20109 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
20110 (grub_console_getcharwidth): Likewise.
20111 * include/grub/misc.h (grub_xputs): New proto.
20112 (grub_puts): Inlined.
20113 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
20114 (grub_normal_get_line_counter): Removed.
20115 (grub_install_newline_hook): Likewise.
20116 (grub_normal_get_char_counter): New proto.
20117 (grub_normal_reset_more): Likewise.
20118 (grub_xputs_normal): Likewise.
20119 * include/grub/powerpc/ieee1275/console.h: Removed.
20120 * include/grub/sparc64/ieee1275/console.h: Likewise.
20121 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
20122 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
20123 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
20124 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
20125 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
20126 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
20127 (grub_term_input): Pass reference to self. All users updated.
20128 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
20129 Pass reference to self. New fields normal_color, highlight_color and
20130 data. All users updated.
20131 (grub_putchar): Removed.
20132 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
20133 (grub_unicode_estimate_width): New function.
20134 (grub_term_getcharwidth): Add defaults.
20135 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
20136 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
20137 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
20138 (grub_cls): Remove EXPORT_FUNC.
20139 (grub_setcolorstate): Inline.
20140 (grub_newline_hook): Removed.
20141 * include/grub/terminfo.h: Rewritten. All users updated.
20142 * include/grub/unicode.h: New file.
20143 * include/grub/video.h (grub_video_signed_rect): New type.
20144 * kern/emu/console.c (grub_console_highlight_color): Removed.
20145 (grub_console_normal_color): Likewise.
20146 (grub_console_standard_color): Made static.
20147 (grub_ncurses_putchar): Remove mapping.
20148 (grub_ncurses_getcharwidth): Removed.
20149 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20150 (grub_ncurses_setcolor): Removed.
20151 (grub_ncurses_getcolor): Likewise.
20152 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
20153 (grub_console_putchar): ... this.
20154 (grub_console_putchar): Handle argument difference.
20155 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
20156 console_init_early and console_init_lately.
20157 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
20158 * kern/misc.c (grub_puts): Removed.
20159 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
20160 (grub_vsnprintf_real): Remove str = NULL support.
20161 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
20162 * normal/charset.c (grub_utf8_to_ucs4): ... here.
20163 * kern/term.c (grub_putcode): Renamed to ...
20164 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
20165 (grub_putchar): Removed.
20166 (grub_xputs_dumb): New function.
20167 (grub_xputs): New variable.
20168 * lib/charset.c: Move from here ...
20169 * normal/charset.c: ... to here.
20170 (grub_ucs4_to_utf8): New function.
20171 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
20172 (join_types): New variable.
20173 (unpack_join): New function.
20174 (bidi_types): New variable.
20175 (unpack_bidi): New function.
20176 (get_bidi_type): Likewise.
20177 (get_join_type): Likewise.
20178 (is_mirrored): Likewise.
20179 (grub_unicode_get_comb_type): Likewise.
20180 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
20181 (is_type_after): Likewise.
20182 (grub_unicode_aglomerate_comb): Likewise.
20183 (bidi_line_wrap): Likewise.
20184 (grub_bidi_line_logical_to_visual): Likewise.
20185 (grub_bidi_logical_to_visual): Likewise.
20186 (grub_unicode_mirror_code): Likewise.
20187 (grub_unicode_shape_code): Likewise.
20188 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
20189 Don't use grub_putchar.
20190 * normal/main.c (grub_normal_init_page): Use grub_putcode.
20191 (grub_normal_reader_init): Likewise.
20192 (grub_xputs_saved): New variable.
20193 (GRUB_MOD_INIT): Set grub_xputs.
20194 (GRUB_MOD_FINI): Restore grub_xputs.
20195 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
20196 (menu_init): Avoid printing gfxmenu error.
20197 (show_menu): Use grub_normal_get_char_counter.
20198 * normal/menu_entry.c (update_screen): Fix out-of-array.
20199 (complete): Avoid NULL dereferencing.
20200 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
20201 * normal/menu_text.c (print_spaces): Removed.
20202 (grub_print_ucs4): Likewise.
20203 (grub_print_message_indented): Use grub_print_ucs4.
20204 (print_message): Use grub_putcode.
20205 (print_entry): Hanlde diacritics.
20206 * normal/term.c (term_state): New type.
20207 (grub_more_lines): Removed.
20208 (term_states): New variable.
20209 (grub_normal_line_counter): Renamed to ..
20210 (grub_normal_char_counter): ...this. All users updated.
20211 (grub_normal_get_line_counter): Renamed to ...
20212 (grub_normal_get_char_counter): ... this.
20213 (grub_normal_reset_more): New function.
20214 (process_newline): Removed.
20215 (print_more): New function.
20216 (grub_install_newline_hook): Removed.
20217 (map_code): New function.
20218 (grub_puts_terminal): Use grub_print_ucs4.
20219 (putglyph): New function.
20220 (putcode_real): Likewise.
20221 (grub_putcode): Use putcode_real.
20222 (get_maxwidth): New function.
20223 (get_startwidth): Likewise.
20224 (print_ucs4_terminal): Likewise.
20225 (find_term_state): Likewise.
20226 (put_glyphs_terminal): Likewise.
20227 (print_backlog): Likewise.
20228 (print_ucs4_real): Likewise.
20229 (grub_print_ucs4): Likewise.
20230 (grub_xputs_normal): Likewise.
20231 * term/efi/console.c (grub_console_putchar): Output diacritics.
20232 (grub_console_getcharwidth): Removed.
20233 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20234 * term/gfxterm.c (clear_char): Free chars.
20235 (scroll_up): Avoid leaking memory.
20236 (grub_gfxterm_putchar): Support diacritics.
20237 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20238 * term/i386/pc/console.c (grub_console_term_output): Declare as
20239 GRUB_TERM_CODE_TYPE_VGA.
20240 * term/i386/pc/vga.c (grub_vga_term): Declare as
20241 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
20242 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
20243 GRUB_TERM_CODE_TYPE_VGA.
20244 * term/i386/vga_common.c (map_char): Removed.
20245 (grub_console_putchar): Likewise.
20246 (grub_console_getcharwidth): Likewise.
20247 * term/ieee1275/ofconsole.c: Simplify using terminfo.
20248 (colors): Reordered to match terminfo.
20249 (grub_ofconsole_normal_color): Removed.
20250 (grub_ofconsole_writeesc): Likewise.
20251 (grub_ofconsole_highlight_color): Likewise.
20252 (grub_ofconsole_getcharwidth): Likewise.
20253 (grub_ofconsole_setcolorstate): Likewise.
20254 (grub_ofconsole_setcolor): Likewise.
20255 (grub_ofconsole_getcolor): Likewise.
20256 (grub_ofconsole_readkey): Renamed to ...
20257 (readkey): ... this. Remove escape sequence handling. Return -1 on no
20258 key.
20259 (grub_ofconsole_checkkey): Removed.
20260 (grub_ofconsole_getkey): Likewise.
20261 (grub_ofconsole_getxy): Likewise.
20262 (grub_ofconsole_gotoxy): Likewise.
20263 (grub_ofconsole_cls): Likewise.
20264 (grub_ofconsole_refresh): Likewise.
20265 (grub_ofconsole_terminfo_input): New struct.
20266 (grub_ofconsole_terminfo_output): Likewise.
20267 (grub_ofconsole_term_input): Use terminfo.
20268 (grub_ofconsole_term_output): Likewise.
20269 (grub_console_init): Split into ...
20270 (grub_console_init_early): ...this and ...
20271 (grub_console_init_lately): ...this. Use terminfo.
20272 (grub_ofconsole_putchar): Renamed to ...
20273 (put): ... this. Remove mapping.
20274 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20275 * term/serial.c: Simplify using terminfo.
20276 (xpos): Removed.
20277 (ypos): Likewise.
20278 (keep_track): Likewise.
20279 (registered): Likewise.
20280 (input_buf): Likewise.
20281 (npending): Likewise.
20282 (serial_translate_key_sequence): Likewise.
20283 (fill_input_buf): Likewise.
20284 (grub_serial_checkkey): Likewise.
20285 (grub_serial_getkey): Likewise.
20286 (grub_serial_getxy): Likewise.
20287 (grub_serial_gotoxy): Likewise.
20288 (grub_serial_putchar): Likewise.
20289 (grub_serial_cls): Likewise.
20290 (grub_serial_setcolorstate): Likewise.
20291 (grub_serial_setcursor): Likewise.
20292 (serial_hw_init): Use serial_hw_fetch.
20293 (grub_serial_terminfo_input): New variable.
20294 (grub_serial_terminfo_output): Likewise.
20295 (grub_serial_term_input): Use terminfo.
20296 (grub_serial_term_output): Likewise.
20297 * term/terminfo.c (putstr): Use put.
20298 (grub_terminfo_all_free): New function
20299 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
20300 (grub_terminfo_output_register): New function.
20301 (grub_terminfo_output_unregister): Likewise.
20302 (grub_terminfo_getxy): Likewise.
20303 (grub_terminfo_readkey): Likewise.
20304 (grub_terminfo_checkkey): Likewise.
20305 (grub_terminfo_getkey): Likewise.
20306 (grub_terminfo_input_init): Likewise.
20307 (print_terminfo): Likewise.
20308 (grub_cmd_terminfo): Handle encoding.
20309 (grub_terminfo_gotoxy): Track position.
20310 (grub_terminfo_cls): Likewise.
20311 (grub_terminfo_putchar): Likewise.
20312 (grub_terminfo_setcolorstate): Handle colors
20313 (grub_terminfo_cursor_on): This ...
20314 (grub_terminfo_cursor_off): ... and this merged into ...
20315 (grub_terminfo_setcursor): ... this.
20316 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
20317 * unicode/ArabicShaping.txt: New file (imported from Unicode).
20318 * unicode/BidiMirroring.txt: Likewise.
20319 * unicode/UnicodeData.txt: Likewise.
20320 * unicode/COPYING: Likewise.
20321 * util/grub-editenv.c (grub_putchar): Removed.
20322 (grub_xputs_real): New function.
20323 (grub_xputs): New variable.
20324 * util/grub-fstest.c (grub_putchar): Removed.
20325 (grub_xputs_real): New function.
20326 (grub_xputs): New variable.
20327 * util/grub-mkdevicemap.c (grub_putchar): Removed.
20328 (grub_xputs_real): New function.
20329 (grub_xputs): New variable.
20330 * util/grub-probe.c (grub_putchar): Removed.
20331 (grub_xputs_real): New function.
20332 (grub_xputs): New variable.
20333 * util/grub-script-check.c (grub_putchar): Removed.
20334 (grub_xputs_real): New function.
20335 (grub_xputs): New variable.
20336 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
20337 (grub_xputs_real): New function.
20338 (grub_xputs): New variable.
20339 * util/import_unicode.py: New file.
20340 * util/grub-mkfont.c (ft_errmsgs): New array.
20341 (grub_glyph_info): Make bitmap a pointer.
20342 (file_formats): New type WIDTH_SPEC.
20343 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
20344 (options): Add width-spec.
20345 (help): Likewise.
20346 (add_char): Renamed to ...
20347 (add_glyph): ... this.
20348 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
20349 (glyph_replace): New type.
20350 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
20351 (add_char): New function.
20352 (add_subst): Likewise.
20353 (process_cursive): Likewise.
20354 (add_font): Handle GSUB.
20355 (write_font_width_spec): New function.
20356 (main): Sort glyphs.
20357 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
20358 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
20359 * kern/term.c (grub_cls): Moved from here...
20360 * normal/term.c (grub_cls): ... here.
20361
50f0bcda
CW
203622010-07-02 Colin Watson <cjwatson@ubuntu.com>
20363
20364 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
20365 suitable for using within the format argument of printf when
20366 converting grub_size_t.
20367 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
20368 "x" to convert grub_size_t arguments.
20369
40372103
VS
203702010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20371
20372 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
20373 too long captions.
20374 (list_get_minimal_size): Take selection box into account.
20375
942a10c7
VS
203762010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20377
20378 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
20379 NULL font.
20380
2bdb2892
CW
203812010-07-02 Colin Watson <cjwatson@ubuntu.com>
20382
20383 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
20384 devices when iterating over /dev/disk/by-id; they will be handled
20385 later if appropriate, which they aren't always (e.g. LVM).
20386
e03ed6c1
CW
203872010-07-02 Colin Watson <cjwatson@ubuntu.com>
20388
20389 * include/grub/misc.h (grub_reboot): Declare as noreturn.
20390 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
20391 fails.
20392 (grub_halt): Likewise.
20393 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
20394 reset-all fails.
20395 (grub_halt): Don't return, even if all of shut-down, power-off, and
20396 poweroff fail.
20397
47695765
CW
203982010-07-02 Colin Watson <cjwatson@ubuntu.com>
20399
20400 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
20401 arguments, not three.
20402
507736c8
CW
204032010-07-02 Colin Watson <cjwatson@ubuntu.com>
20404
20405 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20406 * util/grub.d/10_linux.in: Use it to check for LVM, so that
20407 LVM-on-RAID is handled correctly.
20408
e3c8cd37
CW
204092010-07-02 Colin Watson <cjwatson@ubuntu.com>
20410
20411 * docs/grub.texi (Changes from GRUB Legacy): New section.
20412 (Future): Fix typo.
20413
8d4a2fec
CW
204142010-07-02 Colin Watson <cjwatson@ubuntu.com>
20415
20416 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20417 grub.d/README accidentally ends up executable for one reason or
20418 another. Ignore it.
20419
1c4827be
VS
204202010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20421
20422 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20423 (gpt_partition_map_iterate): Support non-512B sectors.
20424
d9a0c941
VS
204252010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20426
20427 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20428 Tested by: Seth Goldberg.
20429
48f27e87
VS
204302010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20431
20432 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20433 Properly align mbi.
20434 Reported by: Seth Goldberg.
20435
b0c4f956
VS
204362010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20437
20438 * util/grub-mkrescue.in: Avoid module duplication.
20439
105a2e8c
SF
204402010-07-01 Sean Finney <seanius@seanius.net>
20441
20442 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20443
5944958c
SF
204442010-07-01 Sean Finney <seanius@seanius.net>
20445
20446 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20447
204482010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20449
20450 * disk/lvm.c (grub_lvm_checkvalue): New function.
20451 (grub_lvm_check_flag): Likewise.
20452
b79889ba
RM
204532010-07-01 Robert Millan <rmh@gnu.org>
20454
20455 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20456 Support 'p' as partition separator on kernel of FreeBSD (used
20457 with GPT labels).
20458 (grub_util_biosdisk_get_grub_dev): Likewise.
20459
ec1d04f1
VS
204602010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20461
20462 Yeeloong firmware port.
20463
20464 * boot/mips/yeeloong/fwstart.S: New file.
20465 * bus/cs5536.c (gpiodump): New const.
20466 (set_io_space): New function.
20467 (set_iod): Likewise.
20468 (set_p2d): Likewise.
20469 (grub_cs5536_init_geode): Likewise.
20470 * commands/mips/yeeloong/lsspd.c: New file.
20471 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20472 (serial_mod_SOURCES): New variable.
20473 (serial_mod_CFLAGS): Likewise.
20474 (serial_mod_LDFLAGS): Likewise.
20475 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20476 term/terminfo.c and term/tparm.c.
20477 (pkglib_IMAGES): Add fwstart.img.
20478 (fwstart_img_SOURCES): New variable.
20479 (fwstart_img_CFLAGS): Likewise.
20480 (fwstart_img_ASFLAGS): Likewise.
20481 (fwstart_img_LDFLAGS): Likewise.
20482 (fwstart_img_FORMAT): Likewise.
20483 (pkglib_MODULES): Add lsspd.mod.
20484 (lsspd_mod_SOURCES): New variable.
20485 (lsspd_mod_CFLAGS): Likewise.
20486 (lsspd_mod_LDFLAGS): Likewise.
20487 (pkglib_MODULES): Add halt.mod.
20488 (halt_mod_SOURCES): New variable.
20489 (halt_mod_CFLAGS): Likewise.
20490 (halt_mod_LDFLAGS): Likewise.
20491 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20492 (serial_mod_SOURCES): Removed.
20493 (serial_mod_CFLAGS): Likewise.
20494 (serial_mod_LDFLAGS): Likewise.
20495 * disk/ata.c (check_device): New function.
20496 (grub_ata_device_initialize): Use check_device.
20497 (grub_ata_iterate): Recheck devices.
20498 (grub_ata_open): Likewise.
20499 (grub_atapi_iterate): Likewise.
20500 (grub_atapi_open): Likewise.
20501 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20502 (GRUB_ATA_CH1_PORT1): Likewise.
20503 (GRUB_ATA_CH0_PORT2): Likewise.
20504 (GRUB_ATA_CH1_PORT2): Likewise.
20505 * include/grub/mips/loongson.h: New file.
20506 * include/grub/mips/yeeloong/ec.h: Likewise.
20507 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20508 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20509 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20510 * include/grub/misc.h (grub_halt): Declare as noreturn.
20511 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20512 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20513 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20514 (UART_ENABLE_DTRRTS): Likewise.
20515 (UART_ENABLE_MODEM): Removed.
20516 (UART_ENABLE_OUT2): New const.
20517 * include/grub/term.h (grub_term_register_input_active): New function.
20518 (grub_term_register_output_active): Likewise.
20519 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20520 argument.
20521 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20522 (init_pci): New function.
20523 (grub_machine_init): Execute platform init when firmware. Init serial.
20524 (grub_halt): Implement.
20525 (grub_exit): Likewise.
20526 (grub_reboot): Likewise.
20527 * term/serial.c (serial_hw_init): Update macros.
20528 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20529 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20530 (image_targets): New target mipsel-yeeloong-flash.
20531 (generate_image): Support IMAGE_YEELOONG_FLASH.
20532 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20533 (grub_video_sm712_setup): Init card.
20534 (grub_video_sm712_set_palette): Removed.
20535 * video/sm712_init.c: New file.
20536
ff4a70d2
CW
205372010-06-30 Colin Watson <cjwatson@ubuntu.com>
20538
20539 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20540 PATH when running help2man and then run it on the unadorned
20541 executable names, rather than passing $(builddir)/* paths to
20542 help2man. This avoids the build directory ending up in generated
20543 manual pages.
20544
1246efeb
CW
205452010-06-29 Colin Watson <cjwatson@ubuntu.com>
20546
20547 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20548 to avoid accidents when debugging with 'sh -x'.
20549 * util/grub-mkrescue.in: Likewise.
20550 * util/grub.d/00_header.in: Likewise.
20551 * util/grub.d/10_hurd.in: Likewise.
20552 * util/grub.d/10_kfreebsd.in: Likewise.
20553 * util/grub.d/10_linux.in: Likewise.
20554 * util/grub.d/10_netbsd.in: Likewise.
20555 * util/grub.d/10_windows.in: Likewise.
20556 * util/grub.d/20_linux_xen.in: Likewise.
20557 * util/grub.d/30_os-prober.in: Likewise.
20558 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20559
1ba9b889
CW
205602010-06-29 Colin Watson <cjwatson@ubuntu.com>
20561
20562 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20563 last character in the buffer.
20564 Reported by: Vladimir Serbinenko.
20565
dccaf99d
RM
205662010-06-29 Robert Millan <rmh@gnu.org>
20567
20568 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20569 (Command-line and menu entry commands): Document `badram' command.
20570
d500ed12
RM
205712010-06-28 Robert Millan <rmh@gnu.org>
20572
20573 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20574 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20575 command using ${GRUB_BADRAM} as parameter.
20576
20bc84a6
CW
205772010-06-28 Colin Watson <cjwatson@ubuntu.com>
20578
20579 * docs/grub.texi (Device map): New section.
20580 (Themes): New section (stub).
20581 * Makefile.in (docs/grub.info): The info documentation now builds
20582 without errors. Make sure it stays that way.
20583
4045dee1
VS
205842010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20585
20586 Use normal parser for menu entries.
20587 Reported by: Thomas Frauendorfer
20588
20589 * include/grub/parser.h (grub_parser_execute): Don't export.
20590 * normal/menu.c (grub_menu_execute_entry_real): New function.
20591 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20592
bca58c7b
CW
205932010-06-28 Colin Watson <cjwatson@ubuntu.com>
20594
20595 * docs/grub.texi (Embedded configuration): New section (replacing
20596 old "Preset Menu" stub).
20597 (Images): New section.
20598 (configfile): Note that any menu entries defined in `file' are shown
20599 immediately.
20600
dec53e63
JT
206012010-06-28 Josh Triplett <josh@joshtriplett.org>
20602
20603 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20604
c06e40f7
CW
206052010-06-28 Colin Watson <cjwatson@ubuntu.com>
20606
20607 * util/grub-install.in: Add --debug-image= option.
20608
cb88052b
CW
206092010-06-28 Colin Watson <cjwatson@ubuntu.com>
20610
20611 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20612 possible on Linux.
20613
20614 * util/deviceiter.c (check_device): Rename to ...
20615 (check_device_readable_unique): ... this. Update all callers.
20616 Maintain and check a list of which devices (by canonicalized name)
20617 have already been seen.
20618 (clear_seen_devices): New function.
20619 (compare_file_names) [__linux__]: New function.
20620 (grub_util_iterate_devices): Clear the list of seen devices on exit
20621 and (just in case) on entry.
20622 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20623 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20624 seen-devices list, superseded by general code in check_device.
20625
bbe34652
CW
206262010-06-28 Colin Watson <cjwatson@ubuntu.com>
20627
20628 * commands/cat.c (options): New variable.
20629 (grub_cmd_cat): Parse options. If the --dos option is given, print
20630 DOS-style "\r\n" line endings as simple newlines (Debian bug
20631 #586358).
20632 (GRUB_MOD_INIT): Use extcmd.
20633 (GRUB_MOD_FINI): Likewise.
20634 * docs/grub.texi (cat): Document --dos.
20635
412e09f3
VS
206362010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20637
20638 XEN with Linux grub-mkconfig support.
20639
20640 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20641 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20642 GRUB_CMDLINE_XEN_DEFAULT.
20643 * util/grub.d/20_linux_xen.in: New file.
20644
53f3ef38 206452010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
20646
20647 Initialise VGA video on qemu ourselves.
20648
20649 * boot/i386/qemu/boot.S: Don't call 0xc000.
20650 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20651 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20652 (kernel_img_HEADERS): Add pci.h.
20653 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20654 * configure.ac: Force unifont on qemu and yeeloong.
20655 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20656 (grub_vga_palette_write): Use correct register.
20657 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20658 Call grub_qemu_init_cirrus.
20659 * kern/i386/qemu/init.c: New file.
20660 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20661
20662 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20663
c75be4fb
PR
206642010-06-26 Pavel Roskin <proski@gnu.org>
20665
20666 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20667 13.
20668
d8034603
CW
206692010-06-26 Colin Watson <cjwatson@ubuntu.com>
20670
20671 * docs/grub.texi (Simple configuration): Explain that
20672 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20673 set to `true' to disable their respective recovery entries, not
20674 merely set.
20675
3fa06487
CW
206762010-06-26 Colin Watson <cjwatson@ubuntu.com>
20677
20678 Make the `source' command slightly faster.
20679
20680 * normal/main.c (grub_normal_execute): Don't re-read list files when
20681 nested.
20682
e9b29642
CW
206832010-06-23 Colin Watson <cjwatson@ubuntu.com>
20684
20685 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20686 field position and mask size to red fields from mode_info, not
20687 green.
20688 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20689 Remove redundant tag->common.framebuffer_type assignment.
20690 Reported by: Seth Goldberg.
20691
e726542f
CW
206922010-06-23 Colin Watson <cjwatson@ubuntu.com>
20693
20694 Sync up other versions of the Linux loader with Robert Millan's
20695 change of 2010-01-09, "Make loader output a bit more user-friendly".
20696
20697 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20698 grub_dprintf().
20699 (grub_cmd_linux): Likewise.
20700 (grub_cmd_initrd): Likewise.
20701 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20702 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20703
d6e98a17
CW
207042010-06-21 Colin Watson <cjwatson@ubuntu.com>
20705
20706 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20707 larger than MEMORY_MAP_SIZE.
20708
14d3f08e
BC
207092010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20710
20711 Fix parallel build.
20712
20713 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20714 dependency.
20715 * script/parser.y: #include grub_script.tab.h header.
20716
4f9613a3
VS
207172010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20718
20719 Support >3GiB and <16MiB RAM in i386-qemu.
20720
20721 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20722 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20723 (grub_lower_mem): Removed.
20724 (grub_upper_mem): Likewise.
20725 (mem_size): Made static.
20726 (above_4g): New variable.
20727 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20728 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20729 support.
20730
05e51879
VS
207312010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20732
20733 Cirrus 5446 and Bochs video cards support.
20734
20735 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20736 video_bochs.mod
20737 (video_cirrus_mod_SOURCES): New variable.
20738 (video_cirrus_mod_CFLAGS): Likewise.
20739 (video_cirrus_mod_LDFLAGS): Likewise.
20740 (video_bochs_mod_SOURCES): Likewise.
20741 (video_bochs_mod_CFLAGS): Likewise.
20742 (video_bochs_mod_LDFLAGS): Likewise.
20743 * include/grub/vga.h: New file.
20744 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20745 (grub_video_fb_set_page_t): New type.
20746 (grub_video_fb_setup): New prototype.
20747 (grub_video_fb_swap_buffers): Likewise.
20748 (grub_video_fb_get_info_and_fini): Likewise.
20749 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20750 (CRTC_DATA_PORT): Likewise.
20751 (CRTC_CURSOR): Likewise.
20752 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20753 (CRTC_CURSOR_ADDR_LOW): Likewise.
20754 (CRTC_CURSOR_DISABLE): Likewise.
20755 (update_cursor): Use grub_vga_cr_write.
20756 (grub_vga_text_setcursor): Likewise.
20757 * video/bochs.c: New file.
20758 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20759 (palette): Likewise.
20760 (palette_size): Likewise.
20761 (framebuffer): New variable.
20762 (grub_video_fb_init): Use 'framebuffer'.
20763 (grub_video_fb_fini): Likewise.
20764 (grub_video_fb_get_info): Likewise.
20765 (grub_video_fb_get_palette): Likewise.
20766 (grub_video_fb_set_palette): Likewise.
20767 (grub_video_fb_set_viewport): Likewise.
20768 (grub_video_fb_get_viewport): Likewise.
20769 (grub_video_fb_map_color): Likewise.
20770 (grub_video_fb_map_rgb): Likewise.
20771 (grub_video_fb_map_rgba): Likewise.
20772 (grub_video_fb_unmap_color): Likewise.
20773 (grub_video_fb_unmap_color_int): Likewise.
20774 (grub_video_fb_fill_rect): Likewise.
20775 (grub_video_fb_blit_bitmap): Likewise.
20776 (grub_video_fb_blit_render_target): Likewise.
20777 (grub_video_fb_scroll): Likewise.
20778 (grub_video_fb_create_render_target): Likewise.
20779 (grub_video_fb_doublebuf_blit_init): Likewise.
20780 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20781 (doublebuf_pageflipping_update_screen): New function.
20782 (doublebuf_pageflipping_init): Likewise.
20783 (grub_video_fb_setup): Likewise.
20784 (grub_video_fb_swap_buffers): Likewise.
20785 (grub_video_fb_get_info_and_fini): Likewise.
20786 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20787 All users updated.
20788 (doublebuf_pageflipping_commit): Restructured into ...
20789 (doublebuf_pageflipping_set_page): ... this.
20790 (doublebuf_pageflipping_update_screen): Removed.
20791 (doublebuf_pageflipping_init): Likewise.
20792 (double_buffering_init): Likewise.
20793 (grub_video_vbe_setup): Use grub_video_fb_setup.
20794 (grub_video_vbe_swap_buffers): Removed.
20795 (grub_video_vbe_set_active_render_target): Likewise.
20796 (grub_video_vbe_get_active_render_target): Likewise.
20797 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20798 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20799 grub_video_fb_set_active_render_target and
20800 grub_video_fb_get_active_render_target.
20801 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20802 (SEQUENCER_DATA_PORT): Likewise.
20803 (MAP_MASK_REGISTER): Likewise.
20804 (CRTC_ADDR_PORT): Likewise.
20805 (CRTC_DATA_PORT): Likewise.
20806 (START_ADDR_HIGH_REGISTER): Likewise.
20807 (START_ADDR_LOW_REGISTER): Likewise.
20808 (GRAPHICS_ADDR_PORT): Likewise.
20809 (GRAPHICS_DATA_PORT): Likewise.
20810 (READ_MAP_REGISTER): Likewise.
20811 (INPUT_STATUS1_REGISTER): Likewise.
20812 (INPUT_STATUS1_VERTR_BIT): Likewise.
20813 (get_map_mask): Use grub_vga_sr_read.
20814 (set_map_mask): Use grub_vga_sr_write.
20815 (set_read_map): Use grub_vga_gr_write.
20816 (set_start_address): Use grub_vga_cr_write.
20817 * video/sm712.c (framebuffer): Remove leftover fields.
20818
4321c64a
CW
208192010-06-20 Colin Watson <cjwatson@ubuntu.com>
20820
20821 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20822 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20823 instead. Replace the gfxterm backend check with a check that
20824 ${GRUB_PREFIX}/video.lst is non-empty.
20825 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20826 again.
20827 (load_video): New generated function. Call it before loading
20828 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20829 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20830 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20831 * docs/grub.texi (Simple configuration): Document
20832 GRUB_VIDEO_BACKEND.
20833
208342010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20835
20836 Use video functions in linux and xnu loaders.
20837
20838 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20839 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20840 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20841 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20842 loader/i386/pc/linux.c.
20843 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20844 (find_line_len): Removed.
20845 (find_framebuf): Likewise.
20846 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20847 * loader/i386/efi/xnu.c: Removed.
20848 * loader/i386/pc/xnu.c: Moved from here...
20849 * loader/i386/xnu.c: ...here.
20850
20851 Enable priorities in video drivers.
20852
20853 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20854 (grub_video_adapter): New field prio.
20855 (grub_video_register): Respect prio when inserting.
20856 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20857 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20858 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20859 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20860 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20861 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20862 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20863
20864 Fix SDL driver ID.
20865
20866 * include/grub/video.h (grub_video_driver_id_t): New value
20867 GRUB_VIDEO_DRIVER_SDL.
20868 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20869
7d24e434
CW
208702010-06-17 Colin Watson <cjwatson@ubuntu.com>
20871
20872 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20873 argument to printf.
20874 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20875
c88a83f6
CW
208762010-06-17 Colin Watson <cjwatson@ubuntu.com>
20877
20878 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20879 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20880
094dfb69
CW
208812010-06-17 Colin Watson <cjwatson@ubuntu.com>
20882
20883 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20884 directly, and recommend grub-install instead.
20885 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20886
2164da6b
CW
208872010-06-17 Colin Watson <cjwatson@ubuntu.com>
20888
20889 Fix i386-pc prefix handling with nested partitions (Debian bug
20890 #585068). Note that the case where the core image is booted using
20891 multiboot and relocated from its original location still requires
20892 more work.
20893
20894 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20895 with "(,", fill the boot drive in between those two characters, but
20896 expect that a full partition specification including partition map
20897 names will follow.
20898 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20899 specified, write a prefix without the drive name but including a
20900 full partition specification.
20901
044e2e60
CW
209022010-06-16 Colin Watson <cjwatson@ubuntu.com>
20903
20904 * util/grub-mkconfig.in: Ignore non-option arguments, for
20905 compatibility with older versions (before 2010-06-12) which did the
20906 same. In particular, this makes it easier to ship an update-grub
20907 wrapper which is compatible with that used with GRUB Legacy (Debian
20908 bug #586056).
20909
5591324f
GS
209102010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20911
20912 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20913 for manual page generation.
20914
662e24d5
GS
209152010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20916
20917 * po/POTFILES: Remove leftover commands/handler.c.
20918
8d70754e
CW
209192010-06-14 Colin Watson <cjwatson@ubuntu.com>
20920
20921 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20922 left this script non-functional.
20923
41160e2e
CW
209242010-06-14 Colin Watson <cjwatson@ubuntu.com>
20925
20926 * docs/man/grub-emu.h2m: New file.
20927
b5309cc1
CW
209282010-06-13 Colin Watson <cjwatson@ubuntu.com>
20929
20930 * docs/grub.texi (Commands): Document reduced command set in rescue
20931 mode.
20932 (cpuid): New section.
20933
fcb2d090
GS
209342010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20935
20936 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20937 new partition naming style.
20938 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20939
96e5c556
BC
209402010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20941
20942 Add "-o grub.iso" like cmdline options support.
20943
20944 * util/grub-install.in: Improve cmdline option parsing.
20945 * util/grub-mkconfig.in: Likewise.
20946 * util/grub-mkrescue.in: Likewise.
20947 * util/grub-reboot.in: Likewise.
20948 * util/grub-set-default.in: Likewise.
20949 * util/i386/efi/grub-install.in: Likewise.
20950 * util/ieee1275/grub-install.in: Likewise.
20951 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20952
c16be99b
CW
209532010-06-12 Colin Watson <cjwatson@ubuntu.com>
20954
20955 * .bzrignore: Ignore 41_custom.
20956
ce08a9fb
TS
209572010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20958
20959 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20960
7beac90c
CW
209612010-06-12 Colin Watson <cjwatson@ubuntu.com>
20962
20963 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20964 prototype declarations.
20965
20966 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20967 generating fs, partmap, and video lists.
20968 * include/grub/fs.h (grub_fs_register): Omit prototype if
20969 GRUB_LST_GENERATOR is defined.
20970 * include/grub/partition.h (grub_partition_map_register): Likewise.
20971 * include/grub/video.h (grub_video_register): Likewise.
20972
1c8f0f8d
JM
209732010-06-12 Javier Martín <lordhabbit@gmail.com>
20974
20975 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20976
a6085973
TS
209772010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20978
20979 * util/grub-mkrescue.in: Support --xorriso argument.
20980
25c56d29
VS
209812010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20982
20983 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20984 Suggested by: Thomas Schmitt.
20985
e03e4b24
VS
209862010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20987
20988 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20989 Suggested by: Thomas Schmitt.
20990
57711df6
VS
209912010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20992
20993 custom.cfg support.
20994
20995 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20996 * util/grub.d/41_custom.in: New file.
20997
ee62c427
CW
209982010-06-12 Colin Watson <cjwatson@ubuntu.com>
20999
21000 * util/grub-mkrescue.in (make_image): Remove sh module, which has
21001 been merged back into normal.
21002
283af07a
CW
210032010-06-11 Colin Watson <cjwatson@ubuntu.com>
21004
21005 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
21006 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
21007
56a0d956
CW
210082010-06-11 Colin Watson <cjwatson@ubuntu.com>
21009
21010 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
21011 when generating manual pages.
21012 * docs/man/grub-bin2h.h2m: New file.
21013 * docs/man/grub-editenv.h2m: New file.
21014 * docs/man/grub-fstest.h2m: New file.
21015 * docs/man/grub-install.h2m: New file.
21016 * docs/man/grub-macho2img.h2m: New file.
21017 * docs/man/grub-mkconfig.h2m: New file.
21018 * docs/man/grub-mkdevicemap.h2m: New file.
21019 * docs/man/grub-mkfont.h2m: New file.
21020 * docs/man/grub-mkimage.h2m: New file.
21021 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
21022 * docs/man/grub-mkrelpath.h2m: New file.
21023 * docs/man/grub-mkrescue.h2m: New file.
21024 * docs/man/grub-ofpathname.h2m: New file.
21025 * docs/man/grub-pe2elf.h2m: New file.
21026 * docs/man/grub-probe.h2m: New file.
21027 * docs/man/grub-reboot.h2m: New file.
21028 * docs/man/grub-script-check.h2m: New file.
21029 * docs/man/grub-set-default.h2m: New file.
21030 * docs/man/grub-setup.h2m: New file.
21031
3a37e322
VS
210322010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
21033
21034 Use FOR_* macros instead of *_iterate whenever possible.
21035
21036 * commands/handler.c: Removed.
21037 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
21038 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
21039 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21040 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
21041 (grub_probe_SOURCES): Remove kern/parser.c.
21042 (util/grub-script-check.c_DEPENDENCIES): Removed.
21043 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
21044 and grub_script_check_init.c.
21045 (grub_script_check_init.lst): Removed.
21046 (grub_script_check_init.h): Likewise.
21047 (grub_script_check_init.c): Likewise.
21048 (pkglib_MODULES): Remove handler.mod and sh.mod.
21049 (handler_mod_SOURCES): Removed.
21050 (handler_mod_CFLAGS): Likewise.
21051 (handler_mod_LDFLAGS): Likewise.
21052 (normal_mod_SOURCES): Remove normal/handler.c.
21053 Add script/main.c, script/script.c, script/execute.c,
21054 script/function.c, script/lexer.c, grub_script.tab.c
21055 and grub_script.yy.c.
21056 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21057 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21058 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
21059 (grub_setup_SOURCES): Remove kern/parser.c.
21060 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21061 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
21062 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
21063 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21064 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21065 (grub_setup_SOURCES): Remove kern/parser.c.
21066 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21067 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
21068 * include/grub/command.h (grub_command_iterate): Removed.
21069 (FOR_COMMANDS): New macro.
21070 * include/grub/dl.h (grub_dl): New member next.
21071 (grub_dl_iterate): Removed.
21072 (grub_dl_head): New variable declaration.
21073 (FOR_DL_MODULES): New macro.
21074 * include/grub/fs.h: Include list.h.
21075 (grub_fs): Make next first element.
21076 (grub_fs_list): New variable declaration.
21077 (grub_fs_register): Make inline.
21078 (grub_fs_unregister): Likewise.
21079 (grub_fs_iterate): Removed.
21080 (FOR_FILESYSTEMS): New macro.
21081 * include/grub/handler.h: Removed.
21082 * include/grub/list.h (grub_list_hook_t): Removed.
21083 (grub_list_test_t): Likewise.
21084 (grub_list_pop): Likewise.
21085 (grub_list_iterate): Likewise.
21086 (grub_list_insert): Likewise.
21087 (FOR_LIST_ELEMENTS): New macro.
21088 * include/grub/parser.h (grub_parser_class): Removed.
21089 (grub_parser_register): Likewise.
21090 (grub_parser_unregister): Likewise.
21091 (grub_parser_get_current): Likewise.
21092 (grub_parser_set_current): Likewise.
21093 (grub_register_rescue_parser): Likewise.
21094 (grub_rescue_parse_line): New function.
21095 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
21096 * include/grub/script_sh.h (grub_script_function_list): New variable
21097 declaration.
21098 (FOR_SCRIPT_FUNCTIONS): New macro.
21099 (grub_script_function_iterate): Removed.
21100 (grub_normal_parse_line): New prototype.
21101 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
21102 (FOR_DISABLED_TERM_INPUTS): Likewise.
21103 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
21104 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
21105 * include/grub/video.h (grub_video_adapter): Move 'next' to first
21106 element.
21107 (grub_video_register): Inline.
21108 (grub_video_unregister): Likewise.
21109 (grub_video_adapter_list): New variable declaration.
21110 (grub_video_iterate): Removed.
21111 (FOR_VIDEO_ADAPTERS): New macro.
21112 * kern/dl.c (grub_dl_list): Removed. All users updated.
21113 (grub_dl_iterate): Removed.
21114 * kern/fs.c (grub_fs_list): Make global.
21115 (grub_fs_register): Removed.
21116 (grub_fs_unregister): Likewise.
21117 (grub_fs_iterate): Likewise.
21118 * kern/handler.c: Removed.
21119 * kern/list.c (grub_list_pop): Removed.
21120 (grub_list_iterate): Likewise.
21121 (grub_list_insert): Likewise.
21122 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
21123 (grub_prio_list_insert): Don't use grub_list_insert.
21124 * kern/main.c (grub_register_rescue_parser): Don't call
21125 grub_register_rescue_parser.
21126 * kern/parser.c (grub_parser_class): Removed.
21127 (grub_parser_execute): Use grub_rescue_parse_line.
21128 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
21129 (grub_rescue_parser): Removed.
21130 (grub_register_rescue_parser): Likewise.
21131 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
21132 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
21133 (grub_auth_check_authentication): Likewise.
21134 * normal/completion.c (iterate_command): Removed.
21135 (grub_normal_do_completion): Use FOR_COMMANDS.
21136 * normal/handler.c: Removed.
21137 * normal/main.c (read_config_file): Remove parser changing.
21138 (grub_normal_execute): Don't call read_handler_list.
21139 (grub_normal_read_line_real): Statically allocate prompt.
21140 (grub_cmdline_run): Use grub_normal_parse_line.
21141 (GRUB_MOD_FINI): Don't call free_handler_list.
21142 * normal/menu_entry.c (run): Likewise.
21143 * script/function.c (grub_script_function_list): Make global.
21144 (grub_script_function_iterate): Removed.
21145 * script/main.c (grub_normal_parse_line): Make global.
21146 (grub_sh_parser): Removed.
21147 (GRUB_MOD_INIT): Likewise.
21148 (GRUB_MOD_FINI): Likewise.
21149 * tests/lib/functional_test.c (grub_functional_test): Use
21150 FOR_LIST_ELEMENTS.
21151 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
21152 (grub_test_run): Use FOR_LIST_ELEMENTS.
21153 * tests/lib/unit_test.c (main): Likewise.
21154 * util/deviceiter.c (grub_util_iterate_devices): Don't use
21155 grub_list_pop.
21156 * util/grub-fstest.c (grub_term_input_class): Removed.
21157 (grub_term_output_class): Likewise.
21158 * util/grub-probe.c: Likewise.
21159 * util/i386/pc/grub-setup.c: Likewise.
21160 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21161 * util/grub-script-check.c (main): Don't call grub_init_all and
21162 grub_fini_all.
21163 * video/video.c (grub_video_adapter_list): Make global.
21164 (grub_video_register): Removed.
21165 (grub_video_unregister): Likewise.
21166 (grub_video_iterate): Likewise.
21167
6289c3a7
VS
211682010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
21169
21170 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
21171 reported by Henrique Ferreiro.
21172
91460247
RM
211732010-06-09 Robert Millan <rmh@gnu.org>
21174
21175 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
21176 ones, when both are available.
21177
0ea7c4f9
GS
211782010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21179
21180 Make --version uniform and avoid hard-coded program name.
21181
21182 * util/grub-mkimage.c (main): Use `program_name' instead of
21183 hard-coded string.
21184 * util/i386/pc/grub-setup.c (main): Likewise.
21185 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
21186 * util/grub-install.in: Save the basename of $0 in $self, and use the
21187 latter in informational messages. Use the same format for --version
21188 as the binary programs.
21189 * util/grub-mkconfig.in: Likewise.
21190 * util/grub-mkrescue.in: Likewise.
21191 * util/grub-reboot.in: Likewise.
21192 * util/grub-set-default.in: Likewise.
21193 * util/i386/efi/grub-install.in: Likewise.
21194 * util/ieee1275/grub-install.in: Likewise.
21195 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21196
e8a6f3b6
GS
211972010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21198
21199 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
21200 embedding area. Use <= instead of == when checking for non-emptiness.
21201
f4d095d7
GS
212022010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21203
21204 * configure.ac: Add `.' to the directories searched for unifont.
21205
50e532ca
CW
212062010-06-08 Colin Watson <cjwatson@ubuntu.com>
21207
21208 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
21209 grub_script.yy.h.
21210
d39f3dec
CW
212112010-06-08 Colin Watson <cjwatson@ubuntu.com>
21212
21213 * docs/grub.texi (History): Expand to cover GRUB 2.
21214 (Serial terminal): Refer to `terminal_input' and `terminal_output'
21215 commands, not `terminal'.
21216 (serial): Likewise.
21217 (terminal_input): New section.
21218 (terminal_output): New section.
21219 (uppermem): New section (stub).
21220 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
21221
6ef0ddb4
CW
212222010-06-08 Colin Watson <cjwatson@ubuntu.com>
21223
21224 * docs/grub.texi (Security): Menu entries are unrestricted by
21225 default, not restricted to superusers as I had previously thought.
21226 Reword to account for this.
21227
e0f4c438
CW
212282010-06-07 Colin Watson <cjwatson@ubuntu.com>
21229
21230 * kern/emu/misc.c (device_mapper_null_log): New function.
21231 (grub_device_mapper_supported): New function.
21232 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
21233 prototype.
21234 * kern/emu/hostdisk.c (find_partition_start): Check whether
21235 device-mapper is supported before trying to use it.
21236 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
21237
da908200
CW
212382010-06-07 Colin Watson <cjwatson@ubuntu.com>
21239
21240 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
21241 (File name syntax): Likewise.
21242 (help): --all is no longer supported in GRUB 2. Be more precise
21243 about pattern matching.
21244
fb55c3ac
CW
212452010-06-07 Colin Watson <cjwatson@ubuntu.com>
21246
21247 * normal/completion.c (grub_normal_do_completion): When completing
21248 arguments to "set" and the current word contains an equals sign,
21249 skip to after the equals sign before starting completion.
21250
258c2573
CW
212512010-06-07 Colin Watson <cjwatson@ubuntu.com>
21252
21253 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
21254
ee75515e
CW
212552010-06-07 Colin Watson <cjwatson@ubuntu.com>
21256
21257 * docs/grub.texi (Network): New section.
21258 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
21259 `(nd)' as in GRUB Legacy.
21260 (pxe_unload): New section.
21261
a6a700aa
CW
212622010-06-07 Colin Watson <cjwatson@ubuntu.com>
21263
21264 * docs/grub.texi (Troubleshooting): `echo' is not usually available
21265 in the rescue shell, so recommend using `set' instead. Thanks,
21266 Jordan Uggla.
21267
4003dd38
CW
212682010-06-07 Colin Watson <cjwatson@ubuntu.com>
21269
21270 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
21271 (password): New section.
21272 (password_pbkdf2): New section.
21273 (search): New section.
21274 (Security): New section.
21275 (Troubleshooting): New section, currently very incomplete.
21276 (Invoking grub-mkpasswd-pbkdf2): New section.
21277 (Internals): New section, currently very incomplete.
21278
e1cbcc40
CW
212792010-06-07 Colin Watson <cjwatson@ubuntu.com>
21280
21281 * util/grub.d/00_header.in: Add some more quoting (of
21282 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
21283 work again.
21284 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
21285
db8fa1ad
CW
212862010-06-07 Colin Watson <cjwatson@ubuntu.com>
21287
21288 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
21289 to `count', fixing variable shadowing that broke the -c option.
21290
212912010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
21292
21293 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
21294 in case they contain spaces.
21295
f28a9212
CW
212962010-06-04 Colin Watson <cjwatson@ubuntu.com>
21297
21298 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
21299 "part_" to partmap module names, in line with grub-install.
21300 Reported by: Jindřich Makovička (Debian bug #584426).
21301
9cdfe32f
CW
213022010-06-04 Colin Watson <cjwatson@ubuntu.com>
21303
21304 * util/grub-mkimage.c: Make target-related error messages slightly
21305 more helpful; -O talks about "format". Explicitly point to the use
21306 of -O if no target is specified.
21307 Reported by: Didier Raboud (Debian bug #584415).
21308
795b593a
CW
213092010-06-03 Colin Watson <cjwatson@ubuntu.com>
21310
21311 * INSTALL: Document several build requirements for optional features
21312 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
21313
9d9b5833
GS
213142010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
21315
21316 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
21317 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
21318 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
21319
0819fec8
CW
213202010-06-02 Colin Watson <cjwatson@ubuntu.com>
21321
21322 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
21323 Thanks to Jordan Uggla for spotting this.
21324
49396b4f
VS
213252010-06-02 Aleš Nesrsta <starous@volny.cz>
21326
21327 Finally make USB usable.
21328
21329 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
21330 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
21331 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
21332 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
21333 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
21334 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
21335 (GRUB_OHCI_FSMPS): Likewise.
21336 (GRUB_OHCI_PERIODIC_START): Likewise.
21337 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
21338 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
21339 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
21340 (GRUB_OHCI_SET_PORT_RESET): Likewise.
21341 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
21342 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
21343 (grub_ohci_transaction): Likewise.
21344 (grub_ohci_transfer): Improve condition detection algorithms.
21345 Handle toggle property. Program the transactions correctly.
21346 Improve error handling. Various important fixups.
21347 (grub_ohci_portstatus): Put register writes in right order.
21348 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
21349 (grub_uhci_transfer): Don't show "failed" message on success.
21350 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
21351 array.
21352 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
21353 determine its size.
21354 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
21355 before initialization is completed. Use IN direction for empty
21356 transfers. Use last_trans and compute toggle.
21357 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
21358 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
21359 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
21360 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
21361 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
21362 (grub_usb_device): Increase toggle to 256.
21363 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
21364 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
21365 GRUB_USBMS_SUBCLASS_SFF8070.
21366 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
21367 (grub_scsi_inquiry): New member page and alloc_length.
21368 (grub_scsi_request_sense): New structure.
21369 (grub_scsi_request_sense_data): Likewise.
21370 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
21371 control.
21372 * disk/scsi.c (grub_scsi_request_sense): New function.
21373 (grub_scsi_test_unit_ready): Likewise.
21374 (grub_scsi_inquiry): Fill new fields.
21375 (grub_scsi_read_capacity): Likewise.
21376 (grub_scsi_read10): Add request sense at the end.
21377 (grub_scsi_read12): Likewise.
21378 (grub_scsi_write10): Likewise.
21379 (grub_scsi_write12): Likewise.
21380 (grub_scsi_open): Add Test Unit Ready.
21381 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
21382 Support additional subclasses. Con't clear halt yet. Activate the
21383 proper config. Calculate LUNs correctly.
21384 (grub_usbms_transfer): Various important fixups.
21385
213862010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21387
21388 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
21389 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
21390 (grub_ohci_fini_hw): New function.
21391 (grub_ohci_restore_hw): Likewise.
21392 (GRUB_MOD_INIT(ohci)): Register preboot hook.
21393 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
21394 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
21395
213962010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21397
21398 Dedicated DMA allocations.
21399
21400 * bus/pci.c (grub_memalign_dma32): New function
21401 (grub_dma_free): Likewise.
21402 (grub_dma_get_virt): Likewise.
21403 (grub_dma_get_phys): Likewise.
21404 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
21405 (grub_ohci_pci_iter): Use dma32_alloc.
21406 (grub_ohci_transfer): Likewise.
21407 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21408 (grub_usb_bulk_readwrite): Likewise.
21409 * include/grub/pci.h: Add declarations.
21410
214112010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21412
21413 CS5536 support.
21414
21415 * bus/cs5536.c: New file.
21416 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21417 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21418 (cs5536_mod_SOURCES): New variable.
21419 (cs5536_mod_CFLAGS): Likewise.
21420 (cs5536_mod_LDFLAGS): Likewise.
21421 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21422 machine/pci.h.
21423 (kernel_img_SOURCES): Add bus/cs5536.c.
21424 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21425 usb_keyboard.mod.
21426 (usb_mod_SOURCES): New variable.
21427 (usb_mod_CFLAGS): New variable.
21428 (usb_mod_LDFLAGS): New variable.
21429 (usbtest_mod_SOURCES): New variable.
21430 (usbtest_mod_CFLAGS): New variable.
21431 (usbtest_mod_LDFLAGS): New variable.
21432 (ohci_mod_SOURCES): New variable.
21433 (ohci_mod_CFLAGS): New variable.
21434 (ohci_mod_LDFLAGS): New variable.
21435 (usbms_mod_SOURCES): New variable.
21436 (usbms_mod_CFLAGS): New variable.
21437 (usbms_mod_LDFLAGS): New variable.
21438 (usb_keyboard_mod_SOURCES): New variable.
21439 (usb_keyboard_mod_CFLAGS): New variable.
21440 (usb_keyboard_mod_LDFLAGS): New variable.
21441 * include/grub/smbus.h: New file.
21442 * include/grub/cs5536.h: New file.
21443
0b35b2a9
CW
214442010-06-02 Colin Watson <cjwatson@ubuntu.com>
21445
21446 * util/grub.d/00_header.in: Add safety check to make sure that
21447 ${locale_dir} exists before trying to probe it.
21448
ca0afd5b
CW
214492010-06-02 Colin Watson <cjwatson@ubuntu.com>
21450
21451 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21452 per the GNU Coding Standards; this is now too obscure to be worth
21453 documenting.
21454 (QNX): Likewise.
21455 (chainloader): Remove cross-reference to `SCO UnixWare'.
21456
1c41aa78
CW
214572010-06-02 Colin Watson <cjwatson@ubuntu.com>
21458
21459 * docs/grub.texi (Chain-loading): New section.
21460 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21461 adjusted for GRUB 2.
21462 (SCO UnixWare): Likewise.
21463 (QNX): Likewise.
21464 (chainloader): Add reference to `Block list syntax'.
21465 (drivemap): New section.
21466 (parttool): New section.
21467
bb8ea0f5
CW
214682010-06-02 Colin Watson <cjwatson@ubuntu.com>
21469
21470 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21471 the grub shell'.
21472 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21473 (Installing GRUB using grub-install): Remove reference to the grub
21474 shell; mention `grub-mkimage' and `grub-setup' instead.
21475 (Invoking grub-install): Likewise.
21476 (Interface): Add reference to `Menu entry editor'.
21477 (serial): Remove `--device' option.
21478
288dd6ed
CW
214792010-06-02 Colin Watson <cjwatson@ubuntu.com>
21480
21481 * docs/grub.texi (Configuration): New section, documenting
21482 configuration file generation using grub-mkconfig. I've left a slot
21483 for documenting the full shell scripting format but have not yet
21484 started on writing that up.
21485 (Invoking grub-mkconfig): New section.
21486
34c9f0e9
CW
214872010-06-02 Colin Watson <cjwatson@ubuntu.com>
21488
21489 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21490 (GNU GRUB manual): Likewise.
21491 (General commands): Update description of `terminfo' for GRUB 2.
21492
9121567e
CW
214932010-06-02 Colin Watson <cjwatson@ubuntu.com>
21494
21495 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21496 (GRUB_MOD_INIT): Fix capitalisation.
21497 * docs/grub.texi (Command-line and menu entry commands): Document
21498 gettext and gptsync commands.
21499
ab631611
CW
215002010-06-02 Colin Watson <cjwatson@ubuntu.com>
21501
21502 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21503 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21504
bde4a9ac
CW
215052010-06-01 Colin Watson <cjwatson@ubuntu.com>
21506
21507 Add btrfs probing support, currently only in the single-device case.
21508
21509 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21510 function.
21511 (grub_guess_root_device): Call find_root_device_from_mountinfo
21512 before looking in /dev.
21513
b1d17e10
VS
215142010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21515
21516 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21517 GRUB_DISK_SIZE_UNKNOWN.
21518 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21519
dfbfe004
JS
215202010-05-31 Jiro SEKIBA <jir@unicus.jp>
21521
21522 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21523 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21524 corrupted or not synced properly.
21525
c2ffc8e9
VS
215262010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21527
21528 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21529 Reported by: Seth Goldberg.
21530
56293166
VS
215312010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21532
21533 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21534 addition of dest.
21535 Reported by: Seth Goldberg.
21536
7620e7de
VS
215372010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21538
21539 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21540 Reported by: Seth Goldberg.
21541
c837af3f
VS
215422010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21543
21544 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21545 64-bit address as signed on MIPS.
21546
c7c75cf4
CW
215472010-05-28 Colin Watson <cjwatson@ubuntu.com>
21548
21549 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21550 to the empty string.
21551
fa4b8490
BC
215522010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21553
21554 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21555
21556 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21557 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21558 * kern/misc.c (__enable_execute_stack): Disable on
21559 GRUB_MACHINE_EMU.
21560
a33075b9
CW
215612010-05-28 Colin Watson <cjwatson@ubuntu.com>
21562
21563 Make grub-probe work with symbolic links under /dev/mapper as well
21564 as with real block devices. The Linux world seems to be (at best)
21565 in transition here, and GRUB shouldn't get caught in the middle.
21566
21567 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21568 /dev/mapper.
21569
d8708134
CW
215702010-05-27 Colin Watson <cjwatson@ubuntu.com>
21571
21572 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21573 input files (in which case exit zero).
21574
db2102a0
CW
215752010-05-27 Colin Watson <cjwatson@ubuntu.com>
21576
21577 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21578 return NULL for various reasons even if it has a maximum-length
21579 buffer: for example, there might be a symlink loop, or the path
21580 might exceed PATH_MAX. If this happens, return NULL.
21581
5fdba519
RM
215822010-05-27 Robert Millan <rmh@gnu.org>
21583
21584 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21585 partmap module to handle cross-partmap setups.
21586 Reported by Orestes Mas. Gràcies!
21587
d1d368e4
CW
215882010-05-27 Colin Watson <cjwatson@ubuntu.com>
21589
21590 * util/grub-mkrescue.in: Initialise override_dir rather than
21591 assuming that it's unset or empty in the environment.
21592
95ac3c73
GS
215932010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21594
21595 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21596 variable index into p_index to suppress a warning with -Wshadow.
21597
7d8c0213
BC
215982010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21599
21600 * INSTALL: Added flex >= 2.5.35 requirement.
21601
db4d5813
VS
216022010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21603
21604 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21605
f24f4300
VS
216062010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21607
21608 cmostest support.
21609
21610 * commands/i386/cmostest.c: New file.
21611 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21612 (cmostest_mod_SOURCES): New variable.
21613 (cmostest_mod_CFLAGS): Likewise.
21614 (cmostest_mod_LDFLAGS): Likewise.
21615 * conf/i386-pc.rmk: Likewise.
21616 * docs/grub.texi (Vendor power-on keys): New section.
21617 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21618 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21619 and GRUB_BUTTON_CMOS_ADDRESS.
21620 * util/grub.d/00_header.in: Handle powering-on by separate button.
21621
ad603f61
VS
216222010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21623
21624 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21625 Removed drawing_scrollbar argument. All users updated
21626 Fixes #29792.
21627 Reported by Jo Shields
21628
3ecb080a
VS
216292010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21630
21631 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21632 buffer since gfxterm handles double repaint.
21633
5f2316c1
VS
216342010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21635
21636 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21637 * term/gfxterm.c (real_scroll): Likewise.
21638
9a25f885
VS
216392010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21640
21641 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21642 before calling BIOS.
21643
39fbb79a
VS
216442010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21645
21646 * include/grub/i18n.h: Always enable grub_gettext.
21647
228cfa97
VS
216482010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21649
21650 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21651 partition naming style.
21652
21717c8f
CW
216532010-05-21 Colin Watson <cjwatson@ubuntu.com>
21654
21655 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21656 not the first option.
21657
c0f48e65
CW
216582010-05-20 Colin Watson <cjwatson@ubuntu.com>
21659
21660 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21661
96779aec
CW
216622010-05-20 Colin Watson <cjwatson@ubuntu.com>
21663
21664 * util/misc.c: Move inclusion of <limits.h> to ...
21665 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21666
fa9d256e
GS
216672010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21668
21669 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21670 Fix merge error in NetBSD code.
21671 (find_partition_start) [__NetBSD__]: Likewise.
21672
123b7a85
BC
216732010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21674
21675 Fix grub-mkrescue usage unit testing.
21676
21677 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21678
74276c0d
CF
216792010-05-18 Christian Franke <franke@computer.org>
21680
21681 * util/grub.d/10_windows.in: Use path names instead of
21682 drive letters to prevent warning from Cygwin 1.7.
21683 Add drivemap command to menuentry if needed.
21684
c4f7b523
ST
216852010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21686
21687 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21688 gnumach and gnumach.gz.
21689
95b97950
VS
216902010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21691
21692 * include/grub/i18n.h (gettext): Inline instead of using #define.
21693 (grub_gettext): Likewise.
21694 (_): Likewise.
21695
01b8d2d7
VS
216962010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21697
21698 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21699 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21700 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21701 (main): Add a slash after pkglibdirroot.
21702
654e1d1e
VS
217032010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21704
21705 * util/grub-install.in: Add missing "in" keyword.
21706
26966aeb
VS
217072010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21708
21709 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21710 Reported by: Seth Goldberg.
21711
75006747
VS
217122010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21713
21714 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21715
74cbf5bd
CW
217162010-05-18 Colin Watson <cjwatson@ubuntu.com>
21717
21718 * configure.ac: Check for Linux device-mapper support.
21719
21720 * util/hostdisk.c (device_is_mapped): New function.
21721 (find_partition_start): New function, partly broken out from
21722 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21723 device-mapper support added.
21724 (linux_find_partition): Use find_partition_start.
21725 (convert_system_partition_to_system_disk): Add `st' argument.
21726 Support Linux /dev/mapper/* devices if device-mapper support is
21727 available; only DM-RAID devices are understood at present.
21728 (find_system_device): Add `st' argument. Pass it to
21729 convert_system_partition_to_system_disk.
21730 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21731 find_system_device and convert_system_partition_to_system_disk. Use
21732 find_partition_start.
21733
21734 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21735 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21736 * util/deviceiter.c [__linux__]: Define MINOR.
21737 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21738 * util/mkdevicemap.c (grub_putchar): New function.
21739 (grub_getkey): New function.
21740 (grub_refresh): New function.
21741 (main): Set debug=all if -v -v is used.
21742
355b51e9
CW
217432010-05-18 Colin Watson <cjwatson@ubuntu.com>
21744
21745 Fix build with non-GNU libcs.
21746
21747 * util/misc.c (canonicalize_file_name): Move to ...
21748 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21749 grub_make_system_path_relative_to_its_root.
21750
7fb5c25f
CW
217512010-05-18 Colin Watson <cjwatson@ubuntu.com>
21752
21753 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21754 we handle finding grub-mkimage. Default to finding grub-mkimage in
21755 ${bindir} with program_transform_name applied, and provide a
21756 --grub-mkimage option to override this.
21757
1d3293d6
VS
217582010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21759
21760 Remove grub-mkisofs.
21761
21762 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21763 (grub_mkisofs_SOURCES): Removed.
21764 (grub_mkisofs_CFLAGS): Removed.
21765 * util/mkisofs/defaults.h: Removed.
21766 * util/mkisofs/eltorito.c: Likewise.
21767 * util/mkisofs/exclude.h: Likewise.
21768 * util/mkisofs/hash.c: Likewise.
21769 * util/mkisofs/include/: Likewise.
21770 * util/mkisofs/include/fctldefs.h: Likewise.
21771 * util/mkisofs/include/mconfig.h: Likewise.
21772 * util/mkisofs/include/prototyp.h: Likewise.
21773 * util/mkisofs/include/statdefs.h: Likewise.
21774 * util/mkisofs/iso9660.h: Likewise.
21775 * util/mkisofs/joliet.c: Likewise.
21776 * util/mkisofs/match.c: Likewise.
21777 * util/mkisofs/match.h: Likewise.
21778 * util/mkisofs/mkisofs.c: Likewise.
21779 * util/mkisofs/mkisofs.h: Likewise.
21780 * util/mkisofs/msdos_partition.h: Likewise.
21781 * util/mkisofs/multi.c: Likewise.
21782 * util/mkisofs/name.c: Likewise.
21783 * util/mkisofs/rock.c: Likewise.
21784 * util/mkisofs/tree.c: Likewise.
21785 * util/mkisofs/write.c: Likewise.
21786
5dde9afe
VS
217872010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21788
21789 Unify grub-mkimage accross platforms.
21790
21791 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21792 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21793 (grub_mkelfimage_SOURCES): Removed.
21794 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21795 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21796 (bin_UTILITIES): Add grub-mkimage.
21797 (grub_mkimage_SOURCES): New variable.
21798 (kernel_img_HEADERS): Remove machine/kernel.h.
21799 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21800 (pkglib_PROGRAMS): Add kernel.img.
21801 (kernel_img_HEADERS): Add machine/kernel.h.
21802 (kernel_img_FORMAT): Removed.
21803 (bin_UTILITIES): Remove grub-mkimage.
21804 (grub_mkimage_SOURCES): Removed.
21805 (grub_mkimage_CFLAGS): Likewise.
21806 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21807 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21808 (pkglib_PROGRAMS): Add kernel.img.
21809 (bin_UTILITIES): Remove grub-mkimage.
21810 (grub_mkimage_SOURCES): Removed.
21811 (grub_mkimage_CFLAGS): Likewise.
21812 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21813 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21814 (pkglib_PROGRAMS): Add kernel.img.
21815 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21816 (pkglib_PROGRAMS): Add kernel.img.
21817 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21818 (grub_mkimage_SOURCES): Removed.
21819 (grub_mkimage_CFLAGS): Likewise.
21820 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21821 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21822 (pkglib_PROGRAMS): Add kernel.img.
21823 (bin_UTILITIES): Remove grub-mkimage.
21824 (grub_mkimage_SOURCES): Removed.
21825 (grub_mkimage_CFLAGS): Likewise.
21826 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21827 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21828 (grub_mkimage_SOURCES): Removed.
21829 (grub_mkimage_CFLAGS): Likewise.
21830 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21831 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21832 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21833 (grub_pe32_optional_header): ... this.
21834 (grub_pe64_optional_header): ... and this. All users updated.
21835 (GRUB_PE32_PE32_MAGIC): Split into ..
21836 (GRUB_PE32_PE32_MAGIC): .. this.
21837 (GRUB_PE32_PE64_MAGIC): .. and this.
21838 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21839 * include/grub/elf.h (PT_GNU_STACK): New definition.
21840 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21841 * include/grub/i386/efi/kernel.h: Likewise.
21842 * include/grub/i386/kernel.h: Likewise.
21843 * include/grub/i386/pc/kernel.h: Likewise.
21844 * include/grub/i386/qemu/boot.h: Likewise.
21845 * include/grub/mips/kernel.h: Likewise.
21846 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21847 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21848 * include/grub/powerpc/kernel.h: Likewise.
21849 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21850 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21851 * include/grub/sparc64/kernel.h: Likewise.
21852 * include/grub/x86_64/efi/kernel.h: Likewise.
21853 * include/grub/x86_64/kernel.h: Likewise.
21854 * include/grub/offsets.h: New file.
21855 * include/grub/kernel.h (grub_module_info): Split into ...
21856 (grub_module_info32): ... this.
21857 (grub_module_info64): ... and this.
21858 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21859 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21860 (grub_boot_blocklist): Moved from here ...
21861 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21862 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21863 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21864 * include/grub/types.h (grub_target_to_host16): Removed.
21865 (grub_target_to_host32): Likewise.
21866 (grub_target_to_host64): Likewise.
21867 (grub_host_to_target16): Likewise.
21868 (grub_host_to_target32): Likewise.
21869 (grub_host_to_target64): Likewise.
21870 (grub_host_to_target_addr): Likewise.
21871
21872 Support grub-mkrescue for efi, coreboot and qemu.
21873
21874 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21875 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21876 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21877 * util/grub-mkrawimage.c: Moved from here ...
21878 * util/grub-mkimage.c: ... here. All users updated.
21879 (ALIGN_ADDR): Use image_target.
21880 (TARGET_NO_FIELD): New const.
21881 (image_target_desc): New type.
21882 (image_targets): New array.
21883 (grub_target_to_host64): Use image_target.
21884 (grub_target_to_host32): Likewise.
21885 (grub_target_to_host16): Likewise.
21886 (grub_host_to_target64): Likewise.
21887 (grub_host_to_target32): Likewise.
21888 (grub_host_to_target16): Likewise.
21889 (grub_host_to_target_addr): Likewise.
21890 (generate_image): Handle multiimage.
21891 (main): Require -O parameter. All users updated.
21892 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21893 util/efi/grub-mkimage.c
21894 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21895 New option --rom-directory.
21896 Use xorriso.
21897 * util/i386/efi/grub-mkimage.c: Removed.
21898 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21899 (grub_target_to_host32): Likewise.
21900 (grub_target_to_host64): Likewise.
21901 (grub_host_to_target16): Likewise.
21902 (grub_host_to_target32): Likewise.
21903 (grub_host_to_target64): Likewise.
21904 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21905 (grub_target_to_host32): Likewise.
21906 (grub_target_to_host64): Likewise.
21907 (grub_host_to_target16): Likewise.
21908 (grub_host_to_target32): Likewise.
21909 (grub_host_to_target64): Likewise.
21910
f4fc97d0
BC
219112010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21912
21913 Source tree is reorganized for emu build.
21914
21915 * include/grub/util/console.h: Move from here...
21916 * include/grub/emu/console.h: ...to here.
21917 * include/grub/util/getroot.h: Move from here...
21918 * include/grub/emu/getroot.h: ...to here.
21919 * include/grub/util/hostdisk.h: Move from here...
21920 * include/grub/emu/hostdisk.h: ...to here.
21921 * util/console.c: Move from here...
21922 * kern/emu/console.c: ...to here.
21923 * util/getroot.c: Move from here...
21924 * kern/emu/getroot.c: ...to here.
21925 * util/grub-emu.c: Move from here...
21926 * kern/emu/main.c: ...to here.
21927 * util/hostdisk.c: Move from here...
21928 * kern/emu/hostdisk.c: ...to here.
21929 * util/hostfs.c: Move from here...
21930 * kern/emu/hostfs.c: ...to here.
21931 * util/mm.c: Move from here...
21932 * kern/emu/mm.c: ...to here.
21933 * util/pci.c: Move from here...
21934 * bus/emu/pci.c: ...to here.
21935 * util/sdl.c: Move from here...
21936 * video/emu/sdl.c: ...to here.
21937 * util/time.c: Move from here...
21938 * kern/emu/time.c: ...to here.
21939 * util/usb.c: Move from here...
21940 * bus/usb/emu/usb.c: ...to here.
21941
21942 * include/grub/emu/misc.h: New header for grub-emu functions.
21943 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21944
21945 * conf/any-emu.rmk: Rule updates for above renames.
21946 * conf/common.rmk: Likewise.
21947 * conf/i386-pc.rmk: Likewise.
21948 * conf/i386-qemu.rmk: Likewise.
21949 * conf/mips.rmk: Likewise.
21950 * conf/sparc64-ieee1275.rmk: Likewise.
21951 * conf/x86-efi.rmk: Likewise.
21952
21953 * disk/lvm.h: #include updates for above renames.
21954 * util/grub-mkrelpath.c: Likewise.
21955 * util/grub-probe.c: Likewise.
21956 * util/i386/pc/grub-setup.c: Likewise.
21957 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21958 * kern/emu/console.c: Likewise.
21959 * kern/emu/getroot.c: Likewise.
21960 * kern/emu/hostdisk.c: Likewise.
21961 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21962
21963 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21964 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21965 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21966 * util/misc.c: Remove grub-emu functions.
21967
cced9145
VS
219682010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21969
21970 Fix gfxmenu crash.
21971 Reported by: Thorsten Grützmacher.
21972
21973 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21974 timeout hook.
21975 (circprog_set_property): Register and unregister timeout hook.
21976 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21977 (label_destroy): Free template. and unregister hook.
21978 (label_set_state): New function.
21979 (label_set_property): Handle templates and hooks.
21980 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21981 timeout hook.
21982 (progress_bar_set_property): Register and unregister timeout hook.
21983 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21984 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21985 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21986 (update_timeout_visit): Removed.
21987 (update_timeouts): New function.
21988 (redraw_timeouts): Likewise.
21989 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21990 (grub_gfxmenu_clear_timeout): Likewise.
21991 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21992 (grub_gfxmenu_timeout_notify): Likewise.
21993 (grub_gfxmenu_timeout_notifications): New external variable.
21994 (grub_gfxmenu_timeout_register): New function.
21995 (grub_gfxmenu_timeout_unregister): Likewise.
21996
c6e5caab
VS
219972010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21998
21999 Transform (broken) vga terminal into (working) vga video driver.
22000
22001 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
22002 video/i386/pc/vga.c.
22003 * include/grub/video.h (grub_video_driver_id):
22004 Add GRUB_VIDEO_DRIVER_VGA.
22005 * term/i386/pc/vga.c: Renamed to ...
22006 * video/i386/pc/vga.c: ...this
22007 (DEBUG_VGA): Removed.
22008 (CHAR_WIDTH): Likewise.
22009 (CHAR_HEIGHT): Likewise.
22010 (TEXT_WIDTH): Likewise.
22011 (TEXT_HEIGHT): Likewise.
22012 (DEFAULT_FG_COLOR): Likewise.
22013 (DEFAULT_BG_COLOR): Likewise.
22014 (colored_char): Likewise.
22015 (xpos): Likewise.
22016 (ypos): Likewise.
22017 (cursor_state): Likewise.
22018 (fg_color): Likewise.
22019 (bg_color): Likewise.
22020 (text_buf): Likewise.
22021 (page): Likewise.
22022 (font): Likewise.
22023 (framebuffer): New variable.
22024 (set_read_map): Disabled.
22025 (setup): New variable.
22026 (is_target): Likewise.
22027 (grub_vga_mod_init): Likewise.
22028 (grub_vga_mod_fini): Likewise.
22029 (check_vga_mem): Likewise.
22030 (write_char): Likewise.
22031 (write_cursor): Likewise.
22032 (scroll_up): Likewise.
22033 (grub_vga_putchar): Likewise.
22034 (grub_vga_getcharwidth): Likewise.
22035 (grub_vga_getwh): Likewise.
22036 (grub_vga_getxy): Likewise.
22037 (grub_vga_gotoxy): Likewise.
22038 (grub_vga_cls): Likewise.
22039 (grub_vga_setcolorstate): Likewise.
22040 (grub_vga_setcursor): Likewise.
22041 (grub_video_vga_init): New function.
22042 (grub_video_vga_setup): Likewise.
22043 (grub_video_vga_fini): Likewise.
22044 (update_target): Likewise.
22045 (grub_video_vga_blit_bitmap): Likewise.
22046 (grub_video_vga_blit_render_target): Likewise.
22047 (grub_video_vga_set_active_render_target): Likewise.
22048 (grub_video_vga_get_active_render_target): Likewise.
22049 (grub_video_vga_swap_buffers): Likewise.
22050 (grub_video_vga_set_palette): Likewise.
22051 (grub_video_vga_get_info_and_fini): Likewise.
22052 (grub_vga_term): Removed.
22053 (grub_video_vga_adapter): New variable.
22054 (GRUB_MOD_INIT): Register a video driver instead of terminal.
22055 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
22056
2bf61a98
VS
220572010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22058
22059 * video/readers/jpeg.c: Indented.
22060
09ddcd11
VS
220612010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22062
22063 Various jpeg cleanups.
22064
22065 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
22066 (grub_jpeg_decode_quan_table): Use sizeof.
22067 (grub_jpeg_decode_du): Use ARRAY_SIZE.
22068
e5507505
PH
220692010-05-05 Peter Hurley <No e-mail available> (tiny change)
22070
22071 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
22072 tables. Ignore non-last ac bit.
22073 (grub_jpeg_decode_quan_table): Likewise.
22074
7e720a9b
VS
220752010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22076
22077 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
22078 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
22079 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
22080 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
22081 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
22082 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
22083
a7fc080b
VS
220842010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22085
22086 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
22087 error.
22088
2bf6012d
VS
220892010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22090
22091 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
22092
265d68cd
VS
220932010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
22094
22095 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
22096 condition.
22097
220982010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
22099
22100 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
22101 part.
22102
265d68cd 221032010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
22104
22105 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
22106 pointers.
22107
265d68cd 221082010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
22109
22110 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
22111
d1b61374
CF
221122010-05-01 Christian Franke <franke@computer.org>
22113
22114 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
22115 Remove broken Cygwin path conversion.
22116 * util/misc.c: [__CYGWIN__] Add include and define.
22117 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
22118 for Cygwin 1.7.
22119 (make_system_path_relative_to_its_root): Simplify loop, replace early
22120 return by break.
22121 [__CYGWIN__] Add conversion to win32 path.
22122 Include "/" case in trailing slash removal.
22123
3558c6e9
VS
221242010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22125
22126 * kern/main.c (grub_load_config): Fix copy-pasted comment.
22127 Reported by: Seth Goldberg
22128
f5f3ff93
VS
221292010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22130
22131 * commands/help.c (grub_cmd_help): Fix a typo.
22132 Reported by: Seth Goldberg
22133
d8b5cd40
VS
221342010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22135
22136 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
22137 name and add N_.
22138 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
22139 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
22140 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
22141 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
22142 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
22143 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
22144 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
22145 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
22146 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
22147 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
22148 * normal/context.c (GRUB_MOD_INIT): Likewise.
22149 * normal/main.c (GRUB_MOD_INIT): Likewise.
22150 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
22151 * term/serial.c (GRUB_MOD_INIT): Likewise.
22152 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
22153
88c14915
VS
221542010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22155
22156 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
22157 extra == 0.
22158
165134bc
VS
221592010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22160
22161 * commands/iorw.c: New file.
22162 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
22163 (iorw_mod_SOURCES): New variable.
22164 (iorw_mod_CFLAGS): Likewise.
22165 (iorw_mod_LDFLAGS): Likewise.
22166
c5ac9b32
VS
221672010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22168
22169 Hotkey support
22170
22171 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
22172 * normal/main.c (hotkey_aliases): New variable.
22173 (grub_normal_add_menu_entry): Parse "--hotkey".
22174 * normal/menu_text.c (run_menu): Handle hotkeys.
22175
ce60689c
VS
221762010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22177
22178 * kern/i386/coreboot/init.c (grub_machine_init): Call
22179 grub_machine_mmap_init on qemu.
22180
0359d006
VS
221812010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22182
22183 * boot/i386/qemu/boot.S: Add a missing .code16.
22184
7819a456
VS
221852010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22186
22187 Use LBIO on coreboot.
22188
22189 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
22190 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
22191 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
22192 New declaration.
22193 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
22194 grub_machine_mmap_init on coreboot.
22195 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
22196 GRUB_LINUXBIOS_MEMBER_LINK.
22197 (grub_machine_mmap_iterate): Fix declaration.
22198 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
22199
7210dca9
VS
222002010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22201
22202 Split coreboot and multiboot ports.
22203
22204 * conf/i386-multiboot.rmk: New file.
22205 * configure.ac: Add multiboot port.
22206 * include/grub/i386/multiboot/boot.h: New file.
22207 * include/grub/i386/multiboot/console.h: Likewise.
22208 * include/grub/i386/multiboot/init.h: Likewise.
22209 * include/grub/i386/multiboot/kernel.h: Likewise.
22210 * include/grub/i386/multiboot/loader.h: Likewise.
22211 * include/grub/i386/multiboot/memory.h: Likewise.
22212 * include/grub/i386/multiboot/serial.h: Likewise.
22213 * include/grub/i386/multiboot/time.h: Likewise.
22214 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
22215 * loader/multiboot.c: Likewise.
22216 * loader/multiboot_mbi2.c: Likewise.
22217 * util/grub-mkrescue.in: Generate multiboot rescue.
22218
6f8aaf68
VS
222192010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22220
3080f7a7
VS
22221 * kern/parser.c (grub_parser_execute): Cope with read-only config.
22222
222232010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22224
22225 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
22226
22227 * commands/terminal.c (abstract_terminal): New struct.
22228 (handle_command): New function. Based on grub_cmd_terminal_input.
22229 (grub_cmd_terminal_input): Use handle_command.
22230 (grub_cmd_terminal_output): Use handle_command.
22231
a8ebb841
BC
222322010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
22233
22234 Fix comment handling.
22235
22236 * tests/grub_script_comments.in: New testcase.
22237 * conf/tests.rmk: Rules for new testcase.
22238 * script/yylex.l: Updated flex rules.
22239
bb06ba08
ST
222402010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
22241
22242 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
22243 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
22244 if argc is 1.
bb06ba08 22245
cc9d2425
VS
222462010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22247
22248 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
22249 autogen issues.
22250
460d8402
CF
222512010-04-26 Christian Franke <franke@computer.org>
22252
22253 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
22254 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
22255 (grub_get_prefix): Remove function.
22256 * util/grub-emu.c (main): Replace grub_get_prefix () call by
22257 make_system_path_relative_to_its_root ().
22258 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
22259
553c01f9
CF
222602010-04-24 Christian Franke <franke@computer.org>
22261
22262 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
22263 (kernel_img_LDFLAGS): Remove -static-libgcc.
22264
2aec1692
CF
222652010-04-24 Christian Franke <franke@computer.org>
22266
22267 * configure.ac: Do not CHECK_BSS_START_SYMBOL
22268 and CHECK_END_SYMBOL if grub-emu is built.
22269 Unset TARGET_OBJ2ELF if grub-emu is built
22270 without module support.
22271
f67dc308
JS
222722010-04-24 Jiro SEKIBA <jir@unicus.jp>
22273
22274 Nilfs2 support.
22275
22276 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
22277 (grub_fstest_SOURCES): Likewise.
22278 (pkglib_MODULES): Add nilfs2.mod.
22279 (nilfs2_mod_SOURCES): New variable.
22280 (nilfs2_mod_CFLAGS): Likewise.
22281 (nilfs2_mod_LDFLAGS): Likewise.
22282 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
22283 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
22284 * fs/nilfs2.c: New file.
22285
4ba8d354
VS
222862010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
22287
22288 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
22289 is not supported.
22290
0d2c20c6
GS
222912010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
22292
22293 Add grub-mkconfig support for NetBSD.
22294
22295 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
22296 * util/grub-mkconfig.in: export new NetBSD specific variables.
22297 * po/POTFILES-shell: added 10_netbsd.in.
22298 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
22299
bc4a2d83
BC
223002010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
22301
22302 Fix emu build with grub-emu-pci and grub-emu-modules.
22303
22304 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
22305 functions.
22306 * include/grub/libpciaccess.h: New file.
22307 * conf/any-emu.rmk: Update kernel headers for emu build.
22308
f48c87aa
VS
223092010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22310
22311 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
22312
18959385
VS
223132010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22314
22315 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
22316
0037de3f
VS
223172010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22318
22319 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
22320 Retrieve chosen/bootpath if bootpath isn't hardcoded.
22321 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
22322 util/ieee1275/ofpath.c.
22323 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
22324 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
22325 * include/grub/sparc64/ieee1275/boot.h
22326 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
22327 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
22328 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
22329 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
22330 const char *.
22331 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
22332 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
22333 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
22334 install.
22335
38e55e90
GS
223362010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22337
22338 * util/grub-mkconfig.in: Corrected two == equality tests.
22339 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
22340 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
22341 expect a number appended to it.
22342 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
22343 expects a number appended to it.
22344
a9e6ff28
VS
223452010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22346
22347 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
22348
0b830b8f
VS
223492010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22350
22351 * util/hostdisk.c (make_device_name): Change to new partition naming.
22352
0973daeb
VS
223532010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
22354
22355 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
22356
460d8402 223572010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
22358
22359 * Makefile.in: Add missing localedir setting.
22360
0b456309
CW
223612010-04-14 Colin Watson <cjwatson@ubuntu.com>
22362
22363 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
22364 mistake in r2156. Noticed by Anthony Fok.
22365
22366 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
22367 @localedir@.
22368 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
22369
08f46d62
BC
223702010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
22371
22372 Fix a spurious, uninitialized variable warning.
22373
22374 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
22375 Initialize variable, shdr.
22376 (grub_freebsd_load_elfmodule): Likewise.
22377 (grub_freebsd_load_elf_meta): Likewise.
22378
8c4a72d4
BC
223792010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
22380
22381 Fix for escaped dollar in double quoted strings.
22382
22383 * script/yylex.l: Updated flex rules.
22384 * conf/tests.rmk: Rule for new testcase.
22385 * tests/grub_script_dollar.in: New testcase.
22386
ce44826e
CPE
223872010-04-13 Carles Pina i Estany <carles@pina.cat>
223882010-04-13 Colin Watson <cjwatson@ubuntu.com>
22389
22390 Enclose all translated strings in grub.cfg in single quotes, and
22391 escape them appropriately (Ubuntu bug #552921).
22392
22393 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
22394 * util/grub.d/10_hurd.in: Use it.
22395 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22396 * util/grub.d/10_linux.in (linux_entry): Likewise.
22397
4b0cd8f8
VS
223982010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22399
22400 Fix cygwin compilation.
22401
22402 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
22403 * include/grub/misc.h (__register_frame_info)
22404 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
22405 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22406 * kern/misc.c (__register_frame_info)
22407 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
22408 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22409
01fcf061
VS
224102010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22411
22412 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22413
5d04b11e
VS
224142010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22415
22416 Unify libgcc processing.
22417
22418 * Makefile.in (kernel_img_LDFLAGS): New variable.
22419 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22420 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22421 overwriting.
22422 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22423 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22424 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22425 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22426 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22427 overwriting. Remove -lgcc and -static-libgcc
22428 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22429 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22430 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22431 (kernel_img_LDFLAGS): Append instead of overwriting.
22432 Remove -lgcc and -static-libgcc
22433 * conf/sparc64-ieee1275.rmk: Likewise.
22434 * include/grub/powerpc/libgcc.h: Move to ...
22435 * include/grub/libgcc.h: .. this.
22436 * include/grub/libgcc.h: Don't export most of the function on x86.
22437 (__bswapsi2): New export.
22438 (__bswapdi2): Likewise.
22439 * include/grub/mips/libgcc.h: Removed.
22440 * include/grub/sparc64/libgcc.h: Likewise.
22441
b7f3ac29
VS
224422010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22443
22444 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22445 disk_info_msg (conflicts with gettexting into languages with cases).
22446
2c7031b1
GS
224472010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22448
22449 Add grub-probe support for NetBSD.
22450
22451 * util/getroot.c (find_root_device): Convert block device to
22452 character device on NetBSD.
22453 * util/probe.c (probe): Require character device on NetBSD.
22454 * util/hostdisk.c: NetBSD specific headers.
22455 (configure_device_driver): new function to tune device driver
22456 parameters (currently only for NetBSD floppy driver).
22457 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22458 via disklabel ioctl).
22459 (open_device): call configure_device_driver on NetBSD.
22460 (convert_system_partition_to_system_disk): NetBSD specific code.
22461 (device_is_wholedisk): Likewise.
22462 (grub_util_biosdisk_get_grub_dev): Likewise.
22463 (make_device_name): Fixed a typo in bsd_part_str.
22464 * configure.ac: check for opendisk() and getrawpartition() on
22465 NetBSD and set LIBUTIL.
22466 * Makefile.in: add LIBUTIL to LIBS.
22467
f516290c
BC
224682010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22469
22470 Documentation fix.
22471
22472 * util/grub-script-check.c: Better help message.
22473
d8dcc0df
BC
224742010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22475
22476 Fix FreeBSD build.
22477
22478 * configure.ac: Flex version check.
22479 * conf/common.rmk: Add -Wno-error to sh.mod.
22480 * script/yylex.l: Remove all #pragma.
22481
6734334a
VS
224822010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22483
22484 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22485 prototype.
22486 Reported by: Seth Goldberg.
22487
daea6abd
VS
224882010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22489
22490 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22491 Rename "module" to "module2".
22492 Reported by: Seth Goldberg.
22493
f2fd9d2b
VS
224942010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22495
22496 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22497 EXPORT_FUNC.
22498 Reported by: Seth Goldberg.
22499
be124579
VS
225002010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22501
22502 * lib/posix_wrap/locale.h: Add missing file.
22503 Reported by: Seth Goldberg.
22504
ef5da797
VS
225052010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22506
22507 grub-emu module load support.
22508
22509 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22510 NO_DYNAMIC_MODULES switched to this.
22511 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22512 (CFLAGS): Likewise.
22513 * conf/any-emu.rmk: Generate symlist.
22514 (kernel_img_HEADERS): Add util/datetime.h.
22515 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22516 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22517 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22518 kern/$(target_cpu)/cache.S.
22519 * configure.ac (grub-emu-modules): New option.
22520 * genmk.rb: Handle multiple source lists.
22521 * include/grub/sdl.h: New file.
22522 * include/grub/libusb.h: Likewise.
22523 * util/grub-emu.c (main): Hanle (host) root.
22524 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22525 GRUB_ERR_UNKNOWN_DEVICE.
22526 * util/misc.c: Move mm functions to ...
22527 * util/mm.c: ... here. All users updated.
22528
47822096
VS
225292010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22530
22531 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22532 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22533 missing files.
22534 (maintainer-clean): Remove libgcrypt-grub.
22535
5d7e7445
VS
225362010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22537
22538 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22539
25f4e252
EC
225402010-04-09 EFI Coder <eficoder@hotmail.com>
22541
22542 * normal/menu_text.c (print_message): Clean up the message and show
22543 the Fn information when on EFI
22544 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22545
027de555
VS
225462010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22547
22548 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22549 All users updated.
22550 * normal/crypto.c (read_crypto_list): Likewise.
22551 * normal/dyncmd.c (read_command_list): Likewise.
22552 * normal/term.c (read_terminal_list): Likewise.
22553 * normal/main.c (read_lists): Use explicit prefix.
22554 (read_lists_hook): Use read_lists.
22555 (grub_normal_execute): Likewise.
22556
47779711
VS
225572010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22558
22559 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22560 Reported by: Thomas Schmitt.
22561 Add -no-emul-boot to grub-mkisofs parameters.
22562
1118c32e
VS
225632010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22564
22565 * font/font.c: Indented.
22566
7d652447
BC
225672010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22568
22569 Elif support to GRUB script (by Deepak Vankadaru).
22570
22571 * tests/grub_script_if.in: New testcase.
22572 * conf/tests.rmk: Rule for new testcase.
22573 * script/parser.y: Grammar rules for elif.
22574
34bb22df
BC
225752010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22576
22577 While and until loops support to GRUB script.
22578
22579 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22580 (grub_script_create_cmdwhile): New function prototype.
22581 (grub_script_execute_cmdwhile): New function prototype.
22582 * script/execute.c (grub_script_execute_cmdwhile): New function.
22583 * script/parser.y (command): New commands.
22584 (whilecmd): New grammar rule.
22585 (untilcmd): New grammar rule.
22586 * script/script.c (grub_script_create_cmdwhile): New function.
22587 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22588 function.
22589
22590 * tests/grub_script_while1.in: New testcase.
22591 * conf/tests.rmk: Rule for new testcase.
22592
e215d8e0
VS
225932010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22594
22595 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22596 as *.jpg.
22597
d7c43ba1
MV
225982010-04-09 Mario Vazquez <mariovazq@gmail.com>
22599
22600 GRUB_BACKGROUND support.
22601
22602 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22603 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22604
d64795c0
VS
226052010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22606
22607 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 22608 Idea by: Mario Vazquez
d64795c0
VS
22609
22610 * util/grub.d/00_header.in: Load pf2 and image modules.
22611
f267f83a
VS
226122010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22613
22614 grub-mkconfig multiple terminal support.
22615
22616 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22617 * util/grub.d/00_header.in: Likewise.
22618
b7841ceb
VS
226192010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22620
22621 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22622 we use cd $(srcdir).
22623
df60998c
CW
226242010-04-08 Colin Watson <cjwatson@ubuntu.com>
22625
22626 * util/grub.d/10_linux.in: Only use the first word of
22627 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22628 spaces in GRUB_DISTRIBUTOR.
22629 * util/grub.d/10_kfreebsd.in: Likewise.
22630 * util/grub.d/10_hurd.in: Likewise.
22631
fa09c82e
BC
226322010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22633
14e18ae3 22634 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
22635
22636 * tests/util/grub-shell.in: Remove -serial stdio option.
22637
daf892b3
BC
226382010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22639
22640 POSIX header file wrappers.
22641
22642 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22643 equivalents.
22644 * lib/posix_wrap/ctype.h: Likewise.
22645 * lib/posix_wrap/errno.h: Likewise.
22646 * lib/posix_wrap/langinfo.h: Likewise.
22647 * lib/posix_wrap/limits.h: Likewise.
22648 * lib/posix_wrap/localcharset.h: Likewise.
22649 * lib/posix_wrap/stdint.h: Likewise.
22650 * lib/posix_wrap/stdio.h: Likewise.
22651 * lib/posix_wrap/stdlib.h: Likewise.
22652 * lib/posix_wrap/string.h: Likewise.
22653 * lib/posix_wrap/sys/types.h: Likewise.
22654 * lib/posix_wrap/unistd.h: Likewise.
22655 * lib/posix_wrap/wchar.h: Likewise.
22656 * lib/posix_wrap/wctype.h: Likewise.
22657 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22658 (grub_script.yy.h): Likewise.
22659 * script/yylex.l: Remove POSIX emulation #defines.
22660 * Makefile.in (POSIX_CFLAGS): New variable.
22661 (GNULIB_UTIL_CFLAGS): Likewise.
22662
22663 Regexp support.
22664
22665 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22666 (regexp_mod_SOURCES): New variable.
22667 (regexp_mod_CFLAGS): Likewise.
22668 (regexp_mod_LDFLAGS): Likewise.
22669 * commands/regexp.c: New file.
22670 * gnulib/regcomp.c: New file. Imported from gnulib.
22671 * gnulib/regex.c: Likewise.
22672 * gnulib/regex_internal.c: Likewise.
22673 * gnulib/regex_internal.h: Likewise.
22674 * gnulib/regexec.c: Likewise.
22675 * gnulib/regex.h: Likewise.
22676
974ac4f7
VS
226772010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22678
22679 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22680 unsupported video mode types.
22681
2622c3ff
VS
226822010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22683
22684 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22685
064cb524
VS
226862010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22687
22688 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22689 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22690
a8c3b552
VS
226912010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22692
22693 Remove unused grub_vga_get_font.
22694
22695 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22696 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22697
187bbe3d
GS
226982010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22699
22700 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22701 * include/grub/misc.h: Likewise.
22702
b9396631
GS
227032010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22704
22705 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22706 for which failure is fatal.
22707
50479feb
GS
227082010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22709
22710 * util/grub-install.in: Use mkdir -p to create grub directory.
22711 * util/i386/efi/grub-install.in: Likewise.
22712 * util/ieee1275/grub-install.in: Likewise.
22713
b1654fdf
GS
227142010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22715
22716 * Makefile.in (LEX): new variable.
22717
bd5a6415
GS
227182010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22719
22720 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22721 `=' and added double quotes on operands of this equality test.
22722
3db3a82b
VS
227232010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22724
22725 * Makefile.in (uninstall): Remove a leftover debug echo.
22726 Reported by: Grégoire Sutre
22727
38023412
VS
227282010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22729
22730 MIPS multiboot2 support.
22731
22732 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22733 (multiboot2_mod_SOURCES): New variable.
22734 (multiboot2_mod_CFLAGS): Likewise.
22735 (multiboot2_mod_LDFLAGS): Likewise.
22736 (multiboot2_mod_ASFLAGS): Likewise.
22737 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22738 definition.
22739 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22740 (MULTIBOOT_MBI_REGISTER): Likewise.
22741 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22742 (MULTIBOOT_ELF32_MACHINE): Likewise.
22743 (MULTIBOOT_ELF64_MACHINE): Likewise.
22744 * include/grub/mips/multiboot.h: New file.
22745 * include/grub/video.h (grub_video_driver_id): New type
22746 GRUB_VIDEO_DRIVER_SM712.
22747 (grub_video_get_info_and_fini): Export.
22748 (grub_video_get_palette): Likewise.
22749 (grub_video_get_driver_id): Likewise.
22750 * include/multiboot2.h: Resynced with spec.
22751 * loader/i386/multiboot.c: Moved from here ...
22752 * loader/multiboot.c: ... here. All users updated.
22753 (grub_multiboot_boot): Use platform-specific macros.
22754 * loader/i386/multiboot_elfxx.c: Moved from here ...
22755 * loader/multiboot_elfxx.c: ... here. All users updated.
22756 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22757 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22758 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22759
47674667
VS
227602010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22761
22762 Import gnulib argp module.
22763
22764 * gnulib/argp-ba.c: New file.
22765 * gnulib/argp-eexst.c: Likewise.
22766 * gnulib/argp-fmtstream.c: Likewise.
22767 * gnulib/argp-fmtstream.h: Likewise.
22768 * gnulib/argp-fs-xinl.c: Likewise.
22769 * gnulib/argp-help.c: Likewise.
22770 * gnulib/argp-namefrob.h: Likewise.
22771 * gnulib/argp-parse.c: Likewise.
22772 * gnulib/argp-pin.c: Likewise.
22773 * gnulib/argp-pv.c: Likewise.
22774 * gnulib/argp-pvh.c: Likewise.
22775 * gnulib/argp-version-etc.c: Likewise.
22776 * gnulib/argp-version-etc.h: Likewise.
22777 * gnulib/argp-xinl.c: Likewise.
22778 * gnulib/argp.h: Likewise.
22779
495442ed
VS
227802010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22781
22782 * kern/device.c (grub_device_iterate): Clear errors after failed
22783 opening device.
22784
f9fd65df
VS
227852010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22786
22787 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22788 returned by firmware.
22789
af09641e
VS
227902010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22791
22792 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22793 compilation on coreboot and qemu
22794
016883a5
VS
227952010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22796
22797 * include/multiboot2.h: Resync with spec.
22798
f97e1f7d
VS
227992010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22800
22801 Multiboot2 tag support
22802
22803 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22804 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22805 Remove loader/multiboot_loader.c.
22806 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22807 (grub_multiboot2_real_boot): Likewise.
22808 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22809 (grub_get_multiboot_mmap_count): New proto.
22810 (grub_fill_multiboot_mmap): Likewise.
22811 (grub_multiboot_set_video_mode): Likewise.
22812 (grub_multiboot_set_console): Likewise.
22813 (grub_multiboot_load): Likewise.
22814 (grub_multiboot_load_elf): Likewise.
22815 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22816 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22817 * include/multiboot.h: Resynced with specification.
22818 * include/multiboot2.h: Resynced with specification.
22819 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22820 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22821 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22822 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22823 users updated.
22824 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22825 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22826 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22827 Removed.
22828 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22829 Moved from here...
22830 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22831 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22832 Moved from here...
22833 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22834 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22835 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22836 All users updated.
22837 * loader/i386/multiboot_mbi2.c: New file.
22838
3506b90b
VS
228392010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22840
22841 Resync with gnulib.
22842
22843 * Makefile.in (GNULIB_CFLAGS): New variable.
22844 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22845 (grub_script_check_CFLAGS): New variable.
22846 * gnulib/alloca.h: Resync with gnulib.
22847 * gnulib/error.c: Likewise.
22848 * gnulib/error.h: Likewise.
22849 * gnulib/fnmatch.c: Likewise.
22850 * gnulib/fnmatch_loop.c: Likewise.
22851 * gnulib/getdelim.c: Likewise.
22852 * gnulib/getline.c: Likewise.
22853 * gnulib/getopt.c: Likewise.
22854 * gnulib/getopt1.c: Likewise.
22855 * gnulib/getopt_int.h: Likewise.
22856 * gnulib/gettext.h: Likewise.
22857 * gnulib/progname.c: Likewise.
22858 * gnulib/progname.h: Likewise.
22859
394a3120
GS
228602010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22861
22862 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22863 which is the case with --disabled-nls.
22864
22865 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22866 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22867 * util/misc.c: Likewise.
22868 * util/mkisofs/mkisofs.c: Likewise.
22869 * util/mkisofs/mkisofs.h: Likewise.
22870
969d1c78
VS
228712010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22872
22873 Simplify Apple CC support.
22874
22875 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22876 Add 0 byte at the end not to have a symbol with empty target.
22877 * mmap/i386/pc/mmap_helper.S: Likewise.
22878 * genmk.rb: Ignore errors 2030 and 2050.
22879 * kern/i386/pc/startup.S: Use LOCAL when possible.
22880
8d2977bb
BC
228812010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22882
22883 Testcase and the fix for final semicolon on cmdline.
22884
22885 * tests/grub_script_final_semicolon.in: New testcase.
22886 * conf/tests.rmk: Rules for the new testcase.
22887 * script/parser.y: Grammar fix.
22888
a7bd6915
BC
228892010-03-26 BVK Chaitanya <bvk@localhost>
22890
22891 Blank lines testcase for GRUB script.
22892
22893 * tests/grub_script_blanklines.in: New testcase.
22894 * conf/tests.rmk: Rules for the new testcase.
22895
e4ff6628
VS
228962010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22897
22898 Don't use __FILE__.
22899
22900 * genmk.rb: Add -DGRUB_FILE to all C targets.
22901 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22902 * include/grub/list.h: Likewise.
22903 * include/grub/misc.h: Likewise.
22904 * include/grub/mm.h: Likewise.
22905 * include/grub/test.h: Likewise.
22906 * kern/mm.c: Likewise.
22907 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22908
6a5cf6b6
VS
229092010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22910
22911 Sunpc partitions support.
22912
22913 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22914 (grub_fstest_SOURCES): Likewise.
22915 (pkglib_MODULES): Add part_sunpc.mod.
22916 (part_sunpc_mod_SOURCES): New variable.
22917 (part_sunpc_mod_CFLAGS): Likewise.
22918 (part_sunpc_mod_LDFLAGS): Likewise.
22919 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22920 * partmap/sunpc.c: New file.
22921
746d9045
BC
229222010-03-26 BVK Chaitanya <bvk@localhost>
22923
22924 For loop support to GRUB script.
22925
22926 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22927 (grub_script_create_cmdfor): New function prototype.
22928 (grub_script_execute_cmdfor): New function prototype.
22929 * script/execute.c (grub_script_execute_cmdfor): New function.
22930 * script/parser.y (command): New for command.
22931 (forcmd): New grammar rule.
22932 * script/script.c (grub_script_create_cmdfor): New function.
22933 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22934 function.
22935 * tests/grub_script_for1.in: New testcase.
22936 * conf/tests.rmk: Rules for new testcase.
22937
18486b18
VS
229382010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22939
22940 Nested partitions
22941
22942 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22943 'partition' is NULL, grub_partition_get_start already does that.
22944 * commands/loadenv.c (check_blocklists): Likewise.
22945 (write_blocklists): Likewise.
22946 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22947 (grub_fstest_SOURCES): Likewise.
22948 (pkglib_MODULES): Add part_bsd.mod.
22949 (part_bsd_mod_SOURCES): New variable.
22950 (part_bsd_mod_CFLAGS): Likewise.
22951 (part_bsd_mod_LDFLAGS): Likewise.
22952 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22953 (grub_emu_SOURCES): Likewise.
22954 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22955 * include/grub/bsdlabel.h: New file.
22956 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22957 'get_name'.
22958 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22959 (grub_partition_map_list): New variable.
22960 (grub_partition_map_register): Inline.
22961 (grub_partition_map_unregister): Likewise.
22962 (FOR_PARTITION_MAPS): New macro.
22963 (grub_partition_map_iterate): Removed.
22964 (grub_partition_get_start): Handle nested partitions.
22965 * include/grub/msdos_partition.h: Remove bsd-related entries.
22966 (grub_pc_partition): Remove.
22967 * kern/disk.c (grub_disk_close): Free partition data.
22968 (grub_disk_adjust_range): Handle nested partitions.
22969 * kern/partition.c (grub_partition_map_probe): New function.
22970 (grub_partition_probe): Parse name to number, handle subpartitions.
22971 (get_partmap): New function.
22972 (grub_partition_iterate): Handle subpartitions.
22973 (grub_partition_get_name): Likewise.
22974 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22975 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22976 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22977 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22978 Set 'number'.
22979 (acorn_partition_map_probe): Remove.
22980 (acorn_partition_map_get_name): Likewise.
22981 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22982 Set 'number'.
22983 Set 'index' to 0 since there can be only one partition entry per sector.
22984 (amiga_partition_map_probe): Remove.
22985 (amiga_partition_map_get_name): Likewise.
22986 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22987 Set 'number'.
22988 Set 'offset' and 'index' to real positions of partitions.
22989 (apple_partition_map_probe): Remove.
22990 (apple_partition_map_get_name): Likewise.
22991 * partmap/bsdlabel.c: New file.
22992 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22993 Set 'number'.
22994 Allocate 'data' so it can be correctly freed.
22995 Set 'index' to offset inside sector.
22996 (gpt_partition_map_probe): Remove.
22997 (gpt_partition_map_get_name): Likewise.
22998 * partmap/msdos.c (grub_partition_parse): Remove.
22999 (pc_partition_map_iterate): Don't force raw access.
23000 Set 'number'.
23001 Make 'ext_offset' a local variable.
23002 (pc_partition_map_probe): Remove.
23003 (pc_partition_map_get_name): Remove.
23004 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
23005 Set 'number'.
23006 (sun_partition_map_probe): Remove.
23007 (sun_partition_map_get_name): Likewise.
23008 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
23009 (grub_pcpart_type): Likewise.
23010 * util/hostdisk.c (open_device): Handle new numbering scheme.
23011 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
23012 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
23013 * util/grub-probe.c (probe_partmap): Handle nested paritions.
23014 * util/grub-install.in: Insert all subpartition modules.
23015 * util/ieee1275/grub-install.in: Likewise.
23016
a3940f88
AG
230172010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
23018
23019 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
23020 grammar.
23021
21b99926 230222010-03-24 Colin Watson <cjwatson@ubuntu.com>
23023
23024 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
23025
bed1d352
CW
230262010-03-21 Colin Watson <cjwatson@ubuntu.com>
23027
23028 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
23029 match where 'make install' puts them.
23030 * util/i386/efi/grub-install.in: Likewise.
23031
c9f58427
CW
230322010-03-19 Colin Watson <cjwatson@ubuntu.com>
23033
23034 * .bzrignore: Add gentrigtables, grub-script-check,
23035 grub_script_check_init.c, grub_script_check_init.h, and
23036 trigtables.c.
23037
f84afb27
VS
230382010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
23039
23040 * kern/parser.c: Indented.
23041
ed0e3d30
VS
230422010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
23043
23044 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
23045
0ea81d98
VS
230462010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
23047
23048 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
23049 alpha_mask_size == 0 case.
23050
0cdc2a09
BC
230512010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
23052
23053 GRUB shell lexer and parser improvements.
23054
23055 * conf/any-emu.rmk: Build rule updates.
23056 * conf/common.rmk: Likewise.
23057 * conf/i386-coreboot.rmk: Likewise.
23058 * conf/i386-efi.rmk: Likewise.
23059 * conf/i386-ieee1275.rmk: Likewise.
23060 * conf/i386-pc.rmk: Likewise.
23061 * conf/powerpc-ieee1275.rmk: Likewise.
23062 * conf/x86_64-efi.rmk: Likewise.
23063
23064 * configure.ac: Configure check for flex.
23065
23066 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
23067 types.
23068 (grub_lexer_param): Struct member updates.
23069 (grub_parser_param): Likewise.
23070 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
23071 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
23072 (grub_script_lexer_init): Prototype update.
23073 (grub_script_lexer_record_start): Likewise.
23074 (grub_script_lexer_record_stop): Likewise.
23075 (grub_script_lexer_yywrap): New function prototype.
23076 (grub_script_lexer_fini): Likewise.
23077 (grub_script_execute_argument_to_string): Removed by...
23078 (grub_script_execute_argument_to_argv): ...better version.
23079
23080 * script/execute.c (ROUND_UPTO): New macro.
23081 (grub_script_execute_cmdline): Out of memory fixes.
23082 (grub_script_execute_menuentry): Likewise.
23083 (grub_script_execute_argument_to_string): Removed. Update all
23084 users by...
23085 (grub_script_execute_argument_to_argv): ...better version.
23086 * script/function.c (grub_script_function_create): Use
23087 grub_script_execute_argument_to_argv instead of
23088 grub_script_execute_argument_to_string.
23089
23090 * script/lexer.c (check_varstate): Removed.
23091 (check_textstate): Removed.
23092 (grub_script_lexer_record_start): Likewise.
23093 (grub_script_lexer_record_stop): Likewise.
23094 (recordchar): Replaced with...
23095 (grub_script_lexer_record): ...new function.
23096 (nextchar): Removed.
23097 (grub_script_lexer_init): Rewritten.
23098 (grub_script_yylex): Rewritten.
23099 (append_newline): New function.
23100 (grub_script_lexer_yywrap): New function.
23101 (grub_script_lexer_fini): New function.
23102 (grub_script_yyerror): Sets error flag.
23103
23104 * script/yylex.l: New file.
23105 (grub_lexer_yyfree): Wrapper for flex yyffre.
23106 (grub_lexer_yyalloc): Likewise.
23107 (grub_lexer_yyrealloc): Likewise.
23108 * script/parser.y: Refactored.
23109
23110 * script/script.c (grub_script_arg_add): Out of memory fixes.
23111 (grub_script_add_arglist): Likewise.
23112 (grub_script_create_cmdline): Likewise.
23113 (grub_script_create_cmdmenu): Likewise.
23114 (grub_script_add_cmd): Likewise.
23115 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
23116 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
23117 unnecessary code.
23118
23119 * tests/grub_script_echo1.in: New testcase.
23120 * tests/grub_script_vars1.in: New testcase.
23121 * tests/grub_script_echo_keywords.in: New testcase.
23122
1d63a066
VS
231232010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23124
23125 Remove some redundancy in build system.
23126
23127 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
23128 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
23129 (TARGET_LDFLAGS): Add -nostdlib.
23130 (TARGET_IMG_LDFLAGS): Likewise.
23131 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
23132 anything since mmap isn't available.
23133 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
23134 Add util/time.c.
23135 (pkglib_MODULES): Remove reboot.mod.
23136 (reboot_mod_SOURCES): Removed.
23137 (reboot_mod_CFLAGS): Likewise.
23138 (reboot_mod_LDFLAGS): Likewise.
23139 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
23140 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
23141 (DEFSYMFILES): Add kernel_syms.lst.
23142 (kernel_img_HEADERS): Add common headers.
23143 (symlist.c): New target.
23144 (kernel_syms.lst): Likewise.
23145 (pkglib_MODULES): Add memdisk.mod.
23146 (memdisk_mod_SOURCES): New variable.
23147 (memdisk_mod_CFLAGS): Likewise.
23148 (memdisk_mod_LDFLAGS): Likewise.
23149 (pkglib_MODULES): Add reboot.mod.
23150 (reboot_mod_SOURCES): New variable.
23151 (reboot_mod_CFLAGS): Likewise.
23152 (reboot_mod_LDFLAGS): Likewise.
23153 (pkglib_MODULES): Add date.mod.
23154 (date_mod_SOURCES): New variable.
23155 (date_mod_CFLAGS): Likewise.
23156 (date_mod_LDFLAGS): Likewise.
23157 (pkglib_MODULES): Add datehook.mod.
23158 (datehook_mod_SOURCES): New variable.
23159 (datehook_mod_CFLAGS): Likewise.
23160 (datehook_mod_LDFLAGS): Likewise.
23161 (pkglib_MODULES): Add lsmmap.mod.
23162 (lsmmap_mod_SOURCES): New variable.
23163 (lsmmap_mod_CFLAGS): Likewise.
23164 (lsmmap_mod_LDFLAGS): Likewise.
23165 (pkglib_MODULES): Add boot.mod.
23166 (boot_mod_SOURCES): New variable.
23167 (boot_mod_CFLAGS): Likewise.
23168 (boot_mod_LDFLAGS): Likewise.
23169 * conf/i386-coreboot.rmk: Removed redundant parts.
23170 * conf/i386-ieee1275.rmk: Likewise.
23171 * conf/i386-pc.rmk: Likewise.
23172 * conf/mips-yeeloong.rmk: Likewise.
23173 * conf/mips.rmk: Likewise.
23174 * conf/powerpc-ieee1275.rmk: Likewise.
23175 * conf/sparc64-ieee1275.rmk: Likewise.
23176 * conf/x86_64-efi.rmk: Likewise.
23177 * conf/i386-coreboot.rmk: Moved qemu parts ..
23178 * conf/i386-qemu.rmk: ... here
23179 * conf/i386-efi.rmk: Moved common parts to...
23180 * conf/x86-efi.rmk: ... here.
23181 * conf/i386.rmk: Added modules common to all x86 variants.
23182 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
23183 * disk/memdisk.c: Remove grub/machine/kernel.h.
23184 * gensymlist.sh.in: Include symbol.h.
23185 * hook/datehook.c: Correct module name.
23186 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
23187 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
23188 * include/grub/i386/efi/serial.h: New file.
23189 * include/grub/x86_64/efi/serial.h: Likewise.
23190 * util/time.c: Likewise.
23191 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
23192
463ac55f
CK
231932010-03-14 Colin King <colin.king@ubuntu.com>
231942010-03-14 Colin Watson <cjwatson@ubuntu.com>
23195
23196 Shrink the pre-partition-table part of boot.img by eight bytes.
23197
23198 * boot/i386/pc/boot.S (ERR): New macro.
23199 (chs_mode): Use ERR.
23200 (geometry_error): Likewise.
23201 (hd_probe_error): Remove. This is only used once, so we wrwite
23202 it inline instead.
23203 (read_error): Instead of printing read_error_string, just set up
23204 %si and fall through to ...
23205 (error_message): ... this new function, also used by ERR.
23206
08e46ede
CW
232072010-03-14 Colin Watson <cjwatson@ubuntu.com>
23208
23209 Speed up consecutive hostdisk operations on the same device.
23210
23211 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
23212 (grub_util_biosdisk_open): Initialise disk->data.
23213 (struct linux_partition_cache): New structure.
23214 (linux_find_partition): Cache partition start positions; these are
23215 expensive to compute on every read and write.
23216 (open_device): Cache open file descriptor in disk->data, so that we
23217 don't have to reopen it and flush the buffer cache for consecutive
23218 operations on the same device.
23219 (grub_util_biosdisk_close): New function.
23220 (grub_util_biosdisk_dev): Set `close' member.
23221
23222 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
23223 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
23224 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23225 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23226 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
23227
4a6d2d06
VS
232282010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23229
23230 Compile parts of grub-emu as modules.
23231
23232 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
23233 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
23234 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
23235 (all-local): Add $(GRUB_EMU).
23236 (install-local): Install $(GRUB_EMU).
23237 (uninstall): Uninstall $(GRUB_EMU).
23238 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
23239 * kern/dl.c: Likewise.
23240 * commands/sleep.c: Not include machine/time.h.
23241 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
23242 (COMMON_CFLAGS): Likewise.
23243 (sbin_UTILITIES): Remove grub-emu.
23244 (grub_emu_SOURCES): Removed.
23245 (kernel_img_RELOCATABLE): New variable.
23246 (pkglib_PROGRAMS): Add kernel.img.
23247 (kernel_img_SOURCES): New variable
23248 (kernel_img_CFLAGS): Likewise.
23249 (kernel_img_LDFLAGS): Likewise.
23250 (TARGET_NO_STRIP): Likewise.
23251 (TARGET_NO_DYNAMIC_MODULES): Likewise.
23252 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
23253 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
23254 (grub-emu): New target.
23255 (GRUB_EMU): New variable.
23256 * configure.ac: Whitelist -emu as possible x86_64 architecture.
23257 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
23258 * loader/xnu.c: Likewise.
23259 * include/grub/pci.h: Likewise.
23260 * genemuinit.sh: New file.
23261 * genemuinitheader.sh: Likewise.
23262 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
23263 Support TARGET_NO_DYNAMIC_MODULES.
23264 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
23265 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
23266 * disk/loopback.c: Likewise.
23267 * font/font_cmd.c: Likewise.
23268 * partmap/acorn.c: Likewise.
23269 * partmap/amiga.c: Likewise.
23270 * partmap/apple.c: Likewise.
23271 * partmap/gpt.c: Likewise.
23272 * partmap/msdos.c: Likewise.
23273 * partmap/sun.c: Likewise.
23274 * parttool/msdospart.c: Likewise.
23275 * term/gfxterm.c: Likewise.
23276 * video/bitmap.c: Likewise.
23277 * video/readers/jpeg.c: Likewise.
23278 * video/readers/png.c: Likewise.
23279 * video/readers/tga.c: Likewise.
23280 * video/video.c: Likewise.
23281 * util/grub-emu.c (read_command_list): Removed.
23282 (main): Don't call util_init_nls.
23283 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
23284 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
23285
91fdd2ed
VS
232862010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23287
23288 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
23289 date.mod, datehook.mod.
23290 (datetime_mod_SOURCES): New variable.
23291 (datetime_mod_CFLAGS): Likewise.
23292 (datetime_mod_LDFLAGS): Likewise.
23293 (date_mod_SOURCES): Likewise.
23294 (date_mod_CFLAGS): Likewise.
23295 (date_mod_LDFLAGS): Likewise.
23296 (datehook_mod_SOURCES): Likewise.
23297 (datehook_mod_CFLAGS): Likewise.
23298 (datehook_mod_LDFLAGS): Likewise.
23299 * conf/sparc64-ieee1275.rmk: Likewise.
23300 * lib/ieee1275/datetime.c: New file.
23301
873ccae6
VS
233022010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23303
23304 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
23305 (ieee1275_fb_mod_SOURCES): New variable.
23306 (ieee1275_fb_mod_CFLAGS): Likewise.
23307 (ieee1275_fb_mod_LDFLAGS): Likewise.
23308 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
23309 New proto.
23310 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
23311 (HEAP_MAX_ADDR): Likewise.
23312 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
23313 type.
23314 Correct stop condition.
23315 (grub_ieee1275_devices_iterate): New function.
23316 * video/ieee1275.c: New file.
23317
601c97c0
VS
233182010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23319
23320 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
23321
23322 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
23323 as scratch.
23324 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
23325 SCRATCH_PAD_DISKBOOT as scratch.
23326 (bootit): Pass Openfirmware pointer in %o4.
23327 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
23328 of 0x200000.
23329 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
23330 with util/grub-mkrawimage.c.
23331 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
23332 * include/grub/aout.h (AOUT_MID_SUN): New definition.
23333 (grub_aout_get_type) [GRUB_UTIL]: Removed.
23334 (grub_aout_load) [GRUB_UTIL]: Likewise.
23335 * include/grub/kernel.h (grub_modules_get_end): New proto.
23336 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
23337 (SCRATCH_PAD_BOOT): New definition.
23338 (SCRATCH_PAD_DISKBOOT): Likewise.
23339 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
23340 * include/grub/sparc64/ieee1275/ieee1275.h
23341 (grub_ieee1275_original_stack): New variable
23342 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23343 New definition
23344 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
23345 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
23346 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
23347 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
23348 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
23349 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
23350 (grub_platform_image_format_t): New type.
23351 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
23352 * kern/main.c (grub_modules_get_end)
23353 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
23354 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
23355 (codestart): Switch stacks.
23356 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
23357 variable.
23358 (grub_heap_init): Use grub_modules_get_end.
23359 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
23360 stack.
23361 * util/grub-mkrawimage.c (generate_image): Support sparc64.
23362 (main): Likewise.
23363 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
23364
d68b491e
TG
233652010-03-14 Thorsten Glaser <tg@mirbsd.org>
23366
23367 * util/grub-mkrescue.in: Base ISO UUID on UTC.
23368
4e02ed50
MK
233692010-03-08 Matt Kraai <kraai@ftbfs.org>
23370
23371 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
23372 bug #559005).
23373
1f15fc1e
VS
233742010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
23375
23376 * genmoddep.awk: Output all missing symbols and not only first.
23377
fce5d8ff
VS
233782010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23379
23380 * NEWS: Put the date of 1.98 release.
23381
d1e8a02f
VS
233822010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23383
23384 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
23385 ft2build.h.
23386
696fd607
VS
233872010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23388
23389 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
23390 completition in the middle of string.
23391
33e2e6f3
VS
233922010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23393
23394 * util/grub-mkrescue.in: Use mktemp with explicit template.
23395
b1f6d291
VS
233962010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23397
23398 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
23399
2ac227c7
VS
234002010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23401
23402 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
23403 right pointer.
23404
8f9a632b
VS
234052010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23406
23407 Fix FreeBSD compilation.
23408
23409 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
23410 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
23411
60b03859
VS
234122010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23413
23414 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23415
48a5a769
VS
234162010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23417
23418 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23419
3ab4bd77
VS
234202010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23421
23422 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23423
d116e0d8
RM
234242010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23425
23426 Support relative image path in theme file.
23427
23428 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23429 (image_set_property): Handle theme_dir and relative path.
23430
c7ef54aa
VS
234312010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23432
23433 * configure.ac: Alias amd64 to x86_64.
23434
fcee14ed
VS
234352010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23436
23437 * NEWS: mention multiboot on EFI.
23438
d0780363
VS
234392010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23440
23441 * kern/main.c (grub_load_modules): Handle errors from init functions of
23442 embeded modules.
23443
41168ea4
VS
234442010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23445
23446 * normal/autofs.c (autoload_fs_module): Handle errors.
23447
b54d93ac
VS
234482010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23449
23450 Disable linux.mod on qemu-mips since it's not functional and leads
23451 to compilation failure.
23452
23453 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23454 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23455 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23456 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23457 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23458 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23459 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23460 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23461 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23462 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23463 Reported by: BVK Chaitanya
23464
fc8345da
JU
234652010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23466
23467 * INSTALL: Add gettext as a dependency and add qemu to a new section
23468 "Prerequisites for make-check".
23469
4760f979
CF
234702010-03-04 Christian Franke <franke@computer.org>
23471
23472 * util/grub-pe2elf.c: Add missing include "progname.h".
23473
f209b5b2
VS
234742010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23475
23476 * normal/crypto.c (read_crypto_list): Fix a typo.
23477 Reported by: Seth Goldberg.
23478
b4b7be98
VS
234792010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23480
23481 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 23482 Reported by: Seth Goldberg.
b4b7be98 23483
c0ee0385
VS
234842010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23485
23486 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23487 ascii.bitmaps.
23488
a8efbf64
VS
234892010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23490
23491 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 23492 Reported by: Seth Goldberg.
a8efbf64 23493
08dcd913
VS
234942010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23495
23496 * util/i386/efi/grub-install.in: Copy gettext files.
23497
c4d0b332
VS
234982010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23499
23500 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23501
c6f2fe52
VS
235022010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23503
23504 Wait for user entry basing on presence of output rather than on errors.
23505
23506 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23507 (grub_install_newline_hook): Likewise.
23508 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23509 * normal/menu.c (show_menu): Check line_counter to determine presence
23510 of output.
23511 * normal/term.c (grub_normal_line_counter): New variable.
23512 (grub_normal_get_line_counter): New function.
23513 (grub_install_newline_hook): Likewise.
23514
5382b1e4
VS
235152010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23516
23517 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23518
5519963b
VS
235192010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23520
23521 * configure.ac: Update version to 1.98.
23522
72b28631
VS
235232010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23524
23525 * util/grub.d/10_linux.in (linux_entry): Don't default to
23526 gfxpayload=keep if Linux doesn't support video handover.
23527
c140a180
VS
235282010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23529
23530 Don't compile video modules on yeeloong since video subsystem is part
23531 of kernel.
23532
23533 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23534 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23535 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23536 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23537 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23538 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23539 * include/grub/bitmap_scale.h: Likewise.
23540 * include/grub/bufio.h: Likewise.
23541 * include/grub/font.h: Likewise.
23542 * include/grub/gfxterm.h: Likewise.
23543 * include/grub/video.h: Likewise.
23544 * include/grub/vbe.h: Don't include video_fb.h.
23545 * video/i386/pc/vbe.c: Include video_fb.h.
23546 * commands/i386/pc/vbetest.c: Include video.h.
23547
a0ca21c2
CW
235482010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23549
23550 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23551 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23552 default entry if GRUB_SAVEDEFAULT=true. This allows using
23553 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23554 saving a new default on every boot.
23555
4a8a763c
VS
235562010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23557
23558 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23559 * normal/term.c (read_terminal_list): Likewise.
23560 * normal/main.c (grub_normal_init_page): Likewise.
23561 (grub_normal_read_line_real): Likewise.
23562
607ffde2
VS
235632010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23564
23565 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23566 memory leak.
23567 Reported by: Seth Goldberg.
23568
2b8fa975
CW
235692010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23570
23571 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23572 duplicate declaration of `start'.
23573
618307dd
VS
235742010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23575
23576 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23577 filename.
23578 Reported by: Georgy Buranov
23579
7dd05b96 235802010-02-20 Carles Pina i Estany <carles@pina.cat>
23581
23582 * util/grub-mkrawimage.c (usage): Change string formatting to
23583 improve gettext.
23584
d1484a42
MRA
235852010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23586
23587 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23588 backspace keys.
23589
42b1d186
VS
235902010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23591
23592 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23593 Reported by: Michael Suchanek.
23594
235952010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
23596
23597 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23598 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23599
d9f31a41
VS
236002010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23601
23602 Remove any reference to non-free fonts.
23603
23604 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23605 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23606 uses non-free components.
23607 * font/font.c (grub_font_get_name): Remove example name.
23608 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23609 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23610 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23611 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23612
2793c71e
GB
236132010-02-16 Georgy Buranov <gburanov@gmail.com>
23614
23615 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23616
402e3779
VS
236172010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23618
23619 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23620 Double divisor.
23621 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23622 features.
23623 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23624
0dd1e0dd
VS
236252010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23626
23627 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23628
6fa7cfce
ST
236292010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23630
23631 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23632 * docs/grub.texi (Command-line and menu entry commands): Document play
23633 command.
23634
37c8483b
ST
236352010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23636
23637 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23638 parse arguments as inline tempo and notes. Move code for playing notes
23639 to...
23640 (play): ... new function.
23641
14da0fb7
ST
236422010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23643
23644 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23645 grub_uint16_t instead of short.
23646 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23647 disk from little endian to cpu endianness.
23648
04459e70
ST
236492010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23650
23651 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23652 GRUB_TICKS_PER_SECOND instead of 120.
23653
a0876943
VS
236542010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23655
23656 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23657 escape sequence after \e.
23658
e29f95dc
VS
236592010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23660
23661 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23662 non-ASCII characters.
23663
d27859b2
VS
236642010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23665
23666 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23667 set root in single quotes to prevent \, from being unescaped.
23668
bc028f2f
VS
236692010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23670
23671 Prevent unknown commands from stopping menuentry execution.
23672
23673 * script/execute.c (grub_script_execute_cmdline): Print error after
23674 unknown command.
23675
095f5f82
VS
236762010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23677
23678 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23679 Reported by: Pavel Pisa.
23680
8c717950
VS
236812010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23682
23683 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23684
904935c3
VS
236852010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23686
23687 Merge grub_ieee1275_map_physical into grub_map and rename to
23688 grub_ieee1275_map
23689
23690 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23691 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23692 Remove.
23693 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23694 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23695 necessary.
23696 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23697
5b59a4e3
VS
236982010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23699
23700 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23701 opening and not after.
23702
69e137e8
VS
237032010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23704
23705 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23706 constants.
23707
2c0fcc36
VS
237082010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23709
23710 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23711 (alloc_phys): Use ALIGN_UP instead of align_addr.
23712
8c6052ce
VS
237132010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23714
23715 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23716
17cec782
VS
237172010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23718
23719 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23720
e0128bbd
VS
237212010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23722
23723 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23724 verbose dprintf.
23725
ca62070b
VS
237262010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23727
23728 Fix over-4GiB seek on sparc64.
23729
23730 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23731 Replace pos_i and pos_lo with pos. All users updated.
23732 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23733 New constant.
23734 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23735 Likewise.
23736 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23737 and pos_lo.
23738
bdca2607
VS
237392010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23740
23741 * util/grub-mkrawimage.c (main): Call set_program_name.
23742
da278c4d
VS
237432010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23744
23745 Properly align 64-bit targets.
23746
23747 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23748 (generate_image): Use ALIGN_ADDR.
23749
b274d734
VS
237502010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23751
23752 Properly create cross-endian images.
23753
23754 * include/grub/types.h (grub_host_to_target_addr): New macro
23755 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23756
82da2062
VS
237572010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23758
23759 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23760
7cae4377
VS
237612010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23762
23763 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23764
23765 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23766 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23767 (grub_linux_boot): Divide by 64K when on VESA.
23768
65a533e7
VS
237692010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23770
23771 Support GRUB_GFXPAYLOAD_LINUX.
23772
23773 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23774 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23775
dd01d397
VS
237762010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23777
23778 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23779 to show messages instead of discarding them.
23780 Process errors after executing command and not before. Keep old method
23781 too as precaution.
23782
660960d6
VS
237832010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23784
23785 * configure.ac: Check for ft2build.h.
23786
62509f04
VS
237872010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23788
23789 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23790
473df63d
VS
237912010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23792
23793 * genkernsyms.sh.in: Use TARGET_CC.
23794
c98d2a13
CW
237952010-02-07 Colin Watson <cjwatson@ubuntu.com>
23796
23797 * NEWS: Update.
23798
6e14234c
VS
237992010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23800
23801 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
23802 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23803 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 23804
b255e9cf
YB
238052010-02-07 Yves Blusseau <blusseau@zetam.org>
23806
6e14234c 23807 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 23808
98e6959d
VS
238092010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23810
23811 Fix warnings in grub-emu when compiling with maximum warning options.
23812
23813 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23814 (grub_arch_modules_addr): Return 0 and not NULL.
23815 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 23816 (xstrdup): Use newstr instead of dup.
f88d801b
VS
23817 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23818 of disk to dsk to avoid shadowing.
74e4934e
VS
23819 (find_free_slot): Fix prototype.
23820 * util/getroot.c (grub_util_is_dmraid): Make static.
23821 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23822 Add missing prototype.
23823 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 23824
74e31b5c
VS
238252010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23826
23827 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23828 appropriately.
23829
6b2ad14b
VS
238302010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23831
23832 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23833 code out.
23834
8f891adc
VS
238352010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23836
23837 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23838 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23839 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23840 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23841 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23842 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23843
74b45184
VS
238442010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23845
23846 * include/grub/err.h (grub_err_printf): Don't export.
23847
a4bced77
VS
238482010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23849
23850 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23851
007d0695
VS
238522010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23853
23854 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23855 * kern/misc.c (grub_gettext_dummy): Make static.
23856
b6c0d9c2
VS
238572010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23858
23859 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23860 by non-valid ones.
23861 * kern/term.c (grub_putchar): Likewise.
23862
f51a90d0
VS
238632010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23864
23865 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23866 buggy hook call and memory leak.
23867
6846cec5
VS
238682010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23869
23870 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23871
468d69fe
VS
238722010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23873
23874 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23875
51906b8c
VS
238762010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23877
23878 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23879 modevar.
23880 Return grub_errno on allocation error.
23881
09706ce5
VS
238822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23883
23884 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23885
911df80c
YB
238862010-02-06 Yves Blusseau <blusseau@zetam.org>
23887
23888 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23889 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23890
3746a6bc
VS
238912010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23892
23893 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23894 non-pxe disk.
23895 (grub_pxefs_open): Likewise.
23896
09706ce5
VS
238972010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23898
23899 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23900 * util/grub.d/10_kfreebsd.in: Likewise.
23901 * util/grub.d/10_linux.in: Likewise.
23902
7cc192d9
VS
239032010-02-06 Colin D Bennett <colin@gibibit.com>
23904
23905 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23906 (gfxmenu_mod_SOURCES): New variable.
23907 (gfxmenu_mod_CFLAGS): Likewise.
23908 (gfxmenu_mod_LDFLAGS): Likewise.
23909 * include/grub/term.h (grub_term_set_current_output): Declare
23910 argument as const.
23911 * docs/gfxmenu-theme-example.txt: New file.
23912 * gfxmenu/gfxmenu.c: Likewise.
23913 * gfxmenu/gui_box.c: Likewise.
23914 * gfxmenu/gui_canvas.c: Likewise.
23915 * gfxmenu/gui_circular_progress.c: Likewise.
23916 * gfxmenu/gui_image.c: Likewise.
23917 * gfxmenu/gui_label.c: Likewise.
23918 * gfxmenu/gui_list.c: Likewise.
23919 * gfxmenu/gui_progress_bar.c: Likewise.
23920 * gfxmenu/gui_string_util.c: Likewise.
23921 * gfxmenu/gui_util.c: Likewise.
23922 * gfxmenu/icon_manager.c: Likewise.
23923 * gfxmenu/model.c: Likewise.
23924 * gfxmenu/named_colors.c: Likewise.
23925 * gfxmenu/theme_loader.c: Likewise.
23926 * gfxmenu/view.c: Likewise.
23927 * gfxmenu/widget-box.c: Likewise.
23928 * include/grub/gfxmenu_model.h: Likewise.
23929 * include/grub/gfxmenu_view.h: Likewise.
23930 * include/grub/gfxwidgets.h: Likewise.
23931 * include/grub/gui.h: Likewise.
23932 * include/grub/gui_string_util.h: Likewise.
23933 * include/grub/icon_manager.h: Likewise.
23934
239352010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23936
23937 Agglomerate scrolling in gfxterm.
23938
23939 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23940 (grub_virtual_screen_setup): Initialise 'total_screen'.
23941 (write_char): Split to ...
23942 (paint_char): ... this ...
23943 (write_char): ... and this.
23944 (paint_char): Handle delayed scrolling.
23945 (draw_cursor): Likewise.
23946 (scroll_up): Split to ...
23947 (real_scroll): ... this ...
23948 (scroll_up): ... and this.
23949 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23950 characters.
23951 (grub_gfxterm_refresh): Call real_scroll.
23952
239532010-02-06 Colin D Bennett <colin@gibibit.com>
23954
23955 * include/grub/misc.h (grub_iscntrl): New inline function.
23956 (grub_isalnum): Likewise.
23957 (grub_strtol): Likewise.
23958
239592010-02-06 Colin D Bennett <colin@gibibit.com>
23960
23961 * normal/menu_text.c (get_entry_number): Move from here ...
23962 * normal/menu.c (get_entry_number): ... moved here.
23963 * include/grub/menu.h (grub_menu_get_default_entry_index):
23964 New prototype.
23965 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23966 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23967 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23968 (grub_menu_viewer_should_return): Likewise.
23969 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23970 * normal/menu_text.c (run_menu): Enable menu switching.
23971 * normal/menu_viewer.c (should_return): New variable.
23972 (menu_viewer_changed): Likewise.
23973 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23974 (grub_menu_viewer_should_return): New function.
23975 (menuviewer_write_hook): Likewise.
23976 (grub_menu_viewer_init): Likewise.
23977
239782010-02-06 Colin D Bennet <colin@gibibit.com>
239792010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23980
23981 Support for gfxterm in a window.
23982
23983 * include/grub/gfxterm.h: New file.
23984 * include/grub/video.h (struct grub_video_rect): New declaration.
23985 (grub_video_rect_t): Likewise.
23986 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23987 (refcount): New variable.
23988 (render_target): Likewise.
23989 (window): Likewise.
23990 (repaint_callback): Likewise.
23991 (grub_virtual_screen_setup): Use 'render_target'.
23992 (init_window): New function.
23993 (grub_gfxterm_init_window): Likewise.
23994 (grub_gfxterm_init): Check reference counter.
23995 Use init_window.
23996 (destroy_window): New function.
23997 (grub_gfxterm_destroy_window): Likewise.
23998 (grub_gfxterm_fini): Check reference counter.
23999 Use destroy_window.
24000 (redraw_screen_rect): Restore viewport.
24001 Use 'render_target' and 'window'.
24002 Call 'repaint_callback'.
24003 (write_char): Use 'render_target'.
24004 (draw_cursor): Likewise.
24005 (scroll_up): Restore viewport.
24006 Use 'render_target' and 'window'.
24007 Call 'repaint_callback'.
24008 (grub_gfxterm_cls): Likewise.
24009 (grub_gfxterm_refresh): Use 'window'.
24010 (grub_gfxterm_set_repaint_callback): New function.
24011 (grub_gfxterm_background_image_cmd): Use 'window'.
24012 (grub_gfxterm_get_term): New function.
24013 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
24014
240152010-02-06 Colin D Bennett <colin@gibibit.com>
24016
24017 Bitmap scaling support.
24018
24019 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
24020 (bitmap_scale_mod_SOURCES): New variable.
24021 (bitmap_scale_mod_CFLAGS): Likewise.
24022 (bitmap_scale_mod_LDFLAGS): Likewise.
24023 * include/grub/bitmap_scale.h: New file.
24024 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
24025 (background_image_cmd_options): New variable.
24026 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
24027 (cmd): Rename and change type to ...
24028 (background_image_cmd_handle): ... this. All users updated.
24029 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
24030 * video/bitmap_scale.c: New file.
24031
240322010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24033
24034 SDL support.
24035
24036 * Makefile.in (LIBSDL): New variable.
24037 (enable_grub_emu_sdl): Likewise.
24038 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
24039 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
24040 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
24041 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
24042 * util/sdl.c: New file.
24043
240442010-02-06 Colin D Bennett <colin@gibibit.com>
240452010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24046
24047 Double buffering support.
24048
24049 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
24050 * include/grub/video.h: Update comment.
24051 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
24052 New type.
24053 (grub_video_fb_doublebuf_blit_init): New prototype.
24054 * term/gfxterm.c (scroll_up): Support double buffering.
24055 (grub_gfxterm_refresh): Likewise.
24056 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
24057 (grub_video_fb_doublebuf_blit_init): Likewise.
24058 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
24059 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
24060 'displayed_page', 'render_page' and 'update_screen'.
24061 (grub_video_vbe_fini): Free offscreen buffer.
24062 (doublebuf_pageflipping_commit): New function.
24063 (doublebuf_pageflipping_update_screen): Likewise.
24064 (doublebuf_pageflipping_init): Likewise.
24065 (double_buffering_init): Likewise.
24066 (grub_video_vbe_setup): Enable doublebuffering.
24067 (grub_video_vbe_swap_buffers): Implement.
24068 (grub_video_vbe_set_active_render_target): Handle double buffering.
24069 (grub_video_vbe_get_active_render_target): Likewise.
24070 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
24071 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
24072 (grub_video_vbe_enable_double_buffering): Likewise.
24073 (grub_video_vbe_swap_buffers): Use update_screen.
24074 (grub_video_set_mode): Use double buffering.
24075
240762010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24077
24078 * maintainance/gentrigtables.py: Remove.
24079 * lib/trig.c: Likewise.
24080
24081 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
24082
24083 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
24084 `trigtables.c'.
24085 (trigtables.c): New rule.
24086 (gentrigtables): Likewise.
24087 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
24088
240892010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24090
24091 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
24092 integer constants.
24093
240942010-02-06 Colin D Bennet <colin@gibibit.com>
24095
24096 Trigonometry support.
24097
24098 * include/grub/trig.h: New file.
24099 * lib/trig.c: Likewise.
24100 * maintainance/gentrigtables.py: Likewise.
24101 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
24102 (trig_mod_SOURCES): New variable.
24103 (trig_mod_CFLAGS): Likewise.
24104 (trig_mod_LDFLAGS): Likewise.
24105
5562834e
VS
241062010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24107
24108 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
24109 disk devices.
24110
4f8528fc
VS
241112010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24112
24113 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
24114 error.
24115
2b4068e9
VS
241162010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24117
24118 * util/hostdisk.c (open_device): Don't use partition device when reading
24119 before the partition.
24120 (grub_util_biosdisk_read): Don't read from partition and before the
24121 partition in single operation.
24122 (grub_util_biosdisk_write): Don't write to partition and before the
24123 partition in single operation.
24124
399f6e4d
TL
241252010-02-03 Torsten Landschoff <torsten@debian.org>
24126
24127 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24128 last sectors.
24129
996649b0
VS
241302010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24131
24132 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
24133 CDROM reads.
24134 (grub_biosdisk_write): Refuse to write to CDROM.
24135
3b205d4d
VS
241362010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
24137
24138 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
24139
61e89d9d
VS
241402010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
24141
24142 * font/font.c (find_glyph): Check that bmp_idx is available before
24143 using it.
24144 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
24145 with (font == NULL).
24146
bf7fcba2
CS
241472010-01-28 Christian Schmitt <chris@ilovelinux.de>
24148
24149 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
24150
f45d2663
BC
241512010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
24152
24153 * include/grub/script_sh.h (sourcecode): Add const qualifier.
24154 * util/grub-script-check.c (getline): Fix empty lines case.
24155
ec1444e6
RM
241562010-01-28 Robert Millan <rmh.grub@aybabtu.com>
24157
24158 * Makefile.in (check): Exit with fail status when one of the tests
24159 fails.
24160 * tests/example_functional_test.c (example_test): Fix reversed assert.
24161 * tests/example_unit_test.c (example_test): Likewise.
24162
2e1cb9bb
CW
241632010-01-28 Colin Watson <cjwatson@ubuntu.com>
24164
24165 * util/grub.d/10_linux.in: This script does not use any of the
24166 contents of gettext.sh, only the external command `gettext', so stop
24167 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
24168 the same prefix as GRUB.)
24169 * util/grub.d/10_kfreebsd.in: Likewise.
24170
63533ab0
VS
241712010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24172
24173 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
24174 of the line.
24175
989e1f93
VS
241762010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24177
24178 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24179 last sectors.
24180
e709ebe2
VS
241812010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24182
24183 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
24184 having a 4KiB and not 32KiB buffer size.
24185
27dea7ed
RM
241862010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24187
24188 * util/hostfs.c: Include `<errno.h>'.
24189 (grub_hostfs_read): Handle errors from fseeko() and fread().
24190
67667b9c
RM
241912010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24192
24193 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
24194 loop when using read hooks on files whose size isn't sector-aligned.
24195
c294d9d8
RM
241962010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24197
24198 Remove unused parameter.
24199
24200 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
24201 (grub_iso9660_open): Remove initialization of `data->length'.
24202
af75a9f1
RM
242032010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24204
24205 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
24206 memleak conditions.
24207
254e2ce5 242082010-01-27 Carles Pina i Estany <carles@pina.cat>
24209
24210 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
24211 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
24212
b510928c 242132010-01-26 Carles Pina i Estany <carles@pina.cat>
24214
24215 * util/bin2h.c (usage): Fix warning (space after backslash).
24216
aa2f9dd2 242172010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 24218
24219 * font/font.c: Include `grub/fontformat.h.
24220 Remove font file format constants.
24221 (grub_font_load): Use the new macros.
24222 * include/grub/fontformat.h: New file.
24223 * util/grub-mkfont.c: Include `grub/fontformat.c'.
24224 (write_font_pf2): Use the new macros.
24225
94e7e712
RM
242262010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24227
24228 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
24229 does.
24230
3973a59a
RM
242312010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24232
24233 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
24234
24235 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
24236 (_start): Macroify `0x7F'.
24237
24238 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
24239 (make_install_device): Use "(pxe)" as fallback prefix when booting
24240 via PXE.
24241
42e0cba3
GS
242422010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
24243
24244 * configure.ac: Reset LIBS after check for libgcc symbols.
24245
847effd8
CW
242462010-01-25 Colin Watson <cjwatson@ubuntu.com>
24247
24248 * util/hostdisk.c (open_device): Add trailing newline to debug
24249 message.
24250
ea4a7e35
GS
242512010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
24252
24253 * configure.ac: Check for `limits.h'.
24254 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
24255
67951a53
RM
242562010-01-24 Robert Millan <rmh.grub@aybabtu.com>
24257
24258 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
24259 capitalize error strings.
24260
c273d4ce
ST
242612010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
24262
24263 * util/grub.d/10_hurd.in: Add a recovery mode.
24264
69be5b74
VS
242652010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
24266
24267 * configure.ac: Check for libgcc symbols with -nostdlib.
24268
fc9e5810
BC
242692010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
24270
24271 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
24272
4b358c0a
VS
242732010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24274
24275 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
24276 stack since heap may be unavailable at that point.
24277 (grub_ofconsole_gotoxy): Likewise.
24278
454fcd1c
VS
242792010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24280
24281 * configure.ac: Check for _restgpr_14_x.
24282 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
24283 and _savegpr_* prototypes.
24284
566863ca
RM
242852010-01-22 Robert Millan <rmh.grub@aybabtu.com>
24286
24287 Use generic grub_reboot() for i386-efi.
24288
24289 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
24290 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
24291 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
24292
bf86e59a
VS
242932010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24294
24295 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
24296 presence of "prefix" variable as it breaks when normal.mod is
24297 embedded.
24298
d645e0f8
VS
242992010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24300
24301 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
24302 stack since heap is unavailable at that point.
24303
f9ab2e25
VS
243042010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24305
24306 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
24307 (grub_freebsd_bootinfo): Rewritten.
24308 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
24309
01fc7054
VS
243102010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24311
24312 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
24313
caab4fd6
RM
243142010-01-21 Robert Millan <rmh.grub@aybabtu.com>
24315
24316 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
24317 domain now.
24318
67eb1427
FZ
243192010-01-20 Felix Zielcke <fzielcke@z-51.de>
24320
24321 * util/misc.c (make_system_path_relative_to_its_root): Change the work
24322 around for handling "/" to the correct fix. Fix a memory leak. Use
24323 xstrdup instead of strdup.
24324
a9ed4ff3
VS
243252010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24326
24327 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
24328
243292010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
24330
24331 Optimise glyph lookup by Basic Multilingual Plane lookup array.
24332
24333 * font/font.c (struct grub_font): New member 'bmp_idx'.
24334 (font_init): Initialise 'bmp_idx'.
24335 (load_font_index): Fill 'bmp_idx'.
24336 (find_glyph): Make inline. Use bmp_idx for BMP characters.
24337
48209f4f
VS
243382010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24339
24340 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
24341 unnecessary calls.
24342
9f0a4bb7
VS
243432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24344
24345 Move context handling out of the kernel.
24346
24347 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
24348 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
24349 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
24350 * conf/i386-efi.rmk: Likewise.
24351 * conf/i386-ieee1275.rmk: Likewise.
24352 * conf/i386-pc.rmk: Likewise.
24353 * conf/powerpc-ieee1275.rmk: Likewise.
24354 * conf/sparc64-ieee1275.rmk: Likewise.
24355 * conf/x86_64-efi.rmk: Likewise.
24356 * include/grub/env.h: Include grub/menu.h.
24357 (grub_env_var_type): Removed.
24358 (grub_env_var): Replaced field 'type' with 'global'.
24359 (grub_env_find): New prototype.
24360 (grub_env_context_open): Remove EXPORT_FUNC.
24361 (grub_env_context_close): Likewise.
24362 (grub_env_export): Likewise.
24363 (grub_env_set_data_slot): Removed.
24364 (grub_env_get_data_slot): Likewise.
24365 (grub_env_unset_data_slot): Likewise.
24366 (grub_env_unset_menu): New prototype.
24367 (grub_env_set_menu): Likewise.
24368 (grub_env_get_menu): Likewise.
24369 * include/grub/env_private.h: New file.
24370 * include/grub/normal.h (grub_context_init): New prototype.
24371 (grub_context_fini): Likewise.
24372 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
24373 * normal/context.c (grub_cmd_export): ... to here.
24374 * kern/env.c: Include env_private.h.
24375 (HASHSZ): Moved to include/grub/env_private.h.
24376 (grub_env_context): Likewise.
24377 (grub_env_sorted_var): Likewise.
24378 (current_context): Renamed from this ...
24379 (grub_current_context): ...to this. 'static' removed. All users updated.
24380 (grub_env_find): Removed 'static'.
24381 (grub_env_context_open): Moved to normal/context.c.
24382 (grub_env_context_close): Likewise.
24383 (grub_env_export): Likewise.
24384 (mangle_data_slot_name): Removed.
24385 (grub_env_set_data_slot): Likewise.
24386 (grub_env_get_data_slot): Likewise.
24387 (grub_env_unset_data_slot): Likewise.
24388 * kern/main.c (grub_set_root_dev): Don't export root.
24389 It will be done later.
24390 (grub_main): Don't export prefix.
24391 It will be done later.
24392 * normal/context.c: New file.
24393 * normal/main.c (free_menu): Use grub_env_unset_menu.
24394 (grub_normal_add_menu_entry): Use grub_env_get_menu.
24395 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
24396 (GRUB_MOD_INIT(normal)): Call grub_context_init.
24397 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
24398
8dd35b8c
VS
243992010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24400
24401 setpci support.
24402
24403 * commands/setpci.c: New file.
24404 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
24405 (setpci_mod_SOURCES): New variable.
24406 (setpci_mod_CFLAGS): Likewise.
24407 (setpci_mod_LDFLAGS): Likewise.
24408
449193d5
VS
244092010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24410
24411 Byte-addressable PCI configuration space.
24412
24413 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24414 dword address.
24415 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24416 GRUB_PCI_REG_CACHELINE.
24417 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24418 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24419 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24420 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24421 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24422 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24423 grub_pci_make_address.
24424 (lock_rom_area): Likewise.
24425 * commands/lspci.c (grub_lspci_iter): Use macroses
24426 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24427 of grub_pci_make_address.
24428 * disk/ata.c (grub_ata_pciinit): Likewise.
24429 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24430 (GRUB_PCI_REG_VENDOR): Likewise.
24431 (GRUB_PCI_REG_DEVICE): Likewise.
24432 (GRUB_PCI_REG_COMMAND): Likewise.
24433 (GRUB_PCI_REG_STATUS): Likewise.
24434 (GRUB_PCI_REG_REVISION): Likewise.
24435 (GRUB_PCI_REG_CLASS): Likewise.
24436 (GRUB_PCI_REG_CACHELINE): Likewise.
24437 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24438 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24439 (GRUB_PCI_REG_BIST): Likewise.
24440 (GRUB_PCI_REG_ADDRESSES): Likewise.
24441 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24442 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24443 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24444 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24445 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24446 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24447 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24448 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24449 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24450 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24451 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24452 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24453 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24454 (GRUB_PCI_REG_MIN_GNT): Likewise.
24455 (GRUB_PCI_REG_MAX_LAT): Likewise.
24456 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24457 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24458 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 24459 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
24460 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24461 space.
24462
96d73208
RM
244632010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24464
24465 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24466 can be reliably determined to be supported.
24467
d4484482
RM
244682010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24469
24470 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24471 that VESA is supported.
24472 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24473 supported.
24474
00308ecf
VS
244752010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24476
24477 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24478
f66924a4
RM
244792010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24480
24481 * util/misc.c (make_system_path_relative_to_its_root): Work around
24482 special-casing of "/", as previous incarnation of this routine did.
24483
cbca0ada
VS
244842010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24485
24486 Fix any-emu compilation.
24487
24488 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24489 * grub_bin2h_SOURCES: New variable.
24490
34a66d99
RM
244912010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24492
24493 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24494
94fabf58
RM
244952010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24496
24497 * util/grub.d/00_header.in: Fix handling of locale_dir.
24498
02cf98ca
VS
244992010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24500
24501 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24502 as possible unifont location (Gentoo).
24503 Reported by: Alexander Brüning
24504
327dbcd7
VS
245052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24506
24507 Don't try to generate lists for kernel.img.
24508
24509 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24510 (pkglib_MODULES): Remove kernel.img.
24511 (kernel_img_EXPORTS): Removed.
24512 (kernel_img_RELOCATABLE): New variable.
24513 * conf/x86_64-efi.rmk: Likewise.
24514 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24515
ca467290
VS
245162010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24517
24518 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24519 grub_xasprintf or grub_snprintf.
24520 (grub_vsprintf): Likewise.
24521 (grub_snprintf): New proto.
24522 (grub_vsnprintf): Likewise.
24523 (grub_xasprintf): Likewise.
24524 (grub_xvasprintf): Likewise.
24525 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24526 (grub_sprintf): Removed.
24527 (grub_vsnprintf): New function.
24528 (grub_snprintf): Likewise.
24529 (grub_xvasprintf): Likewise.
24530 (grub_xasprintf): Likewise.
24531 (grub_vsprintf): Renamed to ...
24532 (grub_vsnprintf_real): ...this. New argument max_len.
24533
aca655fd
BC
245342010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24535
24536 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24537 fix grub-script-check warning.
24538
7ee92c32
VS
245392010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24540
24541 * include/grub/font.h (grub_font_load): Fix prototype.
24542
f80927ca
VS
245432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24544
24545 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24546
119c50ea
VS
245472010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24548
24549 * include/grub/x86_64/at_keyboard.h: New file.
24550
47d5f3c1
VS
245512010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24552
24553 * loader/mips/linux.c: Include missing grub/i18n.h.
24554
55ff5266
RM
245552009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24556
24557 * normal/menu.c (notify_execution_failure): Clarify error message.
24558
c893cc87
RM
245592009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24560
24561 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24562 return value (and revert all return statements). Update users.
24563
917dd370
CW
245642010-01-20 Dan Merillat <debian@dan.merillat.org>
24565
24566 * kern/device.c (grub_device_iterate): Allocate new part_ent
24567 structure based on sizeof (*p) rather than sizeof (p->next), to
24568 account for structure padding.
24569
24570 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24571 disk is NULL, which might happen for LVM physical volumes with no
24572 LVM signature.
24573
d4a4ee57
RM
245742009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24575
24576 * loader/mips/linux.c (grub_cmd_initrd)
24577 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24578
245792009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24580
24581 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24582 (grub_video_video_init, grub_video_bitmap_init)
24583 (grub_font_manager_init, grub_term_gfxterm_init)
24584 (grub_at_keyboard_init): New extern declarations.
24585 (grub_machine_init): Initialize gfxterm and at_keyboard.
24586
24587 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24588
24589 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24590 `gfxterm.mod' into core image.
24591
24592 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24593 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24594 (kernel_img_FORMAT): Copy to ...
24595
24596 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24597 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24598 (kernel_img_FORMAT): ... here, and ...
24599
24600 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24601 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24602 (kernel_img_FORMAT): ... here.
24603
24604 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24605 and input (at_keyboard) terminals in kernel.
24606 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24607
24608 (pkglib_MODULES): Remove `pci.mod'.
24609 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24610 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24611 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24612 (at_keyboard_mod_LDFLAGS): Remove variables.
24613
246142010-01-11 Felix Zielcke <fzielcke@z-51.de>
24615
24616 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24617
246182009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24619
24620 * include/grub/mips/libgcc.h: Only export symbols for functions
24621 that libgcc provides.
24622
246232009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24624
24625 MIPS support.
24626
24627 * bus/bonito.c: New file.
24628 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24629 GRUB_PCI_NUM_DEVICES.
24630 * term/i386/pc/serial.c: Move to ...
24631 * term/serial.c: ... here. All users updated.
24632 * util/i386/pc/grub-mkimage.c: Move to ...
24633 * util/grub-mkrawimage.c: ... here. All users updated.
24634 * term/i386/pc/at_keyboard.c: Move to ...
24635 * term/at_keyboard.c: ... here. All users updated.
24636 * conf/mips-qemu-mips.rmk: New file.
24637 * conf/mips-yeeloong.rmk: Likewise.
24638 * conf/mips.rmk: Likewise.
24639 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24640 mipsel-qemu-mips.
24641 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24642 to port addresses.
24643 (grub_ata_pciinit): Support CS5536.
24644 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24645 * font/font_cmd.c (loadfont_command): Open file before passing it to
24646 grub_font_load.
24647 (pseudo_file_read): New function.
24648 (pseudo_file_close): Likewise.
24649 (pseudo_fs): New structure.
24650 (load_font_module): New function.
24651 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24652 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24653 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24654 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24655 * include/grub/i386/at_keyboard.h: Split into ...
24656 * include/grub/at_keyboard.h: ... this ...
24657 * include/grub/i386/at_keyboard.h: ... and this.
24658 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24659 New prototype.
24660 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24661 updated.
24662 (grub_elf64_size): Likewise.
24663 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24664 filename.
24665 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24666 * include/grub/i386/coreboot/serial.h: Rewritten.
24667 * include/grub/i386/ieee1275/serial.h: Include
24668 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24669 * include/grub/i386/pc/serial.h: Moved from here ...
24670 * include/grub/serial.h: ... to here. All users updated.
24671 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24672 (GRUB_PCI_NUM_BUS): Likewise.
24673 (GRUB_PCI_NUM_DEVICES): Likewise.
24674 (grub_pci_device_map_range): Add missing volatile keyword.
24675 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24676 * include/grub/mips/at_keyboard.h: New file.
24677 * include/grub/mips/cache.h: Likewise.
24678 * include/grub/mips/io.h: Likewise.
24679 * include/grub/mips/kernel.h: Likewise.
24680 * include/grub/mips/libgcc.h: Likewise.
24681 * include/grub/mips/pci.h: Likewise.
24682 * include/grub/mips/qemu-mips/boot.h: Likewise.
24683 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24684 * include/grub/mips/qemu-mips/loader.h: Likewise.
24685 * include/grub/mips/qemu-mips/memory.h: Likewise.
24686 * include/grub/mips/qemu-mips/serial.h: Likewise.
24687 * include/grub/mips/qemu-mips/time.h: Likewise.
24688 * include/grub/mips/relocator.h: Likewise.
24689 * include/grub/mips/time.h: Likewise.
24690 * include/grub/mips/types.h: Likewise.
24691 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24692 * include/grub/mips/yeeloong/boot.h: Likewise.
24693 * include/grub/mips/yeeloong/kernel.h: Likewise.
24694 * include/grub/mips/yeeloong/loader.h: Likewise.
24695 * include/grub/mips/yeeloong/memory.h: Likewise.
24696 * include/grub/mips/yeeloong/pci.h: Likewise.
24697 * include/grub/mips/yeeloong/serial.h: Likewise.
24698 * include/grub/mips/yeeloong/time.h: Likewise.
24699 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24700 * kern/elf.c (grub_elf32_size): New parameter. All users
24701 updated.
24702 (grub_elf64_size): Likewise.
24703 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24704 Load modules before saying "Welcome to GRUB!".
24705 Call grub_refresh after saying "Welcome to GRUB!".
24706 * kern/mips/cache.S: New file.
24707 * kern/mips/cache_flush.S: Likewise.
24708 * kern/mips/dl.c: Likewise.
24709 * kern/mips/init.c: Likewise.
24710 * kern/mips/qemu-mips/init.c: Likewise.
24711 * kern/mips/startup.S: Likewise.
24712 * kern/mips/yeeloong/init.c: Likewise.
24713 * kern/term.c (grub_putcode): Handle NULL terminal.
24714 (grub_getcharwidth): Likewise.
24715 (grub_getkey): Likewise.
24716 (grub_checkkey): Likewise.
24717 (grub_getkeystatus): Likewise.
24718 (grub_getxy): Likewise.
24719 (grub_getwh): Likewise.
24720 (grub_gotoxy): Likewise.
24721 (grub_cls): Likewise.
24722 (grub_setcolorstate): Likewise.
24723 (grub_setcolor): Likewise.
24724 (grub_getcolor): Likewise.
24725 (grub_refresh): Likewise.
24726 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24727 (write_jump): Add hatch nop.
24728 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24729 * lib/mips/setjmp.S: New file.
24730 * loader/mips/linux.c: Likewise.
24731 * term/i386/pc/at_keyboard.c: Move from here ...
24732 * term/at_keyboard.c: ... to here.
24733 * term/i386/pc/serial.c: Moved from here ...
24734 * term/serial.c: ... to here. All users updated.
24735 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24736 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24737 (serial_translate_key_sequence): Avoid deadlock.
24738 (grub_serial_getkey): Handle backspace.
24739 (grub_serial_putchar): Fix newline handling.
24740 * util/i386/pc/grub-mkimage.c: Move from here ...
24741 * util/grub-mkrawimage.c: ... to here. All users updated.
24742 (generate_image): New parameters 'font_path' and 'format'.
24743 Support embedding font.
24744 Use grub_host_to_target* instead of grub_cpu_to_le*.
24745 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24746 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24747 (options): New option "--font".
24748 (usage): Likewise.
24749 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24750 (main): Handle "--font".
24751 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24752 (grub_virtual_screen_setup): Set bg_color_display.
24753 (redraw_screen_rect): Use bg_color_display instead of incorrect
24754 bg_color.
24755 (grub_gfxterm_cls): Likewise.
24756 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24757 Support embedding config file.
24758 (add_segments): Likewise.
24759 (options): New option "--config".
24760 (main): Handle "--config".
24761 * video/sm712.c: New file.
24762
25c2b5b3
RM
247632010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24764
24765 Fix parallel builds.
24766
24767 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24768 font.c depend on ascii.h).
24769
247702010-01-12 Carles Pina i Estany <carles@pina.cat>
24771
24772 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24773
247742010-01-11 Carles Pina i Estany <carles@pina.cat>
24775
24776 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24777 By default: disabled.
24778 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24779 parameter.
24780
247812010-01-10 Carles Pina i Estany <carles@pina.cat>
24782
24783 * font/font.c: Update copyright years.
24784 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24785
247862010-01-10 Carles Pina i Estany <carles@pina.cat>
24787
24788 * font/font.c: Include `ascii.h'.
24789 (ASCII_BITMAP_SIZE): New macro.
24790 (ascii_font_glyph): Define.
24791 (ascii_glyph_lookup): New function.
24792 (grub_font_get_string_width): Change comment. If glyph not found, use
24793 ascii_glyph_lookup.
24794 (grub_font_get_glyph_with_fallback): If glyph not available returns
24795 ascii_glyph_lookup.
24796 * util/grub-mkfont.c (file_formats): New enum.
24797 (options): Add `ascii-bitmaps' new option.
24798 (usage): Add `asii-bitmaps' new option.
24799 (write_font_ascii_bitmap): New function.
24800 (write_font): Rename to ...
24801 (write_font_p2): ... this. Remove print_glyphs call.
24802 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24803 used. Call print_glyphs.
24804 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24805
248062010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24807
24808 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24809 (grub_bin2h_SOURCES): New variable.
24810 * util/bin2h.c: New file.
24811
915fc1b8
VS
248122010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24813
24814 * include/multiboot.h: Resynced with spec.
24815 * include/multiboot2.h: Likewise.
24816 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24817 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24818
9444b678
RM
248192010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24820
24821 * include/grub/term.h (grub_term_register_input,
24822 grub_term_register_output): Check return of terminal init()
24823 routines, and abort if errors are raised.
24824
24825 * commands/terminal.c: Update copyright year.
24826
cba98e8d
RM
248272010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24828
24829 * commands/terminal.c (grub_cmd_terminal_input)
24830 (grub_cmd_terminal_output): Check return of terminal init()
24831 routines, and abort if errors are raised.
24832
6f7db5d6
VS
248332010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24834
24835 * include/grub/i386/bsd.h: Fix include pathes.
24836
262bff8d
VS
248372010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24838
24839 Add missing *BSD copyright headers.
24840
24841 * include/grub/aout.h: Add BSD licence.
24842 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24843 * include/grub/i386/freebsd_linker.h: ... here,
24844 * include/grub/i386/freebsd_reboot.h: ... here,
24845 * include/grub/i386/netbsd_bootinfo.h: ... here,
24846 * include/grub/i386/netbsd_reboot.h: ... here,
24847 * include/grub/i386/openbsd_bootarg.h: ... here,
24848 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24849 licence to each file.
24850
b2cab848
RM
248512010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24852
24853 * acinclude.m4: Remove `nop' assembly instruction; it's not
24854 implemented by all architectures.
24855
2cb6be4b
RM
248562010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24857
24858 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24859 ELILO. This is no longer necessary.
24860
a2eaee15
BC
248612010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24862
24863 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24864
24865 * util/grub-script-check.c: grub-script-check tool.
24866 * conf/common.rmk: Make rules for grub-script-check.
24867
88d17012
RM
248682010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24869
24870 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24871 spotting it back in 2008. Shame on me for forgetting he did.
24872
24873 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24874
8040619d
RM
248752010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24876
24877 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24878 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24879 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24880 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24881 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24882 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24883
a0c2a0f6
RM
248842010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24885
24886 * include/grub/test.h: Add license header.
24887 * tests/example_functional_test.c: Likewise.
24888 * tests/example_unit_test.c: Likewise.
24889 * tests/lib/functional_test.c: Likewise.
24890 * tests/lib/test.c: Likewise.
24891 * tests/lib/unit_test.c: Likewise.
24892
b0b13907
VS
248932010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24894
24895 Use flag-based instead of hook-based video mode selection and "auto"
24896 keyword.
24897
24898 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24899 (grub_video_set_mode): Changed prototype. All users updated.
24900 (grub_video_check_mode_flag): New inline function.
24901 * video/video.c (parse_modespec): New function.
24902 (grub_video_set_mode): Parse flags and keywords.
24903
ea379330 249042010-01-17 Carles Pina i Estany <carles@pina.cat>
24905
24906 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24907 fprintf call.
24908
e15c215e
FZ
249092010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24910
24911 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24912
409ae1c9 249132010-01-16 Carles Pina i Estany <carles@pina.cat>
24914
24915 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24916 string.
24917 * util/grub-emu.c (usage): Likewise.
24918 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24919 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24920 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24921 * util/i386/pc/grub-setup.c (usage): Likewise.
24922
70a14d3d 249232010-01-16 Carles Pina i Estany <carles@pina.cat>
24924
24925 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24926 the message.
24927 (grub_util_info): Likewise.
24928 (grub_util_error): Likewise.
24929 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24930 and/or new lines in `grub_util_warna', `grub_util_info',
24931 `grub_util_error' calls.
24932 * util/getroot.c: Likewise.
24933 * util/grub-editenv.c: Likewise.
24934 * util/grub-emu.c: Likewise.
24935 * util/grub-fstest.c: Likewise.
24936 * util/grub-mkdevicemap.c: Likewise.
24937 * util/grub-mkfont.c: Likewise.
24938 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24939 * util/grub-mkrelpath.c: Likewise.
24940 * util/grub-pe2elf.c: Likewise.
24941 * util/grub-probe.c: Likewise.
24942 * util/hostdisk.c: Likewise.
24943 * util/i386/efi/grub-mkimage.c: Likewise.
24944 * util/i386/pc/grub-mkimage.c: Likewise.
24945 * util/i386/pc/grub-setup.c: Likewise.
24946 * util/ieee1275/ofpath.c: Likewise.
24947 * util/mkisofs/eltorito.c: Likewise.
24948 * util/mkisofs/rock.c: Likewise.
24949 * util/mkisofs/write.c: Likewise.
24950 * util/raid.c: Likewise.
24951 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24952 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24953
a0b766fc
VS
249542010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24955
24956 Enable multiboot on non-pc.
24957
24958 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24959 multiboot.mod and multiboot2.mod to ...
24960 * conf/i386.rmk (pkglib_MODULES): ... here.
24961 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24962 Moved to ...
24963 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24964 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24965 Moved to ...
24966 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24967 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24968 Moved to ...
24969 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24970 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24971 Moved to ...
24972 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24973 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24974 relocator.mod.
24975 (ata_mod_SOURCES): Removed.
24976 (ata_mod_CFLAGS): Likewise.
24977 (ata_mod_LDFLAGS): Likewise.
24978 (relocator_mod_SOURCES): Removed.
24979 (relocator_mod_CFLAGS): Likewise.
24980 (relocator_mod_ASFLAGS): Likewise.
24981 (relocator_mod_LDFLAGS): Likewise.
24982 Include i386.mk.
24983 * include/grub/x86_64/multiboot.h: New file.
24984 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24985 Terminate EFI.
24986
884ade56
VS
249872010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24988
24989 Video multiboot support.
24990
24991 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24992 New prototype.
24993 * include/multiboot.h: Resynced with multiboot specification.
24994 * include/multiboot2.h: Likewise.
24995 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24996 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24997 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24998 (HAS_VGA_TEXT): Likewise.
24999 (accepts_video): New variable.
25000 (grub_multiboot_set_accepts_video): New function.
25001 (grub_multiboot_get_mbi_size): Account for video structures.
25002 (set_video_mode): New function.
25003 (retrieve_video_parameters): Likewise.
25004 (grub_multiboot_make_mbi): Fill video fields.
25005
0d90e8a6
VS
250062010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25007
25008 Video driver ids.
25009
25010 * include/grub/video.h (grub_video_driver_id): New type.
25011 (grub_video_adapter): New member 'id'. All users updated.
25012 (grub_video_get_driver_id): New proto.
25013 * video/video.c (grub_video_get_driver_id): New function.
25014
5c71db1b 250152010-01-14 Carles Pina i Estany <carles@pina.cat>
25016
25017 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
25018 `var=val'.
25019
cca15b52 250202010-01-14 Carles Pina i Estany <carles@pina.cat>
25021
25022 * normal/cmdline.c (print_completion): Gettextizze.
25023
c586fbb2 250242001-01-14 Carles Pina i Estany <carles@pina.cat>
25025
25026 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
25027
ba2f6848 250282010-01-14 Carles Pina i Estany <carles@pina.cat>
25029
25030 * gettext/gettext.c (grub_gettext_translate): Push and pop
25031 grub_errno.
25032 (grub_gettext_delete_list): Change comment style.
25033 * kern/err.c (grub_error): Gettextizze.
25034 (grub_fatal): Gettextizze.
25035
0a46429a
RM
250362010-01-14 Robert Millan <rmh.grub@aybabtu.com>
25037
25038 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
25039 (grub_linux16_real_boot): ... this.
25040 * kern/i386/loader.S: Likewise.
25041 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
25042 (grub_linux16_boot): New function. Switches to text mode and calls
25043 grub_linux16_real_boot().
25044
25045 * loader/i386/bsd.c: Include `<grub/video.h>'.
25046 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
25047 text mode before calling grub_unix_real_boot().
25048
25049 * loader/i386/multiboot.c: Include `<grub/video.h>'.
25050 (grub_multiboot_boot): Switch to text mode before calling
25051 grub_relocator32_boot().
25052
25053 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
25054 (grub_chainloader_boot): Switch to text mode before calling
25055 grub_chainloader_real_boot().
25056
d6f93a66
RM
250572010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
250582010-01-05 Colin Watson <cjwatson@ubuntu.com>
25059
25060 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
25061 non-empty value.
25062
250632010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
250642010-01-05 Colin Watson <cjwatson@ubuntu.com>
25065
25066 * util/grub.d/00_header.in: Define a "savedefault" function for use
25067 in menu entries.
25068 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
25069
250702010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
250712010-01-05 Colin Watson <cjwatson@ubuntu.com>
25072
25073 * util/grub-mkconfig_lib.in (save_default_entry): Only set
25074 saved_entry if boot_once is unset.
25075 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
25076 previous saved entry (i.e. grub-reboot).
25077
250782009-12-08 Colin Watson <cjwatson@ubuntu.com>
25079
25080 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
25081
250822009-12-08 Colin Watson <cjwatson@ubuntu.com>
25083
25084 * util/grub.d/00_header.in: Use `set var=val' rather than plain
25085 `var=val'.
25086 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
25087
250882009-12-08 Colin Watson <cjwatson@ubuntu.com>
25089
25090 * util/grub-reboot.in: Fix --version output.
25091 * util/grub-set-default.in: Likewise.
25092
250932009-12-08 Colin Watson <cjwatson@ubuntu.com>
25094
25095 * util/grub.d/00_header.in: Silently ignore zero-sized environment
25096 blocks.
25097
250982009-12-08 Colin Watson <cjwatson@ubuntu.com>
25099
25100 * util/grub.d/00_header.in: Quote the value assigned to `default',
25101 in case it contains spaces.
25102
251032009-12-08 Colin Watson <cjwatson@ubuntu.com>
25104
25105 * util/grub.d/30_os-prober.in: Fix merge error that moved a
25106 `save_default_entry' call from the macosx case to the linux case.
25107
251082009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
251092009-10-25 Colin Watson <cjwatson@ubuntu.com>
25110
25111 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
25112 in `chosen' environment variable.
25113 * normal/menu_text.c (get_entry_number): Check if the variable
25114 matches the title of a menu entry.
25115 (run_menu): Pass menu to get_entry_number.
25116
25117 * util/grub-reboot.in: New file.
25118 * util/grub-set-default.in: New file.
25119 * conf/common.rmk (grub-reboot): New utility.
25120 (grub-set-default): New utility.
25121
25122 * util/grub-mkconfig_lib.in (save_default_entry): New function.
25123 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
25124 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
25125 move it to `saved_entry' for the next boot. Load environment on
25126 initialisation.
25127 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
25128 * util/grub.d/10_hurd.in: Likewise.
25129 * util/grub.d/10_linux.in (linux_entry): Likewise.
25130 * util/grub.d/10_windows.in: Likewise.
25131 * util/grub.d/30_os-prober.in: Likewise.
25132
25133 * util/grub-install.in: Create environment block.
25134 * util/i386/efi/grub-install.in: Likewise.
25135 * util/ieee1275/grub-install.in: Likewise.
25136 * util/sparc64/ieee1275/grub-install.in: Likewise.
25137
0934d184
BC
251382010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
25139
25140 Unit testing framework for GRUB.
25141
25142 * Makefile.in: Test framework build rules for 'make check'.
25143 * conf/tests.rmk: Build rules for individual tests and framework.
25144
25145 * include/grub/test.h: Header file for whitebox tests.
25146 * tests/lib/functional_test.c: Framework support for whitebox
25147 functional tests.
25148 * tests/lib/test.c: Common whitebox testing code for unit and
25149 functional tests.
25150 * tests/lib/unit_test.c: Framework support for whitebox unit
25151 tests.
25152
25153 * tests/util/grub-shell-tester.in: Support utility for grub-script
25154 tests.
25155 * tests/util/grub-shell.in: Utility to execute grub-script
25156 commands in a Qemu instance.
25157
25158 * tests/example_functional_test.c: Example whitebox functional
25159 test.
25160 * tests/example_grub_script_test.in: Example grub-script test.
25161 * tests/example_scripted_test.in: Example scripted test.
25162 * tests/example_unit_test.c: Example whitebox unit test.
25163
9c4ffeeb
VS
251642010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
25165
25166 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
25167 Add loader/i386/multiboot_mbi.c.
25168 (multiboot2_mod_SOURCES): Likewise.
25169 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
25170 (multiboot2_mod_SOURCES): Likewise.
25171 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
25172 (grub_multiboot_make_mbi): Likewise.
25173 (grub_multiboot_free_mbi): Likewise.
25174 (grub_multiboot_init_mbi): Likewise.
25175 (grub_multiboot_add_module): Likewise.
25176 (grub_multiboot_set_bootdev): Likewise.
25177 * loader/i386/multiboot.c (mbi): Removed.
25178 (mbi_dest): Likewise.
25179 (alloc_mbi): New variable.
25180 (grub_multiboot_payload_size): Removed. All users updated.
25181 (grub_multiboot_pure_size): New variable.
25182 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
25183 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
25184 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
25185 (grub_fill_multiboot_mmap): Likewise.
25186 (grub_multiboot_get_bootdev): Likewise.
25187 (grub_multiboot): Use multiboot_mbi functions.
25188 * loader/i386/multiboot_mbi.c: New file.
25189
17383dfe
VS
251902010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25191
25192 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
25193 it would result in module crash.
25194
c1f28820
VS
251952010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25196
25197 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
25198 (grub_ofconsole_getwh): Split to ...
25199 (grub_ofconsole_getwh): ... this.
25200 (grub_ofconsole_dimensions): ...and this.
25201 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
25202
58655a16
RM
252032010-01-13 Robert Millan <rmh.grub@aybabtu.com>
25204
25205 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
25206
10891398
VS
252072010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25208
25209 * loader/i386/pc/multiboot2.c: Removed stalled file.
25210
0b8a223c
VS
252112010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25212
25213 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
25214 Reported by: Grégoire Sutre
25215
92ab12b0
RM
252162010-01-11 Robert Millan <rmh.grub@aybabtu.com>
25217
25218 * util/misc.c (canonicalize_file_name): New function.
25219 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
25220 instead of realpath().
25221
a788afb6
CW
252222010-01-11 Colin Watson <cjwatson@ubuntu.com>
25223
25224 * util/grub-install.in (usage): Clarify meaning of --root-directory,
25225 and make it clearer that it's optional. Based on confusion
25226 witnessed on IRC.
25227
ffa8e3d2
VS
252282010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25229
25230 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
25231 in premature implicit newline.
25232
e9060a9d
VS
252332010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25234
25235 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
25236 which resulted in garbled command line at the end of screen.
25237
f0d0c0b7
RM
252382010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25239
25240 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
25241 initialization with similar approach as with other Linux loaders.
25242
0e60bae7
RM
252432010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25244
25245 Fix i386-ieee1275 build.
25246
25247 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
25248 and grub_term_height() for video_{width,height} initialization.
25249
252502010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
25251
25252 Fix grub-emu build.
25253
25254 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
25255
cdb3f378
RM
252562010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
252572010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25258
25259 Support for multiple terminals.
25260
25261 * Makefile.in (pkglib_DATA): terminal.lst.
25262 (terminal.lst): New target.
25263 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
25264 (GRUB_MOD_INIT(handler)): Likewise.
25265 (GRUB_MOD_FINI(handler)): Likewise.
25266 * commands/help.c (grub_cmd_help): Handle multiple terminals.
25267 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
25268 * commands/sleep.c (do_print): Use grub_term_restore_pos.
25269 (grub_cmd_sleep): Use grub_term_save_pos.
25270 * commands/terminal.c: New file.
25271 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
25272 commands/terminal.c and lib/charset.c.
25273 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
25274 (pkglib_MODULES): Add terminal.mod.
25275 (terminal_mod_SOURCES): New variable.
25276 (terminal_mod_CFLAGS): Likewise.
25277 (terminal_mod_LDFLAGS): Likewise.
25278 * genhandlerlist.sh: Don't handle terminals.
25279 * genmk.rb: Generate terminal-*.lst.
25280 * genterminallist.sh: New file.
25281 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
25282 (grub_is_valid_utf8): Likewise.
25283 (grub_utf8_to_ucs4_alloc): Likewise.
25284 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
25285 (grub_menu_register_viewer): Changed argument.
25286 (grub_menu_try_text): New proto.
25287 (grub_gfxmenu_try_hook): New declaration.
25288 * include/grub/normal.h (grub_normal_exit_level): New declaration.
25289 (grub_menu_init_page): Additional argument term.
25290 (grub_normal_init_page): Likewise.
25291 (grub_cmdline_get): Arguments simplified.
25292 (grub_utf8_to_ucs4_alloc): Removed.
25293 (grub_print_ucs4): Additional argument term.
25294 (grub_getstringwidth): Likewise.
25295 (grub_print_message_indented): Likewise.
25296 (grub_menu_text_register_instances): New proto.
25297 (grub_show_menu): Likewise.
25298 (read_terminal_list): Likewise.
25299 (grub_set_more): Likewise.
25300 * include/grub/parser.h: Include handler.h.
25301 * include/grub/reader.h: Rewritten.
25302 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
25303 (GRUB_TERM_WIDTH): Changed to function.
25304 (GRUB_TERM_HEIGHT): Likewise.
25305 (GRUB_TERM_BORDER_WIDTH): Likewise.
25306 (GRUB_TERM_BORDER_HEIGHT): Likewise.
25307 (GRUB_TERM_NUM_ENTRIES): Likewise.
25308 (GRUB_TERM_ENTRY_WIDTH): Likewise.
25309 (GRUB_TERM_CURSOR_X): Likewise.
25310 (grub_term_input_class): Likewise.
25311 (grub_term_output_class): Likewise.
25312 (grub_term_outputs_disabled): New declaration.
25313 (grub_term_inputs_disabled): Likewise.
25314 (grub_term_outputs): Likewise.
25315 (grub_term_inputs): Likewise.
25316 (grub_term_register_input): Rewritten.
25317 (grub_term_register_output): Likewise.
25318 (grub_term_unregister_input): Likewise.
25319 (grub_term_unregister_output): Likewise.
25320 (FOR_ACTIVE_TERM_INPUTS): New macro.
25321 (FOR_DISABLED_TERM_INPUTS): Likewise.
25322 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
25323 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
25324 * include/grub/terminfo.h: Add oterm argument to all protypes.
25325 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
25326 Use grub_rescue_run.
25327 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
25328 All users updated.
25329 * kern/reader.c: Removed. All users updated.
25330 * kern/rescue_reader.c (grub_rescue_init): Removed.
25331 (grub_rescue_reader): Likewise.
25332 (grub_register_rescue_reader): Likewise.
25333 (grub_rescue_run): New function based on kern/reader.c.
25334 * kern/term.c: Adapted for multiterm.
25335 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
25336 (grub_is_valid_utf8): Likewise.
25337 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
25338 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
25339 right terminal.
25340 * loader/i386/linux.c (grub_linux_boot): Likewise.
25341 * normal/auth.c (grub_username_get): New function.
25342 (grub_auth_check_authentication): Use grub_username_get.
25343 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
25344 * normal/color.c: Adapt for multiterm.
25345 * normal/main.c (read_config_file): Don't use grub_reader_loop.
25346 (grub_normal_init_page): Additional argument term.
25347 (read_lists): Call read_terminal_lists.
25348 (grub_enter_normal_mode): Call grub_cmdline_run.
25349 Handle grub_normal_exit_level.
25350 (grub_cmd_normal): Make reentrant.
25351 (grub_cmd_normal_exit): New function.
25352 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
25353 * normal/menu.c: Adapt for multiterm.
25354 * normal/menu_entry.c: Likewise.
25355 * normal/menu_text.c: Likewise.
25356 * normal/menu_viewer.c: Removed. All users updated.
25357 * normal/term.c: New file.
25358 * util/console.c: Change order of includes to workaround a bug in
25359 ncurses headers.
25360 * term/terminfo.c: New argument oterm on all exported functions.
25361 All users updated.
25362 * util/grub-editenv.c (grub_term_input_class): Removed.
25363 (grub_term_output_class): Likewise.
25364
1a064917
RM
253652010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25366
25367 Make loader output a bit more user-friendly.
25368
25369 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
25370 is being loaded. Likewise for the Hurd.
25371
25372 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
25373 that kernel of FreeBSD ${version} is being loaded.
25374
25375 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
25376 grub_dprintf().
25377 (grub_cmd_initrd): Likewise.
25378 * util/grub.d/10_linux.in (linux_entry): Print message indicating
25379 that Linux ${version} is being loaded. Likewise for initrd.
25380
5ce0a83a 253812010-01-09 Carles Pina i Estany <carles@pina.cat>
25382
25383 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
25384
809bbfeb 253852010-01-08 Carles Pina i Estany <carles@pina.cat>
25386
25387 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
25388 (GRUB_MOD_INIT): Gettextizze.
25389 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
25390 (GRUB_MOD_INIT): Gettextizze.
25391 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
25392 (grub_cmd_linux): Capitalise Linux.
25393 (GRUB_MOD_INIT): Gettextizze.
25394 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
25395 (grub_cmd_linux): Capitalise Linux.
25396 (GRUB_MOD_INIT): Gettextizze.
25397 * loader/i386/linux.c: Include `<grub/i18n.h>'.
25398 (grub_cmd_linux): Capitalise Linux.
25399 (GRUB_MOD_INIT): Gettextizze.
25400 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
25401 (GRUB_MOD_INIT): Gettextizze.
25402 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
25403 (grub_cmd_linux): Capitalise Linux.
25404 (GRUB_MOD_INIT): Gettextizze.
25405 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
25406 (grub_cpu_xnu_init): Gettextizze.
25407 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
25408 (GRUB_MOD_INIT): Gettextizze.
25409 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
25410 (GRUB_MOD_INIT): Gettextizze.
25411 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
25412 (grub_linux_load64): Capitalise Linux.
25413 (GRUB_MOD_INIT): Gettextizze.
25414 * loader/xnu.c: Include `<grub/i18n.h>'.
25415 (GRUB_MOD_INIT): Gettextizze.
25416 * po/POTFILES: Add `loader/efi/appleloader.c',
25417 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25418 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25419 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25420 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25421 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25422 and `loader/xnu.c'.
25423
b394b2ca
RM
254242010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25425
25426 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25427
254282010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
25429
25430 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25431 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25432 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25433
bc8b32b3
RM
254342010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25435
25436 Reset Multiboot 2 support. New loader implements the draft in
25437 /branches/multiboot2 and shares as much code as possible with the
25438 production Multiboot 1 implementation.
25439
25440 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25441 * loader/multiboot2.c: Likewise.
25442 * loader/i386/multiboot_helper.S: Likewise.
25443 * include/multiboot2.h: Replace with latest version from the draft
25444 in /branches/multiboot2.
25445
25446 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25447 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25448 and `loader/multiboot2.c'.
25449 (pkglib_MODULES): Add `multiboot2.mod'.
25450 (multiboot2_mod_SOURCES): New variable.
25451 (multiboot2_mod_LDFLAGS): Likewise.
25452 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25453
25454 * conf/i386-pc.rmk: Likewise.
25455
25456 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25457 (multiboot_mod_SOURCES): Remove variable.
25458 (multiboot_mod_LDFLAGS): Likewise.
25459 (multiboot_mod_CFLAGS): Likewise.
25460
25461 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25462 `<multiboot2.h>' instead of `<multiboot.h>'.
25463 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25464 (MULTIBOOT_HEADER_MAGIC): New macros.
25465
25466 * loader/multiboot_loader.c (module_version_status): Remove variable.
25467 (find_multi_boot2_header): Remove function.
25468 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25469 logic. Always check for the Multiboot version we're compiling for.
25470 (grub_cmd_module_loader): Likewise.
25471 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25472 command instead of `multiboot'.
25473
5d2c52b8
RM
254742010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25475
25476 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25477 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25478 all users.
25479
53108d92
RM
254802010-01-07 Robert Millan <rmh.grub@aybabtu.com>
254812010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25482
25483 Fix breakage introduced with previous commit.
25484
25485 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25486 commands.
25487 * normal/handler.c (read_handler_list): Revert part of previous commit
25488 affecting this file.
25489 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25490 (grub_normal_execute): ... here.
25491
e2e936b2
RM
254922010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25493
25494 Merge prefix-redefinition-fix branch.
25495
25496 * normal/autofs.c (read_fs_list): Make function capable of being
25497 run multiple times, gracefuly replacing the previous data
25498 structures.
25499 * normal/dyncmd.c (read_command_list): Likewise.
25500 * normal/handler.c (read_handler_list): Likewise.
25501 * normal/main.c (read_lists): New function. Calls all the
25502 list reading functions.
25503 (grub_normal_execute): Use read_lists() instead of calling all
25504 list reading functions explicitly. Register read_lists() as a
25505 variable hook attached to ${prefix}.
25506
607a3701
VS
255072010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25508
25509 Merge crypto branch.
25510
25511 * Makefile.in (pkglib_DATA): Add crypto.lst.
25512 (crypto.lst): New target.
25513 * commands/hashsum.c: New file.
25514 * commands/password.c (check_password): Use grub_crypto_memcmp.
25515 * commands/password_pbkdf2.c: New file.
25516 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25517 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25518 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25519 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25520 -I$(srcdir)/lib/libgcrypt_wrap.
25521 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25522 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25523 password_pbkdf2.mod.
25524 (crypto_mod_SOURCES): New variable.
25525 (crypto_mod_CFLAGS): Likewise.
25526 (crypto_mod_LDFLAGS): Likewise.
25527 (hashsum_mod_SOURCES): New variable.
25528 (hashsum_mod_CFLAGS): Likewise.
25529 (hashsum_mod_LDFLAGS): Likewise.
25530 (pbkdf2_mod_SOURCES): New variable.
25531 (pbkdf2_mod_CFLAGS): Likewise.
25532 (pbkdf2_mod_LDFLAGS): Likewise.
25533 (password_pbkdf2_mod_SOURCES): New variable.
25534 (password_pbkdf2_mod_CFLAGS): Likewise.
25535 (password_pbkdf2_mod_LDFLAGS): Likewise.
25536 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25537 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25538 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25539 Include conf/gcry.rmk.
25540 * include/grub/auth.h: Rewritten.
25541 * include/grub/crypto.h: New file.
25542 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25543 * include/grub/normal.h (read_crypto_list): New prototype.
25544 * lib/crypto.c: New file.
25545 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25546 * lib/pbkdf2.c: Likewise.
25547 * normal/auth.c (grub_auth_strcmp): Removed.
25548 (grub_iswordseparator): Likewise.
25549 (grub_auth_strword): Likewise.
25550 (is_authenticated): Use grub_strword.
25551 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25552 and grub_strword. Pass entered password to authentication callback.
25553 * normal/crypto.c: New file.
25554 * normal/main.c: Call read_crypto_list.
25555 * util/grub-mkpasswd-pbkdf2.c: New file.
25556 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25557
42841caa
VS
255582010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25559
25560 Fix descent and ascent calculation.
25561
25562 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25563 (options): New option "asce".
25564 (usage): Likewise.
25565 (add_char): Ignore invalid glyphs for descent calculation.
25566 Calculate ascent from actual content.
25567 (print_glyphs): Use 'asce'.
25568 (write_font): Likewise. Allow ascent override.
25569 (main): Handle "asce" option.
25570
e7730de7 255712010-01-06 Carles Pina i Estany <carles@pina.cat>
25572
25573 * kern/err.c: Include `<grub/i18n.h>'.
25574 (grub_print_error): Add full stop. Gettextizze.
25575 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25576 (grub_bsd_load_elf): Capitalise ELF.
25577 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25578 (grub_cmd_freebsd_module): Likewise.
25579 (grub_cmd_freebsd_module_elf): Likewise.
25580 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25581
40e3a41f 255822010-01-06 Carles Pina i Estany <carles@pina.cat>
25583
25584 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25585 * commands/search_file.c (HELP_MESSAGE): New macro.
25586 * commands/search_label.c (HELP_MESSAGE): Likewise.
25587 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25588 * po/POTFILES: Add `commands/search_file.c',
25589 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25590 `commands/search.c'.
25591
83507e68
RM
255922010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25593
25594 * config.rpath: Update from Gnulib.
25595
465c787b
YB
255962010-01-05 Yves Blusseau <blusseau@zetam.org>
25597
25598 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25599
6581dd3a
YB
256002010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25601
25602 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25603
3bff18c5
CW
256042010-01-05 Colin Watson <cjwatson@ubuntu.com>
25605
25606 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25607 arguments to fread so that we get a return value in bytes, rather
25608 than something that will normally be rounded down to 0.
25609 Adjust error handling to avoid producing garbage when size_t is not
25610 the same size as long long.
25611
a1368118
CW
256122010-01-05 Colin Watson <cjwatson@ubuntu.com>
25613
25614 * util/mkisofs/write.c (padblock_write): Check return value of
25615 fread.
25616
7c302978
RM
256172010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25618
25619 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25620 floppy images now.
25621
25622 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25623
e33ace06
RM
256242010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25625
25626 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25627 instead of manual alignment.
25628 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25629 verbose). Avoid attempts to read past end of the device
25630 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25631 but GRUB_DISK_CACHE_SIZE may exceed that).
25632
4b856776
RM
256332010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25634
25635 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25636 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25637 it to upper layer.
25638
52c2d97f
VS
256392010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25640
25641 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25642 New constant.
25643 (grub_efi_piwg_device_path): New structure
25644 (grub_efi_piwg_device_path_t): New type.
25645 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25646 (devpath_1): Transform to a structure. All users updated.
25647 (devpath_2): Likewise.
25648 (devpath_3): Likewise.
25649 (devpath_4): Likewise.
25650 (devpath_5): Likewise.
25651
98ff6a54
VS
256522010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25653
25654 * loader/efi/appleloader.c: Restored. Update all users.
25655
3a73dcb6
RM
256562010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25657
25658 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25659
25660 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25661 (struct boot_blocklist): Move from here ...
25662 * include/grub/i386/pc/boot.h [ASM_FILE]
25663 (struct grub_boot_blocklist): ... to here. Update all users.
25664 (setup): Only initialize `start' member of `first_block'
25665 structure. Add assert() calls to verify the other members.
25666
25667 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25668 (generate_image): Fix broken blocklist length initialization.
25669 Add assert() call to verify blocklist `segment' field.
25670
ab0eeb0c
RM
256712010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25672
25673 * loader/efi/appleloader.c: Remove. Update all users.
25674
58bc8bd5
RM
256752010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25676
25677 * boot/i386/pc/boot.S: Update copyright year.
25678 * boot/i386/pc/cdboot.S: Likewise.
25679 * boot/i386/pc/diskboot.S: Likewise.
25680 * boot/i386/pc/lnxboot.S: Likewise.
25681 * boot/i386/pc/pxeboot.S: Likewise.
25682 * bus/pci.c: Likewise.
25683 * commands/cmp.c: Likewise.
25684 * commands/help.c: Likewise.
25685 * commands/hexdump.c: Likewise.
25686 * commands/i386/pc/halt.c: Likewise.
25687 * commands/i386/pc/play.c: Likewise.
25688 * commands/i386/pc/vbeinfo.c: Likewise.
25689 * commands/ls.c: Likewise.
25690 * commands/test.c: Likewise.
25691 * disk/dmraid_nvidia.c: Likewise.
25692 * disk/i386/pc/biosdisk.c: Likewise.
25693 * disk/ieee1275/nand.c: Likewise.
25694 * disk/ieee1275/ofdisk.c: Likewise.
25695 * disk/lvm.c: Likewise.
25696 * disk/raid.c: Likewise.
25697 * disk/raid6_recover.c: Likewise.
25698 * disk/scsi.c: Likewise.
25699 * fs/affs.c: Likewise.
25700 * fs/cpio.c: Likewise.
25701 * fs/ext2.c: Likewise.
25702 * fs/hfs.c: Likewise.
25703 * fs/iso9660.c: Likewise.
25704 * fs/ntfs.c: Likewise.
25705 * fs/sfs.c: Likewise.
25706 * fs/udf.c: Likewise.
25707 * fs/ufs.c: Likewise.
25708 * fs/xfs.c: Likewise.
25709 * gencmdlist.sh: Likewise.
25710 * genmk.rb: Likewise.
25711 * include/grub/disk.h: Likewise.
25712 * include/grub/efi/api.h: Likewise.
25713 * include/grub/efi/efi.h: Likewise.
25714 * include/grub/efi/pe32.h: Likewise.
25715 * include/grub/elf.h: Likewise.
25716 * include/grub/fs.h: Likewise.
25717 * include/grub/i386/at_keyboard.h: Likewise.
25718 * include/grub/i386/pc/memory.h: Likewise.
25719 * include/grub/i386/pc/vbe.h: Likewise.
25720 * include/grub/i386/pci.h: Likewise.
25721 * include/grub/i386/tsc.h: Likewise.
25722 * include/grub/ieee1275/ieee1275.h: Likewise.
25723 * include/grub/ntfs.h: Likewise.
25724 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25725 * include/grub/sparc64/libgcc.h: Likewise.
25726 * include/grub/symbol.h: Likewise.
25727 * include/grub/types.h: Likewise.
25728 * include/multiboot2.h: Likewise.
25729 * io/gzio.c: Likewise.
25730 * kern/device.c: Likewise.
25731 * kern/disk.c: Likewise.
25732 * kern/efi/efi.c: Likewise.
25733 * kern/efi/mm.c: Likewise.
25734 * kern/elf.c: Likewise.
25735 * kern/file.c: Likewise.
25736 * kern/i386/dl.c: Likewise.
25737 * kern/i386/pc/init.c: Likewise.
25738 * kern/i386/pc/startup.S: Likewise.
25739 * kern/ieee1275/ieee1275.c: Likewise.
25740 * kern/ieee1275/init.c: Likewise.
25741 * kern/main.c: Likewise.
25742 * kern/mm.c: Likewise.
25743 * kern/powerpc/dl.c: Likewise.
25744 * kern/sparc64/dl.c: Likewise.
25745 * kern/x86_64/dl.c: Likewise.
25746 * lib/hexdump.c: Likewise.
25747 * loader/efi/appleloader.c: Likewise.
25748 * loader/i386/ieee1275/linux.c: Likewise.
25749 * loader/i386/pc/chainloader.c: Likewise.
25750 * loader/i386/pc/linux.c: Likewise.
25751 * loader/i386/pc/multiboot2.c: Likewise.
25752 * loader/ieee1275/multiboot2.c: Likewise.
25753 * loader/multiboot2.c: Likewise.
25754 * loader/multiboot_loader.c: Likewise.
25755 * loader/powerpc/ieee1275/linux.c: Likewise.
25756 * normal/completion.c: Likewise.
25757 * normal/menu_entry.c: Likewise.
25758 * partmap/apple.c: Likewise.
25759 * util/grub.d/10_hurd.in: Likewise.
25760 * util/hostfs.c: Likewise.
25761 * video/readers/png.c: Likewise.
25762
e2d70b5c
CW
257632010-01-03 Colin Watson <cjwatson@ubuntu.com>
25764
25765 * include/grub/misc.h (GNUC_PREREQ): New macro.
25766 (ATTRIBUTE_ERROR): New macro.
25767 * include/grub/list.h (grub_bad_type_cast_real): Use
25768 ATTRIBUTE_ERROR.
25769
a173283f 257702010-01-03 Carles Pina i Estany <carles@pina.cat>
25771
25772 * normal/menu_text.c (print_message): Change messages.
25773
7fa7ff74 257742010-01-03 Carles Pina i Estany <carles@pina.cat>
25775
25776 * normal/menu_entry.c (store_completion): Gettextizze.
25777
136d24f6 257782010-01-03 Carles Pina i Estany <carles@pina.cat>
25779
25780 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25781
f936862e 257822010-01-03 Carles Pina i Estany <carles@pina.cat>
25783
25784 * po/POTFILES: Sort correctly.
25785
29c44ad1 257862010-01-03 Carles Pina i Estany <carles@pina.cat>
25787
25788 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25789 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25790 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25791 full stop.
25792 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25793 summary. Gettextizze the strings.
25794 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25795 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25796 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25797 full stop.
25798 (GRUB_MOD_INIT): Remove command name from summary.
25799 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25800 summary.
25801 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25802 * term/i386/pc/serial.c (options): Add full stops.
25803 (GRUB_MOD_INIT): Remove command name from the summary.
25804
77a79592 258052010-01-03 Carles Pina i Estany <carles@pina.cat>
25806
25807 * commands/acpi.c: Gettextizze help strings and/or options. Include
25808 `grub/i18n.h' if needed.
25809 * commands/blocklist.c: Likewise.
25810 * commands/boot.c: Likewise.
25811 * commands/cat.c: Likewise.
25812 * commands/cmp.c: Likewise.
25813 * commands/configfile.c: Likewise.
25814 * commands/crc.c: Likewise.
25815 * commands/date.c: Likewise.
25816 * commands/echo.c: Likewise.
25817 * commands/efi/fixvideo.c: Likewise.
25818 * commands/efi/loadbios.c: Likewise.
25819 * commands/gptsync.c: Likewise.
25820 * commands/halt.c: Likewise.
25821 * commands/handler.c: Likewise.
25822 * commands/hdparm.c: Likewise.
25823 * commands/hexdump.c: Likewise.
25824 * commands/i386/cpuid.c: Likewise.
25825 * commands/i386/pc/drivemap.c: Likewise.
25826 * commands/i386/pc/halt.c: Likewise.
25827 * commands/i386/pc/pxecmd.c: Likewise.
25828 * commands/i386/pc/vbeinfo.c: Likewise.
25829 * commands/i386/pc/vbetest.c: Likewise.
25830 * commands/ieee1275/suspend.c: Likewise.
25831 * commands/keystatus.c: Likewise.
25832 * commands/loadenv.c: Likewise.
25833 * commands/ls.c: Likewise.
25834 * commands/lsmmap.c: Likewise.
25835 * commands/lspci.c: Likewise.
25836 * commands/memrw.c: Likewise.
25837 * commands/minicmd.c: Likewise.
25838 * commands/parttool.c: Likewise.
25839 * commands/password.c: Likewise.
25840 * commands/probe.c: Likewise.
25841 * commands/read.c: Likewise.
25842 * commands/reboot.c: Likewise.
25843 * commands/search.c: Likewise.
25844 * commands/sleep.c: Likewise.
25845 * commands/test.c: Likewise.
25846 * commands/true.c: Likewise.
25847 * commands/usbtest.c: Likewise.
25848 * commands/videotest.c: Likewise.
25849 * commands/xnu_uuid.c: Likewise.
25850 * disk/loopback.c: Likewise.
25851 * hello/hello.c: Likewise.
25852 * loader/i386/bsd.c: Likewise.
25853 * term/i386/pc/serial.c: Likewise.
25854 * po/POTFILES: Add new files.
25855
da8d5c53
CW
258562010-01-02 Colin Watson <cjwatson@ubuntu.com>
25857
25858 * term/i386/pc/at_keyboard.c
25859 (keyboard_controller_wait_untill_ready): Rename to ...
25860 (keyboard_controller_wait_until_ready): ... this. Update all users.
25861
33937904 258622010-01-01 Carles Pina i Estany <carles@pina.cat>
25863
25864 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25865 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25866 string using string width.
25867 * normal/menu_text.c (grub_print_message_indented): Use
25868 grub_print_spaces and not print_spaces.
25869 (print_timeout): Likewise.
25870 (print_spaces): Move to...
25871 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25872
3fd3b8d8
RM
258732010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25874
25875 Import from Gnulib.
25876
25877 * gnulib/getdelim.c: New file.
25878 * gnulib/getline.c: Likewise.
25879
33433555
VS
258802009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25881
25882 * include/grub/list.h (grub_assert_fail): Removed.
25883 (grub_bad_type_cast_real): New function.
25884 (grub_bad_type_cast): New macro.
25885 (GRUB_AS_LIST): Use grub_bad_type_cast.
25886 (GRUB_AS_LIST_P): Likewise.
e44721e8 25887 (GRUB_AS_NAMED_LIST): Likewise.
33433555 25888 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 25889 (GRUB_AS_PRIO_LIST): Likewise.
33433555 25890 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 25891 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 25892
f5a51306
VS
258932009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25894
25895 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25896 Fix syntax error.
25897
90d1e879
RM
258982009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25899
25900 * configure.ac: Check for TARGET_CFLAGS initialization before we
25901 initialize it ourselves (sigh).
25902 Move a few modifications to TARGET_CFLAGS to be unconditional
25903 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25904 eh_frame)
25905
25906 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25907 * term/i386/pc/at_keyboard.c
25908 (keyboard_controller_wait_untill_ready): Likewise.
25909 (keyboard_controller_led): Rename `led_status' paramter to avoid
25910 name conflict.
25911
465b5a81 259122009-12-28 Carles Pina i Estany <carles@pina.cat>
25913
25914 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25915 quotes.
25916
c181849b
VS
259172009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25918
25919 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25920
9c8739a4
VS
259212009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25922
25923 * normal/menu_text.c (grub_print_message_indented): Prevent
25924 past-the-end-of-array dereference.
25925
3e74249c
VS
259262009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25927
25928 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25929 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25930
64fd18ed 259312009-12-27 Carles Pina i Estany <carles@pina.cat>
25932
25933 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25934 * normal/main.c (grub_normal_read_line): Remove a space from the
25935 default prompt.
25936
714af9b9 259372009-12-27 Carles Pina i Estany <carles@pina.cat>
25938
25939 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25940 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25941 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25942 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25943 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25944 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25945 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25946
82f3e412 259472009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 25948
25949 * video/readers/jpeg.c (cmd): Declare.
25950 (grub_cmd_jpegtest): Use `grub_command_t' type.
25951 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25952 Assign to `cmd'.
25953 (GRUB_MOD_FINI): Use `cmd' to unregister.
25954 * video/readers/png.c (cmd): Declare.
25955 (grub_cmd_pngtest): Use `grub_command_t' type.
25956 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25957 Assign to `cmd'.
25958 (GRUB_MOD_FINI): Use `cmd' to unregister.
25959 * video/readers/tga.c (cmd): Declare.
25960 (grub_cmd_tgatest): Use `grub_command_t' type.
25961 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25962 Assign to `cmd'.
25963 (GRUB_MOD_FINI): Use `cmd' to unregister.
25964
82f3e412 259652009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 25966
25967 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25968 stops.
25969 * kern/corecmd.c (grub_register_core_commands): Likewise.
25970 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25971 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25972 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25973 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25974 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25975 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25976 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25977 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25978 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25979 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25980 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25981 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25982 * normal/handler.c (insert_handler): Likewise.
25983 * normal/main.c (GRUB_MOD_INIT): Likewise.
25984 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25985
fdcdbb66 259862009-12-26 Carles Pina i Estany <carles@pina.cat>
25987
25988 * commands/help.c (grub_cmd_help): Print the command name before the
25989 summary.
25990 (GRUB_MOD_INIT): Remove command name from the summary.
25991 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 25992 string as summary.
fdcdbb66 25993 * lib/arg.c (find_long): Print the command name before the summary.
25994 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25995 summary.
25996 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25997 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25998 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25999 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
26000 * commands/crc.c (GRUB_MOD_INIT): Likewise.
26001 * commands/date.c (GRUB_MOD_INIT): Likewise.
26002 * commands/echo.c (GRUB_MOD_INIT): Likewise.
26003 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
26004 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26005 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26006 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
26007 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
26008 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
26009 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
26010 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26011 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
26012 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
26013 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
26014 * commands/ls.c (GRUB_MOD_INIT): Likewise.
26015 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26016 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26017 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26018 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
26019 * commands/password.c (GRUB_MOD_INIT): Likewise.
26020 * commands/probe.c (GRUB_MOD_INIT): Likewise.
26021 * commands/read.c (GRUB_MOD_INIT): Likewise.
26022 * commands/search.c (GRUB_MOD_INIT): Likewise.
26023 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
26024 * commands/test.c (GRUB_MOD_INIT): Likewise.
26025 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
26026 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
26027 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
26028 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
26029 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
26030 * lib/arg.c (GRUB_MOD_INIT): Likewise.
26031 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
26032 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
26033 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26034 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
26035 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
26036 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
26037 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
26038 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
26039
9c288be2
VS
260402009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26041
26042 Use search command for preliminar UUID search.
26043
26044 * commands/search.c: Split into ...
26045 * commands/search_wrap.c: ...this
26046 * commands/search.c: ...and this.
26047 * commands/search_file.c: New file.
26048 * commands/search_label.c: New file.
26049 * commands/search_uuid.c: New file.
26050 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
26051 Add commands/search_wrap.c, commands/search_file.c,
26052 commands/search_label.c and commands/search_uuid.c.
26053 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
26054 (search_mod_SOURCES): Set to commands/search_wrap.c.
26055 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
26056 search_label.mod.
26057 (search_fs_file_mod_SOURCES): New variable.
26058 (search_fs_file_mod_CFLAGS): Likewise.
26059 (search_fs_file_mod_LDFLAGS): Likewise.
26060 (search_label_mod_SOURCES): Likewise.
26061 (search_label_mod_CFLAGS): Likewise.
26062 (search_label_mod_LDFLAGS): Likewise.
26063 (search_fs_uuid_mod_SOURCES): New variable.
26064 (search_fs_uuid_mod_CFLAGS): Likewise.
26065 (search_fs_uuid_mod_LDFLAGS): Likewise.
26066 (fs_file_mod_SOURCES): Removed.
26067 (fs_file_mod_CFLAGS): Likewise.
26068 (fs_file_mod_LDFLAGS): Likewise.
26069 (fs_uuid_mod_SOURCES): Removed.
26070 (fs_uuid_mod_CFLAGS): Likewise.
26071 (fs_uuid_mod_LDFLAGS): Likewise.
26072 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
26073 Set to util/grub-install.in.
26074 * disk/fs_file.c: Removed.
26075 * disk/fs_uuid.c: Likewise.
26076 * include/grub/search.h: New file.
26077 * util/grub-install.in: Handle sparc64.
26078 Create and use load.cfg.
26079 * util/sparc64/ieee1275/grub-install.in: Removed.
26080
db943399
VS
260812009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26082
26083 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
26084 Ignore return status if CF is cleared.
26085 (grub_biosdisk_get_diskinfo_standard): Likewise.
26086
3fdae612
RM
260872009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26088
26089 * term/i386/pc/at_keyboard.c
26090 (keyboard_controller_wait_untill_ready): New function.
26091 (grub_keyboard_controller_write, grub_keyboard_controller_read)
26092 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
26093 for keyboard polling, rather than duplicate the same loop. This
26094 saves a few bytes in code size.
26095
7ebaa2b4
VS
260962009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26097
26098 Support for (pxe[:server[:gateway]]) syntax and
26099 use environment variable for PXE.
26100
26101 * commands/i386/pc/pxecmd.c (options): Removed.
26102 (print_ip): Removed.
26103 (grub_cmd_pxe): Removed
26104 (grub_cmd_pxe_unload): New function.
26105 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
26106 (grub_pxe_your_ip): Made static.
26107 (grub_pxe_default_server_ip): Likewise.
26108 (grub_pxe_default_gateway_ip): Likewise.
26109 (grub_pxe_blksize): Likewise.
26110 (parse_ip): New function.
26111 (grub_pxe_open): Support server and gateway specification.
26112 (grub_pxe_close): Free disk->data.
26113 (grub_pxefs_open): Use disk->data.
26114 (grub_pxefs_read): Likewise.
26115 (grub_env_write_readonly): New function.
26116 (set_mac_env): Likewise.
26117 (set_env_limn_ro): Likewise.
26118 (parse_dhcp_vendor): Likewise.
26119 (grub_pxe_detect): Set the environment variables.
26120 (set_ip_env): New function.
26121 (write_ip_env): Likewise.
26122 (grub_env_write_pxe_default_server): Likewise.
26123 (grub_env_write_pxe_default_gateway): Likewise.
26124 (grub_env_write_pxe_blocksize): Likewise.
26125 (GRUB_MOD_INIT(pxe)): Set environment variables.
26126 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
26127 (grub_pxe_mac_addr_t): ... this. All users updated.
26128 (grub_pxe_your_ip): Removed.
26129 (grub_pxe_server_ip): Likewise.
26130 (grub_pxe_gateway_ip): Likewise.
26131 (grub_pxe_blksize): Likewise.
26132
ec5f98ab 261332009-12-25 Carles Pina i Estany <carles@pina.cat>
26134
26135 * commands/help.c: Include `<grub/i18n.h>'.
26136 (grub_cmd_help): Gettextizze.
26137 (GRUB_MOD_INIT): Likewise.
26138 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
26139 (GRUB_MOD_INIT): Gettextizze.
26140 * commands/search.c: Include `<grub/i18n.h>'.
26141 (options): Gettextizze.
26142 (GRUB_MOD_INIT): Gettextizze.
26143 * lib/arg.c: Include `<grub/i18n.h>'.
26144 (help_options): Gettextizze.
26145 (find_long): Likewise.
26146 (grub_arg_show_help): Likewise.
26147 * normal/dyncmd.c: Include `<grub/i18n.h>'.
26148 (read_command_list): Gettextizze.
26149 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 26150 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 26151
22815526
RM
261522009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26153
26154 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
26155 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
26156 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
26157 (led_status): New variable.
26158 (keyboard_controller_led): New function.
26159 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
26160 update led status for caps lock, num lock and scroll lock.
26161
0ad46fd7
FZ
261622009-12-25 Felix Zielcke <fzielcke@z-51.de>
26163
26164 * util/hostdisk.c (open_device): Fix a comment.
26165
d0e158c2
RM
261662009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26167
26168 * util/grub-install.in (host_os): New variable.
26169 * util/i386/efi/grub-install.in (host_os): Likewise.
26170
401c0ad6
RM
261712009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26172
26173 * util/mkisofs/write.c (padblock_write): Abort when given an
26174 excedingly large embed image, instead of silently truncating it.
26175
d14d3370
RM
261762009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26177
26178 * include/multiboot.h: Indentation fixes.
26179
eeed10b4
RM
261802009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26181
26182 * include/multiboot.h (struct multiboot_aout_symbol_table)
26183 (struct multiboot_elf_section_header_table): New structure
26184 declarations (stolen from GRUB Legacy).
26185 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
26186 table information.
26187
26188 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
26189 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
26190 type aliases.
26191
681c70ab
RM
261922009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26193
26194 * include/multiboot.h: Make comments src2texi-friendly.
26195
e4d47d8d
RM
261962009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26197
26198 For consistency with [multiboot]/docs/boot.S.
26199
26200 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
26201 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
26202 (MULTIBOOT_MAGIC2): Rename from this ...
26203 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
26204
a0b70bda
RM
262052009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26206
26207 * include/multiboot.h: Remove `<grub/types.h>'.
26208 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
26209 types. Update all users.
26210
61ba42be 262112009-12-25 Carles Pina i Estany <carles@pina.cat>
26212
26213 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
26214 `couldn't' and `can not' by `cannot'.
26215 * commands/i386/pc/drivemap.c: Likewise.
26216 * disk/ata.c: Likewise.
26217 * disk/ieee1275/nand.c: Likewise.
26218 * fs/affs.c: Likewise.
26219 * fs/fat.c: Likewise.
26220 * fs/hfs.c: Likewise.
26221 * fs/hfsplus.c: Likewise.
26222 * fs/iso9660.c: Likewise.
26223 * fs/jfs.c: Likewise.
26224 * fs/minix.c: Likewise.
26225 * fs/reiserfs.c: Likewise.
26226 * fs/sfs.c: Likewise.
26227 * fs/udf.c: Likewise.
26228 * fs/ufs.c: Likewise.
26229 * fs/xfs.c: Likewise.
26230 * loader/powerpc/ieee1275/linux.c: Likewise.
26231 * loader/sparc64/ieee1275/linux.c: Likewise.
26232 * util/grub-probe.c: Likewise.
26233 * util/misc.c: Likewise.
26234
7fd0baee 262352009-12-24 Carles Pina i Estany <carles@pina.cat>
26236
26237 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
26238 grub_errno calls.
26239 * commands/acpi.c: Likewise.
26240 * commands/blocklist.c: Likewise.
26241 * commands/efi/loadbios.c: Likewise.
26242 * commands/i386/pc/drivemap.c: Likewise.
26243 * commands/loadenv.c: Likewise.
26244 * commands/memrw.c: Likewise.
26245 * commands/password.c: Likewise.
26246 * commands/videotest.c: Likewise.
26247 * disk/ata.c: Likewise.
26248 * disk/ata_pthru.c: Likewise.
26249 * disk/dmraid_nvidia.c: Likewise.
26250 * disk/ieee1275/nand.c: Likewise.
26251 * disk/ieee1275/ofdisk.c: Likewise.
26252 * disk/loopback.c: Likewise.
26253 * disk/lvm.c: Likewise.
26254 * disk/mdraid_linux.c: Likewise.
26255 * disk/raid.c: Likewise.
26256 * disk/raid6_recover.c: Likewise.
26257 * disk/scsi.c: Likewise.
26258 * efiemu/main.c: Likewise.
26259 * efiemu/mm.c: Likewise.
26260 * efiemu/pnvram.c: Likewise.
26261 * efiemu/symbols.c: Likewise.
26262 * font/font.c: Likewise.
26263 * fs/cpio.c: Likewise.
26264 * fs/hfsplus.c: Likewise.
26265 * fs/iso9660.c: Likewise.
26266 * fs/jfs.c: Likewise.
26267 * fs/minix.c: Likewise.
26268 * fs/ntfs.c: Likewise.
26269 * fs/ntfscomp.c: Likewise.
26270 * fs/reiserfs.c: Likewise.
26271 * fs/ufs.c: Likewise.
26272 * fs/xfs.c: Likewise.
26273 * gettext/gettext.c: Likewise.
26274 * include/grub/auth.h: Likewise.
26275 * kern/elf.c: Likewise.
26276 * kern/file.c: Likewise.
26277 * kern/ieee1275/init.c: Likewise.
26278 * kern/ieee1275/mmap.c: Likewise.
26279 * kern/ieee1275/openfw.c: Likewise.
26280 * kern/powerpc/dl.c: Likewise.
26281 * kern/sparc64/dl.c: Likewise.
26282 * lib/arg.c: Likewise.
26283 * loader/i386/bsd.c: Likewise.
26284 * loader/i386/bsdXX.c: Likewise.
26285 * loader/i386/efi/linux.c: Likewise.
26286 * loader/i386/efi/xnu.c: Likewise.
26287 * loader/i386/ieee1275/linux.c: Likewise.
26288 * loader/i386/linux.c: Likewise.
26289 * loader/i386/multiboot.c: Likewise.
26290 * loader/i386/pc/linux.c: Likewise.
26291 * loader/i386/pc/multiboot2.c: Likewise.
26292 * loader/i386/xnu.c: Likewise.
26293 * loader/ieee1275/multiboot2.c: Likewise.
26294 * loader/macho.c: Likewise.
26295 * loader/machoXX.c: Likewise.
26296 * loader/multiboot2.c: Likewise.
26297 * loader/multiboot_loader.c: Likewise.
26298 * loader/powerpc/ieee1275/linux.c: Likewise.
26299 * loader/sparc64/ieee1275/linux.c: Likewise.
26300 * loader/xnu.c: Likewise.
26301 * loader/xnu_resume.c: Likewise.
26302 * mmap/i386/pc/mmap.c: Likewise.
26303 * normal/menu_viewer.c: Likewise.
26304 * partmap/acorn.c: Likewise.
26305 * partmap/amiga.c: Likewise.
26306 * partmap/apple.c: Likewise.
26307 * script/lexer.c: Likewise.
26308 * term/gfxterm.c: Likewise.
26309 * term/i386/pc/serial.c: Likewise.
26310 * term/i386/pc/vga.c: Likewise.
26311 * term/ieee1275/ofconsole.c: Likewise.
26312 * term/terminfo.c: Likewise.
26313 * video/bitmap.c: Likewise.
26314 * video/efi_gop.c: Likewise.
26315 * video/efi_uga.c: Likewise.
26316 * video/fb/video_fb.c: Likewise.
26317 * video/i386/pc/vbe.c: Likewise.
26318 * video/readers/tga.c: Likewise.
26319 * video/video.c: Likewise.
26320
0ad46fd7 263212009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
26322
26323 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
26324 * commands/lspci.c: Likewise.
26325 * commands/probe.c: Likewise.
26326 * commands/xnu_uuid.c: Likewise.
26327 * conf/i386-coreboot.rmk: Likewise.
26328 * conf/i386-efi.rmk: Likewise.
26329 * conf/i386-ieee1275.rmk: Likewise.
26330 * conf/i386-pc.rmk: Likewise.
26331 * conf/powerpc-ieee1275.rmk: Likewise.
26332 * conf/sparc64-ieee1275.rmk: Likewise.
26333 * conf/x86_64-efi.rmk: Likewise.
26334 * fs/i386/pc/pxe.c: Likewise.
26335 * gettext/gettext.c: Likewise.
26336 * include/grub/efi/graphics_output.h: Likewise.
26337 * include/grub/i386/pc/memory.h: Likewise.
26338 * kern/env.c: Likewise.
26339 * kern/i386/qemu/startup.S: Likewise.
26340 * lib/i386/pc/biosnum.c: Likewise.
26341 * lib/i386/relocator.c: Likewise.
26342 * lib/i386/relocator_asm.S: Likewise.
26343 * lib/relocator.c: Likewise.
26344 * loader/i386/bsd.c: Likewise.
26345 * loader/i386/multiboot.c: Likewise.
26346 * loader/i386/pc/chainloader.c: Likewise.
26347 * loader/i386/xnu.c: Likewise.
26348 * loader/xnu.c: Likewise.
26349 * normal/main.c: Likewise.
26350 * normal/menu_text.c: Likewise.
26351 * util/getroot.c: Likewise.
26352 * util/grub-mkconfig_lib.in: Likewise.
26353 * util/grub.d/00_header.in: Likewise.
26354 * util/i386/pc/grub-mkimage.c: Likewise.
26355 * util/mkisofs/eltorito.c: Likewise.
26356 * util/mkisofs/exclude.h: Likewise.
26357 * util/mkisofs/hash.c: Likewise.
26358 * util/mkisofs/iso9660.h: Likewise.
26359 * util/mkisofs/joliet.c: Likewise.
26360 * util/mkisofs/mkisofs.c: Likewise.
26361 * util/mkisofs/mkisofs.h: Likewise.
26362 * util/mkisofs/multi.c: Likewise.
26363 * util/mkisofs/name.c: Likewise.
26364 * util/mkisofs/rock.c: Likewise.
26365 * util/mkisofs/tree.c: Likewise.
26366 * util/mkisofs/write.c: Likewise.
26367 * video/efi_gop.c: Likewise.
26368
009ec743
VS
263692009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
26370
26371 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
26372 size counting.
26373
0ad46fd7 263742009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
26375
26376 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
26377 * genmk.rb (class SCRIPT): Modify the target file instead of source.
26378
d3d30ea0
VS
263792009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26380
26381 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
26382 (GRUB_MOD_INIT(memrw)): Update help line.
26383
a34f5c70
VS
263842009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26385
26386 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
26387 Use grub_extcmd_t. All users updated.
26388 (options): New variable.
26389 (grub_cmd_read): Restructure for readability. Support "-v" option.
26390 (grub_cmd_write): Restructure for readability.
26391
0ad46fd7 263922009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
26393
26394 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
26395
0ad46fd7 263962009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
26397
26398 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
26399 with the actual contents of the correspondending make variable.
26400 * util/grub-mkrescue.in (pkglib_DATA): New variable.
26401 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
26402 specifying `*.lst' and `efiemu??.o'
26403
0ad46fd7 264042009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
26405
26406 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
26407 after function name.
26408 Noticed by Rene Engelhard <rene@debian.org>.
26409
dc77a799
VS
264102009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26411
26412 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
26413 (options): New variable.
26414 (iospace): Likewise.
26415 (grub_lspci_iter): List IO spaces if "-i" was given.
26416 (grub_cmd_lspci): Parse options.
26417 (GRUB_MOD_INIT(lspci)): Use extcmd.
26418 (GRUB_MOD_FINI(lspci)): Likewise.
26419
0ad46fd7 264202009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
26421
26422 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26423 `function' keyword.
26424 Patch by Tony Mancill <tmancill@debian.org>.
26425
b5d5993b
VS
264262009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26427
26428 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26429 (grub_uhci_portstatus): Likewise.
26430 (grub_uhci_portstatus): Add necessary delay.
11d18281 26431 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 26432
941903f2 264332009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 26434
941903f2 26435 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26436 (GRUB_MOD_INIT): Likewise.
26437 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 26438 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26439 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 26440 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26441 (enable_rom_area): Likewise.
26442 (GRUB_MOD_INIT): Likewise.
26443 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26444 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26445 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26446 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26447 * commands/hexdump.c (options): Likewise.
26448 * commands/i386/cpuid.c (options): Likewise.
26449 (GRUB_MOD_INIT): Likewise.
26450 * commands/i386/pc/drivemap.c (options): Likewise.
26451 (GRUB_MOD_INIT): Likewise.
26452 * commands/i386/pc/halt (options): Likewise.
26453 (GRUB_MOD_INIT): Likewise.
26454 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26455 * commands/i386/pc/pxecmd.c (options): Likewise.
26456 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26457 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26458 * commands/keystatus.c (options): Likewise.
26459 (GRUB_MOD_INIT): Likewise.
26460 * commands/loadenv.c (options): Likewise.
26461 * commands/ls.c (options): Likewise.
26462 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26463 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26464 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26465 * commands/parttool.c (helpmsg): Likewise.
26466 * commands/probe.c (options): Likewise.
26467 * commands/read.c (GRUB_MOD_INIT): Likewise.
26468 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26469 * commands/search.c (options): Likewise.
26470 * commands/sleep.c (options): Likewise.
26471 * commands/test.c (GRUB_MOD_INIT): Likewise.
26472 * commands/true.c (GRUB_MOD_INIT): Likewise.
26473 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26474 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26475 * lib/arg.c (help_options): Likewise.
e9bbb4e7 26476 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26477 `$(XGETTEXT)'.
98a50553 26478 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 26479
0ad46fd7 264802009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 26481
ef3c2c3a 26482 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
26483 instead of specifying them explicit.
26484
7922f68b
RM
264852009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26486
26487 * NEWS: Add grub-probe support for GNU/Hurd.
26488
537ce47f
RM
264892009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26490
26491 * NEWS: gettext was added after 1.97.
26492
9b214e3a
RM
264932009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26494
26495 * util/mkisofs/msdos_partition.h: New file (based on
26496 include/grub/msdos_partition.h).
26497 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26498 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26499 (ld_options, main): Recognize --protective-msdos-label.
26500 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26501 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26502 (padblock_write): If `use_protective_msdos_label' is set, patch a
26503 protective DOS-style label in the output image.
26504
26505 * util/grub-mkrescue.in: Use --protective-msdos-label.
26506
e9309813
RM
265072009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26508
26509 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26510 boot.
26511
0ae56929
RM
265122009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26513
26514 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26515 variables.
26516 (ld_options, main): Recognize `--embedded-boot'.
26517 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26518 declarations.
26519 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26520 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26521 (padblock_write): Likewise. Rewrite to support embedded boot image.
26522
26523 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26524 for BIOS-based disk boot instead of only ElTorito.
26525
b15937b1
RM
265262009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26527
26528 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26529 build (not needed for bootstrap).
26530
52cc3ce0
RM
265312009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26532
26533 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26534 from i386-pc build (not needed for bootstrap).
26535 Rewrite a pair of strings.
26536
36f5ff04
RM
265372009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26538
26539 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26540
973c6c85 265412009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
26542
26543 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26544
05d21547
AB
265452009-12-21 Andreas Born <futur.andy@googlemail.com>
26546
26547 * kern/env.c (grub_env_context_open): Mark exported variable for
26548 reexport.
26549
0175d51f
AB
265502009-12-21 Andreas Born <futur.andy@googlemail.com>
26551
26552 * kern/env.c (grub_env_export): Create nonexistent variables before
26553 exporting.
26554
7f39d92f 265552009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 26556
7f39d92f 26557 * include/grub/auth.h: Include `<grub/i18n.h>'.
26558 (GRUB_GET_PASSWORD): Gettextizze string.
26559 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26560 menu_text.c.
26561 (grub_utf8_to_ucs4_alloc): Fix indentation.
26562 (grub_print_ucs4): Likewise.
26563 (grub_getstringwidth): Likewise.
26564 (print_message_indented): New declaration.
26565 * normal/auth.c: Include `<grub/i18n.h>'.
26566 (grub_auth_check_authentication): Gettexttize string.
26567 * normal/cmdline.c: Include `<grub/i18n.h>'.
26568 (grub_cmdline_get): Gettextizze.
26569 * normal/color.c: Include `<grub/i18n.h>'.
26570 (grub_parse_color_name_pair): Gettexttize strings.
26571 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26572 string (use `print_message_indented').
26573 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26574 `include/grub/normal.h'.
26575 (print_message_indented): Renamed to ...
26576 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26577 used in normal/main.c).
26578 (print_message): Use `grub_print_message_indented' instead of
26579 `print_message_indented'.
26580 (print_timeout): Likewise.
26581 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26582 (grub_normal_print_device_info): Gettexttize strings.
26583 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26584
3041d898
VS
265852009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26586
26587 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26588 of arguments. Return number of tokens and not arguments. All users
26589 updated.
26590
de15bf8e
VS
265912009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26592
26593 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26594 non-MSDOS paritions.
26595
e0a6ca52
VS
265962009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26597
26598 * include/grub/types.h (UNUSED): Removed since it conflicts with
26599 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26600 Reported by Grégoire Sutre.
26601
b99518d1 266022009-12-19 Carles Pina i Estany <carles@pina.cat>
26603
26604 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26605 (grub_print_ucs4_alloc): Likewise.
26606 (grub_getstringwidth): Likewise.
26607 * normal/main.c (grub_normal_init_page): Gettextize version string.
26608 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26609 (getstringwidth): Renamed to ...
26610 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26611 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26612 (grub_print_ucs4): Remove `static' qualifer (now used in
26613 normal/main.c).
26614 * po/POTFILES: Add normal/main.c.
26615
bfd5e52b 266162009-12-19 Carles Pina i Estany <carles@pina.cat>
26617
26618 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26619 (print_message_indented): Add `margin_left' and `margin_right'
26620 parameters.
26621 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26622 strings.
26623 (print_timeout): Use `print_message_indented' to print the message.
26624 Deletes `second_stage' parameter.
26625 (run_menu): Update `print_timeout' calls.
26626
5a1ad2b9
VS
266272009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26628
26629 Fix console palette on OpenFirmware.
26630
26631 * term/ieee1275/ofconsole.c (MAX): Removed.
26632 (colors): Redone based on VGA palette.
26633 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26634 colors are supported.
26635 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26636
b045f00a
VS
266372009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26638
26639 Fix potential EfiEmu double prepare.
26640
26641 * efiemu/main.c (prepared): New variable
26642 (grub_efiemu_unload): Set prepare to '0'.
26643 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26644
26645 set_virtual_address_map support.
26646
26647 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26648 prototype.
26649 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26650 prototype.
26651 (grub_efiemu_crc32): Likewise.
26652 (grub_efiemu_crc64): Likewise.
26653 (grub_efiemu_set_virtual_address_map): Likewise.
26654 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26655 New definition.
26656 (grub_autoefi_set_virtual_address_map): Likewise.
26657 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26658 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26659 Restructure flow to accomodate it.
26660 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26661 (grub_efiemu_crc): Recompute CRC32.
26662 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26663 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26664 * efiemu/symbols.c (relocated_handle): New variable.
26665 (grub_efiemu_free_syms): Free relocated_handle.
26666 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26667 (grub_efiemu_write_sym_markers): New function.
26668 (grub_efiemu_set_virtual_address_map): Likewise.
26669
26670 Newer XNU parameters.
26671
26672 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26673 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26674 (grub_xnu_fill_devicetree): New prototype.
26675 (grub_xnu_heap_real_start): New variable.
26676 * loader/xnu.c (get_name_ptr): New function.
26677 (grub_xnu_load_driver): Fill namelen and name.
26678
26679 64-bit xnu support.
26680
26681 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26682 and 'loader/macho64.c'.
26683 * conf/i386-pc.rmk: Likewise.
26684 * conf/x86_64-efi.rmk: Likewise.
26685 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26686 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26687 * include/grub/macho.h (grub_macho_segment64): New structure.
26688 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26689 (grub_macho_size32): ... to this.
26690 (grub_macho32_get_entry_point): Renamed from ...
26691 (grub_macho_get_entry_point32): ... to this.
26692 (grub_macho_contains_macho64): New prototype.
26693 (grub_macho_size64): Likewise.
26694 (grub_macho_get_entry_point64): Likewise.
26695 (grub_macho32_load): Renamed from ...
26696 (grub_macho_load32): ... to this.
26697 (grub_macho32_filesize): Renamed from ...
26698 (grub_macho_filesize32): ... to this.
26699 (grub_macho32_readfile): Renamed from ...
26700 (grub_macho_readfile32): ... to this.
26701 (grub_macho_filesize64): New prototype.
26702 (grub_macho_readfile64): Likewise.
26703 (grub_macho_parse32): Likewise.
26704 (grub_macho_parse64): Likewise.
26705 * loader/macho.c: Split into ...
26706 * loader/machoXX.c: ... and this. Replace 32 with XX.
26707 * loader/macho32.c: New file.
26708 * loader/macho64.c: Likewise.
26709 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26710 (grub_cmd_xnu_kernel): Make 32-bit only.
26711 (grub_cmd_xnu_kernel64): New function.
26712 (grub_xnu_load_driver): Support Mach-O 64.
26713 (grub_cmd_xnu_mkext): Likewise.
26714 * util/grub.d/30_os-prober.in (osx_entry): New function.
26715 Generate entries for 64-bit boot too.
26716
26717 Eliminate ad-hoc tree format in XNU and EfiEmu.
26718
26719 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26720 * efiemu/pnvram.c: Rewritten to use environment variables.
26721 All users updated.
26722
26723 Inline utf16_to_utf8.
26724
26725 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26726 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26727 All users updated.
26728 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26729
26730 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26731 * commands/usbtest.c (grub_usb_get_string): ... move here.
26732 (usb_print_str): Fix error handling.
26733 * include/grub/usb.h (grub_usb_get_string): Remove.
26734
26735 UTF-8 to UTF-16 transformation.
26736
26737 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26738 (charset_mod_SOURCES): New variable.
26739 (charset_mod_CFLAGS): Likewise.
26740 (charset_mod_LDFLAGS): Likewise.
26741 * include/grub/utf.h: New file.
26742 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26743
26744 Support for device properties.
26745
26746 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26747 (grub_xnu_devprop_device_header): Likewise.
26748 (grub_xnu_devprop_device_descriptor): Likewise.
26749 (grub_xnu_devprop_add_device): New prototype.
26750 (grub_xnu_devprop_remove_device): Likewise.
26751 (grub_xnu_devprop_remove_property): Likewise.
26752 (grub_xnu_devprop_add_property_utf8): Likewise.
26753 (grub_xnu_devprop_add_property_utf16): Likewise.
26754 (grub_cpu_xnu_init): Likewise.
26755 (grub_cpu_xnu_fini): Likewise.
26756 (grub_cpu_xnu_unload): Likewise.
26757 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26758 (property_descriptor): Likewise.
26759 (devices): New variable.
26760 (grub_xnu_devprop_remove_property): New function.
26761 (grub_xnu_devprop_add_device): Likewise.
26762 (grub_xnu_devprop_remove_device): Likewise.
26763 (grub_xnu_devprop_add_property): Likewise.
26764 (grub_xnu_devprop_add_property_utf8): Likewise.
26765 (grub_xnu_devprop_add_property_utf16): Likewise.
26766 (hextoval): Likewise.
26767 (grub_cpu_xnu_fill_devprop): Likewise.
26768 (grub_cmd_devprop_load): Likewise.
26769 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26770 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26771 (cmd_devprop_load): New variable.
26772 (grub_cpu_xnu_init): New function.
26773 (grub_cpu_xnu_fini): Likewise.
26774 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26775 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26776 (grub_cmd_xnu_devtree): Likewise.
26777 (hextoval): New function.
26778 (unescape): Likewise.
26779 (grub_xnu_fill_devicetree): Likewise.
26780
26781 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26782 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26783
0945f181
VS
267842009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26785
26786 Workaround for broken ATI VBE.
26787
26788 * video/i386/pc/vbe.c (last_set_mode): New variable.
26789 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26790 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26791 (grub_video_vbe_setup): Don't check for reserved flag.
26792
0ad46fd7 267932009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
26794
26795 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26796 the `find' command.
26797
c179ebe4
VS
267982009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26799
26800 UUID support for HFS.
26801
26802 * fs/hfs.c (grub_hfs_uuid): New function.
26803 (grub_hfs_fs): New value .uuid.
26804 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26805
0ad46fd7 268062009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
26807
26808 Fix a segfault with parsing unknown long options.
26809
26810 * util/grub-mkrelpath.c (options): Zero terminate it.
26811
c4a3e41a
CPE
268122009-12-13 Carles Pina i Estany <carles@pina.cat>
26813
26814 * include/grub/misc.h (grub_puts): New declaration.
26815 (grub_puts_): Likewise.
a22008a6 26816 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
26817 (grub_puts_): Likewise.
26818
2e8a7602
RM
268192009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26820
26821 * util/grub-probe.c (probe): Improve error message.
26822
b50b77b9
RM
268232009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26824
26825 * loader/i386/multiboot_elfxx.c
26826 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26827 initialization.
26828
268292009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26830
26831 Relocator framework
26832
26833 * loader/i386/xnu_helper.S: Removed. All users updated.
26834 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26835 (relocator_mod_SOURCES): New variable.
26836 (relocator_mod_CFLAGS): Likewise.
26837 (relocator_mod_LDFLAGS): Likewise.
26838 (relocator_mod_ASFLAGS): Likewise.
26839 * conf/x86_64.rmk: Likewise.
26840 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26841 (grub_multiboot_payload_entry_offset): Likewise.
26842 (grub_multiboot_forward_relocator): Likewise.
26843 (grub_multiboot_forward_relocator_end): Likewise.
26844 (grub_multiboot_backward_relocator): Likewise.
26845 (grub_multiboot_backward_relocator_end): Likewise.
26846 (grub_multiboot_payload_eip): New variable.
26847 (grub_multiboot_payload_orig): Likewise.
26848 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26849 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26850 * include/grub/i386/memory.h
26851 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26852 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26853 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26854 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26855 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26856 * include/grub/i386/relocator.h: New file.
26857 * include/grub/x86_64/relocator.h: Likewise.
26858 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26859 (XNU_RELOCATOR): New macro.
26860 (grub_xnu_launcher_start): Remove.
26861 (grub_xnu_launcher_end): Likewise.
26862 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26863 (grub_xnu_heap_real_start): Remove.
26864 (grub_xnu_heap_start): Change to void *. All users updated.
26865 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26866 * lib/i386/relocator.c: New file.
26867 * lib/i386/relocator_asm.S: Likewise.
26868 * lib/i386/relocator_backward.S: Likewise.
26869 * lib/mips/relocator.c: Likewise.
26870 * lib/mips/relocator_asm.S: Likewise.
26871 * lib/relocator.c: Likewise.
26872 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26873 (entry): Removed.
26874 (playground): Likewise.
26875 (grub_multiboot_payload_orig): New variable.
26876 (grub_multiboot_payload_dest): Likewise.
26877 (grub_multiboot_payload_size): Likewise.
26878 (grub_multiboot_payload_eip): Likewise.
26879 (grub_multiboot_payload_esp): Likewise.
26880 (grub_multiboot_boot): Use grub_relocator32_boot.
26881 (grub_multiboot_unload): Free relocators.
26882 (grub_multiboot): Setup stack. Use relocators.
26883 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26884 (grub_multiboot_load_elfXX): Use relocators.
26885 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26886 (grub_multiboot_payload_size): Likewise.
26887 (grub_multiboot_payload_dest): Likewise.
26888 (grub_multiboot_payload_entry_offset): Likewise.
26889 (grub_multiboot_forward_relocator): Likewise.
26890 (grub_multiboot_backward_relocator): Likewise.
26891 (grub_multiboot_real_boot): Likewise.
26892 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26893 (grub_xnu_entry_point): Likewise.
26894 (grub_xnu_arg1): Likewise.
26895 (grub_xnu_stack): Likewise.
26896 (grub_xnu_launch): Removed.
26897 (grub_xnu_boot_resume): New function.
26898 (grub_xnu_boot): Use relocators.
26899 * loader/i386/xnu_helper.S: Removed.
26900 * loader/xnu.c (grub_xnu_heap_start): New variable.
26901 (grub_xnu_heap_size): Likewise.
26902 (grub_xnu_heap_malloc): Use relocators.
26903 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26904
29eb90c6
VS
269052009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26906
26907 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26908 anything.
26909
31027430
CPE
269102009-12-13 Carles Pina i Estany <carles@pina.cat>
26911
26912 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26913 GRUB_ERR_NONE before calling grub_env_set.
26914
dc0c71d9
RM
269152009-12-12 Robert Millan <rmh@aybabtu.com>
26916
26917 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26918 * genmk.rb (video): New variable.
26919 (CLEANFILES, VIDEOFILES): Add #{video}.
26920 (#{video}): New target rule.
26921 * genvideolist.sh: New file.
26922 * Makefile.in (pkglib_DATA): Add video.lst.
26923 (video.lst): New target rule.
26924 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26925 `video.lst'.
26926 * util/grub.d/30_os-prober.in: Replace `vbe' with
26927 ${GRUB_VIDEO_BACKEND}.
26928
2a4bfcf0
RM
269292009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26930
26931 * THANKS: Add David Miller.
26932
2a3aa4d5
RM
269332009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26934
26935 libpciaccess support.
26936
26937 * Makefile.in (LIBPCIACCESS): New variable.
26938 (enable_grub_emu_pci): Likewise.
26939 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26940 util/pci.c and commands/lspci.c.
26941 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26942 * configure.ac (grub-emu-pci): New option.
26943 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26944 (grub_pci_device_unmap_range): Likewise.
26945 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26946 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26947 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26948 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26949 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26950 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26951 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26952 * include/grub/pciutils.h: New file.
26953 * util/pci.c: Likewise.
26954
0ad46fd7 269552009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
26956
26957 * util/misc.c: Don't include <errno.h> twice.
26958
0ad46fd7 269592009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
26960
26961 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26962 name in an error message.
26963 (grub_biosdisk_rw): Likewise.
26964
2e59983c
VS
269652009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26966
26967 Eliminate NTFS 4Gib barrier.
26968
26969 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26970 (read_run_data): Likewise.
26971 (grub_ntfs_read_run_list): Likewise.
26972 (grub_ntfs_read_block): Likewise.
26973 (grub_ntfs_iterate_dir): Likewise.
26974 (read_mft): Likewise.
26975 (read_data): Likewise.
26976 Use COM_LOG_LEN.
26977 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26978 to avoid 64-bit division
26979 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26980 (grub_ntfs_rlst): Use grub_disk_addr_t.
26981
71ee178a
VS
269822009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26983
26984 Eliminate grub-fstest 4Gib barrier.
26985
26986 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26987 (read_file): Fix error reporting.
26988
2520d4b8
VS
269892009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26990
26991 Eliminate hexdump 4Gib barrier.
26992
26993 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26994 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26995
e1f27065
VS
269962009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26997
26998 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26999 Fixes amarsh bug.
27000
1a0f7f45
RM
270012009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
27002
27003 Remove miscellaneous files in distclean target.
27004
27005 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
27006
c631d9fb
CW
270072009-12-09 Colin Watson <cjwatson@ubuntu.com>
27008
27009 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
27010 if they're already set. This resolves the conflict between my
27011 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
27012 fixing the --grub-probe option again.
27013 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
27014 change on 2009-10-06, so that we now once again source
27015 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27016
7c7b6106
RM
270172009-12-08 Robert Millan <rmh.grub@aybabtu.com>
27018
27019 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
27020 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
27021 `util/devicemap.c'.
27022
e3069ec1
CPE
270232009-12-08 Carles Pina i Estany <carles@pina.cat>
27024
27025 * include/grub/misc.h (grub_printf_): New declaration.
27026 * kern/misc.c (grub_printf_): New definition.
27027 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
27028 instead of `grub_printf' and `_'.
27029 * normal/menu_entry.c (store_completion): Likewise.
27030 (run): Likewise.
27031 (grub_menu_entry_run): Likewise.
27032 * normal/menu_text.c (grub_wait_after_message): Likewise.
27033 (notify_booting): Likewise.
27034 (notify_fallback): Likewise.
27035 (notify_execution_failure): Likewise.
27036
d6ceebf1
CW
270372009-12-07 Colin Watson <cjwatson@ubuntu.com>
27038
27039 * configure.ac: Check for vasprintf.
27040 * util/misc.c (asprintf): Move allocation from here ...
27041 (vasprintf): ... to here. New function.
27042 (xasprintf): New function.
27043 * include/grub/util/misc.h (vasprintf, xasprintf): Add
27044 prototypes.
27045 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
27046 * util/grub-mkfont.c (write_font): Likewise.
27047 * util/grub-probe.c (probe): Likewise.
27048 * util/hostdisk.c (make_device_name): Likewise.
27049
de6daa8b
DM
270502009-12-06 David S. Miller <davem@sunset.davemloft.net>
27051
27052 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
27053 anything even prefixed with 'cdrom' as a cdrom.
27054
0ad46fd7 270552009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
27056
27057 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
27058 mount points.
27059
98d3dc02
CPE
270602009-12-05 Carles Pina i Estany <carles@pina.cat>
27061
27062 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
27063 grub_gettext_msg_list.
27064 (grub_gettext_gettranslation_from_position): Return const char *
27065 and not char *.
a2c1332b 27066 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
27067 returns from the list if existing there.
27068 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
27069 (grub_gettext_delete_list): Delete the list.
27070 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
27071 lang environment variable is changed.
27072 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
27073
b283f108
VS
270742009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27075
27076 Rename kernel.mod to kernel.img.
27077
27078 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
27079 (kernel_mod_EXPORTS): Rename to ...
27080 (kernel_img_EXPORTS): ... this.
27081 (kernel_mod_SOURCES): Rename to ...
27082 (kernel_img_SOURCES): ... this.
27083 (kernel_mod_HEADERS): Rename to ...
27084 (kernel_img_HEADERS): ... this. All users updated.
27085 (kernel_mod_CFLAGS): Rename to ...
27086 (kernel_img_CFLAGS): ... this.
27087 (kernel_mod_ASFLAGS): Rename to ...
27088 (kernel_img_ASFLAGS): ... this.
27089 (kernel_mod_LDFLAGS): Rename to ...
27090 (kernel_img_LDFLAGS): ... this.
27091 * conf/x86_64-efi.rmk: Likewise.
27092 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
27093 (read_kernel_image): ... this. All users updated.
27094 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
27095
69055f8a
CPE
270962009-12-05 Carles Pina i Estany <carles@pina.cat>
27097
27098 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
27099 (print_spaces): New function.
27100 (grub_print_ucs4): New function.
27101 (getstringwidth): New function.
27102 (print_message_indented): New function.
27103 (print_message): Gettexttize strings using print_message_indented.
27104 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
27105 width.
27106 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 27107 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
27108 Gettextize.
27109 * normal/menu_entry.c (store_completion): Cleanup the gettextized
27110 string.
27111 (run): Likewise.
27112 (grub_menu_entry_run): Likewise.
27113 * PO/POTFILES: Add normal/menu_entry.c.
27114
f616f51c
VS
271152009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27116
27117 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
27118
57bbe3be
CPE
271192009-12-05 Carles Pina i Estany <carles@pina.cat>
27120
27121 * util/grub-install.in: Install gettext .mo files.
27122 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
27123
013d67a1
CPE
271242009-12-05 Carles Pina i Estany <carles@pina.cat>
27125
27126 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
27127 grub_dprintf.
27128
fb954db0
RM
271292009-12-05 Robert Millan <rmh.grub@aybabtu.com>
27130
27131 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
27132 non-firmware-dependant one in realmode.S takes precedence.
27133
6b8474f8
RM
271342009-12-04 Robert Millan <rmh.grub@aybabtu.com>
27135
27136 * commands/halt.c: Replace misc arch-specific headers with
27137 `<grub/misc.h>'.
27138 * commands/reboot.c: Likewise.
27139 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
27140 `<grub/misc.h>'.
27141 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
27142 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
27143 (kernel_img_SOURCES): ... to here.
27144
27145 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
27146 * include/grub/i386/pc/init.h: Likewise.
27147 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27148 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27149
27150 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
27151
27152 * include/grub/i386/halt.h: Remove.
27153 * include/grub/i386/reboot.h: Likewise.
27154
27155 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
27156
4b2e6ca2
DM
271572009-12-03 David S. Miller <davem@sunset.davemloft.net>
27158
27159 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
27160 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
27161 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
27162 "progname.h"
27163 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27164 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27165 (usage): Add missing comma in printf.
27166
5239348f
RM
271672009-12-02 Robert Millan <rmh.grub@aybabtu.com>
27168
27169 Use the same reboot approach on i386 coreboot and qemu as we do on
27170 BIOS.
27171
27172 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
27173 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
27174 * kern/i386/reboot.c: Remove.
27175 * include/grub/i386/reboot.h (grub_reboot): Export function.
27176 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
27177 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
27178 0xf000:0xfff0 instead of 0xffff:0x0000.
27179 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
27180 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
27181
ef34cbd4
RM
271822009-11-30 Robert Millan <rmh.grub@aybabtu.com>
27183
27184 Fix $srcdir != $objdir build.
27185
27186 * Makefile.in (po/%.po): Rewrite as ...
27187 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
27188
dc9837ea
ST
271892009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
27190
27191 Fix GNU/Hurd grub-install crash.
27192 * util/grub-probe.c (probe): Try to access `path' only when it is not
27193 NULL.
27194
2f857f98
VS
271952009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27196
27197 Correct module naming.
27198
27199 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27200 (GRUB_MOD_INIT(efi_uga)): ... to this
27201 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27202 (GRUB_MOD_FINI(efi_uga)): ... to this
27203 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27204 (GRUB_MOD_INIT(efi_gop)): ... to this
27205 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27206 (GRUB_MOD_FINI(efi_gop)): ... to this
27207
c5448046
RM
272082009-11-28 Robert Millan <rmh.grub@aybabtu.com>
27209
27210 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
27211 translatable.
27212 (usage): Translate `arg' strings using gettext().
27213 Thanks to Jordi Mallach for the suggestion.
27214
c85184ad
VS
272152009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27216
27217 GOP support. Based on patch from Bean
27218 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27219
27220 * video/efi_gop.c: New file.
27221 * include/grub/efi/graphics_output.h: Likewise.
27222 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
27223 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27224 variables.
27225 * conf/x86_64-efi.rmk: Likewise.
27226
8a4c48d8
VS
272272009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27228
27229 Rename efi_fb to efi_uga.
27230
27231 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27232 'efi_uga.mod'.
27233 (efi_fb_mod_SOURCES): Rename this ...
27234 (efi_uga_mod_SOURCES): ... to this.
27235 (efi_fb_mod_CFLAGS): Rename this ...
27236 (efi_uga_mod_CFLAGS): ... to this.
27237 (efi_fb_mod_LDFLAGS): Rename this ...
27238 (efi_uga_mod_LDFLAGS): ... to this.
27239 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27240 'efi_uga.mod'.
27241 (efi_fb_mod_SOURCES): Rename this ...
27242 (efi_uga_mod_SOURCES): ... to this.
27243 (efi_fb_mod_CFLAGS): Rename this ...
27244 (efi_uga_mod_CFLAGS): ... to this.
27245 (efi_fb_mod_LDFLAGS): Rename this ...
27246 (efi_uga_mod_LDFLAGS): ... to this.
27247 * video/efi_fb.c: Move this ...
27248 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
27249
fb6c1a7b
RM
272502009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27251
27252 * po/README: New file. Explain our PO file workflow.
27253
3bc7896c
RM
272542009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27255
27256 * po/ChangeLog: Remove. Move relevant entries back to ...
27257 * ChangeLog: ... here.
27258 * po/ca.po: Remove (now handled by TLP).
27259 * po/id.po: Likewise.
27260 * po/zh_CN.po: Likewise.
27261 * Makefile.in (LINGUAS): Initialize in a way that supports
27262 empty set.
27263
9ed4841d
RM
272642009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27265
27266 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
27267 reliing on po/LINGUAS.
27268 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
27269 (po/%.po): ... this.
27270
0ad46fd7 272712009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
27272
27273 * util/i386/efi/grub-mkimage.c: Include "progname.h".
27274 (main): Use `program_name' instead of nonexistent `progname'.
27275
e30dd392
FZ
272762009-11-26 Felix Zielcke <fzielcke@z-51.de>
27277
27278 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27279 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
27280
7656de4f
RM
272812009-11-26 Robert Millan <rmh.grub@aybabtu.com>
27282
27283 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
27284 commit.
27285 * conf/i386-efi.rmk: Likewise.
27286 * conf/i386-ieee1275.rmk: Likewise.
27287 * conf/powerpc-ieee1275.rmk: Likewise.
27288 * conf/sparc64-ieee1275.rmk: Likewise.
27289 * conf/x86_64-efi.rmk: Likewise.
27290
db77c4d4
FZ
272912009-11-26 Felix Zielcke <fzielcke@z-51.de>
27292
27293 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
27294
a755bb04
FZ
272952009-11-26 Felix Zielcke <fzielcke@z-51.de>
27296
27297 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
27298
8a4c07fd
RM
272992009-11-26 Robert Millan <rmh.grub@aybabtu.com>
27300
27301 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
27302 (grub_mkdevicemap_SOURCES): New variable.
27303 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
27304 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
27305 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
27306 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
27307 (grub_mkdevicemap_SOURCES): Remove.
27308 * conf/i386-efi.rmk: Likewise.
27309 * conf/i386-ieee1275.rmk: Likewise.
27310 * conf/i386-pc.rmk: Likewise.
27311 * conf/powerpc-ieee1275.rmk: Likewise.
27312 * conf/sparc64-ieee1275.rmk: Likewise.
27313 * conf/x86_64-efi.rmk: Likewise.
27314 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
27315 (usage): Fix strings to use `program_name'.
27316 (main): Initialize gettext.
27317 * util/grub-editenv.c: Likewise.
27318 * util/grub-emu.c: Likewise.
27319 * util/grub-fstest.c: Likewise.
27320 * util/grub-mkdevicemap.c: Likewise.
27321 * util/grub-mkfont.c: Likewise.
27322 * util/grub-mkrelpath.c: Likewise.
27323 * util/grub-pe2elf.c: Likewise.
27324 * util/grub-probe.c: Likewise.
27325 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
27326 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27327 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27328
27329 * util/misc.c: Include `"progname.h"'.
27330 (progname): Remove variable.
27331 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
27332
6f61ed55
FZ
273332009-11-25 Felix Zielcke <fzielcke@z-51.de>
27334
27335 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
27336 printf and print a newline after the menuentry header line.
27337 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27338
f022876b
FZ
273392009-11-25 Felix Zielcke <fzielcke@z-51.de>
27340
27341 autoconf >= 2.60 support $(localedir).
27342
27343 * INSTALL: Note that autoconf 2.60 is required.
27344 * configure.ac (AC_PREREQ): Bump to 2.60.
27345 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
27346 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27347
6717926e
YB
273482009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
27349
27350 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
27351 aclocal is run.
27352
08806a54
RM
273532009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27354
27355 * normal/main.c (grub_normal_read_line): Fix off-by-one
27356 buffer overflow.
27357
13b33fba
RM
273582009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27359
27360 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
27361 "parser.grub" in grub_command_execute() call.
27362
4a8572e9
CPE
273632009-11-24 Carles Pina i Estany <carles@pina.cat>
27364
27365 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
27366 * conf/i386-efi.rmk: Likewise.
27367 * conf/i386-ieee1275.rmk: Likewise.
27368 * conf/i386-pc.rmk: Likewise.
27369 * conf/powerpc-ieee1275.rmk: Likewise.
27370 * conf/sparc64-ieee1275.rmk: Likewise.
27371 * conf/x86_64-efi.rmk: Likewise.
27372 * gettext/gettex.c: Include <grub/i18n.h>.
27373 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
27374 here ...
27375 * include/grub/i18n.h: ... to here
27376 * include/grub/i18n.h: ... to here.
27377 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 27378 (grub_gettext_dummy): Move above user.
4a8572e9 27379
bee48093
FZ
273802009-11-24 Felix Zielcke <fzielcke@z-51.de>
27381
27382 * util/Makefile.in (install-local): Convert a `for' into a normal
27383 shell expansion.
27384
a031e91c
RM
273852009-11-24 Robert Millan <rmh.grub@aybabtu.com>
27386
27387 * autogen.sh: Add automake call.
27388 * config.guess: Remove.
27389 * config.sub: Likewise.
27390 * install-sh: Likewise.
27391
26bec39d
FZ
273922009-11-24 Felix Zielcke <fzielcke@z-51.de>
27393
27394 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
27395
8e2532fd
FZ
273962009-11-24 Felix Zielcke <fzielcke@z-51.de>
27397
27398 * util/Makefile.in (install-local): Convert a make `$(foreach)'
27399 function to a normal shell `for'.
27400
fefa1b7d
FZ
274012009-11-24 Felix Zielcke <fzielcke@z-51.de>
27402
27403 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27404
4501250b
FZ
274052009-11-24 Felix Zielcke <fzielcke@z-51.de>
27406
27407 * util/grub-mkrelpath.c: New file.
27408 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
27409 (grub_mkrelpath_SOURCES): New variable.
27410 * include/grub/util/misc.h: New function prototype.
27411 * util/misc.c (make_system_path_relative_to_its_root): New function.
27412
27413 * util/grub-mkconfig_lib.in (bindir): New variable.
27414 (grub_mkrelpath): Likewise.
27415 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27416
27417 * util/probe.c (probe): Make the file path relative to its root.
27418 Change a info message to use the GRUB path. Enable again the
27419 check if we can read the file with GRUB facilities.
27420
27421 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27422 to its root.
27423
11d9778b
FZ
274242009-11-24 Felix Zielcke <fzielcke@z-51.de>
27425
27426 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27427 platform.
27428
4465287d
FZ
274292009-11-24 Felix Zielcke <fzielcke@z-51.de>
27430
27431 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27432 strncmp().
27433
62b47f22
FZ
274342009-11-24 Felix Zielcke <fzielcke@z-51.de>
27435
27436 * util/getroot.c (grub_util_is_dmraid): New function.
27437 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27438 devices as normal ones, not as LVM.
27439
1eafb9b9 274402009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
27441
27442 * conf/common.rmk: Add grub-gettext_lib target and updates
27443 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27444 LDFLAGS.
27445 * gettext/gettext.c: New file. (Reads mo files).
27446 * include/grub/file.h (grub_file_pread): New prototype.
27447 * include/grub/i18n.h (_): New prototype.
27448 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27449 prototypes.
27450 * kern/misc.c (grub_gettext_dummy): New function.
27451 * normal/menu_text.c: Include <grub/i18n.h>.
27452 * normal/menu_text.c (print_timeout): Gettexttize string.
27453 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
27454 * po/POTFILES: Add `normal/menu_text.c'.
27455 * po/ca.po: Add new translations.
c3ea6bd4
CPE
27456 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27457 gettext module and defines locale_dir and lang in grub.cfg.
27458 * NEWS: Add gettext support.
27459
0fdb2568
RM
274602009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27461
27462 * util/hostdisk.c: Include `<grub/i18n.h>'.
27463 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27464 (make_device_name): Rewrite using asprintf.
27465 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27466 (find_system_device): If a device is not found, generate one just
27467 by reusing the OS path name.
27468 (read_device_map): Make it permissible for device.map not to exist.
27469
f515aa62
RM
274702009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27471
27472 * script/sh/execute.c: Move from here ...
27473 * script/execute.c: ... to here. Update all users.
27474 * script/sh/function.c: Move from here ...
27475 * script/function.c: ... to here. Update all users.
27476 * script/sh/lexer.c: Move from here ...
27477 * script/lexer.c: ... to here. Update all users.
27478 * script/sh/main.c: Move from here ...
27479 * script/main.c: ... to here. Update all users.
27480 * script/sh/parser.y: Move from here ...
27481 * script/parser.y: ... to here. Update all users.
27482 * script/sh/script.c: Move from here ...
27483 * script/script.c: ... to here. Update all users.
27484
f84b481b
RM
274852009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27486
27487 * configure.ac: Detect all `emu' platforms. Define
27488 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27489 --enable-grub-emu logic. Disable include/grub/machine
27490 symlink on `emu' platforms.
27491
27492 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27493 * gensymlist.sh.in: Likewise.
27494
27495 * include/grub/i386/coreboot/machine.h: Remove file.
27496 * include/grub/i386/efi/machine.h: Likewise.
27497 * include/grub/i386/ieee1275/machine.h: Likewise.
27498 * include/grub/i386/pc/machine.h: Likewise.
27499 * include/grub/i386/qemu/machine.h: Likewise.
27500 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27501 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27502 * include/grub/x86_64/efi/machine.h: Likewise.
27503
27504 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27505 * commands/halt.c: Likewise.
27506 * commands/reboot.c: Likewise.
27507 * include/grub/autoefi.h: Likewise.
27508 * include/grub/i386/at_keyboard.h: Likewise.
27509 * include/grub/i386/kernel.h: Likewise.
27510 * include/grub/i386/loader.h: Likewise.
27511 * include/grub/i386/pc/memory.h: Likewise.
27512 * kern/dl.c: Likewise.
27513 * kern/i386/coreboot/init.c: Likewise.
27514 * loader/i386/bsd.c: Likewise.
27515 * loader/i386/linux.c: Likewise.
27516 * loader/multiboot_loader.c: Likewise.
27517 * term/i386/pc/serial.c: Likewise.
27518 * term/usb_keyboard.c: Likewise.
27519
27520 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27521 `<grub/machine/machine.h>'
27522 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27523 * util/misc.c: Remove `<grub/machine/machine.h>' and
27524 `<grub/machine/time.h>'.
27525
27526 * Makefile.in (enable_grub_emu): Remove variable.
27527 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27528
27529 * conf/any-emu.rmk: New file.
27530 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27531 (grub_emu_init.c): Move from here ...
27532 * conf/any-emu.rmk: ... to here.
27533
27534 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27535 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27536 * conf/any-emu.rmk: ... to here.
27537
4efeab03
RM
275382009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27539
27540 * include/grub/parser.h (grub_parser_register): Document need
27541 of `name' parameter.
27542 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27543 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27544 "sh" to "grub".
27545
ea1dd8bf
RM
275462009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27547
27548 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27549 `$(XGETTEXT)'.
27550 * include/grub/i18n.h (N_): New macro.
27551 * util/mkisofs/mkisofs.h: Likewise.
27552 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27553 around N_().
27554 (usage): Use gettext() to translate help strings when printing them.
27555
0c140626
RM
275562009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27557
27558 Based on patch from Bean
27559 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27560
27561 * video/efi_fb.c: New file.
27562 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27563 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27564 variables.
27565 * conf/x86_64-efi.rmk: Likewise.
27566
87d58298
RM
275672009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27568
27569 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27570 * util/i386/pc/grub-setup.c: Likewise.
27571
994cc3a3
ST
275722009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27573
27574 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27575 <hurd/fs.h>
27576 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27577 file_get_storage_info to implement grub_guess_root_device.
27578
26a61d6a
FZ
275792009-11-21 Felix Zielcke <fzielcke@z-51.de>
27580
27581 * Makefile.in (target): Use make's builtin $(shell) function
27582 instead of calling directly $(SHELL) to create the locale directories,
27583 inside the $(foreach) function.
27584
74ff1dd5
FZ
275852009-11-21 Felix Zielcke <fzielcke@z-51.de>
27586
27587 * util/grub-mkrescue.in: Print an error and usage if output option
27588 has not been given.
27589
0b787d0e
FZ
275902009-11-21 Felix Zielcke <fzielcke@z-51.de>
27591
27592 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27593 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27594 root and /boot are on different devices.
27595
1164b270
RM
275962009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27597
27598 Fix build for srcdir != objdir.
27599
27600 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27601 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27602 $(srcdir).
27603 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27604 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27605 reference for input.
27606
13774a2f
RM
276072009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27608
27609 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27610 or hardlinking it). Remove -J option, Joliet is not compatible with
27611 multiple source directories.
27612
efda854e
RM
276132009-11-21 Carles Pina i Estany <carles@pina.cat>
276142009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27615
27616 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27617 (process_input_dir): New function. Process an arbitrary input
27618 directory.
27619 Misc adjustments to support both "override mode" and system-wide mode.
27620
6c09890c
FZ
276212009-11-20 Felix Zielcke <fzielcke@z-51.de>
27622
27623 * configure.ac (UNIFONT_BDF): Rename to ...
27624 (FONT_SOURCE): ... this. Update all users.
27625
a797824f
FZ
276262009-11-20 Felix Zielcke <fzielcke@z-51.de>
27627
27628 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27629 to the list of unifont files to look for.
27630
cd4f42b0
RM
276312009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27632
27633 Patch from Joe Auricchio <jauricchio@gmail.com>
27634 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27635 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27636 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27637
393c783d
FZ
276382009-11-19 Felix Zielcke <fzielcke@z-51.de>
27639
27640 * Makefile.in (install-local): Add a missing backslash.
27641
b2f1e327
FZ
276422009-11-19 Felix Zielcke <fzielcke@z-51.de>
27643
27644 * include/grub/x86_64/io.h: New file.
27645
f577f7a0
RM
276462009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27647
27648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27649 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27650 Include `"progname.h"'.
27651 (main): Initialize gettext.
27652 * util/i386/pc/grub-setup.c: Gettexttize.
27653 * util/i386/pc/grub-mkimage.c: Likewise.
27654
27655 * Makefile.in (po/*.po): Redefine as ...
27656 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27657
3bc7896c
RM
27658 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27659
c37943b6
RM
276602009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27661
27662 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27663 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27664 (program_name): Remove.
27665 (main): Initialize gettext support.
6323f705
RM
27666 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27667 Include `<libintl.h>'.
27668 (_): New macro.
c37943b6
RM
27669
27670 * util/mkisofs/eltorito.c: Gettexttize.
27671 * util/mkisofs/joliet.c: Likewise.
27672 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
27673 * util/mkisofs/multi.c: Likewise.
27674 * util/mkisofs/rock.c: Likewise.
27675 * util/mkisofs/tree.c: Likewise.
27676 * util/mkisofs/write.c: Likewise.
27677
3bc7896c
RM
27678 * po/POTFILES: Update with new files.
27679
5ce77c6e
RM
276802009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27681
27682 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27683 * util/mkisofs/iso9660.h: Likewise.
27684 * util/mkisofs/joliet.c: Likewise.
27685 * util/mkisofs/mkisofs.c: Likewise.
27686 * util/mkisofs/mkisofs.h: Likewise.
27687 * util/mkisofs/rock.c: Likewise.
27688 * util/mkisofs/tree.c: Likewise.
27689 * util/mkisofs/write.c: Likewise.
27690
27691 * util/mkisofs/eltorito.c (rcsid): Remove.
27692 * util/mkisofs/hash.c: Likewise.
27693 * util/mkisofs/joliet.c: Likewise.
27694 * util/mkisofs/name.c: Likewise.
27695 * util/mkisofs/rock.c: Likewise.
27696 * util/mkisofs/tree.c: Likewise.
27697 * util/mkisofs/write.c: Likewise.
27698
1dabbc77
RM
276992009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27700
27701 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27702 instead of static allocation.
27703 * util/mkisofs/match.h: Likewise.
27704
633877cb
RM
277052009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27706
3bc7896c
RM
27707 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27708 and `util/grub.d/10_linux.in'.
633877cb
RM
27709 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27710 translatable Shell files.
27711
af1c0c85
RM
277122009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27713
27714 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27715
769ae37b
RM
277162009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27717
27718 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 27719 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
27720 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27721 Add gettext initialization.
27722 (kfreebsd_entry): Make menuentry output translatable.
27723
277242009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27725
27726 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27727 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27728 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27729 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27730 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 27731 * po/LINGUAS: New file.
769ae37b
RM
27732
277332009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27734
27735 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27736 other things).
27737 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27738 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27739 bindtextdomain() calls for gettext initialization.
27740
277412009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27742
27743 * gnulib/progname.c: New file (imported from Gnulib).
27744 * gnulib/progname.h: Likewise.
27745 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27746 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27747 (usage): Replace `progname' with `program_name'.
27748 (main): Use set_program_name() for program name initialization.
27749
277502009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27751
27752 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27753 from here ...
27754 * Makefile.in (CPPFLAGS): ... to here.
27755
277562009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27757
27758 * aclocal.m4: Move from here ...
27759 * acinclude.m4: ... to here.
27760 * autogen.sh: Add call to `aclocal'.
27761 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27762
277632009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27764
27765 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27766 (LINGUAS): New variable.
27767 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27768 (install-local): Install MO files.
27769 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27770 * include/grub/i18n.h: New file.
3bc7896c
RM
27771 * po/POTFILES: New file.
27772 * po/ca.po: New file.
769ae37b
RM
27773 * util/grub.d/10_linux.in (bindir): New variable.
27774 Add gettext initialization.
27775 (linux_entry): Make menuentry output translatable.
27776 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27777 (usage): Make --help output translatable.
27778 (main): Initialize gettext.
27779
02c0a6ad
RM
277802009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27781
27782 * import_gcry.py: New file (written by Vladimir with minor
27783 adjustments).
27784 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27785 ciphers.
27786 * INSTALL: Document that Python is required for bootstrap.
27787
277882009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27789
27790 Import ciphers from libgcrypt 1.4.4.
27791
27792 * lib/libgcrypt/cipher/ChangeLog
27793 * lib/libgcrypt/cipher/ac.c
27794 * lib/libgcrypt/cipher/arcfour.c
27795 * lib/libgcrypt/cipher/bithelp.h
27796 * lib/libgcrypt/cipher/blowfish.c
27797 * lib/libgcrypt/cipher/camellia-glue.c
27798 * lib/libgcrypt/cipher/camellia.c
27799 * lib/libgcrypt/cipher/camellia.h
27800 * lib/libgcrypt/cipher/cast5.c
27801 * lib/libgcrypt/cipher/cipher.c
27802 * lib/libgcrypt/cipher/crc.c
27803 * lib/libgcrypt/cipher/des.c
27804 * lib/libgcrypt/cipher/dsa.c
27805 * lib/libgcrypt/cipher/ecc.c
27806 * lib/libgcrypt/cipher/elgamal.c
27807 * lib/libgcrypt/cipher/hash-common.c
27808 * lib/libgcrypt/cipher/hash-common.h
27809 * lib/libgcrypt/cipher/hmac-tests.c
27810 * lib/libgcrypt/cipher/md.c
27811 * lib/libgcrypt/cipher/md4.c
27812 * lib/libgcrypt/cipher/md5.c
27813 * lib/libgcrypt/cipher/primegen.c
27814 * lib/libgcrypt/cipher/pubkey.c
27815 * lib/libgcrypt/cipher/rfc2268.c
27816 * lib/libgcrypt/cipher/rijndael-tables.h
27817 * lib/libgcrypt/cipher/rijndael.c
27818 * lib/libgcrypt/cipher/rmd.h
27819 * lib/libgcrypt/cipher/rmd160.c
27820 * lib/libgcrypt/cipher/rsa.c
27821 * lib/libgcrypt/cipher/seed.c
27822 * lib/libgcrypt/cipher/serpent.c
27823 * lib/libgcrypt/cipher/sha1.c
27824 * lib/libgcrypt/cipher/sha256.c
27825 * lib/libgcrypt/cipher/sha512.c
27826 * lib/libgcrypt/cipher/tiger.c
27827 * lib/libgcrypt/cipher/twofish.c
27828 * lib/libgcrypt/cipher/whirlpool.c
27829
af2f93ac
RM
278302009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27831
27832 Fix build for systems without error().
27833
27834 * gnulib/error.c: New file (imported from Gnulib).
27835 * gnulib/error.h: Likewise.
27836 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27837 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27838 (this variable is now used by error()).
27839
73fb3dd5
FZ
278402009-11-16 Felix Zielcke <fzielcke@z-51.de>
27841
814f5e96
FZ
27842 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27843 instead of relying that char is signed.
73fb3dd5 27844
a691ca33
VS
278452009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27846
27847 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27848 blocksize different from specified.
27849 (grub_pxefs_read): Likewise.
27850
2af8f0f4
FZ
278512009-11-16 Felix Zielcke <fzielcke@z-51.de>
27852
27853 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27854
27855 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27856 (grub_ata_readwrite): Likewise. Update 2 format strings.
27857 (grub_atapi_read): Likewise.
27858
27859 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27860 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27861 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27862 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27863 (ata_mod_LDFLAGS): Move from here ...
27864 * conf/i386.rmk: ... to here ...
27865 * conf/x86_64-efi.rmk: ... and here.
27866 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27867 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27868
83bdecaf
RM
278692009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27870
27871 Relicense multiboot.h, with RMS' blessing.
27872
27873 * include/multiboot.h: Change to X11 license.
27874
fd6fd3d7
RM
278752009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27876
27877 Support --version in grub-mkisofs.
27878
27879 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27880 (OPTION_VERSION): New macro.
27881 (ld_options): Recognize --version.
27882 (usage): Move `program_name' from here ...
27883 (program_name): ... to here. Add `static' qualifier.
27884 (main): Recognize `OPTION_VERSION'.
27885
16a88c49
FZ
278862009-11-15 Felix Zielcke <fzielcke@z-51.de>
27887
27888 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27889 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27890
a4158476
RM
278912009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27892
27893 Fix help2man generation for mkisofs.
27894
27895 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27896 (usage): Send output to stdout (rather than stderr).
27897
fc2208b0
RM
278982009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27899
27900 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27901 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27902 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27903 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27904 (bin_SCRIPTS): Add `grub-mkfloppy'.
27905 (grub_mkfloppy_SOURCES): New variable.
27906
27907 * util/grub-mkrescue.in: New file.
27908 * util/i386/pc/grub-mkfloppy.in: New file.
27909
27910 * util/i386/coreboot/grub-mkrescue.in: Remove.
27911 * util/i386/pc/grub-mkrescue.in: Remove.
27912
8d0edf4a
RM
279132009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27914
27915 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27916 from here ...
27917 * include/multiboot.h (struct multiboot_header): ... to here. Update
27918 all users.
27919 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27920 from here ...
27921 * include/multiboot.h (struct multiboot_info): ... to here. Update
27922 all users.
27923 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27924 from here ...
27925 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27926 Update all users.
27927 * include/grub/multiboot.h (struct grub_mod_list): Move
27928 from here ...
27929 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27930 Update all users.
27931
a73f5969
RM
279322009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27933
27934 * include/multiboot2.h (multiboot_word): Rename from this ...
27935 (multiboot2_word): ... to this. Update all users.
27936 (multiboot_header): Rename from this ...
27937 (multiboot2_header): ... to this. Update all users.
27938 (multiboot_tag_header): Rename from this ...
27939 (multiboot2_tag_header): ... to this. Update all users.
27940 (multiboot_tag_start): Rename from this ...
27941 (multiboot2_tag_start): ... to this. Update all users.
27942 (multiboot_tag_name): Rename from this ...
27943 (multiboot2_tag_name): ... to this. Update all users.
27944 (multiboot_tag_module): Rename from this ...
27945 (multiboot2_tag_module): ... to this. Update all users.
27946 (multiboot_tag_memory): Rename from this ...
27947 (multiboot2_tag_memory): ... to this. Update all users.
27948 (multiboot_tag_unused): Rename from this ...
27949 (multiboot2_tag_unused): ... to this. Update all users.
27950 (multiboot_tag_end): Rename from this ...
27951 (multiboot2_tag_end): ... to this. Update all users.
27952
1c8927f0
RM
279532009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27954
27955 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27956 this platform we should support Multiboot1 first.
27957
27958 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27959 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27960 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27961
6e1e0d89
RM
279622009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27963
27964 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27965 of write calls (converting them to fwrite() if they aren't already).
27966 (get_torito_desc): Likewise.
27967 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27968
7f2b34d8
RM
279692009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27970
27971 * util/i386/pc/grub-install.in: Move from here ...
27972 * util/grub-install.in: ... to here. Update all users.
27973
c0ef3311
CW
279742009-11-11 Colin Watson <cjwatson@ubuntu.com>
27975
27976 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27977
e1f240ff
RM
279782009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27979
27980 Support for El Torito without floppy emulation.
27981
27982 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27983 (init_boot_catalog): Improve error handling.
27984 (get_torito_desc): Don't use floppy emulation unless requested by
27985 user. Patch boot information table when requested via
27986 `-boot-info-table'.
27987 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27988 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27989 (use_boot_info_table): New variables.
27990 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27991 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27992 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27993 `--eltorito-emul-floppy'.
27994 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27995 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27996 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27997 (use_boot_info_table, get_731): New prototypes.
27998 * util/mkisofs/write.c (get_731): New function.
27999
af7d4de5
FZ
280002009-11-11 Felix Zielcke <fzielcke@z-51.de>
28001
28002 Fix the generation of the man page.
28003
28004 * util/pc/i386/grub-install.in: Source
28005 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
28006
2c55dbc0
RM
280072009-11-11 Robert Millan <rmh.grub@aybabtu.com>
28008
28009 Large file support for grub-mkisofs.
28010
28011 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
28012 * util/mkisofs/mkisofs.c (next_extent, last_extent)
28013 (session_start): Upgrade type to `uint64_t'. Update all users.
28014 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
28015 (struct directory_entry): Upgrade type of `starting_block' and
28016 `size' to `uint64_t'. Update all users.
28017 (struct deferred): Remove unused structure.
28018 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
28019 Update all users.
28020 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
28021 file is larger than `UINT32_MAX'.
28022 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
28023 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
28024 return value.
28025 (struct deferred_write): Upgrade type of `extent' and `size' to
28026 `uint64_t'. Update all users.
28027 (last_extent_written): Upgrade type to `uint64_t'. Update all
28028 users.
28029 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
28030 Update all users. Upgrade type of `remain' to `int64_t' and
28031 `use' to `size_t'. Use error() to handle fread() errors.
28032 (write_files): Rely on write_one_file() rather than calling
28033 xfwrite() directly.
28034
6a9cead5
FZ
280352009-11-09 Felix Zielcke <fzielcke@z-51.de>
28036
28037 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
28038
4825d790
RM
280392009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28040
28041 * util/mkisofs/fnmatch.c: Remove.
28042 * util/mkisofs/getopt1.c: Likewise.
28043 * util/mkisofs/getopt.c: Likewise.
28044 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
28045 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
28046 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
28047 `gnulib/getopt1.c' and `gnulib/getopt.c'.
28048 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
28049
28050 * configure.ac: Detect `mingw32msvc' host_os.
28051 Check for lstat(), getuid() and getgid().
28052
28053 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
28054 instances of `u_char' with `uint8_t'.
28055
28056 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
28057 [!HAVE_GETUID] (getuid): New function (stub).
28058 [!HAVE_GETGID] (getgid): Likewise.
28059 [!HAVE_LSTAT] (lstat): Likewise.
28060 [!S_IROTH] (S_IROTH): New macro (dummy).
28061 [!S_IRGRP] (S_IRGRP): Likewise.
28062
84b860d8
RM
280632009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28064
28065 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
28066 conditional expression).
28067
66e9b712
RM
280682009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28069
28070 Import from Gnulib.
28071
28072 * gnulib/fnmatch.c: New file.
28073 * gnulib/fnmatch.h: Likewise.
28074 * gnulib/fnmatch_loop.c: Likewise.
28075 * gnulib/getopt.c: Likewise.
28076 * gnulib/getopt.h: Likewise.
28077 * gnulib/getopt1.c: Likewise.
28078 * gnulib/getopt_int.h: Likewise.
28079 * gnulib/gettext.h: Likewise.
28080
34f4a5b0
RM
280812009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28082
28083 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
28084 * normal/handler.c (read_handler_list): Likewise.
28085
ac451143
RM
280862009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28087
28088 Misc cleanup.
28089
28090 * kern/command.c (grub_register_command_prio): Use
28091 grub_zalloc() instead of explicitly zeroing data.
28092 * kern/list.c: Include `<grub/mm.h>'.
28093 (grub_named_list_find): Replace `0' with `NULL'.
28094 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
28095 (fs_module_list): Change type to `grub_named_list_t'. Update all
28096 users.
28097 * normal/dyncmd.c (read_command_list): Add space between function
28098 call and parenthesis.
28099 * normal/handler.c (read_handler_list): Likewise.
28100
4089b167
RM
281012009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28102
28103 * normal/auth.c (punishment_delay): Moved from here ...
28104 (grub_auth_strcmp): ... to here (inside function).
28105
325f5037
RM
281062009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28107
28108 * include/grub/list.h (struct grub_named_list): Remove `const'
28109 qualifier from `name'.
28110 (struct grub_prio_list): Likewise.
28111
7aea29a3
RM
281122009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28113
28114 * normal/auth.c: Include `<grub/time.h>'.
28115 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
28116
3fd6f044
RM
281172009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28118
28119 * normal/auth.c (punishment_delay): New variable.
28120 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
28121 (grub_auth_check_authentication): Punish failed login attempts with
28122 an incremental (2^N) delay.
28123
a4cd68e4
RM
281242009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28125
28126 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
28127 path with $(srcdir).
28128
7ad12f43
VS
281292009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28130
28131 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
28132
c1129f03
RM
281332009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28134
28135 * util/i386/coreboot/grub-mkrescue.in: New file.
28136 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
28137 variables.
28138
28139 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
28140 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
28141 * configure.ac: Add header and function checks to satisfy grub-mkisofs
28142 requirements.
28143 * util/mkisofs/defaults.h: New file.
28144 * util/mkisofs/eltorito.c: Likewise.
28145 * util/mkisofs/exclude.h: Likewise.
28146 * util/mkisofs/fnmatch.c: Likewise.
28147 * util/mkisofs/getopt.c: Likewise.
28148 * util/mkisofs/getopt1.c: Likewise.
28149 * util/mkisofs/hash.c: Likewise.
28150 * util/mkisofs/include/fctldefs.h: Likewise.
28151 * util/mkisofs/include/mconfig.h: Likewise.
28152 * util/mkisofs/include/prototyp.h: Likewise.
28153 * util/mkisofs/include/statdefs.h: Likewise.
28154 * util/mkisofs/iso9660.h: Likewise.
28155 * util/mkisofs/joliet.c: Likewise.
28156 * util/mkisofs/match.c: Likewise.
28157 * util/mkisofs/match.h: Likewise.
28158 * util/mkisofs/mkisofs.c: Likewise.
28159 * util/mkisofs/mkisofs.h: Likewise.
28160 * util/mkisofs/multi.c: Likewise.
28161 * util/mkisofs/name.c: Likewise.
28162 * util/mkisofs/rock.c: Likewise.
28163 * util/mkisofs/tree.c: Likewise.
28164 * util/mkisofs/write.c: Likewise.
28165
ec8bb77d
VS
281662009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28167
28168 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
28169 being insecure.
28170
3716b12c
RM
281712009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28172
28173 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
28174 `grub-mkimage' (and use $0 when possible).
28175
b97b7b91
RM
281762009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28177
28178 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
28179 error message for excessively large memory map.
28180
04114812
RM
281812009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28182
28183 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
28184 executable bit.
28185
e4eb2373
RM
281862009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28187
28188 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
28189 message for coreboot users.
28190
c926e1d5 281912009-11-07 Robert Millan <rmh.grub@aybabtu.com>
28192
28193 Fix build with GNU gold.
28194
28195 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
28196 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
28197 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
28198 link addresses.
28199 * aclocal.m4: Likewise.
28200
86e5b1db 282012009-11-04 Felix Zielcke <fzielcke@z-51.de>
28202
28203 * configure.ac (AC_PREREQ): Bump to 2.59d.
28204 * INSTALL: Make it more clear when Autoconf and Ruby are
28205 needed and when to run `./autogen.sh'.
28206
246cd78f 282072009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28208
28209 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
28210 OSes.
28211
4f9dfb37 282122009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28213
28214 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
28215
b82bd5e1 282162009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28217
28218 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
28219 giving it to GNU Mach.
28220
ff1a9bca 282212009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28222
28223 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
28224 GNU partition number to get internal GRUB partition number.
28225
61697d9c 282262009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28227
28228 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
28229 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
28230
a50569e1 282312009-11-01 Robert Millan <rmh.grub@aybabtu.com>
28232
28233 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
28234 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
28235 case.
28236
5b153867 282372009-11-01 Felix Zielcke <fzielcke@z-51.de>
28238
28239 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
28240
d9e2cd70 282412009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28242
28243 Fix build problem.
28244
28245 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
28246 `-isystem=$(srcdir)/include'.
28247
805111a4 282482009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28249
28250 * util/i386/pc/grub-install.in: Remove hint that device.map should be
28251 checked (grub-install doesn't currently rely on it).
28252
fa6e945f 282532009-10-29 Robert Millan <rmh.grub@aybabtu.com>
28254
28255 Revert SVN r2660.
28256
28257 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
28258 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
28259 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
28260 * conf/i386-ieee1275.rmk: Likewise.
28261 * conf/i386-pc.rmk: Likewise.
28262 * conf/powerpc-ieee1275.rmk: Likewise.
28263 * conf/sparc64-ieee1275.rmk: Likewise.
28264 * conf/x86_64-efi.rmk: Likewise.
28265
cee15086 282662009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28267
28268 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
28269
95b9239e 282702009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28271
28272 * include/grub/misc.h: Stop checking for APPLE_CC.
28273
2ed19dfd 282742009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28275
28276 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
28277 doesn't cause an infinite call loop.
28278
fdcdde19 282792009-10-28 Felix Zielcke <fzielcke@z-51.de>
28280
28281 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
28282 strings.
28283
cefabfe1 282842009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28285
28286 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
28287 variable.
28288 * Makefile.in: Likewise.
28289
ed96ab6d 282902009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28291
28292 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
28293
0579b753 282942009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28295
28296 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
28297
478df409 282982009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28299
28300 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
28301
083d1679 283022009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28303
28304 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
28305 from here ...
28306 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
28307
5947ae32 283082009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28309
28310 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
28311 in $(MAKEINFO) invocation. This makes it clear in output that
28312 errors are being ignored.
28313
94180ff6 283142009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28315
28316 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
28317 from here ...
28318 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
28319 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
28320 * conf/i386-ieee1275.rmk: Likewise.
28321 * conf/i386-pc.rmk: Likewise.
28322 * conf/powerpc-ieee1275.rmk: Likewise.
28323 * conf/sparc64-ieee1275.rmk: Likewise.
28324 * conf/x86_64-efi.rmk: Likewise.
28325
9031b03a 283262009-10-26 Colin Watson <cjwatson@ubuntu.com>
28327
28328 * util/grub-editenv.c (main): If only a command is given, use
28329 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
28330 (usage): FILENAME is now optional and has a default.
28331
e4f6809b 283322009-10-26 Colin Watson <cjwatson@ubuntu.com>
28333
28334 Improve grub-mkconfig performance when there are several menu
28335 entries on a single filesystem.
28336
28337 * util/grub.d/10_linux.in (linux_entry): Cache the output of
28338 prepare_grub_to_access_device.
28339 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28340 * util/grub.d/30_os-prober.in: Likewise.
28341
67937d4d 283422009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28343
28344 * util/grub.d/10_freebsd.in: Remove.
28345 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
28346 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
28347
ee3756cc 283482009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28349
5c35048e 28350 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 28351
4dea1c6f 283522009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28353
28354 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
28355 grub_util_error() call.
28356
042484d7 283572009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28358
28359 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
28360 `reserved_first_sector' member.
28361 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
28362 `reserved_first_sector' to 1.
28363 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
28364 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
28365 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
28366 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
28367 filesystems which begin at first sector.
28368 (options): New option --skip-fs-probe.
28369 (main): Handle --skip-fs-probe and pass it to setup().
28370
d64448a7 283712009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28372
28373 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
28374 (memset): Fix function prototype.
28375
508d42ec 283762009-10-25 Robert Millan <rmh.grub@aybabtu.com>
283772009-10-25 Vasily Averin <vvs@parallels.com>
28378
28379 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
28380 `dirent.direntlen == 0'.
28381
b240e30c 283822009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28383
28384 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
28385 `cpio'.
28386 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
28387
346e7fbe 283882009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28389
28390 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
28391 `__trampoline_setup' and `__ucmpdi2'.
28392 * include/grub/powerpc/libgcc.h: Only export symbols for functions
28393 that libgcc provides.
28394
cdb308b0 283952009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28396
28397 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
28398 * include/grub/sparc64/libgcc.h (memset): Likewise.
28399 * include/grub/misc.h (memset, memcmp): New function prototypes.
28400
fb26abc2 284012009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28402
28403 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
28404 `cpio'.
28405 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
28406
f6693890 284072009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28408
28409 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
28410 * docs/grub.cfg: Compensate for recent change in multiboot
28411 loader (since 2009-08-14 it won't pass filename to payload).
28412 * util/grub.d/10_hurd.in: Likewise.
28413
0933cdc0 284142009-10-21 Felix Zielcke <fzielcke@z-51.de>
28415
28416 * config.guess: Update to latest version from config git
28417 repository.
28418 * config.sub: Likewise.
28419
3b2fe8c2 284202009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28421
28422 Fix build on sparc64.
28423
28424 * configure.ac: Perform checks for libgcc symbols before
28425 adding `-nostdlib' to LDFLAGS.
28426
46695a62 284272009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28428
28429 Let user specify OpenBSD root device.
28430
28431 * loader/i386/bsd.c (openbsd_root): New variable.
28432 (openbsd_opts): New option 'root'.
28433 (OPENBSD_ROOT_ARG): New macro.
28434 (grub_openbsd_boot): Use 'openbsd_root'.
28435 (grub_cmd_openbsd): Fill 'openbsd_root'.
28436
d2b6b7fc 284372009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28438
28439 * NEWS: Misc adjustments.
28440
421bd7ac 284412009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28442
28443 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28444
f1d29d87 284452009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28446
28447 * configure.ac: Bump version to 1.97.
28448
6f3cd880 284492009-10-16 Colin Watson <cjwatson@ubuntu.com>
28450
28451 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28452 -mno-3dnow on x86 architectures. Some toolchains enable these
28453 features by default, but they rely on registers that aren't enabled
28454 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28455
035f7122 284562009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28457
28458 Make entry text a bit more readable.
28459
28460 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28461
44998e58 284622009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28463
28464 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28465
cd2851b3 284662009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28467
28468 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28469 operations.
28470
c6f3b249 284712009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28472
28473 * configure.ac: Add missing dollar.
28474
6b5886ba 284752009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28476
28477 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28478
28479 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28480 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28481 exports.
28482 * include/grub/sparc64/libgcc.h: Likewise. Use
28483 preprocessor conditionals.
28484
e9d66f6d 284852009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28486
28487 * conf/common.rmk (grub-dumpbios): Remove rule.
28488 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28489 * util/grub-dumpbios.in: Remove file.
28490
9155bc17 284912009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28492
28493 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28494 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28495
28496 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28497 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28498 users.
28499
28500 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28501 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28502 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28503 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28504 users.
28505
bf7f7a18 285062009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28507
28508 * term/tparm.c: Switch to GPLv3.
28509
86564c26 285102009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28511
28512 * include/grub/i386/cpuid.h: Add header protection.
28513
5c936493 285142009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28515
28516 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28517
28518 * include/grub/i386/cpuid.h: New file.
28519 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28520 (has_longmode): Rename to ...
28521 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28522 `static' attribute.
28523 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28524 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28525 on a CPU that doesn't implement AMD64 instruction set.
28526
186e7cf2 285272009-10-06 Colin Watson <cjwatson@ubuntu.com>
28528
28529 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28530 that version.texi is rebuilt on version number changes.
28531
83b65c4a 285322009-10-06 Colin Watson <cjwatson@ubuntu.com>
28533
28534 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28535 Fixes bug #27602.
28536
d244281c 285372009-10-06 Colin Watson <cjwatson@ubuntu.com>
28538
28539 * util/i386/pc/grub-install.in: Source
28540 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28541 that the --grub-probe option will work.
28542 * util/sparc64/ieee1275/grub-install.in: Likewise.
28543
da25306d 285442009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28545
28546 * configure.ac: Bump version to 1.97~beta4.
28547
e8ee83c0 285482009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28549
28550 Resync grub-mkdevicemap in x86_64-efi.
28551
28552 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28553 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28554 `util/devicemap.c'.
28555
50dcabcf 285562009-10-01 Colin Watson <cjwatson@ubuntu.com>
28557
28558 * util/grub-editenv.c (create_envblk_file): Write new block with a
28559 .new suffix and then rename it into place, to ensure atomic
28560 creation.
28561
0e51c3a7 285622009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28563
28564 Do not automatically install headers.
28565
28566 * Makefile.in (include_DATA): Remove. Update all users.
28567
31299a95 285682009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28569
28570 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28571 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28572
28573 * util/osdetect.lua: Remove.
28574 * script/lua/lauxlib.c: Likewise.
28575 * script/lua/ldebug.c: Likewise.
28576 * script/lua/grub_main.c: Likewise.
28577 * script/lua/lauxlib.h: Likewise.
28578 * script/lua/ldebug.h: Likewise.
28579 * script/lua/ltablib.c: Likewise.
28580 * script/lua/liolib.c: Likewise.
28581 * script/lua/lstrlib.c: Likewise.
28582 * script/lua/lualib.h: Likewise.
28583 * script/lua/ldo.c: Likewise.
28584 * script/lua/ldump.c: Likewise.
28585 * script/lua/ldo.h: Likewise.
28586 * script/lua/loslib.c: Likewise.
28587 * script/lua/lundump.c: Likewise.
28588 * script/lua/grub_lib.c: Likewise.
28589 * script/lua/ldblib.c: Likewise.
28590 * script/lua/lundump.h: Likewise.
28591 * script/lua/lmem.c: Likewise.
28592 * script/lua/grub_lib.h: Likewise.
28593 * script/lua/lmathlib.c: Likewise.
28594 * script/lua/lstate.c: Likewise.
28595 * script/lua/ltm.c: Likewise.
28596 * script/lua/lvm.c: Likewise.
28597 * script/lua/lmem.h: Likewise.
28598 * script/lua/lstate.h: Likewise.
28599 * script/lua/ltm.h: Likewise.
28600 * script/lua/ltable.c: Likewise.
28601 * script/lua/lvm.h: Likewise.
28602 * script/lua/llex.c: Likewise.
28603 * script/lua/lgc.c: Likewise.
28604 * script/lua/grub_lua.h: Likewise.
28605 * script/lua/loadlib.c: Likewise.
28606 * script/lua/lfunc.c: Likewise.
28607 * script/lua/lopcodes.c: Likewise.
28608 * script/lua/lparser.c: Likewise.
28609 * script/lua/ltable.h: Likewise.
28610 * script/lua/llex.h: Likewise.
28611 * script/lua/lgc.h: Likewise.
28612 * script/lua/lfunc.h: Likewise.
28613 * script/lua/lbaselib.c: Likewise.
28614 * script/lua/lopcodes.h: Likewise.
28615 * script/lua/lparser.h: Likewise.
28616 * script/lua/lzio.c: Likewise.
28617 * script/lua/linit.c: Likewise.
28618 * script/lua/lobject.c: Likewise.
28619 * script/lua/llimits.h: Likewise.
28620 * script/lua/lstring.c: Likewise.
28621 * script/lua/lzio.h: Likewise.
28622 * script/lua/lapi.c: Likewise.
28623 * script/lua/lcode.c: Likewise.
28624 * script/lua/lua.h: Likewise.
28625 * script/lua/lobject.h: Likewise.
28626 * script/lua/lstring.h: Likewise.
28627 * script/lua/lapi.h: Likewise.
28628 * script/lua/lcode.h: Likewise.
28629 * script/lua/luaconf.h: Likewise.
28630
cb8a2c38 286312009-09-26 Colin Watson <cjwatson@ubuntu.com>
28632
28633 * docs/grub.texi (Command-line and menu entry commands): Document
28634 date and echo commands.
28635
6b9b6276 286362009-09-24 Pavel Roskin <proski@gnu.org>
28637
28638 * include/grub/kernel.h (struct grub_module_header): Remove
28639 `grub_module_header_types'. Make `type' unsigned. Make `size'
28640 32-bit on all platforms.
28641 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28642 8-bit field. Use grub_host_to_target32() for `size'.
28643 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28644 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28645 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28646
4e5a02a7 286472009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28648
28649 Fix "lost keypress" bug in at_keyboard.
28650
28651 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28652 Checks for readyness of input buffer (without flushing it).
28653 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28654 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28655
c6dcedf6 286562009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28657
28658 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28659 size check within GRUB_MACHINE_PCBIOS section.
28660
74c958b1 286612009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28662
28663 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28664 return value.
28665 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28666 KEYBOARD_ISREADY check.
28667 (grub_at_keyboard_checkkey): Rename to ...
28668 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28669 Remove gratuitous cast.
28670
ff420223 286712009-09-23 Colin Watson <cjwatson@ubuntu.com>
28672
28673 * configure.ac: Call AC_PROG_MKDIR_P.
28674 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28675 version.texi in $(builddir) rather than $(srcdir).
28676 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28677 to makeinfo's @include search path.
28678
d96875df 286792009-09-23 Felix Zielcke <fzielcke@z-51.de>
28680
28681 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28682
9b3f8365 286832009-09-23 Felix Zielcke <fzielcke@z-51.de>
28684
28685 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28686 for `*.dpkg-new'.
28687
c44c90db 286882009-09-21 Colin Watson <cjwatson@ubuntu.com>
28689
28690 Build info documentation. Some code borrowed from Automake.
28691
28692 * configure.ac: Check for makeinfo.
28693 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28694 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28695 docs/version.texi.
28696 (MOSTLYCLEANFILES): Add vti.tmp.
28697 (docs/version.texi, docs/stamp-vti): Update automatically.
28698 (docs/grub.info): Build info documentation. Use --force and ignore
28699 errors for now.
28700 (all-local): Add $(INFOS).
28701 (install-local): Install info files.
28702 (uninstall): Uninstall info files.
28703 * docs/version.texi: Remove from revision control. This file is
28704 automatically generated on build now.
28705 * gendistlist.sh: Add `*.info'.
28706
e0b37bb5 287072009-09-21 Felix Zielcke <fzielcke@z-51.de>
28708
28709 * kern/term.c: Fix indentation.
28710
5a78865b 287112009-09-21 Felix Zielcke <fzielcke@z-51.de>
28712
28713 * util/hostdisk.c: Fix a comment.
28714
dace7e8a 287152009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28716
28717 Fix regression introduced in r2539.
28718
28719 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28720 to 0xA1.
28721
a83d079b 287222009-09-19 Colin Watson <cjwatson@ubuntu.com>
28723
28724 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 28725 os-prober. Under normal operation, it does not print anything to
28726 stderr; if it does, we need to debug it, and throwing away stderr
28727 makes that excessively difficult.
a83d079b 28728
be94a509 287292009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28730
28731 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28732
63f745e8 287332009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28734
28735 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28736 AC_LANG_PROGRAM from autoconf.
28737 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28738 prototypes (fixes warning).
28739
28740 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28741 `--disable-werror' was used.
28742
bbb2a70f 287432009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28744
28745 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28746 uninitialized `lastaddr'.
28747
77c24f1d 287482009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28749
0f0b8c87 28750 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 28751
07197f23 287522009-09-14 Colin Watson <cjwatson@ubuntu.com>
28753
28754 * commands/test.c (get_fileinfo): Return immediately if
28755 grub_fs_probe fails.
28756
dabf1798 287572009-09-14 José Martínez <xosemp@gmail.com>
28758
28759 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28760
d52109a7 287612009-09-14 Colin Watson <cjwatson@ubuntu.com>
28762
28763 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28764 output.
28765
56532179 287662009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28767
28768 * configure.ac: Remove --enable-grub-pe2elf. Only build
28769 grub-pe2elf when needed by the build system itself.
28770 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28771
8ef070f5 287722009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28773
28774 * configure.ac: Bump version to 1.97~beta3.
28775 * docs/version.texi: Likewise.
28776
61229557 287772009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28778
28779 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28780 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28781 from here ...
28782 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28783 (grub_linux_setup_video): ... to here (with some adjustments).
28784
5c9f8d84 287852009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28786
28787 Fix memory corruption issue (spotted by Colin Watson).
28788
28789 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28790 causing returned size to be stored in an incorrect memory location.
28791 Fix use of uninitialized value when storing the returned size.
28792
e8f5d6e9 287932009-09-12 Yves Blusseau <blusseau@zetam.org>
28794
28795 Change clean rules to properly remove files
28796
28797 * genmk.rb: add new clean rules
28798 * Makefile.in (clean): add the new targets
28799 (mostlyclean): likewise
28800
cda2a409 288012009-09-11 Colin Watson <cjwatson@ubuntu.com>
28802
28803 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28804 to grub_uint64_t.
28805 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28806 non-resident files.
28807
86695375 288082009-09-11 Colin Watson <cjwatson@ubuntu.com>
28809
28810 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28811 part of bug #27349.
28812
8aa1541a 288132009-09-10 Felix Zielcke <fzielcke@z-51.de>
28814
28815 * util/grub-mkconfig.in: Make the created config mode 400 and
28816 print a warning if it fails.
28817
48d9bb0a 288182009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28819
28820 * util/grub.d/40_custom.in: Ask user to type custom entries below
28821 comment, rather than below 'exec tail' line.
28822
3b0521be 288232009-09-10 Colin Watson <cjwatson@ubuntu.com>
28824
28825 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28826 visible in grub.cfg.
28827
50051d55 288282009-09-10 Colin Watson <cjwatson@ubuntu.com>
28829
28830 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28831 file.
28832
c0d34387 288332009-09-10 Felix Zielcke <fzielcke@z-51.de>
28834
28835 * docs/grub.cfg: Add an example menu entry for memtest86+.
28836
80a608f3 288372009-09-09 Felix Zielcke <fzielcke@z-51.de>
28838
a2094832 28839 * config.guess: Update to latest version from config git.
80a608f3 28840 * config.sub: Likewise.
28841
99423078 288422009-09-08 Colin Watson <cjwatson@ubuntu.com>
28843
28844 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28845 unknown-command case. Fixes bug #27320.
28846
44454e4c 288472009-09-08 Felix Zielcke <fzielcke@z-51.de>
28848
28849 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28850 `help' if the command exists.
28851
e30d87ad 288522009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28853
28854 * INSTALL: Require GCC 4.1.3 or later.
28855
9a86f1ec 288562009-09-06 Yves Blusseau <blusseau@zetam.org>
28857
28858 * Makefile.in (RMKFILES): add i386-qemu.rmk
28859 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28860 $(srcdir)/stamp-h.in
28861
7f26d466 288622009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28863
28864 * util/grub-probe.c (probe): Comment out buggy codepath, which
28865 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28866 should be re-enabled after 1.97.
28867
3a613259 288682009-09-05 Felix Zielcke <fzielcke@z-51.de>
28869
28870 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28871 find searches for.
28872
197f76c7 288732009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28874
28875 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28876 unnecessary calls to grub_error.
28877
70ba68ce 288782009-09-04 Colin Watson <cjwatson@ubuntu.com>
28879
28880 * NEWS: Mention `keystatus' and Unicode fonts.
28881
4ff0d7a4 288822009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28883
28884 * configure.ac: Bump version to 1.97~beta2.
28885 * docs/version.texi: Likewise.
28886
77c55a87 288872009-09-03 Colin Watson <cjwatson@ubuntu.com>
28888
28889 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28890 containing unwind information in some cases where it previously did
28891 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28892 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28893 discussion.
28894
f79572cd 288952009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28896
28897 Embedding loadenv module into grub-emu
28898
28899 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28900 commands/loadenv.c
28901 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28902 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28903 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28904 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28905 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28906 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28907
93a81088 289082009-09-03 Magnus Granberg <zorry@ume.nu>
28909
28910 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28911 include -fPIE in the default specs.
28912 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28913 to TARGET_CFLAGS.
28914
160034b2 289152009-09-03 Felix Zielcke <fzielcke@z-51.de>
28916
28917 * INSTALL: Note that GNU Bison 2.3 or later is required.
28918
087c07c4 289192009-09-03 Colin Watson <cjwatson@ubuntu.com>
28920
28921 * kern/i386/pc/startup.S: Fix typo.
28922
cbf978c0 289232009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28924
28925 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28926 according to GCS.
28927
289282009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 28929
28930 * docs/grub.texi (Naming convention): Describe one-based partition
28931 numbering.
28932 (Device syntax): Likewise.
28933 (File name syntax): Likewise.
28934 (Block list syntax): Likewise.
28935 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28936 menu.lst.
28937 (File name syntax): Likewise.
28938 (Command-line and menu entry commands): Document acpi, blocklist,
28939 crc, export, insmod, keystatus, ls, set, and unset commands.
28940
f3e8cdfd 289412009-09-02 Colin Watson <cjwatson@ubuntu.com>
28942
28943 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28944 to avoid implying that only one of --shift, --ctrl, or --alt may be
28945 used.
28946
c0bc232b 289472009-09-02 Colin Watson <cjwatson@ubuntu.com>
28948
28949 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28950 rather than comparing against S_IFREG, which will almost never work.
28951
aa0f752d 289522009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28953
28954 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28955 (write_blocklists): Likewise.
28956
ecb3166a 289572009-09-01 Colin Watson <cjwatson@ubuntu.com>
28958
28959 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28960 argument to grub_printf.
28961
c403a125 289622009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 28963
28964 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 28965 non GNU test.
31aba781 28966
b5e7312c 289672009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28968
28969 * kern/file.c (grub_file_read): Spelling fix
28970
fe00f472 289712009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28972
28973 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28974 loading of headers in some cases.
28975
cc55302e 289762009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28977
28978 * configure.ac: Bump version to 1.97~beta1.
28979 * docs/version.texi: Likewise.
28980
5c90cdd2 289812009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 28982
28983 * include/grub/i386/xnu.h: Add license header.
28984 include grub/err.h explicitly.
28985
c90edae4 289862009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28987
28988 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28989 to `ufs' in the vfs.root.mountfrom kernel parameter.
28990
d8888b5c 289912009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28992
28993 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28994
28995 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28996 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28997
28998 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28999 `ARRAY_SIZE' macro.
29000
6f07b921 290012009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29002
29003 * kern/file.c (grub_file_read): Check offset.
29004 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
29005 * fs/jfs.c (grub_jfs_read_file): Likewise.
29006 * fs/ntfs.c (grub_ntfs_read): Likewise.
29007 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
29008 * fs/minix.c (grub_minix_read_file): Correct offset check.
29009 * fs/ufs.c (grub_ufs_read_file): Likewise.
29010
b4f34077 290112009-08-28 Colin Watson <cjwatson@ubuntu.com>
29012
29013 * term/i386/pc/console.c (bios_data_area): Cast
29014 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
29015
e7c69859 290162009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29017
29018 1-bit optimised blitters.
29019
29020 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
29021 prototype.
29022 (grub_video_fbblit_replace_24bit_1bit): Likewise.
29023 (grub_video_fbblit_replace_16bit_1bit): Likewise.
29024 (grub_video_fbblit_replace_8bit_1bit): Likewise.
29025 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
29026 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
29027 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
29028 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
29029 function.
29030 (grub_video_fbblit_replace_24bit_1bit): Likewise.
29031 (grub_video_fbblit_replace_16bit_1bit): Likewise.
29032 (grub_video_fbblit_replace_8bit_1bit): Likewise.
29033 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
29034 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
29035 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
29036 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
29037 when possible.
29038 * video/video.c (grub_video_get_blit_format): Return
29039 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
29040
a57da43f 290412009-08-28 Colin Watson <cjwatson@ubuntu.com>
29042
29043 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
29044 the first argument to grub_printf.
29045
4cbe67e5 290462009-08-28 Colin Watson <cjwatson@ubuntu.com>
290472009-08-28 Robert Millan <rmh.grub@aybabtu.com>
29048
29049 Add `getkeystatus' terminal method. Add a new `keystatus' command
29050 to query it.
29051
29052 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
29053 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
29054 modifier key bitmasks.
29055 (struct grub_term_input): Add `getkeystatus' member.
29056 (grub_getkeystatus): Add prototype.
29057 * kern/term.c (grub_getkeystatus): New function.
29058
29059 * include/grub/i386/pc/memory.h
29060 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
29061 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
29062 Data Area layout.
29063 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
29064 (grub_console_term_input): Set `getkeystatus' member.
29065 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
29066 constants.
29067 (grub_usb_keyboard_getreport): Likewise.
29068 (grub_usb_keyboard_checkkey): Likewise.
29069 (grub_usb_keyboard_getkeystatus): New function.
29070 (grub_usb_keyboard_term): Set `getkeystatus' member.
29071
29072 * commands/keystatus.c: New file.
29073 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
29074 (keystatus_mod_SOURCES): New variable.
29075 (keystatus_mod_CFLAGS): Likewise.
29076 (keystatus_mod_LDFLAGS): Likewise.
29077 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
29078 commands/keystatus.c.
29079 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29080 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29081 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29082 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29083 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29084 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 29085
6e2a9085 290862009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29087
29088 Split befs.mod and afs.mod into *_be.mod and *.mod
29089
29090 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
29091 (grub_fstest_SOURCES): Likewise.
29092 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
29093 (afs_be_mod_SOURCES): New variable.
29094 (afs_be_mod_CFLAGS): Likewise.
29095 (afs_be_mod_LDFLAGS): Likewise.
29096 (befs_be_mod_SOURCES): Likewise.
29097 (befs_be_mod_CFLAGS): Likewise.
29098 (befs_be_mod_LDFLAGS): Likewise.
29099 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
29100 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29101 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29102 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29103 (grub_emu_SOURCES): Likewise.
29104 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29105 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29106 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29107 * fs/afs_be.c: New file.
29108 * fs/befs_be.c: New file.
29109 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
29110 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
29111 (U16): Replaced with ...
29112 (grub_afs_to_cpu16): ...this. All users updated.
29113 (U32): Replaced with ...
29114 (grub_afs_to_cpu32): ...this. All users updated.
29115 (U64): Replaced with ...
29116 (grub_afs_to_cpu64): ...this. All users updated.
29117 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
29118 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 29119 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 29120 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29121 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29122 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29123 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29124 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29125 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29126 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29127 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29128
32a71655 291292009-08-26 Bean <bean123ch@gmail.com>
29130
29131 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
29132 64-bit number.
29133 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
29134 (grub_xfs_inode_block): Change return type to grub_uint64_t.
29135 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
29136
552bf6c5 291372009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29138
29139 NetBSD memory map support.
29140
29141 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
29142 (grub_netbsd_btinfo_mmap_header): New structure.
29143 (grub_netbsd_btinfo_mmap_entry): Likewise.
29144 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
29145
1ae2078c 291462009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29147
29148 Enable bsd.mod on coreboot.
29149
29150 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
29151 (bsd_mod_SOURCES): New variable.
29152 (bsd_mod_CFLAGS): Likewise.
29153 (bsd_mod_LDFLAGS): Likewise.
29154 (bsd_mod_ASFLAGS): Likewise.
29155 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
29156 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
29157
beefc598 291582009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29159
29160 Cleanup NetBSD root support.
29161
29162 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
29163 grub_bsd_get_device.
29164 Fix typo.
29165
3b76e68b 291662009-08-25 Felix Zielcke <fzielcke@z-51.de>
29167
29168 * util/grub.d/00_header.in: Move check for the video backend of
29169 gfxterm from here ...
29170 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
29171 a suitable video backend.
29172
aea664ea 291732009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29174
29175 Fix breakage in grub-setup.
29176
29177 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
29178 "msdos_partition_map".
29179
ff747d50 291802009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29181
29182 Fix breakage in normal/auth.c.
29183
29184 * normal/auth.c (grub_iswordseparator): New function.
29185
e7e1f93f 291862009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29187
29188 Authentication support.
29189
29190 * commands/password.c: New file.
29191 * conf/common.rmk (pkglib_MODULES): Add password.mod.
29192 (password_mod_SOURCES): New variable.
29193 (password_mod_CFLAGS): Likewise.
29194 (password_mod_LDFLAGS): Likewise.
29195 (normal_mod_SOURCES): Add normal/auth.c.
29196 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
29197 normal/auth.c.
29198 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29199 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29200 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29201 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29202 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29203 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29204 * include/grub/auth.h: New file.
29205 * include/grub/err.h (grub_err_t): New enum value
29206 GRUB_ERR_ACCESS_DENIED.
29207 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
29208 'users'.
29209 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
29210 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
29211 users updated.
29212 * normal/auth.c: New file.
29213 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
29214 (grub_cmdline_run): Don't allow to go to command line without
29215 authentication.
29216 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
29217 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
29218 menuentry without superuser rights.
29219 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
29220 user isn't a superuser.
29221
70f1161d 292222009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29223
29224 Save space by inlining misc.c functions.
29225
29226 * kern/misc.c (grub_iswordseparator): Made static.
29227 * kern/misc.c (grub_strcat): Moved from here ...
29228 * include/grub/misc.h (grub_strcat): ... here. Inlined.
29229 * kern/misc.c (grub_strncat): Moved from here ...
29230 * include/grub/misc.h (grub_strncat): ... here. Inlined.
29231 * kern/misc.c (grub_strcasecmp): Moved from here ...
29232 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
29233 * kern/misc.c (grub_strncasecmp): Moved from here ...
29234 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
29235 * kern/misc.c (grub_isalpha): Moved from here ...
29236 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
29237 * kern/misc.c (grub_isdigit): Moved from here ...
29238 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
29239 * kern/misc.c (grub_isgraph): Moved from here ...
29240 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
29241 * kern/misc.c (grub_tolower): Moved from here ...
29242 * include/grub/misc.h (grub_tolower): ... here. Inlined.
29243
48e40bff 292442009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29245
29246 * script/sh/function.c (grub_script_function_find): Cut error message
29247 not to flood terminal.
29248 * script/sh/lexer.c (grub_script_yylex): Remove command line length
29249 limit.
29250 * script/sh/script.c (grub_script_arg_add): Duplicate string.
29251
c385bfc3 292522009-08-24 Colin Watson <cjwatson@ubuntu.com>
29253
29254 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
29255 `report' grub_uint8_t *.
29256 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
29257 Use a 50-millisecond timeout rather than just repeating
29258 grub_usb_keyboard_getreport 50 times.
29259 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
29260
2d21e3e8 292612009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29262
29263 Rename *_partition_map to part_*
29264
29265 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
29266 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
29267 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
29268 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
29269 All users updated.
29270 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
29271 All users updated.
29272 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
29273 * util/grub-probe.c (probe_partmap): Don't transform partition name
29274 to get module name.
29275
dd103c4e 292762009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29277
29278 Fix OpenBSD and NetBSD support.
29279
29280 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
29281 memory address conflict.
29282 (OPENBSD_MMAP_ACPI): New definition.
29283 (OPENBSD_MMAP_NVS): Likewise.
29284 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
29285 and OPENBSD_MMAP_NVS.
29286 Add memory map terminator
29287 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 29288 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 29289
16c84d74 292902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29291
29292 Let user specify NetBSD root device.
29293
29294 * loader/i386/bsd.c (netbsd_root): New variable.
29295 (netbsd_opts): New option 'root'.
29296 (NETBSD_ROOT_ARG): New macro.
29297 (grub_netbsd_boot): Use 'netbsd_root'.
29298 (grub_bsd_unload): Free 'netbsd_root'.
29299 (grub_cmd_netbsd): Fill 'netbsd_root'.
29300
adb29902 293012009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29302
29303 Support for 64-bit NetBSD.
29304
29305 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
29306 point when booting non-FreeBSD.
29307
f5ae9f74 293082009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29309
29310 Support --no-smp and --no-acpi for NetBSD.
29311
29312 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
29313 (NETBSD_AB_NOACPI): Likewise.
29314 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
29315 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
29316
de74f136 293172009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29318
29319 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
29320 errors.
29321 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
29322 errors. Call grub_error when needed.
29323
e9a925da 293242009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29325
29326 * commands/search.c (search_fs): Try searching without autoload first.
29327 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
29328 filesystem module explicitly for faster booting.
29329
5174302b 293302009-08-23 Colin Watson <cjwatson@ubuntu.com>
29331
29332 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
29333
c8c80635 293342009-08-23 Colin Watson <cjwatson@ubuntu.com>
29335
29336 * util/grub.d/30_os-prober.in: Disable os-prober if
29337 `GRUB_DISABLE_OS_PROBER' was set to true.
29338
71acf5e5 293392009-08-23 Robert Millan <rmh.grub@aybabtu.com>
29340
29341 * partmap/pc.c: Rename to ...
29342 * partmap/msdos.c: ... this. Update all users.
29343 (grub_pc_partition_map): Rename to ...
29344 (grub_msdos_partition_map): ... this. Update all users.
29345
29346 * parttool/pcpart.c: Rename to ...
29347 * parttool/msdospart.c: ... this. Update all users.
29348
29349 * include/grub/pc_partition.h: Rename to ...
29350 * include/grub/msdos_partition.h: ... this. Update all users.
29351 (grub_pc_partition_bsd_entry): Rename to ...
29352 (grub_msdos_partition_bsd_entry): ... this. Update all users.
29353 (grub_pc_partition_disk_label): Rename to ...
29354 (grub_msdos_partition_disk_label): ... this. Update all users.
29355 (grub_pc_partition_entry): Rename to ...
29356 (grub_msdos_partition_entry): ... this. Update all users.
29357 (grub_pc_partition_mbr): Rename to ...
29358 (grub_msdos_partition_mbr): ... this. Update all users.
29359 (grub_pc_partition): Rename to ...
29360 (grub_msdos_partition): ... this. Update all users.
29361 (grub_pc_partition_is_empty): Rename to ...
29362 (grub_msdos_partition_is_empty): ... this. Update all users.
29363 (grub_pc_partition_is_extended): Rename to ...
29364 (grub_msdos_partition_is_extended): ... this. Update all users.
29365 (grub_pc_partition_is_bsd): Rename to ...
29366 (grub_msdos_partition_is_bsd): ... this. Update all users.
29367
29368 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
29369 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
29370 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
29371 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
29372 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
29373 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
29374 (gpt_mod_LDFLAGS): Rename to ...
29375 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
29376 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
29377 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
29378 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
29379 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
29380 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
29381 (part_gpt_mod_LDFLAGS): ... this.
29382 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
29383 `pcpart.mod' to `msdospart.mod'.
29384 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
29385 to ...
29386 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
29387 (msdospart_mod_LDFLAGS): ... this.
29388
c11fded5 293892009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29390
29391 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
29392 (openbsd_opts): Likewise.
29393 (netbsd_opts): Likewise.
29394 (freebsd_flags): Added 0 terminator.
29395 (openbsd_flags): Likewise.
29396 (netbsd_flags): Likewise.
29397 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
29398 (grub_cmd_freebsd): Transformed into extended command.
29399 (grub_cmd_openbsd): Likewise.
29400 (grub_cmd_netbsd): Likewise.
29401 (cmd_freebsd): Changed type to grub_extcmd_t.
29402 (cmd_openbsd): Likewise.
29403 (cmd_netbsd): Likewise.
29404 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
29405 grub_cmd_openbsd as extended commands.
29406 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
29407 cmd_netbsd and cmd_openbsd
29408
11d1c769 294092009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
29410
29411 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
29412
7a9094e5 294132009-08-21 Pavel Roskin <proski@gnu.org>
29414
5496c37e 29415 * Makefile.in (install-local): When checking if a file is in the
29416 build directory, use "test -e" to detect symlinks.
29417
7a9094e5 29418 * Makefile.in (install-local): Remove all files in
29419 $(DESTDIR)$(pkglibdir) before installing new files there.
29420
e53cea11 294212009-08-18 Felix Zielcke <fzielcke@z-51.de>
29422
29423 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29424 grub-mkelfimage.
29425
9aced544 294262009-08-18 Felix Zielcke <fzielcke@z-51.de>
29427
29428 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29429 explicitly specified by the user.
29430
b7da6bab 294312009-08-18 Pavel Roskin <proski@gnu.org>
29432
29433 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29434 grub_uint8_t pointer for data.
29435 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29436 Likewise.
29437 * video/fb/fbutil.c: Remove unnecessary casts.
29438
19f1b335 294392009-08-17 Michal Suchanek <hramrach@centrum.cz>
29440
29441 VBE cleanup.
29442
29443 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29444 (grub_vbe_set_video_mode): Save active mode info
29445 only after setting the mode.
29446 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29447 second argument.
29448
2f467aa9 294492009-08-17 Michal Suchanek <hramrach@centrum.cz>
29450
29451 Rename variables for clarity.
29452
29453 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29454 (active_vbe_mode_info): ... this. All users updated.
29455 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29456 All users updated.
29457 (initial_mode): Rename to ...
29458 (initial_vbe_mode): ... this. All users updated.
29459 (mode_in_use): Rename to ..
29460 (vbe_mode_in_use): ... this. All users updated.
29461 (mode_list): Rename to ..
29462 (vbe_mode_list): ... this. All users updated.
29463 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29464 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29465 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29466 'mode_list_size' to 'vbe_mode_list_size'.
29467 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29468 'best_mode_info' to 'best_vbe_mode_info' and
29469 'best_mode' to 'best_vbe_mode'
29470
6025fcd7 294712009-08-17 Michal Suchanek <hramrach@centrum.cz>
29472
29473 Remove duplicate grub_video_fb_get_video_ptr.
29474
29475 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29476 (grub_video_fb_get_video_ptr): ... this.
29477 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29478 * video/fb/fbutil.c: Add comment about addressing.
29479 (get_data_ptr): Rename to ...
29480 (grub_video_fb_get_video_ptr): ... this. All users updated.
29481 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29482
cc8c6faf 294832009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29484
29485 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29486 grub_dprintf() that was just added.
29487
08aa61f0 294882009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29489
29490 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29491 (DEFAULT_VIDEO_MODE): Remove macros.
29492 (grub_linux_boot): Remove assumption that Linux has FB support,
29493 and use "text" as default video mode.
29494
7cef4f75 294952009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29496
29497 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29498 grub_dprintf.
29499 * fs/fat.c (grub_fat_read_data): Likewise.
29500
e1f39873 295012009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29502
29503 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29504 payload.
29505 (grub_module): Likewise.
29506
c166d79e 295072009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29508
29509 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29510 mbi->cmdline but free playground.
29511
c60cee8e 295122009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29513
29514 Handle group offset on UFS1.
29515
29516 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29517 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29518
c0d8b5d4 295192009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29520
29521 Split ufs.mod into ufs1.mod and ufs2.mod.
29522
29523 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29524 (grub_fstest_SOURCES): Likewise.
29525 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29526 (ufs_mod_SOURCES): Remove.
29527 (ufs_mod_CFLAGS): Likewise.
29528 (ufs_mod_LDFLAGS): Likewise.
29529 (ufs1_mod_SOURCES): New variable.
29530 (ufs1_mod_CFLAGS): Likewise.
29531 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 29532 (ufs2_mod_SOURCES): New variable.
29533 (ufs2_mod_CFLAGS): Likewise.
29534 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 29535 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29536 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29537 Likewise.
29538 (grub_emu_SOURCES): Likewise.
29539 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29540 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29541 (grub_setup_SOURCES): Likewise.
29542 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29543 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29544 (grub_setup_SOURCES): Likewise.
29545 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29546 Likewise.
29547 * fs/ufs2.c: New file.
29548 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29549
d3539132 295502009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29551
29552 Framebuffer split.
29553
29554 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29555 subsystem at the end.
29556 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29557 (video_fb_mod_SOURCES): New variable.
29558 (video_fb_mod_CFLAGS): Likewise.
29559 (video_fb_mod_LDFLAGS): Likewise.
29560 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29561 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29562 * video/i386/pc/vbeblit.c: Moved from here ...
29563 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29564 * video/i386/pc/vbefill.c: Moved from here ...
29565 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29566 * video/i386/pc/vbeutil.c: Moved from here ...
29567 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29568 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29569 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29570 * include/grub/i386/pc/vbefill.h: Moved from here ...
29571 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29572 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29573 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29574 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29575 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29576 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29577 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29578 (grub_video_adapter): Added 'get_info_and_fini'.
29579 (grub_video_get_info_and_fini): New prototype.
29580 (grub_video_set_mode): make modestring const char *.
29581 * loader/i386/linux.c (grub_linux_setup_video): Use
29582 grub_video_get_info_and_fini.
29583 (grub_linux_boot): Move modesetting just before booting.
29584 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29585 grub_video_get_info_and_fini.
29586 * video/i386/pc/vbe.c: Moved framebuffer part ...
29587 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29588 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29589 grub_video_fbstd_colors and grub_video_fb_set_palette.
29590 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29591 grub_video_fb_init.
29592 (grub_video_vbe_fini): Use grub_video_fb_fini.
29593 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29594 render_target and use grub_video_fb_set_active_render_target and
29595 grub_video_fb_set_palette.
29596 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29597 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29598 (grub_video_vbe_adapter): Use framebuffer.
29599 * video/video.c (grub_video_get_info_and_fini): New function.
29600 (grub_video_set_mode): Make modestring const char *.
29601 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29602 values are already initialised.
29603
d404ee56 296042009-08-14 Pavel Roskin <proski@gnu.org>
29605
29606 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29607 ABS and APPLE_CC.
29608 * boot/i386/pc/diskboot.S: Likewise.
29609 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29610 sectors allow compilation on MacOSX.
29611 * conf/i386-pc.rmk: Enable unconditional compilation of
29612 lnxboot.img.
29613
9a10df16 296142009-08-13 Colin Watson <cjwatson@ubuntu.com>
29615
29616 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29617 * util/grub.d/00_header.in: Enter interruptible sleep if
29618 GRUB_HIDDEN_TIMEOUT is set.
29619
be3c9ca7 296202009-08-13 Yves Blusseau <blusseau@zetam.org>
29621
29622 * include/grub/symbol.h: Add the LOCAL macro.
29623 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29624 starting with "L_".
29625
1f9e557e 296262009-08-13 Pavel Roskin <proski@gnu.org>
29627
9ca62843 29628 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29629 any modern compilers we support.
29630
1f9e557e 29631 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29632 Use local labels starting with "L_" so that Apple assembler
29633 knows they are local.
29634
81623db6 296352009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29636
29637 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29638 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29639 (bsd_kernel_types): ... this enum.
29640
29641 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29642 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29643 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29644
29645 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29646 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29647 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29648 messages.
29649
f5d35e7a 296502009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29651
29652 * util/grub-dumpdevtree: Moved from here ...
29653 * util/i386/efi/grub-dumpdevtree: ... to here.
29654 (hexify): New function. Converts a string to its hex version.
29655 Generate hex versions of "efi" and "device-properties" by calling
29656 hexify() on the ASCII strings rather than by hardcoding numbers.
29657
d1e1d527 296582009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29659
29660 * fs/jfs.c: Update copyright year.
29661
1ebbe064 296622009-08-08 Felix Zielcke <fzielcke@z-51.de>
29663
29664 * util/grub.d/00_header.in: Fix a comment.
29665 * util/grub.d/10_linux.in: Likewise.
29666 * util/grub.d/10_windows.in: Likewise.
29667 * util/grub.d/10_hurd.in: Likewise.
29668
a78c8d24 296692009-08-08 Felix Zielcke <fzielcke@z-51.de>
29670
29671 * util/grub-mkconfig.in: Allow the user to specify the used font
29672 with GRUB_FONT.
29673
29a6b9e8 296742009-08-08 Pavel Roskin <proski@gnu.org>
29675
b5f16cc4 29676 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29677 available, xfs.mod needs it now.
29678
2f5cb827 29679 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29680 the "g" modifier in sed when the intention is to strip something
29681 once. This fixes comparison of kernels with multiple dashes.
29682
29a6b9e8 29683 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29684 on it. Add missing space before closing bracket. Fix
29685 misleading formatting.
29686
892a3d98 296872009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29688
29689 * docs/grub.texi: Major overhaul. Remove all sections that are
29690 specific to GRUB Legacy, or mostly composed of Legacy-specific
29691 information.
29692
ed94253f 296932009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29694
29695 * docs/version.texi: New file. Provides version information for
29696 grub.texi.
29697
126d6628 296982009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29699
29700 * docs/grub.texi: Update CVS information to SVN.
29701 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29702
998b5aa9 297032009-08-07 Felix Zielcke <fzielcke@z-51.de>
29704
29705 * util/grub-mkconfig.in: Remove a wrong `fi'.
29706
818e094a 297072009-08-07 Felix Zielcke <fzielcke@z-51.de>
29708
29709 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29710 (grub_jfs_uuid): New function.
29711 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29712
b969c52f 297132009-08-07 Felix Zielcke <fzielcke@z-51.de>
29714
29715 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29716 of it to ...
29717 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29718 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29719
7a4894cc 297202009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29721
29722 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29723 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29724 Update all users.
29725
29726 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29727 not just "vmlinu[zx]".
29728 Moved from here ...
29729 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29730 all users.
29731
29732 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29733 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29734 all users.
29735
4e2171f8 297362009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29737
29738 * util/grub.d/10_freebsd.in: Use an absolute device path for
29739 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29740
6dcfcb32 297412009-08-06 Felix Zielcke <fzielcke@z-51.de>
29742
29743 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29744 handling of multiple abstraction modules.
29745
f56a8756 297462009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29747
29748 Fix a bug resulting in black screen when loading Linux using a
29749 packed video mode.
29750
29751 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29752 function.
29753
29754 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29755 (grub_vbe_bios_getset_dac_palette_width): New function.
29756 (grub_vbe_bios_get_dac_palette_width)
29757 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29758 grub_vbe_bios_getset_dac_palette_width()).
29759
29760 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29761 check for return status.
29762 (grub_vbe_get_video_mode_info): When getting information for a packed
29763 mode (<= 8 bpp), obtain DAC palette width using
29764 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29765 {red,green,blue}_mark_size.
29766
222671b2 297672009-08-04 Felix Zielcke <fzielcke@z-51.de>
29768
ecb1a6d9 29769 * commands/search.c (options): Fix help output to match actual code.
222671b2 29770
f84114f5 297712009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29772
29773 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29774 of homegrown code.
29775
bd288a20 297762009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 29777
29778 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29779 on XFS or ReiserFS.
29780
8aab5e25 297812009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29782
29783 Support Apple partition map with sector size different from 512 bytes.
29784
29785 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29786 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29787 and 'apart.partmap_size'.
29788
6ad6258a 297892009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
297902009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29791
29792 Fix cpuid command.
29793
29794 * commands/i386/cpuid.c (options): New variable.
29795 (grub_cmd_cpuid): Return real error.
29796 (GRUB_MOD_INIT(cpuid)): Declare options.
29797
67459bc6 297982009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29799
29800 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29801 valid.
29802
fbc6ab54 298032009-07-31 Bean <bean123ch@gmail.com>
29804
29805 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29806 log2_inode.
29807 (grub_fshelp_node): Move inode field to the end.
29808 (grub_xfs_data): Remove inode field.
29809 (grub_xfs_inode_block): Calculate inode size using sblock.
29810 (grub_xfs_inode_offset): Likewise.
29811 (grub_xfs_read_inode): Calculate inode size using sblock.
29812 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29813 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29814 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29815 to match inode size.
29816 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29817 not accessible when data is null.
29818 (grub_xfs_open): Likewise.
29819
f45d6cfc 298202009-07-31 Bean <bean123ch@gmail.com>
29821
29822 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29823 Don't change pv->disk if it's already set.
29824
29825 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29826 (grub_raid_register): ... here.
29827 (grub_raid_rescan): Removed.
29828
29829 * include/grub/raid.h (grub_raid_rescan): Removed.
29830
29831 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29832 (fstest): Replace grub_raid_rescan with module fini function followed
29833 by init function.
29834
29835 * util/grub-probe.c: Add include file <grub/raid.h>.
29836 (probe_raid_level): New function.
29837 (probe): Detect abstraction by walking the disk device, support two
29838 level of abstraction (LVM on RAID) when detecting partition map.
29839
24443b5a 298402009-07-31 Pavel Roskin <proski@gnu.org>
29841
29842 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29843 to grub_zalloc(), it was erroneous.
29844 Reported by Bean <bean123ch@gmail.com>
29845
a275d9e7 298462009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29847
29848 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 29849 embedding zone, not only the first one.
a275d9e7 29850
56c5a47f 298512009-07-29 Joe Auricchio <jauricchio@gmail.com>
29852
29853 * term/gfxterm.c (clear_char): New function.
29854 (grub_virtual_screen_setup): Use clear_char.
29855 (scroll_up): Likewise.
29856 (grub_virtual_screen_cls): Likewise.
29857
67bb323a 298582009-07-29 Felix Zielcke <fzielcke@z-51.de>
29859
29860 * util/deviceiter.c (get_acceleraid_disk_name): New static
29861 function.
29862 (grub_util_iterate_devices): Handle Accelraid devices.
29863 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29864
388a7c75 298652009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29866
29867 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29868 separator for the suggested gfxpayload string (';' collides with the
29869 parser and needs escaping).
29870
3bb7abcf 298712009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29872
29873 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29874 Clear direction flag before jumping to OS.
29875 (grub_multiboot2_real_boot): Likewise.
29876
2ddd36d7 298772009-07-28 Felix Zielcke <fzielcke@z-51.de>
29878
29879 * util/i386/pc/grub-install: Fix parsing of --disk-module
29880 option.
29881
c521b62b 298822009-07-28 Felix Zielcke <fzielcke@z-51.de>
29883
29884 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29885 when embedding.
29886
880e0a0c 298872009-07-26 Felix Zielcke <fzielcke@z-51.de>
29888
29889 * util/grub-mkconfig.in (package_version): New variable.
29890 Use it do display the version.
29891
2366e356 298922009-07-25 Felix Zielcke <fzielcke@z-51.de>
29893
29894 * kern/file.c (grub_file_open): Revert to previous check with
29895 grub_errno.
29896
7ad8c80e 298972009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29898
29899 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29900 from help line. It's out of sync with code.
29901
72b9658b 299022009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29903
29904 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29905 entries on failed boot.
29906
77435277 299072009-07-25 Felix Zielcke <fzielcke@z-51.de>
29908
29909 * kern/file.c (grub_file_open): Fix an error check.
29910
fcaa8b21 299112009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29912
35d16c74 29913 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29914 partition map couldn't be identified.
fcaa8b21 29915
48904cd1 299162009-07-23 Pavel Roskin <proski@gnu.org>
29917
ef3c317f 29918 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29919 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29920 case of little endian words becomes just an optimization.
29921 Respect const modifier.
ad8ea1f4 29922 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 29923
48904cd1 29924 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29925 to avoid loss of upper bits if align is unsigned and shorter
29926 than addr.
29927
260c9a89 299282009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29929
29930 UUID support for UFS
29931
29932 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29933 (grub_ufs_uuid): New function.
29934 (grub_ufs_fs): add .uuid
29935
f76ce889 299362009-07-21 Pavel Roskin <proski@gnu.org>
29937
29938 * kern/dl.c (grub_dl_check_header): Make static.
29939
6a6cbcaf 299402009-07-21 Felix Zielcke <fzielcke@z-51.de>
29941
29942 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29943 add drivemap for Vista. It breaks Windows 7.
29944
cffcddb2 299452009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29946
29947 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29948 128 bytes
29949
1ef44b80 299502009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29951
29952 Add BFS support
29953
29954 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29955 (grub_fstest_SOURCES): Likewise.
29956 (pkglib_MODULES): Add befs.mod.
29957 (befs_mod_SOURCES): New variable.
29958 (befs_mod_CFLAGS): Likewise.
29959 (befs_mod_LDFLAGS): Likewise.
29960 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29961 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29962 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29963 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29964 (grub_setup_SOURCES): Likewise.
29965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29966 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29967 (grub_setup_SOURCES): Likewise.
29968 * fs/befs.c: New file.
29969 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29970 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29971 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29972 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29973 (B_KEY_INDEX_ALIGN): New declaration.
29974 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29975 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29976 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29977 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29978 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29979 (grub_afs_mount) [MODE_BFS]: Likewise.
29980 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29981 (grub_afs_fs): Use GRUB_AFS_FSNAME
29982 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29983 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29984 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29985 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29986
4f253044 299872009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29988
29989 * util/getroot.c (find_root_device): Add support for MacOSX.
29990 * util/hostdisk.c: Likewise.
29991
57a55913 299922009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29993
29994 * font/font.c (find_glyph): Check whether a font is present to avoid
29995 segmentation fault.
75421ca9 29996
299972009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 29998
29999 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
30000
e98cd0c2 300012009-07-20 Pavel Roskin <proski@gnu.org>
30002
30003 * configure.ac: Trim excessively wordy excuses.
30004
1d2d169a 300052009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30006
30007 Add symlink, mtime and label support to AtheFS.
30008
30009 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
30010 (grub_afs_iterate_dir): Handle symlinks.
30011 (grub_afs_open): Use grub_afs_read_symlink.
30012 (grub_afs_dir): Likewise.
30013 Pass mtime.
30014 (grub_afs_label): New function.
30015 (grub_afs_fs): Add grub_afs_label.
30016 (grub_afs_read_symlink): New function.
30017
186f3189 300182009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30019
30020 Fix AtheFS support.
30021
30022 * fs/afs.c: Fix comments style.
30023 (grub_afs_blockrun): Declare as packed.
30024 (grub_afs_datastream): Likewise.
30025 (grub_afs_bnode): Likewise.
30026 (grub_afs_btree): Likewise.
30027 (grub_afs_sblock): Likewise.
30028 Declare `name' as char.
30029 (grub_afs_inode): Declare as packed.
30030 Change void *vnode to grub_uint32_t unused.
30031 (grub_afs_iterate_dir): Check that key_size is positive.
30032 (grub_afs_mount): Don't read superblock twice.
75421ca9 30033 (grub_afs_dir): Don't free node in case of error,
186f3189 30034 grub_fshelp_find_file already handles this.
30035 (grub_afs_open): Likewise.
30036
5680109e 300372009-07-19 Pavel Roskin <proski@gnu.org>
30038
30039 * Makefile.in: Remove LIBLZO and enable_lzo.
30040 * conf/i386-pc.rmk: Remove lzo support.
30041 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
30042 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
30043 support.
30044 * kern/i386/pc/lzo1x.S: Remove.
30045 * kern/i386/pc/startup.S: Remove lzo support.
30046 * util/i386/pc/grub-mkimage.c: Likewise.
30047
ac70fa32 300482009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
30049
30050 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
30051 * fs/xfs.c (grub_xfs_dir): Likewise.
30052 * fs/afs.c (grub_afs_dir): Likewise.
30053 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
30054 (grub_iso9660_open): Likewise.
30055 * fs/jfs.c (grub_jfs_open): Likewise.
30056 * fs/ext2.c (grub_ext2_dir): Likewise.
30057 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
30058 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 30059
eab58da2 300602009-07-16 Pavel Roskin <proski@gnu.org>
30061
d2838156 30062 * configure.ac: Never add "-c" to CFLAGS.
30063
55c70904 30064 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
30065
43e6200c 30066 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
30067 grub_cv_cc_efiemu should be used.
30068
ce7a733d 30069 * configure.ac: Typo fixes.
30070
eab58da2 30071 * kern/mm.c (grub_zalloc): New function.
30072 (grub_debug_zalloc): Likewise.
30073 * include/grub/mm.h: Declare grub_zalloc() and
30074 grub_debug_zalloc().
30075 * util/misc.c (grub_zalloc): New function.
30076 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
30077 instead of grub_malloc(), remove unneeded initializations.
30078 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
30079 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
30080 * commands/parttool.c (grub_cmd_parttool): Likewise.
30081 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
30082 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
30083 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
30084 * disk/usbms.c (grub_usbms_finddevs): Likewise.
30085 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
30086 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
30087 (grub_cmd_efiemu_pnvram): Likewise.
30088 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
30089 * fs/iso9660.c (grub_iso9660_mount): Likewise.
30090 (grub_iso9660_iterate_dir): Likewise.
30091 * fs/jfs.c (grub_jfs_opendir): Likewise.
30092 * fs/ntfs.c (list_file): Likewise.
30093 (grub_ntfs_mount): Likewise.
30094 * kern/disk.c (grub_disk_open): Likewise.
30095 * kern/dl.c (grub_dl_load_core): Likewise.
30096 * kern/elf.c (grub_elf_file): Likewise.
30097 * kern/env.c (grub_env_context_open): Likewise.
30098 (grub_env_set): Likewise.
30099 (grub_env_set_data_slot): Likewise.
30100 * kern/file.c (grub_file_open): Likewise.
30101 * kern/fs.c (grub_fs_blocklist_open): Likewise.
30102 * loader/i386/multiboot.c (grub_module): Likewise.
30103 * loader/xnu.c (grub_xnu_create_key): Likewise.
30104 (grub_xnu_create_value): Likewise.
30105 * normal/main.c (grub_normal_add_menu_entry): Likewise.
30106 (read_config_file): Likewise.
30107 * normal/menu_entry.c (make_screen): Likewise.
30108 * partmap/sun.c (sun_partition_map_iterate): Likewise.
30109 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
30110 * script/sh/script.c (grub_script_parse): Likewise.
30111 * video/bitmap.c (grub_video_bitmap_create): Likewise.
30112 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
30113 * video/readers/png.c (grub_png_output_byte): Likewise.
30114 (grub_video_reader_png): Likewise.
30115
830afef7 301162009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 30117
30118 Enable all targets that can be built by default
30119
830afef7 30120 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 30121 grub-mkfont and grub-fstest if they can be built
30122
ee293aee 301232009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30124
30125 Fix hang and segmentation fault in grub-emu-usb
30126
30127 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
30128 * util/usb.c (grub_libusb_devices): likewise
30129 (grub_libusb_init): rename to ...
30130 (GRUB_MOD_INIT (libusb)):...this
30131 (grub_libusb_fini): rename to ..
30132 (GRUB_MOD_FINI (libusb)):...this
30133 * disk/usbms.c (grub_usbms_transfer): fix retry logic
30134 * include/grub/disk.h (grub_raid_init): removed, it's useless
30135 (grub_raid_fini): likewise
30136 (grub_lvm_init): likewise
30137 (grub_lvm_fini): likewise
30138 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
30139 by grub_init_all
30140
94414221 301412009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30142
30143 Fix libusb
30144
30145 * Makefile.in (LIBUSB): new macro
30146 * genmk.rb (Utility/print_tail): new method
30147 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
30148 (top level): call util.print_tail at the end.
30149
59ade63d 301502009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30151
30152 Make FreeBSD accept zpool.cache
30153
30154 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
30155 type is /boot/zfs/zpool.cache
30156
a58da8c7 301572009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30158
30159 Fix 64-bit efiemu
30160
30161 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
30162 correct wrong typedef
30163 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
30164
20591577 301652009-07-15 Pavel Roskin <proski@gnu.org>
30166
560ca572 30167 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
30168 * kern/disk.c (struct grub_disk_cache): Likewise.
30169
e8e8e4fd 30170 * commands/probe.c (options): Typo fix.
30171
fde24e10 30172 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
30173 Increase to 0x5a to accommodate FAT32. Adjust other offsets
30174 accordingly.
30175 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
30176
379c54c1 30177 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
30178 the end of "Error" to make the message more readable.
30179
7bd8f5bf 30180 * boot/i386/pc/boot.S (kernel_segment): Remove.
30181 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
30182 for destination.
30183
40b132c5 30184 * boot/i386/pc/boot.S (boot_version): Remove.
30185 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
30186 Remove.
30187
20591577 30188 * include/grub/i386/pc/boot.h: Sort all offsets.
30189 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
30190 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
30191 * boot/i386/pc/boot.S: Assert location of every offset listed in
30192 include/grub/i386/pc/boot.h.
30193
2df32b2c 301942009-07-13 Pavel Roskin <proski@gnu.org>
30195
44b5d879 30196 * include/grub/i386/coreboot/machine.h: Rename
30197 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
30198 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
30199 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
30200
17dc3751 30201 * kern/dl.c: Force native word size to suppress warnings when
30202 compiling grub-emu.
30203
2df32b2c 30204 * kern/device.c (grub_device_iterate): Change struct part_ent to
30205 hold the name, not a pointer to it. Use one grub_malloc() per
30206 partition, not two. Free partition_name if grub_malloc() fails.
30207 Set ents to NULL only before grub_partition_iterate() is called.
30208
75c59f59 302092009-07-11 Bean <bean123ch@gmail.com>
30210
30211 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
30212 childname.
30213
0ae1bf88 302142009-07-10 Bean <bean123ch@gmail.com>
302152009-07-10 Robert Millan <rmh.grub@aybabtu.com>
30216
30217 * kern/ieee1275/openfw.c (grub_children_iterate)
30218 (grub_devalias_iterate): Fix size evaluation for property or path
30219 strings, which was broken since r2132.
30220
8279cade 302212009-07-07 Pavel Roskin <proski@gnu.org>
30222
7d8a52d3 30223 * commands/search.c (search_file): Merge into ...
30224 (search_fs): ... this. Accept search type as argument.
30225 (grub_cmd_search): Pass search type to search_fs().
30226
25f9a05a 30227 * include/grub/util/console.h: New file.
30228 * util/console.c: Use it instead of grub/machine/console.h.
30229 * util/grub-emu.c: Likewise.
30230
8279cade 30231 * lib/arg.c (find_long_option): Remove.
30232 (find_long): Add `len' argument, make `s' const char *.
30233 (grub_arg_parse): Parse long options in place, not in a
30234 temporary buffer.
30235
4a11b60f 302362009-07-06 Pavel Roskin <proski@gnu.org>
30237
99f68041 30238 * commands/search.c (search_fs): Fix potential NULL pointer
30239 dereference.
30240
4a11b60f 30241 * commands/search.c (search_fs): Replace QUID macro with quid_fn
30242 function pointer.
30243
e110f4de 302442009-07-06 Daniel Mierswa <impulze@impulze.org>
30245
30246 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
30247 comparison.
30248
46eeb6a2 302492009-07-05 Pavel Roskin <proski@gnu.org>
30250
bab74958 30251 * include/grub/i386/linux.h (struct linux_kernel_params):
30252 Restore padding3, it's still needed.
30253
46eeb6a2 30254 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
30255 FreeBSD.
30256 * util/osdetect.lua: Likewise.
30257
b4a1dc79 302582009-07-05 Bean <bean123ch@gmail.com>
30259
30260 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
30261
30262 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
30263 (grub_lua_getenv): Likewise.
30264 (grub_lua_setenv): Likewise.
30265 (save_errno): New function.
30266 (push_result): Likewise.
30267 (grub_lua_enum_device): Likewise.
30268 (grub_lua_enum_file): Likewise.
30269 (grub_lua_file_open): Likewise.
30270 (grub_lua_file_close): Likewise.
30271 (grub_lua_file_seek): Likewise.
30272 (grub_lua_file_read): Likewise.
30273 (grub_lua_file_getline): Likewise.
30274 (grub_lua_file_getsize): Likewise.
30275 (grub_lua_file_getpos): Likewise.
30276 (grub_lua_file_eof): Likewise.
30277 (grub_lua_file_exist): Likewise.
30278 (grub_lua_add_menu): Likewise.
30279
30280 * script/lua/grub_lua.h (isupper): New inline function.
30281 (islower): Likewise.
30282 (ispunct): Likewise.
30283 (isxdigit): Likewise.
30284 (strcspn): Change to normal function.
30285 (strpbkr): New function declaration.
30286 (memchr): Likewise.
30287
30288 * script/lua/grub_main.c (scan_str): New function.
30289 (strcspn): Likewise.
30290 (strpbrk): Likewise.
30291 (memchr): Likewise.
30292
30293 * script/lua/linit.c (lualibs): Enable the string library.
30294
30295 * util/osdetect.lua: New file.
30296
2da92295 302972009-07-04 Robert Millan <rmh.grub@aybabtu.com>
30298
30299 * include/grub/i386/linux.h (struct linux_kernel_params): Add
30300 `capabilities' member.
30301
b2582ec9 303022009-07-02 Pavel Roskin <proski@gnu.org>
30303
30304 * genparttoollist.sh: Add missing newline at the end.
30305
32622956 303062009-07-01 Pavel Roskin <proski@gnu.org>
30307
87a7339e 30308 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
30309
d23af54e 30310 * util/hostdisk.c (open_device): Remove `const' from
30311 `sysctl_size', as sysctlbyname() can change it (in this case it
30312 doesn't actually happen).
30313
c94b18a9 30314 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
30315 using signed long int constants.
30316
c6cd3ef0 30317 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
30318 constant to avoid a warning on FreeBSD.
30319
0df63420 30320 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
30321 where it's needed.
30322
999577f1 30323 * Makefile.in: Install include/grub/machine symlink.
30324
6f41557f 30325 * Makefile.in: When installing symlinks, use "cp -fR", which
30326 works on FreeBSD and MacOSX.
30327 From Yves Blusseau <cl7m42e02@sneakemail.com>
30328
c8d22988 30329 * kern/dl.c (grub_dl_resolve_symbol): Make static.
30330 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
30331
1b96e952 30332 * util/misc.c: Move grub_reboot() and grub_halt() ...
30333 * util/grub-emu.c: ... here. Make main_env static.
30334 * include/grub/util/misc.h: Remove main_env.
30335
2ef0084d 30336 * kern/mm.c: Use correct format to print size_t.
30337
32622956 30338 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
30339 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
30340 * kern/powerpc/dl.c: Likewise.
30341 * kern/sparc64/dl.c: Likewise.
30342 * kern/x86_64/dl.c: Likewise.
30343
3f7f0cd0 303442009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30345
30346 Fix grub-emu build on sparc64-ieee1275.
30347
75421ca9 30348 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 30349 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
30350
211d06b5 303512009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30352
30353 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
30354 (grub_reboot, grub_halt): New functions.
30355
30356 * util/i386/pc/misc.c: Delete. Update all users.
30357 * util/sparc64/ieee1275/misc.c: Likewise.
30358 * util/powerpc/ieee1275/misc.c: Likewise.
30359
aaf53e3c 303602009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30361
30362 * conf/i386.rmk (setjmp_mod_SOURCES)
30363 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
30364 * conf/common.rmk (setjmp_mod_SOURCES)
30365 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
30366 to use $(target_cpu).
30367 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
30368 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
30369 * conf/powerpc-ieee1275.rmk: Likewise.
30370 * conf/sparc64-ieee1275.rmk: Likewise.
30371
30372 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
30373 $(target_cpu) for kern/$(target_cpu)/dl.c.
30374 * conf/i386-efi.rmk: Likewise.
30375 * conf/i386-ieee1275.rmk: Likewise.
30376 * conf/x86_64-efi.rmk: Likewise.
30377 * conf/i386-coreboot.rmk: Likewise.
30378 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
30379 $(target_cpu) for kern/$(target_cpu)/dl.c and for
30380 kern/$(target_cpu)/cache.S.
30381 * conf/sparc64-ieee1275.rmk: Likewise.
30382
a337130b 303832009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30384
30385 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
30386 type to `grub_uint8_t', and adjust `padding9' accordingly.
30387
c6fe4d53 303882009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30389
b09db61d 30390 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
30391
c6fe4d53 30392 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
30393 assembly in final jump, using register constraints.
30394
b09db61d 30395 (grub_linux_boot): For text mode, initialize `have_vga' using
30396 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
30397
30398 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
30399 right before the final jump.
30400
30401 Set `video_mode' to 0x3.
30402
30403 Document initialization of `video_page', `video_mode' and
30404 `video_ega_bx'.
30405
28333ad0 304062009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30407
30408 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
30409 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 30410 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 30411
02164e1b 304122009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30413
30414 Fix build on Debian / sparc.
30415
30416 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30417
18b6c557 304182009-06-28 Pavel Roskin <proski@gnu.org>
30419
85f2aab6 30420 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30421 fix a warning.
30422
18b6c557 30423 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30424
ad760f81 304252009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30426
30427 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30428 `err'.
30429
87a4623b 304302009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30431
30432 Revert r2338.
30433
30434 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30435 file can't be opened. grub_file_open() is already supposed to set
75421ca9 30436 grub_errno / grub_errmsg appropriately.
87a4623b 30437 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30438
8231fb77 304392009-06-27 Pavel Roskin <proski@gnu.org>
304402009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30441
30442 * include/grub/dl.h: Include grub/elf.h.
30443 (struct grub_dl): Add symtab field.
30444 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30445 GRUB_MODULES_MACHINE_READONLY.
30446 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30447 of the header for read-only modules.
30448 (grub_dl_unload): Free mod->symtab for read-only modules.
30449 * kern/i386/dl.c: Use mod->symtab.
30450 * kern/powerpc/dl.c: Likewise.
30451 * kern/sparc64/dl.c: Likewise.
30452 * kern/x86_64/dl.c: Likewise.
30453
30454 * conf/i386-qemu.rmk: New file.
30455 * kern/i386/qemu/startup.S: Likewise.
30456 * kern/i386/qemu/mmap.c: Likewise.
30457 * boot/i386/qemu/boot.S: Likewise.
30458 * include/grub/i386/qemu/time.h: Likewise.
30459 * include/grub/i386/qemu/serial.h: Likewise.
30460 * include/grub/i386/qemu/kernel.h: Likewise.
30461 * include/grub/i386/qemu/console.h: Likewise.
30462 * include/grub/i386/qemu/boot.h: Likewise.
30463 * include/grub/i386/qemu/init.h: Likewise.
30464 * include/grub/i386/qemu/machine.h: Likewise.
30465 * include/grub/i386/qemu/loader.h: Likewise.
30466 * include/grub/i386/qemu/memory.h: Likewise.
30467
30468 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30469 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30470 [qemu] (pkglib_IMAGES): Add `boot.img'.
30471 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30472 [qemu] (boot_img_FORMAT): New variables.
30473 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30474 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30475 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30476 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30477 [qemu] (kernel_img_FORMAT): New variables.
30478
30479 * configure.ac: Recognise `i386-qemu'.
30480
30481 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30482 (for no compression).
30483 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30484 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30485 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30486 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30487 ifdefs).
30488
97fe384e 304892009-06-27 Pavel Roskin <proski@gnu.org>
30490
30491 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30492 read.
30493 * efiemu/prepare32.c: Likewise.
30494 * efiemu/prepare64.c: Likewise.
30495
c402ab17 304962009-06-26 Pavel Roskin <proski@gnu.org>
30497
30498 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30499 * include/grub/elf.h: Define symbols without "32" or "64" based
30500 on GRUB_TARGET_WORDSIZE.
30501 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30502 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30503 ELF definitions.
30504 * efiemu/loadcore64.c: Likewise.
30505 * loader/i386/bsd32.c: Likewise.
30506 * loader/i386/bsd64.c: Likewise.
30507 * kern/dl.c: Remove own ELF definitions.
30508 * util/i386/efi/grub-mkimage.c: Likewise.
30509
9bbdfd4d 305102009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30511
30512 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30513 segment 0x0 unconditionally, because the reference generated by
30514 GAS is an absolute address.
30515
a42ce6e9 305162009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30517
30518 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30519 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30520
c952cf92 305212009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30522
30523 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30524 indexes. Check for -f explicitly.
cc3752ad 30525 (search_file): Improve error message.
30526 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 30527
132a0a59 305282009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30529
30530 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30531 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30532
387a140c 305332009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30534
30535 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30536 * conf/i386-ieee1275.rmk: Likewise.
30537 * conf/i386-coreboot.rmk: Likewise.
30538
30539 * kern/i386/pc/startup.S (grub_stop): Remove function.
30540 * kern/i386/ieee1275/startup.S: Likewise.
30541 * kern/i386/coreboot/startup.S: Likewise.
30542 * kern/i386/misc.S (grub_stop): New function.
30543
41da9665 305442009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30545
30546 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30547 * kern/i386/realmode.S (real_to_prot): ... to here.
30548
bf337234 305492009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30550
30551 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30552 with `kernel.img'.
30553 (kernel_elf_SOURCES): Rename to ...
30554 (kernel_img_SOURCES): ... this.
30555 (kernel_elf_HEADERS): Rename to ...
30556 (kernel_img_HEADERS): ... this. Update all users.
30557 (kernel_elf_ASFLAGS): Rename to ...
30558 (kernel_img_ASFLAGS): ... this.
30559 (kernel_elf_CFLAGS): Rename to ...
30560 (kernel_img_CFLAGS): ... this.
30561 (kernel_elf_LDFLAGS): Rename to ...
30562 (kernel_img_LDFLAGS): ... this.
30563 * conf/i386-coreboot.rmk: Likewise.
30564 * conf/powerpc-ieee1275.rmk: Likewise.
30565
30566 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30567 with "kernel.img".
30568
f52196ff 305692009-06-21 Pavel Roskin <proski@gnu.org>
30570
c3cee413 30571 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30572 to match nested functions.
30573 * loader/sparc64/ieee1275/linux.c: Likewise.
30574
f52196ff 30575 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30576
58750afc 305772009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30578
30579 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30580 all i386 platforms.
30581
15355c7d 305822009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30583
30584 Fix asm file handling on ELF, and remove workarounds.
30585
30586 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 30587 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 30588 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30589 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30590
3f3ec72b 305912009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30592
30593 Load BSD ELF modules
30594
30595 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30596 and loader/i386/bsd64.c
30597 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30598 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30599 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30600 (grub_freebsd_load_elfmodule32): New declaration
30601 (grub_freebsd_load_elfmoduleobj64): Likewise
30602 (grub_freebsd_load_elf_meta32): Likewise
30603 (grub_freebsd_load_elf_meta64): Likewise
30604 (grub_freebsd_add_meta): Likewise
30605 (grub_freebsd_add_meta_module): Likewise
30606 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30607 (grub_freebsd_add_meta_module): Likewise and move module-specific
30608 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30609 (grub_cmd_freebsd): Add elf-kernel specific parts
30610 based on grub_freebsd_add_meta_module
30611 (grub_cmd_freebsd_module): Add type parsing moved from
30612 grub_freebsd_add_meta_module
30613 (grub_cmd_freebsd_module_elf): New function
30614 (cmd_freebsd_module_elf): New variable
30615 (GRUB_MOD_INIT): Register freebsd_module_elf
30616 * loader/i386/bsd32.c: New file
30617 * loader/i386/bsd64.c: Likewise
30618 * loader/i386/bsdXX.c: Likewise
30619 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30620 (grub_elf64_load): Likewise
30621 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30622 All users updated
30623 (grub_elf64_load_hook_t): Likewise
30624
0db15301 306252009-06-21 Colin Watson <cjwatson@ubuntu.com>
30626
30627 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30628 variable.
30629 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30630 don't write a menu entry for recovery mode.
30631
546796c1 306322009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30633
30634 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30635 after it's no longer needed.
30636
cd7310d5 306372009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30638
30639 * include/grub/i386/loader.h (grub_linux_prot_size)
30640 (grub_linux_tmp_addr, grub_linux_real_addr)
30641 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30642 GRUB_MACHINE_PCBIOS.
30643 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30644 common grub_util_info() call to ...
30645 (generate_image): ... here.
30646 Fix use of uninitialized memory, comparison of signed with
30647 unsigned integers and memory leak.
30648 Remove bogus module address message.
30649
ab32d3b5 306502009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30651
30652 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30653 grub_raid_register
30654 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30655
024ef597 306562009-06-19 Pavel Roskin <proski@gnu.org>
30657
30658 * configure.ac: Remove stray AC_MSG_CHECKING.
30659
3ac72b51 306602009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30661
30662 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 30663
e14cd814 306642009-06-18 Pavel Roskin <proski@gnu.org>
30665
30666 * conf/common.rmk: Add fs_file.mod.
30667 * disk/fs_file.c: New file.
30668 * include/grub/disk.h (enum grub_disk_dev_id): Add
30669 GRUB_DISK_DEVICE_FILE_ID.
30670
26586d98 306712009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30672
30673 Fix build with Apple's toolchain. Part 2
30674
30675 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30676 a fake start
30677
26de2bcd 306782009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30679
30680 Fix build with Apple's toolchain. Part 1
30681
30682 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30683 for long calls
30684 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 30685 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 30686 Apple's toolchain
30687
09b3490b 306882009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30689
30690 Fix warnings
30691
30692 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30693 (decomp_block): initialize ch
30694 use grub_memcpy instead of memcpy
30695
c22a006a 306962009-06-17 Pavel Roskin <proski@gnu.org>
30697
d3638678 30698 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30699 version, use declarations needed to use vga_text as the startup
30700 console.
30701
c22a006a 30702 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30703 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30704 the kernel.
30705 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30706 and grub_at_keyboard_fini(), it's done on module load and
30707 unload.
30708
05b129e0 307092009-06-17 Felix Zielcke <fzielcke@z-51.de>
30710
30711 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30712 file can't be found.
30713 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30714
cf24ed9e 307152009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30716
30717 Fix newline handling
30718
30719 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 30720 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 30721 (grub_script_yylex): don't segfault on unterminated script
30722 newline terminates command and variable
30723
74aa8e4b 307242009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30725
30726 avoid double grub_adjust_range call. Bug reported by David Simner
30727
30728 * kern/disk.c (grub_disk_write): change to raw disk access before
30729 calling disk_read
30730
1bd265f3 307312009-06-17 Colin Watson <cjwatson@ubuntu.com>
30732
30733 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30734 spaces, for the benefit of help2man.
30735 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30736
a2d08c06 307372009-06-16 Pavel Roskin <proski@gnu.org>
30738
30739 * kern/i386/halt.c: Include grub/machine/init.h.
30740 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30741
b97bcb19 307422009-06-16 Felix Zielcke <fzielcke@z-51.de>
30743
30744 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30745 drivemap menuentry.
30746
0644f96c 307472009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30748
30749 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30750 `echo' command.
30751
3ef17a2e 307522009-06-16 Pavel Roskin <proski@gnu.org>
30753
30754 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30755 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30756 save %dx, we only need %dl and we never change it.
30757 * boot/i386/pc/cdboot.S: Don't set the root drive.
30758 * boot/i386/pc/pxeboot.S: Likewise.
30759 * include/grub/i386/pc/boot.h: Remove
30760 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30761 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30762 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30763 * kern/i386/pc/init.c (make_install_device): Remove references
30764 to grub_root_drive.
30765 * kern/i386/pc/startup.S: Likewise.
30766 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30767
693fe637 307682009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30769
30770 xnu_uuid command
30771
30772 * commands/xnu_uuid.c: new file
30773 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30774 (xnu_uuid_mod_SOURCES): new variable
30775 (xnu_uuid_mod_CFLAGS): likewise
30776 (xnu_uuid_mod_LDFLAGS): likewise
30777 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30778 * conf/i386-ieee1275.rmk: likewise
30779 * conf/i386-pc.rmk: likewise
30780 * conf/powerpc-ieee1275.rmk: likewise
30781 * conf/sparc64-ieee1275.rmk: likewise
30782 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30783
c9da87d0 307842009-06-16 Pavel Roskin <proski@gnu.org>
30785
30786 * configure.ac: Avoid '==' in test command, it's not portable.
30787
9c6f4596 307882009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30789
30790 Probe command
30791
30792 * commands/probe.c: new file
30793 * conf/common.rmk (pkglib_MODULES): add probe.mod
30794 (probe_mod_SOURCES): new variable
30795 (probe_mod_CFLAGS): likewise
30796 (probe_mod_LDFLAGS): likewise
30797 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30798 * conf/i386-ieee1275.rmk: likewise
30799 * conf/i386-pc.rmk: likewise
30800 * conf/powerpc-ieee1275.rmk: likewise
30801 * conf/sparc64-ieee1275.rmk: likewise
30802
70b7f9fd 308032009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30804
30805 Fix handling of string like \"hello\" and "a
30806 b"
30807
30808 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30809 (grub_script_yylex): fix parsing of quoting, escaping and newline
30810
71c79a6b 308112009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30812
dd74360c 30813 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 30814 handling
dd74360c 30815
0644f96c 308162009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 30817
30818 * util/grub-mkconfig.in: Fix parsing of --output option.
30819
e40893c3 308202009-06-12 Pavel Roskin <proski@gnu.org>
30821
30822 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30823 genmk.rb don't need to be generated or installed.
30824
3a1acfe2 308252009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30826
30827 * commands/i386/pc/drivemap_int13h.S: add more comments
30828
3a4575d4 308292009-06-11 Pavel Roskin <proski@gnu.org>
30830
0658e928 30831 * Makefile.in (uninstall): Uninstall manuals.
30832
ca0388f0 30833 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30834 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30835 and update-grub_lib in two places.
30836 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30837
e3b27c39 30838 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30839 a compiler warning.
30840
3a4575d4 30841 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30842 `entry_lo' to fix variable shadowing.
30843
af1f4f55 308442009-06-11 Christian Franke <franke@computer.org>
30845
30846 * kern/misc.c (__enable_execute_stack): Add missing return type
30847 to prevent gcc warning.
30848
5225e649 308492009-06-11 Felix Zielcke <fzielcke@z-51.de>
30850
30851 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30852
7d83bd47 308532009-06-11 Pavel Roskin <proski@gnu.org>
30854
c1cb63ba 30855 * Makefile.in: Don't rely on any scripts being executable.
30856 Always use $(SHELL) to run shell scripts.
30857
7d83bd47 30858 * configure.ac: Always define ___main if using -nostdlib. This
30859 fixes tests on Cygwin.
30860
948f48e7 308612009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30862
30863 UDF fix
30864
7d83bd47 30865 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 30866 is in bytes and not in blocks
7d83bd47 30867
8ada9bc1 308682009-06-11 Pavel Roskin <proski@gnu.org>
30869
30870 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30871 warning.
30872
25ad2323 308732009-06-11 Felix Zielcke <fzielcke@z-51.de>
30874
30875 * util/grub.d/30_os-prober.in: Fix a comment. Source
30876 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30877 to set the root device. Place drivemap command in the generated
30878 chain entry.
30879
e65acb0c 308802009-06-11 Pavel Roskin <proski@gnu.org>
30881
30882 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30883 have long been resolved.
30884
f285fe2d 308852009-06-11 Colin Watson <cjwatson@ubuntu.com>
30886
bd47b0b5 30887 * util/grub.d/10_linux.in: Capitalise "Linux".
30888
f285fe2d 30889 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30890
a0c62e4e 308912009-06-11 Pavel Roskin <proski@gnu.org>
30892
b6783cb2 30893 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30894 fix a gcc warning and ensure that the function won't ever exit.
30895
dde032e8 30896 * kern/i386/ieee1275/init.c: Add missing prototype for
30897 grub_stop_floppy().
30898
22cd079d 30899 * loader/ieee1275/multiboot2.c [__i386__]: Include
30900 grub/cpu/multiboot.h.
30901
a0c62e4e 30902 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30903 casts to short - they are not portable and cause warnings. Fix
30904 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30905
63963d17 309062009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30907
30908 Drivemap fixes
30909
30910 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30911 new function
30912 (grub_get_root_biosnumber_saved): new variable
30913 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30914 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 30915 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 30916 %dx after the call if necessary
30917 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30918 (boot_mod_SOURCES): remove
30919 (boot_mod_CFLAGS): remove
30920 (boot_mod_LDFLAGS): remove
30921 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30922 (boot_mod_SOURCES): new variable
30923 (boot_mod_CFLAGS): likewise
30924 (boot_mod_LDFLAGS): likewise
30925 * conf/i386-efi.rmk: likewise
30926 * conf/i386-ieee1275.rmk: likewise
30927 * conf/i386-pc.rmk: likewise
30928 * conf/powerpc-ieee1275.rmk: likewise
30929 * conf/sparc64-ieee1275.rmk: likewise
30930 * conf/x86_64-efi.rmk: likewise
30931 * include/grub/i386/pc/biosnum.h: new file
30932 * lib/i386/pc/biosnum.c: likewise
30933 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30934 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30935 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 30936
33abf7ae 309372009-06-10 Pavel Roskin <proski@gnu.org>
30938
5ac35b35 30939 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30940 Use separate variables. Read only the file size at the end, but
30941 not the checksum that we don't use.
30942
5c5215d5 30943 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30944 Adjust all callers.
30945
27d5fef7 30946 * kern/ieee1275/openfw.c: Remove libc includes.
30947 * kern/ieee1275/cmain.c: Likewise.
30948 * include/grub/ieee1275/ieee1275.h: Likewise.
30949
33abf7ae 30950 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30951 compiler warnings.
30952
19d50c2b 309532009-06-10 Felix Zielcke <fzielcke@z-51.de>
30954
30955 * Makefile.in: Remove all trailing whitespace.
30956 * conf/i386-pc.rmk: Likewise.
30957 * conf/powerpc-ieee1275.rmk: Likewise.
30958 * conf/sparc64-ieee1275.rmk: Likewise.
30959 * docs/grub.texi: Likewise.
30960 * docs/texinfo.tex: Likewise.
30961 * disk/fs_uuid.c: Likewise.
30962 * disk/lvm.c: Likewise.
30963 * disk/scsi.c: Likewise.
30964 * disk/ata.c: Likewise.
30965 * disk/ieee1275/ofdisk.c: Likewise.
30966 * disk/i386/pc/biosdisk.c: Likewise.
30967 * disk/host.c: Likewise.
30968 * disk/raid.c: Likewise.
30969 * disk/efi/efidisk.c: Likewise.
30970 * disk/usbms.c: Likewise.
30971 * disk/memdisk.c: Likewise.
30972 * disk/loopback.c: Likewise.
30973 * kern/powerpc/dl.c: Likewise.
30974 * kern/device.c: Likewise.
30975 * kern/dl.c: Likewise.
30976 * kern/sparc64/dl.c: Likewise.
30977 * kern/ieee1275/ieee1275.c: Likewise.
30978 * kern/term.c: Likewise.
30979 * kern/fs.c: Likewise.
30980 * kern/i386/dl.c: Likewise.
30981 * kern/i386/pc/startup.S: Likewise.
30982 * kern/i386/pc/init.c: Likewise.
30983 * kern/i386/pc/mmap.c: Likewise.
30984 * kern/i386/pc/lzo1x.S: Likewise.
30985 * kern/i386/ieee1275/init.c: Likewise.
30986 * kern/i386/realmode.S: Likewise.
30987 * kern/i386/tsc.c: Likewise.
30988 * kern/partition.c: Likewise.
30989 * kern/corecmd.c: Likewise.
30990 * kern/file.c: Likewise.
30991 * kern/efi/efi.c: Likewise.
30992 * kern/efi/init.c: Likewise.
30993 * kern/efi/mm.c: Likewise.
30994 * kern/main.c: Likewise.
30995 * kern/err.c: Likewise.
30996 * kern/env.c: Likewise.
30997 * kern/disk.c: Likewise.
30998 * kern/generic/millisleep.c: Likewise.
30999 * kern/generic/rtc_get_time_ms.c: Likewise.
31000 * kern/misc.c: Likewise.
31001 * kern/parser.c: Likewise.
31002 * genmk.rb: Likewise.
31003 * configure.ac: Likewise.
31004 * boot/i386/pc/diskboot.S: Likewise.
31005 * boot/i386/pc/pxeboot.S: Likewise.
31006 * boot/i386/pc/boot.S: Likewise.
31007 * boot/i386/pc/lnxboot.S: Likewise.
31008 * boot/i386/pc/cdboot.S: Likewise.
31009 * parttool/pcpart.c: Likewise.
31010 * video/readers/tga.c: Likewise.
31011 * video/video.c: Likewise.
31012 * video/bitmap.c: Likewise.
31013 * lib/envblk.c: Likewise.
31014 * lib/i386/setjmp.S: Likewise.
31015 * fs/xfs.c: Likewise.
31016 * fs/afs.c: Likewise.
31017 * fs/fat.c: Likewise.
31018 * fs/ntfs.c: Likewise.
31019 * fs/udf.c: Likewise.
31020 * fs/affs.c: Likewise.
31021 * fs/iso9660.c: Likewise.
31022 * fs/hfs.c: Likewise.
31023 * fs/fshelp.c: Likewise.
31024 * fs/ext2.c: Likewise.
31025 * fs/jfs.c: Likewise.
31026 * fs/reiserfs.c: Likewise.
31027 * fs/hfsplus.c: Likewise.
31028 * fs/minix.c: Likewise.
31029 * fs/cpio.c: Likewise.
31030 * fs/sfs.c: Likewise.
31031 * fs/ufs.c: Likewise.
31032 * efiemu/prepare.c: Likewise.
31033 * efiemu/loadcore_common.c: Likewise.
31034 * efiemu/runtime/efiemu.sh: Likewise.
31035 * efiemu/runtime/efiemu.S: Likewise.
31036 * efiemu/runtime/efiemu.c: Likewise.
31037 * efiemu/pnvram.c: Likewise.
31038 * efiemu/main.c: Likewise.
31039 * efiemu/i386/pc/cfgtables.c: Likewise.
31040 * efiemu/i386/loadcore64.c: Likewise.
31041 * efiemu/i386/loadcore32.c: Likewise.
31042 * efiemu/loadcore.c: Likewise.
31043 * efiemu/symbols.c: Likewise.
31044 * efiemu/mm.c: Likewise.
31045 * include/grub/autoefi.h: Likewise.
31046 * include/grub/datetime.h: Likewise.
31047 * include/grub/term.h: Likewise.
31048 * include/grub/hfs.h: Likewise.
31049 * include/grub/lvm.h: Likewise.
31050 * include/grub/i386/tsc.h: Likewise.
31051 * include/grub/i386/linux.h: Likewise.
31052 * include/grub/i386/xnu.h: Likewise.
31053 * include/grub/i386/efiemu.h: Likewise.
31054 * include/grub/i386/pc/biosdisk.h: Likewise.
31055 * include/grub/i386/pc/memory.h: Likewise.
31056 * include/grub/i386/pc/vbe.h: Likewise.
31057 * include/grub/parttool.h: Likewise.
31058 * include/grub/video.h: Likewise.
31059 * include/grub/memory.h: Likewise.
31060 * include/grub/fs.h: Likewise.
31061 * include/grub/partition.h: Likewise.
31062 * include/grub/xnu.h: Likewise.
31063 * include/grub/efi/api.h: Likewise.
31064 * include/grub/efi/pe32.h: Likewise.
31065 * include/grub/efi/memory.h: Likewise.
31066 * include/grub/multiboot.h: Likewise.
31067 * include/grub/usbdesc.h: Likewise.
31068 * include/grub/multiboot2.h: Likewise.
31069 * include/grub/acpi.h: Likewise.
31070 * include/grub/efiemu/efiemu.h: Likewise.
31071 * include/grub/disk.h: Likewise.
31072 * include/grub/ieee1275/ieee1275.h: Likewise.
31073 * include/grub/net.h: Likewise.
31074 * include/grub/machoload.h: Likewise.
31075 * include/grub/macho.h: Likewise.
31076 * include/multiboot.h: Likewise.
31077 * genmoddep.awk: Likewise.
31078 * normal/main.c: Likewise.
31079 * normal/menu_entry.c: Likewise.
31080 * normal/menu_viewer.c: Likewise.
31081 * normal/completion.c: Likewise.
31082 * normal/cmdline.c: Likewise.
31083 * normal/misc.c: Likewise.
31084 * normal/datetime.c: Likewise.
31085 * bus/usb/usbtrans.c: Likewise.
31086 * bus/usb/ohci.c: Likewise.
31087 * bus/usb/uhci.c: Likewise.
31088 * bus/usb/usb.c: Likewise.
31089 * mmap/efi/mmap.c: Likewise.
31090 * mmap/i386/pc/mmap_helper.S: Likewise.
31091 * mmap/i386/pc/mmap.c: Likewise.
31092 * mmap/i386/mmap.c: Likewise.
31093 * mmap/i386/uppermem.c: Likewise.
31094 * mmap/mmap.c: Likewise.
31095 * commands/acpi.c: Likewise.
31096 * commands/echo.c: Likewise.
31097 * commands/blocklist.c: Likewise.
31098 * commands/loadenv.c: Likewise.
31099 * commands/usbtest.c: Likewise.
31100 * commands/boot.c: Likewise.
31101 * commands/parttool.c: Likewise.
31102 * commands/search.c: Likewise.
31103 * commands/cat.c: Likewise.
31104 * commands/i386/pc/play.c: Likewise.
31105 * commands/i386/pc/drivemap.c: Likewise.
31106 * commands/i386/pc/vbeinfo.c: Likewise.
31107 * commands/i386/pc/acpi.c: Likewise.
31108 * commands/i386/pc/vbetest.c: Likewise.
31109 * commands/ls.c: Likewise.
31110 * commands/cmp.c: Likewise.
31111 * commands/test.c: Likewise.
31112 * commands/efi/acpi.c: Likewise.
31113 * commands/gptsync.c: Likewise.
31114 * commands/help.c: Likewise.
31115 * partmap/amiga.c: Likewise.
31116 * partmap/apple.c: Likewise.
31117 * partmap/acorn.c: Likewise.
31118 * partmap/pc.c: Likewise.
31119 * partmap/sun.c: Likewise.
31120 * partmap/gpt.c: Likewise.
31121 * script/sh/lexer.c: Likewise.
31122 * script/sh/function.c: Likewise.
31123 * font/font.c: Likewise.
31124 * font/font_cmd.c: Likewise.
31125 * loader/powerpc/ieee1275/linux.c: Likewise.
31126 * loader/efi/chainloader.c: Likewise.
31127 * loader/multiboot_loader.c: Likewise.
31128 * loader/macho.c: Likewise.
31129 * loader/i386/multiboot.c: Likewise.
31130 * loader/i386/linux.c: Likewise.
31131 * loader/i386/pc/linux.c: Likewise.
31132 * loader/i386/pc/multiboot2.c: Likewise.
31133 * loader/i386/pc/chainloader.c: Likewise.
31134 * loader/i386/pc/xnu.c: Likewise.
31135 * loader/i386/bsd_trampoline.S: Likewise.
31136 * loader/i386/efi/linux.c: Likewise.
31137 * loader/i386/multiboot_elfxx.c: Likewise.
31138 * loader/i386/bsd_helper.S: Likewise.
31139 * loader/i386/bsd.c: Likewise.
31140 * loader/i386/linux_trampoline.S: Likewise.
31141 * loader/i386/xnu_helper.S: Likewise.
31142 * loader/i386/xnu.c: Likewise.
31143 * loader/i386/bsd_pagetable.c: Likewise.
31144 * loader/i386/multiboot_helper.S: Likewise.
31145 * loader/xnu.c: Likewise.
31146 * loader/xnu_resume.c: Likewise.
31147 * io/gzio.c: Likewise.
31148 * term/efi/console.c: Likewise.
31149 * term/terminfo.c: Likewise.
31150 * term/ieee1275/ofconsole.c: Likewise.
31151 * term/i386/pc/serial.c: Likewise.
31152 * term/i386/pc/vesafb.c: Likewise.
31153 * term/i386/pc/vga.c: Likewise.
31154 * term/usb_keyboard.c: Likewise.
31155 * term/gfxterm.c: Likewise.
31156 * aclocal.m4: Likewise.
31157 * util/lvm.c: Likewise.
31158 * util/grub.d/30_os-prober.in: Likewise.
31159 * util/grub.d/10_hurd.in: Likewise.
31160 * util/console.c: Likewise.
31161 * util/grub-macho2img.c: Likewise.
31162 * util/grub-probe.c: Likewise.
31163 * util/hostfs.c: Likewise.
31164 * util/i386/pc/grub-mkimage.c: Likewise.
31165 * util/i386/pc/grub-setup.c: Likewise.
31166 * util/i386/efi/grub-mkimage.c: Likewise.
31167 * util/grub-mkconfig.in: Likewise.
31168 * util/raid.c: Likewise.
31169 * util/resolve.c: Likewise.
31170 * util/grub-mkdevicemap.c: Likewise.
31171 * util/grub-emu.c: Likewise.
31172 * util/getroot.c: Likewise.
31173 * util/hostdisk.c: Likewise.
31174 * util/usb.c: Likewise.
31175 * util/grub-editenv.c: Likewise.
31176 * util/misc.c: Likewise.
31177
d2d49665 311782009-06-10 Felix Zielcke <fzielcke@z-51.de>
31179
31180 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
31181 `genparttoollist.sh'.
31182 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
31183 Add `*.sh' to the list find searches for and change `mdate.sh'
31184 to `mdate-sh'.
31185
fe052e37 311862009-06-10 Pavel Roskin <proski@gnu.org>
31187
2763ac18 31188 * include/grub/multiboot2.h: Provide compatibility defines for
31189 multiboot2.h.
31190 * include/multiboot2.h: Include stdint.h only if needed, using
31191 angle brackets.
31192 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
31193 grub/multiboot2.h.
31194 * loader/ieee1275/multiboot2.c: Likewise.
31195 * loader/multiboot2.c: Likewise.
31196 * loader/multiboot_loader.c: Likewise.
31197
437e6adc 31198 * configure.ac: Use -nostdlib when probing for the target. It
31199 should not be required to have libc for the target.
31200
06a6836c 31201 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
31202 they fail without libc headers for the target.
31203 * include/grub/powerpc/libgcc.h: Use weak attribute for all
31204 exports.
31205 * include/grub/sparc64/libgcc.h: Likewise. Don't use
31206 preprocessor conditionals.
31207
fe052e37 31208 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
31209 build system doesn't need to be aware of the tar.c internals.
31210
afd22553 312112009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 31212
afd22553 31213 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 31214
6b787c4f 312152009-06-09 Robert Millan <rmh.grub@aybabtu.com>
31216
31217 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
31218 disk limit to 26 for IDE, Virtio, Xen and SCSI.
31219
312202009-06-09 Felix Zielcke <fzielcke@z-51.de>
31221
31222 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 31223 aren't available if ata.mod gets used.
6b787c4f 31224
473d1e45 312252009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 31226
473d1e45 31227 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 31228 initialising controller.
473d1e45 31229 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 31230
255a27d4 312312009-06-08 Felix Zielcke <fzielcke@z-51.de>
31232
31233 * util/i386/pc/grub-install.in: Add a parameter --disk-module
31234 to choose between ata and biosdisk module on i386-pc.
31235
473d1e45 312362009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 31237
d55842d8 31238 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
31239 Subclass and Programming Interface fields in terms of the 3 byte
31240 Class Code register.
31241 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31242
fa5db0b1 31243 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
31244 interface is OHCI. Add grub_dprintf for symmetry with
31245 bus/usb/uhci.c.
31246 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
31247 interface is UHCI. Add interf variable for programming
31248 interface. Print interface with class/subclass.
31249
c0947beb 31250 * bus/usb/ohci.c: Set interf with correct field.
31251
69da8877 31252 * bus/usb/uhci.c: Remove unneeded doubled lines.
31253 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
31254 Remove whitespace inside comment.
31255
9e172e30 312562009-06-08 Robert Millan <rmh.grub@aybabtu.com>
31257
31258 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
31259 as fallback an equivalent option without depth.
31260
de65ee2b 312612009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31262
31263 Not fail if unable to retrieve C/H/S on LBA disks
31264
473d1e45 31265 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 31266 if unable to retrieve C/H/S on LBA disks
31267
b57ea2c9 312682009-06-08 Pavel Roskin <proski@gnu.org>
31269
31270 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
31271 about aliasing.
31272
af361263 312732009-06-08 Felix Zielcke <fzielcke@z-51.de>
31274
31275 * Makefile.in (uninstall): Remove all $lib_DATA files.
31276
4c9ec6b3 312772009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31278
31279 Bugfix: install on partitionless device
31280
31281 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
31282 is a whole disk
31283
e76fc924 312842009-06-08 Felix Zielcke <fzielcke@z-51.de>
31285
31286 * Makefile.in (uninstall): Remove all $include_DATA files.
31287
ba5a0d05 312882009-06-08 Felix Zielcke <fzielcke@z-51.de>
31289
31290 * commands/true.c: New file. Implement the true and false commands.
31291 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
31292 (true_mod_SOURCES): New variable.
31293 (true_mod_CFLAGS): Likewise.
31294 (true_mod_LDFLAGS): Likewise.
31295
c8048e32 312962009-06-05 Colin D Bennett <colin@gibibit.com>
31297
31298 Optimized font character lookup using binary search instead of linear
31299 search. Fonts now are required to have the character index ordered by
31300 code point.
31301
31302 * font/font.c (load_font_index): Verify that fonts have ordered
31303 character indices.
31304 (find_glyph): Use binary search instead of linear search to find a
31305 character in a font.
31306
408305be 313072009-06-05 Michael Scherer <misc@mandriva.org>
31308
31309 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
31310 uses case sensitive btree.
31311 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
31312 only for case insensitive filesystems.
31313
8ee1e0d9 313142009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
31315
31316 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
31317 * conf/common.rmk (search_mod_CFLAGS): likewise
31318
a9966eb1 313192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31320
473d1e45 31321 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 31322 compensate a compiler bug
31323
9e7100fb 313242009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31325
473d1e45 31326 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 31327 instead of '\b'
473d1e45 31328
ede21d71 313292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31330
31331 Definitions for creating asm symbols with Apple's CC
31332
31333 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
31334 [APPLE_CC] (VARIABLE): likewise
31335
9dbf7653 313362009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31337
31338 Disable lnxboot.img when compiled
31339 with Apple's CC
31340
31341 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
31342 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
31343 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
31344 [! APPLE_CC] (CODE_LENG): skip
31345 [! APPLE_CC] (setup_sects): likewise
31346 [! APPLE_CC]: skip filling
473d1e45 31347
e93cdc3d 313482009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31349
31350 Address in trampolines based on 32-bit registers when compiled
31351 with Apple's CC
31352
473d1e45 31353 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 31354 for addresses
31355 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
31356
6c688477 313572009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31358
31359 Avoid aliases when compiling with Apple's CC for PCBIOS machine
31360
31361 * kern/misc.c [APPLE_CC] (memcpy): new function
31362 [APPLE_CC] (memmove): likewise
31363 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 31364 (memcpy): define alias conditionally on !APPLE_CC
6c688477 31365 (memset): likewise
31366 (abort): likewise
31367 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
31368 APPLE_CC are defined
31369 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
31370 (grub_assert_fail): make prototype conditional
31371
e37ffc5c 313722009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31373
31374 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
31375
473d1e45 31376 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
31377 grub-macho2img
e37ffc5c 31378 (CLEANFILES): add grub-macho2img
31379 (grub_macho2img_SOURCES): new variable
31380 * kern/i386/pc/startup.S (bss_start): new variable
31381 (bss_end): likewise
31382 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
31383 * util/grub-macho2img.c: new file
31384
cf00df31 313852009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31386
31387 Use objconv when compiling with Apple's CC
31388
31389 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
31390 (efiemu64.o): likewise
31391 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
31392 when compiling with Apple's CC
31393 (efiemu64_s.o): likewise
31394 * configure.ac: check for objconv when compiling with Apple's CC
31395 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 31396
d119a20c 313972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31398
31399 Define segment as well as section when compiling with
31400 Apple's CC
31401
31402 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
31403 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
31404 (efiemu_convert_pointer): likewise
31405 (efiemu_set_virtual_address_map): likewise
31406 (efiemu_convert_pointer): likewise
31407 (efiemu_getcrc32): likewise
31408 (init_crc32_table): likewise
31409 (reflect): likewise
31410 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
31411 (GRUB_MOD_DEP): likewise
473d1e45 31412
c8600122 314132009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31414
31415 Allow a compilation without -mcmodel=large
31416
31417 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31418 when compiled without -mcmodel=large
473d1e45 31419 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 31420 without -mcmodel=large
473d1e45 31421 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 31422 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 31423
e8df1d4e 314242009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31425
31426 Remove nested functions in efiemu core
31427
31428 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 31429
cc6c3ac1 314302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31431
31432 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31433
31434 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31435 temporary storage
473d1e45 31436 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31437 using Apple's CC
cc6c3ac1 31438 (grub_cpu_is_tsc_supported): likewise
31439 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 31440
3e325901 314412009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31442
31443 Absolute addressing through constant with Apple's cc
31444
31445 * kern/i386/pc/startup.S: Define necessary constants
31446 and address through it when using ABS with Apple's CC
31447 * boot/i386/pc/diskboot.S: likewise
31448 * boot/i386/pc/boot.S: likewise
31449 * boot/i386/pc/lnxboot.S: likewise
31450 * boot/i386/pc/cdboot.S: likewise
31451 * mmap/i386/pc/mmap_helper.S: likewise
31452 * commands/i386/pc/drivemap_int13h.S: likewise
31453
2b167a72 314542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31455
31456 Check if compiler is apple cc
31457
31458 * Makefile.in (ASFLAGS): new variable
31459 (TARGET_ASFLAGS): likewise
31460 (TARGET_MODULE_FORMAT): likewise
31461 (TARGET_APPLE_CC): likewise
31462 (OBJCONV): likewise
31463 (TARGET_IMG_CFLAGS): likewise
31464 (TARGET_CPPFLAGS): add includedir
31465 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31466 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31467 Check for linker script only if compiler isn't Apple's CC
31468 (TARGET_MODULE_FORMAT): set
31469 (TARGET_APPLE_CC): likewise
31470 (TARGET_ASFLAGS): likewise
31471 (ASFLAGS): likewise
31472 Check for objcopy only if compiler isn't Apple's CC
31473 Check for BSS symbol only if compiler isn't Apple's CC
31474 * genmk.rb: adapt nm options if we use Apple's utils
31475 * aclocal.m4 (grub_apple_cc): new test
31476 (grub_apple_target_cc): likewise
473d1e45 31477
fb14123e 314782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31479
31480 Simplify sed expressions and improve awk
31481
31482 * Makefile.in (install-local): simplify sed expression
31483 * gencmdlist.sh: likewise
31484 * genmoddep.awk: avoid adding module as a dependency of itself
31485
5b889789 314862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31487
31488 Add missing start symbols
31489
31490 * boot/i386/pc/boot.S: add start
fb14123e 31491 * boot/i386/pc/pxeboot.S: likewise
473d1e45 31492
fd2bf2e3 314932009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31494
31495 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 31496
31497 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 31498 (relocate_addresses): consider both r_addend and value at offset
31499 (make_mods_section): zerofill modinfo and header
31500 (convert_elf): write prefix here
473d1e45 31501
5389763d 315022009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31503
31504 Use .asciz instead of .string
31505
31506 * i386/pc/diskboot.S: use .asciz instead of .string
31507 * i386/pc/boot.S: likewise
31508 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31509 (GRUB_MOD_NAME): likewise
473d1e45 31510
3eb5ed4e 315112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31512
31513 gfxpayload support
31514
31515 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31516 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31517 (grub_video_setup): remove
31518 (grub_video_set_mode): new prototype
31519 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31520 (vid_mode): remove
31521 (linux_vesafb_res): compile only on PCBIOS
31522 (grub_linux_boot): support gfxpayload
31523 * loader/i386/pc/xnu.c (video_hook): new function
31524 (grub_xnu_set_video): support gfxpayload
31525 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31526 (DEFAULT_VIDEO_HEIGHT): likewise
31527 (DEFAULT_VIDEO_FLAGS): likewise
31528 (DEFAULT_VIDEO_MODE): new definition
31529 (video_hook): new function
31530 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 31531 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 31532 loading xnu
31533 * video/video.c (grub_video_setup): removed
473d1e45 31534 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 31535 grub_video_setup
31536
4b0e1143 315372009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31538
31539 Avoid calling biosdisk in drivemap
31540
31541 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31542 (revparse_biosdisk): likewise
31543 (list_mappings): derive name from id directly
31544 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 31545
fda6cb98 315462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31547
31548 Script fixes
31549
31550 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31551 (grub_lexer_param): add tokenonhold
31552 (grub_script_create_cmdline): remove cmdline. All callers updated
31553 (grub_script_function_create): make functionname
31554 grub_script_arg. All callers updated
31555 (grub_script_execute_argument_to_string): new prototype
31556 * kern/parser.c (state_transitions): reorder
31557 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 31558 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 31559 make global
31560 (grub_script_execute_cmdline): use new format
31561 * script/sh/function.c (grub_script_function_create): make functionname
31562 grub_script_arg. All callers updated
473d1e45 31563 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 31564 (grub_script_yylex): remove
31565 (grub_script_yylex2): renamed to ...
31566 (grub_script_yylex): ...renamed
31567 parse the expressions like a${b}c
31568 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31569 (GRUB_PARSER_TOKEN_VAR): remove
31570 (GRUB_PARSER_TOKEN_NAME): likewise
31571 ("if"): declare as typeless
31572 ("while"): likewise
31573 ("function"): likewise
31574 ("else"): likewise
31575 ("then"): likewise
31576 ("fi"): likewise
31577 (text): remove
31578 (argument): likewise
31579 (script): accept empty scripts and make exit on error
31580 (arguments): use GRUB_PARSER_TOKEN_ARG
31581 (function): likewise
31582 (command): move error handling to script
31583 (menuentry): move grub_script_lexer_ref before
473d1e45 31584 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 31585 argument. All callers updated
31586
f4448a07 315872009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31588
31589 Prevent GRUB from probing floppies during boot.
31590
31591 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31592 * commands/search.c (options): Add --no-floppy.
31593 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31594 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31595 --no-floppy when searching for UUIDs.
31596
2bf5885a 315972009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31598
31599 Simplify the code duplication in commands/search.c.
31600
31601 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31602 (search_fs): ... this. Update all users.
31603
f6fd460a 316042009-06-03 Felix Zielcke <fzielcke@z-51.de>
31605
31606 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31607
cbb3c83e 316082009-05-28 Pavel Roskin <proski@gnu.org>
31609
57788cfd 31610 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31611 Remove the original symlink explicitly.
31612
cbb3c83e 31613 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31614 just one slash. That's how grub_fshelp_find_file() does it.
31615
cd0d5e30 316162009-05-26 Pavel Roskin <proski@gnu.org>
31617
f0f8bbe2 31618 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31619 to `str'.
31620
cd0d5e30 31621 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31622 possibly unused.
31623
8c2cab51 316242009-05-25 Christian Franke <franke@computer.org>
31625
31626 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31627 register.
31628 (grub_atapi_identify): Add wait after drive select.
31629 (grub_ata_identify): Do more strict status register check before
31630 calling grub_atapi_identify (). Suppress error message if status
31631 register is 0x00 after command failure. Add status register
31632 check after PIO read to avoid bogus identify due to stuck DRQ.
31633 Thanks to Pavel Roskin for testing.
31634 (grub_device_initialize): Remove unsafe status register check.
31635 Thanks to 'phcoder' for problem report and patch.
31636 Prevent sign extension in debug message.
31637
230c0ad6 316382009-05-23 Colin D Bennett <colin@gibibit.com>
31639
31640 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31641 definition file, and functions defined in `normal/menu.c' have had
31642 their prototypes moved to `include/grub/menu.h' for consistency.
31643
31644 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31645 from normal.h.
31646 (grub_menu_get_entry): Likewise.
31647 (grub_menu_get_timeout): Likewise.
31648 (grub_menu_set_timeout): Likewise.
31649 (grub_menu_execute_entry): Likewise.
31650 (grub_menu_execute_with_fallback): Likewise.
31651 (grub_menu_entry_run): Likewise.
31652
31653 * include/grub/normal.h: Re-ordered and grouped function
31654 prototypes by file that the function is defined in.
31655 (grub_menu_execute_callback): Removed; moved to menu.h.
31656 (grub_menu_get_entry): Likewise.
31657 (grub_menu_get_timeout): Likewise.
31658 (grub_menu_set_timeout): Likewise.
31659 (grub_menu_execute_entry): Likewise.
31660 (grub_menu_execute_with_fallback): Likewise.
31661 (grub_menu_entry_run): Likewise.
31662 (grub_menu_addentry): Renamed from this ...
31663 (grub_normal_add_menu_entry): ... to this.
31664
31665 * normal/main.c (grub_menu_addentry): Renamed from this ...
31666 (grub_normal_add_menu_entry): ... to this.
31667
31668 * script/sh/execute.c (grub_script_execute_menuentry): Update
31669 reference to renamed grub_menu_addentry function.
31670
861f03a5 316712009-05-23 Felix Zielcke <fzielcke@z-51.de>
31672
31673 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31674
96b1619a 316752009-05-22 Pavel Roskin <proski@gnu.org>
31676
bf6a5fb2 31677 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31678 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31679 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31680 compiling for the i386 targets, but not for the utilities.
31681
96b1619a 31682 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31683 to grub_uint8_t.
31684 (grub_root_drive): Likewise.
31685 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31686 remove alignment.
31687 (grub_root_drive): Change size to byte.
31688 (grub_start_addr): Remove.
31689 (grub_end_addr): Likewise.
31690 (grub_apm_bios_info): Likewise.
31691
b729776b 316922009-05-21 Felix Zielcke <fzielcke@z-51.de>
31693
31694 * normal/i386: Remove.
31695 * normal/powerpc: Likewise.
31696 * normal/sparc64: Likewise.
31697 * normal/x86_64: Likewise.
31698
0a15ce80 316992009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31700
31701 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 31702 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 31703 * loader/i386/xnu_helper.S: Likewise
d6da58e6 31704
33db9015 317052009-05-18 Colin D Bennett <colin@gibibit.com>
31706
d6da58e6 31707 Display error messages when parsing a Lua statement fails.
31708 Previously, executing a syntactically invalid statement like
31709 ")foo" or "bar;" would silently fail.
33db9015 31710
31711 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 31712 (grub_lua_parse_line): Improved reporting of Lua parser and
31713 execution errors.
33db9015 31714
46422c89 317152009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31716
31717 Remove -Werror which causes build to fail on some systems
31718
31719 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31720 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31721 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 31722
22f53a96 317232009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31724
31725 trampoline for linux on 64-bit platform
31726
18f547ad 31727 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31728 loader/i386/efi/linux_trampoline.S
31729 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 31730 declaration
d6da58e6 31731 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31732 here
22f53a96 31733 * loader/i386/linux_trampoline.S: moved here
d6da58e6 31734 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31735 trampoline
22f53a96 31736 (jumpvector): removed
31737 (grub_linux_trampoline_start): new declaration
31738 (grub_linux_trampoline_end): likewise
31739 (grub_linux_boot): use trampoline when on 64-bit platform
31740 * loader/i386/linux.c: likewise
31741
cb5a0f40 317422009-05-16 Pavel Roskin <proski@gnu.org>
31743
31744 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31745 const to avoid a warning.
31746 (grub_lua_setenv): Likewise.
31747 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31748 lmsg to fix a warning.
31749
334f2c28 317502009-05-16 Felix Zielcke <fzielcke@z-51.de>
31751
31752 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 31753 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31754 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31755 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31756 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31757 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31758 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31759 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 31760
59e5d3ec 317612009-05-16 Felix Zielcke <fzielcke@z-51.de>
31762
31763 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31764
9d87a1ba 317652009-05-16 Bean <bean123ch@gmail.com>
31766
31767 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31768 (lua_mod_SOURCES): New variable.
31769 (lua_mod_CFLAGS): Likewise.
31770 (lua_mod_LDFLAGS): Likewise.
31771
31772 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31773 (setjmp_mod_SOURCES): New variable.
31774 (setjmp_mod_CFLAGS): Likewise.
31775 (setjmp_LDFLAGS): Likewise.
31776
31777 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31778 (setjmp_mod_SOURCES): New variable.
31779 (setjmp_mod_CFLAGS): Likewise.
31780 (setjmp_LDFLAGS): Likewise.
31781
31782 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31783 (setjmp_mod_SOURCES): New variable.
31784 (setjmp_mod_CFLAGS): Likewise.
31785 (setjmp_LDFLAGS): Likewise.
31786
31787 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31788 (setjmp_mod_SOURCES): New variable.
31789 (setjmp_mod_CFLAGS): Likewise.
31790 (setjmp_LDFLAGS): Likewise.
31791
31792 * normal/i386/setjmp.S: Moved from here ...
31793 * lib/i386/setjmp.S: ... Moved here
31794 * normal/x86_64/setjmp.S: Moved from here ...
31795 * lib/x86_64/setjmp.S: ... Moved here
31796 * normal/powerpc/setjmp.S: Moved from here ...
31797 * lib/powerpc/setjmp.S: ... Moved here
31798 * normal/sparc64/setjmp.S: Moved from here ...
31799 * lib/sparc64/setjmp.S: ... Moved here
31800
31801 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31802 returns_twice in mingw.
31803
31804 * script/lua/grub_lib.c: New file.
31805 * script/lua/grub_lib.h: Likewise.
31806 * script/lua/grub_lua.h: Likewise.
31807 * script/lua/grub_main.c: Likewise.
31808 * script/lua/lapi.c: Likewise.
31809 * script/lua/lapi.h: Likewise.
31810 * script/lua/lauxlib.c: Likewise.
31811 * script/lua/lauxlib.h: Likewise.
31812 * script/lua/lbaselib.c: Likewise.
31813 * script/lua/lcode.c: Likewise.
31814 * script/lua/lcode.h: Likewise.
31815 * script/lua/ldblib.c: Likewise.
31816 * script/lua/ldebug.c: Likewise.
31817 * script/lua/ldebug.h: Likewise.
31818 * script/lua/ldo.c: Likewise.
31819 * script/lua/ldo.h: Likewise.
31820 * script/lua/ldump.c: Likewise.
31821 * script/lua/lfunc.c: Likewise.
31822 * script/lua/lfunc.h: Likewise.
31823 * script/lua/lgc.c: Likewise.
31824 * script/lua/lgc.h: Likewise.
31825 * script/lua/linit.c: Likewise.
31826 * script/lua/liolib.c: Likewise.
31827 * script/lua/llex.c: Likewise.
31828 * script/lua/llex.h: Likewise.
31829 * script/lua/llimits.h: Likewise.
31830 * script/lua/lmathlib.c: Likewise.
31831 * script/lua/lmem.c: Likewise.
31832 * script/lua/lmem.h: Likewise.
31833 * script/lua/loadlib.c: Likewise.
31834 * script/lua/lobject.c: Likewise.
31835 * script/lua/lobject.h: Likewise.
31836 * script/lua/lopcodes.c: Likewise.
31837 * script/lua/lopcodes.h: Likewise.
31838 * script/lua/loslib.c: Likewise.
31839 * script/lua/lparser.c: Likewise.
31840 * script/lua/lparser.h: Likewise.
31841 * script/lua/lstate.c: Likewise.
31842 * script/lua/lstate.h: Likewise.
31843 * script/lua/lstring.c: Likewise.
31844 * script/lua/lstring.h: Likewise.
31845 * script/lua/lstrlib.c: Likewise.
31846 * script/lua/ltable.c: Likewise.
31847 * script/lua/ltable.h: Likewise.
31848 * script/lua/ltablib.c: Likewise.
31849 * script/lua/ltm.c: Likewise.
31850 * script/lua/ltm.h: Likewise.
31851 * script/lua/lua.h: Likewise.
31852 * script/lua/luaconf.h: Likewise.
31853 * script/lua/lualib.h: Likewise.
31854 * script/lua/lundump.c: Likewise.
31855 * script/lua/lundump.h: Likewise.
31856 * script/lua/lvm.c: Likewise.
31857 * script/lua/lvm.h: Likewise.
31858 * script/lua/lzio.c: Likewise.
31859 * script/lua/lzio.h: Likewise.
31860
5e898c9d 318612009-05-16 Bean <bean123ch@gmail.com>
31862
31863 * include/grub/kernel.h (grub_module_header_types): Add type
31864 OBJ_TYPE_CONFIG.
31865
31866 * kern/main.c (grub_load_config): New function.
31867 (grub_main): Call grub_load_config to read boot config.
31868
31869 * grub-mkimage (generate_image): New parameter config_path.
31870 (options): New option --config.
31871 (main): Parse --config option, and pass it to generate_image.
31872
cf353a47 318732009-05-14 Christian Franke <franke@computer.org>
31874
31875 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31876 This fixes build on Cygwin.
31877
3834887f 318782009-05-14 Pavel Roskin <proski@gnu.org>
31879
31880 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31881 jump. This saves two bytes, so the typical case of 2 swapped
31882 drives would fit 32 bytes.
31883
8090fc01 318842009-05-13 Pavel Roskin <proski@gnu.org>
31885
ac963883 31886 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31887 grub_uint32_t to avoid a warning.
31888
8090fc01 31889 * loader/i386/linux.c (allocate_pages): When assigning
31890 real_mode_mem, cast through grub_size_t to fix a warning. The
31891 code already makes sure that the value would fit a pointer.
31892 (grub_linux_setup_video): Cast render_target->data to
31893 grub_size_t to fix a warning.
31894
18f547ad 318952009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 31896
31897 * commands/i386/pc/drivemap.c: New file - implement drivemap
31898 command.
31899 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31900 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31901
6f6a8b28 319022009-05-13 Pavel Roskin <proski@gnu.org>
31903
31904 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31905 embedding_area_exists.
31906
15fbf4c4 319072009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31908
31909 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31910 it easier to understand / work with.
59978c8a 31911 Improve warning messages for cases where there's no embedding area,
31912 or when it is too small (or core.img too large).
15fbf4c4 31913
238e871f 319142009-05-13 Pavel Roskin <proski@gnu.org>
31915
0ab3a9a4 31916 * loader/i386/pc/multiboot2.c: Add necessary includes for
31917 grub_multiboot2_real_boot().
31918
a2c8c5f8 31919 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31920 PX record is always little-endian. We only need the lower 2
31921 bytes of the mode.
31922
faec96af 31923 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31924 facilitate code reuse.
31925 (grub_cpio_mount): Use "struct head", not a char buffer. This
31926 fixes a warning reported by gcc 4.4.
31927
238e871f 31928 * kernel/disk.c (grub_disk_read): Use void pointer for the
31929 buffer.
31930 (grub_disk_write): Use const void pointer for the buffer.
31931 Adjust all callers. Remove unnecessary casts.
31932
901d2f0c 319332009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31934
31935 * util/i386/pc/grub-install.in: Update copyright year.
31936
18f547ad 319372009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 31938
31939 gptsync
31940
31941 * commands/gptsync.c: new file
31942 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31943 (gptsync_mod_SOURCES): new variable
31944 (gptsync_mod_CFLAGS): likewise
31945 (gptsync_mod_LDFLAGS): likewise
18f547ad 31946 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 31947 new definition
31948 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31949 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31950 * conf/i386-ieee1275.rmk: likewise
31951 * conf/i386-pc.rmk: likewise
31952 * conf/powerpc-ieee1275.rmk: likewise
31953
b4ba690a 319542009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31955
31956 Fixed grub-emu
31957
31958 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31959 (grub_dl_ref): likewise
31960
317e1a44 319612009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31962
31963 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31964 split in two functions (one for msdos and one for gpt).
31965
041b8094 319662009-05-08 Pavel Roskin <proski@gnu.org>
31967
752473c2 31968 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31969 not modified.
31970
041b8094 31971 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31972 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31973 Initialize them with -1. Add sanity check for bad1. Eliminate
31974 nerr variable.
31975
172800ce 319762009-05-08 David S. Miller <davem@davemloft.net>
31977
31978 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31979
29aa5e81 319802009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31981
31982 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 31983 existence.
29aa5e81 31984
96613b62 319852009-05-05 Felix Zielcke <fzielcke@z-51.de>
31986
31987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 31988 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 31989
eef73c8a 319902009-05-05 David S. Miller <davem@davemloft.net>
31991
31992 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31993
119494b5 319942009-05-05 Pavel Roskin <proski@gnu.org>
31995
31996 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31997 of grub_dl_ref() and grub_dl_unref().
31998 * commands/parttool.c: Remove preprocessor conditionals around
31999 grub_dl_ref() and grub_dl_unref().
32000 * fs/affs.c: Likewise.
32001 * fs/afs.c: Likewise.
32002 * fs/cpio.c: Likewise.
32003 * fs/ext2.c: Likewise.
32004 * fs/fat.c: Likewise.
32005 * fs/hfs.c: Likewise.
32006 * fs/hfsplus.c: Likewise.
32007 * fs/iso9660.c: Likewise.
32008 * fs/jfs.c: Likewise.
32009 * fs/minix.c: Likewise.
32010 * fs/ntfs.c: Likewise.
32011 * fs/reiserfs.c: Likewise.
32012 * fs/sfs.c: Likewise.
32013 * fs/udf.c: Likewise.
32014 * fs/ufs.c: Likewise.
32015 * fs/xfs.c: Likewise.
32016 * include/grub/dl.h: Likewise.
32017 * loader/xnu.c: Likewise.
32018
de5fd76e 320192009-05-04 Pavel Roskin <proski@gnu.org>
32020
32021 * commands/acpi.c: Remove unused variable my_mod.
32022 * partmap/amiga.c: Likewise.
32023 * partmap/apple.c: Likewise.
32024 * partmap/gpt.c: Likewise.
32025 * partmap/pc.c: Likewise.
32026 * partmap/sun.c: Likewise.
32027 * term/gfxterm.c: Likewise.
32028 * term/i386/pc/vesafb.c: Likewise.
32029 * term/i386/pc/vga.c: Likewise.
32030
983598ad 320312009-05-04 David S. Miller <davem@davemloft.net>
32032
32033 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
32034 pointer args to grub_ieee1275_get_property().
32035
8aadec43 32036 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
32037
9554b15e 32038 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
32039 devices, and do not traverse down under controller nodes.
32040
67e23c90 32041 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
32042 (grub_ofdisk_open): Use it to un-escape "," characters.
32043 * kern/disk.c (find_part_sep): New.
32044 (grub_disk_open): Use it to find the first non-escaped ','
32045 character in the disk name.
32046 * util/ieee1275/devicemap.c (escape_of_path): New.
32047 (grub_util_emit_devicemap_entry): Use it.
32048 * util/sparc64/ieee1275/grub-install.in: Update script to
32049 strip partition specifiers properly by not triggering on
32050 '\' escaped ',' characters.
32051
74bfdd2f 320522009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32053
32054 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
32055 to 0x300.
32056 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
32057 resolutions.
32058 (linux_vesafb_modes): Add a lot of additional modes to the list (based
32059 on documentation from Wikipedia).
32060
4241d2b1 320612009-05-04 Pavel Roskin <proski@gnu.org>
32062
32063 * disk/ata.c: Spelling fixes.
32064 * disk/raid.c: Likewise.
32065 * disk/usbms.c: Likewise.
32066 * disk/dmraid_nvidia.c: Likewise.
32067 * kern/ieee1275/openfw.c: Likewise.
32068 * kern/ieee1275/init.c: Likewise.
32069 * kern/ieee1275/cmain.c: Likewise.
32070 * boot/i386/pc/cdboot.S: Likewise.
32071 * video/readers/png.c: Likewise.
32072 * video/i386/pc/vbe.c: Likewise.
32073 * fs/udf.c: Likewise.
32074 * fs/hfs.c: Likewise.
32075 * fs/reiserfs.c: Likewise.
32076 * efiemu/runtime/efiemu.c: Likewise.
32077 * efiemu/main.c: Likewise.
32078 * efiemu/mm.c: Likewise.
32079 * include/grub/elf.h: Likewise.
32080 * include/grub/xnu.h: Likewise.
32081 * include/grub/usbdesc.h: Likewise.
32082 * include/grub/usb.h: Likewise.
32083 * include/grub/script_sh.h: Likewise.
32084 * include/grub/lib/LzmaEnc.h: Likewise.
32085 * include/grub/efiemu/efiemu.h: Likewise.
32086 * include/grub/command.h: Likewise.
32087 * normal/menu.c: Likewise.
32088 * normal/main.c: Likewise.
32089 * normal/datetime.c: Likewise.
32090 * bus/usb/uhci.c: Likewise.
32091 * mmap/i386/uppermem.c: Likewise.
32092 * mmap/mmap.c: Likewise.
32093 * commands/acpi.c: Likewise.
32094 * commands/test.c: Likewise.
32095 * partmap/apple.c: Likewise.
32096 * font/font.c: Likewise.
32097 * loader/sparc64/ieee1275/linux.c: Likewise.
32098 * loader/macho.c: Likewise.
32099 * loader/i386/bsd_trampoline.S: Likewise.
32100 * loader/i386/bsd.c: Likewise.
32101 * loader/xnu.c: Likewise.
32102 * term/i386/pc/vesafb.c: Likewise.
32103 * term/usb_keyboard.c: Likewise.
32104 * util/resolve.c: Likewise.
32105 * util/getroot.c: Likewise.
32106
0cfc0083 321072009-05-04 Felix Zielcke <fzielcke@z-51.de>
32108
32109 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
32110
7c1d00cd 321112009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32112
32113 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
32114 build error.
32115
b01f0548 321162009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32117
32118 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
32119 parameter only available on BIOS.
32120
ecc3eb22 321212009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32122
32123 Removed wrong semicolon in declaration
32124
32125 * grub/misc.h (grub_dprintf): remove semicolon
32126
112972a9 321272009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32128
32129 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
32130 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
32131 is done by grub_cmd_linux() now).
32132 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
32133 restore video to text mode.
32134 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
32135 indicates lack of "vga=" parameter. "vga=0" is mapped to
32136 `GRUB_LINUX_VID_MODE_NORMAL'.
32137
afd5c115 321382009-05-04 Felix Zielcke <fzielcke@z-51.de>
32139
32140 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
32141 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
32142 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 32143 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 32144 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
32145 `grub_script.tab.c'.
32146
32147 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32148 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32149 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32150 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32151 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32152
faa517ce 32153 * Makefile.in: Remove duplicated 2008 in Copyright line.
32154
ae0c0bdc 321552009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32156
473d1e45 32157 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 32158 unconditionally.
32159 * include/grub/util/misc.h (grub_util_warn): New declaration.
32160
32161 * util/i386/pc/grub-install.in: Understand --force and pass it down
32162 to grub-setup.
32163
32164 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
32165 down to setup().
32166 (setup): Improve error messages and add warnings when requested to
32167 install in odd layouts. Refuse to install using blocklists unless
32168 --force was set.
32169
18f547ad 321702009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 32171
32172 * disk/raid.c (grub_raid_scan_device): Improve debug message.
32173
6d260daa 321742009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32175
32176 Updated copyright year
32177
32178 * fs/hfsplus.c: updated copyright year
18f547ad 32179
69f853f8 321802009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32181
32182 HFS+ UUID
32183
18f547ad 32184 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 32185 in the space previously used by unused3
32186 (grub_hfsplus_uuid): new function
32187 (grub_hfsplus_fs): added uuid field
32188
4c402e73 321892009-05-03 Pavel Roskin <proski@gnu.org>
32190
32191 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
32192 suppress warnings. It's no longer needed.
32193 * disk/host.c: Likewise.
32194 * disk/ata_pthru.c: Likewise.
32195 * disk/loopback.c: Likewise.
32196 * hook/datehook.c: Likewise.
32197 * parttool/pcpart.c: Likewise.
32198 * fs/i386/pc/pxe.c: Likewise.
32199 * fs/ntfscomp.c: Likewise.
32200 * efiemu/main.c: Likewise.
32201 * mmap/mmap.c: Likewise.
32202 * commands/crc.c: Likewise.
32203 * commands/hexdump.c: Likewise.
32204 * commands/hdparm.c: Likewise.
32205 * commands/acpi.c: Likewise.
32206 * commands/echo.c: Likewise.
32207 * commands/minicmd.c: Likewise.
32208 * commands/blocklist.c: Likewise.
32209 * commands/memrw.c: Likewise.
32210 * commands/loadenv.c: Likewise.
32211 * commands/usbtest.c: Likewise.
32212 * commands/lsmmap.c: Likewise.
32213 * commands/boot.c: Likewise.
32214 * commands/parttool.c: Likewise.
32215 * commands/configfile.c: Likewise.
32216 * commands/search.c: Likewise.
32217 * commands/ieee1275/suspend.c: Likewise.
32218 * commands/cat.c: Likewise.
32219 * commands/i386/pc/pxecmd.c: Likewise.
32220 * commands/i386/pc/play.c: Likewise.
32221 * commands/i386/pc/halt.c: Likewise.
32222 * commands/i386/pc/vbeinfo.c: Likewise.
32223 * commands/i386/pc/vbetest.c: Likewise.
32224 * commands/lspci.c: Likewise.
32225 * commands/date.c: Likewise.
32226 * commands/handler.c: Likewise.
32227 * commands/ls.c: Likewise.
32228 * commands/test.c: Likewise.
32229 * commands/cmp.c: Likewise.
32230 * commands/efi/loadbios.c: Likewise.
32231 * commands/efi/fixvideo.c: Likewise.
32232 * commands/halt.c: Likewise.
32233 * commands/help.c: Likewise.
32234 * commands/reboot.c: Likewise.
32235 * hello/hello.c: Likewise.
32236 * script/sh/main.c: Likewise.
32237 * loader/xnu.c: Likewise.
32238 * term/terminfo.c: Likewise.
32239 * term/i386/pc/serial.c: Likewise.
32240 * term/usb_keyboard.c: Likewise.
32241
515b5079 322422009-05-03 David S. Miller <davem@davemloft.net>
32243
32244 * normal/menu.c: Include grub/parser.h
32245
dfc31a22 322462009-05-03 Pavel Roskin <proski@gnu.org>
32247
2fee74f1 32248 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
32249 not char*.
32250 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
32251 Suggested by Javier Martín <lordhabbit@gmail.com>
32252
dfc31a22 32253 * util/i386/pc/grub-mkrescue.in: Allow for the case when
32254 efiemu??.o doesn't exist.
32255 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
32256 copying.
32257
18f547ad 322582009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 32259
32260 FreeBSD 64-bit support
32261
18f547ad 32262 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 32263 and loader/i386/bsd_trampoline.S
32264 (bsd_mod_ASFLAGS): new variable
32265 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
32266 (FREEBSD_MODTYPE_KERNEL64): likewise
32267 (grub_bsd64_trampoline_start): likewise
32268 (grub_bsd64_trampoline_end): likewise
32269 (grub_bsd64_trampoline_selfjump): likewise
32270 (grub_bsd64_trampoline_gdt): likewise
32271 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
32272 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
32273 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
32274 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 32275 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 32276 of "attrib" member
32277 * loader/i386/bsd_pagetable.c: new file
32278 * loader/i386/bsd_trampoline.S: likewise
32279 * loader/i386/bsd.c (ALIGN_QWORD): new macro
32280 (ALIGN_VAR): likewise
32281 (entry_hi): new variable
32282 (kern_end_mdofs): likewise
32283 (is_64bit): likewise
32284 (grub_freebsd_add_meta): use ALIGN_VAR
32285 (grub_e820_mmap): new declaration
32286 (grub_freebsd_add_mmap): new function
32287 (grub_freebsd_add_meta_module): support 64 bit kernels
32288 (grub_freebsd_list_modules): use ALIGN_VAR
32289 (gdt_descriptor): new declaration
32290 (grub_freebsd_boot): support 64 bit kernels
32291 (grub_bsd_elf64_hook): new function
32292 (grub_bsd_load_elf): support elf64
32293
038c5720 322942009-05-03 Bean <bean123ch@gmail.com>
32295
32296 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
32297 after we get the result of if statement.
32298
fc45fb58 322992009-05-03 Bean <bean123ch@gmail.com>
32300
32301 * Makefile.in (enable_efiemu): New variable.
32302
32303 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
32304 set.
32305 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
32306 path.
32307 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
32308 path, add -mno-red-zone option.
32309 (efiemu64_s.o): Likewise.
32310 (efiemu64.o): Use macro $^ for source file.
32311
32312 * configure.ac (--enable-efiemu): New option.
32313
bbee0f2b 323142009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
32315
32316 xnu support
32317
32318 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
32319 (pkglib_MODULES): add xnu.mod
32320 (xnu_mod_SOURCES): new variable
32321 (xnu_mod_CFLAGS): likewise
32322 (xnu_mod_LDFLAGS): likewise
32323 (xnu_mod_ASFLAGS): likewise
32324 * conf/i386-pc.rmk: likewise
32325 * conf/x86_64-efi.rmk: likewise
7dd4a573 32326 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 32327 new declaration
32328 * include/grub/i386/macho.h: new file
32329 * include/grub/i386/xnu.h: likewise
32330 * include/grub/macho.h: likewise
32331 * include/grub/machoload.h: likewise
32332 * include/grub/x86_64/macho.h: likewise
32333 * include/grub/x86_64/xnu.h: likewise
32334 * include/grub/xnu.h: likewise
32335 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
32336 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
32337 * loader/i386/efi/xnu.c: new file
32338 * loader/i386/pc/xnu.c: likewise
32339 * loader/i386/xnu.c: likewise
32340 * loader/i386/xnu_helper.S: likewise
32341 * loader/macho.c: likewise
32342 * loader/xnu.c: likewise
32343 * loader/xnu_resume.c: likewise
32344 * util/grub-dumpdevtree: likewise
32345 * include/grub/i386/pit.h: include grub/err.h
32346 (grub_pit_wait): export
32347 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 32348
5caf964d 323492009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32350
32351 Efiemu
7dd4a573 32352
5caf964d 32353 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 32354 _linux_efi, linux_efi.
32355 new files in grub-emu
5caf964d 32356 new targets efiemu32.o and efiemu64.o
32357 * loader/linux_normal_efiemu.c: likewise
32358 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 32359 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 32360 files to copy
32361 * include/grub/autoefi.h: new file
7dd4a573 32362 * include/grub/i386/efiemu.h: likewise
5caf964d 32363 * include/grub/i386/pc/efiemu.h: likewise
32364 * include/grub/efi/api.h: add LL suffix when necessary
32365 new definitions relating to tables
32366 * include/grub/efiemu/efiemu.h: new file
32367 * include/grub/efiemu/runtime.h: likewise
32368 * efiemu/prepare.c: likewise
32369 * efiemu/loadcore_common.c: likewise
32370 * efiemu/loadcore64.c: likewise
32371 * efiemu/runtime/efiemu.sh: likewise
32372 * efiemu/runtime/efiemu.S: likewise
32373 * efiemu/runtime/efiemu.c: likewise
32374 * efiemu/runtime/config.h: likewise
32375 * efiemu/prepare32.c: likewise
32376 * efiemu/main.c: likewise
32377 * efiemu/modules/pnvram.c: likewise
32378 * efiemu/modules/i386: likewise
32379 * efiemu/modules/i386/pc: likewise
32380 * efiemu/modules/acpi.c: likewise
32381 * efiemu/i386/pc/cfgtables.c: likewise
32382 * efiemu/i386/loadcore64.c: likewise
32383 * efiemu/i386/loadcore32.c: likewise
32384 * efiemu/prepare64.c: likewise
32385 * efiemu/loadcore.c: likewise
32386 * efiemu/symbols.c: likewise
32387 * efiemu/mm.c: likewise
32388 * efiemu/loadcore32.c: likewise
7dd4a573 32389
323902009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 32391
32392 ACPI spoofing
32393
32394 * commands/acpi.c: new file
32395 * commands/i386/pc/acpi.c: likewise
32396 * commands/efi/acpi.c: likewise
32397 * include/grub/acpi.h: likewise
32398 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
32399 (acpi_mod_SOURCES): new variable
32400 (acpi_mod_CFLAGS): likewise
32401 (acpi_mod_LDFLAGS): likewise
32402 * conf/i386-efi.rmk: likewise
32403 * conf/x86_64-efi.rmk: likewise
32404
7dd4a573 324052009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 32406
32407 Missing part from mmap patch
32408
32409 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
32410 (grub_mmap_unregister)
32411 (grub_mmap_free_and_unregister): use grub_mmap_register
32412
7dd4a573 324132009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 32414
32415 Mmap services
32416
32417 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32418 * loader/i386/linux.c (find_mmap_size): likewise
32419 (allocate_pages): likewise
32420 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32421 (grub_fill_multiboot_mmap): likewise
32422 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32423 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32424 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32425 (OPENBSD_MMAP_RESERVED): likewise
32426 * include/grub/i386/pc/memory.h: include grub/memory.h
32427 (grub_lower_mem): removed
32428 (grub_upper_mem): likewise
32429 (GRUB_MACHINE_MEMORY_ACPI): new definition
32430 (GRUB_MACHINE_MEMORY_NVS): likewise
32431 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32432 (GRUB_MACHINE_MEMORY_HOLE): likewise
32433 (grub_machine_mmap_register): likewise
32434 (grub_machine_mmap_unregister): likewise
32435 (grub_machine_get_upper): likewise
32436 (grub_machine_get_lower): likewise
32437 (grub_machine_get_post64): likewise
32438 * include/grub/i386/efi/memory.h: new file
32439 * include/grub/x86_64/efi/memory.h: likewise
32440 * include/grub/efi/memory.h: likewise
32441 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32442 (mmap_mod_SOURCES): new variable
32443 (mmap_mod_LDFLAGS): likewise
32444 (mmap_mod_ASFLAGS): likewise
32445 * conf/i386-coreboot.rmk: likewise
32446 * conf/i386-ieee1275.rmk: likewise
32447 * conf/i386-efi.rmk: likewise
32448 * conf/x86_64-efi.rmk: likewise
32449 * include/grub/types.h (UINT_TO_PTR): new macro
32450 (PTR_TO_UINT32): likewise
32451 (PTR_TO_UINT64): likewise
32452 * include/grub/memory.h: new file
32453 * mmap/i386/pc/mmap.c: likewise
32454 * mmap/i386/pc/mmap_helper.S: likewise
32455 * mmap/i386/uppermem.c: likewise
32456 * mmap/mmap.c: likewise
32457 * mmap/efi/mmap.c: likewise
7dd4a573 32458 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 32459 grub_upper_mem
32460 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32461 (grub_upper_mem): likewise
32462 (grub_machine_init): don't use grub_upper_mem,
32463 make grub_lower_mem local
32464 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32465 grub_mmap_iterate and grub_mmap_get_upper
32466 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32467
d558e6b5 324682009-05-02 Bean <bean123ch@gmail.com>
32469
32470 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32471 script/sh/parser.y.
32472 (pkglib_MODULES): Add normal.mod and sh.mod.
32473 (normal_SOURCES): New variable.
32474 (normal_mod_CFLAGS): Likewise.
32475 (normal_mod_LDFLAGS): Likewise.
32476 (sh_mod_SOURCES): Likewise.
32477 (sh_mod_CFLAGS): Likewise.
32478 (sh_mod_LDFLAGS): Likewise.
32479
32480 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32481 script/sh/lexer.c_DEPENDENCIES.
32482 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32483 kern/rescue_reader.c and kern/rescue_parser.c.
32484 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32485 (grub_emu_SOURCES): Change source files.
32486 (pkglib_MODULES): Remove normal.mod.
32487 (normal_SOURCES): Removed.
32488 (normal_mod_CFLAGS): Likewise.
32489 (normal_mod_LDFLAGS): Likewise.
32490 * conf/i386-coreboot.rmk: Likewise.
32491 * conf/i386-efi.rmk: Likewise.
32492 * conf/i386-ieee1276.rmk: Likewise.
32493 * conf/powerpc-ieee1275.rmk: Likewise.
32494 * conf/sparc64-ieee1275.rmk: Likewise.
32495 * conf/x86_64-efi.rmk: Likewise.
32496
32497 * include/grub/command.h (grub_command_execute): New inline function.
32498
32499 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32500
32501 * include/grub/normal.h: Remove <grub/setjmp.h>.
32502 (grub_fs_module_list): Moved to normal/autofs.c.
32503 (grub_exit_env): Removed.
32504 (grub_command_execute): Likewise.
32505 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32506 parameter script.
32507 (read_command_list): New function declaration.
32508 (read_fs_list): Likewise.
32509
32510 * include/parser.h: Include <grub/reader.h>.
32511 (grub_parser_split_cmdline): Change type of getline parameter.
32512 (grub_parser): New structure.
32513 (grub_parser_class): New variable.
32514 (grub_parser_execute): New function declaration.
32515 (grub_register_rescue_parser): Likewise.
32516 (grub_parser_register): New inline function.
32517 (grub_parser_unregister): Likewise.
32518 (grub_parser_get_current): Likewise.
32519 (grub_parser_set_current): Likewise.
32520
32521 * include/grub/reader.h: New file.
32522 * kern/reader.c: Likewise.
32523 * kern/rescue_parser.c: Likewise.
32524 * kern/rescue_reader.c: Likewise.
32525 * normal/autofs.c: Likewise.
32526 * normal/dyncmd.c: Likewise.
32527
32528 * include/grub/rescue.h: Removed.
32529 * normal/command.h: Likewise.
32530
32531 * include/grub/script.h: Moved to ...
32532 * include/grub/script_sh.h: ... Moved here.
32533 * normal/execute.c: Moved to ...
32534 * script/sh/execute.c: ... Moved here.
32535 * normal/function.c: Moved to ...
32536 * script/sh/function.c: ... Moved here.
32537 * normal/lexer.c: Moved to ...
32538 * script/sh/lexer.c: ... Moved here.
32539 * normal/parser.y: Moved to ...
32540 * script/sh/parser.y: ... Moved here.
32541 * normal/script.c: Moved to ...
32542 * script/sh/script.c: ... Moved here.
32543
32544 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32545 <grub/reader.h>.
32546 (grub_exit_env): Removed.
32547 (fs_module_list): Moved to normal/autofs.c.
32548 (grub_file_getline): Don't handle comment here.
32549 (free_menu): Skip removed field entry->commands.
32550 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32551 script parameter.
32552 (read_config_file): Removed nested parameter, change getline function.
32553 (grub_enter_normal_mode): Removed.
32554 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32555 (read_command_list): Likewise.
32556 (autoload_fs_module): Moved to normal/autofs.c.
32557 (read_fs_list): Likewise.
32558 (reader_nested): New variable.
32559 (grub_normal_execute): Run parser.sh to switch to sh parser.
32560 (grub_cmd_rescue): Removed.
32561 (cmd_normal): Removed.
32562 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32563 rescue command.
32564 (grub_cmdline_run): New function.
32565 (grub_normal_reader_init): Likewise.
32566 (grub_normal_read_line): Likewise.
32567 (grub_env_write_pager): Likewise.
32568 (cmdline): New variable.
32569 (grub_normal_reader): Likewise.
32570 (GRUB_MOD_INIT): Register normal reader and set as current, register
32571 pager hook, register normal command with grub_register_command_prio,
32572 so that it won't show up in command.lst.
32573 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32574 grub_fs_autoload_hook.
32575
32576 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32577 (grub_menu_execute_entry): Replace grub_script_execute with
32578 grub_parser_execute, change parameter to grub_command_execute.
32579
32580 * normal/menu_text.c: Remove <grub/script.h>.
32581
32582 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32583 and <grub/parser.h>.
32584 (run): Change editor_getline to use new parser interface. Change
32585 parameter to grub_command_execute.
32586
32587 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32588 <grub/reader.h> and <grub/parser.h>.
32589 (grub_load_normal_mode): Execute normal command.
32590 (grub_main): Call grub_register_core_commands,
32591 grub_register_rescue_parser and grub_register_rescue_reader, use
32592 grub_reader_loop to enter input loop.
32593
7dd4a573 32594 * kern/parser.c (grub_parser_split_cmdline): Change type of
32595 getline parameter.
d558e6b5 32596 (grub_parser_class): New variable.
32597 (grub_parser_execute): New function.
32598
32599 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32600 * loader/multiboot2.c: Likewise.
32601 * loader/sparc64/ieee1275/linux.c: Likewise.
32602
32603 * util/grub-emu.c (read_command_list): New dummy function.
32604
18db813d 326052009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32606
32607 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32608 count to 16 for CCISS and IDA.
32609
6c67de15 326102009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32611
32612 * normal/menu_text.c (grub_wait_after_message): Print a newline
32613 after waiting for user input.
32614
32615 * loader/i386/linux.c: Include `<grub/normal.h>'.
32616 (grub_cmd_linux): Improve the error message about `ask' mode, by
32617 waiting for user input so it's not missed (we can do this, since
32618 user requested interaction).
32619
d9dc87b0 326202009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32621
32622 Added missing lst to grub-mkrescue
32623
32624 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32625 and ${input_dir}/parttool.lst
32626
ac8a2baa 326272009-04-30 David S. Miller <davem@davemloft.net>
32628
ad22a610 32629 * util/hostdisk.c (device_is_wholedisk): New function.
32630 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32631 zero only if device_is_wholedisk() returns true.
32632
6966215d 32633 * util/hostdisk.c (convert_system_partition_to_system_disk):
32634 Handle virtual disk devices named /dev/vdiskX as found on sparc
32635 and powerpc.
32636
ac8a2baa 32637 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32638 lettered partition specifier is found, convert to numbered.
32639
979b4fb4 326402009-04-29 David S. Miller <davem@davemloft.net>
32641
e2bf39b2 32642 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32643 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32644
3c64e104 32645 * normal/command.c: Add missing newline at end of file.
32646
979b4fb4 32647 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32648 warnings.
32649 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32650 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32651 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32652 ihandles have a 32-bit type but need to be stored in a "void *".
32653
136d9f82 326542009-04-28 Pavel Roskin <proski@gnu.org>
32655
9459c306 32656 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32657 not disk. Adjust all dependencies.
2e08a26a 32658 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 32659 grub_disk_close().
32660
136d9f82 32661 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32662 parent's partition, don't copy it by reference, as it gets freed
32663 on close.
32664
7dd4a573 326652009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 32666
32667 Preboot hooks support
32668
32669 * commands/boot.c (struct grub_preboot_t): new declaration
32670 (preboots_head): new variable
32671 (preboots_tail): likewise
32672 (grub_loader_register_preboot_hook): new function
32673 (grub_loader_unregister_preboot_hook): likewise
32674 (grub_loader_set): launch preboot hooks
32675 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32676 (grub_loader_register_preboot_hook): new declaration
32677 (grub_loader_unregister_preboot_hook): likewise
32678
5af922b5 326792009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32680
32681 Warning fix
32682
7dd4a573 32683 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 32684 calling grub_dprintf
32685
a5562c30 326862009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32687
32688 Bug and warning fixes
32689
7dd4a573 32690 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 32691 declaration
32692 * commands/test.c (test_parse): fixed bug with file tests and corrected
32693 declaration of find_file
32694
4006f85c 326952009-04-26 Pavel Roskin <proski@gnu.org>
32696
32697 * Makefile.in: Don't install empty manual pages if help2man is
32698 missing. Use help2man option for output, not shell redirection.
32699
5c77c3de 327002009-04-26 David S. Miller <davem@davemloft.net>
32701
32702 * util/grub-mkdevicemap.c (make_device_map): Add missing
32703 NESTED_FUNC_ATTR to process_device().
32704
033b10a8 327052009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32706
32707 Test command
32708
32709 * commands/test.c: rewritten to use bash-like test
32710
e4343593 327112009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32712
32713 Parttool autoloading and improvements
32714
7dd4a573 32715 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 32716 (parttool.lst): new target
32717 * genmk.rb: generate parttool-*
32718 (CLEANFILES): add #{parttool}
32719 (PARTTOOLFILES): new variable
32720 * genparttoollist.sh: new file
7dd4a573 32721 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 32722 (grub_pcpart_type): likewise
32723 * commands/parttool.c (helpmsg): new variable
32724 (grub_cmd_parttool): output help if not enough arguments are supplied
32725 autoload modules
32726 (GRUB_MOD_INIT(parttool)): use helpmsg
32727
0d312500 327282009-04-24 David S. Miller <davem@davemloft.net>
32729
7dd4a573 32730 Avoiding opening same device multiple times in device iterator.
0d312500 32731
32732 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 32733 and use it to build a list of partitions in iterate_disk() and
0d312500 32734 iterate_partition().
32735
ac20caff 32736 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32737 on disk->data.
32738
0dcf7495 32739 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32740 grub_devalias_iterate() result instead of unconditional 0.
32741 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32742 Also, capture hook return value, either directly or via
32743 grub_children_iterate(), and propagate to caller.
32744 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32745 grub_children_iterate): Return value is now 'int' instead of
32746 'grub_err_t'.
32747 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32748 like a proper iterator, stopping when hooks return non-zero.
32749 (grub_devalias_iterate): Likewise.
32750
c8c08833 327512009-04-23 David S. Miller <davem@davemloft.net>
32752
32753 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32754
f01005a8 327552009-04-22 David S. Miller <davem@davemloft.net>
32756
32757 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32758 is larger than address_cells, use that value for address_cells too.
32759
4e8269da 32760 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32761 IEEE1275_MAX_PATH_LEN): Define.
32762 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32763 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32764 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32765 'devtype'. Explicitly NULL terminate devalias expansion.
32766
a1447506 32767 * util/sparc64/ieee1275/misc.c: New file.
32768 * util/sparc64/ieee1275/grub-setup.c: New file.
32769 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32770 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32771 * util/sparc64/ieee1275/grub-install.in: New file.
32772 * util/ieee1275/ofpath.c: New file.
32773 * util/ieee1275/devicemap.c: New file.
32774 * util/devicemap.c: New file.
32775 * util/deviceiter.c: New file.
32776 * kern/sparc64/ieee1275/init.c: New file.
32777 * include/grub/util/ofpath.h: New file.
32778 * include/grub/util/deviceiter.h: New file.
32779 * util/grub-mkdevicemap.c: Include deviceiter.h.
32780 Implement using grub_util_emit_devicemap_entry and
32781 grub_util_iterate_devices.
32782 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32783 util/devicemap.c into grub-mkdevicemap
32784 * conf/i386-efi.rmk: Likewise.
32785 * conf/i386-ieee1275.rmk: Likewise.
32786 * conf/i386-pc.rmk: Likewise.
32787 * conf/powerpc-ieee1275.rmk: Likewise.
32788 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32789 images and installation utilities. Build kernel as image
32790 instead of as elf binary. Use common rules as much as possible.
32791
7dd4a573 327922009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 32793
32794 Correct GPT definition
32795
7dd4a573 32796 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 32797 of "attrib" member
32798
c6c5219f 327992009-04-19 Felix Zielcke <fzielcke@z-51.de>
32800
32801 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32802
0552ff9f 328032009-04-19 David S. Miller <davem@davemloft.net>
32804
32805 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32806 (grub_rescue_cmd_linux): Rename to...
32807 (grub_cmd_linux): and fix prototype.
32808 (grub_rescue_cmd_initrd): Rename to...
32809 (grub_cmd_initrd): and fix prototype.
32810 (cmd_linux, cmd_initrd): New.
32811 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32812 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32813
d1a282fc 328142009-04-17 Pavel Roskin <proski@gnu.org>
32815
07c5039f 32816 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32817 format.
32818 (grub_ohci_transfer): Likewise.
32819
b012002d 32820 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32821
1bc09c35 32822 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32823 return without a value. Fix inconsistent indentation.
32824
e0ff9126 32825 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32826 match struct grub_fs.
32827
d1a282fc 32828 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32829 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32830 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32831 * commands/lspci.c (grub_lspci_iter): Likewise.
32832
a96df3f2 328332009-04-16 Bean <bean123ch@gmail.com>
32834
32835 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32836 value.
32837
41bb0fe9 328382009-04-15 Pavel Roskin <proski@gnu.org>
32839
32840 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32841 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32842 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32843 definitions.
32844
596c6970 328452009-04-15 Felix Zielcke <fzielcke@z-51.de>
32846
32847 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 32848 that no multiple data or metadata areas are supported and `Unknown
596c6970 32849 metadata header'.
32850
7dd4a573 328512009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 32852
32853 Move loader out of the kernel
32854
32855 * kern/loader.c: moved to ...
32856 * commands/boot.c: ... moved here
32857 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32858 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32859 * include/grub/kernel.h (grub_machine_fini): export
32860 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32861 (grub_loader_set): likewise
32862 (grub_loader_unset): likewise
32863 (grub_loader_boot): likewise
32864 * conf/common.rmk: new module boot.mod
32865 (pkglib_MODULES): add boot.mod
32866 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32867 (grub_emu_SOURCES): likewise
32868 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32869 (grub_emu_SOURCES): likewise
32870 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32871 (grub_emu_SOURCES): likewise
32872 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32873 (grub_emu_SOURCES): likewise
32874 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32875 (grub_emu_SOURCES): likewise
7dd4a573 32876 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32877 (grub_emu_SOURCES): likewise
0d5d5653 32878 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 32879 (grub_emu_SOURCES): likewise
0d5d5653 32880
7dd4a573 328812009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 32882
32883 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 32884
5999d619 32885 * kern/misc.c (grub_itoa): Removed function
32886 (grub_ltoa): likewise
32887 (grub_vsprintf): use grub_lltoa
32888
7dd4a573 328892009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 32890
32891 Restore grub-emu
32892
32893 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32894 * conf/i386-coreboot.rmk: likewise
32895 * conf/i386-ieee1275.rmk: likewise
32896 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 32897
20318222 328982009-04-15 Felix Zielcke <fzielcke@z-51.de>
32899
32900 * INSTALL: Add that `./autogen.sh' needs to be run before
32901 `./configure.'.
32902
d05f0df3 329032009-04-14 Bean <bean123ch@gmail.com>
32904
32905 * Makefile.in (pkglib_DATA): Add handler.lst.
32906 (handler.lst): New rule.
32907
32908 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32909 * conf/i386-coreboot.rmk: Likewise.
32910 * conf/i386-ieee1275.rmk: Likewise.
32911 * conf/i386-efi.rmk: Likewise.
32912 * conf/x86_64-efi.rmk: Likewise.
32913 * conf/powerpc-ieee1275.rmk: Likewise.
32914 * conf/sparc64-ieee1275.rmk: Likewise.
32915
32916 * genhandlerlist.sh: New file.
32917
32918 * genmk.rb: Add rules to generate handler.lst.
32919
32920 * include/grub/normal.h (grub_file_getline): New function definition.
32921 (read_handler_list): Likewise.
32922 (free_handler_list): Likewise.
32923
32924 * include/grub/term.h (grub_term_register_input): Add name parameter
32925 for auto generation of handler.lst.
32926 (grub_term_register_output): Likewise.
32927
32928 * normal/handler.c: New file.
32929
32930 * normal/main.c (get_line): Renamed to grub_file_getline.
32931 (read_config_file): Use the newly renamed grub_file_getline.
32932 (read_command_list): Likewise.
32933 (read_fs_list): Likewise.
32934 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32935 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32936
32937 * term/efi/console.c (grub_console_init): Add name parameter for auto
32938 generation of handler.lst.
32939 * term/gfxterm.c: Likewise.
32940 * term/i386/pc/at_keyboard.c: Likewise.
32941 * term/i386/pc/console.c: Likewise.
32942 * term/i386/pc/serial.c: Likewise.
32943 * term/i386/pc/vesafb.c: Likewise.
32944 * term/i386/pc/vga.c: Likewise.
32945 * term/i386/pc/vga_text.c: Likewise.
32946 * term/ieee1275/ofconsole.c: Likewise.
32947 * term/usb_keyboard.c: Likewise.
32948
33c846be 329492009-04-14 Bean <bean123ch@gmail.com>
32950
32951 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32952 properly with null character.
32953
4484e01e 329542009-04-14 Felix Zielcke <fzielcke@z-51.de>
32955
32956 * configure: Remove.
32957 * config.h.in: Likewise.
f93d668e 32958 * stamp-h.in: Likewise.
4484e01e 32959 * DISTLIST: Likewise.
32960 * conf/common.mk: Likewise.
32961 * conf/i386-coreboot.mk: Likewise.
32962 * conf/i386-efi.mk: Likewise.
32963 * conf/i386-ieee1275.mk: Likewise.
32964 * conf/i386.mk: Likewise.
32965 * conf/i386-pc.mk: Likewise.
32966 * conf/powerpc-ieee1275.mk: Likewise.
32967 * conf/sparc64-ieee1275.mk: Likewise.
32968 * conf/x86_64-efi.mk: Likewise.
32969
32970 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32971 develop on GRUB.
32972
7dd4a573 329732009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 32974 David S. Miller <davem@davemloft.net>
32975
32976 * util/hostdisk.c (make_device_name): Fix buffer length
32977 calculations.
32978
e25b5a8c 329792009-04-14 Felix Zielcke <fzielcke@z-51.de>
32980
32981 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32982 <sys/param.h> and <sys/sysctl.h>.
32983 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32984 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32985 opening the device and reset them afterwards.
32986
1f1f580c 329872009-04-13 Pavel Roskin <proski@gnu.org>
32988
32989 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32990 Reported by John Stanley <jpsinthemix@verizon.net>
32991
7ebc2d6b 329922009-04-13 Robert Millan <rmh@aybabtu.com>
32993
32994 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 32995 that name for menuentries when appropriate.
7ebc2d6b 32996
d8ba3667 329972009-04-13 Felix Zielcke <fzielcke@z-51.de>
32998
32999 * util/grub.d/10_freebsd.in: Add a missing `fi'.
33000
cba416eb 330012009-04-13 Robert Millan <rmh@aybabtu.com>
33002
33003 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
33004 to Linux, simply abort telling the user it's no longer supported.
33005
a547a745 330062009-04-13 Felix Zielcke <fzielcke@z-51.de>
33007
33008 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 33009 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 33010 `freebsd_loadenv' only when devices.hints exist.
33011
232a769c 330122009-04-13 Pavel Roskin <proski@gnu.org>
33013
33014 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
33015
c3012039 330162009-04-13 Felix Zielcke <fzielcke@z-51.de>
33017
33018 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
33019 partition number.
33020 (grub_drive): Likewise.
33021
234022fe 330222009-04-13 David S. Miller <davem@davemloft.net>
33023
33024 * kern/sparc64/ieee1275/ieee1275.c: New file.
33025 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
33026 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
33027 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
33028 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
33029 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
33030 grub_ieee1275_alloc_physmem): Declare new exported functions.
33031
d8e1836c 33032 * include/grub/sparc64/ieee1275/loader.h: New file.
33033 * include/grub/sparc64/ieee1275/memory.h: Likewise.
33034 * include/grub/sparc64/kernel.h: Likewise.
33035 * loader/sparc64/ieee1275/linux.c: Likewise.
33036
96bd81ec 33037 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
33038 (grub_fstest_SOURCES): Likewise.
33039
6a4737e5 33040 * util/hostdisk.c (make_device_name): Do not make any assumptions
33041 about the length of drive names.
33042
1d7a72fd 33043 * kern/dl.c (grub_dl_load_file): Close file immediately when
33044 we are done using it.
33045
56bc2471 330462009-04-12 David S. Miller <davem@davemloft.net>
33047
33048 * kern/misc.c (grub_ltoa): Fix cast when handling negative
33049 values. Noticed by Pavel Roskin.
33050
df38d0bb 33051 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
33052 target compiler.
7dd4a573 33053
e382e93a 33054 * genmk.rb: Add more flexible image type specification, also
33055 pass --strip-unneeded to objcopy.
33056 * conf/i386-pc.rmk: Use *_FORMAT.
33057 * conf/i386-pc.mk: Rebuilt.
33058
f5dbbca9 33059 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
33060 (OFDISK_HASH_SZ): Define.
33061 (ofdisk_hash): New hash table.
33062 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
33063 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
33064 instead of device phandle which is not unique.
33065
91c88b12 33066 * kern/sparc64/ieee1275/init.c: Delete, replace with...
33067 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
33068 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
33069 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
33070 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
33071 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
33072 GRUB_KERNEL_MACHINE_DATA_END): Define.
33073 (grub_kernel_image_size, grub_total_module_size): Declare.
33074
5b5d4aa5 330752009-04-12 Pavel Roskin <proski@gnu.org>
33076
7dd4a573 33077 * configure.ac: Change the logic when we check for target tools.
33078 Do it when the target is specified and it's different from the
33079 specified value of the host.
5b5d4aa5 33080
c91e1793 330812009-04-11 Felix Zielcke <fzielcke@z-51.de>
33082
33083 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
33084 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
33085 GNU/kFreeBSD. Check if a device is a character device. Use
33086 DIOCGMEDIASIZE to get the size.
33087 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
33088 support for GNU/kFreeBSD.
33089 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
33090 is a character device instead of a block device. Add support for
33091 FreeBSD device names.
33092
33093 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
33094 is a character device instead of a block device.
33095
33096 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
33097 is a character device instead of a block device.
33098
b1ac8644 330992009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
33100
33101 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
33102 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
33103 FreeBSD. Check if a device is a character device. Use
33104 DIOCGMEDIASIZE to get the size.
33105 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
33106 support for FreeBSD.
33107 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
33108 is a character device instead of a block device. Add support for
33109 FreeBSD device names.
33110
33111 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
33112 a character device instead of a block device.
33113 (grub_util_check_char_device): New function.
33114
33115 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
33116 a character device instead of a block device.
33117
33118 * include/grub/util/getroot.h (grub_util_check_char_device): New
33119 prototype.
33120
a3f7515a 331212009-04-11 David S. Miller <davem@davemloft.net>
33122
33123 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
33124 static libgcc.
33125 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
33126 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
33127 function, if present.
33128 (__bswapdi2): Likewise.
33129
0d44993d 33130 * include/grub/sparc64/ieee1275/boot.h: New file.
33131 * boot/sparc64/ieee1275/boot.S: Likewise.
33132 * boot/sparc64/ieee1275/diskboot.S: Likewise.
33133
ed3d2bc2 33134 * kern/misc.c (grub_ltoa): New function.
33135 (grub_vsprintf): Use it to format 'long' integers.
33136
d3bfb59c 331372009-04-10 David S. Miller <davem@davemloft.net>
33138
33139 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
33140 slots are of type grub_ieee1275_cell_t.
33141 (grub_nand_read): Likewise.
33142 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
33143 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
33144 macros are used to compare values in arg/ret block of the call.
33145 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
33146 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
33147 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
33148 grub_ieee1275_instance_to_path, grub_ieee1275_write,
33149 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
33150 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
33151 grub_ieee1275_close, grub_ieee1275_set_property,
33152 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
33153 grub_ieee1275_cell_t.
33154 * kern/ieee1275/openfw.c (grub_map): Likewise.
33155 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
33156 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
33157
450e2238 33158 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
33159 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
33160 (grub_devalias_iterate): Likewise.
33161
7dd4a573 331622009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 33163
33164 UFS improvements
33165
33166 * fs/ufs.c (INODE_NBLOCKS): new definition
33167 (struct grub_ufs_dirent): added fields for non-BSD dirents
33168 (grub_ufs_get_file_block): fixed double indirect handling
33169 (grub_ufs_lookup_symlink): use more robust way to determine whether
33170 symlink is inline
33171 (grub_ufs_find_file): support for non-BSD dirents
33172 (grub_ufs_dir): support for non-BSD dirents
33173
e7e6862a 331742009-04-10 Bean <bean123ch@gnail.com>
33175
33176 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
33177 attribute, otherwise the size would be wrong for i386 platform.
33178
33179 * include/grub/pci.h (grub_pci_read_word): New inline function.
33180 (grub_pci_read_byte): Likewise.
33181 (grub_pci_write): Likewise.
33182 (grub_pci_write_word): Likewise.
33183 (grub_pci_write_byte): Likewise.
33184
33185 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
33186
33187 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
33188 (find_framebuf): Scan pci to locate the frame buffer address.
33189
33190 * commands/efi/fixvideo.c: New file.
33191
33192 * commands/efi/loadbios.c: Likewise.
33193
33194 * commands/memrw.c: Likewise.
33195
33196 * util/grub-dumpbios.in: Likewise.
33197
33198 * conf/common.rmk (grub-dumpbios): New utility.
33199 (pkglib_MODULES): New module memrw.mod.
33200 (memrw_mod_SOURCE): New macro.
33201 (memrw_mod_CFLAGS): Likewise.
33202 (memrw_mod_LDFLAGS): Likewise.
33203
7dd4a573 33204 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33205 fixvideo.mod.
33206 (loadbios_mod_SOURCE): New macro.
33207 (loadbios_mod_CFLAGS): Likewise.
33208 (loadbios_mod_LDFLAGS): Likewise.
33209 (fixvideo_mod_SOURCE): Likewise.
33210 (fixvideo_mod_CFLAGS): Likewise.
33211 (fixvideo_mod_LDFLAGS): Likewise.
33212
7dd4a573 33213 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33214 fixvideo.mod.
33215 (loadbios_mod_SOURCE): New macro.
33216 (loadbios_mod_CFLAGS): Likewise.
33217 (loadbios_mod_LDFLAGS): Likewise.
33218 (fixvideo_mod_SOURCE): Likewise.
33219 (fixvideo_mod_CFLAGS): Likewise.
33220 (fixvideo_mod_LDFLAGS): Likewise.
33221
af63ada2 332222009-04-08 Felix Zielcke <fzielcke@z-51.de>
33223
33224 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
33225
c2cdde70 332262009-04-07 David S. Miller <davem@davemloft.net>
33227
33228 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
33229 support for R_SPARC_OLO10 relocations. Fix compile warning for
33230 R_SPARC_WDISP30 case.
ea3f72cf 33231 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 33232
761319cf 332332009-04-06 Pavel Roskin <proski@gnu.org>
33234
1007d1f5 33235 * include/grub/misc.h (ARRAY_SIZE): New macro.
33236 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
33237 New macro.
33238 * loader/i386/linux.c (allocate_pages): Use free_pages().
33239 (grub_linux_unload): Don't use free_pages().
33240 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
33241 wrong index. Treat all other modes as text modes.
33242 (grub_cmd_linux): Initialize vid_mode unconditionally to
33243 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
33244
761319cf 33245 * commands/help.c (print_command_help): Use cmd->prio, not
33246 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
33247
ea761d40 332482009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 33249
ea761d40 33250 Parttool
33251
33252 * parttool/pcpart.c: new file
33253 * commands/parttool.c: likewise
33254 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
33255 (parttool_mod_SOURCES): new variable
33256 (parttool_mod_CFLAGS): likewise
33257 (parttool_mod_LDFLAGS): likewise
33258 (pcpart_mod_SOURCES): likewise
33259 (pcpart_mod_CFLAGS): likewise
33260 (pcpart_mod_LDFLAGS): likewise
7dd4a573 33261 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 33262 and parttool/pcpart.c
33263 * conf/i386-efi.rmk: likewise
33264 * conf/i386-ieee1275.rmk: likewise
33265 * conf/i386-pc.rmk: likewise
33266 * conf/powerpc-ieee1275.rmk: likewise
33267 * conf/sparc64-ieee1275.rmk: likewise
33268 * conf/x86_64-ieee1275.rmk: likewise
33269
05aaebfb 332702009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33271
33272 Support for mtime and further expandability of dir command
33273
33274 * include/grub/lib/datetime.h: moved to ...
7dd4a573 33275 * include/grub/datetime.h: ... moved here and added
05aaebfb 33276 declaration of grub_unixtime2datetime. All users updated
7dd4a573 33277 * include/grub/fs.h: new syntax for dir and mtime functions in
33278 struct grub_fs
05aaebfb 33279 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
33280 and GRUB_FSHELP_FLAGS_MASK
33281 * commands/ls.c (grub_ls_list_files): Write mtime in long format
33282 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
33283 (grub_ext2_mtime): new function
33284 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
33285 (grub_hfsplus_mtime): new function
33286 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
33287 (GRUB_UFS_ATTR_FILE): likewise
33288 (GRUB_UFS_ATTR_LNK): likewise
33289 (struct grub_ufs_sblock): new fields mtime
33290 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
33291 all users updated
33292 (grub_ufs_dir): mtime support
33293 (grub_ufs_mtime): new function
33294 * fs/affs.c (grub_affs_dir): use new dir syntax
33295 * fs/afs.c (grub_afs_dir): likewise
33296 * fs/cpio.c (grub_cpio_dir): likewise
33297 * fs/fat.c (grub_fat_find_dir): likewise
33298 * fs/hfs.c (grub_hfs_dir): likewise
33299 * fs/iso9660.c (grub_iso9660_dir): likewise
33300 * fs/jfs.c (grub_jfs_dir): likewise
33301 * fs/minix.c (grub_minix_dir): likewise
33302 * fs/ntfs.c (grub_ntfs_dir): likewise
33303 * fs/reiserfs.c (grub_reiserfs_dir): likewise
33304 * fs/sfs.c (grub_sfs_dir): likewise
33305 * fs/xfs.c (grub_xfs_dir): likewise
33306 * util/hostfs.c (grub_hostfs_dir): likewise
33307 * lib/datetime.c: moved to ...
33308 * normal/datetime.c: ... moved here
33309 (grub_unixtime2datetime): new function
33310 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 33311 * normal/completion.c (iterate_dir): use new dir syntax
33312 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 33313 last modification time of a volume
7dd4a573 33314 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 33315 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 33316 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 33317 (normal_mod_SOURCES): likewise
33318 (datetime_mod_SOURCES): Removed lib/datetime.c
33319 * conf/i386-efi.rmk: likewise
7dd4a573 33320 * conf/i386-ieee1275.rmk: likewise
05aaebfb 33321 * conf/i386-pc.rmk: likewise
33322 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 33323 * conf/sparc64-ieee1275.rmk: likewise
33324 * conf/x86_64-efi.rmk: likewise
05aaebfb 33325
8a7e1a14 333262009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33327
33328 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 33329
33330 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 33331 on grub_fat_find_dir
33332 (grub_fat_find_dir): use grub_fat_iterate_dir
33333 (grub_fat_label): likewise
33334
04186a9c 333352009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
33336
7dd4a573 33337 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 33338 and command.h
33339 remove extraneous kernel_elf_HEADERS
33340
da4c0bb6 333412009-04-04 Bean <bean123ch@gnail.com>
33342
33343 * include/grub/util/misc.h: Add dummy function fsync for mingw.
33344
33345 * util/misc.c: Likewise.
33346
54ad9555 333472009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33348
33349 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
33350 instead of grub_printf.
33351
7a6bf9f2 333522009-04-03 Robert Millan <rmh@aybabtu.com>
33353
33354 * loader/i386/linux.c (grub_linux_setup_video): Fill
33355 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
33356 values from `mode info' structure instead of hardcoded
33357 values.
33358
3fcc2083 333592009-04-01 Pavel Roskin <proski@gnu.org>
33360
33361 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
33362 unused now.
33363 * genmk.rb: Likewise.
33364 * configure.ac: Likewise.
33365
5ec9740b 333662009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
33367
33368 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
33369 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
33370
5270cec8 333712009-04-01 David S. Miller <davem@davemloft.net>
33372
33373 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 33374 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 33375 (grub_setjmp): Mark with 'returns_twice' attribute.
33376 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
33377 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
33378 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
33379
9c3dd854 333802009-04-01 Robert Millan <rmh@aybabtu.com>
33381
33382 Reapply fix from 2008-07-28 which was accidentally reverted; also
33383 perform the same fix to a similar check in same function.
33384
33385 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
33386 with the same number are found, just use issue a warning with
33387 grub_dprintf(), as this error has been reported to be non-fatal.
33388
0d818b7e 333892009-03-31 Pavel Roskin <proski@gnu.org>
33390
33391 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
33392 for cross-compilation.
33393
95646d92 333942009-03-30 Robert Millan <rmh@aybabtu.com>
33395
33396 Fix i386-ieee1275 build.
33397
33398 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
33399 Remove declaration.
33400
6a003ed1 334012009-03-30 Pavel Roskin <proski@gnu.org>
33402
33403 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
33404 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
33405 zero-terminated, rely only on the strlen value. Fix comparison
33406 of strings differing in length.
33407
92f33540 334082009-03-30 Robert Millan <rmh@aybabtu.com>
33409
33410 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
33411 checking for abi version. Improve error messages on BIOS to notify
33412 user about `linux16' command.
33413
a8c48fd5 334142009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33415
f968172e 33416 Leak fixes
a8c48fd5 33417
f968172e 33418 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33419 in case of collision
33420 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 33421
9c323f09 334222009-03-29 Robert Millan <rmh@aybabtu.com>
33423
33424 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33425 set `vid_mode' accordingly.
33426 (grub_linux_boot): Process `vid_mode' and set video mode.
33427
ae68f423 334282009-03-29 Robert Millan <rmh@aybabtu.com>
33429
33430 * util/grub.d/10_linux.in (linux_entry): New function.
33431 Factorize generation of Linux boot entries.
33432
5709cfc4 334332009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33434
33435 Make the format of Environment Block plain text. The boot loader
33436 part is not tested well yet.
7dd4a573 33437
5709cfc4 33438 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33439 (buffer): Removed.
33440 (envblk): Likewise.
33441 (usage): Remove "info" and "clear". Add "unset". Update the
33442 description of "set", as this does not delete variables any
33443 longer.
33444 (create_envblk_file): Complete rewrite.
33445 (open_envblk_file): Likewise.
33446 (cmd_info): Removed.
33447 (cmd_list): Likewise.
33448 (cmd_set): Likewise.
33449 (cmd_clear): Likewise.
33450 (list_variables): New function.
33451 (write_envblk): Likewise.
33452 (set_variables): Likewise.
33453 (unset_variables): Likewise.
33454 (main): Complete rewrite.
33455
33456 * commands/loadenv.c (buffer): Removed.
33457 (envblk): Likewise.
33458 (open_envblk_file): New function.
33459 (read_envblk_file): Complete rewrite.
33460 (grub_cmd_load_env): Likewise.
33461 (grub_cmd_list_env): Likewise.
33462 (struct blocklist): New struct.
33463 (free_blocklists): New function.
33464 (check_blocklists): Likewise.
33465 (write_blocklists): Likewise.
33466 (grub_cmd_save_env): Complete rewrite.
33467
33468 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33469 a plain text signature.
33470 (GRUB_ENVBLK_MAXLEN): Removed.
33471 (struct grub_envblk): Complete rewrite.
33472 (grub_envblk_find): Removed.
33473 (grub_envblk_insert): Likewise.
33474 (grub_envblk_open): New prototype.
33475 (grub_envblk_set): Likewise.
33476 (grub_envblk_delete): Put const to VALUE.
33477 (grub_envblk_iterate): Put const to NAME and VALUE.
33478 (grub_envblk_close): New prototype.
33479 (grub_envblk_buffer): New inline function.
33480 (grub_envblk_size): Likewise.
33481
33482 * lib/envblk.c: Include grub/mm.h.
33483 (grub_env_find): Removed.
33484 (grub_envblk_open): New function.
33485 (grub_envblk_close): Likewise.
33486 (escaped_value_len): Likewise.
33487 (find_next_line): Likewise.
33488 (grub_envblk_insert): Removed.
33489 (grub_envblk_set): New function.
33490 (grub_envblk_delete): Complete rewrite.
33491 (grub_envblk_iterate): Likewise.
33492
a9368fd3 334932009-03-28 Robert Millan <rmh@aybabtu.com>
33494
33495 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33496 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33497 variables. Use 16-bit loader.
33498 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33499 loader.
33500 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33501 (grub_linux16_boot): ... this. Update all users.
33502 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33503 (grub_linux_boot): ... this. Update all users.
33504
33505 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33506 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33507 commands to `linux16' and `initrd16'.
33508 (GRUB_MOD_FINI(linux)): Rename to ...
33509 (GRUB_MOD_FINI(linux16)): ... this.
33510
e4dd5a7e 335112009-03-24 Pavel Roskin <proski@gnu.org>
33512
33513 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33514 not just for compilation.
33515
c04d6e05 335162009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33517
33518 Move multiboot helper out of kernel
33519
33520 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33521 `loader/i386/multiboot_helper.S'.
33522 * conf/i386-coreboot.rmk: Likewise
33523 * conf/i386-ieee1275.rmk: Likewise
33524
33525 * kern/i386/loader.S: Move multiboot helpers from here...
33526 * loader/i386/multiboot_helper.S: ...moved here
33527 * include/grub/i386/loader.h: Move declarations of multiboot
33528 helpers from here...
33529 * include/grub/i386/multiboot.h: ...moved here
33530 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33531
42a5b3fc 335322009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33533
33534 * kern/env.c (grub_env_context_open): Added an argument to specify
33535 whether a new context inherits exported variables from current
33536 one. This is useful when making a sandbox to interpret a config
33537 file.
33538 All callers updated.
33539
33540 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33541
b28bbc4e 335422009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33543
33544 * kern/env.c (grub_env_context_close): Fix memory leaks.
33545
f04f02e4 335462009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33547
33548 * normal/main.c (grub_normal_execute): Added an argument
33549 BATCH to specify if an interactive interface should be provided
33550 after reading a config file.
33551 All callers updated.
33552 (read_command_list): Prevent being executed twice.
33553 (read_fs_list): Likewise.
33554
42a5b3fc 33555 * include/grub/normal.h (grub_normal_execute): Updated the
33556 prototype.
f04f02e4 33557
41473ac2 335582009-03-22 Pavel Roskin <proski@gno.org>
33559
fbc00b0c 33560 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33561 _start.
33562 * kern/i386/pc/startup.S: Likewise.
33563 * kern/i386/efi/startup.S: Likewise.
33564 * kern/i386/ieee1275/startup.S: Likewise.
33565 * kern/i386/coreboot/startup.S: Likewise.
33566 * kern/x86_64/efi/startup.S: Likewise.
33567
41473ac2 33568 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33569 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33570 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33571
2274cc8f 335722009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33573
33574 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33575
33576 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33577 limit detection.
33578 Use vaddr of correct segment for entry_point.
33579
b1b797cb 335802009-03-21 Bean <bean123ch@gmail.com>
33581
33582 * commands/blocklist.c: Add include file <grub/command.h>, remove
33583 <grub/normal.h> and <grub/arg.h>.
33584 (grub_cmd_blocklist): Use the new command interface.
33585 (GRUB_MOD_INIT): Likewise.
33586 (GRUB_MOD_FINI): Likewise.
33587 * commands/boot.c: Likewise.
33588 * commands/cat.c: Likewise.
33589 * commands/cmp.c: Likewise.
33590 * commands/configfile.c: Likewise.
33591 * commands/crc.c: Likewise.
33592 * commands/echo.c: Likewise.
33593 * commands/halt.c: Likewise.
33594 * commands/handler.c: Likewise.
33595 * commands/hdparm.c: Likewise.
33596 * commands/help.c: Likewise.
33597 * commands/hexdump.c: Likewise.
33598 * commands/loadenv.c: Likewise.
33599 * commands/ls.c: Likewise.
33600 * commands/lsmmap.c: Likewise.
33601 * commands/lspci.c: Likewise.
33602 * commands/loadenv.c: Likewise.
33603 * commands/read.c: Likewise.
33604 * commands/reboot.c: Likewise.
33605 * commands/search.c: Likewise.
33606 * commands/sleep.c: Likewise.
33607 * commands/test.c: Likewise.
33608 * commands/usbtest.c: Likewise.
33609 * commands/videotest.c: Likewise.
33610 * commands/i386/cpuid.c: Likewise.
33611 * commands/i386/pc/halt.c: Likewise.
33612 * commands/i386/pc/play.c: Likewise.
33613 * commands/i386/pc/pxecmd.c: Likewise.
33614 * commands/i386/pc/vbeinfo.c: Likewise.
33615 * commands/i386/pc/vbetest.c: Likewise.
33616 * commands/ieee1275/suspend.c: Likewise.
33617 * disk/loopback.c: Likewise.
33618 * font/font_cmd.c: Likewise.
33619 * hello/hello.c: Likewise.
33620 * loader/efi/appleloader.c: Likewise.
33621 * loader/efi/chainloader.c: Likewise.
33622 * loader/i386/bsd.c: Likewise.
33623 * loader/i386/efi/linux.c: Likewise.
33624 * loader/i386/ieee1275/linux.c: Likewise.
33625 * loader/i386/linux.c: Likewise.
33626 * loader/i386/pc/chainloader.c: Likewise.
33627 * loader/i386/pc/linux.c: Likewise.
33628 * loader/powerpc/ieee1275/linux.c: Likewise.
33629 * loader/multiboot_loader.c: Likewise.
33630 * term/gfxterm.c: Likewise.
33631 * term/i386/pc/serial.c: Likewise.
33632 * term/terminfo.c: Likewise.
33633
33634 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33635 * term/i386/pc/vga.c: Likewise.
33636 * video/readers/jpeg.c: Likewise.
33637 * video/readers/png.c: Likewise.
33638 * video/readers/tga.c: Likewise.
33639
33640 * util/grub-fstest (cmd_loopback): Removed.
33641 (cmd_blocklist): Likewise.
33642 (cmd_ls): Likewise.
33643 (grub_register_command): Likewise.
33644 (grub_unregister_command): Likewise.
33645 (execute_command): Use grub_command_find to locate command and execute
33646 it.
33647
33648 * include/grub/efi/chainloader.h: Removed.
33649 * loader/efi/chainloader_normal.c: Likewise.
33650 * loader/i386/bsd_normal.c: Likewise.
33651 * loader/i386/pc/chainloader_normal.c: Likewise.
33652 * loader/i386/pc/multiboot_normal.c: Likewise.
33653 * loader/linux_normal.c: Likewise.
33654 * loader/multiboot_loader_normal.c: Likewise.
33655 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33656
33657 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33658 and grub_register_command_p1.
33659
33660 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33661 kern/command.c, lib/arg.c and commands/extcmd.c.
33662 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33663 (minicmd_mod_SOURCES): New variable.
33664 (minicmd_mod_CFLAGS): Likewise.
33665 (minicmd_mod_LDFLAGS): Likewise.
33666 (extcmd_mod_SOURCES): Likewise.
33667 (extcmd_mod_CFLAGS): Likewise.
33668 (extcmd_mod_LDFLAGS): Likewise.
33669 (boot_mod_SOURCES): Removed.
33670 (boot_mod_CFLAGS): Likewise.
33671 (boot_mod_LDFLAGS): Likewise.
33672
33673 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33674 kern/corecmd.c.
33675 (kernel_img_HEADERS): Add command.h.
33676 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33677 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33678 and lib/arg.c.
33679 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33680 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33681 remove the corresponding normal mode command.
33682 (normal_mod_SOURCES): Remove normal/arg.c.
33683 * conf/i386-coreboot.rmk: Likewise.
33684 * conf/i386-efi.rmk: Likewise.
33685 * conf/i386-ieee1275.rmk: Likewise.
33686 * conf/powerpc-ieee1275.rmk: Likewise.
33687 * conf/x86_64-efi.rmk: Likewise.
33688
33689 * include/grub/arg.h: Move from here ...
33690 * include/grub/lib/arg.h: ... to here.
33691
33692 * normal/arg.c: Move from here ...
33693 * lib/arg.c: ... to here.
33694
33695 * commands/extcmd.c: New file.
33696 * commands/minicmd.c: Likewise.
33697 * include/grub/command.h: Likewise.
33698 * include/grub/extcmd.h: Likewise.
33699 * kern/command.c: Likewise.
33700 * kern/corecmd.c: Likewise.
33701
33702 * kern/list.c (grub_list_iterate): Return int instead of void.
33703 (grub_list_insert): New function.
33704 (grub_prio_list_insert): Likewise.
33705
33706 * kern/rescue.c (grub_rescue_command): Removed.
33707 (grub_rescue_command_list): Likewise.
33708 (grub_rescue_register_command): Likewise.
33709 (grub_rescue_unregister_command): Likewise.
33710 (grub_rescue_cmd_boot): Move to minicmd.c
33711 (grub_rescue_cmd_help): Likewise.
33712 (grub_rescue_cmd_info): Likewise.
33713 (grub_rescue_cmd_boot): Likewise.
33714 (grub_rescue_cmd_testload): Likewise.
33715 (grub_rescue_cmd_dump): Likewise.
33716 (grub_rescue_cmd_rmmod): Likewise.
33717 (grub_rescue_cmd_lsmod): Likewise.
33718 (grub_rescue_cmd_exit): Likewise.
33719 (grub_rescue_print_devices): Moved to corecmd.c.
33720 (grub_rescue_print_files): Likewise.
33721 (grub_rescue_cmd_ls): Likewise.
33722 (grub_rescue_cmd_insmod): Likewise.
33723 (grub_rescue_cmd_set): Likewise.
33724 (grub_rescue_cmd_unset): Likewise.
7d074e3c 33725 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 33726 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 33727 commands, remove grub_rescue_register_command calls.
b1b797cb 33728
7d074e3c 33729 * normal/command.c (grub_register_command): Removed.
b1b797cb 33730 (grub_unregister_command): Likewise.
33731 (grub_command_find): Likewise.
33732 (grub_iterate_commands): Likewise.
33733 (rescue_command): Likewise.
33734 (export_command): Moved to corecmd.c.
33735 (set_command): Removed.
33736 (unset_command): Likewise.
33737 (insmod_command): Likewise.
33738 (rmmod_command): Likewise.
33739 (lsmod_command): Likewise.
33740 (grub_command_init): Likewise.
33741
33742 * normal/completion.c (iterate_command): Use cmd->prio to check for
33743 active command.
33744 (complete_arguments): Use grub_extcmd_t structure to find options.
33745 (grub_normal_do_completion): Change function grub_iterate_commands to
33746 grub_command_iterate.
33747
33748 * normal/execute.c (grub_script_execute_cmd): No need to parse
33749 argument here.
33750
33751 * normal/main.c (grub_dyncmd_dispatcher): New function.
33752 (read_command_list): Register unload commands as dyncmd.
33753 (grub_cmd_normal): Use new command interface, register rescue,
33754 unregister normal at entry, register normal, unregister rescue at exit.
33755
33756 * include/grub/list.h (grub_list_test_t): New type.
33757 (grub_list_iterate): Return int instead of void.
33758 (grub_list_insert): New function.
33759 (GRUB_AS_NAMED_LIST_P): New macro.
33760 (GRUB_AS_PRIO_LIST): Likewise.
33761 (GRUB_AS_PRIO_LIST_P): Likewise.
33762 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33763 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33764 (grub_prio_list): New structure.
33765 (grub_prio_list_insert): New function.
33766 (grub_prio_list_remove): New inline function.
33767
33768 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33769 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33770 (GRUB_COMMAND_FLAG_MENU): Likewise.
33771 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33772 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33773 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33774 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33775 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33776 (grub_command): Likewise.
33777 (grub_register_command): Likewise.
33778 (grub_command_find): Likewise.
33779 (grub_iterate_commands): Likewise.
33780 (grub_command_init): Likewise.
33781 (grub_arg_parse): Likewise.
33782 (grub_arg_show_help): Likewise.
33783
33784 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33785 (grub_rescue_unregister_command): Likewise.
33786
33787 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33788 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33789 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33790
33791 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33792 grub_rescue_cmd_initrd.
33793 * include/grub/i386/loader.h: Likewise.
33794 * include/grub/x86_64/loader.h: Likewise.
33795
33796 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33797
1f4147aa 337982009-03-21 Bean <bean123ch@gmail.com>
33799
33800 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33801 instead of stat in mingw environment.
33802
33803 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33804
33805 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33806
33807 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33808 AC_CONFIG_LINKS.
33809
2156d5ba 338102009-03-21 Bean <bean123ch@gmail.com>
33811
33812 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33813 out of range error.
33814
177b82ca 338152009-03-18 Michel Dänzer <michel@daenzer.net>
33816
33817 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33818 checking inode flags for EXT4_EXTENTS_FLAG.
33819
14aad807 338202009-03-18 Robert Millan <rmh@aybabtu.com>
33821
33822 * loader/i386/linux.c: Include `<grub/video.h>' and
33823 `<grub/i386/pc/vbe.h>'..
33824 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33825 (grub_linux32_boot): Attempt to configure video settings with
33826 grub_linux_setup_video().
33827 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33828 to avoid grub_console_fini() which would step out of graphical mode
33829 unconditionally.
33830
8cf83a27 338312009-03-14 Robert Millan <rmh@aybabtu.com>
33832
33833 Fix build on powerpc.
33834 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33835
40164e75 338362009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33837
33838 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33839 background image command.
33840
c58bc32a 338412009-03-12 Colin D Bennett <colin@gibibit.com>
33842
33843 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33844 (grub_gfxterm_putchar): Extract pairs of identical calls to
33845 draw_cursor out of conditional blocks.
33846
5415144a 338472009-03-11 Pavel Roskin <proski@gnu.org>
33848
33849 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33850 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33851
6394042e 338522009-03-11 Robert Millan <rmh@aybabtu.com>
33853
33854 * loader/i386/multiboot_elfxx.c
33855 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33856
b7b50e5f 338572009-03-11 Felix Zielcke <fzielcke@z-51.de>
33858
33859 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33860 `kern/handler.c'.
33861
1ca7fc96 338622009-03-11 Robert Millan <rmh@aybabtu.com>
33863
33864 * loader/i386/multiboot.c (code_size): New variable.
33865 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 33866 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 33867 4-byte alignment to MBI and others by increasing
7d074e3c 33868 `boot_loader_name_length' appropriately.
1ca7fc96 33869
33870 * loader/i386/multiboot_elfxx.c
33871 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33872
a83ea1d2 338732009-03-09 Felix Zielcke <fzielcke@z-51.de>
33874
33875 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33876 `fs/ext2.c'.
33877
aa9f3bff 338782009-03-08 Robert Millan <rmh@aybabtu.com>
33879
33880 Make loader/i386/linux.c usable on i386-pc again.
33881
33882 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33883 memory to heap.
33884 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33885 `#error' stanza.
33886
d8b3b60e 338872009-03-07 Bean <bean123ch@gmail.com>
33888
33889 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33890 allocation.
33891
b362c9e9 338922009-03-06 Robert Millan <rmh@aybabtu.com>
33893
33894 Fix display issue on terminals with screen size other than 80x25
33895 (e.g. gfxterm with resolution higher than 640x480).
33896
33897 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 33898 position relative to the center of the terminal instead of relying
b362c9e9 33899 on a hardcoded offset.
33900
9304eef1 339012009-03-04 Robert Millan <rmh@aybabtu.com>
33902
33903 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33904 installed.
33905
33906 * Makefile.in (host_kernel): New variable.
33907 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33908 scripts instead of just the windows one.
33909 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33910
eabc95fb 339112009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 33912
33913 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33914 `kern/handler.c'.
33915 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33916 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33917 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33919 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33920 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33921
ceb1223c 339222009-03-04 Felix Zielcke <fzielcke@z-51.de>
33923
33924 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33925 or if there's no space for the disk label and print the partition number on a
33926 invalid magic.
33927
4910684a 339282009-03-04 Felix Zielcke <fzielcke@z-51.de>
33929
33930 * util/misc.c: Include <time.h>.
33931 (grub_millisleep): New function.
33932
7e9ca17a 339332009-03-04 Bean <bean123ch@gmail.com>
33934
33935 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33936 another option -mno-red-zone.
33937
33938 * commands/handler.c: Change module description.
33939
33940 * kern/handler.c: Add missing space at the end of description line.
33941
33942 * kern/list.c: Likewise.
33943
f501677c 339442009-03-03 Robert Millan <rmh@aybabtu.com>
33945
33946 Move more components to the relocation area, and fix mbi pointer
33947 handling to use the destination rather than the origin (thanks to
33948 Vladimir Serbinenko for spotting).
33949
33950 * loader/i386/multiboot.c (mbi_dest): New variable.
33951 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33952 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33953 relocation area.
33954
9902d047 339552009-03-01 Bean <bean123ch@gmail.com>
33956
50fb7002 33957 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 33958 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33959 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33960 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33961
33962 * loader/i386/efi/linux.c (acpi_guid): New variable.
33963 (acpi_guid): Likewise.
33964 (EBDA_SEG_ADDR): New constant.
33965 (LOW_MEM_ADDR): Likewise.
33966 (FAKE_EBDA_SEG): Likewise.
33967 (fake_bios_data): New function.
33968 (grub_linux_boot): Call fake_bios_data.
33969
71b9f361 339702009-03-01 Bean <bean123ch@gmail.com>
33971
33972 * commands/terminal.c: Removed.
33973
33974 * commands/handler.c: New file.
33975
33976 * include/grub/list.h: Likewise.
33977
33978 * include/grub/handler.h: Likewise.
33979
33980 * kern/list.c: Likewise.
33981
33982 * kern/handler.c: Likewise.
33983
33984 * kern/term.h: Include header file <grub/handler.h>.
33985 (grub_term_input): Move next field to the beginning.
33986 (grub_term_output): Likewise.
33987 (grub_term_input_class): New variable.
33988 (grub_term_output_class): Likewise.
33989 (grub_term_register_input): Changed to inline function.
33990 (grub_term_register_output): Likewise.
33991 (grub_term_unregister_input): Likewise.
33992 (grub_term_unregister_output): Likewise.
33993 (grub_term_set_current_input): Likewise.
33994 (grub_term_set_current_output): Likewise.
33995 (grub_term_get_current_input): Likewise.
33996 (grub_term_get_current_output): Likewise.
33997 (grub_term_iterate_input): Removed.
33998 (grub_term_iterate_output): Likewise.
33999
34000 * kern/term.c (grub_term_list_input): Removed.
34001 (grub_term_list_output): Likewise.
34002 (grub_term_input_class): New variable.
34003 (grub_term_output_class): Likewise.
50fb7002 34004 (grub_cur_term_input): Change variable as macro.
71b9f361 34005 (grub_cur_term_output): Likewise.
34006 (grub_term_register_input): Removed.
34007 (grub_term_register_output): Likewise.
34008 (grub_term_unregister_input): Likewise.
34009 (grub_term_unregister_output): Likewise.
34010 (grub_term_set_current_input): Likewise.
34011 (grub_term_set_current_output): Likewise.
34012 (grub_term_iterate_input): Likewise.
34013 (grub_term_iterate_output): Likewise.
34014 (grub_term_get_current_input): Likewise.
34015 (grub_term_get_current_output): Likewise.
34016
34017 * util/grub-editenv.c: Include header file <grub/handler.h>.
34018 (grub_term_get_current_input): Removed.
34019 (grub_term_get_current_output): Likewise.
34020 (grub_term_input_class): New variable.
50fb7002 34021 (grub_term_output_class): Likewise.
71b9f361 34022
34023 * util/grub-fstest.c (grub_term_get_current_input): Removed.
34024 (grub_term_get_current_output): Likewise.
34025 (grub_term_input_class): New variable.
50fb7002 34026 (grub_term_output_class): Likewise.
71b9f361 34027
34028 * util/grub-probe.c (grub_term_get_current_input): Removed.
34029 (grub_term_get_current_output): Likewise.
34030 (grub_term_input_class): New variable.
50fb7002 34031 (grub_term_output_class): Likewise.
71b9f361 34032
34033 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
34034 (grub_term_get_current_output): Likewise.
34035 (grub_term_input_class): New variable.
50fb7002 34036 (grub_term_output_class): Likewise.
71b9f361 34037
34038 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
34039 (terminal_mod_SOURCES): Likewise.
34040 (terminal_mod_CFLAGS): Likewise.
34041 (terminal_mod_LDFLAGS): Likewise.
34042
34043 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
34044 handler.c.
34045 (kernel_img_SOURCES): Add list.c and handler.c.
34046 (kernel_img_HEADERS): Add list.h and handler.h.
34047
34048 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
34049 handler.c.
34050 (kernel_mod_SOURCES): Add list.c and handler.c.
34051 (kernel_mod_HEADERS): Add list.h and handler.h.
34052
34053 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
34054 handler.c.
34055 (kernel_elf_SOURCES): Add list.c and handler.c.
34056 (kernel_elf_HEADERS): Add list.h and handler.h.
34057
34058 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
34059 handler.c.
34060 (kernel_elf_SOURCES): Add list.c and handler.c.
34061 (kernel_elf_HEADERS): Add list.h and handler.h.
34062
34063 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
34064 handler.c.
34065 (kernel_mod_SOURCES): Add list.c and handler.c.
34066 (kernel_mod_HEADERS): Add list.h and handler.h.
34067
34068 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
34069 handler.c.
34070 (kernel_elf_SOURCES): Add list.c and handler.c.
34071 (kernel_elf_HEADERS): Add list.h and handler.h.
34072
8a31787f 340732009-02-27 Robert Millan <rmh@aybabtu.com>
34074
34075 Factorize elf32 / elf64 code in Multiboot loader. This will
34076 prevent it from getting out of sync again.
34077
34078 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
34079 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
34080 grub_multiboot_load_elf64): Move from here ...
34081 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
34082 grub_multiboot_load_elf): ... to here (new file).
34083
51cd3dfc 340842009-02-27 Robert Millan <rmh@aybabtu.com>
34085
34086 * util/grub.d/10_linux.in: Rename "single-user mode" to
34087 "recovery mode".
34088
6e8c9c3a 340892009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
34090
34091 Don't leak in SCSI code.
34092 * disk/scsi.c (grub_scsi_close): free `scsi'.
34093
4b6bf4f9 340942009-02-27 Robert Millan <rmh@aybabtu.com>
34095
34096 * loader/i386/pc/multiboot.c: Move from here ...
34097 * loader/i386/multiboot.c: ... to here. Update all users.
34098
b9413424 340992009-02-27 Robert Millan <rmh@aybabtu.com>
34100
34101 Patch from Alexandre Bique <bique.alexandre@gmail.com>
34102 * util/i386/pc/grub-setup.c (setup): Fix directory path.
34103
50fb7002 341042009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 34105
34106 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
34107 b-tree.
34108
8cc50345 341092009-02-27 Robert Millan <rmh@aybabtu.com>
34110
34111 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
34112 `0x' qualifier as 0 when base is specified as parameter).
34113
6e09b8b7 341142009-02-24 Bean <bean123ch@gmail.com>
34115
34116 * configure.ac: Check for -mcmodel=large in x86_64 target.
34117
34118 * include/grub/efi/api.h (efi_call_10): New macro.
34119 (efi_wrap_10): New function.
34120
34121 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
34122 (GRUB_PE32_REL_BASED_HIGH): Likewise.
34123 (GRUB_PE32_REL_BASED_LOW): Likewise.
34124 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
34125 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
34126 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
34127 (GRUB_PE32_REL_BASED_SECTION): Likewise.
34128 (GRUB_PE32_REL_BASED_REL): Likewise.
34129 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
34130 (GRUB_PE32_REL_BASED_DIR64): Likewise.
34131 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
34132
34133 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
34134 issue.
34135
34136 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
34137 (efi_wrap_10): New function.
34138
34139 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
34140
34141 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
34142 MB/MBP model (NV chipset).
34143 (devdata_devs): Add devpath_5 to the list.
34144
34145 * load/i386/efi/linux.c (video_base): Remove variable.
34146 (RGB_MASK): New macro.
34147 (RGB_MAGIC): Likewise.
34148 (LINE_MIN): Likewise.
34149 (LINE_MAX): Likewise.
34150 (FBTEST_STEP): Likewise.
34151 (FBTEST_COUNT): Likewise.
34152 (fb_list): New variable.
34153 (grub_find_video_card): Remove function.
34154 (find_framebuf): New function.
34155 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
34156 line length.
34157
34158 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
34159 problem for x86_64.
34160
74b21bee 341612009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
34162
34163 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
34164
34165 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
34166 coding tool name.
34167
a455f472 341682009-02-22 Robert Millan <rmh@aybabtu.com>
34169
34170 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
34171 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
34172 in our relocation, instead of using it directly from heap. Also
34173 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
34174
6374daf3 341752009-02-21 Robert Millan <rmh@aybabtu.com>
34176
34177 Implement USB keyboard support (based on patch by Marco Gerards)
34178
34179 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
34180 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
34181 (usb_keyboard_mod_LDFLAGS): New variables.
34182
34183 * term/usb_keyboard.c: New file.
34184
8fa4ea70 341852009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
34186
34187 Corrected wrong declaration
34188
34189 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
34190
353976ac 341912009-02-14 Christian Franke <franke@computer.org>
34192
34193 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
34194 (grub_lspci_iter): Print class code and programming interface byte.
34195
6aa1169b 341962009-02-14 Christian Franke <franke@computer.org>
34197
34198 * gendistlist.sh: Ignore `.svn' directories.
34199
265372ca 342002009-02-14 Felix Zielcke <fzielcke@z-51.de>
34201
34202 * fs/fat.c: Add 2009 to Copyright line.
34203
9ff516f3 342042009-02-14 Christian Franke <franke@computer.org>
34205
34206 * commands/hdparm.c: New file. Provides `hdparm' command
34207 which sends ATA commands via grub_disk_ata_pass_through ().
34208
34209 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
34210
34211 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
34212 and <grub/cpu/io.h> to include/grub/ata.h.
34213 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
34214 (GRUB_CDROM_SECTOR_SIZE): Remove.
34215 (GRUB_ATA_*): Move to include/grub/ata.h.
34216 (GRUB_ATAPI_*): Likewise.
34217 (enum grub_ata_commands): Likewise.
34218 (enum grub_ata_timeout_milliseconds): Likewise.
34219 (struct grub_ata_device): Likewise.
34220 (grub_ata_regset): Likewise.
34221 (grub_ata_regget): Likewise.
34222 (grub_ata_regset2): Likewise.
34223 (grub_ata_regget2): Likewise.
34224 (grub_ata_check_ready): Likewise.
34225 (grub_ata_wait_not_busy): Remove static, exported in
34226 include/grub/ata.h.
34227 (grub_ata_wait_drq): Likewise.
34228 (grub_ata_pio_read): Likewise.
34229
34230 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
34231 function for hdparm.mod.
34232
34233 * include/grub/ata.h: New file, contains declarations from
34234 disk/ata.c.
34235 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
34236
34237 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
34238 (grub_disk_ata_pass_through): New exported variable.
34239
34240 * kern/disk.c (grub_disk_ata_pass_through): New variable.
34241
772e23da 342422009-02-13 Colin D Bennett <colin@gibibit.com>
34243
34244 Support multiple fallback entries, and provide an API to support
34245 executing default+fallback menu entries. Renamed the `terminal' menu
34246 viewer to `text'.
34247
34248 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
34249 variable declaration.
34250 (grub_menu_execute_callback): New structure declaration.
34251 (grub_menu_execute_callback_t): New typedef.
34252 (grub_menu_execute_with_fallback): New function declaration.
34253 (grub_menu_get_entry): Likewise.
34254 (grub_menu_get_timeout): Likewise.
34255 (grub_menu_set_timeout): Likewise.
34256
34257 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
34258
34259 * normal/menu.c (grub_wait_after_message): Moved to
34260 `normal/menu_text.c'.
34261 (draw_border): Likewise.
34262 (print_message): Likewise.
34263 (print_entry): Likewise.
34264 (print_entries): Likewise.
34265 (grub_menu_init_page): Likewise.
34266 (get_entry_number): Likewise.
34267 (print_timeout): Likewise.
34268 (run_menu): Likewise.
34269 (grub_menu_execute_entry): Likewise.
34270 (show_text_menu): Likewise.
34271 (get_and_remove_first_entry_number): New function.
34272 (grub_menu_execute_with_fallback): Likewise.
34273 (get_entry): Renamed to ...
34274 (grub_menu_get_entry): .. this and made it global.
34275 (get_timeout): Renamed to ...
34276 (grub_menu_get_timeout): ... this and made it global.
34277 (set_timeout): Renamed to ...
34278 (grub_menu_set_timeout): ... this and made it global.
34279 (grub_normal_terminal_menu_viewer): Renamed to ...
34280 (grub_normal_text_menu_viewer): ... this.
34281
34282 * normal/menu_text.c: New file. Extracted text-menu-specific code
34283 from normal/menu.c.
34284
34285 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
34286 (normal_mod_SOURCES): Likewise.
34287
34288 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34289 (normal_mod_SOURCES): Likewise.
34290
34291 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34292 (normal_mod_SOURCES): Likewise.
34293
34294 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
34295 (normal_mod_SOURCES): Likewise.
34296
34297 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34298 (normal_mod_SOURCES): Likewise.
34299
34300 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34301 (normal_mod_SOURCES): Likewise.
34302
34303 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34304 (normal_mod_SOURCES): Likewise.
34305
16ac430e 343062009-02-11 Robert Millan <rmh@aybabtu.com>
34307
34308 * util/grub.d/00_header.in: Update old reference to `font' command.
34309
06ff20fc 343102009-02-10 Felix Zielcke <fzielcke@z-51.de>
34311
34312 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
34313
34314 Based on patch from Javier Martín.
34315
96da9407 343162009-02-09 Felix Zielcke <fzielcke@z-51.de>
34317
34318 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 34319 to avoid false positives with FAT.
96da9407 34320 (grub_fstest_SOURCES): Likewise.
34321 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34322 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34324 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34325 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34326 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34327
6dca6fe4 343282009-02-09 Felix Zielcke <fzielcke@z-51.de>
34329
06ff20fc 34330 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 34331 bpb.version_specific.fat12_or_fat16.fstype and
34332 bpb.version_specific.fat32.fstype.
34333
2550c62f 343342009-02-08 Robert Millan <rmh@aybabtu.com>
34335
be110b30 34336 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 34337
56978920 343382009-02-08 Robert Millan <rmh@aybabtu.com>
34339
34340 * Makefile.in (host_os, host_cpu): New variables.
34341 (target_os): Remove. Update all users.
34342
d64399b5 343432009-02-08 Marco Gerards <marco@gnu.org>
34344
34345 * Makefile.in (enable_grub_emu_usb): New variable.
34346 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
34347 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
34348 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
34349 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
34350 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
34351 `usbtest.mod' and `usbms.mod'.
34352 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
34353 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
34354 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
34355 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
34356 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
34357 variables.
34358
34359 * disk/usbms.c: New file.
34360
34361 * include/grub/usb.h: Likewise.
34362
34363 * include/grub/usbtrans.h: Likewise.
34364
34365 * include/grub/usbdesc.h: Likewise.
34366
34367 * bus/usb/usbtrans.c: Likewise.
34368
34369 * bus/usb/ohci.c: Likewise.
34370
34371 * bus/usb/uhci.c: Likewise.
34372
34373 * bus/usb/usbhub.c: Likewise.
34374
34375 * bus/usb/usb.c: Likewise.
34376
34377 * commands/usbtest.c: Likewise.
34378
34379 * util/usb.c: Likewise.
50fb7002 34380
d64399b5 34381 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
34382
34383 * configure.ac: Test for libusb presence.
50fb7002 34384
d64399b5 34385 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
34386
2b40d6bb 343872009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
34388
34389 * kern/mm.c: Add more comments.
34390
73a4ce81 343912009-02-08 Robert Millan <rmh@aybabtu.com>
34392
34393 Patch from Javier Martín.
34394 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
34395 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
34396
f821ce59 343972009-02-08 Robert Millan <rmh@aybabtu.com>
34398
34399 * fs/cpio.c: Split tar functionality to ...
34400 * fs/tar.c: ... here (new file). Update all users.
34401
aebfc4b0 344022009-02-07 Robert Millan <rmh@aybabtu.com>
34403
34404 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
34405 backward-incompatible features.
34406
34407 Based on patch from Javier Martín, with some adjustments.
34408
50fb7002 344092009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 34410
34411 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
34412
0bb5115e 344132009-02-07 Robert Millan <rmh@aybabtu.com>
34414
34415 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34416 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34417 after the RAID stuff.
34418
38a0f8e7 344192009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34420
50fb7002 34421 Fixes problem when running vbetest command as reported by
38a0f8e7 34422 Vladimir Serbinenko <phcoder@gmail.com>.
34423
34424 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34425
3143cc1c 344262009-02-04 Felix Zielcke <fzielcke@z-51.de>
34427
34428 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34429 /dev/md/NpN style mdraid devices.
34430
9cba6fce 344312009-02-03 Felix Zielcke <fzielcke@z-51.de>
34432
34433 * util/unifont2pff.rb: Remove.
34434
e507a2c1 344352009-02-03 Felix Zielcke <fzielcke@z-51.de>
34436
34437 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34438 `#'.
34439
d2c2b4cd 344402009-02-03 Felix Zielcke <fzielcke@z-51.de>
34441
34442 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34443 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34444 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34445 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34446 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34447 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34448 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34449
b4315fb0 344502009-02-02 Christian Franke <franke@computer.org>
34451
34452 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34453
de3aa260 344542009-02-01 Felix Zielcke <fzielcke@z-51.de>
34455
7c3ff286 34456 * INSTALL: Note that we now require at least autoconf 2.59 and
34457 that LZO is optional.
de3aa260 34458
825a182b 344592009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34460
34461 Base on patch on bug #24154 created by Tomas Tintera
34462 <trosos@seznam.cz>.
34463
34464 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34465
a69ef770 344662009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34467
7c3ff286 34468 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 34469 <bero@arklinux.org>.
34470
34471 * normal/parser.y (script_init): Add missing semicolon.
34472
6fa42fa6 344732009-01-31 Colin D Bennett <colin@gibibit.com>
34474
7c3ff286 34475 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 34476 (free_menu_entry_classes): Added.
34477 (grub_normal_menu_addentry): Added class property handling.
34478 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34479 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34480
34481 * normal/menu_viewer.c: New file.
34482
34483 * normal/menu.c (run_menu_entry): Renamed to ...
34484 (grub_menu_execute_entry): ... this and made it as global.
34485 (grub_menu_run): Renamed to ...
34486 (show_text_menu): ... this and made it local.
34487 (show_text_menu): Adapt to new function names.
34488 (grub_normal_terminal_menu_viewer): New global variable.
34489
34490 * include/grub/menu.h: New file.
34491
34492 * include/grub/menu_viewer.h: New file.
34493
34494 * include/grub/normal.h: Added include to grub/menu.h.
34495 (grub_menu_entry): Moved to include/grub/menu.h.
34496 (grub_menu_entry_t): Likewise.
34497 (grub_menu): Likewise.
34498 (grub_menu_t): Likewise.
34499 (grub_normal_terminal_menu_viewer): Added.
34500 (grub_menu_execute_entry): Likewise.
34501 (grub_menu_run): Removed.
34502
34503 * DISTLIST: Added include/grub/menu.h.
34504 Added include/grub/menu_viewer.h.
34505 Added normal/menu_viewer.c.
34506
345072009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34508
34509 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34510 arglist for menutitle arguments.
34511
34512 * normal/main.c (grub_normal_menu_addentry): Likewise.
34513
34514 * normal/parser.y (menuentry): Likewise.
34515
34516 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34517
34518 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34519 (grub_script_create_cmdmenu): Likewise.
34520
34521 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34522
34523 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34524 changes.
34525
34526 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34527
34528 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34529
34530 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34531
34532 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34533
34534 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34535
34536 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34537
56192c23 345382009-01-30 Christian Franke <franke@computer.org>
34539
34540 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34541 in option help text.
34542
d72521b3 345432009-01-27 Pavel Roskin <proski@gnu.org>
34544
34545 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34546
994b5e84 345472009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34548
34549 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34550
34551 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34552
34553 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34554 unregister function.
34555
6a7eab2c 345562009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34557
34558 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34559
34560 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34561
34562 * util/grub-mkfont.c (usage): Fix typo.
34563
34564 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34565
1806b56e 345662009-01-26 Daniel Mierswa <impulze@impulze.org>
34567
3fb18f09 34568 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34569
336e1fb9 34570 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34571
1806b56e 34572 * kern/misc.c (grub_strcasecmp): New function.
34573 (grub_strcasecmp): Use grub_size_t instead of int for length.
34574 Fix return value.
34575 * include/grub/misc.h: Update function prototypes.
34576
580b2a0f 345772009-01-26 Robert Millan <rmh@aybabtu.com>
34578
34579 * configure.ac: Fix cross-compilation check.
ef257b36 34580
d31c24f1 345812009-01-22 Christian Franke <franke@computer.org>
34582
34583 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34584 (precision) digit string. Allow `.format2' without `format1' (width).
34585 Limit input chars for `%s' output to `format2' if specified. This is
34586 compatible with standard printf ().
34587
3138b44c 345882009-01-22 Christian Franke <franke@computer.org>
34589
34590 * disk/ata.c (grub_ata_wait_status): Replace by ...
34591 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34592 other status bits may be invalid while BSY is asserted.
34593 (grub_ata_check_ready): New function.
34594 (grub_ata_cmd): Removed.
34595 (grub_ata_wait_drq): New function.
34596 (grub_ata_strncpy): Remove inline.
34597 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34598 and error check now done by grub_ata_wait_drq ().
34599 (grub_ata_pio_write): Likewise.
34600 (grub_atapi_identify): Set DEV before check for !BSY. Use
34601 grub_ata_wait_drq () to wait for data.
34602 (grub_ata_device_initialize): Add status register check to
34603 detect missing SATA slave devices. Add debug messages.
34604 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34605 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34606 transfer loop by grub_ata_pio_write ().
34607 (grub_ata_identify): Set DEV before check for !BSY. Use
34608 grub_ata_wait_drq () to wait for data.
ef257b36 34609 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 34610 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34611 read/write in one loop. Fix invalid command on write. Fix incomplete
34612 command on (size % batch) == 0. Add missing error check after write of
34613 last block. Add debug messages.
34614 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34615
59a64ef6 346162009-01-19 Christian Franke <franke@computer.org>
34617
34618 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34619 (GRUB_ATAPI_IREASON_*): Likewise.
34620 (grub_ata_pio_write): Fix timeout error return.
34621 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34622 (grub_atapi_wait_drq): New function.
34623 (grub_atapi_packet): New parameter `size'.
34624 Use grub_atapi_wait_drq () and direct write instead of
34625 grub_ata_pio_write ().
34626 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34627 reads the number of bytes requested by the device for each DRQ
34628 assertion.
34629 (grub_atapi_write): Remove old implementation, return not
34630 implemented instead.
34631
1cfe20b3 346322009-01-19 Christian Franke <franke@computer.org>
34633
34634 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34635 of 512 to calculate data size.
34636 (grub_scsi_read12): Likewise.
34637 (grub_scsi_write10): Likewise.
34638 (grub_scsi_write12): Likewise.
34639 (grub_scsi_read): Adjust size according to blocksize.
34640 Add checks for invalid blocksize and unaligned transfer.
34641
bee5fe5d 346422009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34643
34644 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34645
ef257b36 34646 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 34647 width glyphs.
34648
3e643f8c 346492009-01-19 Robert Millan <rmh@aybabtu.com>
34650
34651 * config.guess: Update to latest version from config git.
34652 * config.sub: Likewise.
34653
4fa80998 346542009-01-17 Felix Zielcke <fzielcke@z-51.de>
34655
34656 * Makefile.in: Change font compilation to use new grub-mkfont instead
34657 of java version.
34658
34659 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34660 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34661 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34662 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34663 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34664 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34665 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34666 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34667 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34668
7086085b 346692009-01-16 Christian Franke <franke@computer.org>
34670
34671 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34672 (enum grub_ata_timeout_milliseconds): New enum.
34673 (grub_ata_wait_status): Add parameter milliseconds.
34674 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34675 recovery from timed-out commands.
34676 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34677 return grub_errno instead of REG_ERROR.
34678 (grub_ata_pio_write): Add parameter milliseconds.
34679 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34680 Pass milliseconds to grub_ata_wait_status () and
34681 grub_ata_pio_read ().
34682 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34683 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34684 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34685 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34686 It is not suitable for device detection, because DEV bit is ignored,
34687 the command may run too long, and not all devices set the signature
34688 properly.
34689 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34690 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34691 Fix device selection, DEV bit must be set first to address the registers
34692 of the correct device.
34693 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34694 grub_ata_pio_read/write ().
34695 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34696 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34697
4a412913 346982009-01-13 Carles Pina i Estany <carles@pina.cat>
34699
34700 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34701
7795c55e 347022009-01-13 Bean <bean123ch@gmail.com>
d913988c 34703
34704 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34705
7795c55e 347062009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 34707
34708 * Makefile.in: (enable_grub_mkfont): New variable.
34709 (freetype_cflags): Likewise.
34710 (freetype_libs): Likewise.
34711
34712 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34713 (grub_mkfont_SOURCES): New variable.
34714 (grub_mkfont_CFLAGS): Likewise.
34715 (grub_mkfont_LDFLAGS): Likewise.
34716
34717 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34718 library if `--enable-grub-mkfont' is requested.
34719 (enable_grub_mkfont): New variable.
34720 (freetype_cflags): Likewise.
34721 (freetype_libs): Likewise.
34722
34723 * util/grub-mkfont.c: New file.
34724
093af1fe 347252009-01-12 Christian Franke <franke@computer.org>
34726
34727 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34728 mode check. Fix setting of compat_use[].
34729
f36cc108 347302009-01-10 Robert Millan <rmh@aybabtu.com>
34731
34732 Update a few copyright years which we forgot to do in 2008 (only for
34733 files whose changes made in 2008 were copyright-significant)
34734
34735 * Makefile.in: Add 2008 to Copyright line.
34736 * disk/ieee1275/ofdisk.c: Likewise.
34737 * disk/efi/efidisk.c: Likewise.
34738 * kern/dl.c: Likewise.
34739 * kern/sparc64/ieee1275/init.c: Likewise.
34740 * kern/mm.c: Likewise.
34741 * kern/efi/mm.c: Likewise.
34742 * boot/i386/pc/boot.S: Likewise.
34743 * genfslist.sh: Likewise.
34744 * fs/iso9660.c: Likewise.
34745 * fs/hfs.c: Likewise.
34746 * fs/jfs.c: Likewise.
34747 * fs/minix.c: Likewise.
34748 * fs/ufs.c: Likewise.
34749 * gensymlist.sh.in: Likewise.
34750 * genkernsyms.sh.in: Likewise.
34751 * include/grub/misc.h: Likewise.
34752 * include/grub/types.h: Likewise.
34753 * include/grub/symbol.h: Likewise.
34754 * include/grub/elf.h: Likewise.
34755 * include/grub/kernel.h: Likewise.
34756 * include/grub/disk.h: Likewise.
34757 * include/grub/dl.h: Likewise.
34758 * include/grub/i386/linux.h: Likewise.
34759 * include/grub/i386/pc/biosdisk.h: Likewise.
34760 * include/grub/efi/api.h: Likewise.
34761 * include/grub/efi/pe32.h: Likewise.
34762 * include/grub/util/misc.h: Likewise.
34763 * normal/execute.c: Likewise.
34764 * normal/arg.c: Likewise.
34765 * normal/completion.c: Likewise.
34766 * normal/lexer.c: Likewise.
34767 * normal/parser.y: Likewise.
34768 * normal/misc.c: Likewise.
34769 * commands/i386/pc/vbeinfo.c: Likewise.
34770 * commands/hexdump.c: Likewise.
34771 * commands/terminal.c: Likewise.
34772 * commands/ls.c: Likewise.
34773 * commands/help.c: Likewise.
34774 * partmap/pc.c: Likewise.
34775 * loader/efi/chainloader.c: Likewise.
34776 * loader/multiboot_loader.c: Likewise.
34777 * loader/i386/pc/multiboot2.c: Likewise.
34778 * term/efi/console.c: Likewise.
34779 * term/i386/pc/serial.c: Likewise.
34780 * util/lvm.c: Likewise.
34781 * util/console.c: Likewise.
34782 * util/i386/efi/grub-mkimage.c: Likewise.
34783 * util/raid.c: Likewise.
34784
7f02114b 347852009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34786
34787 * commands/videotest.c: Removed include to grub/machine/memory.h.
34788
34789 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34790 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34791 (video_mod_SOURCES): Removed.
34792 (video_mod_CFLAGS): Likewise.
34793 (video_mod_LDFLAGS): Likewise.
34794 (gfxterm_mod_SOURCES): Likewise.
34795 (gfxterm_mod_CFLAGS): Likewise.
34796 (gfxterm_mod_LDFLAGS): Likewise.
34797 (videotest_mod_SOURCES): Likewise.
34798 (videotest_mod_CFLAGS): Likewise.
34799 (videotest_mod_LDFLAGS): Likewise.
34800 (bitmap_mod_SOURCES): Likewise.
34801 (bitmap_mod_CFLAGS): Likewise.
34802 (bitmap_mod_LDFLAGS): Likewise.
34803 (tga_mod_SOURCES): Likewise.
34804 (tga_mod_CFLAGS): Likewise.
34805 (tga_mod_LDFLAGS): Likewise.
34806 (jpeg_mod_SOURCES): Likewise.
34807 (jpeg_mod_CFLAGS): Likewise.
34808 (jpeg_mod_LDFLAGS): Likewise.
34809 (png_mod_SOURCES): Likewise.
34810 (png_mod_CFLAGS): Likewise.
34811 (png_mod_LDFLAGS): Likewise.
34812
34813 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34814 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34815 (video_mod_SOURCES): Added.
34816 (video_mod_CFLAGS): Likewise.
34817 (video_mod_LDFLAGS): Likewise.
34818 (videotest_mod_SOURCES): Likewise.
34819 (videotest_mod_CFLAGS): Likewise.
34820 (videotest_mod_LDFLAGS): Likewise.
34821 (bitmap_mod_SOURCES): Likewise.
34822 (bitmap_mod_CFLAGS): Likewise.
34823 (bitmap_mod_LDFLAGS): Likewise.
34824 (tga_mod_SOURCES): Likewise.
34825 (tga_mod_CFLAGS): Likewise.
34826 (tga_mod_LDFLAGS): Likewise.
34827 (jpeg_mod_SOURCES): Likewise.
34828 (jpeg_mod_CFLAGS): Likewise.
34829 (jpeg_mod_LDFLAGS): Likewise.
34830 (png_mod_SOURCES): Likewise.
34831 (png_mod_CFLAGS): Likewise.
34832 (png_mod_LDFLAGS): Likewise.
34833 (gfxterm_mod_SOURCES): Likewise.
34834 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 34835 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 34836
34837 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34838 grub/machine/console.h.
34839
644fff97 348402009-01-04 Jerone Young <jerone@gmail.com>
34841
34842 Make on screen instructions clearer
34843
34844 Based on patch created by Jidanni <jidanni@jidanni.org>
34845
34846 * normal/menu.c: print clearer instructions on the screen
34847
1e901a75 348482009-01-02 Colin D Bennett <colin@gibibit.com>
34849
34850 New font engine.
34c44600 34851
1e901a75 34852 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34853 build system and fixed gfxterm.c to work with different sized fonts.
34854
34855 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 34856
1e901a75 34857 * configure: Re-generated.
34c44600 34858
1e901a75 34859 * DISTLIST: Removed font/manager.c.
34860 Added font/font.c.
34861 Added font/font_cmd.c.
34c44600 34862
1e901a75 34863 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34864 compilation.
34c44600 34865
1e901a75 34866 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 34867
34868 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 34869
34870 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 34871
1e901a75 34872 * normal/menu.c: Likewise.
34c44600 34873
1e901a75 34874 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34875 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 34876
1e901a75 34877 * include/grub/font.h: Replaced with new file.
34c44600 34878
1e901a75 34879 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34880 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34881 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34882 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34883 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 34884 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 34885 fg_red, fg_green, fg_blue, fg_alpha.
34886 (grub_video_adapter): Removed blit_glyph.
34c44600 34887 (grub_video_blit_glyph): Removed.
34888
1e901a75 34889 * font/manager.c: Removed file.
34c44600 34890
34891 * font/font.c: New file.
34892
1e901a75 34893 * font/font_cmd.c: Likewise.
34c44600 34894
1e901a75 34895 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 34896
1e901a75 34897 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34898 (grub_video_vbe_map_rgba): Likewise.
34899 (grub_video_vbe_unmap_color_int): Likewise.
34900 (grub_video_vbe_blit_glyph): Removed.
34901 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 34902
1e901a75 34903 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34904 (get_pixel): Likewise.
34c44600 34905 (set_pixel): Likewise.
34906
1e901a75 34907 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 34908
1e901a75 34909 * term/gfxterm.c: Adapted to new font engine.
34c44600 34910
1e901a75 34911 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 34912
1e901a75 34913 * term/i386/pc/vga.c: Likewise.
34c44600 34914
1e901a75 34915 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 34916
1e901a75 34917 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 34918
1e901a75 34919 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34920
1e901a75 34921 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34922
1e901a75 34923 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 34924
1e901a75 34925 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 34926
1e901a75 34927 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 34928
1e901a75 34929 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 34930
1e901a75 34931 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34932
34933 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 34934
1e901a75 34935 * util/grub-mkconfig_lib.in: Changed font extension.
34936
278922e8 349372008-12-28 Felix Zielcke <fzielcke@z-51.de>
34938
34939 * util/getroot.c (grub_util_get_grub_dev): Add support for
34940 /dev/md/dNNpNN style partitionable mdraid devices.
34941
3ced05cf 349422008-12-12 Alex Smith <alex@alex-smith.me.uk>
34943
34944 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34945 at a time limit of the PXE TFTP API correctly.
34946 (grub_pxefs_close): Likewise.
34947
7fd0ee30 349482008-11-29 Robert Millan <rmh@aybabtu.com>
34949
34c44600 34950 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 34951 grub_ata_device_initialize() calls.
34952
34c44600 349532008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 34954
34955 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34956 iteration failed.
34957 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34958
89313780 349592008-11-28 Robert Millan <rmh@aybabtu.com>
34960
34961 Fix build on powerpc-ieee1275. Based on patch created by
34962 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34963 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34964 `kern/ieee1275/mmap.c'.
34965 * include/grub/powerpc/ieee1275/memory.h: New file.
34966
15257703 34967 Provide grub-install on coreboot.
34968 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34969 (grub_install_SOURCES): New variable.
34970 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34971 usable on coreboot.
34972
9fc5388a 349732008-11-25 Felix Zielcke <fzielcke@z-51.de>
34974
34975 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34976 to `grub_term_input_t'.
34977 (grub_term_get_current_output): Change return type to
34978 `grub_term_output_t'.
34979
bc3a2f31 349802008-11-22 Robert Millan <rmh@aybabtu.com>
34981
34c44600 34982 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 34983 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34984 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34985 grub_vga_text_cls().
34986
80fc88f2 34987 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 34988 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 34989
cbf36fd3 34990 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34991 to 0x200000 (avoids trouble with some OFW implementations, and matches
34992 with the one in Yaboot).
34993 Reported by Manoel Abranches
34994
73e8e268 349952008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 34996
34997 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34998 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34999
73e8e268 35000 * util/grub-mkconfig_lib.in (grub_warn): New function.
35001 (convert_system_path_to_grub_path): Use grub_warn() when issuing
35002 warnings, to obtain consistent formatting.
35003 * util/grub.d/00_header.in: Likewise.
35004 * util/update-grub_lib.in: Likewise.
35005
e94045a1 35006 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 35007 Move comment text to `#error' stanza.
e94045a1 35008
79d29fd7 35009 Harmonize ieee1275's grub_available_iterate() with the generic
35010 grub_machine_mmap_iterate() interface (fixes a recently-introduced
35011 build problem on i386-ieee1275):
35012 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
35013 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
35014 parameter `type'. Update all users of this function.
35015 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
35016 `kern/ieee1275/mmap.c'.
35017 * kern/ieee1275/init.c
35018 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
35019 with ...
35020 (grub_machine_mmap_iterate): ... this.
35021 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
35022 return type to `grub_err_t'. Update all implementations of this
35023 function prototype.
35024 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
35025 Likewise.
35026
60d6b16e 35027 Add `lsmmap' command (lists firmware-provided memory map):
35028 * commands/lsmmap.c: New file.
35029 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
35030 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
35031 variables.
35032 * conf/powerpc-ieee1275.rmk: Likewise.
35033 * conf/i386-coreboot.rmk: Likewise.
35034 * conf/i386-ieee1275.rmk: Likewise.
35035
ebaaf49b 350362008-11-19 Robert Millan <rmh@aybabtu.com>
35037
35038 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 35039 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
35040 constraints to initrd allocation (based on code from
35041 loader/i386/pc/linux.c). Without them, initrd was allocated too high
35042 for Linux to find it.
ebaaf49b 35043
dfab719f 350442008-11-14 Robert Millan <rmh@aybabtu.com>
35045
35046 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
35047 order to cope with duplicate slashes.
35048
10fc3eb9 350492008-11-14 Robert Millan <rmh@aybabtu.com>
35050
35051 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
35052 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
35053 don't want to mess with lower memory, because it is used in the Linux
35054 loader.
35055
35056 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 35057 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 35058 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
35059 is in our heap (probably as a result of it being corrupted during
2f2a3442 35060 decompression). Add #error instance with comment to explain why this
35061 loader isn't currently usable on PC/BIOS.
10fc3eb9 35062
e2e07847 350632008-11-14 Robert Millan <rmh@aybabtu.com>
35064
35065 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 35066 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 35067
fe8e8d69 350682008-11-12 Robert Millan <rmh@aybabtu.com>
35069
35070 Make loader/i386/linux.c buildable on i386-pc (although disabled).
35071
35072 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
35073 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
35074 from here ...
35075 * include/grub/i386/pc/memory.h: ... to here.
35076
976b07d0 350772008-11-12 Robert Millan <rmh@aybabtu.com>
35078
35079 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
35080 split).
35081
35082 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
35083 (grub_console_cur_color, grub_console_real_putchar)
35084 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35085 (grub_console_setcolorstate, grub_console_setcolor)
35086 (grub_console_getcolor): Move from here ...
35087 * include/grub/i386/vga_common.h: ... to here (new file).
35088
35089 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
35090 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
35091 `<grub/i386/io.h>'.
35092 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
35093 `<grub/i386/vga_common.h>'.
35094
76679cd3 350952008-11-12 Robert Millan <rmh@aybabtu.com>
35096
35097 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
35098 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
35099 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
35100 variables.
35101 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35102 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
35103
35104 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
35105 grub_console_init() with call to grub_vga_text_init().
35106 (grub_machine_fini): Replace call to
35107 grub_console_fini() with call to grub_vga_text_fini() and
35108 grub_at_keyboard_fini().
35109
35110 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
35111 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35112 (grub_console_setcolorstate, grub_console_setcolor)
35113 (grub_console_getcolor): New function prototypes.
35114
35115 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
35116 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
35117 (grub_vga_text_setcursor): Static-ize.
35118 (grub_vga_text_term): New structure.
35119 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
35120
35121 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
35122 (grub_console_cur_color, grub_console_standard_color)
35123 (grub_console_normal_color, grub_console_highlight_color)
35124 (map_char, grub_console_putchar, grub_console_getcharwidth)
35125 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
35126 (grub_console_getcolor): Move from here ...
35127 * term/i386/vga_common.c: ... to here (same function names).
35128
95b841d3 351292008-11-12 Robert Millan <rmh@aybabtu.com>
35130
35131 Use newly-added Multiboot support in coreboot.
35132
35133 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35134 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
35135
35136 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
35137 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
35138 (codestart): Store the MBI in `startup_multiboot_info' when we're
35139 being loaded using Multiboot.
35140
35141 * kern/i386/coreboot/init.c (grub_machine_init): Move
35142 grub_at_keyboard_init() call to beginning of function (useful for
35143 debugging). Call grub_machine_mmap_init() before attempting to use
35144 grub_machine_mmap_iterate().
35145 (grub_lower_mem, grub_upper_mem): Move from here ...
35146 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
35147 here (new file).
35148
35149 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
35150 function prototype.
35151
761ca975 351522008-11-12 Robert Millan <rmh@aybabtu.com>
35153
35154 Fix a regression introduced by the at_keyboard.mod split. Because
35155 some terminals are default on some platforms and non-default on
35156 others, the first terminal being registered determines which is
35157 going to be default.
35158
35159 * kern/term.c (grub_term_register_input): If this is the first
35160 terminal being registered, set it as the current one.
35161 (grub_term_register_output): Likewise.
35162
35163 * term/efi/console.c (grub_console_init): Do not call
35164 grub_term_set_current_output() or grub_term_set_current_input().
35165 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
35166 * term/i386/pc/console.c (grub_console_init): Likewise.
35167 (grub_console_fini): Do not call grub_term_set_current_input()
35168 (but leave grub_term_set_current_output() to restore text mode).
35169
6c529df7 351702008-11-10 Robert Millan <rmh@aybabtu.com>
35171
35172 * util/grub.d/00_header.in: Add backward compatibility check for
35173 versions of terminal.mod that don't understand `terminal_input' or
35174 `terminal_output'.
35175
132e4113 351762008-11-09 Robert Millan <rmh@aybabtu.com>
35177
35178 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
35179 `terminal_input' / `terminal_output', not `terminal'.
35180
ac293d50 351812008-11-08 Robert Millan <rmh@aybabtu.com>
35182
35183 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 35184 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 35185
0025933a 351862008-11-08 Robert Millan <rmh@aybabtu.com>
35187
35188 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 35189 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 35190 members. Update all users.
35191 * util/console.c (grub_ncurses_term): Split in ...
35192 (grub_ncurses_term_input): ... this, and ...
35193 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 35194 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 35195
37c86336 351962008-11-08 Robert Millan <rmh@aybabtu.com>
35197
35198 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
35199 (PKGDATA): Add $(pkgdata_SRCDIR).
35200 (pkglib_BUILDDIR): New variable.
35201 (pkgdata_SRCDIR): New variable.
35202 (build_env.mk): New target.
35203 (include_DATA): New variable.
35204 (install-local): Install $(include_DATA) files in $(includedir).
35205
b6c15a2d 352062008-11-07 Pavel Roskin <proski@gnu.org>
35207
d99d46f1 35208 * gendistlist.sh: Use C locale for sorting to ensure consistent
35209 output on all systems.
35210
b6c15a2d 35211 * util/grub.d/00_header.in: Remove incorrect space before
35212 "serial".
35213
c32ee8c9 352142008-11-07 Robert Millan <rmh@aybabtu.com>
35215
35216 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
35217 per specification.
35218 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
35219 * loader/multiboot_loader.c (find_multi_boot2_header): New function
35220 (based on find_multi_boot1_header).
35221 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
35222 using find_multi_boot2_header(), and abort if neither Multiboot or
35223 Multiboot headers were found.
35224
651c29b7 352252008-11-07 Robert Millan <rmh@aybabtu.com>
35226
35227 Modularize at_keyboard.mod:
35228
35229 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
35230 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
35231 (at_keyboard_mod_LDFLAGS): New variables.
35232
35233 Actual terminal split:
35234
35235 * include/grub/term.h (struct grub_term): Split in ...
35236 (struct grub_term_input): ... this, and ...
35237 (struct grub_term_output): ... this. Update all users.
35238 (grub_term_set_current): Split in ...
35239 (grub_term_set_current_input): ... this, and ...
35240 (grub_term_set_current_output): ... this.
35241 (grub_term_get_current): Split in ...
35242 (grub_term_get_current_input): ... this, and ...
35243 (grub_term_get_current_output): ... this.
35244 (grub_term_register): Split in ...
35245 (grub_term_register_input): ... this, and ...
35246 (grub_term_register_output): ... this.
35247 (grub_term_unregister): Split in ...
35248 (grub_term_unregister_input): ... this, and ...
35249 (grub_term_unregister_output): ... this.
35250 (grub_term_iterate): Split in ...
35251 (grub_term_iterate_input): ... this, and ...
35252 (grub_term_iterate_output): ... this.
35253
35254 * kern/term.c (grub_term_list): Split in ...
35255 (grub_term_list_input): ... this, and ...
35256 (grub_term_list_output): ... this. Update all users.
35257 (grub_cur_term): Split in ...
35258 (grub_cur_term_input): ... this, and ...
35259 (grub_cur_term_output): ... this. Update all users.
35260 (grub_term_set_current): Split in ...
35261 (grub_term_set_current_input): ... this, and ...
35262 (grub_term_set_current_output): ... this.
35263 (grub_term_get_current): Split in ...
35264 (grub_term_get_current_input): ... this, and ...
35265 (grub_term_get_current_output): ... this.
35266 (grub_term_register): Split in ...
35267 (grub_term_register_input): ... this, and ...
35268 (grub_term_register_output): ... this.
35269 (grub_term_unregister): Split in ...
35270 (grub_term_unregister_input): ... this, and ...
35271 (grub_term_unregister_output): ... this.
35272 (grub_term_iterate): Split in ...
35273 (grub_term_iterate_input): ... this, and ...
35274 (grub_term_iterate_output): ... this.
35275
35276 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
35277 a check for input and one for output (and only attempt to get keys
35278 from user when input works).
35279
35280 * util/grub-probe.c (grub_term_get_current): Split in ...
35281 (grub_term_get_current_input): ... this, and ...
35282 (grub_term_get_current_output): ... this.
35283 * util/grub-fstest.c: Likewise.
35284 * util/i386/pc/grub-setup.c: Likewise.
35285 * util/grub-editenv.c: Likewise.
35286
35287 Portability adjustments:
35288
35289 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
35290 `term/i386/pc/at_keyboard.c'.
35291 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
35292 grub_keyboard_controller_init() (now handled by terminal .init).
35293 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
35294 grub_at_keyboard_init().
35295 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
35296 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
35297 at_keyboard.mod via input terminal interface).
35298 * include/grub/i386/coreboot/console.h: Convert into a stub for
35299 `<grub/i386/pc/console.h>'.
35300
35301 Migrate full terminals to new API:
35302
35303 * term/efi/console.c (grub_console_term): Split into ...
35304 (grub_console_term_input): ... this, and ...
35305 (grub_console_term_output): ... this. Update all users.
35306 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
35307 (grub_ofconsole_init): Split into ...
35308 (grub_ofconsole_init_input): ... this, and ...
35309 (grub_ofconsole_init_output): ... this.
35310 (grub_ofconsole_term): Split into ...
35311 (grub_ofconsole_term_input): ... this, and ...
35312 (grub_ofconsole_term_output): ... this. Update all users.
35313 * term/i386/pc/serial.c (grub_serial_term): Split into ...
35314 (grub_serial_term_input): ... this, and ...
35315 (grub_serial_term_output): ... this. Update all users.
35316 * term/i386/pc/console.c (grub_console_term): Split into ...
35317 (grub_console_term_input): ... this, and ...
35318 (grub_console_term_output): ... this. Update all users.
35319 (grub_console_term_input): Only enable it on PC/BIOS platform.
35320 (grub_console_init): Remove grub_keyboard_controller_init() call.
35321
35322 Migrate input terminals to new API:
35323
35324 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
35325 `i386' and `i386/pc' to enable build on x86_64 (this driver is
35326 i386-specific anyway).
35327 (grub_console_checkkey): Rename to ...
35328 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
35329 users.
35330 (grub_keyboard_controller_orig): New variable.
35331 (grub_console_getkey): Rename to ...
35332 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
35333 users.
35334 (grub_keyboard_controller_init): Static-ize. Save original
35335 controller value so that it can be restored ...
35336 (grub_keyboard_controller_fini): ... here (new function).
35337 (grub_at_keyboard_term): New structure.
35338 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
35339 functions.
35340
35341 Migrate output terminals to new API:
35342
35343 * term/i386/pc/vga.c (grub_vga_term): Change type to
35344 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35345 members. Update all users.
35346 * term/gfxterm.c (grub_video_term): Change type to
35347 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35348 members. Update all users.
35349 * include/grub/i386/pc/console.h (grub_console_checkkey)
35350 (grub_console_getkey): Do not export (no longer needed by gfxterm,
35351 etc).
35352
35353 Migrate `terminal' command and userland tools to new API:
35354
35355 * commands/terminal.c (grub_cmd_terminal): Split into ...
35356 (grub_cmd_terminal_input): ... this, and ...
35357 (grub_cmd_terminal_output): ... this.
35358 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
35359 `terminal_input' and `terminal_output'.
35360 * util/grub.d/00_header.in: Adjust `terminal' calls to new
35361 `terminal_input' / `terminal_output' API.
35362 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
35363 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
35364 provided ${GRUB_TERMINAL}, convert it).
35365
96e5d876 353662008-11-04 Robert Millan <rmh@aybabtu.com>
35367
35368 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
35369 for FreeBSD.
35370 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
35371
556f3775 353722008-11-03 Bean <bean123ch@gmail.com>
35373
35374 * kern/elf.c (grub_elf32_load): Revert to previous code.
35375 (grub_elf64_load): Likewise.
35376
35377 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
35378
926b9823 353792008-11-01 Robert Millan <rmh@aybabtu.com>
35380
35381 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
35382 (TARGET_CPPFLAGS): Likewise.
35383 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
35384
1432e958 353852008-11-01 Carles Pina i Estany <carles@pina.cat>
35386
35387 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
35388
dba3f844 353892008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 35390
35391 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
35392 addition of objects until the code is not going to be able to fail.
35393
dba3f844 353942008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 35395
35396 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
35397 (add a missing NULL check, and correct them by moving the pointer
35398 operations after the actual check).
35399
7ab28c21 354002008-10-29 Robert Millan <rmh@aybabtu.com>
35401
35402 * util/i386/pc/grub-install.in: Handle empty string as output from
35403 make_system_path_relative_to_its_root().
35404
1b7748eb 354052008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
35406
35407 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
35408 circular metadata worst case scenario. If the metadata is circular
35409 then copy the wrap in place.
35410 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
35411 project lib/format_text/layout.h
35412 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35413
c9618ab2 354142008-10-03 Felix Zielcke <fzielcke@z-51.de>
35415
7a36edca 35416 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 35417
bf981c62 354182008-10-03 Felix Zielcke <fzielcke@z-51.de>
35419
35420 * util/update-grub_lib.in: Mention filename in warning message.
35421
6d994591 354222008-09-29 Felix Zielcke <fzielcke@z-51.de>
35423
35424 * NEWS: Update for rename of update-grub to grub-mkconfig.
35425
18ade780 354262008-09-29 Felix Zielcke <fzielcke@z-51.de>
35427
35428 * util/update-grub_lib.in: Copy to ...
35429 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 35430 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 35431 * util/update-grub.in: Rename to ...
35432 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35433 option. Add `--output' option to allow users to specify the generated
35434 configuration file. Default to stdout.
35435 (update_grub_dir): Rename to ...
35436 (grub_mkconfig_dir): ... this.
35437 (grub_cfg): Default to an empty string.
35438 * conf/common.rmk (update-grub): Rename to ...
35439 (grub-mkconfig): ... this.
35440 (update-grub_lib): Copy to ...
35441 (grub-mkconfig_lib): ... this.
35442 (update-grub_SCRIPTS): Copy to ...
35443 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35444 (update-grub_DATA): Rename to ...
35445 (grub-mkconfig_DATA): ... this.
35446
556ce6ac 354472008-09-28 Robert Millan <rmh@aybabtu.com>
35448
35449 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35450 to `modified'. Add the real `created' field.
35451 (grub_iso9660_uuid): Use `modified' rather than `created' for
35452 constructing the UUID.
35453
354542008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 35455
35456 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35457 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35458
92274e85 354592008-09-28 Bean <bean123ch@gmail.com>
35460
35461 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35462 Thanks to Christian Franke for finding this bug.
35463
add6f17a 354642008-09-25 Robert Millan <rmh@aybabtu.com>
35465
35466 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35467 instances of grub_util_get_disk_name() (see previous commit).
35468
d2a367b8 354692008-09-25 Robert Millan <rmh@aybabtu.com>
35470
35471 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35472 `util/i386/get_disk_name.c'.
35473 * conf/i386-efi.rmk: Likewise.
35474 * conf/x86_64-efi.rmk: Likewise.
35475 * conf/i386-coreboot.rmk: Likewise.
35476 * conf/i386-ieee1275.rmk: Likewise.
35477 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35478 `util/ieee1275/get_disk_name.c'.
35479 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35480 * util/ieee1275/get_disk_name.c: Remove file.
35481 * util/i386/get_disk_name.c: Remove file.
35482 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35483 "hd%d" for device.map entries, rather than using
35484 grub_util_get_disk_name().
35485
81a06771 354862008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 35487
35488 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35489 warning.
35490 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35491
5a004279 354922008-09-24 Carles Pina i Estany <carles@pina.cat>
35493
35494 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35495 Changed to 0x5100.
35496 (GRUB_TERM_PPAGE): Changed to 0x4900.
35497
397093d3 354982008-09-24 Robert Millan <rmh@aybabtu.com>
35499
35500 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35501 macros (they were i386-pc specific).
35502 * include/grub/sparc64/ieee1275/console.h: Likewise.
35503 * include/grub/efi/console.h: Likewise.
35504
a91b6c7c 355052008-09-22 Bean <bean123ch@gmail.com>
35506
35507 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35508 resident and in attribute list.
35509
35510 * include/grub/ntfs.h (BMP_LEN): Removed.
35511
c40fd116 355122008-09-22 Bean <bean123ch@gmail.com>
35513
81a06771 35514 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 35515 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35516
35517 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35518 error occurs, as grub_disk_open will call grub_disk_close, which will
35519 call p->close (scsi).
35520
81a06771 355212008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 35522
35523 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35524 (AC_PREREQ): Bumped to 2.59.
35525 (AC_TRY_COMPILE): Replace obsolete macro with ...
35526 (AC_COMPILE_IFELSE): ... this.
35527 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35528 (AC_LINK_IFELSE): ... this.
35529
5dc43410 355302008-09-21 Felix Zielcke <fzielcke@z-51.de>
35531
35532 * autogen.sh: Add a call to `gendistlist.sh'.
35533
9035dce4 355342008-09-19 Christian Franke <franke@computer.org>
35535
35536 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35537 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35538 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35539 Export __enable_execute_stack() to modules.
35540 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35541 New function.
35542
7fd75377 355432008-09-09 Felix Zielcke <fzielcke@z-51.de>
35544
040030b3 35545 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35546 Sort the list.
35547
355482008-09-09 Felix Zielcke <fzielcke@z-51.de>
35549
35550 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 35551 #include <grub/util/hostdisk.h>.
35552
89d5ffcf 355532008-09-08 Robert Millan <rmh@aybabtu.com>
35554
35555 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35556 segments when their filesz is zero (grub_file_read() interprets
81a06771 35557 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 35558 Use `lowest_segment' rather than 0 for calculating the current
35559 segment load address.
35560
40da438f 355612008-09-08 Robert Millan <rmh@aybabtu.com>
35562
35563 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35564 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35565 clobbered useful information.
35566
ddbf5556 355672008-09-08 Robert Millan <rmh@aybabtu.com>
35568
35569 * include/grub/util/biosdisk.h: Move to ...
35570 * include/grub/util/hostdisk.h: ... here. Update all users.
35571 * util/biosdisk.c: Move to ...
35572 * util/hostdisk.c: ... here. Update all users.
35573
783d0f48 355742008-09-07 Robert Millan <rmh@aybabtu.com>
35575
35576 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35577 variables.
35578 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35579 and length can be stored directly in the `mbi->mmap_addr' and
35580 `mbi->mmap_length' struct fields.
35581
548e2ea5 355822008-09-07 Robert Millan <rmh@aybabtu.com>
35583
35584 * conf/i386.rmk: New file. Provides declaration for building
35585 `cpuid.mod'.
35586 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35587 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35588 variables.
35589 Include `conf/i386.mk'.
35590 * conf/i386-efi.rmk: Likewise.
35591 * conf/x86_64-efi.rmk: Likewise.
35592 * conf/i386-coreboot.rmk: Likewise.
35593 * conf/i386-ieee1275.rmk: Likewise.
35594
0ea85a37 355952008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35596
35597 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35598 Adds optimization support for BGR based modes.
35599
35600 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35601 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35602 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35603 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35604 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35605 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35606 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35607 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35608 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35609 (grub_video_i386_vbeblit_index_index): Likewise.
35610 (grub_video_i386_vbeblit_replace_directN): Added.
35611 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35612 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35613 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35614 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35615 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35616 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 35617 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 35618 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35619 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35620 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35621 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35622 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35623 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35624
35625 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35626 (grub_video_i386_vbefill_R8G8B8): Likewise.
35627 (grub_video_i386_vbefill_index): Likewise.
35628 (grub_video_i386_vbefill_direct32): Added.
35629 (grub_video_i386_vbefill_direct24): Likewise.
35630 (grub_video_i386_vbefill_direct16): Likewise.
35631 (grub_video_i386_vbefill_direct8): Likewise.
35632
81a06771 35633 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 35634 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35635 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35636 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35637 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35638 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 35639
0ea85a37 35640 * video/video.c (grub_video_get_blit_format): Updated to use new
35641 blit formats. Added handling for 16 bit color modes.
81a06771 35642
35643 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 35644 fillers.
35645 (common_blitter): Updated to use new blitters.
35646
35647 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35648 Removed.
35649 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35650 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35651 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35652 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35653 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35654 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35655 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35656 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35657 (grub_video_i386_vbeblit_index_index): Likewise.
35658 (grub_video_i386_vbeblit_replace_directN): Added.
35659 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35660 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35661 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35662 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35663 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35664 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35665 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35666 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35667 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35668 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35669 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35670 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35671 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 35672
0ea85a37 35673 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35674 (grub_video_i386_vbefill_R8G8B8): Likewise.
35675 (grub_video_i386_vbefill_index): Likewise.
35676 (grub_video_i386_vbefill_direct32): Added.
35677 (grub_video_i386_vbefill_direct24): Likewise.
35678 (grub_video_i386_vbefill_direct16): Likewise.
35679 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 35680
0ea85a37 35681 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35682 types.
81a06771 35683
0ea85a37 35684 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35685 types.
81a06771 35686
0ea85a37 35687 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35688 blitter types.
81a06771 35689
0ea85a37 35690 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35691 types.
35692
e8a83df6 356932008-09-06 Felix Zielcke <fzielcke@z-51.de>
35694
35695 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35696 RAID level 1.
35697
6bcd8ee5 356982008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 35699
6bcd8ee5 35700 * fs/iso9660.c (grub_iso9660_date): New structure.
35701 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35702 (grub_iso9660_uuid): New function.
c375ae58 35703
59261157 357042008-09-05 Bean <bean123ch@gmail.com>
35705
35706 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35707
35708 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35709 insensitive bit for names in Win32 and Win32 & DOS namespace.
35710
35711 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35712
35713 * include/grub/types.h (LONG_MAX): Likewise.
35714
58b6645a 357152008-09-04 Felix Zielcke <fzielcke@z-51.de>
35716
4ee55921 35717 * util/getroot.c: Include <config.h>.
35718 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35719 add support for /dev/md/N devices and handle LVM double dash escaping.
35720
357212008-09-04 Felix Zielcke <fzielcke@z-51.de>
35722
35723 * config.guess: Update to latest version from config git.
35724 * config.sub: Likewise.
58b6645a 35725
9124f65d 357262008-09-03 Robert Millan <rmh@aybabtu.com>
35727
35728 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35729 `disk->total_sectors'.
35730
81a06771 357312008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 35732
35733 * include/grub/normal.h: Fixed incorrect comment for
35734 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35735
81a06771 357362008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 35737
35738 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35739 values with defines.
35740
35741 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35742 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35743 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35744 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35745 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35746 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35747 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35748 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35749 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35750 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35751 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35752 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35753 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35754 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35755 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35756 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35757 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35758 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35759 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35760
93d5cbf8 357612008-08-31 Robert Millan <rmh@aybabtu.com>
35762
35763 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35764 declaration.
35765 (grub_multiboot): Fix a few warnings.
35766
21751d50 357672008-08-31 Robert Millan <rmh@aybabtu.com>
35768
35769 * loader/i386/pc/multiboot.c: Update comment not to say that
35770 boot_device support is unimplemented.
35771
e27a75c5 357722008-08-31 Robert Millan <rmh@aybabtu.com>
35773
35774 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35775 or memory map support are unimplemented.
35776
81a06771 357772008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 35778
35779 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35780
81a06771 357812008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 35782
35783 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35784 total video memory in 'vbeinfo' output; show color format details for
35785 each video mode.
35786
7c5d8d95 357872008-08-30 Pavel Roskin <proski@gnu.org>
35788
35789 * util/genmoddep.c: Remove for real this time.
35790 * DISTLIST: Remove util/genmoddep.c.
35791
4cebd25a 357922008-08-30 Robert Millan <rmh@aybabtu.com>
35793
35794 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35795 as required by Multiboot spec (it was already 4-byte aligned, but
35796 only by chance).
35797
b497a269 357982008-08-29 Pavel Roskin <proski@gnu.org>
35799
e3925185 35800 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35801 * kern/powerpc/ieee1275/startup.S: ... this.
35802 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35803 * DISTLIST: Likewise.
35804
b497a269 35805 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35806 grub/cpu/kernel.h. Add start label for consistency with other
35807 platforms. Add grub_prefix immediately after start. Add jump
35808 to the code after grub_prefix.
35809 * include/grub/powerpc/kernel.h: Provide valid values for
35810 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35811
6e5a42fe 358122008-08-29 Bean <bean123ch@gmail.com>
35813
35814 * configure.ac: Change host_os to cygwin for mingw.
35815 (asprintf): New check for function.
35816
35817 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35818 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35819
35820 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 35821 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 35822 sync, sleep and grub_util_get_disk_size for mingw.
35823
35824 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35825 to get size in mingw.
35826 (open_device): Use flag O_BINARY if it's defined.
35827 (find_root_device): Add dummy code for mingw.
35828
35829 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35830 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35831 (get_scsi_disk_name): Return 0 for mingw.
35832
35833 * util/hostfs.c: #include <grub/util/misc.h>.
35834 (grub_hostfs_open): Use "rb" flag to open file, use
35835 grub_util_get_disk_size to get disk size for mingw.
35836
35837 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35838 (asprintf): New function if HAVE_ASPRINTF is not set.
35839 (sync): New function for mingw.
35840 (sleep): Likewise.
35841 (grub_util_get_disk_size): Likewise.
35842
ab3f2673 358432008-08-28 Pavel Roskin <proski@gnu.org>
35844
35845 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35846 kern/time.c.
35847
1c282483 358482008-08-28 Robert Millan <rmh@aybabtu.com>
35849
35850 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35851
678e849c 358522008-08-28 Robert Millan <rmh@aybabtu.com>
35853
35854 Change find_grub_drive() syntax so it doesn't prevent it from
35855 detecting NULL names as errors.
35856
35857 * util/biosdisk.c (find_grub_drive): Move free slot search code
35858 from here ...
35859 (find_free_slot): ... to here.
35860 (read_device_map): Use find_free_slot() to search for free slots.
35861
965c75ca 358622008-08-27 Marco Gerards <marco@gnu.org>
35863
35864 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35865 (scsi_mod_SOURCES): New variable.
35866 (scsi_mod_CFLAGS): Likewise
35867 (scsi_mod_LDFLAGS): Likewise.
35868
35869 * disk/scsi.c: New file.
35870
35871 * include/grub/scsi.h: Likewise.
35872
35873 * include/grub/scsicmd.h: Likewise.
35874
35875 * disk/ata.c: Include <grub/scsi.h>.
35876 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35877 instead.
35878 (grub_ata_iterate): Skip ATAPI devices.
35879 (grub_ata_open): Only handle ATAPI devices.
35880 (struct grub_atapi_read): Removed.
35881 (grub_atapi_readsector): Likewise.
35882 (grub_ata_read): No longer handle ATAPI devices.
35883 (grub_ata_write): Likewise.
35884 (grub_atapi_iterate): New function.
35885 (grub_atapi_read): Likewise.
35886 (grub_atapi_write): Likewise.
35887 (grub_atapi_open): Likewise.
35888 (grub_atapi_close): Likewise.
35889 (grub_atapi_dev): New variable.
35890 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35891 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35892
35893 * include/grub/disk.h (enum grub_disk_dev_id): Add
35894 `GRUB_DISK_DEVICE_SCSI_ID'.
35895
c07ae501 358962008-08-26 Robert Millan <rmh@aybabtu.com>
35897
35898 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35899 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35900 descriptive.
35901
5ed20adc 359022008-08-23 Bean <bean123ch@gmail.com>
35903
35904 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35905 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35906 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35907 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35908 dm_nv.mod.
35909 (raid5rec_mod_SOURCES): New macro.
35910 (raid5rec_mod_CFLAGS): Likewise.
35911 (raid5rec_mod_LDFLAGS): Likewise.
35912 (raid6rec_mod_SOURCES): Likewise.
35913 (raid6rec_mod_CFLAGS): Likewise.
35914 (raid6rec_mod_LDFLAGS): Likewise.
35915 (mdraid_mod_SOURCES): Likewise.
35916 (mdraid_mod_CFLAGS): Likewise.
35917 (mdraid_mod_LDFLAGS): Likewise.
35918 (dm_nv_mod_SOURCES): Likewise.
35919 (dm_nv_mod_CFLAGS): Likewise.
35920 (dm_nv_mod_LDFLAGS): Likewise.
35921
35922 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35923 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35924 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35925
35926 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35927 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35928
35929 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35930
35931 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35932
35933 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35934
35935 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35936
35937 * disk/raid5_recover.c: New file.
35938
35939 * disk/raid6_recover.c: Likewise.
35940
35941 * disk/mdraid_linux.c: Likewise.
35942
35943 * disk/dmraid_nvidia.c: Likewise.
35944
35945 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35946 ULONG_MAX.
35947
35948 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35949 calculate the size of raid device.
35950 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35951 different layout of raid5.
35952 (grub_raid_scan_device): Remove code specific to mdraid.
35953 (grub_raid_list): New variable.
35954 (free_array): New function.
35955 (grub_raid_register): Likewise.
35956 (grub_raid_unregister): Likewise.
35957 (grub_raid_rescan): Likewise.
35958 (GRUB_MOD_INIT): Don't iterate device here.
35959 (GRUB_MOD_FINI): Use free_array to release resource.
35960
35961 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35962 (grub_raid5_recover_func_t): New function variable type.
35963 (grub_raid6_recover_func_t): Likewise.
35964 (grub_raid5_recover_func): New variable.
35965 (grub_raid6_recover_func): Likewise.
35966 (grub_raid_register): New function.
35967 (grub_raid_unregister): Likewise.
35968 (grub_raid_rescan): Likewise.
35969 (grub_raid_block_xor): Likewise.
35970
35971 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35972 (CMD_CRC): New macro.
35973 (part): Removed.
35974 (read_file): Handle device as well as file.
35975 (cmd_crc): New function.
35976 (fstest): Handle multiple disks.
35977 (options): Remove part, raw and long, add root and diskcount.
35978 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 35979 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 35980 add handling for the new options, support multiple disks.
35981
35982 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35983
29c18915 359842008-08-23 Bean <bean123ch@gmail.com>
35985
35986 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35987
35988 * genfslist.sh: Ignore kernel.mod.
35989
35990 * genpartmaplist.sh: Likewise.
35991
8415f261 359922008-08-23 Robert Millan <rmh@aybabtu.com>
35993
35994 * util/getroot.c (find_root_device): Skip anything that starts with
35995 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35996
d5a7dc5b 359972008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 35998
d5a7dc5b 35999 * util/update-grub.in (GRUB_GFXMODE): Export variable.
36000 * util/grub.d/00_header.in: Allow the administrator to change default
36001 gfxmode via ${GRUB_GFXMODE}.
36002
380cfbb4 360032008-08-21 Felix Zielcke <fzielcke@z-51.de>
36004
36005 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
36006
c9baafe7 360072008-08-21 Robert Millan <rmh@aybabtu.com>
36008
36009 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
36010 loader.
36011 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
36012 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
36013
e290bef2 360142008-08-20 Carles Pina i Estany <carles@pina.cat>
36015
36016 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
36017 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
36018
f9dbfc96 360192008-08-19 Robert Millan <rmh@aybabtu.com>
36020
36021 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
36022 (struct grub_virtual_screen): Remove `cursor_color'.
36023 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
36024 initialization.
36025 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
36026
dd6bd6ab 360272008-08-18 Robert Millan <rmh@aybabtu.com>
36028
36029 Unify (identical) linux_normal.c files.
36030 * loader/i386/efi/linux_normal.c: Move from here ...
36031 * loader/linux_normal.c: ... to here. Update all users.
36032 * loader/i386/pc/linux_normal.c: Delete. Update all users.
36033 * loader/i386/ieee1275/linux_normal.c: Likewise.
36034
7f42f83e 360352008-08-18 Robert Millan <rmh@aybabtu.com>
36036
36037 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
36038 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
36039 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
36040 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
36041 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
36042 New macros.
36043 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
36044 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
36045 (GRUB_LINUX_CL_END_OFFSET): ... to here.
36046 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
36047 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
36048 (GRUB_EFI_CL_END_OFFSET): Rename to ...
36049 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
36050 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
36051 Initialize `params->video_cursor_x' and `params->video_cursor_y'
36052 portably using grub_getxy().
36053 Replace `-EFI' with `-bzImage' in boot message.
36054
38487ddb 360552008-08-17 Robert Millan <rmh@aybabtu.com>
36056
36057 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
36058
deceb3ec 360592008-08-17 Robert Millan <rmh@aybabtu.com>
36060
36061 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
36062
36063 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
36064 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
36065 (grub_machine_mmap_iterate): New function declaration.
36066 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
36067 structure.
36068 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
36069 macros.
36070
36071 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
36072 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
36073 Move e820 parsing from here ...
36074 * kern/i386/pc/mmap.c: New file.
36075 (grub_machine_mmap_iterate): ... to here.
36076
36077 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
36078 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
36079 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
36080 (grub_available_iterate): Redeclare to return `void', and redeclare
36081 its hook to use grub_uint64_t as addr and size parameters, and rename
36082 to ...
36083 (grub_machine_mmap_iterate): ... this. Update all users.
36084
36085 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
36086 to make it more readable. Rename to ...
36087 (grub_machine_mmap_iterate): ... this.
36088
36089 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
36090 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
36091 (grub_multiboot): Allocate an extra region after the payload, and fill
36092 it with a Multiboot memory map. Adjust a.out loader to calculate size
36093 with the extra space.
36094 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
36095 with the extra space.
36096
f8aa0f43 360972008-08-17 Carles Pina i Estany <carles@pina.cat>
36098
9807deb9 36099 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 36100
605f5bb6 361012008-08-17 Felix Zielcke <fzielcke@z-51.de>
36102
36103 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
36104 mdate-sh to the list `find' searches for.
36105 * DISTLIST: Regenerated.
36106
210db6c6 361072008-08-16 Felix Zielcke <fzielcke@z-51.de>
36108
36109 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
36110 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 36111 genmoddep.awk, gensymlist.sh.in.
36112 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 36113 * DISTLIST: Regenerated.
48cdbfd4 36114 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 36115
1082b929 361162008-08-16 Robert Millan <rmh@aybabtu.com>
36117
36118 * disk/raid.c (grub_raid_init): Handle/report errors set by
36119 grub_device_iterate().
36120 * disk/lvm.c (grub_lvm_init): Likewise.
36121
42ce5170 361222008-08-15 Bean <bean123ch@gmail.com>
36123
36124 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36125 and datehook.mod.
36126 (datetime_mod_SOURCES): New macro.
36127 (datetime_mod_CFLAGS): Likewise.
36128 (datetime_mod_LDFLAGS): Likewise.
36129 (date_mod_SOURCES): Likewise.
36130 (date_mod_CFLAGS): Likewise.
36131 (date_mod_LDFLAGS): Likewise.
36132 (datehook_mod_SOURCES): Likewise.
36133 (datehook_mod_CFLAGS): Likewise.
36134 (datehook_mod_LDFLAGS): Likewise.
36135
36136 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36137 and datehook.mod.
36138 (datetime_mod_SOURCES): New macro.
36139 (datetime_mod_CFLAGS): Likewise.
36140 (datetime_mod_LDFLAGS): Likewise.
36141 (date_mod_SOURCES): Likewise.
36142 (date_mod_CFLAGS): Likewise.
36143 (date_mod_LDFLAGS): Likewise.
36144 (datehook_mod_SOURCES): Likewise.
36145 (datehook_mod_CFLAGS): Likewise.
36146 (datehook_mod_LDFLAGS): Likewise.
36147
36148 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36149 and datehook.mod.
36150 (datetime_mod_SOURCES): New macro.
36151 (datetime_mod_CFLAGS): Likewise.
36152 (datetime_mod_LDFLAGS): Likewise.
36153 (date_mod_SOURCES): Likewise.
36154 (date_mod_CFLAGS): Likewise.
36155 (date_mod_LDFLAGS): Likewise.
36156 (datehook_mod_SOURCES): Likewise.
36157 (datehook_mod_CFLAGS): Likewise.
36158 (datehook_mod_LDFLAGS): Likewise.
36159
36160 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36161 and datehook.mod.
36162 (datetime_mod_SOURCES): New macro.
36163 (datetime_mod_CFLAGS): Likewise.
36164 (datetime_mod_LDFLAGS): Likewise.
36165 (date_mod_SOURCES): Likewise.
36166 (date_mod_CFLAGS): Likewise.
36167 (date_mod_LDFLAGS): Likewise.
36168 (datehook_mod_SOURCES): Likewise.
36169 (datehook_mod_CFLAGS): Likewise.
36170 (datehook_mod_LDFLAGS): Likewise.
36171
36172 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36173 and datehook.mod.
36174 (datetime_mod_SOURCES): New macro.
36175 (datetime_mod_CFLAGS): Likewise.
36176 (datetime_mod_LDFLAGS): Likewise.
36177 (date_mod_SOURCES): Likewise.
36178 (date_mod_CFLAGS): Likewise.
36179 (date_mod_LDFLAGS): Likewise.
36180 (datehook_mod_SOURCES): Likewise.
36181 (datehook_mod_CFLAGS): Likewise.
36182 (datehook_mod_LDFLAGS): Likewise.
36183
36184 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
36185
36186 * commands/date.c: New file.
36187
36188 * hook/datehook.c: Likewise.
36189
36190 * include/grub/lib/datetime.h: Likewise.
36191
36192 * include/grub/i386/cmos.h: Likewise.
36193
36194 * lib/datetime.c: Likewise.
36195
36196 * lib/i386/datetime.c: Likewise.
36197
36198 * lib/efi/datetime.c: Likewise.
36199
0e9242da 362002008-08-14 Robert Millan <rmh@aybabtu.com>
36201
36202 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
36203 (grub_mkelfimage_SOURCES): New variable.
36204 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
36205
36206 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
36207 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
36208 * conf/powerpc-ieee1275.rmk: Likewise.
36209 * conf/i386-ieee1275.rmk: Likewise.
36210
36211 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
36212 * kern/i386/coreboot/init.c: Likewise.
36213
36214 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
36215 with `<grub/cpu/kernel.h>'.
36216 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
36217 to ...
36218 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
36219 * kern/i386/coreboot/startup.S: Likewise.
36220
36221 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
36222 (GRUB_MOD_GAP): Remove.
36223 * include/grub/powerpc/kernel.h: New file.
36224 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
36225 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36226 * include/grub/i386/kernel.h: New file.
36227 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
36228 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
36229 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36230
36231 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
36232 `grub-mkelfimage'.
36233 Use --directory when invoking grub_mkimage.
36234
36235 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
36236 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
36237 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
36238 and GRUB_KERNEL_CPU_PREFIX.
36239
b86408f8 362402008-08-14 Felix Zielcke <fzielcke@z-51.de>
36241
d5e619ca 36242 * include/grub/err.h (grub_err_printf): New function prototype.
36243 * util/misc.c (grub_err_printf): New function.
36244 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
36245 grub_printf.
36246 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 36247
7161f0e0 362482008-08-13 Robert Millan <rmh@aybabtu.com>
36249
36250 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
36251
a1967522 362522008-08-13 Robert Millan <rmh@aybabtu.com>
36253
36254 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
36255 boot entry.
36256
371458b5 362572008-08-12 Robert Millan <rmh@aybabtu.com>
36258
36259 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
36260 of the relocation code from here ...
36261 (grub_multiboot): ... to here.
36262 (forward_relocator, backward_relocator): Move from here ...
36263 * kern/i386/loader.S (grub_multiboot_forward_relocator)
36264 (grub_multiboot_backward_relocator): ... to here.
36265 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
36266 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
36267 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
36268 (grub_multiboot_forward_relocator_end)
36269 (grub_multiboot_backward_relocator)
36270 (grub_multiboot_backward_relocator_end): New variables.
36271
05f9452b 362722008-08-12 Bean <bean123ch@gmail.com>
36273
36274 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
36275
20024ab0 362762008-08-11 Robert Millan <rmh@aybabtu.com>
36277
36278 * kern/i386/linuxbios/startup.S: Move from here ...
36279 * kern/i386/coreboot/startup.S: ... to here.
36280
36281 * kern/i386/linuxbios/init.c: Move from here ...
36282 * kern/i386/coreboot/init.c: ... to here.
36283
36284 * kern/i386/linuxbios/table.c: Move from here ...
36285 * kern/i386/coreboot/mmap.c: ... to here.
36286
36287 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
36288
e352e9cd 362892008-08-11 Robert Millan <rmh@aybabtu.com>
36290
36291 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
36292 errors. Leave it to the upper layer to handle them.
36293
2d05bc6a 362942008-08-09 Christian Franke <franke@computer.org>
36295
36296 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
36297 * conf/common.rmk: Install `grub-pe2elf' only if requested.
36298 Install `grub.d/10_windows' only on Cygwin.
36299 * configure.ac: Add subst of `target_os'.
36300 Check `target_os' also before setting TARGET_OBJ2ELF.
36301 Add `--enable-grub-pe2elf'.
36302
042bd419 363032008-08-08 Robert Millan <rmh@aybabtu.com>
36304
36305 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
36306 (grub_last_time): Change type to grub_uint64_t.
36307 (grub_disk_open): Migrate code from to using grub_get_time_ms().
36308 (grub_disk_close): Likewise.
36309
36310 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
36311 (run_menu): Migrate code from to using grub_get_time_ms().
36312
36313 * util/misc.c (grub_get_time_ms): New function.
36314
7f280db5 363152008-08-08 Marco Gerards <marco@gnu.org>
36316
36317 * disk/ata.c (grub_ata_regget): Change return type to
36318 `grub_uint8_t'.
36319 (grub_ata_regget2): Likewise.
36320 (grub_ata_wait_status): New function.
36321 (grub_ata_wait_busy): Removed function, updated all users to use
36322 `grub_ata_wait_status'.
36323 (grub_ata_wait_drq): Likewise.
36324 (grub_ata_cmd): New function.
36325 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
36326 error handling.
36327 (grub_ata_pio_write): Add error handling.
36328 (grub_atapi_identify): Likewise.
36329 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
36330 handling.
36331 (grub_ata_identify): Use `grub_ata_cmd' and improve error
36332 handling. Actually use the detected registers. Reorder the
36333 detection logic such that it is easier to read.
36334 (grub_ata_pciinit): Do not assign the same ID to each controller.
36335 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
36336 handling.
36337 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
36338
36339 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
36340
1fbc5e66 363412008-08-08 Marco Gerards <marco@gnu.org>
36342
36343 * NEWS: Update.
36344
819ce6c0 363452008-08-07 Bean <bean123ch@gmail.com>
36346
36347 * include/grub/x86_64/pci.h: New file.
36348
5c41d44d 363492008-08-07 Christian Franke <franke@computer.org>
36350
36351 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
36352 (TIMER2_GATE): Likewise.
36353 (grub_pit_wait): Add enable/disable of the timer2 gate
36354 bit of port 0x61. This fixes a possible infinite loop.
36355
5ebc275d 363562008-08-07 Bean <bean123ch@gmail.com>
36357
36358 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
36359 kern/i386/tsc.c and kern/i386/pit.c.
36360
36361 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
36362 x86_64 platform.
36363
36364 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
36365 <grub/i386/tsc.h>.
36366
36367 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
36368
e383b3d0 363692008-08-07 Bean <bean123ch@gmail.com>
36370
36371 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
36372
36373 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
36374
36375 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
36376 multiple inclusion. Add #include <grub/types.h>.
36377
1cbb58ac 363782008-08-06 Christian Franke <franke@computer.org>
36379
36380 * conf/common.rmk: Build and install `10_windows'.
36381 * util/grub.d/10_windows.in: New script.
36382
337f5a1e 363832008-08-06 Pavel Roskin <proski@gnu.org>
36384
36385 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
36386
057bc4ac 363872008-08-06 Robert Millan <rmh@aybabtu.com>
36388
36389 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
36390 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
36391
2b99f123 363922008-08-06 Bean <bean123ch@gmail.com>
36393
36394 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
36395 (grub_pxefs_fs_int): Remove dummy definition.
36396 (grub_pxefs_open): Use data->block_size to store the current block
36397 size setting.
36398 (grub_pxefs_read): Use block size stored in data->block_size. As the
36399 value of grub_pxe_blksize can be changed after the file is opened.
36400
9f0234cb 364012008-08-06 Bean <bean123ch@gmail.com>
36402
36403 * fs/i386/pc/pxe.c (curr_file): new variable.
36404 (grub_pxefs_open): Simply the handling of pxe file system. Don't
36405 require the dummy internal file system anymore.
36406 (grub_pxefs_read): Removed.
36407 (grub_pxefs_close): Likewise.
36408 (grub_pxefs_fs_int): Likewise.
36409 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
36410 connection when we switch file.
36411 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
36412
a55d42e0 364132008-08-06 Robert Millan <rmh@aybabtu.com>
36414
36415 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36416 `halt.mod'.
36417 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36418 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36419
36420 * kern/i386/halt.c: New file.
36421 * kern/i386/reboot.c: Likewise.
36422 * include/grub/i386/reboot.h: Likewise.
36423 * include/grub/i386/halt.h: Likewise.
36424
36425 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36426 Include `<grub/cpu/halt.h>'.
36427 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36428 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36429
36430 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36431 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36432 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36433 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36434 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36435 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36436 from here ...
36437 * include/grub/i386/at_keyboard.h: ... to here.
36438
24371d26 364392008-08-05 Robert Millan <rmh@aybabtu.com>
36440
36441 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36442 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36443 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36444 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36445 `kern/generic/millisleep.c'.
36446
36447 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36448 instead of grub_get_rtc().
36449 (grub_tsc_init): Initialize `tsc_boot_time'.
36450
36451 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36452 (grub_machine_init): Use grub_tsc_init() rather than
36453 installing an RTC-based handler via grub_install_get_time_ms().
36454
36455 * kern/i386/pit.c: New file.
36456 * include/grub/i386/pit.h: Likewise.
36457
9e7007b3 364582008-08-05 Bean <bean123ch@gmail.com>
36459
36460 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36461
36462 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36463 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36464 (pxe_mod_SOURCES): New macro.
36465 (pxe_mod_CFLAGS): Likewise.
36466 (pxe_mod_LDFLAGS): Likewise.
36467 (pxecmd_mod_SOURCES): Likewise.
36468 (pxecmd_mod_CFLAGS): Likewise.
36469 (pxecmd_mod_LDFLAGS): Likewise.
36470
36471 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36472 (grub_pxe_call): Likewise.
36473
36474 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36475
36476 * commands/i386/pc/pxecmd.c: New file.
36477
9f0234cb 36478 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 36479
36480 * include/grub/i386/pc/pxe.h: Likewise.
36481
6977d49f 364822008-08-05 Bean <bean123ch@gmail.com>
36483
36484 * util/console.c (grub_console_cur_color): New variable.
36485 (grub_console_standard_color): Likewise.
36486 (grub_console_normal_color): Likewise.
36487 (grub_console_highlight_color): Likewise.
36488 (color_map): Likewise.
36489 (use_color): Likewise.
36490 (NUM_COLORS): New macro.
36491 (grub_ncurses_setcolorstate): Handle color properly.
36492 (grub_ncurses_setcolor): Don't change color here, just remember the
36493 settings, color will be set in grub_ncurses_setcolorstate.
36494 (grub_ncurses_getcolor): New function.
36495 (grub_ncurses_init): Initialize color pairs.
36496 (grub_ncurses_term): New member grub_ncurses_getcolor.
36497
9c2ff3ee 364982008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 36499
9c2ff3ee 36500 High resolution timer support. Implemented for x86 CPUs using TSC.
36501 Extracted generic grub_millisleep() so it's linked in only as needed.
36502 This requires a Pentium compatible CPU; if the RDTSC instruction is
36503 not supported, then it falls back on the generic grub_get_time_ms()
36504 implementation that uses the machine's RTC.
36505
36506 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36507 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36508 `kern/generic/millisleep.c'.
36509
36510 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36511 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36512
36513 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36514 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36515
36516 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36517
36518 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36519 `kern/generic/millisleep.c'.
36520
36521 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36522
36523 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36524
36525 * kern/generic/rtc_get_time_ms.c: New file.
36526
36527 * kern/generic/millisleep.c: New file.
337f5a1e 36528
9c2ff3ee 36529 * kern/misc.c: Don't include
36530 <kern/time.h> anymore.
36531 (grub_millisleep_generic): Removed.
36532
36533 * commands/sleep.c (grub_interruptible_millisleep): Uses
36534 grub_get_time_ms() instead of grub_get_rtc().
36535
36536 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36537 function.
36538 (grub_cpu_is_cpuid_supported): New inline function.
36539 (grub_cpu_is_tsc_supported): New inline function.
36540 (grub_tsc_init): New function prototype.
36541 (grub_tsc_get_time_ms): New function prototype.
36542
36543 * kern/i386/tsc.c (grub_get_time_ms): New file.
36544
36545 * include/grub/time.h: Include <grub/types.h.
36546 (grub_millisleep_generic): Removed.
36547 (grub_get_time_ms): New prototype.
36548 (grub_install_get_time_ms): New prototype.
36549 (grub_rtc_get_time_ms): New prototype.
36550
36551 * kern/time.c (grub_get_time_ms): New function.
36552 (grub_install_get_time_ms): New function.
36553
36554 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36555 <grub/time.h> anymore.
36556 (grub_millisleep): Removed.
36557 (grub_machine_init): Call grub_tsc_init.
36558
36559 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36560 get_time_ms() implementation.
36561
36562 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36563 (ieee1275_get_time_ms): New function.
36564 (grub_machine_init): Install get_time_ms() implementation.
36565
36566 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36567 (grub_machine_init): Call grub_tsc_init().
36568 (grub_millisleep): Removed.
bf06a93f 36569
9c2ff3ee 36570 * kern/ieee1275/init.c (grub_millisleep): Removed.
36571 (grub_machine_init): Install ieee1275_get_time_ms()
36572 implementation.
36573 (ieee1275_get_time_ms): New function.
36574 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36575 real work.
36576
9ec92aaf 365772008-08-05 Marco Gerards <marco@gnu.org>
36578
36579 * disk/ata.c: Include <grub/pci.h>.
36580 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36581 (grub_ata_initialize): Rewritten.
36582 (grub_ata_device_initialize): New function.
36583
8d23f507 365842008-08-04 Pavel Roskin <proski@gnu.org>
36585
36586 * kern/main.c: Include grub/mm.h.
36587
5e15ee3d 365882008-08-04 Robert Millan <rmh@aybabtu.com>
36589
36590 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36591 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36592 corruption problem).
36593
a9053f8f 365942008-08-04 Robert Millan <rmh@aybabtu.com>
36595
36596 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36597 warnings introduced in my last commit.
36598
dd19c7d7 365992008-08-03 Robert Millan <rmh@aybabtu.com>
36600
36601 Make PCI available on all i386 architectures.
36602
36603 * include/grub/i386/pc/pci.h: Move from here ...
36604 * include/grub/i386/pci.h: ... to here.
36605
36606 * include/grub/i386/pc/pci.h: Remove.
36607 * include/grub/i386/efi/pci.h: Remove.
36608 * include/grub/x86_64/efi/pci.h: Remove.
36609
36610 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36611 `<grub/cpu/pci.h>'.
36612
36613 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36614 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36615 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36616
36617 * conf/i386-ieee1275.rmk: Likewise.
36618
e14a6184 366192008-08-03 Robert Millan <rmh@aybabtu.com>
36620
36621 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36622 (grub_console_setcursor): Make it possible to set cursor off.
36623
52768e37 366242008-08-03 Robert Millan <rmh@aybabtu.com>
36625
36626 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36627 of modules instead of assuming which platform provides what.
36628 * util/update-grub.in: Likewise.
36629
2d52f57f 366302008-08-03 Robert Millan <rmh@aybabtu.com>
36631
36632 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36633 instead of `grub_install_dos_part' to determine whether a drive needs
36634 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 36635 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 36636
2a5cd121 366372008-08-02 Robert Millan <rmh@aybabtu.com>
36638
36639 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36640
93808428 366412008-08-02 Robert Millan <rmh@aybabtu.com>
36642
36643 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36644 of informational grub_dprintf() calls.
36645
3bd0a12a 366462008-08-02 Robert Millan <rmh@aybabtu.com>
36647
36648 * disk/memdisk.c (memdisk_size): Don't initialize.
36649 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36650
36651 * include/grub/i386/pc/kernel.h
36652 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36653 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36654 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36655 (grub_arch_memdisk_size): Remove.
36656
36657 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36658 field (was only used to transfer a constant). Add `type' field to
36659 support multiple module types.
36660 (grub_module_iterate): New function.
36661
36662 * kern/device.c (grub_device_open): Do not hide error messages
36663 when grub_disk_open() fails. Use grub_print_error() instead.
36664
36665 * kern/i386/pc/init.c (grub_arch_modules_addr)
36666 (grub_arch_memdisk_size): Remove functions.
36667 (grub_arch_modules_addr): Return the module address in high memory
36668 (now that it isn't copied anymore).
36669
36670 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36671 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36672 decompression routine (grub_total_module_size already includes that
36673 now). Don't copy modules back to low memory.
36674
36675 * kern/main.c: Include `<grub/mm.h>'.
36676 (grub_load_modules): Split out (and use) ...
36677 (grub_module_iterate): ... this function, which iterates through
36678 module objects and runs a hook.
36679 Comment out grub_mm_init_region() call, as it would cause non-ELF
36680 modules to be overwritten.
36681
36682 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36683 the memdisk image in its own region, make it part of the module list.
36684 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36685 (main): Parse --memdisk|-m option, and pass user-provided path as
36686 parameter to generate_image().
36687 (add_segments): Pass `memdisk_path' down to load_modules().
36688 (load_modules): Embed memdisk image in module section when requested.
36689 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36690 `header.type' instead of `header.offset'.
36691
36692 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36693 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36694 (memdisk_mod_LDFLAGS): New variables.
36695 * conf/i386-coreboot.rmk: Likewise.
36696 * conf/i386-ieee1275.rmk: Likewise.
36697
a927cc73 366982008-08-02 Robert Millan <rmh@aybabtu.com>
36699
36700 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36701 (backward_relocator): New variables. Used to allocate and relocate
36702 the payload, respectively.
36703 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 36704 address, install the appropriate relocator code in each bound of
a927cc73 36705 the payload, and set the entry point such that
36706 grub_multiboot_real_boot() will jump to one of them.
36707
36708 * kern/i386/loader.S (grub_multiboot_payload_size)
36709 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36710 (grub_multiboot_payload_entry_offset): New variables.
36711 (grub_multiboot_real_boot): Set cpu context to what the relocator
36712 expects, and jump to the relocator instead of the payload.
36713
36714 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36715 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36716 (grub_multiboot_payload_entry_offset): Export.
36717
b15d8a0c 367182008-08-01 Bean <bean123ch@gmail.com>
36719
36720 * normal/menu_entry.c (editor_getline): Don't return the original
36721 string as result, as it will be released by lexer once it has done
36722 using it.
36723
cdfb3d22 367242008-08-01 Robert Millan <rmh@aybabtu.com>
36725
36726 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36727 within menuentries, not before them.
36728 util/grub.d/10_hurd.in: Likewise.
36729
9175e93d 367302008-08-01 Bean <bean123ch@gmail.com>
36731
36732 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36733 (bufio_mod_SOURCES): New macro.
36734 (bufio_mod_CFLAGS): Likewise.
36735 (bufio_mod_LDFLAGS): Likewise.
36736
36737 * include/grub/bufio.h: New file.
36738
36739 * io/bufio.c: Likewise.
36740
36741 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36742 (grub_video_reader_png): Use grub_buffile_open to open file.
36743
36744 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36745 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36746
36747 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36748 (grub_video_reader_tga): Use grub_buffile_open to open file.
36749
36750 * font/manager.c: Include <grub/bufio.h>.
36751 (add_font): Use grub_buffile_open to open file.
36752
3d8383e7 367532008-07-31 Robert Millan <rmh@aybabtu.com>
36754
36755 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36756 ELF segments, use a macro for arbitrarily accessing any of them instead
36757 of preparing a pointer that allows access to one at a time.
36758 (grub_multiboot_load_elf64): Likewise.
36759
16e641b6 367602008-07-31 Bean <bean123ch@gmail.com>
36761
36762 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36763 GRUB_KERNEL_MACHINE_DATA_END.
36764
59198b72 367652008-07-30 Robert Millan <rmh@aybabtu.com>
36766
36767 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36768 Increase from 0x50 to 0x60.
36769 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36770 use UUIDs to identify the root drive for them. If that's not
36771 possible, abort.
36772 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36773 check, for cross-disk installs.
36774
ae88bca3 367752008-07-30 Robert Millan <rmh@aybabtu.com>
36776
36777 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36778 is non-empty, use it to set the `prefix' environment variable instead
36779 of the usual approach.
36780 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36781 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36782 environment variable instead of dummy make_install_device().
36783
36784 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36785 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 36786 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 36787
36788 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36789 New variable reference.
36790 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36791 New macro. Defines offset of `grub_prefix' within startup.S (relative
36792 to `start').
36793 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36794 section within startup.S (relative to `start').
36795 * include/grub/i386/coreboot/kernel.h: Likewise.
36796
36797 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36798 Overwrite grub_prefix with its contents, at the beginning of the
36799 first segment.
36800 (main): Understand -p|--prefix.
36801
14f41dd1 368022008-07-30 Robert Millan <rmh@aybabtu.com>
36803
36804 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36805
4ca049a3 368062008-07-30 Robert Millan <rmh@aybabtu.com>
36807
36808 * term/i386/pc/vga_text.c (grub_console_cls): Use
36809 grub_console_gotoxy() to go back to beginning of the screen.
36810 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36811
2921d337 368122008-07-29 Christian Franke <franke@computer.org>
36813
36814 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36815 Add conversion of emulated mount points on Cygwin.
36816
b609876d 368172008-07-29 Christian Franke <franke@computer.org>
36818
36819 * util/update-grub.in: Add a check for admin
36820 group on Cygwin.
36821 Remove old `grub.cfg.new' before creation.
36822 Add `-f' to `mv' to handle the different filesystem
36823 semantics of Windows.
36824
e93e4679 368252008-07-29 Bean <bean123ch@gmail.com>
36826
36827 * normal/main.c (get_line): Fix buffer overflow bug.
36828
41694fd0 368292008-07-28 Robert Millan <rmh@aybabtu.com>
36830
36831 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36832 (struct grub_apple_header): New struct. Describes the layout of
36833 the partmap header.
36834 (apple_partition_map_iterate): Check the header magic as well as the
36835 partition magic (which was already being checked).
36836
cfd0b4e6 368372008-07-28 Pavel Roskin <proski@gnu.org>
36838
36839 * genmk.rb: Add a warning to the beginning of the output that
36840 it's a generated file and should not be edited.
36841
93cce016 368422008-07-28 Robert Millan <rmh@aybabtu.com>
36843
36844 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36845 with the same number are found, just use issue a warning with
36846 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 36847
cd1df915 368482008-07-27 Robert Millan <rmh@aybabtu.com>
36849
36850 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36851 information.
36852
b70a8427 368532008-07-27 Bean <bean123ch@gmail.com>
36854
36855 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36856 (grub_fat_find_dir): Ignore case when comparing filename.
36857
8f5e379f 368582008-07-27 Bean <bean123ch@gmail.com>
36859
36860 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36861 smallino, as it's more descriptive, and i8count can be confused with
36862 the other field count.
36863 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36864 inode type.
36865
a85cd5a0 368662008-07-27 Bean <bean123ch@gmail.com>
36867
36868 * commands/crc.c: New file.
36869
36870 * lib/crc.c: Likewise.
36871
36872 * include/grub/lib/crc.h: Likewise.
36873
36874 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36875
36876 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36877 (hexdump): Move this function to ...
36878
36879 * lib/hexdump.c: ... here.
36880
36881 * include/grub/hexdump.h: Renamed to ...
36882
36883 * include/grub/lib/hexdump.h: ... this.
36884
36885 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36886
36887 * util/grub-editenv.c: Likewise.
36888
36889 * include/envblk.h: Renamed to ...
36890
36891 * include/lib/envblk.h: ... this.
36892
36893 * util/envblk.c: Renamed to ...
36894
36895 * lib/envblk.c: ... this.
36896
36897 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36898 lib/hexdump.c.
36899 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36900 (pkglib_MODULES): Add crc.mod.
36901 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36902 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36903 (crc_mod_SOURCES): New macro.
36904 (crc_mod_CFLAGS): Likewise.
36905 (crc_mod_LDFLAGS): Likewise.
36906
36907 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36908
36909 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36910
36911 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36912
36913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36914
36915 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36916
c298def0 369172008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 36918
36919 * commands/help.c: Include <grub/term.h>.
36920 (TERM_WIDTH): Removed. Updated all users.
36921
cc349fb3 369222008-07-27 Pavel Roskin <proski@gnu.org>
36923
36924 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36925 spurious warnings about a comment within a comment.
36926
9051607e 369272008-07-25 Robert Millan <rmh@aybabtu.com>
36928
36929 * util/getroot.c (find_root_device): Skip devices that match
36930 /dev/dm-[0-9]. This lets the real device be found for any type of
36931 abstraction (LVM, EVMS, RAID..).
36932 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36933 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36934 device is found first, find_root_device() will now skip it.
36935
01453bfc 369362008-07-24 Pavel Roskin <proski@gnu.org>
36937
36938 * include/grub/types.h: Use __builtin_bswap32() and
36939 __builtin_bswap64() with gcc 4.3 and newer.
36940
6af9849f 369412008-07-24 Christian Franke <franke@computer.org>
36942
3a0fa256 36943 * util/i386/pc/grub-install.in: If `--debug' is specified,
36944 pass `--verbose' to grub-setup.
36945 Abort script if make_system_path_relative_to_its_root() fails.
36946
7810e747 369472008-07-24 Bean <bean123ch@gmail.com>
36948
36949 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36950 variable `target_platform' should be `platform'.
36951
42290e17 369522008-07-24 Bean <bean123ch@gmail.com>
36953
51cc5193 36954 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 36955 (grub_png_init_fixed_block): New function.
36956 (grub_png_decode_image_data): Handle fixed huffman code compression.
36957
2a8a80e4 369582008-07-24 Bean <bean123ch@gmail.com>
36959
36960 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36961 (grub_pe2elf_SOURCES): New macro.
36962 (CLEANFILES): Add grub-pe2elf.
36963
36964 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36965 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36966 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36967 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36968 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36969 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36970 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36971 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36972 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36973 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36974 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36975 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36976 (GRUB_PE32_DT_FUNCTION): Likewise.
36977 (GRUB_PE32_REL_I386_DIR32): Likewise.
36978 (GRUB_PE32_REL_I386_REL32): Likewise.
36979 (grub_pe32_symbol): New structure.
36980 (grub_pe32_reloc): Likewise.
36981
36982 * util/grub-pe2elf.c: New file.
36983
36984 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36985 start symbol in non pc platform.
36986
36987 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36988
36989 The following patches are from Christian Franke.
36990
36991 * include/grub/dl.h: Remove .previous, gas supports this only
36992 for ELF format.
36993
36994 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36995 Remove .type, gas supports this only for ELF format.
36996
36997 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36998 nullbytes in symbol table. This fixes an infinite loop if table is
36999 zero filled.
37000
37001 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
37002 TARGET_IMG_LDFLAGS and EXEEXT.
37003
37004 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
37005 TARGET_IMG_LDFLAGS_AC.
37006 (grub_CHECK_STACK_ARG_PROBE): New function.
37007
37008 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
37009
37010 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
37011
37012 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
37013 to set TARGET_IMG_LD* accordingly.
37014 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
37015 Add call to grub_CHECK_STACK_ARG_PROBE.
37016 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
37017
37018 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
37019
37020 * genmk.rb: Add EXEEXT to CLEANFILES.
37021
12ccdb75 370222008-07-23 Robert Millan <rmh@aybabtu.com>
37023
37024 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
37025 define the codes for arrows and lines used for the menu).
37026 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
37027 as well.
37028
37029 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
37030 fonts, because the latter are too slow.
37031
18eeaf04 370322008-07-21 Bean <bean123ch@gmail.com>
37033
37034 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
37035 a20. Run keyboard test last, as it will cause macbook to halt.
37036
b095e2ad 370372008-07-18 Pavel Roskin <proski@gnu.org>
37038
37039 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
37040 load foreign architecture modules correctly anyway. Keep
37041 support for loading host architecture modules, whether we
37042 compile them or not.
37043
737feb35 370442008-07-17 Pavel Roskin <proski@gnu.org>
37045
3f4ce737 37046 * configure.ac: Use -m32 or -m64 regardless of whether we had to
37047 change target_cpu. The compiler default can mismatch target_cpu
37048 in any case.
37049
4ad2d049 37050 * disk/efi/efidisk.c: Fix format warnings on x86_64.
37051 * kern/efi/efi.c: Likewise.
37052
f6130a12 37053 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
37054 target compiler is functional.
37055 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
37056 are set up.
37057
58393a2d 37058 * configure.ac: Default to efi platform for x86_64-apple. Allow
37059 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
37060 adjustments from the rest, only do them if target is not
37061 explicitly given. Merge other adjustments with the final sanity
37062 check. Remove an extraneous check for supported CPU. Be
37063 specific which CPU and which platform is not supported.
37064
737feb35 37065 * configure.ac: Default to pc platform for x86_64.
37066
546f966a 370672008-07-17 Robert Millan <rmh@aybabtu.com>
37068
37069 Partial LinuxBIOS -> Coreboot rename.
37070
37071 * conf/i386-linuxbios.rmk: Renamed to ...
37072 * conf/i386-coreboot.rmk: ... this.
37073 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
37074 * configure.ac: Accept "coreboot" as input platform (but maintain
37075 compatibility with "linuxbios").
37076 * include/grub/i386/linuxbios: Renamed to ...
37077 * include/grub/i386/coreboot: ... this.
37078
20011694 370792008-07-17 Bean <bean123ch@gmail.com>
37080
37081 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 37082 (appleldr_mod_SOURCE): New variable.
20011694 37083 (appleldr_mod_CFLAGS): Likewise.
37084 (appleldr_mod_LDFLAGS): Likewise.
37085 (pci_mod_SOURCES): Likewise.
37086 (pci_mod_CFLAGS): Likewise.
37087 (pci_mod_LDFLAGS): Likewise.
37088 (lspci_mod_SOURCES): Likewise.
37089 (lspci_mod_CFLAGS): Likewise.
37090 (lspci_mod_LDFLAGS): Likewise.
37091
37092 * conf/x86_64-efi.rmk: New file.
37093
37094 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
37095 macro.
37096 (grub_efidisk_write): Likewise.
37097
37098 * include/efi/api.h (efi_call_0): New macro.
37099 (efi_call_1): Likewise.
37100 (efi_call_2): Likewise.
37101 (efi_call_3): Likewise.
37102 (efi_call_4): Likewise.
37103 (efi_call_5): Likewise.
37104 (efi_call_6): Likewise.
37105
37106 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
37107 grub_rescue_cmd_chainloader.
37108
37109 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
37110 (grub_pe32_optional_header): Change some fields based on i386 or
37111 x86_64 platform.
37112 (GRUB_PE32_PE32_MAGIC): Likewise.
37113
37114 * include/grub/efi/uga_draw.h: New file.
37115
37116 * include/grub/elf.h (STN_ABS): New constant.
37117 (R_X86_64_NONE): Relocation constant for x86_64.
37118 (R_X86_64_64): Likewise.
37119 (R_X86_64_PC32): Likewise.
37120 (R_X86_64_GOT32): Likewise.
37121 (R_X86_64_PLT32): Likewise.
37122 (R_X86_64_COPY): Likewise.
37123 (R_X86_64_GLOB_DAT): Likewise.
37124 (R_X86_64_JUMP_SLOT): Likewise.
37125 (R_X86_64_RELATIVE): Likewise.
37126 (R_X86_64_GOTPCREL): Likewise.
37127 (R_X86_64_32): Likewise.
37128 (R_X86_64_32S): Likewise.
37129 (R_X86_64_16): Likewise.
37130 (R_X86_64_PC16): Likewise.
37131 (R_X86_64_8): Likewise.
37132 (R_X86_64_PC8): Likewise.
37133
37134 * include/grub/i386/efi/pci.h: New file.
37135
37136 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
37137 Change it value based on platform.
37138 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
37139 (GRUB_E820_RAM): Likewise.
37140 (GRUB_E820_RESERVED): Likewise.
37141 (GRUB_E820_ACPI): Likewise.
37142 (GRUB_E820_NVS): Likewise.
37143 (GRUB_E820_EXEC_CODE): Likewise.
37144 (GRUB_E820_MAX_ENTRY): Likewise.
37145 (grub_e820_mmap): New structure.
37146 (linux_kernel_header): Change the efi field according to different
37147 kernel version, also field from linux_kernel_header.
37148
37149 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
37150
37151 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
37152 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
37153 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
37154 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
37155 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
37156 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
37157 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
37158 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
37159 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
37160 (GRUB_PCI_ADDR_IO_MASK): Likewise.
37161
37162 * include/grub/x86_64/efi/kernel.h: New file.
37163
37164 * include/grub/x86_64/efi/loader.h: Likewise.
37165
37166 * include/grub/x86_64/efi/machine.h: Likewise.
37167
37168 * include/grub/x86_64/efi/pci.h: Likewise.
37169
37170 * include/grub/x86_64/efi/time.h: Likewise.
37171
37172 * include/grub/x86_64/linux.h: Likewise.
37173
37174 * include/grub/x86_64/setjmp.h: Likewise.
37175
37176 * include/grub/x86_64/time.h: Likewise.
37177
37178 * include/grub/x86_64/types.h: Likewise.
37179
37180 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
37181 GRUB_TARGET_SIZEOF_VOID_P.
37182
37183 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
37184 (grub_efi_locate_handle): Likewise.
37185 (grub_efi_open_protocol): Likewise.
37186 (grub_efi_set_text_mode): Likewise.
37187 (grub_efi_stall): Likewise.
37188 (grub_exit): Likewise.
37189 (grub_reboot): Likewise.
37190 (grub_halt): Likewise.
37191 (grub_efi_exit_boot_services): Likewise.
37192 (grub_get_rtc): Likewise.
37193
37194 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
37195 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
37196 (grub_efi_allocate_pages): Wrap efi calls.
37197 (grub_efi_free_pages): Wrap efi calls.
37198 (grub_efi_get_memory_map): Wrap efi calls.
37199
37200 * kern/x86_64/dl.c: New file.
37201
37202 * kern/x86_64/efi/callwrap.S: Likewise.
37203
37204 * kern/x86_64/efi/startup.S: Likewise.
37205
37206 * loader/efi/appleloader.c: Likewise.
37207
37208 * loader/efi/chainloader.c (cmdline): New variable.
37209 (grub_chainloader_unload): Wrap efi calls.
37210 (grub_chainloader_boot): Likewise.
37211 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
37212 command line.
37213
37214 * loader/efi/chainloader_normal.c (chainloader_command):
37215 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
37216 command line.
37217
37218 * loader/i386/efi/linux.c (allocate_pages): Change allocation
37219 method.
37220 (grub_e820_add_region): New function.
37221 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
37222 booting.
37223 (grub_find_video_card): New function.
37224 (grub_linux_setup_video): New function.
37225 (grub_rescue_cmd_linux): Probe for video information.
37226
37227 * normal/x86_64/setjmp.S: New file.
37228
37229 * term/efi/console.c (map_char): New function.
37230 (grub_console_putchar): Map unicode char.
37231 (grub_console_checkkey): Wrap efi calls.
37232 (grub_console_getkey): Likewise.
37233 (grub_console_getwh): Likewise.
37234 (grub_console_gotoxy): Likewise.
37235 (grub_console_cls): Likewise.
37236 (grub_console_setcolorstate): Likewise.
37237 (grub_console_setcursor): Likewise.
37238
37239 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
37240
59652a20 372412008-07-16 Pavel Roskin <proski@gnu.org>
37242
ef294055 37243 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
37244 format strings.
37245
59652a20 37246 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
37247 pointer, not an integer. This fixes a warning and prevents
37248 precision loss on 64-bit systems.
37249 (relocate_addresses): Remove unneeded cast.
37250
afc3b5d7 372512008-07-15 Pavel Roskin <proski@gnu.org>
37252
506b2b3e 37253 * kern/i386/ieee1275/init.c: Include grub/cache.h.
37254
62ead89c 37255 * term/ieee1275/ofconsole.c: Disable code unused on i386.
37256
c4cd51d7 37257 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
37258 Fix comparison between signed and unsigned.
37259
0d3d8f28 37260 * include/grub/i386/ieee1275/console.h: Declare
37261 grub_console_init() and grub_console_fini().
37262
8804b286 37263 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
37264 It's empty and unused.
37265
ee01cf35 37266 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
37267 beginning to avoid warnings with some compilers.
37268
afc3b5d7 37269 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
37270 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
37271
e4e8eaa5 372722008-07-14 Pavel Roskin <proski@gnu.org>
37273
407aceb4 37274 * kern/env.c (grub_register_variable_hook): Don't copy empty
37275 string, it leaks memory. Pass "" to grub_env_set(), it should
37276 handle constant strings.
37277
e4e8eaa5 37278 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
37279 * commands/cmp.c (grub_cmd_cmp): Likewise.
37280 * kern/dl.c (grub_dl_flush_cache): Likewise.
37281 (grub_dl_load_core): Likewise.
37282 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
37283 (grub_elf64_load_phdrs): Likewise.
37284
d4e2dad3 372852008-07-13 Pavel Roskin <proski@gnu.org>
37286
37287 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
37288 between signed and unsigned.
37289 (LzmaEnc_Finish): Fix warning about an unused parameter.
37290
aa24b516 372912008-07-13 Bean <bean123ch@gmail.com>
37292
37293 * Makefile.in (enable_lzo): New rule.
37294
37295 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
37296
37297 * configure.ac (ENABLE_LZO): New option --enable-lzo.
37298
37299 * boot/i386/pc/lnxboot.S: #include <config.h>.
37300
37301 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 37302 its value according to the compression algorithm used, lzo or lzma.
aa24b516 37303
37304 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
37305 compression algorithm according to configure macro.
37306
37307 * kern/i386/pc/startup.S (codestart): Likewise.
37308
37309 * kern/i386/pc/lzma_decode.S: New file.
37310
37311 * include/grub/lib/LzFind.h: Likewise.
37312
37313 * include/grub/lib/LzHash.h: Likewise.
37314
37315 * include/grub/lib/LzmaDec.h: Likewise.
37316
37317 * include/grub/lib/LzmaEnc.h: Likewise.
37318
37319 * include/grub/lib/LzmaTypes.h: Likewise.
37320
37321 * lib/LzFind.c: Likewise.
37322
37323 * lib/LzmaDec.c: Likewise.
37324
37325 * lib/LzmaEnc.c: Likewise.
37326
4ae821ac 373272008-07-13 Bean <bean123ch@gmail.com>
37328
37329 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
37330 (grub_ext4_extent_header): New structure.
37331 (grub_ext4_extent): Likewise.
37332 (grub_ext4_extent_idx): Likewise.
37333 (grub_ext4_find_leaf): New function.
37334 (grub_ext2_read_block): Handle extents.
37335
9a745147 373362008-07-12 Robert Millan <rmh@aybabtu.com>
37337
37338 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
37339
d49a4cf6 373402008-07-11 Robert Millan <rmh@aybabtu.com>
37341
37342 * util/grub.d/40_custom.in: New file. Example on how to add custom
37343 entries to /etc/grub.d.
37344 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
37345 40_custom (implicitly, by merging all the grub.d rules).
37346
947414b4 373472008-07-11 Pavel Roskin <proski@gnu.org>
37348
0059cf6f 37349 * commands/read.c (grub_getline): Fix invalid memory access.
37350 Don't add newline to the variable value.
37351
947414b4 37352 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
37353 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
37354 (serial_hw_get_port): Check validity of the port number.
37355 (grub_cmd_serial): Check return value of serial_hw_get_port().
37356
62a02d00 373572008-07-07 Pavel Roskin <proski@gnu.org>
37358
37359 * boot/i386/pc/diskboot.S (notification_string): Replace
37360 "Loading kernel" with just "loading". This is shorter, less
37361 confusing and saves a few bytes for possible future changes.
37362
3e5581b0 373632008-07-05 Pavel Roskin <proski@gnu.org>
37364
ea387a48 37365 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
37366 size for ATAPI devices, they are undefined. Output sector
37367 number in decimal form.
37368
3e5581b0 37369 * disk/ata.c: Use named constants for status bits.
37370
fdecb8fd 373712008-07-04 Pavel Roskin <proski@gnu.org>
37372
bcd35b90 37373 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
37374 grub_addr_t before casting it to the void pointer to fix a
37375 warning. Non-addressable regions are discarded earlier.
37376 (grub_arch_modules_addr): Cast _end to grub_addr_t.
37377 * kern/i386/linuxbios/table.c: Include grub/misc.h.
37378 (check_signature): Don't shadow table_header.
37379 (grub_linuxbios_table_iterate): Cast numeric constants to
37380 grub_linuxbios_table_header_t.
37381 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
37382 grub_stop().
37383
af58ab3d 37384 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
37385 prevent warnings.
37386
1759aa57 37387 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
37388 pointer, which can cause warnings. Support 64-bit addresses.
37389
fdecb8fd 37390 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
37391 of sizeof(long). This fixes PowerPC image generation on x86_64.
37392
8516d2a8 373932008-07-04 Robert Millan <rmh@aybabtu.com>
37394
37395 This fixes a performance issue when pc & gpt partmap iterators
37396 didn't abort iteration even after our hook found what it was
fe987087 37397 looking for (often causing expensive probes of non-existent drives).
8516d2a8 37398
37399 Some callers relied on previous buggy behaviour, since they would
34c44600 37400 raise an error when their own hooks caused early abortion of its
8516d2a8 37401 iteration.
37402
37403 * kern/device.c (grub_device_open): Improve error message.
37404 * disk/lvm.c (grub_lvm_open): Likewise.
37405 * disk/raid.c (grub_raid_open): Likewise.
37406
37407 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
37408 when hook requests it, independently of grub_errno.
37409 (pc_partition_map_probe): Do not fail when find_func() caused
37410 early abortion of pc_partition_map_iterate().
37411
37412 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
37413 when hook requests it, independently of grub_errno.
37414 (gpt_partition_map_probe): Do not fail when find_func() caused
37415 early abortion of gpt_partition_map_iterate().
37416
37417 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37418 when hook requests it, independently of grub_errno. Do not fail when
37419 part_map_iterate_hook() caused early abortion of p->iterate().
37420
37421 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37422 when grub_partition_iterate() returned with non-zero.
37423
277d0de9 374242008-07-03 Pavel Roskin <proski@gnu.org>
37425
37426 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37427 like we do in grub_ata_pio_read().
37428 (grub_ata_readwrite): Always write individual sectors. Fix the
37429 sector count for the remainder.
37430 (grub_ata_write): Enable writing to ATA devices. Correctly
37431 report error for ATAPI devices.
37432
d4c9b428 374332008-07-02 Pavel Roskin <proski@gnu.org>
37434
e43fc690 37435 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37436 warning.
37437
f707af42 37438 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37439 for every read sector, we already increment it for the whole
37440 batch. This fixes reading more than 256 sectors at once.
37441
11e16b15 37442 * util/grub-editenv.c (cmd_info): Cast argument to long
37443 explicitly. ptrdiff_t reduces to int on i386.
37444
cbabfdd4 37445 * util/grub-editenv.c (main): Be specific which parameter is
37446 missing.
37447
b8fbce0a 37448 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37449 (memdisk): Make memdisk_orig_addr a pointer.
37450
c9c8e606 37451 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37452 for file offsets, use grub_off_t instead. Fix printf format
37453 warnings.
37454
ca62e598 37455 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37456 there. Real unexpected warnings should not drown in the noise
37457 about known problems.
37458
ce8d1766 37459 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37460 grub_disk_addr_t for memory addresses.
37461
00c7a56a 37462 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37463 explicitly to fix a warning.
37464
08d3ef09 37465 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37466
cb71ba20 37467 * Makefile.in (MODULE_LDFLAGS): New variable.
37468 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37469 the linker accepts --build-id=none.
37470 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37471 MODULE_LDFLAGS.
37472 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37473
d4c9b428 37474 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37475 those in Linux XFS code. Provide a way to access 64-bit parent
37476 inode.
37477 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37478 the end of struct grub_xfs_dir_header.
37479
d4156eee 374802008-07-02 Bean <bean123ch@gmail.com>
37481
37482 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37483 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37484 and GRUB_IEEE1275_FLAG_NO_ANSI.
37485
37486 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37487 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37488 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37489
37490 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37491 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37492
37493 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37494 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37495
37496 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37497 esc sequence on non ANSI terminal.
37498 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37499
37500 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37501 beginning of file.
37502
2270f77b 375032008-07-02 Bean <bean123ch@gmail.com>
37504
37505 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37506 (grub_editenv_SOURCES): New variable.
37507 (pkglib_MODULES): Add loadenv.mod.
37508 (loadenv_mod_SOURCES): New variable.
37509 (loadenv_mod_CFLAGS): Likewise.
37510 (loadenv_mod_LDFLAGS): Likewise.
37511
37512 * include/grub/envblk.h: New file.
37513
37514 * util/envblk.c: New file.
37515
37516 * util/grub-editenv.c: New file.
37517
37518 * commands/loadenv.c: New file.
37519
0e9e51ec 375202008-07-01 Pavel Roskin <proski@gnu.org>
37521
d89b7634 37522 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37523 not unsigned char. This fixes warnings and is consistent with
37524 other tags.
37525
bf1835b1 37526 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37527
8222a04b 37528 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37529
6a42d99d 37530 * term/tparm.c (analyze): Always set *popcount.
37531
10b159d1 37532 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37533 cast to fix a warning.
37534
b8789f6c 37535 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37536 cast to suppress a warning.
37537
29d7e38a 37538 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37539 grub_fshelp_read_file() expects.
37540
f341f669 37541 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37542 write uuid as a 32-bit value in CPU byte order, so declare and
37543 use it as such.
37544
0e9e51ec 37545 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37546 long if the format specifier expects it.
37547 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37548 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37549 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37550 long to fix a warning.
37551 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37552 grub_dprintf() arguments to fix warnings.
37553
3aefa857 375542008-06-30 Pavel Roskin <proski@gnu.org>
37555
56c7668b 37556 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37557 install_bsd_part immediately before core.img is embedded or
37558 modified on disk. This fixes core.img verification if core.img
37559 cannot be embedded.
37560
3aefa857 37561 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37562 core_path to calculate the blocklist.
37563 Patch from Javier Martín <lordhabbit@gmail.com>
37564
5444088d 375652008-06-29 Robert Millan <rmh@aybabtu.com>
37566
37567 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37568 block to disk block.
37569 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37570 Patch from Niels Böhm <bitbucket@arcor.de>
37571
674835c8 375722008-06-29 Robert Millan <rmh@aybabtu.com>
37573
37574 * util/update-grub_lib.in (font_path): Search for fonts in
37575 /boot/grub first, which is more likely to be readable (we aren't
37576 deciding where fonts live, just looking for them).
37577
f527dbc8 375782008-06-26 Pavel Roskin <proski@gnu.org>
37579
6c2d8df6 37580 * util/biosdisk.c (read_device_map): Don't leave dead map
37581 entries for devices failing stat() check.
37582
f527dbc8 37583 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37584 core_path_dev for the core.img path on the target device.
37585
aebe3d13 375862008-06-26 Robert Millan <rmh@aybabtu.com>
37587
37588 * disk/fs_uuid.c: New file.
37589 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37590 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37591 (fs_uuid_mod_LDFLAGS): New variables.
37592 * include/grub/disk.h (grub_disk_dev_id): Add
37593 `GRUB_DISK_DEVICE_UUID_ID'.
37594 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37595 implement iterate().
37596
37aaf354 375972008-06-26 Robert Millan <rmh@aybabtu.com>
37598
37599 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37600 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37601 Linux image includes no initrd.
37602
25ff262a 376032008-06-21 Javier Martín <lordhabbit@gmail.com>
37604
37605 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37606 call to resolve the core image location that effectively appended the
37607 name twice.
37608
76a2bd44 376092008-06-21 Robert Millan <rmh@aybabtu.com>
37610
37611 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37612 call from here ...
37613
37614 * util/grub.d/10_hurd.in: ... to here ...
37615 * util/grub.d/10_linux.in: ... and here.
37616
650e1c79 376172008-06-19 Robert Millan <rmh@aybabtu.com>
37618
fe987087 37619 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 37620 after it has been set by grub_machine_set_prefix().
37621
6ce63911 376222008-06-19 Robert Millan <rmh@aybabtu.com>
37623
37624 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37625 search result when not saving to variable, not the other way around.
37626 When saving to variable, abort iteration as soon as a match is found.
37627
73940cec 376282008-06-19 Robert Millan <rmh@aybabtu.com>
37629
37630 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37631 check for partition that provides /boot/grub. Its logic is flawed,
37632 as it prevents prepare_grub_to_access_device() from being called
37633 multiple times.
37634
3c62a39d 376352008-06-19 Robert Millan <rmh@aybabtu.com>
37636
37637 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37638 "insmod" command directly when abstraction modules are needed,
fe987087 37639 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 37640 since it had already been processed).
37641
47395a42 376422008-06-19 Pavel Roskin <proski@gnu.org>
37643
37644 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37645 changed. This is needed in case GRUB_LIBDIR changes.
37646 * conf/i386-ieee1275.rmk: Likewise.
37647 * conf/i386-linuxbios.rmk: Likewise.
37648 * conf/i386-pc.rmk: Likewise.
37649 * conf/powerpc-ieee1275.rmk: Likewise.
37650
a145ac2d 376512008-06-18 Pavel Roskin <proski@gnu.org>
37652
37653 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37654 kernel_elf_symlist.c to symlist.c for consistency with other
37655 architectures. Update all users.
37656 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37657
7847c51e 376582008-06-18 Robert Millan <rmh@aybabtu.com>
37659
37660 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37661 it in prefix.
37662
37663 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37664 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37665 a RAID device, run setup() for all members independently on whether
37666 LVM abstraction is being used.
37667 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37668 If grub-mkimage has set `*install_dos_part == -2', don't override this
37669 value.
37670 Perform *install_dos_part adjustments independently on whether
37671 we're embedding or not.
37672 Clarify error message when image is too big for embedding.
37673 Remove duplicate *install_dos_part stanza.
37674
b23e5644 376752008-06-17 Robert Millan <rmh@aybabtu.com>
37676
37677 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37678 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37679 variables.
37680 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37681 values in grub_ofconsole_normal_color and
37682 grub_ofconsole_highlight_color (they're not directly related to
37683 background and foreground).
37684 (grub_ofconsole_setcolorstate): Extract background and foreground
37685 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37686
0aac2f79 376872008-06-17 Robert Millan <rmh@aybabtu.com>
37688
37689 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37690 /boot/grub for the check in last commit, not /boot (they could be
37691 different partitions).
37692
3cca7ef3 376932008-06-16 Robert Millan <rmh@aybabtu.com>
37694
37695 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37696 asked to setup access for the same partition that provides /boot,
37697 don't bother using UUIDs since our root already has the value we
37698 want.
37699
347396d8 377002008-06-16 Robert Millan <rmh@aybabtu.com>
37701
37702 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37703 I2O devices.
37704 Patch from Sven Mueller <sven@debian.org>.
37705
991477f8 377062008-06-16 Robert Millan <rmh@aybabtu.com>
37707
37708 * util/update-grub.in: Check for $EUID instead of $UID.
37709 Reported by Vincent Zweije.
37710
d31a32a1 377112008-06-16 Bean <bean123ch@gmail.com>
37712
fe987087 37713 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 37714 (grub_ext2_read_block): Likewise.
37715 (grub_ext2_read_inode): Likewise.
37716 (grub_ext2_mount): Likewise.
37717 (grub_ext2_close): Likewise.
37718 (grub_ext3_get_journal): Removed.
37719
fe987087 37720 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 37721 (grub_reiserfs_read_symlink): Likewise.
37722 (grub_reiserfs_mount): Likewise.
37723 (grub_reiserfs_open): Likewise.
37724 (grub_reiserfs_read): Likewise.
37725 (grub_reiserfs_close): Likewise.
37726 (grub_reiserfs_get_journal): Removed.
37727
37728 * fs/fshelp.c (grub_fshelp_read): Removed.
37729 (grub_fshelp_map_block): Likewise.
37730
37731 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37732 (grub_fshelp_journal): Likewise.
37733 (grub_fshelp_read): Likewise.
37734 (grub_fshelp_map_block): Likewise.
37735
3540a760 377362008-06-16 Pavel Roskin <proski@gnu.org>
37737
37738 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37739 floating point anymore.
37740 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37741
95614c84 377422008-06-15 Pavel Roskin <proski@gnu.org>
37743
37744 * commands/ls.c (grub_ls_list_files): Use integer calculations
37745 for human readable format, avoid floating point use.
37746 * kern/misc.c (grub_ftoa): Remove.
37747 (grub_vsprintf): Remove floating point support.
37748
50465dd6 377492008-06-15 Robert Millan <rmh@aybabtu.com>
37750
fe6b695a 37751 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 37752 devices.
37753 Reported by Max Vozeler.
37754
a9207284 377552008-06-15 Robert Millan <rmh@aybabtu.com>
37756
37757 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37758 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37759 skipped later.
37760 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37761 the beginning of the prefix.
37762
37763 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37764 It is assumed that if we have a memdisk, grub-mkimage has set
37765 grub_prefix to include the "(memdisk)" drive in it.
37766
a7cbd45a 377672008-06-15 Robert Millan <rmh@aybabtu.com>
37768
37769 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37770 Initialize keyboard controller after registering the terminal, so that
37771 grub_printf() can be called from grub_keyboard_controller_init().
37772
21cf716a 377732008-06-15 Robert Millan <rmh@aybabtu.com>
37774
37775 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37776 extent-btree which is written as big endian on disk.
37777 Reported by Alain Greppin <al@chilibi.org>.
37778
23a64d8e 377792008-06-14 Robert Millan <rmh@aybabtu.com>
37780
37781 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37782 * util/i386/pc/grub-install.in (modules): Likewise.
37783
d687651c 377842008-06-13 Pavel Roskin <proski@gnu.org>
37785
37786 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37787
dfe9ddd4 377882008-06-13 Bean <bean123ch@gmail.com>
37789
37790 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37791
37792 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37793
37794 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37795 to indicate sparse block.
37796
16ae7781 377972008-06-12 Pavel Roskin <proski@gnu.org>
37798
e6d1a308 37799 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37800 number, grub_fshelp_read() does it for us.
37801
16ae7781 37802 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37803 linear disk read with journal translation.
37804 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37805 * include/grub/fshelp.h: Declare grub_fshelp_read().
37806
40fd3a2b 378072008-06-09 Pavel Roskin <proski@gnu.org>
37808
37809 * fs/minix.c (grub_minix_mount): Handle error reading
37810 superblock.
37811
f5679726 378122008-06-08 Robert Millan <rmh@aybabtu.com>
37813
37814 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37815 don't append the RAID prefix afterwards.
37816 Reported by Clint Adams.
37817
ce525529 378182008-06-08 Robert Millan <rmh@aybabtu.com>
37819
37820 Based on description from Pavel:
37821 * kern/disk.c (grub_disk_check_range): Rename to ...
37822 (grub_disk_adjust_range): ... this. Add a comment explaining the
37823 tasks performed by this function.
37824
ad4936a0 378252008-06-08 Robert Millan <rmh@aybabtu.com>
37826
37827 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37828 `num_serial' (for consistency with other variables).
37829 (struct grub_ntfs_data): Add `uuid' member.
37830 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37831 (grub_ntfs_uuid): New function.
37832 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37833
dc20b0f9 378342008-06-07 Pavel Roskin <proski@gnu.org>
37835
37836 * util/biosdisk.c (open_device): Revert last change to the
37837 function, it broke installation. The sector needs to be
37838 different dependent on which device is opened.
37839
c5e3cfba 378402008-06-06 Robert Millan <rmh@aybabtu.com>
37841
37842 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37843 rest of GRUB, and breakage doesn't happen if its value were modified.
37844
37845 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37846 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37847 a constant (same value).
37848 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37849 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37850
26a1f8c4 378512008-06-06 Robert Millan <rmh@aybabtu.com>
37852
37853 * util/biosdisk.c (open_device): Do not modify sector offset when
37854 accessing a partition. kern/disk.c already handles this for us.
37855
25d6b327 378562008-06-06 Robert Millan <rmh@aybabtu.com>
37857
37858 * util/grub-emu.c (grub_machine_init): Move code in this function from
37859 here ...
37860 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37861 segfault in case grub_printf() is called).
37862
37863 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37864 grub_probe. Update all users not to explicitly add it again.
37865 (grub_device): New variable; contains corresponding device for grubdir.
37866 (fs_module, partmap_module, devabstraction_module): Pass
37867 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37868 every time.
37869
9ece62fb 378702008-06-05 Robert Millan <rmh@aybabtu.com>
37871
37872 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37873 is found, print it (same layout as with labels).
37874
1ad36d37 378752008-06-04 Robert Millan <rmh@aybabtu.com>
37876
37877 * util/biosdisk.c (get_drive): Rename to ...
37878 (find_grub_drive): ... this. Update all users.
37879
37880 (get_os_disk): Rename to ...
37881 (convert_system_partition_to_system_disk): ... this. Update all users.
37882
37883 (find_drive): Rename to ...
37884 (find_system_device): ... this. Update all users.
37885
e6a30859 378862008-06-04 Robert Millan <rmh@aybabtu.com>
37887
37888 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37889 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37890 (make_device_map): Likewise.
37891
00c108a4 378922008-06-01 Robert Millan <rmh@aybabtu.com>
37893
37894 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37895 before dereferencing it.
37896
37897 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37898 union with fat12/fat16-specific ones. Add some new fields, including
37899 `num_serial' for both versions.
37900 (struct grub_fat_data): Add `uuid' member.
37901 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37902 names. Initialize `data->uuid' using `num_serial'.
37903 (grub_fat_uuid): New function.
37904 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37905
37906 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37907 (grub_reiserfs_uuid): New function.
37908 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37909 member.
37910
37911 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37912 (grub_xfs_uuid): New function.
37913 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37914
1385c5bb 379152008-06-01 Robert Millan <rmh@aybabtu.com>
37916
37917 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37918 code that is backward compatible with pre-uuid search command.
37919
c682dfd7 379202008-05-31 Robert Millan <rmh@aybabtu.com>
37921
37922 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37923 floppies after everything else, to ensure floppy drive isn't accessed
37924 unnecessarily (patch from Bean).
37925
b7db5d47 379262008-05-31 Robert Millan <rmh@aybabtu.com>
37927
37928 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37929 not print device names when we were asked to set a variable.
37930
6e037aa9 379312008-05-31 Robert Millan <rmh@aybabtu.com>
37932
37933 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37934 using "cursor-on" and "cursor-off" commands (understood at least by
37935 the Open Firmware flavour on OLPC).
37936
41305bc8 379372008-05-31 Michael Gorven <michael@gorven.za.net>
37938
37939 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37940 on and off sequences.
37941
69ba137e 379422008-05-31 Robert Millan <rmh@aybabtu.com>
37943
37944 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37945 * util/update-grub.in: Likewise.
37946
520ae21b 379472008-05-30 Pavel Roskin <proski@gnu.org>
37948
37949 * util/biosdisk.c (linux_find_partition): Simplify logic and
37950 make the code more universal. Keep special processing for
37951 devfs, but use a simple rule for all other devices. If the
37952 device ends with a number, append 'p' and the partition number.
37953 Otherwise, append only the partition number.
37954
5786569b 379552008-05-30 Robert Millan <rmh@aybabtu.com>
37956
37957 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37958 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37959 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37960 the `root' parameter to Linux.
37961
51500452 379622008-05-30 Robert Millan <rmh@aybabtu.com>
37963
37964 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37965 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37966 --fs_uuid with --fs-uuid.
37967 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37968 all filesystems support them).
37969
811d3878 379702008-05-30 Robert Millan <rmh@aybabtu.com>
37971
37972 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 37973 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 37974
cab63c95 379752008-05-30 Robert Millan <rmh@aybabtu.com>
37976
37977 * util/grub.d/00_header.in: Remove obsolete comment referencing
37978 convert_system_path_to_grub_path().
37979 * util/update-grub.in: Likewise.
37980 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37981 (convert_system_path_to_grub_path): Add a warning message explaining
37982 that this function is deprecated. Rely on is_path_readable_by_grub()
37983 for the readability checks.
37984 (font_path): Use is_path_readable_by_grub() for the readability
37985 check rather than convert_system_path_to_grub_path().
37986
972e2f7a 379872008-05-30 Robert Millan <rmh@aybabtu.com>
37988
37989 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37990 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37991 converting it first.
37992 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37993 grub.cfg for access to font file, and afterwards call it again to set
37994 the root device.
37995
62191274 379962008-05-30 Robert Millan <rmh@aybabtu.com>
37997
37998 * commands/search.c (options): Add --fs_uuid option.
37999 (search_fs_uuid): New function.
38000 (grub_cmd_search): Fix --set argument passing.
38001 Use search_fs_uuid() when requested via --fs_uuid.
38002 (grub_search_init): Update help message.
38003 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
38004 and redeclare it as an array of 16-bit words.
38005 (grub_ext2_uuid): New function.
38006 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
38007 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
38008 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
38009 (GRUB_DEVICE_BOOT_UUID): New variables.
38010 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
38011 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
38012 whenever possible.
38013 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
38014 just assume `root' variable has the right value.
38015 * util/grub.d/10_linux.in: Likewise.
38016 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
38017 via PRINT_FS_UUID.
38018 (main): Recognise `-t fs_uuid' argument.
38019
01b73ec8 380202008-05-30 Robert Millan <rmh@aybabtu.com>
38021
38022 * util/biosdisk.c (map): Redefine structure to hold information
38023 about GRUB drive name.
fe6b695a 38024 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 38025 drive names.
38026 (call_hook): Remove.
38027 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
38028 member. Assume drive has partitions.
38029 (grub_util_biosdisk_open): Access device names via `.device' struct
38030 member.
38031 (open_device): Likewise.
38032 (find_drive): Likewise.
38033 (read_device_map): Adjust map[] usage to match the new struct
38034 definition. Don't check for duplicates (still possible, but not cheap
38035 anymore).
38036 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
38037 (make_device_name): Remove assumption of BIOS-like drive names.
38038
22f16596 380392008-05-30 Pavel Roskin <proski@gnu.org>
38040
38041 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
38042 compiling execute.c doesn't need grub_script.tab.h anymore.
38043 (normal/command.c_DEPENDENCIES): Likewise.
38044 (normal/function.c_DEPENDENCIES): Likewise.
38045 * conf/i386-ieee1275.rmk: Likewise.
38046 * conf/i386-linuxbios.rmk: Likewise.
38047 * conf/i386-pc.rmk: Likewise.
38048 * conf/powerpc-ieee1275.rmk: Likewise.
38049 * conf/sparc64-ieee1275.rmk: Likewise.
38050
528ad8f2 380512008-05-29 Pavel Roskin <proski@gnu.org>
38052
d1dff95d 38053 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
38054 when scanning metadata for volume group name.
38055
528ad8f2 38056 * include/grub/script.h: Don't include grub_script.tab.h. It's
38057 a generated file, which may only be included from the files with
38058 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
38059 use union YYSTYPE, as the later allows forward declaration.
38060 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
38061
47248e08 380622008-05-29 Robert Millan <rmh@aybabtu.com>
38063
38064 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
38065 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
38066 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
38067 (grub_console_checkkey): Add grub_dprintf() call to report unknown
38068 scan codes.
38069
ee632529 380702008-05-29 Robert Millan <rmh@aybabtu.com>
38071
38072 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
38073 control key combinations.
38074
eee96e08 380752008-05-29 Robert Millan <rmh@aybabtu.com>
38076
38077 * util/powerpc/ieee1275/grub-install.in: Move from here ...
38078 * util/ieee1275/grub-install.in: ... to here.
38079 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
38080 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
38081 (grub_install_SOURCES): Likewise.
38082
da9a6a94 380832008-05-29 Robert Millan <rmh@aybabtu.com>
38084
38085 * fs/affs.c: Update copyright year.
38086 * fs/ext2.c: Likewise.
38087 * fs/fshelp.c: Likewise.
38088 * fs/hfsplus.c: Likewise.
38089 * fs/ntfs.c: Likewise.
38090 * fs/xfs.c: Likewise.
38091 * include/grub/fshelp.h: Likewise.
38092 * util/grub-mkdevicemap.c: Likewise.
38093
12e65f3a 380942008-05-28 Robert Millan <rmh@aybabtu.com>
38095
38096 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
38097 might need to be fatfs to support some firmware implementations
38098 (e.g. OFW or EFI).
38099
23023641 381002008-05-28 Robert Millan <rmh@aybabtu.com>
38101
38102 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
38103 devices.
38104 * util/grub-mkdevicemap.c (get_mmc_disk_name)
38105 (make_device_map): Likewise.
38106
887d2619 381072008-05-20 Bean <bean123ch@gmail.com>
38108
38109 * fs/fshelp.c (grub_fshelp_map_block): New function.
38110 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
38111 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
38112
38113 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
38114 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
38115 (grub_fshelp_journal): New structure.
38116 (grub_fshelp_map_block): New function prototype.
38117 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
38118 (grub_fshelp_map_block): Likewise.
38119
38120 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
38121 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
38122 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
38123 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
38124 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
38125 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
38126 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
38127 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
38128 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
38129 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
38130 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
38131 (grub_ext2_sblock): New members for journal support.
38132 (grub_ext3_journal_header): New structure.
38133 (grub_ext3_journal_revoke_header): Likewise.
38134 (grub_ext3_journal_block_tag): Likewise.
38135 (grub_ext3_journal_sblock): Likewise.
38136 (grub_fshelp_node): New members logfile and journal.
38137 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
38138 grub_fshelp_map_block to get real block number.
38139 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
38140 number.
38141 (grub_ext2_read_inode): Likewise.
38142 (grub_ext3_get_journal): New function.
38143 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
38144 (grub_ext2_close): Release memory used by journal.
38145
38146 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
38147 (REISERFS_MAGIC_DESC_BLOCK): New macro.
38148 (grub_reiserfs_transaction_header): Renamed to
38149 grub_reiserfs_description_block, replace field data with real_blocks.
38150 (grub_reiserfs_commit_block): New structure.
38151 (grub_reiserfs_data): New member journal.
38152 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
38153 number.
38154 (grub_reiserfs_read_symlink): Likewise.
38155 (grub_reiserfs_iterate_dir): Likewise.
38156 (grub_reiserfs_open): Likewise.
38157 (grub_reiserfs_read): Likewise.
38158 (grub_reiserfs_get_journal): New function.
38159 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
38160 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
38161 using grub_reiserfs_get_journal.
38162 (grub_reiserfs_close): Release memory used by journal.
38163
38164 * fs/affs.c (grub_affs_read_block): Change block type to
38165 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
38166
38167 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
38168
38169 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
38170
38171 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
38172
38173 * fs/udf.c (grub_udf_read_block): Change block type to
38174 grub_disk_addr_t. Use type cast to avoid warning.
38175
38176 * fs/xfs.c (grub_xfs_read_block): Likewise.
38177
b7c6bed5 381782008-05-16 Christian Franke <franke@computer.org>
38179
38180 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
38181 to ensure that break with ESC will always work.
38182 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
38183 Remove ESC from keyboard queue.
38184
eedf167f 381852008-05-16 Christian Franke <franke@computer.org>
38186
38187 * util/biosdisk.c: [__CYGWIN__] Add includes.
38188 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
38189 (get_os_disk): Move variable declarations to OS specific
38190 parts to avoid warning.
38191 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
38192 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
38193 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
38194 Cygwin.
38195 * util/getroot.c: [__CYGWIN__] Add includes.
38196 (strip_extra_slashes): Fix "/" case.
38197 [__CYGWIN__] (get_win32_path): New function.
38198 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
38199 [__CYGWIN__] (find_root_device): Disable.
38200 [__CYGWIN__] (get_bootsec_serial): New function.
38201 [__CYGWIN__] (find_cygwin_root_device): Likewise.
38202 [__linux__] (grub_guess_root_device): Add early returns to simplify
38203 structure.
38204 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
38205 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
38206 check for Linux only.
38207
a079699e 382082008-05-15 Bean <bean123ch@gmail.com>
38209
38210 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
38211 keyboard hang problem in apple's intel mac.
38212
1cf4059a 382132008-05-09 Robert Millan <rmh@aybabtu.com>
38214
38215 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
38216 devices.
38217 * util/grub-mkdevicemap.c (get_virtio_disk_name)
38218 (make_device_map): Likewise.
38219 Reported by Aurelien Jarno <aurel32@debian.org>
38220
ed759390 382212008-05-07 Ian Campbell <ijc@hellion.org.uk>
38222
38223 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
38224 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
38225 (make_device_map): Output entries for xvd type disks.
38226
b56c4eaa 382272008-05-07 Robert Millan <rmh@aybabtu.com>
38228
38229 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
38230 devices.
38231 * util/grub-mkdevicemap.c (get_cciss_disk_name)
38232 (make_device_map): Likewise.
38233 Reported by Roland Dreier <rdreier@cisco.com>
38234
7f8866ed 382352008-05-07 Robert Millan <rmh@aybabtu.com>
38236
38237 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
38238 grub_strstr() call. Correct a few mistakes in failure path handling.
38239
b0346e0f 382402008-05-06 Robert Millan <rmh@aybabtu.com>
38241
38242 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38243 Do not print a trailing slash (therefore, the root directory is an
38244 empty string).
38245 (convert_system_path_to_grub_path): Do not remove trailing slash
38246 from make_system_path_relative_to_its_root() output.
38247
38248 * util/i386/pc/grub-install.in: Add trailing slash to output from
38249 make_system_path_relative_to_its_root().
38250
6cf12cbd 382512008-05-06 Robert Millan <rmh@aybabtu.com>
38252
38253 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
38254 ensures that output lines aren't intermangled with those sent to
38255 stderr (via grub_util_info()).
38256 * util/grub-probe.c (grub_refresh): Likewise.
38257 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
38258
0fbb3117 382592008-05-05 Christian Franke <franke@computer.org>
38260
38261 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
38262 Add Cygwin device names.
38263 (get_ide_disk_name) [__CYGWIN__]: Likewise.
38264 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
38265 (check_device): Return error instead of success on empty name.
38266 (make_device_map): Move label inside linux specific code to
38267 prevent compiler warning.
38268
8124cdb7 382692008-04-30 Robert Millan <rmh@aybabtu.com>
38270
38271 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
38272 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
38273 first boot option.
38274 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
38275
094c01d0 382762008-04-29 Robert Millan <rmh@aybabtu.com>
38277
38278 * docs/grub.cfg: New file (example GRUB configuration).
38279
f4b1fc02 382802008-04-26 Robert Millan <rmh@aybabtu.com>
38281
329ce2a5 38282 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
38283 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
38284 and `disk/ieee1275/nand.c'.
f4b1fc02 38285
25f16ec1 382862008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 38287
25f16ec1 38288 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
38289 i386-linuxbios.
38290
38291 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
38292 change the buffer size to 4096 for cdrom device.
38293
38294 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
38295 and nand.mod.
38296 (_linux_mod_SOURCES): New variable.
38297 (_linux_mod_CFLAGS): Likewise.
38298 (_linux_mod_LDFLAGS): Likewise.
38299 (linux_mod_SOURCES): Likewise.
38300 (linux_mod_CFLAGS): Likewise.
38301 (linux_mod_LDFLAGS): Likewise.
38302 (nand_mod_SOURCES): Likewise.
38303 (nand_mod_CFLAGS): Likewise.
38304 (nand_mod_LDFLAGS): Likewise.
38305
38306 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
38307 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
38308 type property. (nand device in olpc don't have this property)
38309
38310 * include/grub/disk.h (grub_disk_dev_id): New macro
38311 GRUB_DISK_DEVICE_NAND_ID.
38312
38313 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
38314 function prototype.
38315 (grub_rescue_cmd_initrd): Likewise.
38316
38317 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
38318 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
38319 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 38320
25f16ec1 38321 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
38322 GRUB_MACHINE_IEEE1275 is defined.
38323
38324 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
38325 Use NESTED_FUNC_ATTR attribute on the hook parameter.
38326
38327 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
38328 on nested function heap_init.
38329 (grub_upper_mem): New variable for i386-ieee1275.
38330 (grub_get_extended_memory): New function for i386-ieee1275.
38331 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
38332
38333 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
38334 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
38335 property.
f19dbdb7 38336
25f16ec1 38337 * loader/i386/ieee1275/linux.c: New file.
38338
38339 * loader/i386/ieee1275/linux_normal.c: New file.
38340
38341 * disk/ieee1275/nand.c: New file.
38342
e89d61e9 383432008-04-18 Thomas Schwinge <tschwinge@gnu.org>
38344
38345 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
38346 value.
38347 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
38348
602566f6 383492008-04-18 Robert Millan <rmh@aybabtu.com>
38350
38351 Restructures early code path on ieee1275 to unify grub_main() as
38352 the first C function that is executed in every platform.
38353
38354 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
38355 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
38356 cmain().
38357 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
38358 * kern/ieee1275/cmain.c (cmain): Rename to ...
38359 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
38360 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
38361 at the beginning.
38362
57490c2b 383632008-04-18 Robert Millan <rmh@aybabtu.com>
38364
38365 * util/update-grub.in: Fix syntax error when setting
38366 `GRUB_PRELOAD_MODULES'.
38367 Reported by Stephane Chazelas <stephane@artesyncp.com>
38368
1977517d 383692008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
38370
38371 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
38372 section into account, newer toolchains generate unique build ids
38373 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 38374 we want build ids to be preserved
1977517d 38375 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
38376 far from other sections don't cause the raw binary images grow
38377 size
38378
bfb1f1a2 383792008-04-15 Robert Millan <rmh@aybabtu.com>
38380
38381 * disk/lvm.c: Update copyright year.
38382 * kern/misc.c: Likewise.
38383
01979850 383842008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38385
38386 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 38387 there is no memory left for physical volume name.
01979850 38388
0a1150e2 383892008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38390
38391 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
38392 volume name mapping to support bigger than 9 character names properly.
38393
82ead3fe 383942008-04-13 Robert Millan <rmh@aybabtu.com>
38395
38396 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
38397 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
38398
e54a72f5 383992008-04-13 Christian Franke <franke@computer.org>
38400
38401 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
38402 to create a floppy emulation boot CD when non emulation mode
38403 does not work.
38404 Enable Joliet CD filesystem extension.
38405
9fe86034 384062008-04-13 Robert Millan <rmh@aybabtu.com>
38407
38408 * kern/misc.c (grub_strncat): Fix off-by-one error.
38409 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
38410
38411 * kern/env.c (grub_env_context_close): Clear current context, not
38412 previous one.
38413 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38414
38415 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38416
7ceeee39 384172008-04-13 Robert Millan <rmh@aybabtu.com>
38418
38419 Improve robustness when handling LVM.
38420
38421 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 38422 (and leave `*p' unmodified).
7ceeee39 38423 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38424 through it.
38425 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38426 iterating through it.
38427 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38428 through it.
fe6b695a 38429 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 38430 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38431 Don't assume `vg->pvs != NULL' when iterating through it.
38432
58cd3d85 384332008-04-13 Robert Millan <rmh@aybabtu.com>
38434
38435 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38436 * genmk.rb (partmap): New variable.
38437 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38438 (#{partmap}): New target rule.
38439 * genpartmaplist.sh: New file.
38440 * Makefile.in (pkglib_DATA): Add partmap.lst.
38441 (partmap.lst): New target rule.
38442 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38443 modules (including all partition maps), instead of preloading them.
38444
78b51059 384452007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38446
38447 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38448 `linux-boot-prober' (if installed) to detect other operating
38449 systems which are installed on the computer and add them to
38450 the boot menu.
38451 * conf/common.rmk: Build and install 30_os-prober.
38452
a91627b4 384532008-04-12 Robert Millan <rmh@aybabtu.com>
38454
38455 * kern/powerpc/ieee1275/init.c: Move from here ...
38456 * kern/ieee1275/init.c: ... to here. Update all users.
38457
38458 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38459 * kern/ieee1275/cmain.c: ... to here. Update all users.
38460
38461 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38462 * kern/ieee1275/openfw.c: ... to here. Update all users.
38463
38464 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38465 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38466
322562ea 384672008-04-10 Pavel Roskin <proski@gnu.org>
38468
38469 * configure.ac: Always use "_cv_" in cache variables for
38470 compatibility with Autoconf 2.62.
38471
a02a73c5 384722008-04-07 Robert Millan <rmh@aybabtu.com>
38473
38474 Revert grub/machine/init.h addition by Pavel (since it breaks on
38475 i386-ieee1275 and others):
38476 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38477 * util/powerpc/ieee1275/misc.c: Likewise.
38478
25c024b1 384792008-04-07 Robert Millan <rmh@aybabtu.com>
38480
38481 * util/grub-probe.c (probe): Improve error message.
38482
3cbd2f98 384832008-04-07 Robert Millan <rmh@aybabtu.com>
38484
38485 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38486 (this prevents the presence of a bogus entry from ruining the whole
38487 thing).
38488
87a297bf 384892008-04-06 Pavel Roskin <proski@gnu.org>
38490
36747a62 38491 * util/biosdisk.c: Include grub/util/biosdisk.h.
38492 * util/grub-fstest.c (execute_command): Make static.
38493 * util/grub-mkdevicemap.c (check_device): Likewise.
38494 * util/i386/pc/misc.c: Include grub/machine/init.h.
38495 * util/powerpc/ieee1275/misc.c: Likewise.
38496 * util/lvm.c: Include grub/util/lvm.h.
38497 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38498 grub/cache.h.
38499 * util/raid.c: Include grub/util/raid.h.
38500 (grub_util_getdiskname): Make static.
38501
87a297bf 38502 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38503 grub_hostfs_fini(), as they are called from grub_init_all() and
38504 grub_fini_all() respectively. This fixes an infinite loop in
38505 grub-fstest due to double registration of hostfs.
38506 Reported by Christian Franke <Christian.Franke@t-online.de>
38507
f6ce7629 385082008-04-05 Pavel Roskin <proski@gnu.org>
38509
38510 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38511 all 8 functions. Otherwise, probe function 0 only.
38512
070e49e4 385132008-04-04 Pavel Roskin <proski@gnu.org>
38514
8b088a4c 38515 * commands/lspci.c (grub_lspci_iter): Print the bus number
38516 correctly.
38517
4f657021 38518 * commands/lspci.c (grub_pci_classes): Fix typos.
38519 (grub_lspci_iter): Don't print func twice. Print vendor ID
38520 before device ID, as it's normally done.
38521
070e49e4 38522 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38523 Fix signedness warnings.
38524 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38525 Likewise.
38526 * util/ieee1275/get_disk_name.c: Include config.h so that
38527 _GNU_SOURCE is defined and getline() is declared. Mark an
38528 unused argument as such. Fix a signedness warning.
38529
ba7328dc 385302008-04-02 Pavel Roskin <proski@gnu.org>
38531
26887f22 38532 * genkernsyms.sh.in: Use more robust assignments for CC and
38533 srcdir. Quote srcdir.
38534 * gensymlist.sh.in: Likewise. Assert at the compile time that
38535 the symbol table is not empty.
38536
ba7328dc 38537 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38538 * fs/cpio.c (grub_cpio_read): Likewise.
38539
0f582c6b 385402008-04-01 Pavel Roskin <proski@gnu.org>
38541
4b6e1995 38542 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38543 * disk/host.c (grub_host_open): Likewise.
38544 * disk/loopback.c (grub_loopback_open): Likewise.
38545 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38546 disk->id as in disk/host.c, not a multi-character constant.
38547
828a2768 38548 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38549 later is obsolete, potentially dangerous and sets a bad example.
38550 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38551 * util/misc.c (grub_util_get_image_size): Likewise.
38552
2bb4fb47 38553 * disk/loopback.c (options): Improve help for "--partitions".
38554
0f582c6b 38555 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38556 options to align them with the short options, e.g. "echo -e".
38557
a33224e0 385582008-03-31 Bean <bean123ch@gmail.com>
38559
38560 * video/reader/png.c (grub_png_data): New member is_16bit and
38561 image_data.
38562 (grub_png_decode_image_header): Detect 16 bit png image.
38563 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38564 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38565 (grub_video_reader_png): Release memory occupied by image_data.
38566
38567 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38568 4096 bytes.
38569 (grub_nfs_mount): Skip the test for sector per cluster.
38570
38571 * include/grub/ntfs.h (MAX_SPC): Removed.
38572
86cb4f54 385732008-03-31 Bean <bean123ch@gmail.com>
38574
38575 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38576 (grub_probe_SOURCES): Add fs/afs.c.
38577 (grub_fstest_SOURCES): Likewise.
38578 (afs_mod_SOURCES): New variable.
38579 (afs_mod_CFLAGS): Likewise.
38580 (afs_mod_LDFLAGS): Likewise.
38581
38582 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38583 (grub_emu_SOURCES): Likewise.
38584
38585 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38586
38587 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38588
38589 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38590
38591 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38592
38593 * fs/afs.c: New file.
38594
17c74c21 385952008-03-30 Pavel Roskin <proski@gnu.org>
38596
4cb68e89 38597 * disk/host.c: Include grub/misc.h to fix a warning.
38598 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38599 warnings about implicit declarations.
38600
8790bb04 38601 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38602 variable.
38603 * include/grub/i386/loader.h: Change declaration of
38604 grub_linux_boot() to match what grub_loader_set() expects.
38605 * util/getroot.c (grub_guess_root_device): Return const char* to
38606 fix a warning.
38607 * util/grub-probe.c (probe): Fix a warning about uninitialized
38608 abstraction_name variable.
38609 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38610 second argument as unused to fix a warning.
38611
9a3f3296 38612 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38613 missing grub_error() call.
38614
0ecef90d 38615 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38616 2.60 and newer uses it to define datadir.
38617
0bf6d401 38618 * commands/sleep.c: Fix warning about implicit declaration.
38619 * disk/memdisk.c: Likewise.
38620 * loader/aout.c: Likewise.
38621 * loader/i386/bsd_normal.c: Likewise.
38622 * util/grub-probe.c: Likewise.
38623
7cdacf97 38624 * commands/i386/cpuid.c (has_longmode): Make static.
38625 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38626 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38627
17c74c21 38628 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38629 GDT. This is more robust, as %ds can change.
38630 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38631 calling real_to_prot().
38632 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38633
80a3e68b 386342008-03-28 Pavel Roskin <proski@gnu.org>
38635
38636 * kern/i386/pc/startup.S: Assert that uncompressed functions
38637 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38638 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38639 code, as they push parts of the code (error handlers) beyond
38640 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38641 code as correctness and size.
38642
77bcd272 386432008-03-28 Pavel Roskin <proski@gnu.org>
38644
38645 * kern/i386/pc/startup.S
38646 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38647 data block address to the real mode, keep offset minimal. This
38648 works around a bug in AWARD BIOS on old Athlon systems, which
38649 makes CD detection hang.
38650
c5dfd43b 386512008-03-26 Pavel Roskin <proski@gnu.org>
38652
38653 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38654 const.
38655 * include/grub/normal.h: Add grub_parse_color_name_pair()
38656 declaration.
38657
bf962df2 386582008-03-24 Bean <bean123ch@gmail.com>
38659
38660 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38661 (cd_count): Removed.
38662 (cd_drive): New variable.
38663 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38664 (grub_biosdisk_call_hook): Likewise.
38665 (grub_biosdisk_iterate): Change cdrom detection method.
38666 (grub_biosdisk_open): Replace cd_start with cd_drive.
38667 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38668 detect cdrom device.
38669
38670 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38671 Removed.
38672 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38673 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38674 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38675 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38676 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38677 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38678 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38679 (grub_biosdisk_cdrp): New structure.
38680 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38681
38682 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38683
38684 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38685 device.
38686
38687 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38688 New function.
38689
68e7fc7a 386902008-03-20 Robert Millan <rmh@aybabtu.com>
38691
38692 Remove 2 TiB limit in ata.mod.
38693 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38694 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38695 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38696 grub_uint64_t instead of grub_uint32_t.
38697
38ad2cf5 386982008-03-05 Bean <bean123ch@gmail.com>
38699
38700 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38701 (grub_multiboot): Set boot device.
38702
38703 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38704
2b89344e 387052008-03-02 Bean <bean123ch@gmail.com>
38706
38707 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38708 symlink_buffer.
38709
87a95d1f 387102008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38711
38712 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38713 texinfo.tex.
38714
38715 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38716 modified.
38717
38718 * docs/fdl.texi: New file.
f19dbdb7 38719
87a95d1f 38720 * docs/mdate-sh: New file. Copied from gnulib.
38721 * docs/texinfo.tex: Likewise.
38722
38723 * config.guess: Updated from gnulib.
38724 * install-sh: Likewise.
38725
7dc15d8e 387262008-02-28 Robert Millan <rmh@aybabtu.com>
38727
38728 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38729 (aout_mod_SOURCES): New variable.
38730 (aout_mod_CFLAGS): Likewise.
38731 (aout_mod_LDFLAGS): Likewise.
38732
38733 * conf/i386-ieee1275.rmk: Likewise.
38734
b00ab696 387352008-02-28 Robert Millan <rmh@aybabtu.com>
38736
38737 * util/update-grub.in: Reorganise terminal validity check. Accept
38738 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38739 Based on suggestion by Franklin PIAT.
38740
79ca2d78 387412008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38742
38743 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38744 function.
38745 * util/getroot.c (grub_util_check_block_device): New function that
38746 returns the given argument if it is a block device and returns NULL else.
38747 * util/grub-probe.c (argument_is_device): New variable.
38748 (probe): Promote device_name from a variable to an argument. Receive
38749 device_name from grub_util_check_block_device() if path is NULL and from
38750 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 38751 (options): Introduce new parameter '-d, --device'.
79ca2d78 38752 (main): Add description of the new parameter to the help screen.
38753 Rename path variable to argument. Set argument_is_device if the '-d'
38754 option is given. Pass argument to probe() depending on
38755 argument_is_device.
38756
0d16e571 387572008-02-24 Bean <bean123ch@gmail.com>
38758
38759 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38760 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38761 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38762 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38763 (GRUB_ISO9660_VOLDESC_END): Likewise.
38764 (grub_iso9660_primary_voldesc): New member escape.
38765 (grub_iso9660_data): New member joliet.
38766 (grub_iso9660_convert_string): New function.
38767 (grub_iso9660_mount): Detect joliet extension.
38768 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38769 (grub_iso9660_iso9660_label): Likewise.
38770
38771 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38772 (grub_setup_SOURCES): Add fs/udf.c.
38773 (grub_fstest_SOURCES): Likewise.
38774 (udf_mod_SOURCES): New variable.
38775 (udf_mod_CFLAGS): Likewise.
38776 (udf_mod_LDFLAGS): Likewise.
38777
38778 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38779 (grub_emu_SOURCES): Likewise.
38780
38781 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38782
38783 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38784
38785 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38786
38787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38788
38789 * fs/udf.c: New file.
38790
8a594a17 387912008-02-24 Robert Millan <rmh@aybabtu.com>
38792
38793 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38794 (normal/lexer.c_DEPENDENCIES): New variables.
38795 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38796 (normal/lexer.c_DEPENDENCIES): Likewise.
38797 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38798 (normal/lexer.c_DEPENDENCIES): Likewise.
38799 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38800 (normal/lexer.c_DEPENDENCIES): Likewise.
38801 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38802 (normal/lexer.c_DEPENDENCIES): Likewise.
38803 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38804 (normal/lexer.c_DEPENDENCIES): Likewise.
38805
2dc33c03 388062008-02-23 Robert Millan <rmh@aybabtu.com>
38807
38808 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38809 since they were intended to be in hex. This didn't break previously
38810 because of a bug in gpt_partition_map_iterate() (see below).
38811
38812 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38813 when checking the validity of GPT header.
38814 Remove `partno', since it always provides the same information as `i'.
38815
f6f4cfb0 388162008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38817
38818 * include/grub/efi/time.h: Fix a wrong comment.
38819
79ff665f 388202008-02-19 Pavel Roskin <proski@gnu.org>
38821
38822 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38823 message.
38824
d38e24c2 388252008-02-19 Bean <bean123ch@gmail.com>
38826
38827 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38828 (aout_mod_SOURCES): New variable.
38829 (aout_mod_CFLAGS): Likewise.
38830 (aout_mod_LDFLAGS): Likewise.
38831 (_bsd_mod_SOURCES): New variable.
38832 (_bsd_mod_CFLAGS): Likewise.
38833 (_bsd_mod_LDFLAGS): Likewise.
38834 (bsd_mod_SOURCES): New variable.
38835 (bsd_mod_CFLAGS): Likewise.
38836 (bsd_mod_LDFLAGS): Likewise.
38837
38838 * include/grub/aout.h: New file.
38839
38840 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38841
38842 * include/grub/i386/bsd.h: New file.
38843
38844 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38845 to make it public.
38846
38847 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38848 function is called, so that it's possible to change it inside the hook.
38849 (grub_elf64_load): Likewise.
38850 (grub_elf_file): Don't close the file if elf header is not found.
38851 (grub_elf_close): Close the file if grub_elf_file fails (The new
38852 grub_elf_file won't close it).
38853 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38854 (grub_elf64_size): Likewise.
38855
38856 * kern/i386/loader.S (grub_unix_real_boot): New function.
38857
38858 * loader/aout.c: New file.
38859
38860 * loader/i386/bsd.c: New file.
38861
38862 * loader/i386/bsd_normal.c: New file.
38863
38864 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38865
38866 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 38867 can test other formats.
d38e24c2 38868
b93bdb0f 388692008-02-19 Robert Millan <rmh@aybabtu.com>
38870
38871 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38872 (grub_gpt_partition_type_empty): Redefine with macro from
38873 `<grub/gpt_partition.h>'.
38874 (gpt_partition_map_iterate): Adjust partition type comparison.
38875
38876 Export `entry' as partmap-specific `part.data' struct.
38877 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38878
38879 * include/grub/gpt_partition.h (grub_gpt_header)
38880 (grub_gpt_partentry): ... to here (new file).
38881
38882 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38883
38884 (grub_gpt_partition_type_bios_boot): New const variable, defined
38885 with macro from `<grub/gpt_partition.h>'.
38886
38887 (setup): Replace `first_start' with `embed_region', which keeps
38888 track of the embed region (and is partmap-agnostic).
38889
38890 Replace find_first_partition_start() with find_usable_region(),
38891 which finds a usable region for embedding using partmap-specific
38892 knowledge (supports PC/MSDOS and GPT).
38893
38894 Fix all assumptions that the embed region start at sector 1, using
38895 `embed_region.start' from now on. Similarly, use `embed_region.end'
38896 rather than `first_start' to calculate available size.
38897
38898 In grub_util_info() message, replace "into after the MBR" with an
38899 indication of the specific sector our embed region starts at.
38900
66cb40f6 389012008-02-19 Robert Millan <rmh@aybabtu.com>
38902
38903 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38904 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38905 `commands/reboot.c'.
38906 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38907 (halt_mod_SOURCES): Likewise.
38908 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38909 (halt_mod_SOURCES): Likewise.
38910
b7202015 389112008-02-17 Christian Franke <franke@computer.org>
38912
38913 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38914
32b0fc49 389152008-02-17 Robert Millan <rmh@aybabtu.com>
38916
38917 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38918 set `first_start' to 0 for non-PC/MSDOS partition maps.
38919
aca63502 389202008-02-16 Robert Millan <rmh@aybabtu.com>
38921
38922 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38923 do not assume partition map is PC/MSDOS before performing checks that
38924 are specific to that layout.
38925
0de8be86 389262008-02-13 Robert Millan <rmh@aybabtu.com>
38927
38928 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38929 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38930 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38931
c3db8364 389322008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38933
38934 * configure.ac: Only a cosmetic change on the handling of
38935 -fno-stack-protector.
38936
f714229e 389372008-02-12 Alexandre Boeglin <alex@boeglin.org>
38938
c3db8364 38939 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38940 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38941 reboot.c.
f714229e 38942 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38943 (halt_mod_SOURCES): New variable.
38944 (halt_mod_CFLAGS): Likewise.
38945 (halt_mod_LDFLAGS): Likewise.
38946 (reboot_mod_SOURCES): Likewise.
38947 (reboot_mod_CFLAGS): Likewise.
38948 (reboot_mod_LDFLAGS): Likewise.
38949
c3db8364 38950 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38951 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38952 reboot.c.
f714229e 38953 (halt_mod_SOURCES): Likewise.
38954 (reboot_mod_SOURCES): Likewise.
38955
c3db8364 38956 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38957 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 38958 (reboot_mod_SOURCES): Likewise.
38959
38960 * commands/i386/pc/reboot.c: merge this file ...
38961
38962 * commands/ieee1275/reboot.c: ... and this file ...
38963
38964 * commands/reboot.c: ... to this file.
c3db8364 38965 Add some precompiler directive to include the correct header for
38966 each machine.
f714229e 38967
38968 * commands/ieee1275/halt.c: move this file ...
38969
38970 * commands/halt.c: ... to here.
c3db8364 38971 Add some precompiler directive to include the correct header for
38972 each machine.
f714229e 38973
38974 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38975 (grub_halt): Likewise.
38976
38977 * kern/efi/efi.c (grub_reboot): New function.
38978 (grub_halt): Likewise.
38979
c74493e0 389802008-02-12 Robert Millan <rmh@aybabtu.com>
38981
38982 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38983 /dev (like it is done for /dev/mapper). This doesn't provide support
38984 for EVMS, but at least it is now easy to identify the problem when it
38985 arises.
38986
d0db4b04 389872008-02-11 Robert Millan <rmh@aybabtu.com>
38988
38989 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38990 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38991 comparing it with -1, not 0.
38992
bf748642 389932008-02-10 Robert Millan <rmh@aybabtu.com>
38994
38995 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38996 `disk/lvm.c'.
38997 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38998 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38999
39000 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
39001 `disk/lvm.c' to the end of the list.
39002 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39003 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39004
b5db202a 390052008-02-10 Robert Millan <rmh@aybabtu.com>
39006
39007 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
39008 grub_print_error() instead. This will let user know why we're entering
39009 rescue mode.
39010 Based on suggestions from Sam Morris.
39011
83abee31 390122008-02-10 Alexandre Boeglin <alex@boeglin.org>
39013
39014 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
39015 on remaining N args, instead of "--" arg N times.
39016
78d5a08b 390172008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
39018
39019 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
39020 (fill_with_default_glyph): Changed to use unknown_glyph for fill
39021 pattern for unknown glyphs.
39022
68807e5f 390232008-02-09 Robert Millan <rmh@aybabtu.com>
39024
39025 * configure.ac: Probe for `help2man'.
39026 * Makefile.in (builddir): New variable.
39027 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
39028 or otherwise add a few flags/options to it.
39029 (install-local): For every executable utility or script that is
39030 installed, invoke $(HELP2MAN) to install a manpage based on --help
39031 output.
39032
39033 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
39034 that it doesn't prevent --help from working in build tree.
39035
39036 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
39037 with `bug-grub@gnu.org'.
39038 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
39039 * util/update-grub.in (usage): New function.
39040 Implement proper argument check, with support for --help and --version
39041 (as well as existing -y).
39042
390432008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 39044
39045 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
39046 avoid overwriting previous output.
39047 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
39048
c1962162 390492008-02-09 Robert Millan <rmh@aybabtu.com>
39050
39051 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
39052 drawing the menu.
39053
3dac2e3f 390542008-02-09 Robert Millan <rmh@aybabtu.com>
39055
39056 * commands/sleep.c: New file.
39057 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
39058 (sleep_mod_SOURCES): New variable.
39059 (sleep_mod_CFLAGS): Likewise.
39060 (sleep_mod_LDFLAGS): Likewise.
39061
7a634e08 390622008-02-09 Robert Millan <rmh@aybabtu.com>
39063
39064 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
39065 situations in which we can deduce the RAID size and the superblock
39066 doesn't match it.
39067
b92f0c18 390682008-02-09 Robert Millan <rmh@aybabtu.com>
39069
39070 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
39071 and return a grub_diskmemberlist_t composed of LVM physical volumes.
39072 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
39073
39074 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
39075 and return a grub_diskmemberlist_t composed of physical array members.
39076 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
39077
39078 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
39079 prototype.
39080 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
39081 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
39082 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
39083
39084 * util/grub-probe.c (probe): Move partmap probing code from here ...
39085 (probe_partmap): ... to here.
39086 (probe): Use probe_partmap() once for the disk we're probing, and
39087 additionally, when such disk contains a memberlist() struct member,
39088 once for each disk that is contained in the structure returned by
39089 memberlist().
39090
91a4bf68 390912008-02-09 Robert Millan <rmh@aybabtu.com>
39092
39093 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
39094 environment variable to 'all' in order to obtain debug output from
39095 non-util/ code.
39096 * util/i386/pc/grub-setup.c (main): Likewise.
39097
a96f9caa 390982008-02-08 Robert Millan <rmh@aybabtu.com>
39099
39100 * disk/raid.c (grub_raid_scan_device): Check for
39101 `array->device[sb.this_disk.number]' rather than for
39102 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 39103 guaranteed to be accessible.
a96f9caa 39104
b37a9222 391052008-02-08 Robert Millan <rmh@aybabtu.com>
39106
39107 * disk/raid.c: Update copyright.
39108 * fs/cpio.c: Likewise.
39109 * include/grub/raid.h: Likewise.
39110 * loader/i386/pc/multiboot.c: Likewise.
39111 * util/hostfs.c: Likewise.
39112
5626aee1 391132008-02-08 Robert Millan <rmh@aybabtu.com>
39114
39115 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
39116 to a grub_disk_t array.
39117 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
39118 `device[x]'.
39119 (grub_raid_scan_device): Replace `device[x].name' accesses with
39120 `device[x]->name'. Simplify initialization of `array->device[x]'.
39121
554f0187 391222008-02-08 Robert Millan <rmh@aybabtu.com>
39123
39124 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
39125 grub_dprintf() calls.
39126 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
39127 error message.
39128
1ec8425d 391292008-02-07 Christian Franke <franke@computer.org>
39130
39131 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
39132 instead of fseek and ftell to support large files.
39133 (grub_hostfs_read): Likewise.
39134
f2156fda 391352008-02-07 Robert Millan <rmh@aybabtu.com>
39136
39137 Patch from Jeroen Dekkers.
39138 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 39139 failure, since successfully reading all array members might not be
f2156fda 39140 required.
39141
9216e0e7 391422008-02-06 Robert Millan <rmh@aybabtu.com>
39143
39144 * util/grub-probe.c (probe): Simplify partmap probing (with the
39145 assumption that the first word up to the underscore equals to
39146 the module name).
39147
b0dfd29a 391482008-02-06 Christian Franke <franke@computer.org>
39149
39150 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
39151 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
39152 last block of a cpio or tar stream.
39153 Check for "TRAILER!!!" instead of any empty data
39154 block to detect last block of a cpio stream.
39155 (grub_cpio_dir): Fix constness of variable np.
39156 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
39157 cpio or tar trailer is detected. This fixes a crash
39158 on open of a non existing file.
39159
c32865bf 391602008-02-05 Bean <bean123ch@gmail.com>
39161
39162 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
39163 address of entry.
39164 (grub_multiboot_load_elf64): Likewise.
39165 (grub_multiboot): Initialize mbi structure.
39166
39167 * util/grub-fstest.c: Don't include unused header file script.h.
39168
fe6b695a 39169 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 39170 of file.
39171 (grub_fstest_SOURCES): Likewise.
39172
409480b7 391732008-02-05 Robert Millan <rmh@aybabtu.com>
39174
39175 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
39176 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
39177 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
39178 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
39179
39180 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
39181 (translation_table): Replace hardcoded values with macros
39182 provided by `<grub/term.h>'.
39183
39184 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
39185 (keyboard_map): Correct/add a few values, with macros provided
39186 by `<grub/term.h>'.
39187 (keyboard_map_shift): Zero values that don't differ from their
39188 `keyboard_map' equivalents.
39189 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
39190 Discard the second scan code that is always sent by Caps lock.
39191 Only use `keyboard_map_shift' when it provides a non-zero value,
39192 otherwise fallback to `keyboard_map'.
39193
99fadbaa 391942008-02-04 Bean <bean123ch@gmail.com>
39195
39196 * Makefile.in (enable_grub_fstest): New variable.
39197
39198 * conf/common.rmk (grub_fstest_init.lst): New rule.
39199 (grub_fstest_init.h): Likewise.
39200 (grub_fstest_init.c): Likewise.
39201 (util/grub-fstest.c_DEPENDENCIES): New variable.
39202 (grub_fstest_SOURCES): Likewise.
39203
39204 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
39205
39206 * util/grub-fstest.c: New file.
39207
bf567c50 392082008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39209
39210 Make grub-setup handle a separate root device.
f19dbdb7 39211
bf567c50 39212 * util/i386/pc/grub-setup.c (setup): Always open the root device,
39213 so that the root device can be compared with the destination
39214 device.
39215 When embedding the core image, if the root and destination devices
39216 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
39217 0xFF.
39218 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 39219
9be6b98b 392202008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39221
39222 Add support for having a grub directory in a different drive. This
39223 is still only the data handling part.
f19dbdb7 39224
9be6b98b 39225 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
39226 (codestart): Save %dh in GRUB_ROOT_DRIVE.
39227 (grub_root_drive): New variable.
39228
39229 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
39230 instead of GRUB_BOOT_DRIVE to construct a device name. Set
39231 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
39232 as it was.
39233
39234 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
39235
39236 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
39237 macro.
39238 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
39239
39240 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
39241 is bogus, because PXE booting does not specify any drive
39242 correctly.
39243
39244 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
39245 am not sure if this is really correct.
39246
39247 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
39248 is always identical to the boot drive when booting from a CD.
39249
39250 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
39251 longer.
39252 (root_drive): New variable.
39253 (real_start): Unconditionally set %dh to ROOT_DRIVE.
39254 (setup_sectors): Push %dx right after popping it, because %dh will
39255 be modified later.
39256 (copy_buffer): Restore %dx.
39257
e0ca0677 392582008-02-03 Robert Millan <rmh@aybabtu.com>
39259
39260 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
39261 use `cdboot.img' for cdrom images.
39262
3b3f6629 392632008-02-03 Robert Millan <rmh@aybabtu.com>
39264
39265 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
39266 only setup gfxterm when `font' command has succeeded.
39267
d42b3672 392682008-02-03 Robert Millan <rmh@aybabtu.com>
39269
39270 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
39271 (grub_rescue_cmd_multiboot_loader)
39272 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
39273
fa370ea6 392742008-02-03 Pavel Roskin <proski@gnu.org>
39275
e0c5dacb 39276 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 39277 %edx and %esi from stack only after grub_gate_a20() is called.
39278 grub_gate_a20() clobbers %edx.
39279
f2a76e1d 392802008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39281
39282 * configure.ac (AC_INIT): Bumped to 1.96.
39283
39284 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
39285 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
39286 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
39287 video/readers/png.c.
39288
90fd32d1 392892008-02-03 Bean <bean123ch@gmail.com>
9be665dd 39290
39291 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
39292 (cdboot_img_SOURCES): New variable.
39293 (cdboot_img_ASFLAGS): New variable.
39294 (cdboot_img_LDFLAGS): New variable.
39295
39296 * boot/i386/pc/cdboot.S: New file.
39297
39298 * disk/i386/pc/biosdisk.c (cd_start): New variable.
39299 (cd_count): Likewise.
39300 (grub_biosdisk_get_drive): Add support for cd device.
39301 (grub_biosdisk_call_hook): Likewise.
39302 (grub_biosdisk_iterate): Likewise.
39303 (grub_biosdisk_open): Likewise.
39304 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
39305 (grub_biosdisk_rw): Support reading from cd device.
39306 (GRUB_MOD_INIT): Iterate cd devices.
39307
39308 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
39309 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
39310 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
39311
39312 * kern/i386/pc/init.c (make_install_device): Check for cd device.
39313
4020aa53 393142008-02-02 Robert Millan <rmh@aybabtu.com>
39315
39316 * commands/read.c: New file.
39317 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
39318 (read_mod_SOURCES): New variable.
39319 (read_mod_CFLAGS): Likewise.
39320 (read_mod_LDFLAGS): Likewise.
39321
e03a1132 393222008-02-02 Robert Millan <rmh@aybabtu.com>
39323
39324 * normal/main.c (grub_normal_execute): Check for `menu->size' when
39325 determining whether menu has to be displayed.
39326
58c69220 393272008-02-02 Marco Gerards <marco@gnu.org>
39328
39329 * bus/pci.c: New file.
39330
39331 * include/grub/pci.h: Likewise.
39332
39333 * include/grub/i386/pc/pci.h: Likewise.
39334
39335 * commands/lspci.c: Likewise.
39336
39337 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
39338 `lspci.mod'.
39339 (pci_mod_SOURCES): New variable.
39340 (pci_mod_CFLAGS): Likewise.
39341 (pci_mod_LDFLAGS): Likewise.
39342 (lspci_mod_SOURCES): Likewise.
39343 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 39344 (lspci_mod_LDFLAGS): Likewise.
58c69220 39345
c004e1b4 393462008-02-02 Bean <bean123ch@gmail.com>
39347
39348 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
39349 (grub_ufs_get_file_block): Fix indirect block calculation problem.
39350
39351 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
39352 (grub_xfs_btree_node): New structure.
39353 (grub_xfs_btree_root): New structure.
39354 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
39355 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
39356 (GRUB_XFS_EXTENT_BLOCK): Likewise.
39357 (GRUB_XFS_EXTENT_SIZE): Likewise.
39358 (grub_xfs_read_block): Support btree format type.
39359 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
39360 Use directory block as basic unit.
39361
39362 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
39363
39364 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
39365 __attribute__ ((__regparm__ (1))).
39366
f95562bf 393672008-02-01 Robert Millan <rmh@aybabtu.com>
39368
39369 Correct a mistake in previous commit.
39370
39371 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
39372 top.
39373 (normal/command.c_DEPENDENCIES): New variable.
39374
7d31f41f 393752008-02-01 Robert Millan <rmh@aybabtu.com>
39376
39377 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
39378 top.
39379 (normal/command.c_DEPENDENCIES): New variable.
39380 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
39381 * conf/i386-ieee1275.rmk: Likewise.
39382 * conf/i386-linuxbios.rmk: Likewise.
39383 * conf/i386-pc.rmk: Likewise.
39384 * conf/sparc64-ieee1275.rmk: Likewise.
39385 * conf/powerpc-ieee1275.rmk: Likewise.
39386 (grub_emu_SOURCES): Add `fs/fshelp.c'.
39387
39388 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
39389
60b6be74 393902008-02-01 Robert Millan <rmh@aybabtu.com>
39391
39392 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
39393 call at beginning of function.
39394
078522ab 393952008-01-31 Pavel Roskin <proski@gnu.org>
39396
39397 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 39398 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
39399 (grub_mkrescue_SOURCES): Likewise.
078522ab 39400 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
39401
ccaa8a5f 394022008-01-30 Robert Millan <rmh@aybabtu.com>
39403
39404 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
39405 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
39406 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
39407 (grub_probe_SOURCES): ... to here.
39408
39409 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
39410 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
39411 * conf/i386-ieee1275.rmk: Likewise.
39412 * conf/i386-linuxbios.rmk: Likewise.
39413 * conf/powerpc-ieee1275.rmk: Likewise.
39414
ae5a9cd7 394152008-01-30 Tristan Gingold <gingold@free.fr>
39416
39417 * kern/rescue.c: Silently accept empty lines.
39418
70bc2ef2 394192008-01-29 Bean <bean123ch@gmail.com>
39420
39421 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39422 (real_code_2): Code cleanup and change comment style.
39423 (move_memory): Avoid using 32-bit address mode.
39424
6a4d50ea 394252008-01-29 Bean <bean123ch@gmail.com>
39426
39427 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39428 (png_mod_SOURCES): New variable.
39429 (png_mod_CFLAGS): Likewise.
39430 (png_mod_LDFLAGS): Likewise.
39431
39432 * video/readers/png.c: New file.
39433
11cc30ac 394342008-01-28 Robert Millan <rmh@aybabtu.com>
39435
39436 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39437 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39438 `ifndef GRUB_MOD_GAP' hack.
39439 * util/elf/grub-mkimage.c (add_segments): Likewise.
39440
3abc589f 394412008-01-27 Robert Millan <rmh@aybabtu.com>
39442
39443 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39444 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 39445 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 39446
e1907778 394472008-01-27 Robert Millan <rmh@aybabtu.com>
39448
39449 Get grub-emu to build again (including parallel builds).
39450
39451 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39452 Split into ...
39453 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39454 (normal/execute.c_DEPENDENCIES): ... this, ...
39455 (grub-emu_DEPENDENCIES): ... and this.
39456
39457 * conf/i386-efi.rmk: Likewise.
39458 * conf/i386-linuxbios.rmk: Likewise.
39459 * conf/i386-ieee1275.rmk: Likewise.
39460 * conf/powerpc-ieee1275.rmk: Likewise.
39461 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39462
2216b101 394632008-01-27 Robert Millan <rmh@aybabtu.com>
39464
39465 * NEWS: Add a few items.
39466
f75172d9 394672008-01-27 Robert Millan <rmh@aybabtu.com>
39468
39469 Fix parallel builds with grub-emu. Based on earlier commit for
39470 grub-probe and grub-setup.
39471
39472 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39473 (util/grub-emu.c_DEPENDENCIES): ... this.
39474 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39475 (util/grub-emu.c_DEPENDENCIES): ... this.
39476 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39477 (util/grub-emu.c_DEPENDENCIES): ... this.
39478 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39479 (util/grub-emu.c_DEPENDENCIES): ... this.
39480 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39481 (util/grub-emu.c_DEPENDENCIES): ... this.
39482
3f51de77 394832008-01-27 Pavel Roskin <proski@gnu.org>
39484
39485 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39486 to create a gap between _end and the modules added to the image
39487 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39488 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39489 * util/elf/grub-mkimage.c (add_segments): Likewise.
39490
2033f53e 394912008-01-26 Pavel Roskin <proski@gnu.org>
39492
39493 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39494 just return an error.
39495
22da1f6f 394962008-01-26 Bean <bean123ch@gmail.com>
39497
39498 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39499 (grub_reiserfs_get_item): Save offset of the next item.
39500 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39501
2a9525e6 395022008-01-25 Robert Millan <rmh@aybabtu.com>
39503
39504 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39505 make all filesystem sources appear together (possibly fixing omissions
39506 while at it).
39507 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39508 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39509 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39510 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39511
39512 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39513 add `kern/file.c'.
39514 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39515 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39516 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39517 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39518
39519 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39520 (probe): Add a sanity check to make sure of our ability to read
39521 requested files when probing for filesystem type.
39522
39523 * genmk.rb: Update copyright year (2007).
39524
39525 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39526 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39527 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39528 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39529 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39530 : Remove function prototypes.
39531
b95f71b5 395322008-01-25 Robert Millan <rmh@aybabtu.com>
39533
39534 Revert my previous commits (based on wrong assumption of how grub_errno
39535 works).
39536
fe6b695a 39537 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 39538 * kern/file.c (grub_file_open): Likewise.
39539
d08bbb49 395402008-01-24 Pavel Roskin <proski@gnu.org>
39541
39542 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39543 that hang if GRUB tries to setup colors.
39544 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39545 colors for firmwares that don't support it.
39546 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39547 Recognize Open Hack'Ware, set flags to work around its
39548 limitations.
39549
605e36ed 395502008-01-24 Robert Millan <rmh@aybabtu.com>
39551
39552 * kern/file.c (grub_file_open): Do not account previous failures of
39553 unrelated functions when grub_errno is checked for.
39554 Reported by Oleg Strikov.
39555
bac332a1 395562008-01-24 Bean <bean123ch@gmail.com>
39557
39558 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39559 (grub_ufs_sblock): New member volume name.
39560 (grub_ufs_find_file): Fix string copy bug.
39561 (grub_ufs_label): Implement this function properly.
39562
39563 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39564 (grub_hfs_iterate_records): Use the correct file number for extents
39565 and catalog file. Fix problem in next index calculation.
39566 (grub_hfs_find_node): Replace recursive function call with loop.
39567 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39568
15c80c09 395692008-01-23 Robert Millan <rmh@aybabtu.com>
39570
39571 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39572 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39573 (grub_multiboot2_real_boot): New function prototype.
39574
39575 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39576 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39577
39578 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39579 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39580
305338fd 395812008-01-23 Robert Millan <rmh@aybabtu.com>
39582
39583 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39584 #ifdef'ed out grub_printf().
39585
3ea52685 395862008-01-23 Robert Millan <rmh@aybabtu.com>
39587
39588 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39589 grub_dprintf calls, since they make "debug=all" mode unusable.
39590 (grub_console_checkkey): Likewise.
39591
5882ae4b 395922008-01-23 Robert Millan <rmh@aybabtu.com>
39593
39594 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39595 `term/i386/pc/at_keyboard.c'.
39596 (pkglib_MODULES): Add `serial.mod'.
39597 (serial_mod_SOURCES): New variable.
39598 (serial_mod_CFLAGS): Likewise.
39599 (serial_mod_LDFLAGS): Likewise.
39600
39601 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39602 `<grub/powerpc/ieee1275/console.h>'.
39603 (grub_keyboard_controller_init): New function prototype.
39604 (grub_console_checkkey): Likewise.
39605 (grub_console_getkey): Likewise.
39606
39607 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39608 keyboard on i386.
39609
39610 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39611 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39612
06ab5303 396132008-01-23 Robert Millan <rmh@aybabtu.com>
39614
39615 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39616 present, "(memdisk)/boot/grub" becomes the default prefix.
39617
39618 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39619 a memdisk tarball with all the modules. Add --overlay=DIR option that
39620 allows users to overlay additional files into the image.
39621
dbb475a4 396222008-01-23 Robert Millan <rmh@aybabtu.com>
39623
39624 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39625 and `machine/memory.h'.
39626 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39627 (_multiboot_mod_SOURCES): New variable.
39628 (_multiboot_mod_CFLAGS): Likewise.
39629 (_multiboot_mod_LDFLAGS): Likewise.
39630 (multiboot_mod_SOURCES): Likewise.
39631 (multiboot_mod_CFLAGS): Likewise.
39632 (multiboot_mod_LDFLAGS): Likewise.
39633
39634 * include/grub/i386/ieee1275/loader.h: New file.
39635
39636 * include/grub/i386/ieee1275/machine.h: Likewise.
39637
39638 * include/grub/i386/ieee1275/memory.h: Likewise.
39639
39640 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39641 variable declaration.
39642 (grub_os_area_size): Likewise.
39643
39644 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39645 (grub_lower_mem, grub_upper_mem): New variables.
39646 (grub_stop_floppy): New function (just to make
39647 grub_multiboot2_real_boot() happy).
39648
39649 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39650 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39651 (grub_stop): New function.
39652 Include `"../realmode.S"' and `"../loader.S"'.
39653
39654 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39655 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39656
39657 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39658 rely on grub_multiboot2_real_boot() for final boot.
39659
25638629 396602008-01-22 Robert Millan <rmh@aybabtu.com>
39661
39662 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39663 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39664 device that doesn't look like an SD card.
39665 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39666 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39667 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39668 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39669 found.
39670
9dad816d 396712008-01-22 Robert Millan <rmh@aybabtu.com>
39672
39673 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39674 avoid claiming over our own code.
39675
34842f2d 396762008-01-22 Bean <bean123ch@gmail.com>
39677
39678 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39679 (jpeg_mod_SOURCES): New variable.
39680 (jpeg_mod_CFLAGS): Likewise.
39681 (jpeg_mod_LDFLAGS): Likewise.
39682
39683 * video/readers/jpeg.c : New file.
39684
44023a28 396852008-01-22 Bean <bean123ch@gmail.com>
39686
39687 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39688 there are no more items.
39689
bc2d8ac6 396902008-01-21 Robert Millan <rmh@aybabtu.com>
39691
39692 * kern/mm.c (grub_mm_init_region): Improve debug message.
39693
261bd4bc 396942008-01-21 Robert Millan <rmh@aybabtu.com>
39695
39696 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39697 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39698 address.
39699 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39700 a C macro.
39701 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39702 Indicates start of upper memory.
39703 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39704 (generate_image): Abort when image size is big enough to corrupt
39705 upper memory.
39706
39707 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39708 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39709 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39710 instead of hardcoding 0xA0000.
39711 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39712 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39713 instead of hardcoding 0xA0000.
39714
f970b55e 397152008-01-21 Robert Millan <rmh@aybabtu.com>
39716
39717 * disk/memdisk.c (memdisk_size): New variable.
39718 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39719 `memdisk_size'.
39720 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39721 image to dynamic memory.
39722 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39723 `memdisk_size'. Free memdisk block.
39724
1a8b0526 397252008-01-21 Robert Millan <rmh@aybabtu.com>
39726
39727 Fix detection of very small filesystems (like tar).
39728
39729 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39730 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39731 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39732 a problem with this disk).
39733
6e9b4aab 397342008-01-21 Robert Millan <rmh@aybabtu.com>
39735
39736 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39737 on grub_biosdisk_rw_standard() error.
39738
0d8837b2 397392008-01-21 Robert Millan <rmh@aybabtu.com>
39740
39741 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39742 recent changes.
39743 * kern/elf.c: Likewise.
39744 * kern/ieee1275/ieee1275.c: Likewise.
39745 * kern/powerpc/ieee1275/openfw.c: Likewise.
39746 * term/ieee1275/ofconsole.c: Likewise.
39747
ffd36e34 397482008-01-21 Robert Millan <rmh@aybabtu.com>
39749
39750 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39751
3f0093d0 39752 * include/grub/kernel.h (grub_arch_memdisk_addr)
39753 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 39754
3f0093d0 39755 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39756 (grub_arch_memdisk_size): ... to here.
ffd36e34 39757
6c391b21 397582008-01-21 Robert Millan <rmh@aybabtu.com>
39759
39760 Mostly based on bugfix from Bean.
39761
39762 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39763 attribute with hook() parameter.
39764 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39765 declaration.
39766 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39767 attribute with hook() parameter.
39768 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39769 declaration.
39770
55a581dc 397712008-01-21 Robert Millan <rmh@aybabtu.com>
39772
39773 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39774 (pkglib_MODULES): Add `memdisk.mod'.
39775 (memdisk_mod_SOURCES): New variable.
39776 (memdisk_mod_CFLAGS): Likewise.
39777 (memdisk_mod_LDFLAGS): Likewise.
39778
39779 * disk/memdisk.c: New file.
39780
39781 * include/grub/disk.h (grub_disk_dev_id): Add
39782 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39783
39784 * include/grub/i386/pc/kernel.h
39785 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39786 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39787 (grub_kernel_image_size): New variable declaration.
39788 (grub_total_module_size): Likewise.
39789 (grub_memdisk_image_size): Likewise.
39790
39791 * include/grub/i386/pc/memory.h
39792 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39793
39794 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39795 (grub_arch_memdisk_addr): New variable declaration.
39796 (grub_arch_memdisk_size): Likewise.
39797
39798 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39799 (grub_arch_memdisk_size): Likewise.
39800
39801 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39802 (codestart): Replace hardcoded `0x100000' with
39803 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39804
39805 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39806 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39807 not NULL, append the contents of the file it refers to, at the end of
39808 the compressed kernel image. Initialize `grub_memdisk_image_size'
39809 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39810 (options): Add "memdisk"|'m' option.
39811 (main): Parse --memdisk|-m option, and pass user-provided path as
39812 parameter to generate_image().
39813
3d7f54c9 398142008-01-20 Robert Millan <rmh@aybabtu.com>
39815
39816 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39817 grub_dprintf() calls from here ...
39818 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39819
0bf74728 398202008-01-20 Robert Millan <rmh@aybabtu.com>
39821
39822 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39823
39824 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39825 declaration.
39826 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39827 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39828 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 39829 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 39830 property).
39831 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39832 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39833
33bf70a7 398342008-01-19 Robert Millan <rmh@aybabtu.com>
39835
fe6b695a 39836 Get rid of confusing function (superseded by
33bf70a7 39837 `grub_ieee1275_get_integer_property')
39838 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39839 prototype.
39840 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39841 function.
39842 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39843 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 39844 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 39845
e2da7d26 398462008-01-19 Robert Millan <rmh@aybabtu.com>
39847
39848 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39849 command after "shut-down", since implementations differ on which
39850 the command for halt is.
39851
59f1fd8d 398522008-01-19 Robert Millan <rmh@aybabtu.com>
39853
39854 * include/grub/i386/linuxbios/console.h: Add header protection.
39855 (grub_keyboard_controller_init): New function prototype.
39856 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39857 (KEYBOARD_COMMAND_READ): Likewise.
39858 (KEYBOARD_COMMAND_WRITE): Likewise.
39859 (KEYBOARD_SCANCODE_SET1): Likewise.
39860 (grub_keyboard_controller_write): New function.
39861 (grub_keyboard_controller_read): Likewise.
39862 (grub_keyboard_controller_init): Likewise.
39863
39864 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39865 (grub_console_init): On coreboot/LinuxBIOS, call
39866 grub_keyboard_controller_init().
39867
5f5a7c15 398682008-01-19 Robert Millan <rmh@aybabtu.com>
39869
39870 PowerPC changes provided by Pavel Roskin.
39871
39872 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39873 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39874 don't rely on cmain() doing it.
39875 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39876 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39877
1210e168 398782008-01-16 Robert Millan <rmh@aybabtu.com>
39879
39880 * include/grub/i386/linuxbios/memory.h
39881 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39882 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39883 receive `table_header' as argument. Instead, probe for it in the
39884 known memory ranges where it can be present.
39885 (grub_available_iterate): Do not pass a fixed `table_header' address
39886 to grub_linuxbios_table_iterate().
39887
3d04eab8 398882008-01-15 Robert Millan <rmh@aybabtu.com>
39889
39890 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39891 * conf/i386-ieee1275.rmk: New file.
39892 * include/grub/i386/ieee1275/console.h: Likewise.
39893 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39894 * include/grub/i386/ieee1275/kernel.h: Likewise.
39895 * include/grub/i386/ieee1275/time.h: Likewise.
39896 * kern/i386/ieee1275/init.c: Likewise.
39897 * kern/i386/ieee1275/startup.S: Likewise.
39898
d1bc1b73 398992008-01-15 Robert Millan <rmh@aybabtu.com>
39900
39901 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39902 when pointers are 32-bit (but still do set it to one when they are
39903 64-bit).
39904
66a65807 399052008-01-15 Robert Millan <rmh@aybabtu.com>
39906
39907 * include/grub/ieee1275/ieee1275.h
39908 (grub_ieee1275_get_integer_property): New function prototype.
39909
39910 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39911 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 39912 grub_ieee1275_get_property() to handle endianness.
66a65807 39913
39914 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39915 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 39916 where appropriate.
66a65807 39917 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39918 (grub_map): Likewise.
39919 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39920
a83ccafd 399212008-01-15 Bean <bean123ch@gmail.com>
39922
39923 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39924 (grub_script_execute_cmdline): Reset grub_errno.
39925
39926 * normal/main.c (read_config_file): Reset grub_errno.
39927
39928 * normal/parse.y (script_init): New.
39929 (script): Move function and menuentry here.
39930 (delimiter): New.
39931 (command): Add delimiter at the end of command.
39932 (commands): Adjust to match the new command.
39933 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 39934 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 39935 (if): Use the new commands.
39936
39937 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39938
df6ecfc6 399392008-01-15 Robert Millan <rmh@aybabtu.com>
39940
39941 * normal/menu.c (run_menu): Move timeout message from here ...
39942 (print_timeout): ... to here.
39943 (run_menu): Use print_timeout() once during initial draw to print
39944 the whole message, and again in every clock tick to update only
39945 the number of seconds.
39946
87ae25eb 399472008-01-15 Robert Millan <rmh@aybabtu.com>
39948
39949 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39950 actual size of `available' from grub_ieee1275_get_property(), and
39951 restrict parsing to that bound.
39952
47bf09a4 399532008-01-15 Christian Franke <franke@computer.org>
39954
39955 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39956 (argp_program_version): Remove variable.
39957 (argp_program_bug_address): Likewise.
39958 (options): Convert from struct argp_option to struct option.
39959 (struct arguments): Remove.
39960 (parse_opt): Remove.
39961 (usage): New function.
39962 (main): Replace struct args members by simple variables.
39963 Replace argp_parse() by getopt_long().
39964 Add switch to evaluate options.
39965 Add missing "(...)" around root_dev in prefix string.
39966
c86f1469 399672008-01-14 Robert Millan <rmh@aybabtu.com>
39968
39969 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39970 for grub_ieee1275_exit(), in order to improve portability.
39971
e622c559 399722008-01-14 Robert Millan <rmh@aybabtu.com>
39973
39974 * util/grub.d/10_linux.in (prefix): Define.
39975 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39976
44cb1ec8 399772008-01-13 Pavel Roskin <proski@gnu.org>
39978
39979 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39980 grub_errno if no errors have been detected.
39981
1eb8c802 399822008-01-12 Robert Millan <rmh@aybabtu.com>
39983
39984 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39985 (grub_util_get_dev_abstraction): New function prototype.
39986
39987 * util/getroot.c: Include `<grub/util/getroot.h>'
39988 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39989 (grub_util_get_dev_abstraction): ... here (new function).
39990
39991 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39992 `PRINT_ABSTRACTION'.
39993 (probe): Probe for abstraction type when requested.
39994 (main): Understand `--target=abstraction'.
39995
39996 * util/i386/efi/grub-install.in: Add abstraction module to core
39997 image when it is found to be necessary.
39998 * util/i386/pc/grub-install.in: Likewise.
39999 * util/powerpc/ieee1275/grub-install.in: Likewise.
40000
40001 * util/update-grub_lib.in (font_path): Return system path without
40002 converting to GRUB path.
40003 * util/update-grub.in: Convert system path returned by font_path()
40004 to a GRUB path. Use `grub-probe -t abstraction' to determine what
40005 abstraction module is needed for loading fonts (if any). Export
40006 that as `GRUB_PRELOAD_MODULES'.
40007 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
40008 insmod commands).
40009
52bd3de9 400102008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
40011
40012 Remove some unused code from reiserfs.
f19dbdb7 40013
52bd3de9 40014 * fs/reiserfs.c (struct grub_reiserfs_key)
40015 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
40016 (struct grub_reiserfs_node_body): Removed.
40017 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
40018 Likewise.
40019 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40020 Likewise.
40021 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40022 Likewise.
40023 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40024 Likewise.
40025 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
40026 Likewise.
40027 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
40028 Likewise.
40029 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40030 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40031 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40032
2f80039d 400332008-01-10 Robert Millan <rmh@aybabtu.com>
40034
40035 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
40036 Determines if a file is garbage left by packaging systems, etc.
40037 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
40038 for processing /etc/grub.d scripts.
40039 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
40040 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
40041 as a condition for processing Linux images.
40042
87888032 400432008-01-10 Pavel Roskin <proski@gnu.org>
40044
40045 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
40046 to compile reiserfs.c on PowerPC.
40047
7e54fced 400482008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 40049
40050 * kern/device.c (grub_device_iterate): Do not abort device iteration
40051 when one of the devices cannot be opened.
40052 * kern/disk.c (grub_disk_open): Do not account previous failures of
40053 unrelated functions when grub_errno is checked for.
40054
5aa541e6 400552008-01-08 Robert Millan <rmh@aybabtu.com>
40056
40057 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
40058 `! grub_linux_is_bzimage', change order of address comparison to make
40059 it more intuitive, and improve "too big zImage" error message.
40060
7076340d 400612008-01-08 Robert Millan <rmh@aybabtu.com>
40062
40063 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
40064 `$(update-grub_DATA)'.
40065 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
40066 targets.
40067
9ca70333 400682008-01-07 Robert Millan <rmh@aybabtu.com>
40069
40070 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
40071 which instruction is modified by grub-setup during installation
40072 (since it wasn't obvious by only looking at this file).
40073
38ccf575 400742008-01-07 Robert Millan <rmh@aybabtu.com>
40075
40076 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
40077 listing actual TODO items.
40078
f5db4291 400792008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40080
868967cf 40081 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
40082 correctly.
40083 (grub_reiserfs_get_key_offset): Likewise.
40084 (grub_reiserfs_set_key_offset): Likewise.
40085 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 40086 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 40087
40088 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
40089 better to remove the bitfield version completely.
f19dbdb7 40090
868967cf 400912008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40092
f5db4291 40093 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
40094 allocated from the heap, due to the fshelp implementation.
40095 (grub_reiserfs_dir): Free NODE, due to the same reason.
40096
492e6d9d 400972008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40098
40099 Mostly from Vincent Pelletier:
f19dbdb7 40100
492e6d9d 40101 * fs/reiserfs.c: New file.
f19dbdb7 40102
492e6d9d 40103 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
40104 (reiserfs_mod_SOURCES): New variable.
40105 (reiserfs_mod_CFLAGS): Likewise.
40106 (reiserfs_mod_LDFLAGS): Likewise.
40107
40108 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
40109 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
40110 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
40111 normal/color.c.
40112
9ce3e7c1 401132008-01-06 Robert Millan <rmh@aybabtu.com>
40114
40115 * normal/color.c: Remove `<grub/env.h>'.
40116
f3b58148 401172008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
40118
40119 * include/grub/normal.h: Include <grub/env.h>.
40120
7ac3bcfa 401212008-01-05 Robert Millan <rmh@aybabtu.com>
40122
40123 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
40124 usage example with `(hd0,1)'.
fb358190 40125 Reported by Samuel Thibault.
7ac3bcfa 40126
c8ee99d7 401272008-01-05 Robert Millan <rmh@aybabtu.com>
40128
40129 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
40130 (grub_linux_boot_zimage): Rename to ...
40131 (grub_linux_boot): ... this.
40132 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
40133 (grub_linux_boot_zimage): Conditionalize zImage copy.
40134
40135 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
40136 (grub_linux_boot_bzimage): Remove prototype.
40137 (grub_linux_boot_zimage): Rename to ...
40138 (grub_linux_boot): ... this.
40139
40140 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
40141 (grub_linux_boot): Remove function.
40142
0ece25b1 401432008-01-05 Robert Millan <rmh@aybabtu.com>
40144
40145 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
40146 (grub_env_write_color_highlight): Likewise.
40147 (grub_wait_after_message): Likewise.
40148
40149 * normal/color.c: New file.
40150
40151 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40152 (normal_mod_DEPENDENCIES): Likewise.
40153
40154 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40155 (normal_mod_DEPENDENCIES): Likewise.
40156
40157 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40158 (normal_mod_DEPENDENCIES): Likewise.
40159
40160 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40161 (normal_mod_DEPENDENCIES): Likewise.
40162
40163 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
40164 for waiting after a message is printed.
40165 * normal/main.c (read_config_file): Likewise.
40166 (grub_normal_init): Register grub_env_write_color_normal() and
40167 grub_env_write_color_highlight() hooks. Mark `color_normal' and
40168 `color_highlight' variables as global.
40169
40170 * normal/menu.c (grub_wait_after_message): New function.
40171 (grub_color_menu_normal): New variable. Replaces ...
40172 (GRUB_COLOR_MENU_NORMAL): ... this macro.
40173 (grub_color_menu_highlight): New variable. Replaces ...
40174 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
40175 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
40176 `GRUB_TERM_COLOR_STANDARD'.
40177 (print_message): Use `grub_setcolorstate' to reload colors. Rename
40178 `normal_code' and `highlight_code' to `old_color_normal' and
40179 `old_color_highlight', respectively.
40180 (grub_menu_init_page): Update colors when drawing the menu, based on
40181 `menu_color_normal' and `menu_color_highlight' variables.
40182 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
40183 a message is printed.
40184
182dd4e5 401852008-01-05 Robert Millan <rmh@aybabtu.com>
40186
40187 * kern/env.c (grub_env_context_open): Propagate hooks for global
40188 variables to new context.
40189
40190 * kern/main.c (grub_set_root_dev): Export `root' variable.
40191
ddf8f6ad 401922008-01-05 Robert Millan <rmh@aybabtu.com>
40193
40194 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 40195 discs unconditionally, since udev and others have options to provide
ddf8f6ad 40196 them.
40197
d8b43d9b 401982008-01-05 Robert Millan <rmh@aybabtu.com>
40199
40200 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
40201
2bff2de3 402022008-01-04 Christian Franke <franke@computer.org>
40203
40204 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
40205 of eisa_mmap.
40206
97eab917 402072008-01-03 Pavel Roskin <proski@gnu.org>
40208
40209 * kern/i386/linuxbios/init.c: Put "void" to all function
40210 declarations with no arguments.
40211 * kern/powerpc/ieee1275/init.c: Likewise.
40212 * term/i386/pc/at_keyboard.c: Likewise.
40213 * term/i386/pc/vga_text.c: Likewise.
40214 * util/grub-mkdevicemap.c: Likewise.
40215
b9416d00 402162008-01-02 Robert Millan <rmh@aybabtu.com>
40217
40218 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
40219 message when loaded image is out of bounds.
40220 (grub_multiboot_load_elf64): Likewise.
40221
92695df9 402222008-01-02 Pavel Roskin <proski@gnu.org>
40223
40224 * util/grub.d/10_linux.in: Try version without ".old" when
40225 looking for initrd. It's better to use initrd from the newer
40226 kernel of the same version than no initrd at all.
40227
d98d9cad 402282008-01-01 Robert Millan <rmh@aybabtu.com>
40229
40230 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
40231
dbfdce36 402322008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
40233
f19dbdb7 40234 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 40235 grub_video_get_active_render_target.
40236 (grub_video_adapter): Added unmap_color and get_active_render_target.
40237
f19dbdb7 40238 * video/video.c: Added grub_video_unmap_color and
dbfdce36 40239 grub_video_get_active_render_target.
40240 (grub_video_get_info): Changed method to accept NULL pointer as an
40241 argument to allow detection of active video adapter.
40242
40243 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
40244 grub_video_vbe_unmap_color_int.
40245 Added grub_video_vbe_unmap_color and
40246 grub_video_vbe_get_active_render_target.
40247 (grub_video_vbe_adapter): Added unmap_color and
40248 get_active_render_target.
40249
f19dbdb7 40250 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 40251 with grub_video_vbe_unmap_color_int.
40252
40253 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
40254 (DEFAULT_NORMAL_COLOR): Likewise.
40255 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
40256 (DEFAULT_FG_COLOR): Removed.
40257 (DEFAULT_BG_COLOR): Likewise.
40258 (DEFAULT_CURSOR_COLOR): Changed value.
40259 (grub_virtual_screen): Added standard_color_setting,
40260 normal_color_setting, highlight_color_setting and term_color.
40261 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
40262 (bitmap_width): Added.
40263 (bitmap_height): Likewise.
40264 (bitmap): Likewise.
40265 (set_term_color): Likewise.
40266 (grub_virtual_screen_setup): Changed to use new terminal coloring
40267 settings.
40268 (grub_gfxterm_init): Added init for bitmap.
40269 (grub_gfxterm_fini): Added destroy for bitmap.
40270 (redraw_screen_rect): Updated to use background bitmap and new
40271 terminal coloring.
40272 (scroll_up): Added optimization for case when there is no bitmap.
40273 (grub_gfxterm_cls): Fixed to use correct background color.
40274 (grub_virtual_screen_setcolorstate): Changed to use new terminal
40275 coloring.
40276 (grub_virtual_screen_setcolor): Likewise.
40277 (grub_virtual_screen_getcolor): Added.
40278 (grub_gfxterm_background_image_cmd): Likewise.
40279 (grub_video_term): Added setcolor and getcolor.
40280 (MOD_INIT): Added registration of background_image command.
40281 (MOD_TERM): Added unregistration for background_image command.
40282
c3c20931 402832007-12-30 Pavel Roskin <proski@gnu.org>
40284
40285 * loader/multiboot_loader.c: Fix multiboot command
40286 unregistration. Fix all typos in the word "multiboot".
40287
df266716 402882007-12-29 Pavel Roskin <proski@gnu.org>
94239199 40289
40290 * util/grub.d/10_linux.in: Refactor search for initrd. Add
40291 support for initrd names used in Fedora.
40292
fc6e896c 402932007-12-26 Bean <bean123ch@gmail.com>
40294
40295 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
40296 (cpio_mod_SOURCES): New variable.
40297 (cpio_mod_CFLAGS): Likewise.
40298 (cpio_mod_LDFLAGS): Likewise.
40299
40300 * fs/cpio.c: New file.
40301
40302 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
40303
40304 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40305
40306 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40307
40308 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40309
533110ad 403102007-12-25 Robert Millan <rmh@aybabtu.com>
40311
40312 * include/grub/term.h (struct grub_term): Add `getcolor' function.
40313 (grub_getcolor): New function.
40314
40315 * kern/term.c (grub_getcolor): New function.
40316 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
40317 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
40318 (print_entry): Set normal and highlight colors to
40319 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
40320 respectively, before printing and restore them to old
40321 values afterwards.
40322 (grub_menu_init_page): Likewise. Fill an additional colored space
40323 that would otherwise be left blank.
40324
40325 * term/efi/console.c (grub_console_getcolor): New function.
40326 (struct grub_console_term.getcolor): New variable.
40327 * term/i386/pc/console.c (grub_console_getcolor): New function.
40328 (struct grub_console_term.getcolor): New variable.
40329 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
40330 (struct grub_console_term.getcolor): New variable.
40331
40332 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
40333 (struct grub_console_term.setcolor): Remove variable.
40334 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
40335 (struct grub_console_term.setcolor): Remove variable.
40336 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
40337 (struct grub_console_term.setcolor): Remove variable.
40338 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
40339 (struct grub_console_term.setcolor): Remove variable.
40340
4931827f 403412007-12-25 Robert Millan <rmh@aybabtu.com>
40342
40343 * configure.ac: Search for possible unifont.hex locations, and
40344 define UNIFONT_HEX if found.
40345
40346 * Makefile.in (UNIFONT_HEX): Define variable.
40347 (DATA): Rename to ...
40348 (PKGLIB): ... this. Update all users.
40349 (PKGDATA): New variable.
40350 (pkgdata_IMAGES): Rename to ...
40351 (pkglib_IMAGES): ... this. Update all users.
40352 (pkgdata_MODULES): Rename to ...
40353 (pkglib_MODULES): ... this. Update all users.
40354 (pkgdata_PROGRAMS): Rename to ...
40355 (pkglib_PROGRAMS): ... this. Update all users.
40356 (pkgdata_DATA): Rename to ...
40357 (pkglib_DATA): ... this. Update all users.
40358 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
40359 (unicode.pff, ascii.pff): New rules.
40360 (all-local): Add `$(PKGDATA)' dependency.
40361 (install-local): Process `$(PKGDATA)'.
40362
40363 * util/update-grub_lib.in (font_path): Search for *.pff files in
40364 a few more locations, including `${pkgdata}'.
40365
57e57e31 403662007-12-23 Robert Millan <rmh@aybabtu.com>
40367
40368 Patch from Bean <bean123ch@gmail.com>:
40369 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
40370 `size'.
40371
4bc72aa9 403722007-12-21 Bean <bean123ch@gmail.com>
40373
40374 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
40375 (ntfscomp_mod_SOURCES): New variable.
40376 (ntfscomp_mod_CFLAGS): Likewise.
40377 (ntfscomp_mod_LDFLAGS): Likewise.
40378
40379 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
40380 (grub_probe_SOURCES): Likewise.
40381 (grub_emu_SOURCES): Likewise.
40382
40383 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40384 (grub_emu_SOURCES): Likewise.
40385
40386 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40387 (grub_emu_SOURCES): Likewise.
40388
40389 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40390 (grub_emu_SOURCES): Likewise.
40391
40392 * fs/ntfs.c (grub_ntfscomp_func): New variable.
40393 (read_run_list): Renamed to grub_ntfs_read_run_list.
40394 (decomp_nextvcn): Moved to ntfscomp.c.
40395 (decomp_getch): Likewise.
40396 (decomp_get16): Likewise.
40397 (decomp_block): Likewise.
40398 (read_block): Likewise.
40399 (read_data): Partially moved to ntfscomp.c.
40400 (fixup): Change unsigned to grub_uint16_t.
40401 (read_mft): Change unsigned long to grub_uint32_t.
40402 (read_attr): Likewise.
40403 (read_data): Likewise.
40404 (read_run_data): Likewise.
40405 (read_run_list): Likewise.
40406 (read_mft): Likewise.
40407
40408 * fs/ntfscomp.c: New file.
40409
40410 * include/grub/ntfs.h: New file.
40411
af680a87 404122007-12-16 Robert Millan <rmh@aybabtu.com>
40413
40414 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40415 IDE disk check, since Linux is known to support 20 IDE disks.
40416 Reported by Colin Watson.
40417
84be7599 404182007-12-15 Bean <bean123ch@gmail.com>
40419
40420 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40421 (lnxboot_img_SOURCES): New variable.
40422 (lnxboot_img_ASFLAGS): Likewise.
40423 (lnxboot_img_LDFLAGS): Likewise.
40424
40425 * boot/i386/pc/lnxboot.S: New file.
40426
6af9db01 404272007-11-24 Pavel Roskin <proski@gnu.org>
40428
40429 * configure.ac: Test if '--build-id=none' is supported by the
40430 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40431 objcopy to generate incorrect binary files (binutils
40432 2.17.50.0.18-1 as shipped by Fedora 8).
40433 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40434 linking, so that build ID doesn't break the test.
40435
7361cfe6 404362007-11-24 Pavel Roskin <proski@gnu.org>
40437
40438 * include/grub/i386/time.h: use "void" in the argument list
40439 of grub_cpu_idle().
40440 * include/grub/powerpc/time.h: Likewise.
40441 * include/grub/sparc64/time.h: Likewise.
40442
1593e10c 404432007-11-18 Christian Franke <franke@computer.org>
40444
40445 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40446 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40447 This fixes the problem that function keys did not work in grub-emu.
40448
3b8db1a8 404492007-11-18 Christian Franke <franke@computer.org>
40450
40451 * disk/host.c (grub_host_open): Remove attribute unused from
40452 name parameter. Add check for "host". This fixes the problem
40453 that grub-emu does not find partitions.
40454
2e29408d 404552007-11-18 Christian Franke <franke@computer.org>
40456
40457 * util/hostfs.c (is_dir): New function.
40458 (grub_hostfs_dir): Handle missing dirent.d_type case.
40459 (grub_hostfs_read): Add missing fseek().
40460 (grub_hostfs_label): Clear label pointer. This fixes a crash
40461 of grub-emu on "ls (host)".
40462
398cd047 404632007-11-18 Christian Franke <franke@computer.org>
40464
40465 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40466 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40467 to 64 bit boundary by default.
40468
c405c391 404692007-11-18 Bean <bean123ch@gmail.com>
40470
40471 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40472 (hexdump_mod_SOURCES): New variable.
40473 (hexdump_mod_CFLAGS): Likewise.
40474 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 40475
c405c391 40476 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40477
40478 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40479
40480 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40481
40482 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40483
40484 * include/grub/hexdump.h: New file.
40485
40486 * commands/hexdump.c: New file.
40487
5cced7fd 404882007-11-10 Robert Millan <rmh@aybabtu.com>
40489
40490 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40491 in grub_outb() calls.
40492 (beep_on): Likewise.
40493
8b714eb0 404942007-11-10 Christian Franke <franke@computer.org>
40495
40496 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40497 (grub_menu_run): Likewise.
40498
ce0f1839 404992007-11-10 Robert Millan <rmh@aybabtu.com>
40500
40501 * include/grub/i386/efi/machine.h: New file.
40502 * include/grub/i386/linuxbios/machine.h: Likewise.
40503 * include/grub/i386/pc/machine.h: Likewise.
40504 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40505 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40506
40507 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40508 (serial_hw_io_addr): New variable.
40509 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40510 instead of `(unsigned short *) 0x400'.
40511
270c237d 405122007-11-10 Bean <bean123ch@gmail.com>
40513
40514 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40515
a87783bf 405162007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40517
40518 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40519 (vga_mod_SOURCES): Added.
40520 (vga_mod_CFLAGS): Likewise.
40521 (vga_mod_LDFLAGS): Likewise.
40522
40523 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40524 grub_outb() calls.
40525 (set_map_mask): Likewise.
40526 (set_read_map): Likewise.
40527 (set_read_address): Likewise.
40528 (vga_font): Removed variable.
40529 (get_vga_glyph): Removed function.
40530 (invalidate_char): Likewise.
40531 (write_char): Changed to use grub_font_get_glyph() for font
40532 information.
40533 (grub_vga_putchar): Likewise.
40534 (grub_vga_getcharwidth): Likewise.
40535
6433b448 405362007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40537
40538 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40539 flags.
40540 (pxeboot_img_LDFLAGS): Likewise.
40541 (diskboot_img_LDFLAGS): Likewise.
40542 (kernel_img_LDFLAGS): Likewise.
40543
49178511 405442007-11-06 Robert Millan <rmh@aybabtu.com>
40545
40546 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40547 in grub_outb() calls.
40548 (serial_hw_init): Likewise.
40549
53b052de 405502007-11-05 Robert Millan <rmh@aybabtu.com>
40551
40552 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40553 spaces. Skip non-regular files.
40554
5ab33bba 405552007-11-05 Robert Millan <rmh@aybabtu.com>
40556
40557 * kern/disk.c (grub_disk_firmware_fini)
40558 (grub_disk_firmware_is_tainted): New variables.
40559
40560 * include/grub/disk.h (grub_disk_firmware_fini)
40561 (grub_disk_firmware_is_tainted): Likewise.
40562
40563 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40564 (grub_disk_biosdisk_fini): ... to here.
40565 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40566 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40567 is set. Register grub_disk_biosdisk_fini() in
40568 `grub_disk_firmware_fini'.
40569
40570 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40571 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40572 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40573 to finish existing firmware disk interface.
40574
40575 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40576 (ata_mod_SOURCES): New variable.
40577 (ata_mod_CFLAGS): Likewise.
40578 (ata_mod_LDFLAGS): Likewise.
40579
0149ab7c 405802007-11-05 Robert Millan <rmh@aybabtu.com>
40581
40582 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40583 (grub_ata_wait): Reimplement using grub_millisleep().
40584
40585 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40586 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40587
be7ac41e 405882007-11-03 Marco Gerards <marco@gnu.org>
40589
40590 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40591 (CRTC_ADDR_PORT): New macro.
40592 (CRTC_DATA_PORT): Likewise.
40593 (CRTC_CURSOR): Likewise.
40594 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40595 (CRTC_CURSOR_ADDR_LOW): Likewise.
40596 (update_cursor): New function.
40597 (grub_console_real_putchar): Call `update_cursor'.
40598 (grub_console_gotoxy): Likewise.
40599 (grub_console_cls): Set the default color when clearing the
40600 screen.
40601 (grub_console_setcursor): Implemented.
40602
bb06ab2e 406032007-11-03 Marco Gerards <marco@gnu.org>
40604
40605 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40606 become activate.
40607 (grub_ata_pio_write): Likewise.
40608
40609 (grub_atapi_identify): Wait after issuing an ATA command.
40610 (grub_atapi_packet): Likewise.
40611 (grub_ata_identify): Likewise.
40612 (grub_ata_readwrite): Likewise.
40613
cf8f780b 406142007-11-03 Marco Gerards <marco@gnu.org>
40615
40616 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40617 (grub_ata_pio_write): Likewise.
40618 (grub_ata_readwrite): Use `grub_error', instead of
40619 returning `grub_errno'.
40620
ed649e54 406212007-11-03 Marco Gerards <marco@gnu.org>
40622
40623 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40624 grub_ata_pio_write once for every single sector, instead of for
40625 multiple sectors.
40626
ca25d8f0 406272007-10-31 Robert Millan <rmh@aybabtu.com>
40628
40629 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40630
40631 * conf/i386-linuxbios.rmk: New file.
40632
40633 * kern/i386/pc/hardware.c: Likewise.
40634 * term/i386/pc/at_keyboard.c: Likewise.
40635 * term/i386/pc/vga_text.c: Likewise.
40636
40637 * include/grub/i386/linuxbios/boot.h: Likewise.
40638 * include/grub/i386/linuxbios/console.h: Likewise.
40639 * include/grub/i386/linuxbios/init.h: Likewise.
40640 * include/grub/i386/linuxbios/kernel.h: Likewise.
40641 * include/grub/i386/linuxbios/loader.h: Likewise.
40642 * include/grub/i386/linuxbios/memory.h: Likewise.
40643 * include/grub/i386/linuxbios/serial.h: Likewise.
40644 * include/grub/i386/linuxbios/time.h: Likewise.
40645
40646 * kern/i386/linuxbios/init.c: Likewise.
40647 * kern/i386/linuxbios/startup.S: Likewise.
40648 * kern/i386/linuxbios/table.c: Likewise.
40649
e911ecc1 406502007-10-31 Marco Gerards <marco@gnu.org>
40651
40652 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40653 (ata_mod_SOURCES): New variable.
40654 (ata_mod_CFLAGS): Likewise.
40655 (ata_mod_LDFLAGS): Likewise.
40656
40657 * disk/ata.c: New file.
40658
40659 * include/grub/disk.h (grub_disk_dev_id): Add
40660 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 40661
7f66d0e0 406622007-10-31 Robert Millan <rmh@aybabtu.com>
40663
40664 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40665 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40666
40667 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40668 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40669
40670 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40671 `<grub/types.h>'.
40672
40673 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40674
5cd7dd46 406752007-10-27 Robert Millan <rmh@aybabtu.com>
40676
3236ca65 40677 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 40678
2ebfc90f 406792007-10-22 Robert Millan <rmh@aybabtu.com>
40680
40681 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40682 `"../realmode.S"'.
40683 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40684
73fcb0f3 406852007-10-22 Robert Millan <rmh@aybabtu.com>
40686
40687 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40688 (pkgdata_MODULES): Add `biosdisk.mod'.
40689 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40690 variables.
40691
40692 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40693 (grub_biosdisk_init): Replace with ...
40694 (GRUB_MOD_INIT(biosdisk)): ... this.
40695 (grub_biosdisk_fini): Replace with ...
40696 (GRUB_MOD_FINI(biosdisk)): ... this.
40697
40698 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40699 (grub_machine_init): Remove call to grub_biosdisk_init().
40700 (grub_machine_fini): Remove call to grub_machine_fini().
40701
40702 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40703
3381d274 407042007-10-22 Robert Millan <rmh@aybabtu.com>
40705
40706 * include/grub/time.h: New file.
40707 * include/grub/i386/time.h: Likewise.
40708 * include/grub/powerpc/time.h: Likewise.
40709 * include/grub/sparc64/time.h: Likewise.
40710
40711 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40712 instances to ...
40713 (KERNEL_MACHINE_TIME_HEADER): ... this.
40714 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40715 instances to ...
40716 (KERNEL_MACHINE_TIME_HEADER): ... this.
40717 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40718 instances to ...
40719 (KERNEL_MACHINE_TIME_HEADER): ... this.
40720
40721 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40722 (grub_millisleep): New function.
40723 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40724 (grub_millisleep): New function.
40725 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40726 Remove `grub/machine/time.h' include.
40727 (grub_millisleep): New function.
40728 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40729 Remove `grub/machine/time.h' include.
40730 (grub_millisleep): New function.
40731
40732 * include/grub/misc.h (grub_div_roundup): New function.
40733
40734 * kern/misc.c: Include `<grub/time.h>'.
40735 (grub_millisleep_generic): New function.
40736
40737 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40738 Add `time.h'.
40739 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40740 Add `time.h'.
40741 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40742 `machine/time.h'. Add `time.h'.
40743 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40744
a39a0312 407452007-10-21 Robert Millan <rmh@aybabtu.com>
40746
40747 * include/grub/misc.h (grub_max): New function.
40748
2aad70e2 407492007-10-21 Robert Millan <rmh@aybabtu.com>
40750
40751 * util/misc.c (grub_util_info): Call fflush() before returning.
40752
54b71c4b 407532007-10-20 Robert Millan <rmh@aybabtu.com>
40754
40755 * genmk.rb (Image): Copy `extra_flags' from here ...
40756 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40757
40758 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40759 to `argc' and `args' arguments.
40760
a979f513 407612007-10-17 Robert Millan <rmh@aybabtu.com>
40762
40763 * kern/i386/loader.S: New file.
40764
40765 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40766 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40767 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40768 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40769 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40770 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40771 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40772 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40773 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40774 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40775 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40776 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40777 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40778 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40779
40780 * kern/i386/realmode.S: New file.
40781
40782 * kern/i386/pc/startup.S (protstack): Moved from here ...
40783 * kern/i386/realmode.S (protstack)... to here.
40784 * kern/i386/pc/startup.S (gdt): Moved from here ...
40785 * kern/i386/realmode.S (gdt)... to here.
40786 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40787 * kern/i386/realmode.S (prot_to_real)... to here.
40788
40789 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40790 `kern/i386/realmode.S'.
40791
825fc8fd 407922007-10-17 Robert Millan <rmh@aybabtu.com>
40793
40794 * include/grub/i386/loader.h: New file.
40795
40796 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40797 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40798 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40799 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40800 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40801 * include/grub/i386/loader.h (grub_linux_prot_size)
40802 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40803 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40804 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40805 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40806
40807 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40808
e179b2f4 408092007-10-15 Robert Millan <rmh@aybabtu.com>
40810
40811 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40812 filesystem when dev->disk is unset.
40813 Do probe for filesystem even when dev->disk->has_partitions is set.
40814 In case a filesystem is found, always report it.
40815 In case it isn't, if dev->disk->has_partitions is set, report that
40816 a partition table was found instead of reporting that no filesystem
40817 could be identified.
40818
5db82af6 408192007-10-12 Robert Millan <rmh@aybabtu.com>
40820
40821 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40822 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40823
68f6ac74 40824 * include/grub/types.h (grub_host_to_target16): New macro.
40825 (grub_host_to_target32): Likewise.
40826 (grub_host_to_target64): Likewise.
40827 (grub_target_to_host16): Likewise.
40828 (grub_target_to_host32): Likewise.
40829 (grub_target_to_host64): Likewise.
5db82af6 40830
40831 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40832 Renamed from to ...
40833 (GRUB_MOD_ALIGN): ...this. Update all users.
40834
68f6ac74 40835 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40836 grub_host_to_target32.
40837 Replace grub_be_to_cpu32 with grub_target_to_host32.
40838 (load_modules): Likewise.
40839 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40840 Replace grub_be_to_cpu32 with grub_target_to_host32.
40841 Replace grub_cpu_to_be16 with grub_host_to_target16.
40842 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 40843
3cf497cc 408442007-10-12 Robert Millan <rmh@aybabtu.com>
40845
40846 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40847 * util/elf/grub-mkimage.c: ... here.
40848
40849 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40850 `util/powerpc/ieee1275/grub-mkimage.c'.
40851
c8cc3692 408522007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 40853
c8cc3692 40854 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40855 and make it easier to figure out.
40856 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40857 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40858 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40859 leave us with less than HEAP_MIN_SIZE total heap.
40860 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 40861
5c58b791 408622007-10-03 Robert Millan <rmh@aybabtu.com>
40863
40864 * include/grub/i386/io.h: New file.
40865 * commands/i386/pc/play.c (inb): Removed.
40866 (outb): Removed.
40867 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40868 with grub_outb().
afcd2ef8 40869 * term/i386/pc/serial.c (inb): Removed.
40870 (outb): Removed.
40871 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40872 with grub_outb().
40873 * term/i386/pc/vga.c (inb): Removed.
40874 (outb): Removed.
40875 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40876 with grub_outb().
5c58b791 40877
1a477ed6 408782007-10-02 Robert Millan <rmh@aybabtu.com>
40879
40880 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40882 Reported by Marcin Kurek.
40883
6b5d80fa 408842007-09-07 Robert Millan <rmh@aybabtu.com>
40885
40886 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40887 SmartFirmware version updates (as released by Sven Luther), and avoid
40888 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40889 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40890 known broken.
40891
5618afbf 408922007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40893
40894 From Hitoshi Ozeki:
40895 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40896 when merging two regions.
40897
6139dcd9 408982007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40899
508e39ee 40900 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40901 * normal/completion.c (grub_normal_do_completion): Likewise.
40902 Reported by Hitoshi Ozeki.
40903
409042007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40905
6139dcd9 40906 Do not use devices at boot in chainloading.
f19dbdb7 40907
6139dcd9 40908 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40909 (boot_part_addr): Likewise.
40910 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40911 with BOOT_DRIVE and BOOT_PART_ADDR.
40912 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40913 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40914
38da6516 409152007-08-29 Robert Millan <rmh@aybabtu.com>
40916
40917 Patch from Simon Peter <dn.tlp@gmx.net>:
40918 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40919 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40920 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40921 util/i386/pc/grub-setup.c_DEPENDENCIES.
40922 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40923 util/grub-probe.c_DEPENDENCIES.
40924 * conf/powerpc-ieee1275.rmk: Likewise.
40925
29d0928c 409262007-08-28 Robert Millan <rmh@aybabtu.com>
40927
40928 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40929 to tell grub-mkdevicemap how to name devices.
40930 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40931 feature).
40932
40933 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40934 util/i386/get_disk_name.c.
40935 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40936 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40937 util/ieee1275/get_disk_name.c.
40938
40939 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40940
40941 * DISTLIST: Add util/i386/get_disk_name.c and
40942 util/ieee1275/get_disk_name.c.
40943
40944 * util/grub-mkdevicemap.c: Replace device naming logic with
40945 grub_util_get_disk_name() calls.
40946
5a0d3cca 409472007-08-20 Robert Millan <rmh@aybabtu.com>
40948
40949 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40950 (so that it works for both plural and singular quantities).
40951
8b72db2f 409522007-08-05 Robert Millan <rmh@aybabtu.com>
40953
40954 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40955 so that [xz] isn't taken into account when determining order.
40956
352466bf 409572007-08-02 Marco Gerards <marco@gnu.org>
40958
40959 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40960 `include/multiboot2.h', `include/grub/elfload.h',
40961 `include/multiboot.h', `include/grub/multiboot.h',
40962 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40963 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40964 `kern/elf.c', `loader/multiboot_loader.c',
40965 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40966 `loader/i386/pc/multiboot2.c',
40967 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40968 `util/i386/pc/grub-mkrescue.in'. Remove
40969 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40970 `include/grub/i386/pc/util/biosdisk.h' and
40971 `include/grub/powerpc/ieee1275/multiboot.h'.
40972
8f096014 409732007-08-02 Bean <bean123ch@gmail.com>
40974
40975 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40976 (ntfs_mod_SOURCES): New variable.
40977 (ntfs_mod_CFLAGS): Likewise.
40978 (ntfs_mod_LDFLAGS): Likewise.
40979
40980 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40981 (grub_probe_SOURCES): Likewise.
40982 (grub_emu_SOURCES): Likewise.
40983
40984 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40985 (grub_emu_SOURCES): Likewise.
40986
40987 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40988 (grub_emu_SOURCES): Likewise.
f19dbdb7 40989
8f096014 40990 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40991
40992 * fs/ntfs.c: New file.
40993
9959f7db 409942007-08-02 Bean <bean123ch@gmail.com>
40995
40996 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40997
40998 * file.h (grub_file): Likewise.
40999
41000 * fshelp.h (grub_fshelp_read_file): Likewise.
41001
41002 * util/i386/pc/grub-setup.c (setup): Likewise.
41003 (save_first_sector): Likewise.
41004 (save_blocklists): Likewise.
f19dbdb7 41005
9959f7db 41006 * fs/affs.c (grub_affs_read_file): Likewise.
41007
41008 * fs/ext2.c (grub_ext2_read_file): Likewise.
41009
41010 * fs/fat.c (grub_fat_read_data): Likewise.
41011
41012 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
41013
41014 * fs/hfs.c (grub_hfs_read_file): Likewise.
41015
41016 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41017
41018 * fs/jfs.c (grub_jfs_read_file): Likewise.
41019
41020 * fs/minix.c (grub_minix_read_file): Likewise.
41021
41022 * fs/sfs.c (grub_sfs_read_file): Likewise.
41023
41024 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 41025
9959f7db 41026 * fs/xfs.c (grub_xfs_read_file): Likewise.
41027
41028 * command/blocklist.c (read_blocklist): Likewise.
41029 (print_blocklist): Likewise.
41030
0a203f83 410312007-08-02 Marco Gerards <marco@gnu.org>
41032
41033 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
41034 `util/hostfs.c'.
41035
41036 * disk/host.c: New file.
41037
41038 * util/hostfs.c: Likewise.
41039
41040 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
41041 return `GRUB_ERR_BAD_FS'.
41042 * fs/sfs.c (grub_sfs_mount): Likewise.
41043 * fs/xfs.c (grub_xfs_mount): Likewise.
41044
41045 * include/grub/disk.h (enum grub_disk_dev_id): Add
41046 `GRUB_DISK_DEVICE_HOST_ID'.
41047
41048 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
41049
e5dfe777 410502007-07-24 Jerone Young <jerone@gmail.com>
41051
f19dbdb7 41052 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 41053 modules for compilation.
41054 * conf/powerpc-ieee1275.rmk: Likewise.
41055
41056 * include/multiboot.h: Move multiboot definitions to one file. Rename
41057 many definitions to not get grub specific.
41058 * include/multiboot2.h: Create header with multiboot 2 definitions.
41059 * include/grub/multiboot.h: Header for grub specific function
41060 prototypes and definitions.
41061 * include/grub/multiboot2.h: Likewise.
41062 * include/grub/multiboot_loader.h: Likewise.
41063 * include/grub/i386/pc/multiboot.h: Removed.
41064 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
41065
41066 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
41067 and 2 to allow for one multiboot and module commands.
41068 * loader/multiboot2.c: Add multiboot2 functionality.
41069 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
41070 and definition names.
41071 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
41072 2 functions.
41073 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
41074 ieee1275 specific multiboot2 code.
41075
41076 * kern/i386/pc/startup.S: Change headers and definition names for
41077 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
41078
daf0f0ba 410792007-07-22 Robert Millan <rmh@aybabtu.com>
41080
41081 * geninitheader.sh: Process file specified in first parameter rather
41082 than hardcoding grub_modules_init.lst.
fe6b695a 41083 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 41084 than hardcoding grub_modules_init.h.
41085
41086 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
41087 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
41088 grub_probe_init.[ch] and grub_setup_init.[ch].
41089
41090 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
41091 grub_modules_init.h with grub_emu_init.h.
41092 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
41093 grub_probe_init.[ch] files.
41094 * conf/i386-efi.rmk: Likewise.
41095 * conf/i386-pc.rmk: Likewise.
41096 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
41097 grub_setup_init.[ch] files.
41098
41099 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
41100 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
41101 to initialize modules rather than a list of hardcoded functions.
41102 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
41103 grub_init_all() to initialize modules rather than a list of hardcoded
41104 functions.
41105
54cdc1cc 411062007-07-22 Robert Millan <rmh@aybabtu.com>
41107
41108 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
41109 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
41110
ad0686cc 411112007-07-22 Robert Millan <rmh@aybabtu.com>
41112
41113 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
41114 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
41115 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
41116 flag when running on SmartFirmware.
41117 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
41118 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
41119 was set.
41120
41121 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41122 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
41123 rather than decreasing it.
41124
41125 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
41126 there's not enough space to do it, fail in the same way as when it
41127 can't be done because there are no partitions.
41128
41129 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
41130 when nvsetenv failed.
41131
969c02ec 411322007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
41133
41134 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
41135 because this rule is automatically generated.
41136 (grub-mkrescue): Removed for the same reason as above.
41137
5a79f472 411382007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
41139
41140 Migrate to GNU General Public License Version 3.
f19dbdb7 41141
5a79f472 41142 * COPYING: Replaced with the plain text version of GPLv3.
41143
41144 * config.guess: Updated from gnulib.
41145 * config.sub: Likewise.
41146
41147 * geninit.sh: Output a GPLv3 copyright notice.
41148 * geninitheader.sh: Likewise.
41149 * genmodsrc.sh: Likewise.
41150 * gensymlist.sh.in: Likewise.
41151
41152 * boot/i386/pc/boot.S: Upgraded to GPLv3.
41153 * boot/i386/pc/diskboot.S: Likewise.
41154 * boot/i386/pc/pxeboot.S: Likewise.
41155 * commands/blocklist.c: Likewise.
41156 * commands/boot.c: Likewise.
41157 * commands/cat.c: Likewise.
41158 * commands/cmp.c: Likewise.
41159 * commands/configfile.c: Likewise.
41160 * commands/echo.c: Likewise.
41161 * commands/help.c: Likewise.
41162 * commands/ls.c: Likewise.
41163 * commands/search.c: Likewise.
41164 * commands/terminal.c: Likewise.
41165 * commands/test.c: Likewise.
41166 * commands/videotest.c: Likewise.
41167 * commands/i386/cpuid.c: Likewise.
41168 * commands/i386/pc/halt.c: Likewise.
41169 * commands/i386/pc/play.c: Likewise.
41170 * commands/i386/pc/reboot.c: Likewise.
41171 * commands/i386/pc/vbeinfo.c: Likewise.
41172 * commands/i386/pc/vbetest.c: Likewise.
41173 * commands/ieee1275/halt.c: Likewise.
41174 * commands/ieee1275/reboot.c: Likewise.
41175 * commands/ieee1275/suspend.c: Likewise.
41176 * disk/loopback.c: Likewise.
41177 * disk/lvm.c: Likewise.
41178 * disk/raid.c: Likewise.
41179 * disk/efi/efidisk.c: Likewise.
41180 * disk/i386/pc/biosdisk.c: Likewise.
41181 * disk/ieee1275/ofdisk.c: Likewise.
41182 * font/manager.c: Likewise.
41183 * fs/affs.c: Likewise.
41184 * fs/ext2.c: Likewise.
41185 * fs/fat.c: Likewise.
41186 * fs/fshelp.c: Likewise.
41187 * fs/hfs.c: Likewise.
41188 * fs/hfsplus.c: Likewise.
41189 * fs/iso9660.c: Likewise.
41190 * fs/jfs.c: Likewise.
41191 * fs/minix.c: Likewise.
41192 * fs/sfs.c: Likewise.
41193 * fs/ufs.c: Likewise.
41194 * fs/xfs.c: Likewise.
41195 * hello/hello.c: Likewise.
41196 * include/grub/acorn_filecore.h: Likewise.
41197 * include/grub/arg.h: Likewise.
41198 * include/grub/bitmap.h: Likewise.
41199 * include/grub/boot.h: Likewise.
41200 * include/grub/cache.h: Likewise.
41201 * include/grub/device.h: Likewise.
41202 * include/grub/disk.h: Likewise.
41203 * include/grub/dl.h: Likewise.
41204 * include/grub/elfload.h: Likewise.
41205 * include/grub/env.h: Likewise.
41206 * include/grub/err.h: Likewise.
41207 * include/grub/file.h: Likewise.
41208 * include/grub/font.h: Likewise.
41209 * include/grub/fs.h: Likewise.
41210 * include/grub/fshelp.h: Likewise.
41211 * include/grub/gzio.h: Likewise.
41212 * include/grub/hfs.h: Likewise.
41213 * include/grub/kernel.h: Likewise.
41214 * include/grub/loader.h: Likewise.
41215 * include/grub/lvm.h: Likewise.
41216 * include/grub/misc.h: Likewise.
41217 * include/grub/mm.h: Likewise.
41218 * include/grub/net.h: Likewise.
41219 * include/grub/normal.h: Likewise.
41220 * include/grub/parser.h: Likewise.
41221 * include/grub/partition.h: Likewise.
41222 * include/grub/pc_partition.h: Likewise.
41223 * include/grub/raid.h: Likewise.
41224 * include/grub/rescue.h: Likewise.
41225 * include/grub/script.h: Likewise.
41226 * include/grub/setjmp.h: Likewise.
41227 * include/grub/symbol.h: Likewise.
41228 * include/grub/term.h: Likewise.
41229 * include/grub/terminfo.h: Likewise.
41230 * include/grub/tparm.h: Likewise.
41231 * include/grub/types.h: Likewise.
41232 * include/grub/video.h: Likewise.
41233 * include/grub/efi/api.h: Likewise.
41234 * include/grub/efi/chainloader.h: Likewise.
41235 * include/grub/efi/console.h: Likewise.
41236 * include/grub/efi/console_control.h: Likewise.
41237 * include/grub/efi/disk.h: Likewise.
41238 * include/grub/efi/efi.h: Likewise.
41239 * include/grub/efi/pe32.h: Likewise.
41240 * include/grub/efi/time.h: Likewise.
41241 * include/grub/i386/linux.h: Likewise.
41242 * include/grub/i386/setjmp.h: Likewise.
41243 * include/grub/i386/types.h: Likewise.
41244 * include/grub/i386/efi/kernel.h: Likewise.
41245 * include/grub/i386/efi/loader.h: Likewise.
41246 * include/grub/i386/efi/time.h: Likewise.
41247 * include/grub/i386/pc/biosdisk.h: Likewise.
41248 * include/grub/i386/pc/boot.h: Likewise.
41249 * include/grub/i386/pc/chainloader.h: Likewise.
41250 * include/grub/i386/pc/console.h: Likewise.
41251 * include/grub/i386/pc/init.h: Likewise.
41252 * include/grub/i386/pc/kernel.h: Likewise.
41253 * include/grub/i386/pc/loader.h: Likewise.
41254 * include/grub/i386/pc/memory.h: Likewise.
41255 * include/grub/i386/pc/multiboot.h: Likewise.
41256 * include/grub/i386/pc/serial.h: Likewise.
41257 * include/grub/i386/pc/time.h: Likewise.
41258 * include/grub/i386/pc/vbe.h: Likewise.
41259 * include/grub/i386/pc/vbeblit.h: Likewise.
41260 * include/grub/i386/pc/vbefill.h: Likewise.
41261 * include/grub/i386/pc/vbeutil.h: Likewise.
41262 * include/grub/i386/pc/vga.h: Likewise.
41263 * include/grub/ieee1275/ieee1275.h: Likewise.
41264 * include/grub/ieee1275/ofdisk.h: Likewise.
41265 * include/grub/powerpc/libgcc.h: Likewise.
41266 * include/grub/powerpc/setjmp.h: Likewise.
41267 * include/grub/powerpc/types.h: Likewise.
41268 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
41269 * include/grub/powerpc/ieee1275/console.h: Likewise.
41270 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
41271 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
41272 * include/grub/powerpc/ieee1275/loader.h: Likewise.
41273 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
41274 * include/grub/powerpc/ieee1275/time.h: Likewise.
41275 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
41276 * include/grub/sparc64/libgcc.h: Likewise.
41277 * include/grub/sparc64/setjmp.h: Likewise.
41278 * include/grub/sparc64/types.h: Likewise.
41279 * include/grub/sparc64/ieee1275/console.h: Likewise.
41280 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
41281 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
41282 * include/grub/sparc64/ieee1275/time.h: Likewise.
41283 * include/grub/util/biosdisk.h: Likewise.
41284 * include/grub/util/getroot.h: Likewise.
41285 * include/grub/util/lvm.h: Likewise.
41286 * include/grub/util/misc.h: Likewise.
41287 * include/grub/util/raid.h: Likewise.
41288 * include/grub/util/resolve.h: Likewise.
41289 * io/gzio.c: Likewise.
41290 * kern/device.c: Likewise.
41291 * kern/disk.c: Likewise.
41292 * kern/dl.c: Likewise.
41293 * kern/elf.c: Likewise.
41294 * kern/env.c: Likewise.
41295 * kern/err.c: Likewise.
41296 * kern/file.c: Likewise.
41297 * kern/fs.c: Likewise.
41298 * kern/loader.c: Likewise.
41299 * kern/main.c: Likewise.
41300 * kern/misc.c: Likewise.
41301 * kern/mm.c: Likewise.
41302 * kern/parser.c: Likewise.
41303 * kern/partition.c: Likewise.
41304 * kern/rescue.c: Likewise.
41305 * kern/term.c: Likewise.
41306 * kern/efi/efi.c: Likewise.
41307 * kern/efi/init.c: Likewise.
41308 * kern/efi/mm.c: Likewise.
41309 * kern/i386/dl.c: Likewise.
41310 * kern/i386/efi/init.c: Likewise.
41311 * kern/i386/efi/startup.S: Likewise.
41312 * kern/i386/pc/init.c: Likewise.
41313 * kern/i386/pc/lzo1x.S: Likewise.
41314 * kern/i386/pc/startup.S: Likewise.
41315 * kern/ieee1275/ieee1275.c: Likewise.
41316 * kern/powerpc/cache.S: Likewise.
41317 * kern/powerpc/dl.c: Likewise.
41318 * kern/powerpc/ieee1275/cmain.c: Likewise.
41319 * kern/powerpc/ieee1275/crt0.S: Likewise.
41320 * kern/powerpc/ieee1275/init.c: Likewise.
41321 * kern/powerpc/ieee1275/openfw.c: Likewise.
41322 * kern/sparc64/cache.S: Likewise.
41323 * kern/sparc64/dl.c: Likewise.
41324 * kern/sparc64/ieee1275/init.c: Likewise.
41325 * kern/sparc64/ieee1275/openfw.c: Likewise.
41326 * loader/efi/chainloader.c: Likewise.
41327 * loader/efi/chainloader_normal.c: Likewise.
41328 * loader/i386/efi/linux.c: Likewise.
41329 * loader/i386/efi/linux_normal.c: Likewise.
41330 * loader/i386/pc/chainloader.c: Likewise.
41331 * loader/i386/pc/chainloader_normal.c: Likewise.
41332 * loader/i386/pc/linux.c: Likewise.
41333 * loader/i386/pc/linux_normal.c: Likewise.
41334 * loader/i386/pc/multiboot.c: Likewise.
41335 * loader/i386/pc/multiboot_normal.c: Likewise.
41336 * loader/powerpc/ieee1275/linux.c: Likewise.
41337 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41338 * normal/arg.c: Likewise.
41339 * normal/cmdline.c: Likewise.
41340 * normal/command.c: Likewise.
41341 * normal/completion.c: Likewise.
41342 * normal/execute.c: Likewise.
41343 * normal/function.c: Likewise.
41344 * normal/lexer.c: Likewise.
41345 * normal/main.c: Likewise.
41346 * normal/menu.c: Likewise.
41347 * normal/menu_entry.c: Likewise.
41348 * normal/misc.c: Likewise.
41349 * normal/parser.y: Likewise.
41350 * normal/script.c: Likewise.
41351 * normal/i386/setjmp.S: Likewise.
41352 * normal/powerpc/setjmp.S: Likewise.
41353 * normal/sparc64/setjmp.S: Likewise.
41354 * partmap/acorn.c: Likewise.
41355 * partmap/amiga.c: Likewise.
41356 * partmap/apple.c: Likewise.
41357 * partmap/gpt.c: Likewise.
41358 * partmap/pc.c: Likewise.
41359 * partmap/sun.c: Likewise.
41360 * term/gfxterm.c: Likewise.
41361 * term/terminfo.c: Likewise.
41362 * term/efi/console.c: Likewise.
41363 * term/i386/pc/console.c: Likewise.
41364 * term/i386/pc/serial.c: Likewise.
41365 * term/i386/pc/vesafb.c: Likewise.
41366 * term/i386/pc/vga.c: Likewise.
41367 * term/ieee1275/ofconsole.c: Likewise.
41368 * util/biosdisk.c: Likewise.
41369 * util/console.c: Likewise.
41370 * util/genmoddep.c: Likewise.
41371 * util/getroot.c: Likewise.
41372 * util/grub-emu.c: Likewise.
41373 * util/grub-mkdevicemap.c: Likewise.
41374 * util/grub-probe.c: Likewise.
41375 * util/lvm.c: Likewise.
41376 * util/misc.c: Likewise.
41377 * util/raid.c: Likewise.
41378 * util/resolve.c: Likewise.
41379 * util/update-grub.in: Likewise.
41380 * util/update-grub_lib.in: Likewise.
41381 * util/grub.d/00_header.in: Likewise.
41382 * util/grub.d/10_hurd.in: Likewise.
41383 * util/grub.d/10_linux.in: Likewise.
41384 * util/i386/efi/grub-install.in: Likewise.
41385 * util/i386/efi/grub-mkimage.c: Likewise.
41386 * util/i386/pc/grub-install.in: Likewise.
41387 * util/i386/pc/grub-mkimage.c: Likewise.
41388 * util/i386/pc/grub-mkrescue.in: Likewise.
41389 * util/i386/pc/grub-setup.c: Likewise.
41390 * util/i386/pc/misc.c: Likewise.
41391 * util/powerpc/ieee1275/grub-install.in: Likewise.
41392 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
41393 * util/powerpc/ieee1275/misc.c: Likewise.
41394 * video/bitmap.c: Likewise.
41395 * video/video.c: Likewise.
41396 * video/i386/pc/vbe.c: Likewise.
41397 * video/i386/pc/vbeblit.c: Likewise.
41398 * video/i386/pc/vbefill.c: Likewise.
41399 * video/i386/pc/vbeutil.c: Likewise.
41400 * video/readers/tga.c: Likewise.
41401
3572d015 414022007-07-02 Robert Millan <rmh@aybabtu.com>
41403
41404 * conf/i386-efi.rmk: Replace obsolete reference to
41405 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
41406 with util/getroot.c.
41407 * conf/powerpc-ieee1275.rmk: Likewise.
41408 * conf/sparc64-ieee1275.rmk: Likewise.
41409
41410 * util/grub-emu.c (main): Fix unchecked pointer handling.
41411
2c2a681b 414122007-07-02 Robert Millan <rmh@aybabtu.com>
41413
41414 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41415 invocation to fail, in order to support partition-less media.
41416
41417 * util/i386/pc/grub-install.in: Likewise.
41418
41419 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41420 which fs or partmap modules are needed (akin to its sister scripts).
41421
41422 Also use grub-probe to get rid of unportable /proc/mounts check.
41423
41424 Print the same informational message that the other scripts do, before
fe6b695a 41425 exiting.
2c2a681b 41426
6193defe 414272007-06-23 Robert Millan <rmh@aybabtu.com>
41428
fe6b695a 41429 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 41430 a font file can be found and, if so, echo the GRUB path to it.
41431
41432 * util/update-grub.in: Handle multiple terminals depending on user
41433 input, platform availability and font file presence. Propagate
41434 variables of our findings to /etc/grub.d/ children.
41435
41436 * util/grub.d/00_header.in: Handle multiple terminals, based on
41437 environment setup by update-grub.
41438
eface1dc 414392007-06-23 Robert Millan <rmh@aybabtu.com>
41440
ba50d28f 41441 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 41442
bf697e28 414432007-06-21 Robert Millan <rmh@aybabtu.com>
41444
41445 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41446 indicate end of data section in kernel image.
41447 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41448 GRUB_KERNEL_MACHINE_DATA_END.
41449
41450 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41451 space for it.
41452 * kern/i386/efi/startup.S: Likewise.
41453
41454 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41455 during image generation. Implement --prefix option to override this
41456 patch.
41457 * util/i386/efi/grub-mkimage.c: Likewise.
41458
41459 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41460 code to make path relative to its root into a separate function.
41461
41462 * util/i386/pc/grub-install.in: Use newly provided
41463 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41464 pass the result to grub-install --prefix.
41465
baa574b4 414662007-06-13 Robert Millan <rmh@aybabtu.com>
41467
41468 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41469 DEFAULT_DEVICE_MAP.
41470 * util/grub-emu.c: Use above definitions from misc.h instead of
41471 defining them.
41472 * util/grub-mkdevicemap.c: Likewise.
41473 * util/i386/pc/grub-setup.c: Likewise.
41474 * util/grub-probe.c: Likewise.
41475 (probe): Abort with grub_util_error() when either
41476 grub_guess_root_device or grub_util_get_grub_dev fails.
41477
0215dcbf 414782007-06-12 Robert Millan <rmh@aybabtu.com>
41479
41480 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41481 "pager" assignment.
41482 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41483 "pcdata".
41484 * util/grub-probe.c (probe): Likewise for "drive_name".
41485
8af2ab7b 414862007-06-11 Robert Millan <rmh@aybabtu.com>
41487
41488 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41489 not just the cdrom one.
41490
59d31694 414912007-06-11 Robert Millan <rmh@aybabtu.com>
41492
41493 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41494 Add --pkglibdir=DIR option to override pkglibdir.
41495 Mention --image-type=TYPE in help output.
41496 Fix --grub-mkimage (it was a no-op).
fe6b695a 41497 Abort gracefully when no parameter is given.
59d31694 41498
7ee367e4 414992007-06-11 Robert Millan <rmh@aybabtu.com>
41500
41501 * util/i386/pc/grub-mkrescue.in: New file.
41502 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41503 * Makefile.in: Handle bin_SCRIPTS.
41504
29b0ed46 415052007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41506
41507 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41508 list of video modes.
41509
c0f90770 415102007-06-06 Robert Millan <rmh@aybabtu.com>
41511
41512 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41513 file doesn't exist, or if it is in a filesystem grub can't read.
41514
41515 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41516 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41517 header comment to fit in 80 columns when the variables are resolved.
41518
41519 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41520 could be identified by update-grub. Remove redundant check for
fe6b695a 41521 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 41522 handles that).
41523
fb36dc26 415242007-06-04 Robert Millan <rmh@aybabtu.com>
41525
41526 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41527
41528 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41529
41530 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41531
0c68c93e 415322007-06-04 Robert Millan <rmh@aybabtu.com>
41533
41534 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41535
41536 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41537 grub_apple_partition_map_fini.
41538
41539 * util/biosdisk.c
41540 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41541 to access >2 TiB disks).
41542
41543 Print disk->total_sectors with %llu instead of %lu, since this
41544 variable is always 64-bit (prevents wrong disk size from being displayed
41545 on either >2 TiB disk or big-endian CPU).
41546
41547 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41548 into a generic case that supports all (sane) partition maps.
41549
41550 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41551 breaks big-endian.
41552
41553 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41554 and grub_apple_partition_map_fini() after that.
41555
0f23eb74 415562007-06-01 Robert Millan <rmh@aybabtu.com>
41557
41558 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41559
41560 * util/grub.d/00_header.in: Only enable gfxterm when
41561 convert_system_path_to_grub_path() succeeds.
41562
42c71976 415632007-05-20 Robert Millan <rmh@aybabtu.com>
41564
41565 * util/update-grub_lib.in: New file.
41566 * DISTLIST: Add update-grub_lib.in.
41567 * conf/common.rmk: Generate update-grub_lib and install it in
41568 $(lib_DATA).
41569 * Makefile.in: Add install routine for $(lib_DATA).
41570
41571 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41572 function provided by update-grub_lib to support arbitrary paths of
41573 unifont.pff.
41574 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41575 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41576
5beb2291 415772007-05-19 Robert Millan <rmh@aybabtu.com>
41578
41579 * commands/i386/cpuid.c: New module.
41580 * DISTLIST: Add it.
41581 * conf/i386-efi.rmk: Enable cpuid.mod.
41582 * conf/i386-pc.rmk: Likewise.
41583
7262eca1 415842007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41585
41586 * kern/disk.c (grub_disk_read): Check return value of
41587 grub_realloc().
41588
260ba823 415892007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41590
41591 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41592 arrays.
41593 * disk/raid.c (grub_raid_open): Likewise.
41594
1ecb6cf2 415952007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41596
41597 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41598 stack instead of on the heap.
41599
41600 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41601 before doing a read on it.
41602
41603 * configure.ac: Only use -fno-stack-protector for the target
41604 environment.
f19dbdb7 41605
21c8cbb1 416062007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41607
41608 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41609 __attribute_ ((unused)) to mode_type argument.
41610
41611 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 41612
21c8cbb1 41613 * kern/misc.c (memcmp): Fix prototype.
41614
41615 * include/grub/partition.h [GRUB_UTIL]
41616 (grub_gpt_partition_map_init): Add prototype.
41617 (grub_gpt_partition_map_fini): Likewise.
41618
41619 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41620 at the right place.
41621
41622 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41623 (grub_fat_read_data): Likewise.
41624 (grub_fat_find_dir): Likewise.
41625
41626 * font/manager.c (find_glyph): Make table a const.
41627 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 41628
849d55d3 416292007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41630
41631 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41632 code, first search for device in /dev/mapper, then in /dev.
41633 (grub_util_get_grub_dev): New function.
41634 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41635 prototype.
41636 * util/grub-probe.c (probe): Remove check for RAID, call
41637 grub_util_get_grub_dev() instead of
41638 grub_util_biosdisk_get_grub_dev().
41639 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41640 grub_util_biosdisk_get_grub_dev().
41641 * util/i386/pc/grub-setup.c (main): Likewise.
41642
8fff7c2f 416432007-05-16 Robert Millan <rmh@aybabtu.com>
41644
41645 * DISTLIST: Update for the latest changes.
41646 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41647 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41648 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41649 grub/util/biosdisk.h.
41650 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41651 grub/util/biosdisk.h.
41652
48e12b52 416532007-05-16 Robert Millan <rmh@aybabtu.com>
41654
41655 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41656
46b9d128 416572007-05-16 Robert Millan <rmh@aybabtu.com>
41658
41659 * util/i386/efi/grub-install.in: New.
41660 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41661 newly added grub-install.
41662 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41663 include.
41664 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41665 grub/util/biosdisk.h.
41666 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41667 grub/util/biosdisk.h.
41668
2d1a40a9 416692007-05-16 Robert Millan <rmh@aybabtu.com>
41670
41671 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41672 * include/grub/util/biosdisk.h: ... here.
41673 * util/i386/pc/biosdisk.c: Moved to ...
41674 * util/biosdisk.c: ... here.
41675 * util/i386/pc/getroot.c: Moved to ...
41676 * util/getroot.c: ... here.
41677 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41678 * util/grub-mkdevicemap.c: ... here.
41679 * util/i386/pc/grub-probe.c: Moved to ...
41680 * util/grub-probe.c: ... here.
41681
9e26e3bc 416822007-05-15 Robert Millan <rmh@aybabtu.com>
41683
41684 * util/update-grub.in: Remove duplicated line in grub.cfg header
41685 message.
41686
57f96397 416872007-05-13 Robert Millan <rmh@aybabtu.com>
41688
41689 * util/update-grub.in: Fix a few assumptions about the devices holding
41690 /, /boot and /boot/grub being the same.
41691 * util/grub.d/00_header.in: Likewise.
41692 * util/grub.d/10_hurd.in: Likewise.
41693 * util/grub.d/10_linux.in: Likewise.
41694
41695 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41696 patterns. Use that to define the `.old' suffix as older than `'.
41697
41698 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41699
41700 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41701 the grub.cfg header message.
41702
2e610d62 417032007-05-11 Robert Millan <rmh@aybabtu.com>
41704
41705 * util/update-grub.in: Create device.map if it doesn't already exist,
41706 before attempting to run grub-probe.
41707 Check for grub-probe and grub-mkdevicemap with the same code
41708 grub-install is using.
41709 Remove test mode.
41710
3f6a10ef 417112007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41712
41713 * Makefile.in: Add the datarootdir autoconf variable.
41714
02e7b75e 417152007-05-09 Robert Millan <rmh@aybabtu.com>
41716
41717 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 41718 fail gracefully if dev->disk->partition == NULL.
02e7b75e 41719
75f396cc 417202007-05-07 Robert Millan <rmh@aybabtu.com>
41721
41722 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41723 determine partition map module.
41724 * util/i386/pc/grub-install.in: Use this feature to decide which
41725 partition module to load, instead of hardcoding pc and gpt.
41726
da65cb36 417272007-05-07 Robert Millan <rmh@aybabtu.com>
41728
41729 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41730 source directory differs from build directory.
41731
b57d6a91 417322007-05-05 Robert Millan <rmh@aybabtu.com>
41733
41734 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41735 initialisation.
41736
509d00f1 417372007-05-05 Robert Millan <rmh@aybabtu.com>
41738
41739 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41740
c48f23ef 417412007-05-05 Robert Millan <rmh@aybabtu.com>
41742
41743 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41744 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41745
20b97658 417462007-05-05 Robert Millan <rmh@aybabtu.com>
41747
41748 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41749 (grub_probe_SOURCES): Likewise.
41750 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41751 GPT and initialize dos_part and bsd_part accordingly.
41752 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41753 install_bsd_part.
41754 (main): Activate gpt module for use during partition identification,
41755 and deactivate it afterwards.
41756 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41757 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41758 partition identification, and deactivate it afterwards.
41759
99123174 417602007-05-05 Robert Millan <rmh@aybabtu.com>
41761
41762 * term/i386/pc/console.c (grub_console_fini): Call
41763 grub_term_set_current() before grub_term_unregister().
41764
ebd97f6e 417652007-05-04 Robert Millan <rmh@aybabtu.com>
41766
41767 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41768 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41769 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41770 and update-grub_DATA.
41771 * conf/common.rmk: Build and install update-grub components.
41772 * conf/common.mk: Regenerate.
41773 * util/update-grub.in: New. Core of update-grub.
41774 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41775 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41776 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41777 * util/grub.d/README: New. Document grub.d directory layout.
41778
b06a264d 417792007-05-01 Robert Millan <rmh@aybabtu.com>
41780
41781 * util/grub-emu.c: Move initialization functions
41782 grub_util_biosdisk_init() and grub_init_all() before
41783 grub_util_biosdisk_get_grub_dev(), which relies on them.
41784
41f0050e 417852007-04-19 Robert Millan <rmh@aybabtu.com>
41786
41787 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41788 it is used later.
41789
04582bb3 417902007-04-18 Jerone Young <jerone@gmail.com>
41791
f19dbdb7 41792 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 41793 stanza.
41794
08db4632 417952007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 41796
08db4632 41797 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41798 continue on and look for device node with real device name.
41799
801b76be 418002007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 41801
fe6b695a 41802 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 41803 ability.
41804 * Makefile.in: Add autoconf package transformation code.
41805 * util/i386/pc/grub-install.in: Likewise.
41806 * util/powerpc/ieee1275/grub-install.in: Likewise.
41807
6795c4e1 418082007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41809
41810 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41811 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41812 (EXT2_REVISION): Likewise.
41813 (EXT2_INODE_SIZE): Likewise.
41814 (struct grub_ext2_block_group): Added a missing member
41815 "used_dirs".
41816 (grub_ext2_read_inode): Divide by the inode size in a superblock
41817 instead of 128 to obtain INODES_PER_BLOCK.
41818 Use the macro EXT2_INODE_SIZE instead of directly using
41819 SBLOCK->INODE_SIZE.
41820
d70af616 418212007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41822
41823 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41824 superblock instead of the structure size to compute an
41825 offset. This fixes the problem that GRUB could not read a
41826 filesystem when inode size is different from 128-byte.
41827
3b801603 418282007-03-05 Marco Gerards <marco@gnu.org>
41829
41830 * normal/main.c (read_config_file): When "menu" is not set, create
41831 an initial context.
41832
4785bfe4 418332007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41834
41835 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41836 (HEAP_LIMIT): New macro.
41837 (grub_claim_heap): Claim memory up to `heaplimit'.
41838
a0cbb023 418392007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41840
41841 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41842 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41843 (_start): Likewise.
41844 (grub_arch_modules_addr): Return address after `_end'.
41845 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41846 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41847 (add_segments): Calculate `_end' from phdr size and location.
41848 (ALIGN_UP): Moved to ...
41849 * include/grub/misc.h: here.
41850 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41851 New macro.
41852 (GRUB_IEEE1275_MODULE_BASE): Removed.
41853
fd7d8eba 418542007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41855
41856 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41857 loop boundary.
41858
9b09e6fc 418592007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41860
41861 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41862 All users updated.
41863 (grub_elf64_load_hook_t): Likewise.
41864 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41865 debug output.
41866
3ce27299 418672007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41868
41869 * kern/mm.c: Update copyright.
41870 (grub_mm_debug): Correct syntax error.
41871 (grub_mm_dump_free): New function.
41872 (grub_debug_free): Call `grub_free'.
41873 * include/grub/mm.h: Update copyright.
41874 (grub_mm_dump_free): Add declaration.
41875
077d5fee 418762007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41877
41878 * include/grub/ieee1275/ieee1275.h: Update copyright.
41879 * kern/powerpc/ieee1275/init.c: Likewise.
41880 * kern/powerpc/ieee1275/openfw.c: Likewise.
41881
41882 * loader/powerpc/ieee1275/linux.c: Likewise.
41883 * include/grub/elfload.h: Likewise.
41884 * kern/elf.c: Likewise.
41885 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41886 callers.
41887 (grub_elf64_load): Likewise.
41888 (grub_elf32_load_segment): Move to a nested function.
41889 (grub_elf64_load_segment): Likewise.
41890
dc946850 418912007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41892
41893 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41894 prototype.
41895 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41896 (grub_heap_len): Likewise.
41897 (HEAP_SIZE): New macro.
41898 (grub_claim_heap): New function.
41899 (grub_machine_init): Don't claim heap directly. Call
41900 `grub_claim_heap'.
41901 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41902 (grub_available_iterate): New function.
41903
baa2a121 419042007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41905
41906 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41907 * configure.ac: Use it for testing the HOST and TARGET compilers.
41908
4fe9862e 419092006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41910
41911 * Makefile.in (enable_grub_emu): New variable.
41912 * configure.ac (--enable-grub-emu): New option.
41913 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41914 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41915 * conf/i386-pc.rmk: Likewise.
41916 * conf/powerpc-ieee1275.rmk: Likewise.
41917 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41918
a8aa5762 419192006-12-12 Marco Gerards <marco@gnu.org>
41920
41921 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41922
41923 * kern/env.c (grub_env_unset): Don't free the member `value' when
41924 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41925 pointer.
41926
41927 * normal/main.c (current_menu): Removed.
41928 (free_menu): Unset the `menu' environment variable.
41929 (grub_normal_menu_addentry): Make use of the environment variable
41930 `menu', instead of using the global `current_menu'. Allocate
41931 memory for the sourcecode of this entry.
41932 (read_config_file): New argument `nested', changed all callers.
41933 Only in the case of a new context, initialize a new menu. Set the
41934 `menu' environment variable.
41935 (grub_normal_execute): Don't set and unset the environment
41936 variable `menu' here anymore. Only free the menu when leaving the
41937 context.
41938
41939 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41940 leak.
41941
957b3a3e 419422006-12-11 Marco Gerards <marco@gnu.org>
41943
41944 * normal/menu_entry.c (run): Fix off by one bug so the last line
41945 is executed. Move the loader check to outside the loop.
41946
ef875714 419472006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41948
41949 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41950
4e739985 419512006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41952
41953 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41954 the number of sectors. Reported by Andrey Shuvikov
41955 <mr_hyro@yahoo.com>.
f19dbdb7 41956
790707f2 419572006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41958
41959 * kern/disk.c (grub_disk_read): When there is a read error, always
41960 try to read only the necessary data.
f19dbdb7 41961
790707f2 41962 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41963 disk/raid.c.
41964 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41965 prototype.
41966 [GRUB_UTIL] (grub_raid_fini): Likewise.
41967 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 41968 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 41969 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41970 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41971 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41972 and grub_raid_fini().
f19dbdb7 41973
03e58196 419742006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41975
41976 * include/grub/types.h (__unused): Rename to UNUSED.
41977 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41978 (grub_elf64_size): Likewise.
f19dbdb7 41979
ae4f23bf 419802006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41981
41982 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41983 grub_error_push and grub_error_pop in the error-handling path.
41984 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41985 length.
41986
2166cc83 419872006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41988
41989 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41990 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41992 (kernel_elf_SOURCES): Likewise.
41993 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41994 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41995 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41996 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41997 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41998 (elf_mod_SOURCES): New variable.
41999 (elf_mod_CFLAGS): Likewise.
42000 (elf_mod_LDFLAGS): Likewise.
42001 * include/grub/types.h (__unused): New macro.
42002 * include/grub/elfload.h: New file.
42003 * kern/elf.c: Likewise.
42004 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
42005 (ELF32_LOADMASK): New macro.
42006 (ELF64_LOADMASK): Likewise.
42007 (vmlinux): Removed.
42008 (grub_linux_load32): New function.
42009 (grub_linux_load64): Likewise.
42010 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
42011 Use grub_elf_t instead of grub_file_t.
42012
a09d5aa5 420132006-11-02 Hollis Blanchard <hollis@penguinppc.org>
42014
42015 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
42016 `catch_result' to struct set_color_args.
42017
d976fc51 420182006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
42019
42020 * normal/menu.c: Include grub/script.h.
42021 * normal/menu_entry.c: Likewise.
42022 * include/grub/normal.h: Do not include grub/script.h.
42023
67507549 420242006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42025
42026 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
42027
69203a99 420282006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42029
42030 * kern/disk.c (grub_disk_open): Print debug messages when opening a
42031 disk.
42032 (grub_disk_close): Print debug messages when closing a disk.
42033 (grub_disk_read): Print debug messages when disk read fails.
42034 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
42035 filesystem type.
42036 * kern/partition.c: Include misc.h.
42037 (grub_partition_iterate): Print debug messages when detecting
42038 partition type.
42039
e2b8278c 420402006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42041
42042 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
42043 is negative.
42044 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
42045
97b2f2ff 420462006-10-26 Hollis Blanchard <hollis@penguinppc.org>
42047
42048 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
42049 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
42050
6555d655 420512006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
42052
42053 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
42054 instead of sizeof(lv). Patch by Michael Guntsche.
42055
4d42b77f 420562006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
42057
42058 * disk/lvm.c: Rename VGS to VG_LIST.
42059 (grub_lvm_iterate): Change VGS->LV to VG-LV.
42060 (grub_lvm_open): Likewise.
42061 Thanks to Michael Guntsche for finding this bug.
42062
5d74d927 420632006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
42064
42065 * configure.ac (AC_INIT): Bumped to 1.95.
42066
a1bb27e4 420672006-10-14 Robert Millan <rmh@aybabtu.com>
42068
42069 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
42070 with "/dev/.static/dev/md".
42071
e0994b8b 420722006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42073
42074 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
42075 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
42076 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
42077 DRIVE_NAME are always freed.
42078
42079 * util/i386/pc/biosdisk.c (make_device_name): Add one into
42080 DOS_PART, as a DOS partition is counted from one instead of zero
42081 now. Reported by Robert Millan.
42082
ddd5cee9 420832006-10-14 Robert Millan <rmh@aybabtu.com>
42084
42085 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
42086 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
42087 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
42088 string returned by grub_guess_root_device.
42089 * util/i386/pc/grub-setup.c: Likewise.
42090 * util/i386/pc/grub-probefs.c: Likewise.
42091
42092 * util/i386/pc/grub-probefs.c: Rename to ...
42093 * util/i386/pc/grub-probe.c: ... this.
42094 * DISTLIST: Remove grub-probefs, add grub-probe.
42095 * conf/i386-efi.rmk: Likewise.
42096 * conf/i386-pc.rmk: Likewise.
42097 * util/i386/pc/grub-install.in: Likewise.
42098
42099 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
42100 choose which information we want to print.
42101
2b002173 421022006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42103
42104 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
42105 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
42106 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
42107 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
42108 video/readers/tga.c and video/i386/pc/vbeutil.c.
42109
421102006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
42111
42112 Added support for RAID and LVM.
f19dbdb7 42113
2b002173 42114 * disk/lvm.c: New file.
42115 * disk/raid.c: Likewise.
42116 * include/grub/lvm.h: Likewise.
f19dbdb7 42117 * include/grub/raid.h: Likewise.
2b002173 42118 * include/grub/util/lvm.h: Likewise.
42119 * include/grub/util/raid.h: Likewise.
42120 * util/lvm.c: Likewise.
42121 * util/raid.c: Likewise.
42122
42123 * include/grub/disk.h (grub_disk_dev_id): Add
42124 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
42125 (grub_disk_get_size): New prototype.
42126 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
42127 returns a partition.
42128 (grub_disk_get_size): New function.
f19dbdb7 42129
2b002173 42130 * kern/i386/pc/init.c (make_install_device): Copy the prefix
42131 verbatim if grub_install_dos_part is -2.
42132
42133 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
42134 and LVM devices.
42135
42136 * util/i386/pc/grub-setup.c (setup): New argument
42137 MUST_EMBED. Force embedding of GRUB when the argument is
42138 true. Close FILE before returning.
42139 (main): Add support for RAID and LVM.
f19dbdb7 42140
2b002173 42141 * conf/common.rmk: Add RAID and LVM modules.
42142 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
42143 util/lvm.c.
42144 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
42145
42146 * kern/misc.c (grub_strstr): New function.
42147 * include/grub/misc.h (grub_strstr): New prototype.
42148
050548d0 421492006-10-10 Tristan Gingold <tristan.gingold@bull.net>
42150
42151 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
42152
da849d2d 421532006-10-05 Tristan Gingold <tristan.gingold@bull.net>
42154
42155 * kern/misc.c (grub_strtoull): Guess the base only if not
42156 specified.
42157
97b2f2ff 421582006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 42159
42160 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
42161 PowerMac support.
42162
97b2f2ff 421632006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 42164
42165 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
42166
42167 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
42168 Remove `flags' argument. All callers changed.
42169 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
42170 (IEEE1275_IHANDLE_INVALID): New variable.
42171 (IEEE1275_CELL_INVALID): New variable.
42172 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
42173 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
42174 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
42175 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
42176 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
42177 codes from Open Firmware. All callers updated.
42178 (grub_ieee1275_next_property): Directly return Open Firmware return
42179 code.
42180 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
42181 Standardize error checking from `grub_ieee1275_get_property'.
42182 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
42183 `devalias' to `aliases'. Correct comments. Consolidate error paths.
42184
97b2f2ff 421852006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 42186
42187 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
42188 `instance_to_package_args' to `instance_to_path_args'.
42189
42190 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
42191 `grub_ieee1275_chosen'.
42192
42193 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
42194 `grub_ieee1275_interpret'.
42195
97b2f2ff 421962006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 42197
42198 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
42199
97b2f2ff 422002006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 42201
42202 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
42203 (__cmpdi): Likewise.
42204
42205 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
42206 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
42207 `grub_ssize_t'.
42208
02bb8acc 42209 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 42210
42211 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
42212 to type `grub_ssize_t'.
42213 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
42214
7f9a8531 422152006-09-22 Marco Gerards <marco@gnu.org>
42216
42217 * normal/script.c (grub_script_create_cmdmenu): Skip leading
42218 newlines.
42219
b5ef1102 422202006-09-22 Marco Gerards <marco@gnu.org>
42221
42222 * commands/echo.c: New file.
42223
42224 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
42225
42226 * conf/common.rmk (echo_mod_SOURCES): New variable.
42227 (echo_mod_CFLAGS): Likewise.
42228 (echo_mod_LDFLAGS): Likewise.
42229
2cff3677 422302006-09-22 Marco Gerards <marco@gnu.org>
42231
42232 * normal/main.c (get_line): Malloc memory instead of using
42233 preallocated memory. Removed the arguments `cmdline' and
42234 `max_len'. Updated all callers.
42235
6ba4688b 422362006-09-22 Marco Gerards <marco@gnu.org>
42237
42238 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
42239 (normal_mod_DEPENDENCIES): Likewise.
42240
42241 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
42242 (normal_mod_DEPENDENCIES): Likewise.
42243
42244 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
42245
e02ac02c 422462006-09-22 Johan Rydberg <jrydberg@gnu.org>
42247
42248 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
42249 programs.
42250 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
42251 (normal_mod_DEPENDENCIES): Likewise.
42252 * conf/i386-pc.mk: Regenerate.
42253 * conf/i386-efi.mk: Likewise
42254 * conf/common.mk: Likewise.
42255 * conf/powerpc-ieee1275.mk: Likewise.
42256 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 42257
8d252e44 422582006-09-22 Robert Millan <rmh@aybabtu.com>
42259
42260 Sync with i386 version.
42261 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
42262 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
42263
209bf7ac 422642006-09-21 Robert Millan <rmh@aybabtu.com>
42265
42266 Import from GRUB Legacy (lib/device.c):
42267 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
42268 (init_device_map) [__linux__]: Add support for I2O devices.
42269
6b146090 422702006-09-14 Marco Gerards <marco@gnu.org>
42271
42272 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
42273 `-melf_i386'.
42274
e38600a8 422752006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 42276
42277 * util/i386/pc/grub-install.in: Skip menu.lst when removing
42278 /boot/grub/*.lst.
78fa1790 42279
2952da5d 42280 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 42281
2952da5d 42282 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
42283 before adding it to device.map.
42284
01b82a64 422852006-08-15 Johan Rydberg <jrydberg@gnu.org>
42286
fe6b695a 42287 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 42288 compiles a file; using the -MD option.
42289 * conf/common.mk: Regenerate.
42290 * conf/i386-pc.mk: Likewise.
42291 * conf/i386-efi.mk: Likewise.
42292 * conf/powerpc-ieee1275.mk: Likewise.
42293 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 42294
1064790d 422952006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
42296
42297 Move the prototypes of grub_setjmp and grub_longjmp to
42298 cpu/setjmp.h, so that each architecture may specify different
42299 attributes.
f19dbdb7 42300
1064790d 42301 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
42302 (grub_longjmp): Likewise.
42303 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
42304 (grub_longjmp): Likewise.
42305 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
42306 (grub_longjmp): Likewise.
42307
42308 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
42309 [!GRUB_UTIL] (grub_longjmp): Removed.
42310
29dda3ed 423112006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
42312
42313 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
42314 "color!" method does not return any value.
42315
ad2a06ed 423162006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42317
42318 * include/grub/bitmap.h: New file.
42319
42320 * include/grub/i386/pc/vbeutil.h: Likewise.
42321
42322 * video/bitmap.c: Likewise.
42323
42324 * video/readers/tga.c: Likewise.
42325
42326 * video/i386/pc/vbeutil.c: Likewise.
42327
42328 * commands/videotest.c: Code cleanup and updated to reflect to new
42329 video API.
42330
42331 * term/gfxterm.c: Likewise.
42332
42333 * video/video.c: Likewise.
42334
42335 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
42336 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
42337 (bitmap_mod_SOURCES): New entry.
42338 (bitmap_mod_CFLAGS): Likewise.
42339 (bitmap_mod_LDFLAGS): Likewise.
42340 (tga_mod_SOURCES): Likewise.
42341 (tga_mod_CFLAGS): Likewise.
42342 (tga_mod_LDFLAGS): Likewise.
42343
42344 * include/grub/video.h (grub_video_blit_operators): New enum type.
42345 (grub_video_render_target): Changed as forward declaration and moved
42346 actual definition to be video driver specific.
42347 (grub_video_adapter.blit_bitmap): Added blitting operator.
42348 (grub_video_adapter.blit_render_target): Likewise.
42349 (grub_video_blit_bitmap): Likewise.
42350 (grub_video_blit_render_target): Likewise.
42351
42352 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
42353 driver specific render target definition.
42354 (grub_video_vbe_map_rgba): Added driver internal helper.
42355 (grub_video_vbe_unmap_color): Updated to use
42356 grub_video_i386_vbeblit_info.
42357 (grub_video_vbe_get_video_ptr): Likewise.
42358
42359 * include/grub/i386/pc/vbeblit.h
42360 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
42361 grub_video_i386_vbeblit_info.
42362 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42363 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42364 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42365 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42366 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42367 (grub_video_i386_vbeblit_index_index): Likewise.
42368 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
42369 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42370 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42371 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
42372 operator.
42373 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
42374 operator.
42375
42376 * video/i386/pc/vbeblit.c: Updated to reflect changes on
42377 include/grub/i386/pc/vbeblit.h.
42378
42379 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
42380 Updated to use grub_video_i386_vbeblit_info.
42381 (grub_video_i386_vbefill_R8G8B8): Likewise.
42382 (grub_video_i386_vbefill_index): Likewise.
42383 (grub_video_i386_vbefill): Added generic filler.
42384
42385 * video/i386/pc/vbefill.c: Updated to reflect changes on
42386 include/grub/i386/pc/vbefill.h.
42387
42388 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
42389 grub_video_i386_vbeblit_info.
42390 (grub_video_vbe_unmap_color): Likewise.
42391 (grub_video_vbe_blit_glyph): Likewise.
42392 (grub_video_vbe_scroll): Likewise.
42393 (grub_video_vbe_draw_pixel): Removed function.
42394 (grub_video_vbe_get_pixel): Likewise.
42395 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
42396 updated code to use it.
42397 (common_blitter): Added common blitter for render target and bitmap.
42398 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
42399 (grub_video_vbe_blit_render_target): Likewise.
42400
bc8c036d 424012006-07-30 Johan Rydberg <jrydberg@gnu.org>
42402
42403 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
42404 is in text mode if there is no console control protocol instance
42405 available.
42406
684a8eff 424072006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42408
42409 * include/grub/video.h: Code cleanup.
42410
42411 * include/grub/i386/pc/vbe.h: Likewise.
42412
42413 * video/i386/pc/vbe.c: Likewise.
42414
42415 * video/i386/pc/vbeblit.c: Likewise.
42416
42417 * video/i386/pc/vbefill.c: Likewise.
42418
42419 * video/video.c: Likewise. Also added more comments.
42420
5915059b 424212006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42422
42423 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42424 (struct grub_biosdisk_dap): Likewise.
42425
42426 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42427 linkage settings for all functions.
42428
90ce5d56 424292006-07-12 Marco Gerards <marco@gnu.org>
42430
42431 * configure.ac (--enable-mm-debug): Fix typo.
42432
42433 * genkernsyms.sh.in: Use proper quoting for `CC'.
42434
43e7f879 424352006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42436
42437 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42438 (normal_mod_ASFLAGS): Remove "-m32".
42439
4889bdec 424402006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42441
42442 * util/misc.c: Include config.h.
42443 [!HAVE_MEMALIGN]: Do not include malloc.h.
42444 (grub_memalign): Use posix_memalign, if present. Then, use
42445 memalign, if present. Otherwise, emit an error.
42446
42447 * util/grub-emu.c: Do not include malloc.h.
42448
42449 * include/grub/util/misc.h: Include unistd.h. This is required for
42450 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42451 D. Eades III <hde@foobar-qux.org>.
42452
42453 * configure.ac (AC_GNU_SOURCE): Added.
42454 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42455 type.
42456
fd39d4da 424572006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42458
42459 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42460 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42461
b786f3b5 424622006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42463
42464 * include/grub/types.h (grub_host_addr_t): Rename to
42465 grub_target_addr_t.
42466 (grub_host_off_t): Rename to grub_target_off_t.
42467 (grub_host_size_t): Rename to grub_target_size_t.
42468 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42469 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42470
42471 * include/grub/kernel.h (struct grub_module_header): Change type
42472 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42473 (grub_module_info): Likewise.
f19dbdb7 42474
051988bb 424752006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42476
42477 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42478 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42479 Velazquez <jesus.velazquez@gmail.com>.
42480
deae281b 424812006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42482
42483 Count partitions from 1 instead of 0 in the string representation
42484 of partitions. Still use 0-based internally.
f19dbdb7 42485
deae281b 42486 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42487 (sun_partition_map_iterate): Use grub_partition_t instead of
42488 struct grub_partition *. Cast DESC->START_CYLINDER to
42489 grub_uint64_t after converting the endian.
42490 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42491 (sun_partition_map_get_name): Add 1 to P->INDEX.
42492
42493 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42494 PCDATA->DOS_PART.
42495 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42496
42497 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42498 zero instead of one.
42499 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42500 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42501
42502 * partmap/apple.c (apple_partition_map_iterate): Change the type
42503 of POS to unsigned.
42504 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42505 (apple_partition_map_get_name): Add 1 into P->INDEX.
42506
42507 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42508 of POS to unsigned.
42509 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42510 calculate the offset of a partition.
42511 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42512 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42513
42514 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42515 SECTOR to grub_disk_addr_t.
42516 (acorn_partition_map_iterate): Likewise.
42517 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42518 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42519 top.
42520 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42521
42522 * kern/i386/pc/init.c (make_install_device): Add 1 into
42523 GRUB_INSTALL_DOS_PART.
42524
42525 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42526 conditional.
42527
524a1e6a 425282006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42529
42530 Clean up the code to support 64-bit addressing in disks and
42531 files. This change is not enough for filesystems yet.
f19dbdb7 42532
524a1e6a 42533 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42534 type of "start" to grub_uint64_t.
42535 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42536 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42537 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42538 convert addresses.
42539
42540 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42541 to grub_disk_addr_t.
42542
42543 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42544 string.
42545
42546 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42547
42548 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42549 to char *.
42550
42551 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42552
42553 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42554
42555 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42556
42557 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42558 to grub_off_t, to detect an error from grub_file_seek.
42559 (grub_multiboot_load_elf32): Likewise.
42560
42561 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42562 maximum unsigned long value when an overflow is detected.
42563 (grub_strtoull): New function.
42564 (grub_divmod64): Likewise.
42565 (grub_lltoa): use grub_divmod64.
42566
42567 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42568 grub_disk_addr_t.
42569 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42570 the pointer to next character. Use grub_strtoull instead of
42571 grub_strtoul.
42572 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42573 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42574 respectively.
42575
fe6b695a 42576 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 42577 return value is signed.
42578 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42579 test if OFFSET is less than zero, as OFFSET is unsigned now.
42580
42581 * kern/disk.c (struct grub_disk_cache): Change the type of
42582 "sector" to grub_disk_addr_t.
42583 (grub_disk_cache_get_index): Change the type of SECTOR to
42584 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42585 unsigned after shifting.
42586 (grub_disk_cache_invalidate): Change the type of SECTOR to
42587 grub_disk_addr_t.
42588 (grub_disk_cache_unlock): Likewise.
42589 (grub_disk_cache_store): Likewise.
42590 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42591 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42592 grub_disk_addr_t and grub_uint64_t, respectively.
42593 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42594 body, as the value of OFFSET is tweaked by
42595 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42596 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42597 respectively.
42598 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42599 body, as the value of OFFSET is tweaked by
42600 grub_disk_check_range. Change the types of LEN and N to
42601 grub_size_t.
42602
42603 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42604 and "saved_offset" to grub_off_t.
42605 (test_header): Cast BUF to char *.
42606 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42607 to char *.
42608 (grub_gzio_read): Change the types of OFFSET and SIZE to
42609 grub_off_t and grub_size_t, respectively.
42610
42611 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42612 Removed.
42613 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42614 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42615 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42616 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42617 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42618
42619 * include/grub/types.h (grub_off_t): Unconditionally set to
42620 grub_uint64_t.
42621 (grub_disk_addr_t): Changed to grub_uint64_t.
42622
42623 * include/grub/partition.h (struct grub_partition): Change the
42624 types of "start", "len" and "offset" to grub_disk_addr_t,
42625 grub_uint64_t and grub_disk_addr_t, respectively.
42626 (grub_partition_get_start): Return grub_disk_addr_t.
42627 (grub_partition_get_len): Return grub_uint64_t.
42628
42629 * include/grub/misc.h (grub_strtoull): New prototype.
42630 (grub_divmod64): Likewise.
42631
42632 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42633 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42634 grub_off_t, respectively.
42635 All callers and references changed.
42636
42637 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42638 grub_size_t in "read".
42639 All callers and references changed.
42640
42641 * include/grub/file.h (struct grub_file): Change the types of
42642 "offset" and "size" to grub_off_t and grub_off_t,
42643 respectively. Change the type of SECTOR to grub_disk_addr_t in
42644 "read_hook".
42645 (grub_file_read): Change the type of LEN to grub_size_t.
42646 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42647 grub_off_t.
42648 (grub_file_size): Return grub_off_t.
42649 (grub_file_tell): Likewise.
42650 All callers and references changed.
42651
42652 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42653 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42654 "write".
42655 (struct grub_disk): Change the type of "total_sectors" to
42656 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 42657 "read_hook".
524a1e6a 42658 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42659 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42660 (grub_disk_write): Likewise.
42661 All callers and references changed.
42662
42663 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42664 char * for grub_strncmp to silence gcc.
42665 (grub_iso9660_mount): Likewise.
42666 (grub_iso9660_mount): Likewise.
42667 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42668 return statement.
42669 (grub_iso9660_iterate_dir): Likewise.
42670 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42671
42672 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42673 LEN to grub_disk_addr_t and grub_size_t, respectively.
42674
42675 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42676
42677 * fs/jfs.c (grub_jfs_read_file): Likewise.
42678
42679 * fs/minix.c (grub_jfs_read_file): Likewise.
42680
42681 * fs/sfs.c (grub_jfs_read_file): Likewise.
42682
42683 * fs/ufs.c (grub_jfs_read_file): Likewise.
42684
42685 * fs/xfs.c (grub_jfs_read_file): Likewise.
42686
42687 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42688 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42689 respectively.
42690
42691 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42692 BLKNR to -1 instead of returning GRUB_ERRNO.
42693 (grub_ext2_read_file): Change the types of SECTOR and
42694 LEN to grub_disk_addr_t and grub_size_t, respectively.
42695
42696 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42697 LEN to grub_disk_addr_t and grub_size_t, respectively.
42698
42699 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42700 grub_file_read.
42701
42702 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42703 string. Do not cast SECTOR explicitly.
42704
42705 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42706 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42707 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42708 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42709 over 2TB and LBA mode is not supported, raise an error.
42710 (get_safe_sectors): New function.
42711 (grub_biosdisk_read): Use get_safe_sectors.
42712 (grub_biosdisk_write): Likewise.
42713
42714 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42715 (grub_efidisk_write): Likewise.
42716
42717 * disk/loopback.c (delete_loopback): Cosmetic changes.
42718 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42719 correctly.
42720 (grub_loopback_open): Likewise.
42721 (grub_loopback_read): Likewise. Also, change the type of POS to
42722 grub_off_t, and fix the usage of grub_memset.
42723
42724 * commands/i386/pc/play.c: Include grub/machine/time.h.
42725
42726 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42727 print FILE->SIZE.
42728
42729 * commands/configfile.c: Include grub/env.h.
42730
42731 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42732 GRUB_ERRNO directly instead. Change the type of POS to
42733 grub_off_t. Follow the coding standard.
42734
42735 * commands/blocklist.c: Include grub/partition.h.
42736 (grub_cmd_blocklist): Return an error if the underlying device is
42737 not a disk. Take the starting sector of a partition into account,
42738 if a partition is used.
42739
42740 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42741 a length field.
42742 (lba_mode): Support 64-bit addresses.
42743 (chs_mode): Likewise.
42744 (copy_buffer): Adapted to the new offsets of a length field and a
42745 segment field.
42746 (blocklist_default_start): Allocate 64-bit space.
42747
42748 * boot/i386/pc/boot.S (force_lba): Removed.
42749 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 42750 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 42751 space.
42752 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42753 is useless.
42754 (lba_mode): Refactored to support a 64-bit address. More size
42755 optimization.
42756 (setup_sectors): Likewise.
42757
53af98ad 427582006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42759
42760 * DISTLIST: Added include/grub/i386/linux.h. Removed
42761 include/grub/i386/pc/linux.h
42762
42763 * configure.ac (AC_INIT): Bumped to 1.94.
42764
42765 * config.guess: Updated from gnulib.
42766 * config.sub: Likewise.
42767 * install-sh: Likewise.
42768 * mkinstalldirs: Likewise.
42769
b4c1940a 427702006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42771
42772 * conf/common.rmk (grub_modules_init.lst): Depended on
42773 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42774 MODSRCFILES.
42775
42776 * genmk.rb (PModule::rule): Reverted the previous change.
42777
cfca1cfd 427782006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42779
42780 * conf/common.rmk (grub_modules_init.lst): Depends on
42781 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42782 that the target does not exist before producing.
42783 (grub_modules_init.h): Remove the target before generating.
42784 (grub_emu_init.c): Likewise.
42785
42786 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42787
aa6d7826 427882006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42789
42790 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42791 for the target-specific tests. Make sure that we also have the
42792 up-to-date target variables for those tests.
42793
26c607b9 427942006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42795
42796 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42797 (PModule::rule): Likewise.
42798
0162321a 427992006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42800
42801 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42802 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42803 target-specific flags should be prefixed.
42804 (PModule::rule): Likewise.
42805
6c826348 428062006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42807
42808 * configure.ac (CMP): Check if cmp is available explicitly.
42809
b977bf01 428102006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42811
42812 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42813 (target_cpu): New variable.
42814 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 42815
b977bf01 42816 * util/i386/pc/grub-install.in (host_cpu): Removed.
42817 (target_cpu): New variable.
42818 (pkglibdir): Use target_cpu instead of host_cpu.
42819
42820 * util/genmoddep.c: Removed.
f19dbdb7 42821
b977bf01 42822 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42823 instead of GRUB_HOST_SIZEOF_VOID_P.
42824 * kern/dl.c: Likewise.
42825
42826 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42827 ...
42828 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42829 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42830 (GRUB_TARGET_SIZEOF_LONG): ... this.
42831 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42832 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42833 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42834 to ...
42835 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42836 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42837 (GRUB_TARGET_SIZEOF_LONG): ... this.
42838 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42839 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42840 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42841 to ...
42842 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42843 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42844 (GRUB_TARGET_SIZEOF_LONG): ... this.
42845 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42846 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42847
42848 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42849 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42850 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42851 instead of GRUB_HOST_SIZEOF_LONG.
42852 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42853 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42854 GRUB_CPU_WORDS_BIGENDIAN.
42855 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42856 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42857 grub_host_ssize_t.
42858
42859 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42860 (genmoddep_SOURCES): Likewise.
42861 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42862 (genmoddep_SOURCES): Likewise.
42863 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42864 (genmoddep_SOURCES): Likewise.
42865 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42866 Likewise.
42867 (genmoddep_SOURCES): Likewise.
42868
42869 * genmoddep.awk: New file.
42870
42871 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42872 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42873 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42874 (PModule::rule): Likewise.
42875 (Program::rule): Likewise.
42876 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42877 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42878 respectively.
42879
42880 * configure.ac: Rewritten intensively to use host and target
42881 instead of build and host, respectively.
42882
42883 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42884 (host_cpu): Removed.
42885 (target_cpu): New variable.
42886 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42887 (BUILD_CC): Removed.
42888 (BUILD_CFLAGS): Likewise.
42889 (BUILD_CPPFLAGS): Likewise.
42890 (TARGET_CC): New variable.
42891 (TARGET_CFLAGS): Likewise.
42892 (TARGET_CPPFLAGS): Likewise.
42893 (TARGET_LDFLAGS): Likewise.
42894 (AWK): Likewise.
42895 (include): Use target_cpu instead of host_cpu.
42896 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 42897
b977bf01 42898 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42899
f09771a1 429002006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42901
42902 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42903 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42904 field 'false' to 'exec_on_false'.
42905 (grub_script_create_cmdif): Renamed argument names to reflect above
42906 changes.
42907
42908 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42909
42910 * normal/script.c (grub_script_create_cmdif): Likewise.
42911
118f4fb3 429122006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42913
42914 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42915 top.
42916 (grub_hfsplus_btree_recptr): Likewise.
42917 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42918 FILEBLOCK both to pass a block number and store next block
42919 number.
42920 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42921 overflow file correctly. Specify errors appropriately, because
42922 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42923 grub_hfsplus_btree_recptr to get the pointer to a found key.
42924 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42925 is found.
42926
42927 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42928 linux.mod.
42929 (_linux_mod_SOURCES): New variable.
42930 (_linux_mod_CFLAGS): Likewise.
42931 (_linux_mod_LDFLAGS): Likewise.
42932 (linux_mod_SOURCES): Likewise.
42933 (linux_mod_CFLAGS): Likewise.
42934 (linux_mod_LDFLAGS): Likewise.
42935
42936 * DISTLIST: Added loader/i386/efi/linux.c,
42937 loader/i386/efi/linux_normal.c and
42938 include/grub/i386/efi/loader.h.
42939
42940 * loader/i386/efi/linux.c: New file.
42941 * loader/i386/efi/linux_normal.c: Likewise.
42942 * include/grub/i386/efi/loader.h: Likewise.
42943
89a7d726 429442006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42945
42946 * commands/blocklist.c: New file.
42947
42948 * DISTLIST: Added commands/blocklist.c.
42949
42950 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 42951 color for the background, and a darker color for the foreground.
89a7d726 42952 (grub_console_checkkey): Return READ_KEY.
42953 (grub_console_cls): Set the background to
42954 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42955
42956 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42957
42958 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42959 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42960
42961 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42962 prototype.
42963
42964 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42965 BG. The spec is wrong again.
42966
42967 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42968 prototype.
42969 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42970
42971 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42972 commands/blocklist.c.
42973 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 42974
89a7d726 42975 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42976 (blocklist_mod_SOURCES): New variable.
42977 (blocklist_mod_CFLAGS): Likewise.
42978 (blocklist_mod_LDFLAGS): Likewise.
42979
75c8f258 429802006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42981
42982 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42983 duplication.
42984 (lba_mode): Use %eax more intensively to reduce the code size.
42985
da2eb181 429862006-05-20 Marco Gerards <marco@gnu.org>
42987
42988 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42989
42990 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42991 for `menuentry'.
42992 (script): Accept leading newlines.
42993 (newlines): New rule to describe 0 or more newlines.
42994 (commands): Accept `command' with trailing newline. Fixed the
42995 order in which arguments were passed to `grub_script_add_cmd'.
42996 Accept commands separated by newlines.
42997 (function): Changed to accept newlines.
42998 (menuentry) Rewritten.
42999
43000 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
43001 front of the list, instead of to the end.
43002
577b4050 430032006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
43004
43005 * util/i386/pc/grub-install.in (bindir): New variable.
43006 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
43007 Shaver <lbgwjl@gmail.com>.
43008
0d6e1189 430092006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
43010
43011 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
43012 grub/machine/linux.h
43013 * loader/i386/pc/linux.c: Likewise.
43014
43015 * include/grub/i386/pc/linux.h: Moved to ...
43016 * include/grub/i386/linux.h: ... here.
43017
43018 * include/grub/i386/linux.h (struct linux_kernel_params): New
43019 struct.
f19dbdb7 43020
31b86e9f 430212006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
43022
43023 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
43024 checking.
43025 (grub_video_vbe_blit_glyph): Likewise.
43026 (grub_video_vbe_blit_bitmap): Likewise.
43027 (grub_video_vbe_blit_render_target): Likewise.
43028
83b984de 430292006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
43030
43031 * configure.ac (--with-platform): Properly quote the square
43032 brackets.
43033
5f0413bd 430342006-05-08 Marco Gerards <marco@gnu.org>
43035
43036 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
43037 this...
43038 (kernel_elf_HEADERS): ...to this. Updated all users.
43039 (grubof_symlist.c): Renamed from this...
43040 (kernel_elf_symlist.c): ...to this. Updated all users.
43041 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
43042 (grubof_SOURCES): Renamed from this...
43043 (kernel_elf_SOURCES): ...to this.
43044 (grubof_HEADERS): Renamed from this...
43045 (kernel_elf_HEADERS): ...to this.
43046 (grubof_CFLAGS): Renamed from this...
43047 (kernel_elf_CFLAGS): ...to this.
43048 (grubof_ASFLAGS): Renamed from this...
43049 (kernel_elf_ASFLAGS): ...to this.
43050 (grubof_LDFLAGS): Renamed from this...
43051 (kernel_elf_LDFLAGS): ...to this.
43052
43053 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
43054 this...
43055 (kernel_elf_HEADERS): ...to this. Updated all users.
43056 (grubof_symlist.c): Renamed from this...
43057 (kernel_elf_symlist.c): ...to this. Updated all users.
43058 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
43059 (grubof_SOURCES): Renamed from this...
43060 (kernel_elf_SOURCES): ...to this.
43061 (grubof_HEADERS): Renamed from this...
43062 (kernel_elf_HEADERS): ...to this.
43063 (grubof_CFLAGS): Renamed from this...
43064 (kernel_elf_CFLAGS): ...to this.
43065 (grubof_ASFLAGS): Renamed from this...
43066 (kernel_elf_ASFLAGS): ...to this.
43067 (grubof_LDFLAGS): Renamed from this...
43068 (kernel_elf_LDFLAGS): ...to this.
43069
43070 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
43071 `kernel.elf' instead of `grubof'.
43072
05568c2e 430732006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
43074
43075 Add --with-platform to configure. Use pkglibdir instead of
43076 pkgdatadir. This is reported by Roger Leigh.
43077
43078 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
43079 (host_vendor): Likewise.
43080 (host_os): Likewise.
43081 (pkgdatadir): Likewise.
43082 (platform): New variable.
43083 (pkglibdir): Likewise.
43084 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 43085
05568c2e 43086 * util/i386/pc/grub-install.in (datadir): Removed.
43087 (host_vendor): Likewise.
43088 (host_os): Likewise.
43089 (pkgdatadir): Likewise.
43090 (platform): New variable.
43091 (pkglibdir): Likewise.
43092 Use PKGLIBDIR instead of PKGDATADIR.
43093
43094 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
43095 instead of GRUB_DATADIR.
43096 (main): Likewise.
43097 * util/i386/pc/grub-mkimage.c (usage): Likewise.
43098 (main): Likewise.
43099 * util/i386/efi/grub-mkimage.c (usage): Likewise.
43100 (main): Likewise.
43101
43102 * configure.ac (--with-platform): New option.
43103 Use PLATFORM instead of HOST_VENDOR to specify a platform.
43104
43105 * Makefile.in: Include a makefile based on PLATFORM instead of
43106 HOST_VENDOR.
43107 (pkgdatadir): Not appended by the machine type.
43108 (pkglibdir): Appended by the machine type.
43109 (host_vendor): Removed.
43110 (platform): New variable.
43111 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
43112 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
43113 (uninstall): Likewise.
43114
4e93851c 431152006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
43116
43117 Use the environment context in the menu. Remove the commands
43118 "default" and "timeout", and use variables instead.
f19dbdb7 43119
4e93851c 43120 * normal/menu.c: Include grub/env.h.
43121 (print_entry): Cast TITLE to silence gcc.
43122 (get_timeout): New function.
43123 (set_timeout): Likewise.
43124 (get_entry_number): Likewise.
43125 (run_menu): Use a default entry, a fallback entry and a timeout
43126 in the environment variables "default", "fallback" and
43127 "timeout". Also, tweak the default entry if it is not within the
43128 current menu entries.
43129 (grub_menu_run): Use a fallback entry in the environment variable
43130 "fallback".
43131
43132 * normal/main.c (read_config_file): Do not initialize
43133 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
43134 NEWMENU->TIMEOUT.
43135 (grub_normal_execute): Use a data slot to store the menu.
43136
43137 * include/grub/normal.h (struct grub_menu): Removed default_entry,
43138 fallback_entry and timeout.
43139 (struct grub_menu_list): Removed.
43140 (grub_menu_list_t): Likewise.
43141 (struct grub_context): Likewise.
43142 (grub_context_t): Likewise.
43143 (grub_context_get): Likewise.
43144 (grub_context_get_current_menu): Likewise.
43145 (grub_context_push_menu): Likewise.
43146 (grub_context_pop_menu): Likewise.
43147 (grub_default_init): Likewise.
43148 (grub_default_fini): Likewise.
43149 (grub_timeout_init): Likewise.
43150 (grub_timeout_fini): Likewise.
43151
43152 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
43153 and timeout.mod.
43154 (normal_mod_SOURCES): Removed normal/context.c.
43155
43156 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
43157 commands/default.c, commands/timeout.c and normal/context.c.
43158 (normal_mod_SOURCES): Removed normal/context.c.
43159
43160 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
43161 commands/timeout.c and normal/context.c.
43162 (normal_mod_SOURCES): Removed normal/context.c.
43163
43164 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
43165 commands/default.c, commands/timeout.c and normal/context.c.
43166 (normal_mod_SOURCES): Removed normal/context.c.
43167
43168 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
43169 timeout.mod.
43170 (default_mod_SOURCES): Removed.
43171 (default_mod_CFLAGS): Likewise.
43172 (default_mod_LDFLAGS): Likewise.
43173 (timeout_mod_SOURCES): Removed.
43174 (timeout_mod_CFLAGS): Likewise.
43175 (timeout_mod_LDFLAGS): Likewise.
43176
43177 * DISTLIST: Removed commands/default.c, commands/timeout.c and
43178 normal/context.c.
43179
43180 * commands/default.c: Removed.
43181 * commands/timeout.c: Likewise.
43182 * normal/context.c: Likewise.
43183
1eb9cc1d 431842006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
43185
43186 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
43187
385bd9c1 431882006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
43189
43190 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
43191 "next" to "prev" for readability.
43192 (struct grub_env_sorted_var): New struct.
43193 (grub_env_context): Renamed to ...
43194 (initial_context): ... this.
43195 (grub_env_var_context): Renamed to ...
43196 (current_context): ... this.
43197 (grub_env_find): Look only at CURRENT_CONTEXT.
43198 (grub_env_context_open): Rewritten to copy exported variables from
43199 previous context.
43200 (grub_env_context_close): Rewritten according to the new
43201 scheme. Also, add an assertion to prevent the initial context from
43202 removed.
43203 (grub_env_insert): Removed the code for the sorted list.
43204 (grub_env_remove): Likewise.
43205 (grub_env_export): Simply mark the variable with
43206 GRUB_ENV_VAR_GLOBAL.
43207 (grub_env_set): A cosmetic change for naming consistency.
43208 (grub_env_get): Likewise.
43209 (grub_env_unset): Likewise.
43210 (grub_env_iterate): Rewritten to sort variables within this
43211 function.
43212 (grub_register_variable_hook): Fixed for naming consistency. Call
43213 grub_env_find again, only if NAME is not found at the first time.
43214 (mangle_data_slot_name): New function.
43215 (grub_env_set_data_slot): Likewise.
43216 (grub_env_get_data_slot): Likewise.
43217 (grub_env_unset_data_slot): Likewise.
43218
43219 * include/grub/env.h (grub_env_var_type): New enum.
43220 (GRUB_ENV_VAR_LOCAL): New constant.
43221 (GRUB_ENV_VAR_GLOBAL): Likewise.
43222 (GRUB_ENV_VAR_DATA): Likewise.
43223 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
43224 "type".
43225 (grub_env_set): Replace VAR with NAME for consistency.
43226 (grub_register_variable_hook): Likewise.
43227 (grub_env_export): Specify the name of the argument.
43228 (grub_env_set_data_slot): New prototype.
43229 (grub_env_get_data_slot): Likewise.
43230 (grub_env_unset_data_slot): Likewise.
43231
7f362539 432322006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
43233
43234 Extend the loader so that GRUB can accept a loader which comes
43235 back to GRUB when a loaded image exits. Also, this change adds
43236 support for a chainloader on EFI.
f19dbdb7 43237
7f362539 43238 * term/efi/console.c: Include grub/misc.h.
43239 (grub_console_checkkey): Display a scan code on the top for
43240 debugging. This will be removed once the EFI port gets stable.
43241 Correct the scan code mapping.
43242
43243 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
43244 allocate memory from larger regions, in order to reduce the number
43245 of allocated regions. Otherwise, the MacOSX loader panics.
43246 (filter_memory_map): Avoid less than 1MB for compatibility with
43247 other loaders.
43248 (add_memory_regions): Allocate from the tail of a region, if
43249 possible, to avoid allocating a region near to 1MB, for the MacOSX
43250 loader.
43251
43252 * kern/efi/init.c (grub_efi_set_prefix): Specify
43253 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
43254
43255 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
43256 argument IMAGE_HANDLE and specify it to get a loaded image.
43257 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
43258 grub_efi_get_loaded_image.
fe6b695a 43259 (grub_efi_get_filename): Divide the length by the size of
7f362539 43260 grub_efi_char16_t.
43261 (grub_efi_get_device_path): New function.
43262 (grub_efi_print_device_path): Print End Device Path nodes. Divide
43263 the length by the size of grub_efi_char16_t for a file path device
43264 path node.
43265
43266 * kern/loader.c (grub_loader_noreturn): New variable.
43267 (grub_loader_set): Accept a new argument NORETURN. Set
43268 GRUB_LOADER_NORETURN to NORETURN.
43269 All callers changed.
43270 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
43271 grub_machine_fini.
43272
43273 * include/grub/efi/efi.h (grub_efi_get_device_path): New
43274 prototype.
43275 (grub_efi_get_loaded_image): Take an argument to specify an image
43276 handle.
43277
43278 * include/grub/loader.h (grub_loader_set): Added one more argument
43279 NORETURN.
43280
43281 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
43282 instead of grub_efi_open_protocol.
43283 (grub_efidisk_get_device_name): Likewise.
43284 (grub_efidisk_close): Print a newline.
43285 (grub_efidisk_get_device_handle): Fixed to use
43286 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
43287 GRUB_EFI_DEVICE_PATH_TYPE.
43288
43289 * disk/efi/efidisk.c (device_path_guid): Moved to ...
43290 * kern/efi/efi.c (device_path_guid): ... here.
43291
43292 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
43293 chain.mod.
43294 (kernel_mod_HEADERS): Added efi/disk.h.
43295 (_chain_mod_SOURCES): New variable.
43296 (_chain_mod_CFLAGS): Likewise.
43297 (_chain_mod_LDFLAGS): Likewise.
43298 (chain_mod_SOURCES): Likewise.
43299 (chain_mod_CFLAGS): Likewise.
43300 (chain_mod_LDFLAGS): Likewise.
43301
43302 * DISTLIST: Added include/grub/efi/chainloader.h,
43303 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
43304
43305 * include/grub/efi/chainloader.h: New file.
43306 * loader/efi/chainloader.c: Likewise.
43307 * loader/efi/chainloader_normal.c: Likewise.
43308
c0111d6e 433092006-04-30 Marco Gerards <marco@gnu.org>
43310
43311 * commands/configfile.c (grub_cmd_source): New function.
43312 (GRUB_MOD_INIT): Register the commands `source' and `.'.
43313 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
43314
df5341da 433152006-04-30 Marco Gerards <marco@gnu.org>
43316
43317 * normal/execute.c (grub_script_execute_cmd): Change the return
43318 type to `grub_err_t'. Correctly return the error.
43319 (grub_script_execute_cmdline): In case a command line is not a
43320 command or a function, try to interpret it as an assignment.
43321
f85934bd 433222006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
43323
43324 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
43325 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
43326 skip a node whose name is obviously invalid as UTF-16,
43327 i.e. contains a NUL character. Stop the iteration when the last
43328 directory entry is found. Instead of using the return value of
43329 grub_hfsplus_btree_iterate_node, store the value in RET and use
43330 it, because the iterator can be stopped by the last directory
43331 entry.
43332
8f8a2cf8 433332006-04-30 Marco Gerards <marco@gnu.org>
43334
43335 * include/grub/env.h (grub_env_export): New prototype. Reported
43336 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
43337
a27e84ce 433382006-04-30 Marco Gerards <marco@gnu.org>
43339
43340 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
43341 size of the extents in a catalog file record.
43342
eaef0553 433432006-04-29 Marco Gerards <marco@gnu.org>
43344
43345 * commands/configfile.c (grub_cmd_configfile): Execute the
43346 configfile within its own context.
43347
43348 * include/grub/env.h (grub_env_context_open): New prototype.
43349 (grub_env_context_close): Likewise.
43350
43351 * kern/env.c (grub_env): Removed.
43352 (grub_env_sorted): Likewise.
43353 (grub_env_context): New variable.
43354 (grub_env_var_context): Likewise.
43355 (grub_env_find): Search both the active context and the global
43356 context.
43357 (grub_env_context_open): New function.
43358 (grub_env_context_close): Likewise.
43359 (grub_env_insert): Likewise.
43360 (grub_env_remove): Likewise.
43361 (grub_env_export): Likewise.
43362 (grub_env_set): Changed to use helper functions to avoid code
43363 duplication.
43364 (grub_env_iterate): Rewritten so both the current context and the
43365 global context are being used.
43366
43367 * normal/command.c (export_command): New function.
43368 (grub_command_init): Register the `export' function.
43369
7b455f4d 433702006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
43371
43372 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
43373 explicitly to suppress gcc's warnings.
43374 * fs/fat.c (grub_fat_find_dir): Likewise.
43375 (grub_fat_label): Likewise.
43376 * fs/xfs.c (grub_xfs_read_inode): Likewise.
43377 (grub_xfs_mount): Likewise.
43378 (grub_xfs_label): Likewise.
43379 * fs/affs.c (grub_affs_mount): Likewise.
43380 (grub_affs_label): Likewise.
43381 (grub_affs_iterate_dir): Likewise.
43382 * fs/sfs.c (grub_sfs_mount): Likewise.
43383 (grub_sfs_iterate_dir): Likewise.
43384 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
43385 * fs/hfs.c (grub_hfs_mount): Likewise.
43386 (grub_hfs_cmp_catkeys): Likewise.
43387 (grub_hfs_find_dir): Likewise.
43388 (grub_hfs_dir): Likewise.
43389 (grub_hfs_label): Likewise.
43390 * fs/jfs.c (grub_jfs_mount): Likewise.
43391 (grub_jfs_opendir): Likewise.
43392 (grub_jfs_getent): Likewise.
43393 (grub_jfs_lookup_symlink): Likewise.
43394 (grub_jfs_label): Likewise.
43395 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
43396 (grub_hfsplus_iterate_dir): Likewise.
43397 (grub_hfsplus_btree_iterate_node): Made static.
43398
43399 * util/grub-emu.c (prefix): New variable.
43400 (grub_machine_set_prefix): New function.
43401 (main): Do not set the environment variable "prefix" here. Only
43402 set PREFIX, which is used later by grub_machine_set_prefix.
43403
43404 * include/grub/video.h: Do not include grub/symbol.h.
43405 (grub_video_register): Not exported. This symbol is not defined in
43406 the kernel.
43407 (grub_video_unregister): Likewise.
43408 (grub_video_iterate): Likewise.
43409 (grub_video_setup): Likewise.
43410 (grub_video_restore): Likewise.
43411 (grub_video_get_info): Likewise.
43412 (grub_video_get_blit_format): Likewise.
43413 (grub_video_set_palette): Likewise.
43414 (grub_video_get_palette): Likewise.
43415 (grub_video_set_viewport): Likewise.
43416 (grub_video_get_viewport): Likewise.
43417 (grub_video_map_color): Likewise.
43418 (grub_video_map_rgb): Likewise.
43419 (grub_video_map_rgba): Likewise.
43420 (grub_video_fill_rect): Likewise.
43421 (grub_video_blit_glyph): Likewise.
43422 (grub_video_blit_bitmap): Likewise.
43423 (grub_video_blit_render_target): Likewise.
43424 (grub_video_scroll): Likewise.
43425 (grub_video_swap_buffers): Likewise.
43426 (grub_video_create_render_target): Likewise.
43427 (grub_video_delete_render_target): Likewise.
43428 (grub_video_set_active_render_target): Likewise.
43429
43430 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43431 Undefined.
43432 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43433
43434 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
43435 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43436 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43437 instead of $(srcdir)/genkernsyms.sh.
43438
43439 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43440 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43441 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43442 instead of $(srcdir)/genkernsyms.sh.
43443
43444 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
43445 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43446 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43447 instead of $(srcdir)/genkernsyms.sh.
43448
43449 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43450 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43451 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43452 instead of $(srcdir)/genkernsyms.sh.
43453
43454 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43455 genkernsyms.sh.
43456
43457 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43458 genkernsyms.sh.
43459 (gensymlist.sh): New target.
43460 (genkernsyms.sh): Likewise.
43461
43462 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43463 genkernsyms.sh.in and gensymlist.sh.in.
43464
43465 * genkernsyms.sh: Removed.
43466 * gensymlist.sh: Likewise.
f19dbdb7 43467
7b455f4d 43468 * genkernsyms.sh.in: New file.
43469 * gensymlist.sh.in: Likewise.
43470
1885bb27 434712006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43472
43473 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43474 clobber "prefix", since we may have already set it manually.
43475
71538dff 434762006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43477
43478 * kern/misc.c (abort): New alias for grub_abort.
43479
2965c7cc 434802006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43481
43482 A new machine-specific function "grub_machine_set_prefix" is
43483 defined. This is called after loading modules, so that a prefix
43484 initialization can use modules. Also, this change adds an
43485 intensive debugging feature for the memory manager via the
43486 configure option "--enable-mm-debug".
f19dbdb7 43487
2965c7cc 43488 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43489 PART.LEN.
43490
43491 * kern/sparc64/ieee1275/init.c (abort): Removed.
43492 (grub_stop): Likewise.
43493 (grub_exit): New function.
43494 (grub_set_prefix): Renamed to ...
43495 (grub_machine_set_prefix): ... this.
43496 (grub_machine_init): Do not call grub_set_prefix.
43497
43498 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43499 (grub_machine_set_prefix): ... this.
43500 (grub_machine_init): Do not call grub_set_prefix.
43501
43502 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43503 (grub_machine_init): Do not set the prefix here.
43504
43505 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43506
43507 * kern/efi/init.c: Include grub/mm.h.
43508 (grub_efi_set_prefix): New function.
43509
43510 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43511 (grub_efi_get_filename): New function.
43512 (grub_print_device_path): Renamed to ...
43513 (grub_efi_print_device_path): ... this.
43514
43515 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43516 [MM_DEBUG] (grub_realloc): Likewise.
43517 [MM_DEBUG] (grub_free): Likewise.
43518 [MM_DEBUG] (grub_memalign): Likewise.
43519 [MM_DEBUG] (grub_mm_debug): New variable.
43520 [MM_DEBUG] (grub_debug_malloc): New function.
43521 [MM_DEBUG] (grub_debug_free): New function.
43522 [MM_DEBUG] (grub_debug_realloc): New function.
43523 [MM_DEBUG] (grub_debug_memalign): New function.
43524
43525 * kern/misc.c (grub_abort): Print a newline to distinguish
43526 the message.
43527
43528 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43529 grub_set_root_dev after loading modules. This is necessary when
43530 setting a prefix depends on modules.
43531
43532 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43533 (grub_efi_print_device_path): ... this.
43534 (grub_efi_get_filename): New prototype.
43535 (grub_efi_set_prefix): Likewise.
43536
43537 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43538 and grub/disk.h.
43539 (grub_efidisk_get_device_handle): New prototype.
43540 (grub_efidisk_get_device_name): Likewise.
43541
43542 * include/grub/mm.h: Include config.h.
43543 (MM_DEBUG): Removed.
43544 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43545 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43546 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43547 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43548 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43549 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43550 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43551 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43552 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43553
43554 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43555
43556 * disk/efi/efidisk.c: Include grub/partition.h.
43557 (iterate_child_devices): New function.
43558 (add_device): First, compare only last device path nodes, so that
43559 devices are sorted by the types.
43560 (grub_efidisk_get_device_handle): New function.
43561 (grub_efidisk_get_device_name): Likewise.
43562
43563 * configure.ac (--enable-mm-debug): New option to enable the
43564 memory manager debugging feature. This makes the binary much
43565 bigger, so is disabled by default.
43566
9cacaa17 435672006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43568
43569 Use grub_abort instead of grub_stop, and grub_exit must be
43570 define in each architecture now. Also, this change adds support
43571 for EFI disks.
f19dbdb7 43572
9cacaa17 43573 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43574 (grub_getkey): New function.
43575 (grub_term_get_current): Likewise.
43576
43577 * util/i386/pc/grub-setup.c: Include grub/term.h.
43578 (grub_getkey): New function.
43579 (grub_term_get_current): Likewise.
43580
43581 * util/misc.c (grub_stop): Renamed to ...
43582 (grub_exit): ... this.
43583
43584 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43585 (grub_exit): ... this.
43586 (grub_machine_init): Use grub_abort instead of abort.
43587 (grub_stop): Removed.
43588
43589 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43590 abort.
43591
43592 * kern/i386/pc/startup.S (grub_exit): New function.
43593 (cold_reboot): New label.
43594
43595 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43596 (grub_efi_init): Call grub_efidisk_init.
43597 (grub_efi_fini): Call grub_efidisk_fini.
43598
43599 * kern/efi/efi.c: Include grub/mm.h.
43600 (grub_efi_console_control_guid): Renamed to ...
43601 (console_control_guid): ... this.
43602 (grub_efi_loaded_image_guid): Renamed to ...
43603 (loaded_image_guid): ... this.
43604 (grub_efi_locate_handle): New function.
43605 (grub_efi_open_protocol): Likewise.
43606 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43607 GRUB_EFI_CONSOLE_CONTROL_GUID.
43608 (grub_efi_exit): Removed.
43609 (grub_stop): Likewise.
43610 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43611 (grub_exit): New function.
43612 (grub_print_device_path): Likewise.
43613
43614 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43615 (grub_enter_rescue_mode): Register "exit".
43616
43617 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43618 (grub_abort): New function.
43619
43620 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43621
43622 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43623
43624 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43625
43626 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43627 (grub_print_device_path): New prototype.
43628 (grub_efi_locate_handle): Likewise.
43629 (grub_efi_open_protocol): Likewise.
43630
43631 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43632 * disk/efi/efidisk.c: Likewise.
43633
43634 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43635
43636 * include/grub/efi/console_control.h
43637 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43638
43639 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43640 last 8 bytes as an array.
43641 (GRUB_EFI_DISK_IO_GUID): New macro.
43642 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43643 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43644 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43645 grub_uint8_t.
43646 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43647 (struct grub_efi_device_path): Rename the member "sub_type" to
43648 "subtype".
43649 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43650 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43651 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43652 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43653 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43654 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43655 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43656 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43657 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43658 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43659 (struct grub_efi_pci_device_path): New structure.
43660 (grub_efi_pci_device_path_t): New type.
43661 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43662 (struct grub_efi_pccard_device_path): New structure.
43663 (grub_efi_pccard_device_path_t): New type.
43664 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43665 (struct grub_efi_memory_mapped_device_path): New structure.
43666 (grub_efi_memory_mapped_device_path_t): New type.
43667 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43668 (struct grub_efi_vendor_device_path): New structure.
43669 (grub_efi_vendor_device_path_t): New type.
43670 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43671 (struct grub_efi_controller_device_path): New structure.
43672 (grub_efi_controller_device_path_t): New type.
43673 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43674 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43675 (struct grub_efi_acpi_device_path): New structure.
43676 (grub_efi_acpi_device_path_t): New type.
43677 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43678 (struct grub_efi_expanded_acpi_device_path): New structure.
43679 (grub_efi_expanded_acpi_device_path_t): New type.
43680 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43681 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43682 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43683 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43684 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43685 (struct grub_efi_atapi_device_path): New structure.
43686 (grub_efi_atapi_device_path_t): New type.
43687 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43688 (struct grub_efi_fibre_channel_device_path): New structure.
43689 (grub_efi_fibre_channel_device_path_t): New type.
43690 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43691 (struct grub_efi_1394_device_path): New structure.
43692 (grub_efi_1394_device_path_t): New type.
43693 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43694 (struct grub_efi_usb_device_path): New structure.
43695 (grub_efi_usb_device_path_t): New type.
43696 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43697 (struct grub_efi_usb_class_device_path): New structure.
43698 (grub_efi_usb_class_device_path_t): New type.
43699 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43700 (struct grub_efi_i2o_device_path): New structure.
43701 (grub_efi_i2o_device_path_t): New type.
43702 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43703 (struct grub_efi_mac_address_device_path): New structure.
43704 (grub_efi_mac_address_device_path_t): New type.
43705 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43706 (struct grub_efi_ipv4_device_path): New structure.
43707 (grub_efi_ipv4_device_path_t): New type.
43708 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43709 (struct grub_efi_ipv6_device_path): New structure.
43710 (grub_efi_ipv6_device_path_t): New type.
43711 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43712 (struct grub_efi_infiniband_device_path): New structure.
43713 (grub_efi_infiniband_device_path_t): New type.
43714 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43715 (struct grub_efi_uart_device_path): New structure.
43716 (grub_efi_uart_device_path_t): New type.
43717 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43718 (struct grub_efi_vendor_messaging_device_path): New structure.
43719 (grub_efi_vendor_messaging_device_path_t): New type.
43720 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43721 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43722 (struct grub_efi_hard_drive_device_path): New structure.
43723 (grub_efi_hard_drive_device_path_t): New type.
43724 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43725 (struct grub_efi_cdrom_device_path): New structure.
43726 (grub_efi_cdrom_device_path_t): New type.
43727 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43728 (struct grub_efi_vendor_media_device_path): New structure.
43729 (grub_efi_vendor_media_device_path_t): New type.
43730 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43731 (struct grub_efi_file_path_device_path): New structure.
43732 (grub_efi_file_path_device_path_t): New type.
43733 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43734 (struct grub_efi_protocol_device_path): New structure.
43735 (grub_efi_protocol_device_path_t): New type.
43736 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43737 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43738 (struct grub_efi_bios_device_path): New structure.
43739 (grub_efi_bios_device_path_t): New type.
43740 (struct grub_efi_disk_io): New structure.
43741 (grub_efi_disk_io_t): New type.
43742 (struct grub_efi_block_io_media): New structure.
43743 (grub_efi_block_io_media_t): New type.
43744 (struct grub_efi_block_io): New structure.
43745 (grub_efi_block_io_t): New type.
43746
43747 * include/grub/misc.h (grub_stop): Removed.
43748 (grub_exit): New prototype.
43749 (grub_abort): Likewise.
43750
43751 * include/grub/disk.h (enum grub_disk_dev_id): Added
43752 GRUB_DISK_DEVICE_EFIDISK_ID.
43753
43754 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43755 disk/efi/efidisk.c.
43756 (kernel_syms.lst): Remove the target if an error occurs.
43757
49986a9f 437582006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43759
43760 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43761 as it was simply too buggy.
43762
970d3b8a 437632006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43764
43765 * kern/misc.c (grub_lltoa): New function.
43766 (grub_vsprintf): Added support for the long long suffix,
43767 i.e. "ll".
43768
ff04ec24 437692006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43770
43771 * Makefile.in (LDFLAGS): Add variable.
43772 (LD): Remove variable.
43773 * configure.ac: Add -m32 to LDFLAGS.
43774 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43775 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43776 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43777 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43778 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43779 variables.
43780 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43781 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43782 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43783
37e5e1a4 437842006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43785
43786 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43787 length for unknown glyph.
43788
c352d8dd 437892006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43790
2eab1c0d 43791 Add support for pre-loaded modules into the EFI port.
f19dbdb7 43792
2eab1c0d 43793 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43794 completely. Accept one more argument DIR. The caller has changed.
43795
43796 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43797
43798 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43799 (grub_efi_loaded_image_guid): New variable.
43800 (grub_efi_get_loaded_image): New function.
43801 (grub_arch_modules_addr): Likewise.
43802
43803 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43804 prototype.
43805
43806 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43807 (struct grub_efi_loaded_image): New structure.
43808 (grub_efi_loaded_image_t): New type.
43809
438102006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43811
c352d8dd 43812 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43813 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43814 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43815
6d01d6b4 438162006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43817
43818 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43819
976a4ea0 438202006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43821
43822 * DISTLIST: Added include/grub/efi/console.h,
43823 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43824 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43825
43826 * include/grub/efi/console.h: New file.
43827 * include/grub/efi/time.h: Likewise.
43828 * include/grub/i386/efi/kernel.h: Likewise.
43829 * kern/efi/init.c: Likewise.
43830 * kern/efi/mm.c: Likewise.
43831 * term/efi/console.c: Likewise.
f19dbdb7 43832
976a4ea0 43833 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43834 (grub_stop): Removed.
43835 (grub_get_rtc): Likewise.
43836 (grub_machine_init): Simply call grub_efi_init.
43837 (grub_machine_fini): Call grub_efi_fini.
43838
43839 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43840 (grub_efi_output_string): Removed.
43841 (grub_efi_stall): New function.
43842 (grub_stop): Likewise.
43843 (grub_get_rtc): Likewise.
43844
43845 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43846 (grub_efi_stall): New prototype.
43847 (grub_efi_allocate_pages): Likewise.
43848 (grub_efi_free_pages): Likewise.
43849 (grub_efi_get_memory_map): Likewise.
43850 (grub_efi_mm_init): Likewise.
43851 (grub_efi_mm_fini): Likewise.
43852 (grub_efi_init): Likewise.
43853 (grub_efi_fini): Likewise.
43854
43855 * include/grub/i386/efi/time.h: Do not include
43856 grub/symbol.h. Include grub/efi/time.h.
43857 (GRUB_TICKS_PER_SECOND): Removed.
43858 (grub_get_rtc): Likewise.
43859
43860 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43861 Added padding. The EFI spec is buggy.
43862 (GRUB_EFI_BLACK): New macro.
43863 (GRUB_EFI_BLUE): Likewise.
43864 (GRUB_EFI_GREEN): Likewise.
43865 (GRUB_EFI_CYAN): Likewise.
43866 (GRUB_EFI_RED): Likewise.
43867 (GRUB_EFI_MAGENTA): Likewise.
43868 (GRUB_EFI_BROWN): Likewise.
43869 (GRUB_EFI_LIGHTGRAY): Likewise.
43870 (GRUB_EFI_BRIGHT): Likewise.
43871 (GRUB_EFI_DARKGRAY): Likewise.
43872 (GRUB_EFI_LIGHTBLUE): Likewise.
43873 (GRUB_EFI_LIGHTGREEN): Likewise.
43874 (GRUB_EFI_LIGHTCYAN): Likewise.
43875 (GRUB_EFI_LIGHTRED): Likewise.
43876 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43877 (GRUB_EFI_YELLOW): Likewise.
43878 (GRUB_EFI_WHITE): Likewise.
43879 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43880 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43881 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43882 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43883 (GRUB_EFI_BACKGROUND_RED): Likewise.
43884 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43885 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43886 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43887 (GRUB_EFI_TEXT_ATTR): Likewise.
43888
43889 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43890 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43891 (kernel_mod_HEADERS): Added efi/time.h.
43892
83709125 438932006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43894
43895 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43896 include/grub/efi/api.h, include/grub/efi/console_control.h,
43897 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43898 include/grub/i386/efi/time.h, kern/efi/efi.c,
43899 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43900 and util/i386/efi/grub-mkimage.c.
43901
43902 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43903
43904 * genmk.rb (PModule#rule): Do not export symbols if
43905 #{prefix}_EXPORTS is set to "no".
43906
43907 * conf/i386-efi.mk: New file.
43908 * conf/i386-efi.rmk: Likewise.
43909 * include/grub/efi/api.h: Likewise.
43910 * include/grub/efi/console_control.h: Likewise.
43911 * include/grub/efi/efi.h: Likewise.
43912 * include/grub/efi/pe32.h: Likewise.
43913 * include/grub/i386/efi/time.h: Likewise.
43914 * kern/efi/efi.c: Likewise.
43915 * kern/i386/efi/init.c: Likewise.
43916 * kern/i386/efi/startup.S: Likewise.
43917 * util/i386/efi/grub-mkimage.c: Likewise.
43918
439192006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 43920
43921 * include/grub/script.h: Include <grub/parser.h> and
43922 "grub_script.tab.h".
43923 (struct grub_lexer_param): New struct.
43924 (struct grub_parser_param): Likewise.
43925 (grub_script_create_arglist): Pass the state in an argument.
43926 (grub_script_add_arglist): Likewise.
43927 (grub_script_create_cmdline): Likewise.
43928 (grub_script_create_cmdblock): Likewise.
43929 (grub_script_create_cmdif): Likewise.
43930 (grub_script_create_cmdmenu): Likewise.
43931 (grub_script_add_cmd): Likewise.
43932 (grub_script_arg_add): Likewise.
43933 (grub_script_lexer_ref): Likewise.
43934 (grub_script_lexer_deref): Likewise.
43935 (grub_script_lexer_record_start): Likewise.
43936 (grub_script_lexer_record_stop): Likewise.
43937 (grub_script_mem_record): Likewise.
43938 (grub_script_mem_record_stop): Likewise.
43939 (grub_script_malloc): Likewise.
43940 (grub_script_yylex): Likewise.
43941 (grub_script_yyparse): Likewise.
43942 (grub_script_yyerror): Likewise.
43943 (grub_script_yylex): Likewise.
43944 (grub_script_lexer_init): Return the state.
43945
43946 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43947 (grub_script_lexer_done): Likewise.
43948 (grub_script_lexer_getline): Likewise.
43949 (grub_script_lexer_refs): Likewise.
43950 (script): Likewise.
43951 (newscript): Likewise.
43952 (record): Likewise.
43953 (recording): Likewise.
43954 (recordpos): Likewise.
43955 (recordlen): Likewise.
43956 (grub_script_lexer_init): Return the state instead of setting
43957 global variables.
43958 (grub_script_lexer_ref): Use the newly added argument for state
43959 instead of globals.
43960 (grub_script_lexer_deref): Likewise.
43961 (grub_script_lexer_record_start): Likewise.
43962 (grub_script_lexer_record_stop): Likewise.
43963 (recordchar): Likewise.
43964 (nextchar): Likewise.
43965 (grub_script_yylex2): Likewise.
43966 (grub_script_yylex): Likewise.
43967 (grub_script_yyerror): Likewise.
43968
43969 * normal/parser.y (func_mem): Removed variable.
43970 (menu_entry): Likewise.
43971 (err): Likewise.
43972 (%lex-param): New parser option.
43973 (%parse-param): Likewise.
43974 (script): Always return the AST.
43975 (argument): Pass the state around.
43976 (arguments): Likewise.
43977 (grubcmd): Likewise.
43978 (commands): Likewise.
43979 (function): Likewise.
43980 (menuentry): Likewise.
43981 (if_statement): Likewise.
43982 (if): Likewise.
43983
43984 * normal/script.c (grub_script_memused): Removed variable.
43985 (grub_script_parsed): Likewise.
43986 (grub_script_malloc): Added a state argument. Use that instead of
43987 global variables.
43988 (grub_script_mem_record): Likewise.
43989 (grub_script_mem_record_stop): Likewise.
43990 (grub_script_arg_add): Likewise.
43991 (grub_script_add_arglist): Likewise.
43992 (grub_script_create_cmdline): Likewise.
43993 (grub_script_create_cmdif): Likewise.
43994 (grub_script_create_cmdmenu): Likewise.
43995 (grub_script_add_cmd): Likewise.
43996 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 43997
e2a8c904 439982006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 43999
44000 * normal/command.c (grub_command_init): Remove the title command.
44001
44002 * normal/lexer.c (grub_script_yylex): Renamed from this...
44003 (grub_script_yylex2): ... to this.
44004 (grub_script_yylex): New function. Temporary
44005 introduced to filter some tokens.
44006 (grub_script_yyerror): Print a newline.
44007
44008 * normal/main.c (read_config_file): Output information about the
44009 lines that contain errors. Wait for a key after all lines have
44010 been processed. Don't return an empty menu.
44011
44012 * normal/parser.y (func_mem): Don't initialize.
44013 (menu_entry): Likewise.
44014 (err): New variable.
44015 (script): Don't return anything when an error was encountered.
44016 (ws, returns): Removed rules.
44017 (argument): Disabled concatenated variable support.
44018 (arguments): Remove explicit separators.
44019 (grubcmd): Likewise.
44020 (function): Likewise.
44021 (menuentry): Likewise.
44022 (if): Likewise.
44023 (commands): Likewise. Add error handling.
44024
44025 * normal/script.c (grub_script_create_cmdline): If
44026 `grub_script_parsed' is 0, assume the parser encountered an error.
44027
c9a86192 440282006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
44029
44030 * configure.ac: Add support for EFI. Fix the typo
44031 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
44032
70f3b243 440332006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
44034
44035 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
44036 foreign multibyte characters should be shown correctly.
44037
65f201ad 440382006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
44039
44040 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
44041 calculation.
44042 (read_config_file): Made it to close file before returning.
44043
b4b93674 440442006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
44045
44046 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
44047 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
44048 video/i386/pc/vbefill.c.
44049
44050 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
44051 video/i386/pc/vbefill.c.
44052
44053 * include/grub/video.h (grub_video_blit_format): New enum.
44054 (grub_video_mode_info): Added new member blit_format.
44055 (grub_video_get_blit_format): New function prototype.
44056
44057 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
44058 function prototype.
44059 (grub_video_vbe_map_rgb): Likewise.
44060 (grub_video_vbe_unmap_color): Likewise.
44061
44062 * include/grub/i386/pc/vbeblit.h: New file.
44063
44064 * include/grub/i386/pc/vbefill.h: New file.
44065
44066 * video/video.c (grub_video_get_blit_format): New function.
44067 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
44068 (grub_video_vbe_map_rgb): Likewise.
44069 (grub_video_vbe_unmap_color): Likewise.
44070
44071 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
44072 optimized fills.
44073 (grub_video_vbe_blit_render_target): Changed to use more optimized
44074 blits.
44075 (grub_video_vbe_setup): Added detection for optimized settings.
44076 (grub_video_vbe_create_render_target): Likewise.
44077
44078 * video/i386/pc/vbeblit.c: New file.
44079
44080 * video/i386/pc/vbefill.c: New file.
44081
c2379b9c 440822006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
44083
44084 * font/manager.c (grub_font_get_glyph): Removed font fixup from
44085 here...
44086
44087 * util/unifont2pff.rb: ... and moved it to here. Improved argument
44088 parsing to support both hex and dec ranges. If filename was missing
44089 show usage information.
44090
bd0d7896 440912006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
44092
44093 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
44094 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
44095
44096 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
44097 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
44098 (video_mod_SOURCES): Added.
44099 (video_mod_CFLAGS): Likewise.
44100 (video_mod_LDFLAGS): Likewise.
44101 (gfxterm_mod_SOURCES): Likewise.
44102 (gfxterm_mod_CFLAGS): Likewise.
44103 (gfxterm_mod_LDFLAGS): Likewise.
44104 (videotest_mod_SOURCES): Likewise.
44105 (videotest_mod_CFLAGS): Likewise.
44106 (videotest_mod_LDFLAGS): Likewise.
44107 (vesafb_mod_SOURCES): Removed.
44108 (vesafb_mod_CFLAGS): Likewise.
44109 (vesafb_mod_LDFLAGS): Likewise.
44110 (vga_mod_SOURCES): Likewise.
44111 (vga_mod_CFLAGS): Likewise.
44112 (vga_mod_LDFLAGS): Likewise.
44113
44114 * commands/videotest.c: New file.
44115
44116 * font/manager.c (fill_with_default_glyph): Modified to use
44117 grub_font_glyph.
44118 (grub_font_get_glyph): Likewise.
44119 (fontmanager): Renamed from this...
44120 (font_manager): ... to this.
44121
44122 * include/grub/font.h (grub_font_glyph): Added new structure.
44123 (grub_font_get_glyph): Modified to use grub_font_glyph.
44124
44125 * include/grub/misc.h (grub_abs): Added as inline function.
44126
44127 * include/grub/video.h: New file.
44128
44129 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
44130 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
44131 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
44132 (grub_vbe_get_controller_info): Renamed from this...
44133 (grub_vbe_bios_get_controller_info): ... to this.
44134 (grub_vbe_get_mode_info): Renamed from this...
44135 (grub_vbe_bios_get_mode_info): ... to this.
44136 (grub_vbe_set_mode): Renamed from this...
44137 (grub_vbe_bios_set_mode): ... to this.
44138 (grub_vbe_get_mode): Renamed from this...
44139 (grub_vbe_bios_get_mode): ... to this.
44140 (grub_vbe_set_memory_window): Renamed from this...
44141 (grub_vbe_bios_set_memory_window): ... to this.
44142 (grub_vbe_get_memory_window): Renamed from this...
44143 (grub_vbe_bios_get_memory_window): ... to this.
44144 (grub_vbe_set_scanline_length): Renamed from this...
44145 (grub_vbe_set_scanline_length): ... to this.
44146 (grub_vbe_get_scanline_length): Renamed from this...
44147 (grub_vbe_bios_get_scanline_length): ... to this.
44148 (grub_vbe_set_display_start): Renamed from this...
44149 (grub_vbe_bios_set_display_start): ... to this.
44150 (grub_vbe_get_display_start): Renamed from this...
44151 (grub_vbe_bios_get_display_start): ... to this.
44152 (grub_vbe_set_palette_data): Renamed from this...
44153 (grub_vbe_bios_set_palette_data): ... to this.
44154 (grub_vbe_set_pixel_rgb): Removed.
44155 (grub_vbe_set_pixel_index): Likewise.
44156
44157 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
44158 from this...
44159 (grub_vbe_bios_get_controller_info): ... to this.
44160 (grub_vbe_get_mode_info): Renamed from this...
44161 (grub_vbe_bios_get_mode_info): ... to this.
44162 (grub_vbe_set_mode): Renamed from this...
44163 (grub_vbe_bios_set_mode): ... to this.
44164 (grub_vbe_get_mode): Renamed from this...
44165 (grub_vbe_bios_get_mode): ... to this.
44166 (grub_vbe_set_memory_window): Renamed from this...
44167 (grub_vbe_bios_set_memory_window): ... to this.
44168 (grub_vbe_get_memory_window): Renamed from this...
44169 (grub_vbe_bios_get_memory_window): ... to this.
44170 (grub_vbe_set_scanline_length): Renamed from this...
44171 (grub_vbe_set_scanline_length): ... to this.
44172 (grub_vbe_get_scanline_length): Renamed from this...
44173 (grub_vbe_bios_get_scanline_length): ... to this.
44174 (grub_vbe_set_display_start): Renamed from this...
44175 (grub_vbe_bios_set_display_start): ... to this.
44176 (grub_vbe_get_display_start): Renamed from this...
44177 (grub_vbe_bios_get_display_start): ... to this.
44178 (grub_vbe_set_palette_data): Renamed from this...
44179 (grub_vbe_bios_set_palette_data): ... to this.
44180 (grub_vbe_bios_get_controller_info): Fixed problem with registers
44181 getting corrupted after calling it. Added more pushes and pops.
44182 (grub_vbe_bios_set_mode): Likewise.
44183 (grub_vbe_bios_get_mode): Likewise.
44184 (grub_vbe_bios_get_memory_window): Likewise.
44185 (grub_vbe_bios_set_scanline_length): Likewise.
44186 (grub_vbe_bios_get_scanline_length): Likewise.
44187 (grub_vbe_bios_get_display_start): Likewise.
44188 (grub_vbe_bios_set_palette_data): Likewise.
44189
44190 * normal/cmdline.c (cl_set_pos): Refresh the screen.
44191 (cl_insert): Likewise.
44192 (cl_delete): Likewise.
44193
44194 * term/gfxterm.c: New file.
44195
44196 * term/i386/pc/vesafb.c: Removed file.
44197
44198 * video/video.c: New file.
44199
44200 * video/i386/pc/vbe.c (real2pm): Added new function.
44201 (grub_video_vbe_draw_pixel): Likewise.
44202 (grub_video_vbe_get_video_ptr): Likewise.
44203 (grub_video_vbe_get_pixel): Likewise
44204 (grub_video_vbe_init): Likewise.
44205 (grub_video_vbe_fini): Likewise.
44206 (grub_video_vbe_setup): Likewise.
44207 (grub_video_vbe_get_info): Likewise.
44208 (grub_video_vbe_set_palette): Likewise.
44209 (grub_video_vbe_get_palette): Likewise.
44210 (grub_video_vbe_set_viewport): Likewise.
44211 (grub_video_vbe_get_viewport): Likewise.
44212 (grub_video_vbe_map_color): Likewise.
44213 (grub_video_vbe_map_rgb): Likewise.
44214 (grub_video_vbe_map_rgba): Likewise.
44215 (grub_video_vbe_unmap_color): Likewise.
44216 (grub_video_vbe_fill_rect): Likewise.
44217 (grub_video_vbe_blit_glyph): Likewise.
44218 (grub_video_vbe_blit_bitmap): Likewise.
44219 (grub_video_vbe_blit_render_target): Likewise.
44220 (grub_video_vbe_scroll): Likewise.
44221 (grub_video_vbe_swap_buffers): Likewise.
44222 (grub_video_vbe_create_render_target): Likewise.
44223 (grub_video_vbe_delete_render_target): Likewise.
44224 (grub_video_vbe_set_active_render_target): Likewise.
44225 (grub_vbe_set_pixel_rgb): Remove function.
44226 (grub_vbe_set_pixel_index): Likewise.
44227 (index_color_mode): Remove static variable.
44228 (active_mode): Likewise.
44229 (framebuffer): Likewise.
44230 (bytes_per_scan_line): Likewise.
44231 (grub_video_vbe_adapter): Added new static variable.
44232 (framebuffer): Likewise.
44233 (render_target): Likewise.
44234 (initial_mode): Likewise.
44235 (mode_in_use): Likewise.
44236 (mode_list): Likewise.
44237
5f97350b 442382006-03-10 Marco Gerards <marco@gnu.org>
44239
44240 * configure.ac (AC_INIT): Bumped to 1.93.
44241
44242 * DISTLIST: Added `include/grub/hfs.h'.
44243
a3c5c6f8 442442006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
44245
44246 * boot/i386/pc/boot.S (general_error): Before looping, try INT
44247 18H, which might help the BIOS falling back to next boot media.
44248
6de53d26 442492006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
44250
44251 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
44252 Poe Chen <poe.poechen@gmail.com>.
44253
77c4a393 442542006-01-17 Marco Gerards <marco@gnu.org>
44255
44256 * include/grub/normal.h: Include <grub/script.h>.
44257 (grub_command_list): Removed struct.
44258 (grub_command_list_t): Removed type.
44259 (grub_menu_entry): Remove members `num' and `command_list'. Add
44260 members `commands' and `sourcecode'.
44261 * include/grub/script.h: Add inclusion guards.
44262 (grub_script_cmd_menuentry): New struct.
44263 (grub_script_execute_menuentry): New prototype.
44264 (grub_script_lexer_record_start): Likewise.
44265 (grub_script_lexer_record_stop): Likewise.
44266 * normal/execute.c (grub_script_execute_menuentry): New function.
44267 * normal/lexer.c (record, recording, recordpos, recordlen): New
44268 variables.
44269 (grub_script_lexer_record_start): New function.
44270 (grub_script_lexer_record_stop): Likewise.
44271 (recordchar): Likewise.
44272 (nextchar): Likewise.
44273 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
44274 2048 as the buffer size. Add the tokens `menuentry' and `@'.
44275 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
44276 (current_menu): New variable.
44277 (free_menu): Mainly rewritten.
44278 (grub_normal_menu_addentry): New function.
44279 (read_config_file): Rewritten.
44280 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 44281 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 44282 the menu entry.
44283 (run): Mainly rewritten.
44284 * normal/parser.y (menu_entry): New variable.
44285 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
44286 (menuentry): New rule.
44287 (command): Add `menuentry'.
44288 (if_statement): Allow additional returns before `fi'.
44289 * normal/script.c (grub_script_create_cmdmenu): New function.
44290
144f1f98 442912006-01-03 Marco Gerards <marco@gnu.org>
44292
44293 * INSTALL: GNU Bison is required.
44294 * configure.ac: Rewritten the test to detect Bison.
44295 * Makefile.in (YACC): New variable. Reported by Xun Sun
44296 <xun.sun.cn@gmail.com>.
44297
af4b2d89 442982006-01-03 Marco Gerards <marco@gnu.org>
44299
44300 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
44301 the HFS+ filesystem to filesystem blocks.
44302 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
44303 GCC warning is silenced.
44304
15643b71 443052006-01-03 Marco Gerards <marco@gnu.org>
44306
44307 * partmap/apple.c (apple_partition_map_iterate): Convert the data
44308 read from disk from big endian to host byte order.
44309
00905879 443102006-01-03 Hollis Blanchard <hollis@penguinppc.org>
44311
44312 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
44313 documentation.
44314 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
44315 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
44316 embedded HFS+ filesystem.
44317 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
44318 (grub_hfs_sblock): Move from here...
44319 * include/grub/hfs.h: To here... New file.
44320 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
44321 documentation.
44322 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
44323 New macros.
44324 (grub_hfsplus_volheader): Change type of member `magic' to
44325 `grub_uint16_t'.
44326 (grub_hfsplus_data): Add new member `embedded_offset'.
44327 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
44328 returned block.
44329 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
44330 Calculate the offset.
44331
8899bc3e 443322005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44333
44334 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
44335 Removed.
44336 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
44337
ae8c0277 443382005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44339
44340 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
44341 ENV->NAME is NULL after allocating ENV->VALUE.
44342
07084456 443432005-12-25 Marco Gerards <marco@gnu.org>
44344
44345 * kern/env.c (grub_env_set): Rewritten the error handling code.
44346
4750f5f1 443472005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44348
44349 * geninit.sh: Made more robust, and more portable.
44350
50214199 443512005-12-25 Marco Gerards <marco@gnu.org>
44352
44353 Add support for Apple HFS+ filesystems.
f19dbdb7 44354
50214199 44355 * fs/hfsplus.c: New file.
44356
44357 * DISTLIST: Added `fs/hfsplus.c'.
44358
44359 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
44360 (hfsplus_mod_SOURCES): New variable.
44361 (hfsplus_mod_CFLAGS): Likewise.
44362 (hfsplus_mod_LDFLAGS): Likewise.
44363 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
44364 (grub_setup_SOURCES): Likewise.
44365 (grub_mkdevicemap_SOURCES): Likewise.
44366 (grub_emu_SOURCES): Likewise.
44367 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44368
44369 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
44370
44371 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
44372
befaed6c 443732005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44374
44375 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
44376 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
44377 include/grub/parser.h, include/grub/script.h, kern/parser.c,
44378 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
44379 normal/lexer.c, normal/parser.y, normal/script.c, and
44380 partmap/gpt.c.
44381 Removed kern/sparc64/cache.c.
44382
44383 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
44384 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
44385 grub_emu_init.c.
44386
44387 * configure.ac (AC_INIT): Bumped to 1.92.
44388
6a124103 443892005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
44390
44391 * kern/err.c (grub_error_push): Added new function to support error
44392 stacks.
44393 (grub_error_pop): Likewise.
44394 (grub_error_stack_items): New local variable to support error stacks.
44395 (grub_error_stack_pos): Likewise.
44396 (grub_error_stack_assert): Likewise.
44397 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
44398 stack depth.
44399 (grub_print_error): Added support to print errors from error stack.
44400
44401 * include/grub/err.h (grub_error_push): Added function prototype.
44402 (grub_error_pop): Likewise.
44403
be973c1b 444042005-12-09 Hollis Blanchard <hollis@penguinppc.org>
44405
44406 * configure.ac: Accept `powerpc64' as host_cpu.
44407 (amd64): Rename to `biarch32'.
44408
44409 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
44410 non-cacheline-aligned addresses.
44411
44412 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
44413 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44414 if `size' is non-zero.
44415
b04216ab 444162005-12-03 Marco Gerards <mgerards@xs4all.nl>
44417
44418 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44419 and `cd' to make sure the filename is not prefixed with a
44420 directory name.
44421 (pkgdata_MODULES): Add `gpt.mod'.
44422 (gpt_mod_SOURCES): New variable.
44423 (gpt_mod_CFLAGS): Likewise.
44424 (gpt_mod_LDFLAGS): Likewise.
44425
44426 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44427
44428 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44429 New macro.
44430
44431 * partmap/gpt.c: New file.
44432
44433 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44434 GPT partition map is detected.
44435
41730ed9 444362005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44437
44438 * commands/i386/pc/play.c: New file.
44439 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44440 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44441 macros.
f19dbdb7 44442
95dc3643 444432005-11-27 Marco Gerards <mgerards@xs4all.nl>
44444
44445 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44446 ((unused))' to silence gcc warning.
44447
1569ec51 444482005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44449
44450 * configure.ac: Correct `AC_PROG_YACC' test.
44451
9abde152 444522005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44453
44454 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44455 check before installing files.
44456
44b83271 444572005-11-22 Mike Small <smallm@panix.com>
44458
44459 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44460 number regex so multidigit numbers are recognized correctly.
44461
444622005-11-22 Mike Small <smallm@panix.com>
44463
44464 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44465 debugging message before attempting to claim memory.
44466 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44467 multiple addresses in case of failure.
44468
9c12956b 444692005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44470
44471 * term/tparm.c (get_space): Remove empty `if' statement.
44472
44473 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44474
44475 * kern/parser.c (check_varstate): Rename `state' to 's'.
44476
aeaf81d9 444772005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44478
44479 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44480 variable definitions to the beginning of each function. Sort stack
44481 variables by size.
44482 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44483 `buf' argument to `char *'.
44484
79bbb63f 444852005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44486
44487 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44488 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44489 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 44490 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44491 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44492 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44493 configfile.mod, search.mod, gzio.mod and test.mod.
44494 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44495 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44496 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44497 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44498 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44499 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44500 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44501 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44502 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44503 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44504 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44505 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44506 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44507 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44508 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44509 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44510 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44511 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44512 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44513 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44514 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44515 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44516 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44517
44518 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44519 `grep --include'.
44520 (pkgdata_MODULES): Add test.mod.
44521
233b1628 445222005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44523
44524 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44525 appending to variables with "+=".
44526 (PModule): Use full pathname to generate *.lst filenames.
44527
44528 * Makefile.in: Fixed list rules moved from genmk.rb.
44529 (.DELETE_ON_ERROR): New special target.
44530 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44531
44532 * conf/i386-pc.rmk: Include conf/common.mk.
44533 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44534 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 44535 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44536 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44537 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44538 configfile.mod, search.mod, gzio.mod and test.mod.
44539 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44540 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44541 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44542 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44543 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44544 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44545 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44546 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44547 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44548 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44549 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44550 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44551 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44552 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44553 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44554 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44555 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44556 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44557 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44558 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44559 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44560 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44561 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44562 here...
44563 * conf/common.rmk: ... to here. New file.
44564
44565 * conf/common.mk: New file.
44566
16f820c8 445672005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44568
44569 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44570 (grub_script.tab.c): ... here.
44571
44572 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44573 (grub_script.tab.c): ... here.
44574
44575 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44576 (grub_script.tab.c): ... here.
44577
44578 * normal/command.c (grub_command_find): Fixed a memory leak of
44579 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44580
63ba1554 445812005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44582
44583 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44584 "@" which marks the start of a comment on ARM.
44585 (VARIABLE): Likewise.
44586
7f67dc13 445872005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44588
79bbb63f 44589 Add support for Linux/ADFS partition tables.
7f67dc13 44590
44591 * partmap/acorn.c: New file.
44592
44593 * include/grub/acorn_filecore.h: Likewise.
44594
44595 * DISTLIST: Added `partmap/acorn.c' and
44596 `include/grub/acorn_filecore.h'.
f19dbdb7 44597
7f67dc13 44598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44599 `partmap/acorn.c'.
44600 (pkgdata_MODULES): Add `acorn.mod'.
44601 (acorn_mod_SOURCES): New variable.
44602 (acorn_mod_CFLAGS): Likewise.
44603
44604 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44605 `partmap/acorn.c'.
44606 (pkgdata_MODULES): Add `acorn.mod'.
44607 (acorn_mod_SOURCES): New variable.
44608 (acorn_mod_CFLAGS): Likewise.
44609
44610 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44611 (pkgdata_MODULES): Add `acorn.mod'.
44612 (acorn_mod_SOURCES): New variable.
44613 (acorn_mod_CFLAGS): Likewise.
44614 (acorn_mod_LDFLAGS): Likewise.
44615
44616 * include/types.h (grub_disk_addr_t): New typedef.
44617
6d099807 446182005-11-13 Marco Gerards <mgerards@xs4all.nl>
44619
44620 * geninit.sh: New file.
44621
44622 * geninitheader.sh: Likewise.
44623
44624 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44625 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44626 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44627 * commands/configfile.c (grub_configfile_init)
44628 (grub_configfile_fini): Likewise.
44629 * commands/default.c (grub_default_init, grub_default_fini):
44630 Likewise.
44631 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44632 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44633 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44634 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44635 Likewise.
44636 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44637 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44638 Likewise.
44639 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 44640 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 44641 Likewise.
44642 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44643 Likewise.
fe6b695a 44644 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 44645 Likewise.
44646 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44647 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44648 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44649 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44650 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44651 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44652 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44653 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44654 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44655 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44656 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44657 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44658 * partmap/amiga.c (grub_amiga_partition_map_init)
44659 (grub_amiga_partition_map_fini): Likewise.
44660 * partmap/apple.c (grub_apple_partition_map_init)
44661 (grub_apple_partition_map_fini): Likewise.
44662 * partmap/pc.c (grub_pc_partition_map_init)
44663 (grub_pc_partition_map_fini): Likewise.
44664 * partmap/sun.c (grub_sun_partition_map_init,
44665 grub_sun_partition_map_fini): Likewise.
44666 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44667 Likewise.
44668
44669 * util/grub-emu.c: Include <grub_modules_init.h>.
44670 (main): Don't initialize and de-initialize any modules directly,
44671 use `grub_init_all' and `grub_fini_all' instead.
44672
44673 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44674 `grub_vesafb_mod_init'.
44675 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44676 all users.
44677 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44678 `grub_vga_mod_init'. Updated all users.
44679 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 44680
6d099807 44681 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44682 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44683 rules.
44684
44685 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44686 Generate a function to initialize the module in utilities.
44687 Updated all callers.
44688 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44689 initialize the module in utilities. Updated all callers.
44690
9046bcf0 446912005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44692
44693 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44694 escape sequence and a literal ^L to clear the screen.
44695
44696 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44697 when returning from Open Firmware.
44698
d13ea639 446992005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44700
44701 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44702 (grub_ofconsole_height): Likewise.
44703 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44704 manually insert a '\n'.
44705 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44706 `grub_ofconsole_height'. Return early if these are already set.
44707
a8fcf206 447082005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44709
44710 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44711 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44712 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44713 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44714 and `normal/script.c'.
44715 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44716 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44717 (test_mod_SOURCES): New variable.
44718 (test_mod_CFLAGS): Likewise.
44719 (test_mod_LDFLAGS): Likewise.
44720 (pkgdata_MODULES): Add `test.mod'.
44721 (grub_script.tab.c): New rule.
44722 (grub_script.tab.h): Likewise.
44723
b6b32745 447242005-11-07 Marco Gerards <mgerards@xs4all.nl>
44725
44726 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44727 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44728 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44729 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44730 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44731 (test_mod_SOURCES): New variable.
44732 (test_mod_CFLAGS): Likewise.
44733 (pkgdata_MODULES): Add `test.mod'.
44734 (grub_script.tab.c): New rule.
44735 (grub_script.tab.h): Likewise.
44736
daac212a 447372005-11-06 Marco Gerards <mgerards@xs4all.nl>
44738
44739 Add initial scripting support.
44740
44741 * commands/test.c: New file.
44742 * include/grub/script.h: Likewise.
44743 * normal/execute.c: Likewise.
44744 * normal/function.c: Likewise.
44745 * normal/lexer.c: Likewise.
44746 * normal/parser.y: Likewise.
44747 * normal/script.c: Likewise.
44748
44749 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 44750
daac212a 44751 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44752 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44753 `normal/function.c' and `normal/script.c'.
44754 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44755 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 44756 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44757 variables.
daac212a 44758 (pkgdata_MODULES): Add `test.mod'.
44759 (grub_script.tab.c): New rule.
44760 (grub_script.tab.h): Likewise.
44761
44762 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44763
44764 * include/grub/normal.h (grub_test_init): New prototype.
44765 (grub_test_fini): Likewise.
f19dbdb7 44766
daac212a 44767 * normal/command.c: Include <grub/script.h>.
44768 (grub_command_execute): Rewritten.
f19dbdb7 44769
daac212a 44770 * util/grub-emu.c (main): Call `grub_test_init' and
44771 `grub_test_fini'.
44772
77500b2b 447732005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44774
44775 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44776 to 0.
44777 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44778 there are no pending characters.
44779
e45deb9e 447802005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44781
44782 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44783 `grub_strndup' to drop device arguments. Replace unnecessary
44784 `grub_strndup' with `grub_strdup'.
44785
4ce32619 447862005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44787
44788 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44789 `debug' environment variable has been set.
44790
447912005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 44792
4ce32619 44793 * Makefile.in (install-local): Use $(DATA).
44794 (uninstall): Likewise.
44795 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44796 (sbin_UTILITIES): ... to here.
44797 (sbin_SCRIPTS): New variable.
44798 (grub_install_SOURCES): New variable.
44799 * util/powerpc/ieee1275/grub-install.in: New file.
44800 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44801 variable.
44802 (add_segments): Call `grub_util_get_path'.
44803
25fe6f03 448042005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44805
44806 From Timothy Baldwin:
44807 * commands/ls.c (grub_ls_list_files): Close FILE with
44808 grub_file_close.
44809 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44810
04ccf3ec 448112005-10-24 Marco Gerards <mgerards@xs4all.nl>
44812
44813 * include/grub/parser.h: New file.
44814
44815 * kern/parser.c: Likewise.
44816
44817 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44818 (grub_setup_SOURCES): Likewise.
44819 (grub_probefs_SOURCES): Likewise.
44820 (grub_emu_SOURCES): Likewise.
44821 (kernel_img_HEADERS): Add `parser.h'.
44822
44823 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44824 (grub_emu_SOURCES): Add `kern/parser.c'.
44825 (grubof_SOURCES): Likewise.
44826
44827 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44828 (grubof_SOURCES): Add `kern/parser.c'.
44829
44830 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44831
44832 * kern/misc.c (grub_split_cmdline): Removed function.
44833
44834 * kern/rescue.c: Include <grub/parser.h>.
44835 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44836 of `grub_split_cmdline'.
44837
44838 * normal/command.c: Include <grub/parser.h>.
44839 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44840 of `grub_split_cmdline'.
44841
44842 * normal/completion.c: Include <grub/parser.h>.
44843 (cmdline_state): New variable.
44844 (iterate_dir): End the filename with a quote depending on the
44845 command line state.
44846 (get_state): new function.
44847 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44848 split the arguments and determine the current argument. When the
44849 argument string is not quoted, escape all spaces.
44850
6d8f4b0e 448512005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44852
44853 * normal/sparc64/setjmp.S: New file.
44854
15cf03ed 448552005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44856
44857 * include/grub/sparc64/libgcc.h: New file.
44858 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44859 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44860 normal/sparc64/setjmp.c.
44861
03e8661a 448622005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44863
44864 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44865 * kern/sparc64/cache.S: New file.
44866 * kern/sparc64/cache.c: Removed.
44867 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44868 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44869 -mtune=ultrasparc.
44870 (COMMON_LDFLAGS): Add -melf64_sparc.
44871 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44872 (grubof_SOURCES): Use cache.S instead of cache.c.
44873 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44874 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44875 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44876 commented though.
44877 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44878 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44879 (linux_mod_CFLAGS): Commented out.
44880 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44881 out because module isn't built.
44882 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44883 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44884 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44885 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44886 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44887 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44888 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44889 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44890 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44891 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44892 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44893 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44894 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44895 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44896
34eeec8a 448972005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44898
44899 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44900 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44901 longer, because HFS should not be used on PC.
44902
708367a3 449032005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44904
44905 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44906 consistently within the loop.
44907
6fa1251a 449082005-10-15 Marco Gerards <mgerards@xs4all.nl>
44909
44910 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44911 directory can not be read.
44912
4801580b 449132005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44914
44915 * configure.ac (AC_INIT): Increase the version number to 1.91.
44916
44917 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44918 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44919 term/i386/pc/serial.c.
44920
219ad426 449212005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44922
44923 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44924 file size must be permitted.
44925
44926 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44927 between %ah and %al.
44928
688e5699 449292005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44930
44931 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44932 grub_uint64_t.
44933 Call the hook with a NUL-terminated filename.
44934 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44935 grub_cpu_to_be32.
44936
44937 * kern/term.c (cursor_state): New variable.
44938 (grub_term_set_current): Reset the cursor state on a new
44939 terminal.
44940 (grub_setcursor): Rewritten to use CURSOR_STATE.
44941 (grub_getcursor): New function.
44942
44943 * include/grub/term.h (grub_getcursor): New prototype.
44944
44945 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44946 integers on ARM. Reported by Timothy Baldwin
44947 <T.E.Baldwin99@members.leeds.ac.uk>.
44948
bb34586c 449492005-10-11 Marco Gerards <mgerards@xs4all.nl>
44950
44951 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44952 allocated.
44953 (grub_sfs_dir): Likewise.
44954
9a909877 449552005-10-09 Marco Gerards <mgerards@xs4all.nl>
44956
44957 Add support for the SFS filesystem.
44958
44959 * fs/sfs.c: New file.
44960
44961 * DISTLIST: Added `fs/sfs.c'.
44962
44963 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44964 (grub_probefs_SOURCES): Likewise.
44965 (grub_emu_SOURCES): Likewise.
44966 (pkgdata_MODULES): Add `sfs.mod'.
44967 (sfs_mod_SOURCES): New variable.
44968 (sfs_mod_CFLAGS): Likewise.
44969 (sfs_mod_LDFLAGS): Likewise.
44970
44971 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44972 (pkgdata_MODULES): Add `sfs.mod'.
44973 (sfs_mod_SOURCES): New variable.
44974 (sfs_mod_CFLAGS): Likewise.
44975
44976 * util/grub-emu.c (main): Call `grub_sfs_init' and
44977 `grub_sfs_fini'.
44978
44979 * include/grub/fs.h (grub_sfs_init): New prototype.
44980 (grub_sfs_fini): Likewise.
44981
57bdbde3 449822005-10-07 Marco Gerards <mgerards@xs4all.nl>
44983
44984 Add support for the AFFS filesystem.
44985
44986 * fs/affs.c: New file.
44987
44988 * DISTLIST: Added `fs/affs.c'.
44989
44990 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44991 (grub_probefs_SOURCES): Likewise.
44992 (grub_emu_SOURCES): Likewise.
44993 (pkgdata_MODULES): Add `affs.mod'.
44994 (affs_mod_SOURCES): New variable.
44995 (affs_mod_CFLAGS): Likewise.
44996 (affs_mod_LDFLAGS): Likewise.
44997
44998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44999 (pkgdata_MODULES): Add `affs.mod'.
45000 (affs_mod_SOURCES): New variable.
45001 (affs_mod_CFLAGS): Likewise.
45002
45003 * util/grub-emu.c (main): Call `grub_affs_init' and
45004 `grub_affs_fini'.
45005
45006 * include/grub/fs.h (grub_affs_init): New prototype.
45007 (grub_affs_fini): Likewise.
45008
047b67e0 450092005-10-01 Marco Gerards <mgerards@xs4all.nl>
45010
45011 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
45012
59b8208a 450132005-10-01 Marco Gerards <mgerards@xs4all.nl>
45014
45015 * configure.ac: Accept `x86_64' as host_cpu. In that case add
45016 `-m32' to CFLAGS.
45017
45018 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
45019 linking.
f19dbdb7 45020
59b8208a 45021 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
45022 (COMMON_LDFLAGS): New variable.
45023 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
45024 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
45025 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
45026 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
45027 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
45028 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
45029 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
45030 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
45031 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
45032 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
45033 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
45034 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
45035 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
45036 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
45037 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
45038 variables.
45039 (normal_mod_ASFLAGS): Add `-m32'.
45040
45041 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
45042 (grub_host_size_t, grub_host_ssize_t): New types.
45043 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 45044 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 45045 `GRUB_HOST_SIZEOF_VOID_P'.
45046
45047 * include/grub/kernel.h (struct grub_module_header): Type of
45048 member offset changed to `grub_host_off_t'. Type of member size
45049 changed to `grub_host_size_t'.
45050 (struct grub_module_info): Type of member offset changed to
45051 `grub_host_off_t'. Type of member size changed to
45052 `grub_host_size_t'.
45053
b4093103 450542005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
45055
45056 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 45057
b4093103 45058 * kern/i386/pc/startup.S (multiboot_header): New label.
45059 (multiboot_entry): Likewise.
45060 (multiboot_trampoline): Likewise.
45061
45062 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45063 Increased to 0x4A0.
45064
45065 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
45066 put parentheses after a question mark.
45067 [!GRUB_UTIL] (my_mod): New variable.
45068
45069 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
45070
b2499b29 450712005-09-28 Marco Gerards <mgerards@xs4all.nl>
45072
45073 Adds support for the XFS filesystem. Btrees are not supported
45074 yet.
45075
45076 * fs/xfs.c: New file.
45077
45078 * DISTLIST: Added `fs/xfs.c'.
45079
45080 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
45081 (grub_probefs_SOURCES): Likewise.
45082 (grub_emu_SOURCES): Likewise.
45083 (pkgdata_MODULES): Add `xfs.mod'.
45084 (xfs_mod_SOURCES): New variable.
45085 (xfs_mod_CFLAGS): Likewise.
45086
45087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
45088 (pkgdata_MODULES): Add `xfs.mod'.
45089 (xfs_mod_SOURCES): New variable.
45090 (xfs_mod_CFLAGS): Likewise.
45091
45092 * util/grub-emu.c (main): Call `grub_xfs_init' and
45093 `grub_xfs_fini'.
45094
45095 * include/grub/fs.h (grub_xfs_init): New prototype.
45096 (grub_xfs_fini): Likewise.
45097
f19dbdb7 45098
83d37a62 450992005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
45100
45101 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
45102 color modes, allow greater than 16 colors to be configured as
45103 a default palette.
45104
47d2d65e 451052005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
45106
45107 * normal/completion.c (complete_arguments): Add the qualifier
45108 const into OPTIONS.
45109
45110 From Omniflux <omniflux+lists@omniflux.com>:
45111 * include/grub/terminfo.h: New file.
45112 * include/grub/tparm.h: Likewise.
45113 * include/grub/i386/pc/serial.h: Likewise.
45114 * term/terminfo.c: Likewise.
45115 * term/tparm.c: Likewise.
45116 * term/i386/pc/serial.c: Likewise.
45117 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
45118 serial.mod.
45119 (terminfo_mod_SOURCES): New variable.
45120 (terminfo_mod_CFLAGS): Likewise.
45121 (serial_mod_SOURCES): Likewise.
45122 (serial_mod_CFLAGS): Likewise.
45123
48b671ff 451242005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
45125
45126 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
45127 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
45128 and kern/powerpc/ieee1275/cmain.c, respectively.
45129
45130 * boot/powerpc/ieee1275/crt0.S: Moved to ...
45131 * kern/powerpc/ieee1275/crt0.S: ... here.
45132
45133 * boot/powerpc/ieee1275/cmain.c: Moved to ...
45134 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 45135
48b671ff 45136 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
45137 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
45138 instead of boot/powerpc/ieee1275/crt0.S and
45139 boot/powerpc/ieee1275/cmain.c, respectively.
45140
45141 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
45142 sectors. It was not used anyway.
45143
09fc77a7 451442005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45145
45146 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
45147 `unused parameter' warning.
45148
003789c7 451492005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45150
45151 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
45152 function.
45153 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
45154 getcharwidth.
45155
67f44c86 451562005-08-28 Marco Gerards <metgerards@student.han.nl>
45157
45158 * include/grub/normal.h (enum grub_completion_type): Added
45159 `GRUB_COMPLETION_TYPE_ARGUMENT'.
45160
45161 * normal/cmdline.c (print_completion): Handle
45162 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
45163 * normal/menu_entry.c (store_completion): Likewise.
45164
45165 * normal/completion.c (complete_arguments): New function.
45166 (grub_normal_do_completion): Call `complete_arguments' when the
45167 current words start with a dash.
45168
0b5abe02 451692005-08-27 Marco Gerards <metgerards@student.han.nl>
45170
45171 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
45172 `gzio.mod' instead of `io.mod').
45173
d9864ee1 451742005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
45175
45176 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
45177 (DISTDIRS): Added io and video.
45178 Rewrite the search routine to make an output consistently.
45179
45180 * DISTLIST: Added conf/sparc64-ieee1275.mk,
45181 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
45182 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
45183 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
45184 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
45185 util/powerpc/ieee1275/misc.c.
f19dbdb7 45186
d9864ee1 45187 * include/grub/gzio.h: New file.
45188 * io/gzio.c: Likewise.
f19dbdb7 45189
d9864ee1 45190 * kern/file.c (grub_file_close): Call grub_device_close only if
45191 FILE->DEVICE is not NULL.
45192
45193 * include/grub/mm.h [!NULL] (NULL): New macro.
45194
45195 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
45196
45197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
45198 (pkgdata_MODULES): Added gzio.mod.
45199 (gzio_mod_SOURCES): New variable.
45200 (gzio_mod_CFLAGS): Likewise.
45201
45202 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
45203 (pkgdata_MODULES): Added gzio.mod.
45204 (gzio_mod_SOURCES): New variable.
45205 (gzio_mod_CFLAGS): Likewise.
45206
45207 * commands/cat.c: Include grub/gzio.h.
45208 (grub_cmd_cat): Use grub_gzfile_open instead of
45209 grub_file_open.
f19dbdb7 45210
d9864ee1 45211 * commands/cmp.c: Include grub/gzio.h.
45212 (grub_cmd_cmp): Use grub_gzfile_open instead of
45213 grub_file_open.
45214
45215 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
45216 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
45217 grub_file_open.
45218 (grub_rescue_cmd_module): Likewise.
45219
fa46f4b5 452202005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45221
45222 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
45223 kern/sparc64/ieee1275/init.c because it contains _start.
45224 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
45225
e9211b5d 452262005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45227
45228 * configure.ac: Add support for sparc64 host with ieee1275
45229 firmware.
45230 * configure: Generated from configure.ac.
45231 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
45232 instead of int.
45233 (grub_ofdisk_read): Likewise.
45234 (grub_ofdisk_open): Use %p to print pointer values, and cast the
45235 pointers as (void *) to remove a warning.
45236 (grub_ofdisk_close): Likewise.
45237 (grub_ofdisk_read): Likewise.
45238 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
45239 returns, so make it return void to remove a warning.
45240 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
45241 Corresponding prototype change.
45242 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
45243 values, and cast the pointers as (void *) to remove a warning.
45244 (grub_mm_dump): Likewise.
45245 * conf/sparc64-ieee1275.mk: New file.
45246 * conf/sparc64-ieee1275.rmk: Likewise.
45247 * include/grub/sparc64/setjmp.h: Likewise.
45248 * include/grub/sparc64/types.h: Likewise.
45249 * include/grub/sparc64/ieee1275/console.h: Likewise.
45250 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
45251 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
45252 * include/grub/sparc64/ieee1275/time.h: Likewise.
45253 * kern/sparc64/cache.c: Likewise.
45254 * kern/sparc64/dl.c: Likewise.
45255 * kern/sparc64/ieee1275/init.c: Likewise.
45256 * kern/sparc64/ieee1275/openfw.c: Likewise.
45257
385c6a92 452582005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
45259
45260 * util/console.c (grub_ncurses_putchar): If C is greater than
45261 0x7f, set C to a question mark.
45262 (grub_ncurses_getcharwidth): New function.
45263 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
45264 getcharwidth.
45265
45266 * normal/menu.c (print_entry): Made aware of Unicode. First,
45267 convert TITLE to UCS-4, and predict the cursor position by
45268 grub_getcharwidth.
45269
45270 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
45271 const to SRC.
45272 * kern/misc.c (grub_utf16_to_utf8): Likewise.
45273
16ccb8b1 452742005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45275
45276 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
45277 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
45278 grub_strcat.
45279
45280 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
45281 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
45282 grub_strcpy and grub_strlen. Take it into account that a space
45283 character is inserted as a delimiter.
45284
6a85ce79 452852005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45286
45287 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 45288 invalid magic in the error.
6a85ce79 45289
45290 * commands/search.c: New file.
f19dbdb7 45291
6a85ce79 45292 * util/grub-emu.c (main): Call grub_search_init and
45293 grub_search_fini.
45294
45295 * kern/rescue.c (grub_rescue_print_disks): Removed.
45296 (grub_rescue_print_devices): New function.
45297 (grub_rescue_cmd_ls): Use grub_device_iterate with
45298 grub_rescue_print_devices instead of grub_disk_dev_iterate with
45299 grub_rescue_print_disks.
45300
45301 * kern/partition.c (grub_partition_iterate): Return the result of
45302 PARTMAP->ITERATE instead of GRUB_ERRNO.
45303
45304 * kern/device.c: Include grub/partition.h.
45305 (grub_device_iterate): New function.
45306
45307 * include/grub/partition.h (grub_partition_iterate): Return int
45308 instead of grub_err_t.
45309
45310 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
45311 prototype.
45312 [GRUB_UTIL] (grub_search_fini): Likewise.
45313
45314 * include/grub/device.h (grub_device_iterate): New prototype.
45315
45316 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45317 commands/search.c.
45318 (pkgdata_MODULES): Added search.mod.
45319 (search_mod_SOURCES): New variable.
45320 (search_mod_CFLAGS): Likewise.
45321
45322 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
45323 (pkgdata_MODULES): Added search.mod.
45324 (search_mod_SOURCES): New variable.
45325 (search_mod_CFLAGS): Likewise.
45326
45327 * commands/ls.c (grub_ls_list_disks): Renamed to ...
45328 (grub_ls_list_devices): ... this, and use grub_device_iterate.
45329 All callers changed.
45330
45331 * DISTLIST: Added commands/search.c.
45332
ef095434 453332005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45334
45335 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
45336 conversion.
45337 (grub_getcharwidth): New function.
45338
45339 * kern/misc.c (grub_utf8_to_ucs4): New function.
45340
45341 * include/grub/term.h (struct grub_term): Added a new member
45342 "getcharwidth".
45343 (grub_getcharwidth): New prototype.
45344
45345 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
45346
45347 * term/i386/pc/console.c (map_char): New function. Segregated from
45348 grub_console_putchar.
45349 (grub_console_putchar): Use map_char.
45350 (grub_console_getcharwidth): New function.
45351 (grub_console_term): Specified grub_console_getcharwidth as
45352 getcharwidth.
45353
45354 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
45355 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
45356
45357 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
45358 GRUB_ERRNO.
45359 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
45360 on grub_strtoul completely.
45361 (write_char): Declare local variables in the beginning of the
45362 function.
45363 (grub_vesafb_getcharwidth): New function.
45364 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
45365 getcharwidth.
45366
1f0a95e4 453672005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
45368
45369 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
45370 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
45371 commands/i386/pc/vbetest.c.
45372
45373 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
45374 call grub_vbe_get_controller_info again, because the returned
45375 information is volatile.
45376 (grub_vbe_set_video_mode): Mostly rewritten.
45377 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
45378 grub_vbe_status_t correctly.
45379 (grub_vbe_get_video_mode_info): Likewise.
45380 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
45381 several if statements.
45382
45383 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
45384 * commands/i386/pc/vbeinfo.c: ... this.
45385
45386 * commands/i386/pc/vbe_test.c: Renamed to ...
45387 * commands/i386/pc/vbetest.c: ... this.
45388
45389 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
45390 ...
45391 (grub_cmd_vbeinfo): ... this. Save video modes before
45392 iterating. Skip a video mode, if it is not available, not enough
45393 information is given or it is monochrome. Show the memory
45394 model. Leave the interpretation of MODEVAR to grub_strtoul
45395 completely.
45396 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
45397 (GRUB_MOD_FINI): Likewise.
45398
45399 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
45400 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
45401 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
45402 duplicated grub_env_get. Leave the interpretation of MODEVAR to
45403 grub_strtoul completely.
45404 (real2pm): Removed.
45405 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
45406 (GRUB_MOD_FINI): Likewise.
45407
45408 * normal/misc.c: Include grub/mm.h.
45409
45410 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
45411 vbe_list_modes with vbetest.mod and vbeinfo.mod.
45412 (vbe_list_modes_mod_SOURCES): Removed.
45413 (vbe_list_modes_mod_CFLAGS): Likewise.
45414 (vbe_test_mod_SOURCES): Likewise.
45415 (vbe_test_mod_CFLAGS): Likewise.
45416 (vbeinfo_mod_SOURCES): New variable.
45417 (vbeinfo_mod_CFLAGS): Likewise.
45418 (vbetest_mod_SOURCES): Likewise.
45419 (vbetest_mod_CFLAGS): Likewise.
45420
992ffbbe 454212005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45422
45423 * normal/misc.c: New file.
45424
45425 * DISTLIST: Added normal/misc.c.
f19dbdb7 45426
992ffbbe 45427 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45428 DISK to HOOK. Call HOOK with DISK.
45429 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45430 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45431 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45432
45433 * normal/menu_entry.c (struct screen): Added a new member
45434 "completion_shown".
45435 (completion_buffer): New global variable.
45436 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45437 (store_completion): New function.
45438 (complete): Likewise.
45439 (clear_completions): Likewise.
45440 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45441 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45442 a tab, call complete.
45443
45444 * normal/completion.c (disk_dev): Removed.
45445 (print_simple_completion): Likewise.
45446 (print_partition_completion): Likewise.
45447 (print_func): New global variable.
45448 (add_completion): Do not take the arguments WHAT or PRINT any
45449 longer. Added a new argument TYPE. Instead of printing directly,
45450 call PRINT_FUNC if not NULL.
45451 All callers changed.
45452 (complete_device): Use a local variable DEV instead of
45453 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45454 (grub_normal_do_completion): Take a new argument HOOK. Do not
45455 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45456 empty string, return NULL instead.
45457 All callers changed.
45458
45459 * normal/cmdline.c (print_completion): New function.
45460
45461 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45462 to HOOK.
45463 All callers changed.
45464
45465 * kern/disk.c (grub_print_partinfo): Removed.
45466
45467 * include/grub/partition.h (struct grub_partition_map): Add a new
45468 argument DISK into HOOK of ITERATE.
45469 (grub_partition_iterate): Add a new argument DISK to HOOK.
45470
45471 * include/grub/normal.h (enum grub_completion_type): New enum.
45472 (grub_completion_type_t): New type.
45473 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45474 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45475 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45476 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45477 (grub_normal_do_completion): Added a new argument HOOK.
45478 (grub_normal_print_device_info): New prototype.
45479
45480 * include/grub/disk.h (grub_print_partinfo): Removed.
45481
45482 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45483 (normal_mod_SOURCES): Likewise.
45484 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45485 (normal_mod_SOURCES): Likewise.
45486
45487 * commands/ls.c (grub_ls_list_disks): Use
45488 grub_normal_print_device_info instead of grub_print_partinfo. Free
45489 PNAME.
45490 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45491 duplicating the code.
45492
0bd41162 454932005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45494
45495 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 45496 follow GCS more precisely.
45497 * commands/i386/pc/vbe_test.c: Likewise.
45498 * include/grub/i386/pc/vbe.h: Likewise.
45499 * term/i386/pc/vesafb.c: Likewise.
45500 * video/i386/pc/vbe.c: Likewise.
0bd41162 45501
6323696a 455022005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45503
45504 * DISTLIST: Added term/i386/pc/vesafb.c
45505 DISTLIST: Added video/i386/pc/vbe.c
45506 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45507 DISTLIST: Added commands/i386/pc/vbe_test.c.
45508 * commands/i386/pc/vbe_list_modes.c: New file.
45509 * commands/i386/pc/vbe_test.c: Likewise.
45510 * term/i386/pc/vesafb.c: Likewise.
45511 * video/i386/pc/vbe.c: Likewise.
45512 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45513 (grub_vbe_probe) Added prototype.
45514 (grub_vbe_set_video_mode) Likewise.
45515 (grub_vbe_get_video_mode) Likewise.
45516 (grub_vbe_get_video_mode_info) Likewise.
45517 (grub_vbe_set_pixel_rgb) Likewise.
45518 (grub_vbe_set_pixel_index) Likewise.
45519 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45520 (pkgdata_MODULES): Added vesafb.mod.
45521 (pkgdata_MODULES): Added vbe_list_modes.mod.
45522 (pkgdata_MODULES): Added vbe_test.mod.
45523 (vbe_mod_SOURCES): Added.
45524 (vbe_mod_CFLAGS): Likewise.
45525 (vesafb_mod_SOURCES): Likewise.
45526 (vesafb_mod_CFLAGS): Likewise.
45527 (vbe_list_modes_mod_SOURCES): Likewise.
45528 (vbe_list_modes_mod_CFLAGS): Likewise.
45529 (vbe_test_mod_SOURCES): Likewise.
45530 (vbe_test_mod_CFLAGS): Likewise.
45531
0a74e62f 455322005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45533
0a74e62f 45534 * normal/command.c (grub_command_execute): If INTERACTIVE is
45535 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45536 CMDLINE. Disable the pager if INTERACTIVE is true.
45537 All callers are changed.
45538
45539 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45540 before reading a config file.
45541 * normal/main.c (read_config_file): Even if a command is not
45542 found, register it if it is within an entry.
45543
45544 * util/grub-emu.c: Include sys/types.h and unistd.h.
45545 (options): Added --hold.
45546 (struct arguments): Added a new member "hold".
45547 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45548 missing.
45549 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45550 cleared by a debugger, if it is not zero.
45551
45552 * include/grub/normal.h (grub_command_execute): Add an argument
45553 INTERACTIVE.
45554
e51f85ae 455552005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45556
45557 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45558
e9c6f39b 455592005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45560
45561 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45562 program with another one, because the old one didn't detect a bug
45563 in gcc-3.4. Always use regparm 2, because the new test is still
45564 not enough for gcc-4.0. Someone must investigate a simple test
45565 case which detects a bug in gcc-4.0.
45566
8de3495c 455672005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45568
45569 * DISTLIST: Added normal/completion.c.
45570
45571 * normal/completion.c: New file.
f19dbdb7 45572
8de3495c 45573 * term/i386/pc/console.c (grub_console_getwh): New function.
45574 (grub_console_term): Assign grub_console_getwh to getwh.
45575
45576 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45577 function is defined in normal/completion.c as
45578 grub_normal_do_completion.
45579 (grub_cmdline_get): Use grub_normal_do_completion instead of
45580 grub_tab_complete.
45581
45582 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45583 returns non-zero, otherwise return 0.
45584 (grub_partition_iterate): First, probe the partition map. Then,
45585 call ITERATE only for this partition map.
45586
45587 * kern/misc.c (grub_strncmp): Rewritten.
45588
45589 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45590 returns non-zero. Otherwise return 0.
45591
45592 * include/grub/partition.h (grub_partition_map_iterate): Return
45593 int instead of void.
45594
45595 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45596
45597 * include/grub/misc.h (grub_strncmp): Change the type of N to
45598 grub_size_t.
45599
45600 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45601 of void.
45602
45603 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 45604 unsigned explicitly before comparing it with I.
8de3495c 45605
45606 * kern/main.c (grub_env_write_root): Add the attribute unused into
45607 VAR.
45608
45609 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45610 normal/completion.c.
45611 (normal_mod_SOURCES): Likewise.
45612 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45613 (normal_mod_SOURCES): Likewise.
45614
45615 * normal/command.c (grub_iterate_commands): If ITERATE returns
45616 non-zero, return one immediately.
45617
e85e144b 456182005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45619
45620 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45621 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45622 descriptions.
45623 (grub_vbe_get_controller_info): New function.
45624 (grub_vbe_get_mode_info): Likewise.
45625 (grub_vbe_set_mode): Likewise.
45626 (grub_vbe_get_mode): Likewise.
45627 (grub_vbe_set_memory_window): Likewise.
45628 (grub_vbe_get_memory_window): Likewise.
45629 (grub_vbe_set_scanline_length): Likewise.
45630 (grub_vbe_get_scanline_length): Likewise.
45631 (grub_vbe_set_display_start): Likewise.
45632 (grub_vbe_get_display_start): Likewise.
45633 (grub_vbe_set_palette_data): Likewise.
45634 * include/grub/i386/pc/vbe.h: New file.
45635
c46153d2 456362005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45637
45638 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45639 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45640 * DISTLIST: Likewise.
45641 * kern/ieee1275/of.c: Moved to ...
45642 * kern/ieee1275/ieee1275.c: ... here.
45643
0cb90c45 456442005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45645
45646 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45647 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45648 Pass 0 as `end' parameter to grub_strtoul().
45649
a19fb360 456502005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45651
45652 * include/grub/powerpc/ieee1275/console.h: Do not include
45653 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45654 ifdef.
45655 (grub_console_cur_color): Remove i386-specific prototype.
45656 (grub_console_real_putchar): Likewise.
45657 (grub_console_checkkey): Likewise.
45658 (grub_console_getkey): Likewise.
45659 (grub_console_getxy): Likewise.
45660 (grub_console_gotoxy): Likewise.
45661 (grub_console_cls): Likewise.
45662 (grub_console_setcursor): Likewise.
45663 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45664 Include <grub/machine/console.h>.
45665 * term/ieee1275/ofconsole.c: Likewise.
45666
4ac9bd04 456672005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45668
45669 * Makefile.in (LIBLZO): New variable.
45670
45671 * configure.ac: Check for LZO version 2.
45672
45673 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45674 lzo/lzo1x.h instead of lzo1x.h.
45675
45676 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45677 of -llzo.
45678
45679 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45680 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45681
45682 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45683 copying the data from PARTITION to P.
45684
f4917dfd 456852005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45686
45687 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45688 negative, unload the module.
45689
45690 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45691 map is "pc_partition_map" but not "pc".
45692 (usage): Fix the description. The options are --boot-image and
45693 --core-image but not --boot-file or --core-file.
45694 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45695 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45696 DEFAULT_DIRECTORY.
45697
45698 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45699 --core-file. Specify INSTALL_DEVICE as an argument.
45700
45701 * util/console.c: Include config.h.
45702 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45703 [HAVE_NCURSES_H]: Include ncurses.h.
45704 [HAVE_CURSES_H]: Include curses.h.
45705 [!A_NORMAL] (A_NORMAL): Defined as zero.
45706 [!A_STANDOUT] (A_STANDOUT): Likewise.
45707
45708 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45709 -lncurses.
45710 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45711
45712 * configure.ac: Check for curses libraries and headers.
45713
45714 * Makefile.in (LIBCURSES): New variable.
45715
45716 * genmk.rb (Script::rule): Set the executable bits.
45717
45718 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45719 name of the PC partition map is "pc_partition_map" but not "pc".
45720
0e143073 457212005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45722
45723 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45724 (modules): Likewise.
45725 (usage): Added descriptions for --modules and --grub-probefs.
45726 Handle --modules and --grub-probefs. Save the arguments in MODULES
45727 and GRUB_PROBEFS, respectively.
45728 Auto-detect a filesystem module against GRUBDIR. If the result is
45729 empty and modules are not specified explicitly, abort the
45730 installation. Add the result to MODULES.
45731
45732 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45733 disk/powerpc/ieee1275/ofdisk.c,
45734 include/grub/powerpc/ieee1275/init.h and
45735 term/powerpc/ieee1275/ofconsole.c.
45736 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45737 term/ieee1275/ofconsole.c.
45738
45739 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45740
45741 * COPYING: Upgraded to the latest version. Only the address of the
45742 FSF office has changed.
f19dbdb7 45743
efd6e6d5 457442005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45745
45746 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45747 kern/ieee1275.c with kern/ieee1275/of.c.
45748
45749 * kern/ieee1275.c: Moved to ...
45750 * kern/ieee1275/of.c: ... here.
45751
8ceafda2 457522005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45753
45754 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 45755 readability.
8ceafda2 45756
45757 * config.guess: Updated to the latest version from gnulib.
45758 * config.sub: Likewise.
45759 * install.sh: Likewise.
45760 * mkinstalldirs: Likewise.
45761
45762 * include/grub/console.h: Removed. This file is arch-specific. Do
45763 not put this in include/grub.
45764
45765 * include/grub/i386/pc/console.h: Resurrected.
45766
45767 * util/console.c: Include grub/machine/console.h instead of
45768 grub/console.h.
45769 * util/grub-emu.c: Likewise.
45770
267f6cd9 457712005-08-04 Marco Gerards <metgerards@student.han.nl>
45772
45773 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45774 hardcoded value.
f19dbdb7 45775
267f6cd9 45776 From Vincent Pelletier <subdino2004@yahoo.fr>
45777 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45778 Redefined to use grub_getwh.
45779 (grub_term): New member named getwh.
45780 (grub_getwh): New prototype.
45781 * kern/term.c (grub_getwh): New function.
45782 * term/i386/pc/console.c (grub_console_getwh): New function.
45783 (grub_console_term): New member `getwh'.
45784 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45785 (grub_vga_term): New member `getwh'.
0b5abe02 45786 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 45787 grub_ssize_t.
45788 (grub_ofconsole_getw): New function.
45789 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45790 (grub_ofconsole_term): New field named getwh and new initial
45791 value.
45792
3be7266d 457932005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45794
45795 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45796 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45797 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45798 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45799 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45800 of <grub/machine/ieee1275.h>.
45801 * commands/ieee1275/reboot.c: Likewise.
45802 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45803 * kern/ieee1275.c: ... to here. All users updated. Change all
45804 parameter structs to use new type `grub_ieee1275_cell_t'.
45805 * term/powerpc/ieee1275/ofconsole.c: Move ...
45806 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45807 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45808 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45809 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45810 to return int.
45811 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45812 Remove unused prototypes. All users updated.
45813 * include/grub/powerpc/ieee1275/console.h: Removed.
45814 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45815 `grub_ieee1275_cell_t'.
45816 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45817 Cast comparisons with -1 to the correct type.
45818 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45819 type to match `grub_ieee1275_entry_fn'.
45820
8b5f3938 458212005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45822
45823 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45824
45825 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45826 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45827 partmap/sun.c.
45828 (grub_probefs_SOURCES): New variable.
45829
45830 * util/i386/pc/grub-probefs.c: New file.
45831
45832 * util/i386/pc/grub-setup.c (main): Call
45833 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45834 grub_hfs_init and grub_jfs_init to initialize the system. Call
45835 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45836 grub_pc_partition_map_fini to finish the system.
45837
ea409713 458382005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45839
45840 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45841 function.
45842 (grub_multiboot_load_elf32): Likewise.
45843 (grub_multiboot_is_elf64): Likewise.
45844 (grub_multiboot_load_elf64): Likewise.
45845 (grub_multiboot_load_elf): Likewise.
45846 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45847 an ELF32 or ELF64 file.
45848 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45849
45850 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45851 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45852 NULL before calling FS->LABEL.
45853 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45854 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45855 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45856 before calling FS->LABEL.
45857
141a288b 458582005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45859
45860 * util/i386/pc/grub-install.in (datadir): New variable.
45861 (libdir): Removed.
45862 (pkgdatadir): New variable.
45863 (pkglibdir): Removed.
45864
0d5f8a54 458652005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45866
45867 * DISTLIST: Added util/i386/pc/grub-install.in.
45868
45869 * util/i386/pc/grub-install.in: New file.
45870
45871 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45872 (grub_install_SOURCES): Likewise.
45873
45874 * genmk.rb: Added support for scripts.
45875 (Script): New class.
45876 (scripts): New variable.
45877
45878 * Makefile.in (install-local): Install sbin_SCRIPTS by
45879 INSTALL_SCRIPT.
45880 (uninstall): Remove sbin_SCRIPTS.
45881
45882 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45883 device, try to get a GRUB device by
45884 grub_util_biosdisk_get_grub_dev.
45885 Free DEST_DEV.
45886
45887 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45888 description for --device-map.
45889
5f968e1e 458902005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45891
45892 Change the semantics of variable hooks. They now return strings
45893 instead of error values.
f19dbdb7 45894
5f968e1e 45895 * util/i386/pc/grub-setup.c: Include grub/env.h.
45896 (setup): Use grub_device_set_root instead of grub_env_set.
45897
45898 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45899 grub_env_get instead of grub_device_set_root and
45900 grub_device_get_root, respectively.
45901
45902 * kern/main.c (grub_env_write_root): New function.
45903 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45904 grub_env_set instead of grub_device_set_root.
45905
45906 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45907 many variables.
45908 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45909 rather than calling ENV->WRITE_HOOK afterwards.
45910 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45911 passing a pointer of a pointer.
45912 (grub_register_variable_hook): Change the types of "read_hook" and
45913 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45914 respectively.
45915 Allocate the default empty string on the heap, because this string
45916 may be freed later.
45917
45918 * kern/device.c: Include grub/env.h.
45919 (grub_device_set_root): Removed.
45920 (grub_device_get_root): Likewise.
45921 (grub_device_open): Use grub_env_get instead of
45922 grub_device_get_root.
45923
45924 * include/grub/env.h (grub_env_read_hook_t): New type.
45925 (grub_env_write_hook_t): Likewise.
45926 (grub_env_var): Change the types of "read_hook" and "write_hook"
45927 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45928 (grub_register_variable_hook): Likewise.
45929
45930 * include/grub/device.h (grub_device_set_root): Removed.
45931 (grub_device_set_root): Likewise.
45932
45933 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45934 make sure that DIRNAME terminates with '/', so that
45935 grub_fat_find_dir will fail if PATH is not a directory.
45936
45937 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45938 from DIRNAME.
45939 Use the qualifier auto for print_files and print_files_long.
45940 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45941 as a regular file.
45942 Put a newline only if there is no error.
45943 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45944 used.
45945
896f0afd 459462005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45947
45948 * kern/partition.c (grub_partition_probe): Initialize PART to
45949 NULL. Otherwise, when no partition map is registered, this returns
45950 a garbage.
45951
b28b81b2 459522005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45953
45954 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45955 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45956 valid.
45957
5f3607e0 459582005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45959
45960 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45961 information on each device, if it does not have partitions. Print
45962 "Device" instead of "Disk", because this function is not specific
45963 to disk devices.
45964
45965 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45966 static to ensure that it is put on the memory rather than a
45967 register.
45968
502c87e8 459692005-07-17 Yoshinori Okuji <okuji@enbug.org>
45970
45971 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45972 (grub_cat_init): Likewise.
45973 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45974 (options): Likewise.
45975 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45976 (grub_configfile_init): Likewise.
45977 * font/manager.c (GRUB_MOD_INIT): Likewise.
45978 * commands/help.c (GRUB_MOD_INIT): Likewise.
45979 (grub_help_init): Likewise.
45980 * normal/command.c (grub_command_init): Likewise.
45981 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45982 * disk/loopback.c (grub_loop_init): Likewise.
45983 (GRUB_MOD_INIT): Likewise.
45984 * commands/ls.c (grub_ls_init): Likewise.
45985 (GRUB_MOD_INIT): Likewise.
45986 (options): Likewise.
45987 * commands/boot.c (grub_boot_init): Likewise.
45988 (GRUB_MOD_INIT): Likewise.
45989 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45990 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45991 (GRUB_MOD_INIT): Likewise.
45992 * commands/cmp.c (grub_cmp_init): Likewise.
45993 (GRUB_MOD_INIT): Likewise.
45994
45995 * normal/arg.c: Use <> instead of "" to include header files.
45996 (SHORT_ARG_HELP): New macro.
45997 (SHORT_ARG_USAGE): Likewise.
45998 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45999 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
46000 descriptions.
46001 (find_short): Check if C is 'h' or 'u' explicitly.
46002 (grub_arg_show_help): Use space characters instead of tabs. Treat
46003 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
46004 are shown with --help and --usage only if they are not used for
46005 the command itself.
46006 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
46007 'h' and 'u'.
46008
46009 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
46010 const into "longarg". Change the type of "shortarg" to int.
46011
f806d18e 460122005-07-17 Yoshinori Okuji <okuji@enbug.org>
46013
46014 * boot/i386/pc/boot.S (boot_drive_check): New label.
46015
46016 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
46017 macro.
46018
46019 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
46020 which do not pass a boot drive correctly. Copied from GRUB Legacy.
46021
e293232b 460222005-07-17 Yoshinori Okuji <okuji@enbug.org>
46023
46024 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
46025 When turning off Gate A20, skip the check and return immediately,
46026 because this is not fatal usually.
46027
ebedfd00 460282005-07-17 Yoshinori Okuji <okuji@enbug.org>
46029
46030 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
46031 be 0x7C00 instead of 0x8000.
46032
46033 * boot/i386/pc/pxeboot.S: Rewritten.
46034
46035 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
46036 EXT_C.
46037 (gate_a20_check_state): Read a byte from 0x108000. Invert the
46038 result.
46039
654fc59f 460402005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
46041
46042 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
46043 robustness. This routine now supports a BIOS call and System
46044 Control Port A to modify the gate A20.
46045
46046 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
46047 Increased to 0x440.
46048
09f9923f 460492005-07-12 Hollis Blanchard <hollis@penguinppc.org>
46050
46051 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
46052 device path and resulting ihandle.
46053 (grub_ofdisk_close): dprintf the ihandle being closed.
46054 (grub_ofdisk_read): dprintf function parameters.
46055 * kern/mm.c (grub_mm_init_region): Likewise.
46056 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
46057 (grub_linux_boot): dprintf the Linux entry point, initrd address and
46058 size, and boot arguments.
46059 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
46060 before loading into memory.
46061 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
46062 before loading into memory.
46063
7ef504d8 460642005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
46065
46066 * kern/mm.c: Added much documentation.
46067 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
46068 8, set to 5 instead of 8.
46069
e0f050c2 460702005-07-10 Yoshinori Okuji <okuji@enbug.org>
46071
46072 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
46073
46074 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
46075 (grub_mkdevicemap_SOURCES): New variable.
46076
46077 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
46078 lib/device.c of GRUB Legacy.
46079
7224189a 460802005-07-10 Yoshinori Okuji <okuji@enbug.org>
46081
46082 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
46083 instead of PATH is NULL.
46084
68c864eb 460852005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
46086
46087 * commands/cmp.c (BUFFER_SIZE): New macro.
46088 (grub_cmd_cmp): Close the right file at the right time. Compare
46089 only data just read. Don't report files of different size as
46090 identical. Dynamically allocate buffers. Move variable
46091 declarations at the beginning of function.
46092
e6f3e614 460932005-07-09 Yoshinori Okuji <okuji@enbug.org>
46094
46095 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
46096 reverse.
46097
f8f1559a 460982004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
46099
46100 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
46101 when backspace is pressed at beginning of line.
46102
39c9d41d 461032005-07-03 Yoshinori Okuji <okuji@enbug.org>
46104
46105 * DISTLIST: Added genfslist.sh.
46106
46107 * normal/main.c (fs_module_list): New variable.
46108 (autoload_fs_module): New function.
46109 (read_fs_list): Likewise.
46110 (grub_normal_execute): Call read_fs_list.
46111
46112 * kern/fs.c (grub_fs_autoload_hook): New variable.
46113 (grub_fs_probe): Added support for auto-loading.
46114
46115 * include/grub/normal.h (struct grub_fs_module_list): New struct.
46116 (grub_fs_module_list_t): New type.
46117
46118 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
46119 (grub_fs_autoload_hook): New prototype.
46120
46121 * genfslist.sh: New file.
f19dbdb7 46122
39c9d41d 46123 * genmk.rb: Added a rule to generate a filesystem list.
46124
121c1d83 461252005-06-30 Marco Gerards <metgerards@student.han.nl>
46126
46127 * configure.ac: Fix the test for cross-compiling.
46128
46129 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
46130 define GRUB_UTIL anymore.
46131
46132 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
46133 so this function works on other systems than just big endian.
46134 (load_modules): Likewise.
46135 (add_segments): Likewise.
46136
e75d76e1 461372005-06-23 Hollis Blanchard <hollis@penguinppc.org>
46138
46139 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
46140 contains `l' modifier, get a long from va_arg().
46141
50b5a0a7 461422005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
46143
46144 * kern/mm.c (grub_free): If the next free block which is being
46145 merged is the first free block, set the first block to the block
46146 being freed.
46147 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
46148
89371b20 461492005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46150
46151 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
46152 `grub_ieee1275_chosen'.
46153
168d6e58 461542005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46155
46156 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
46157 (grub_ieee1275_chosen): New variable.
46158 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
46159 `chosen'.
46160 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
46161 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46162 Rename first argument to `phandle' for consistency.
46163 (grub_ieee1275_get_property_length): Likewise.
46164 (grub_ieee1275_next_property): Likewise. Change type of first argument
46165 to grub_ieee1275_phandle_t.
46166 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
46167 Move export next to declaration.
46168 (grub_ieee1275_chosen): New variable.
46169 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
46170 Correct cosmetic typo.
46171 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
46172 `grub_ieee1275_chosen'.
46173 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
46174 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
46175 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
46176 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
46177 `grub_ieee1275_chosen'.
46178
ca5baa3f 461792005-05-10 Hollis Blanchard <hollis@penguinppc.org>
46180
46181 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
46182 /chosen/bootargs.
46183 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
46184 /chosen/bootargs as "variable=value" pairs.
46185
708b345f 461862005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
46187
46188 * include/grub/misc.h (grub_dprintf): New macro.
46189 (grub_real_dprintf): New prototype.
46190 (grub_strword): Likewise.
46191 (grub_iswordseparator): Likewise.
46192 * kern/misc.c (grub_real_dprintf): New function.
46193 (grub_strword): Likewise.
46194 (grub_iswordseparator): Likewise.
46195
f4c5e67c 461962005-04-30 Hollis Blanchard <hollis@penguinppc.org>
46197
46198 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
46199 (roundup): Remove macro.
46200 (grub_ieee1275_flags): Make static.
46201 (grub_ieee1275_realmode): Remove.
46202 (grub_ieee1275_test_flag): New function.
46203 (grub_ieee1275_set_flag): Likewise.
46204 (find_options): Rename to `grub_ieee1275_find_options'; update
46205 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
46206 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
46207 (cmain): New prototype.
46208 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
46209 `grub_ieee1275_flags' directly.
46210 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
46211 machine/biosdisk.h.
46212 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
46213 Don't include grub/machine/init.h.
46214 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
46215 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46216 Remove prototype.
46217 (grub_ieee1275_realmode): Likewise.
46218 (grub_ieee1275_flag): New enum.
46219 (grub_ieee1275_test_flag): New prototype.
46220 (grub_ieee1275_set_flag): New prototype.
46221 * include/grub/powerpc/ieee1275/init.h: Remove file.
46222 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
46223 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
46224 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
46225 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
46226 comment.
46227 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
46228 `grub_ieee1275_test_flag'.
46229 (grub_ieee1275_encode_devname): Likewise.
46230
ed16607e 462312005-04-21 Hollis Blanchard <hollis@penguinppc.org>
46232
46233 * include/grub/powerpc/ieee1275/ieee1275.h
46234 (grub_ieee1275_encode_devname): New prototype.
46235 (grub_ieee1275_get_filename): Likewise.
46236 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
46237 function.
46238 (grub_set_prefix): Likewise.
46239 (grub_machine_init): Call grub_set_prefix.
46240 * kern/powerpc/ieee1275/openfw.c: Fix typos.
46241 (grub_parse_type): New enum.
46242 (grub_ieee1275_get_devargs): New function.
46243 (grub_ieee1275_get_devname): Likewise.
46244 (grub_ieee1275_parse_args): Likewise.
46245 (grub_ieee1275_get_filename): Likewise.
46246 (grub_ieee1275_encode_devname): Likewise.
46247
be369920 462482005-03-30 Marco Gerards <metgerards@student.han.nl>
46249
46250 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
46251 `grub_loader_unset'.
46252
a5ce3a4a 462532005-03-26 Hollis Blanchard <hollis@penguinppc.org>
46254
46255 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
46256 instead of grub_ieee1275_interpret.
46257 (grub_halt_init): New function.
46258 (grub_halt_fini): Likewise.
46259 (GRUB_MOD_INIT): Correct message grammar.
46260 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
46261 instead of grub_ieee1275_interpret.
46262 (grub_reboot_init): New function.
46263 (grub_reboot_fini): Likewise.
46264 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
46265 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
46266 util/i386/pc/misc.c with commands/ieee1275/halt.c,
46267 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
46268 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
46269 function.
46270 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
46271 Add prototype.
46272 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
46273 prototype.
46274 (grub_halt): Likewise.
46275 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
46276 (cmain): Remove __attribute__((unused)).
46277 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
46278 (grub_heap_len): Likewise.
46279 (grub_machine_fini): New function.
46280 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
46281 (grub_halt): Likewise.
46282 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
46283 function.
46284 * util/powerpc/ieee1275/misc.c: New file.
46285
0058f771 462862005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
46287
46288 * DISTLIST: New file.
46289 * gendistlist.sh: Likewise.
f19dbdb7 46290
0058f771 46291 * Makefile.in (COMMON_DISTFILES): Removed.
46292 (BOOT_DISTFILES): Likewise.
46293 (CONF_DISTFILES): Likewise.
46294 (DISK_DISTFILES): Likewise.
46295 (FS_DISTFILES): Likewise.
46296 (INCLUDE_DISTFILES): Likewise.
46297 (KERN_DISTFILES): Likewise.
46298 (LOADER_DISTFILES): Likewise.
46299 (TERM_DISTFILES): Likewise.
46300 (UTIL_DISTFILES): Likewise.
46301 (DISTFILES): Likewise.
46302 (uninstall): Uninstall files in $(pkgdata_DATA).
46303 (DISTLIST): New target.
46304 (distdir): Use the contents of the file DISTLIST to get a list of
46305 distributed files.
46306
46b3b8a5 463072005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
46308
46309 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
46310 descriptor. This is ported from GRUB Legacy.
46311
46312 * gencmdlist.sh: Added an extra semicolon to make it work with
46313 old sed versions. Reported by Robert Bihlmeyer
46314 <robbe@orcus.priv.at>.
46315
5822ff87 463162005-03-08 Yoshinori Okuji <okuji@enbug.org>
46317
46318 Automatic loading of commands is supported.
f19dbdb7 46319
5822ff87 46320 * normal/main.c (read_command_list): New function.
46321 (grub_normal_execute): Call read_command_list.
46322
46323 * normal/command.c (grub_register_command): Return zero or CMD.
46324 Allocate CMD->NAME from the heap.
46325 Initialize CMD->MODULE_NAME to zero.
46326 Find the same name as well. If the same command is found and it is
46327 a dummy command, overwrite members. If it is not a dummy command,
46328 return zero.
46329 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
46330 (grub_command_find): If a dummy command is found, load a module
46331 and retry to find a command only once.
46332
46333 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
46334 make sure that each command is loaded.
46335
46336 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
46337 macro.
46338 (struct grub_command): Remove const from the member `name'.
46339 Add a new member `module_name'.
46340 (grub_register_command): Return grub_command_t.
46341
46342 * commands/help.c (grub_cmd_help): Call grub_command_find to make
46343 sure that each command is loaded.
46344
46345 * genmk.rb (PModule::rule): Specify a module name without the
46346 suffix ".mod" to gencmdlist.sh.
46347
7b1f4b57 463482005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46349
46350 * gencmdlist.sh: New file.
f19dbdb7 46351
7b1f4b57 46352 * genmk.rb (PModule::rule): Generate a rule for a command list.
46353 Clean command.lst.
46354 Generate command.lst from $(COMMANDFILES).
46355
46356 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
46357 (DATA): Added $(pkgdata_DATA).
46358 (install-local): Install files in $(pkgdata_DATA).
46359
062aaf39 463602005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46361
46362 * term/i386/pc/vga.c (debug_command): Removed.
46363 (GRUB_MOD_INIT): Do not register the command "debug".
46364
46365 From Hollis Blanchard:
46366 * commands/configfile.c: New file.
46367 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46368 commands/configfile.c.
46369 (pkgdata_MODULES): Added configfile.mod.
46370 (configfile_mod_SOURCES): New variable.
46371 (configfile_mod_CFLAGS): Likewise.
46372 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46373 commands/configfile.c.
46374 (pkgdata_MODULES): Added configfile.mod.
46375 (configfile_mod_SOURCES): New variable.
46376 (configfile_mod_CFLAGS): Likewise.
46377 * util/grub-emu.c (main): Call grub_configfile_init and
46378 grub_configfile_fini.
46379 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
46380 prototype.
46381 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 46382
cee01aa6 463832005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46384
46385 * normal/arg.c (grub_arg_show_help): Do not show the bug report
46386 address.
46387
46388 * commands/help.c (grub_cmd_help): Do not print newlines after
46389 the last command in print_command_help.
46390
93f3a1d8 463912005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46392
46393 * commands/default.h: New file.
46394 * commands/timeout.h: Likewise.
46395 * normal/context.c: Likewise.
f19dbdb7 46396
93f3a1d8 46397 * util/misc.c: Do not include sys/times.h.
46398 Include sys/time.h and grub/machine/time.h.
46399 (grub_get_rtc): Rewritten with gettimeofday.
46400
46401 * util/grub-emu.c (main): Call grub_default_init and
46402 grub_timeout_init before grub_normal_init, and call
46403 grub_timeout_fini and grub_default_fini after grub_main.
46404
46405 * util/console.c (grub_ncurses_checkkey): Return the read
46406 character or -1.
46407
46408 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
46409 timeouts.
46410
46411 * normal/main.c (read_config_file): Push MENU. If this fails,
46412 print an error and wait for a user input.
46413 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46414 If a menu is empty or an error occurs, pop MENU.
46415 (grub_normal_execute): Pop and free MENU after grub_menu_run
46416 returns.
46417
46418 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46419
46420 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46421 include time.h.
46422 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46423 without GRUB_UTIL.
46424 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46425 time.h.
46426 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46427 without GRUB_UTIL.
46428
46429 * include/grub/normal.h (struct grub_menu_list): New struct.
46430 (grub_menu_list_t): New type.
46431 (struct grub_context): New struct.
46432 (grub_context_t): New type.
46433 (grub_register_command): Got rid of EXPORT_FUNC.
46434 (grub_unregister_command): Likewise.
46435 (grub_context_get): New prototype.
46436 (grub_context_get_current_menu): Likewise.
46437 (grub_context_push_menu): Likewise.
46438 (grub_context_pop_menu): Likewise.
46439 [GRUB_UTIL] (grub_default_init): Likewise.
46440 [GRUB_UTIL] (grub_default_fini): Likewise.
46441 [GRUB_UTIL] (grub_timeout_init): Likewise.
46442 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46443
46444 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46445 commands/timeout.c and normal/context.c.
46446 (pkgdata_MODULES): Added default.mod and timeout.mod.
46447 (normal_mod_SOURCES): Added normal/context.c.
46448 (default_mod_SOURCES): New variable.
46449 (default_mod_CFLAGS): Likewise.
46450 (timeout_mod_SOURCES): Likewise.
46451 (timeout_mod_CFLAGS): Likewise.
46452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46453 conf/i386-pc.rmk.
46454 (pkgdata_MODULES): Added default.mod and timeout.mod.
46455 (normal_mod_SOURCES): Added normal/context.c.
46456 (default_mod_SOURCES): New variable.
46457 (default_mod_CFLAGS): Likewise.
46458 (timeout_mod_SOURCES): Likewise.
46459 (timeout_mod_CFLAGS): Likewise.
46460
46461 * Makefile.in (all-local): Added $(MKFILES).
46462
4ed2e1dd 464632005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46464
46465 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46466 (grub_emu_SOURCES): Likewise.
46467 (pkgdata_MODULES): Add `sun.mod'.
46468 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46470 `partmap/sun.c'.
46471 (pkgdata_MODULES): Add `sun.mod'.
46472 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46473 * include/grub/partition.h (grub_sun_partition_map_init): New
46474 prototype.
46475 (grub_sun_partition_map_fini): Likewise.
46476 * partmap/sun.c: New file.
46477 * util/grub-emu.c (main): Initialize and de-initialize the sun
46478 partitionmap support.
46479
4d4e372e 464802005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46481
46482 This implements an Emacs-like menu entry editor.
f19dbdb7 46483
4d4e372e 46484 * normal/menu_entry.c: New file.
f19dbdb7 46485
4d4e372e 46486 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46487 characters to ASCII.
46488 (saved_char): New variable.
46489 (grub_ncurses_checkkey): Rewritten completely.
46490 (grub_ncurses_getkey): Likewise.
46491 (grub_ncurses_init): Call raw instead of cbreak.
46492
46493 * normal/menu.c (print_entry): Do not put a space.
46494 (init_page): Renamed to ...
46495 (grub_menu_init_page): ... this. All callers changed.
46496 (edit_menu_entry): Removed.
46497 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46498
46499 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46500
46501 * kern/misc.c (grub_vprintf): Call grub_refresh.
46502
46503 * normal/menu.c (DISP_LEFT): Renamed to ...
46504 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46505 * normal/menu.c (DISP_UP): Renamed to ...
46506 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46507 * normal/menu.c (DISP_RIGHT): Renamed to ...
46508 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46509 * normal/menu.c (DISP_DOWN): Renamed to ...
46510 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46511 * normal/menu.c (DISP_HLINE): Renamed to ...
46512 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46513 * normal/menu.c (DISP_VLINE): Renamed to ...
46514 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46515 * normal/menu.c (DISP_UL): Renamed to ...
46516 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46517 * normal/menu.c (DISP_UR): Renamed to ...
46518 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46519 * normal/menu.c (DISP_LL): Renamed to ...
46520 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46521 * normal/menu.c (DISP_LR): Renamed to ...
46522 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46523 * normal/menu.c (TERM_WIDTH): Renamed to ...
46524 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46525 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46526 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46527 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46528 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46529 * normal/menu.c (TERM_MARGIN): Renamed to ...
46530 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46531 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46532 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46533 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46534 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46535 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46536 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46537 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46538 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46539 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46540 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46541 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46542 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46543 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46544 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46545 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46546 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46547 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46548 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46549 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46550 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46551 All callers changed.
46552
46553 * include/grub/normal.h: New prototype.
46554
46555 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46556 normal/menu_entry.c.
46557 (normal_mod_SOURCES): Likewise.
46558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46559 (normal_mod_SOURCES): Likewise.
46560
e6b92c8a 465612005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46562
46563 * include/grub/normal.h (grub_halt_init): New prototype.
46564 (grub_halt_fini): Likewise.
46565 (grub_reboot_init): Likewise.
46566 (grub_reboot_fini): Likewise.
46567
46568 * util/grub-emu.c: Include signal.h.
46569 (main_env): New global variable.
46570 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46571 catch C-c.
46572 (grub_machine_fini): New function.
46573 (main): Call grub_halt_init and grub_reboot_init before
46574 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46575 Call setjmp with MAIN_ENV to go back afterwards.
46576 Call grub_machine_fini right before return.
46577
46578 * include/grub/util/misc.h: Include setjmp.h.
46579 (main_env): New prototype.
46580
46581 * include/grub/kernel.h (grub_machine_fini): New prototype.
46582 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46583 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46584
46585 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46586 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46587 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 46588
e6b92c8a 46589 * util/i386/pc/misc.c: New file.
f19dbdb7 46590
e6b92c8a 46591 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46592 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46593 commands/i386/pc/reboot.c.
46594
c642636f 465952005-02-14 Guillem Jover <guillem@hadrons.org>
46596
46597 * include/grub/dl.h (grub_dl_check_header): New prototype.
46598 (grub_arch_dl_check_header): Change return type to grub_err_t,
46599 remove size parameter and export function. Update all callers.
46600 * kern/dl.c (grub_dl_check_header): New function.
46601 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46602 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46603 are inside the core.
46604 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46605 independent ELF header checks.
46606 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46607 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46608 `grub_dl_check_header' instead of explicit checks. Check for the
46609 ELF type.
46610 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46611 `grub_dl_check_header' instead of explicit checks. Remove arch
46612 specific ELF header checks.
46613
e6b92c8a 46614 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46615 argument SIZE.
46616
5eabe94b 466172005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46618
46619 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46620 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46621
1b14a681 466222005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46623
46624 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 46625 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 46626 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 46627 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 46628 * partmap/amiga.c (amiga_partition_map_iterate): Return
46629 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46630 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46631
aca108aa 466322005-02-01 Guillem Jover <guillem@hadrons.org>
46633
46634 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46635 help info.
46636
c9f9c556 466372005-01-31 Marco Gerards <metgerards@student.han.nl>
46638
46639 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46640 Removed prototype.
46641 (grub_rescue_cmd_linux): New prototype.
46642 (grub_rescue_cmd_initrd): Likewise.
46643 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46644 `bi_rec'.
46645 (grub_linux_release_mem): Release the memory for the initrd.
46646 (grub_load_linux): Renamed from this...
46647 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46648 Changed `entry' not to be static. Loop over memory regions to
46649 find another one when the default fails.
46650 (grub_rescue_cmd_initrd): New function.
46651 (grub_linux_init): Remove function.
46652 (grub_linux_fini): Likewise.
46653 (GRUB_MOD_INIT): Register `initrd'.
46654 (GRUB_MOD_FINI): Unregister `initrd'.
46655 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46656 Function removed.
46657 (grub_linux_normal_fini): Likewise.
46658 (GRUB_MOD_INIT): Register `initrd'.
46659 (GRUB_MOD_FINI): Unregister `initrd'.
46660
990cf3aa 466612005-01-31 Marco Gerards <metgerards@student.han.nl>
46662
46663 * commands/help.c: New file.
46664 * normal/arg.c (show_help): Renamed to...
46665 (grub_arg_show_help): ... this.
46666 * commands/i386/pc/halt.c: New file.
46667 * commands/i386/pc/reboot.c: Likewise.
46668 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46669 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46670 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46671 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46672 variables.
46673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46674 `commands/help.c'.
46675 (pkgdata_MODULES): Add `help.mod'.
46676 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46677 * grub/i386/pc/init.h (grub_reboot): New prototype.
46678 (grub_halt): Likewise.
46679 * include/grub/normal.h (grub_arg_show_help): New prototype.
46680 (grub_help_init): Likewise.
46681 (grub_help_fini): Likewise.
46682 * util/grub-emu.c (main): Initialize and deinitialize the help
46683 command.
46684
46685 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46686
46687 * normal/command.c (grub_command_init): Fixed the description of
46688 the `set' and `unset' commands.
46689
466902005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 46691
46692 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46693 function.
46694 * commands/ieee1275/halt.c: New file.
46695 * commands/ieee1275/reboot.c: Likewise.
46696 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46697 `__attribute__ ((unused))'. Some GCS related fixed.
46698 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46699 (grub_suspend_fini): Likewise.
46700 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46701 and `halt.mod'.
46702 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46703 (halt_mod_CFLAGS): New variables.
46704 * include/grub/powerpc/ieee1275/ieee1275.h
46705 (grub_ieee1275_interpret): New prototype.
46706
1ab09cc7 467072005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46708
46709 * include/grub/misc.h (memmove): New prototype.
46710 (memcpy): Likewise.
46711
8b8cbdb2 467122005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46713
46714 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46715 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46716
e3741a27 467172005-01-22 Marco Gerards <metgerards@student.han.nl>
46718
46719 * kern/misc.c (grub_strndup): Function rewritten.
46720
776bd780 467212005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46722
46723 * normal/menu.c (TERM_WIDTH): Macro redefined.
46724 (TERM_TOP_BORDER_Y): Likewise.
46725 (draw_border): Replaced while-loop by a for-loop. Make the number
46726 of lines consistent with the number of lines displayed in
46727 print_entries. Added a margin below the rectangle.
46728 (print_entry): Make the entry fit in the rectangle.
46729 (print_entries): Display the scroll arrows next to the right
46730 border.
46731
78026bce 467322005-01-21 Marco Gerards <metgerards@student.han.nl>
46733
46734 * fs/minix.c (grub_minix_find_file): Reserve more space for
46735 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46736 `grub_strncpy' to copy `path' into it.
46737
67bbaf0f 467382005-01-21 Marco Gerards <metgerards@student.han.nl>
46739
46740 Add the loopback device, a device via which files can be accessed
46741 as devices.
f19dbdb7 46742
67bbaf0f 46743 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46744 (pkgdata_MODULES): Add loopback.mod.
46745 (loopback_mod_SOURCES): New variable.
46746 (loopback_mod_CFLAGS): Likewise.
46747 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46748 `disk/loopback.c'.
46749 (pkgdata_MODULES): Add loopback.mod.
46750 (loopback_mod_SOURCES): New variable.
46751 (loopback_mod_CFLAGS): Likewise.
46752 * disk/loopback.c: new file.
46753 * include/grub/normal.h (grub_loop_init): New prototype.
46754 (grub_loop_fini): New prototype.
46755 * util/grub-emu.c (main): Initialize and de-initialize loopback
46756 support.
46757 * include/grub/disk.h (grub_disk_dev_id): Add
46758 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46759
6f1c18bd 467602005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46761
46762 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46763 function.
46764 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46765 (suspend_mod_SOURCES): New variable.
46766 (suspend_mod_CFLAGS): Likewise.
46767 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46768 New prototype.
46769 * commands/ieee1275/suspend.c: New file.
46770
b38551da 467712005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46772
46773 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 46774 ((unused))' to `__attribute__ ((used))'.
b38551da 46775 (GRUB_MOD_FINI): Likewise.
46776 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46777 * genmk.rb (PModule): Assign space to common symbols when linking
46778 modules.
46779
777aff39 467802005-01-20 Marco Gerards <metgerards@student.han.nl>
46781
46782 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46783 `unsigned' arguments to `grub_size_t'.
46784 (grub_malloc): Likewise.
46785 (grub_realloc): Likewise.
46786 (grub_memalign): Likewise.
46787 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46788 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46789 * util/misc.c (grub_malloc): Likewise.
46790 (grub_realloc): Likewise.
46791 * kern/mm.c (get_header_from_pointer): Change the casts to
46792 `unsigned' into a cast to `grub_size_t'.
46793
46794 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46795 point to `currnode' when `currnode' is changed.
46796
46797 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46798 Schottelius <nico-linux@schottelius.org>.
46799
d0ff18e1 468002005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46801
46802 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46803 (note_path): Remove variable.
46804 (GRUB_IEEE1275_NOTE_NAME): New macro.
46805 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46806 (grub_ieee1275_note_hdr): New structure.
46807 (grub_ieee1275_note_desc): Likewise.
46808 (grub_ieee1275_note): Likewise.
46809 (load_note): Remove `dir' argument. All callers updated. Remove
46810 `note_img' and `path'. Do not load a file from `note_path'.
46811 Initialize a struct grub_ieee1275_note and write that to `out'.
46812 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46813
4ca7004c 468142005-01-05 Marco Gerards <metgerards@student.han.nl>
46815
46816 * util/misc.c (grub_util_read_image): Revert last change. It
46817 called `grub_util_read_at', which seeks from the beginning of the
46818 file.
46819
0b412211 468202005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46821
46822 * TODO: Add note about endianness in grub-mkimage.
46823 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46824 section.
46825 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46826 (grub_mkimage_SOURCES): New target.
46827 * include/grub/kernel.h (grub_start_addr): Remove variable.
46828 (grub_end_addr): Likewise.
46829 (grub_total_module_size): Likewise.
46830 (grub_kernel_image_size): Likewise.
46831 (GRUB_MODULE_MAGIC): New constant.
46832 (grub_module_info): New structure.
46833 (grub_arch_modules_addr): New prototype.
46834 (grub_get_end_addr): Remove prototype.
46835 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46836 * include/grub/powerpc/ieee1275/kernel.h: New file.
46837 * include/grub/util/misc.h (grub_util_get_fp_size): New
46838 prototype.
46839 (grub_util_read_at): Likewise.
46840 (grub_util_write_image_at): Likewise.
46841 * kern/main.c (grub_get_end_addr): Remove function.
46842 (grub_load_modules): Call grub_arch_modules_addr instead of using
46843 grub_end_addr. Look for a grub_module_info struct in memory. Use
46844 the grub_module_info fields instead of calling grub_get_end_addr
46845 as loop conditions. Move grub_add_unused_region code here.
46846 (grub_add_unused_region): Remove function.
46847 * kern/i386/pc/init.c: Include grub/cache.h.
46848 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46849 one call to add_mem_region.
46850 (grub_arch_modules_addr): New function.
46851 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46852 (grub_total_module_size): Likewise.
46853 Include grub/machine/kernel.h.
46854 (grub_arch_modules_addr): New function.
46855 * util/grub-emu.c (grub_end_addr): Remove variable.
46856 (grub_total_module_size): Likewise.
46857 (grub_arch_modules_addr): New function.
46858 * util/misc.c: Include unistd.h.
46859 (grub_util_get_fp_size): New function.
46860 (grub_util_read_at): Likewise.
46861 (grub_util_write_image_at): Likewise.
46862 (grub_util_read_image): Call grub_util_read_at.
46863 (grub_util_write_image): Call grub_util_write_image_at.
46864 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46865 additional memory in kernel_img for a struct grub_module_info.
46866 Fill in that grub_module_info.
46867 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46868
458786f8 468692005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46870
46871 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46872 New function.
46873 * include/grub/powerpc/ieee1275/ieee1275.h
46874 (grub_ieee1275_milliseconds): New prototype.
46875 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46876 Change to 1000.
46877 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46878 grub_ieee1275_milliseconds.
46879
ac507d1b 468802005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46881
46882 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46883 variable.
46884 (find_options): New function.
46885 (cmain): Call find_options.
46886 * include/grub/powerpc/ieee1275/ieee1275.h
46887 (grub_ieee1275_realmode): New extern variable.
46888 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46889 grub_map if grub_ieee1275_realmode is false.
46890
6b8fd1c4 468912004-12-29 Marco Gerards <metgerards@student.han.nl>
46892
46893 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46894 lines are inserted and make it work like readline. Reported by
46895 Vincent Pelletier <subdino2004@yahoo.fr>.
46896
8514a1e0 468972004-12-28 Marco Gerards <metgerards@student.han.nl>
46898
46899 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46900
46901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46902 `kern/powerpc/cache.S'.
46903
924b6140 469042004-12-27 Marco Gerards <metgerards@student.han.nl>
46905
46906 * genmk.rb: Handle the `Program' class in the main loop. Written
46907 by Johan Rydberg <jrydberg@gnu.org>.
46908 (Program): New class.
46909 (programs): New variable.
46910 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46911 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46912 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46913 (help_arch): Function removed.
46914 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46915 `powerpc/libgcc.h' and `loader.h'.
46916 (pkgdata_PROGRAMS): New variable.
46917 (sbin_UTILITIES): Variable removed.
46918 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46919 (grubof_SOURCES): Variable re-defined so it only includes the
46920 core functionality.
46921 (grubof_CFLAGS): Remove `-DGRUBOF'.
46922 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46923 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46924 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46925 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46926 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46927 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46928 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46929 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46930 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46931 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46932 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46933 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46934 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46935 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46936 (pc_mod_CFLAGS): New variables.
46937 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46938 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46939 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46940 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46941 Moved from here...
46942 * include/grub/i386/pc/init.h (grub_os_area_addr)
46943 (rub_os_area_size): ... to here.
46944 * include/grub/powerpc/ieee1275/ieee1275.h
46945 (grub_ieee1275_entry_fn): Export symbol.
46946 * include/grub/powerpc/ieee1275/init.h: New file.
46947 * include/grub/powerpc/libgcc.h: Likewise.
46948 * include/grub/cache.h: Likewise.
46949 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46950 <hollis@penguinppc.org>.
46951 * kern/dl.c: Include <grub/cache.h>.
46952 (grub_dl_flush_cache): New function.
46953 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46954 for this module.
46955 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46956 (grub_console_init): Removed prototypes.
46957 (grub_machine_init): Don't initialize the modules anymore.
46958 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46959 static.
46960 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46961 Macro undef removed.
46962 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46963 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46964 relocation `R_PPC_REL32'. Return an error when the relocation is
46965 unknown.
46966 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46967 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46968 * util/misc.c (grub_arch_sync_caches): Likewise.
46969
e4b47e0c 469702004-12-19 Marco Gerards <metgerards@student.han.nl>
46971
46972 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46973 `symlist.c', add `grubof_symlist.c'.
46974 (symlist.c): Variable removed.
46975 (grubof_HEADERS): Variable added.
46976 (grubof_symlist.c): New target.
46977 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46978 `kernel_img_HEADERS'.
46979 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46980 * kern/powerpc/dl.c: New file.
46981 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46982 Function removed.
46983 (grub_arch_dl_relocate_symbols): Likewise.
46984 (grub_register_exported_symbols): Likewise.
46985
4ceb3636 469862004-12-13 Marco Gerards <metgerards@student.han.nl>
46987
46988 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46989 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46990 to fail instead. Reported by Vincent Pelletier
46991 <subdino2004@yahoo.fr>.
46992
46993 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46994 it is not allocated. Reported by Vincent Pelletier
46995 <subdino2004@yahoo.fr>.
46996
46997 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46998 output so the output looks better.
f19dbdb7 46999
3f1578fe 470002004-12-04 Marco Gerards <metgerards@student.han.nl>
47001
47002 Modulize the partition map support and add support for the amiga
47003 partition map.
f19dbdb7 47004
3f1578fe 47005 * commands/ls.c: Include <grub/partition.h> instead of
47006 <grub/machine/partition.h>.
47007 * kern/disk.c: Likewise.
47008 * kern/rescue.c: Likewise.
47009 * loader/i386/pc/chainloader.c: Likewise.
47010 * normal/cmdline.c: Likewise.
47011 * kern/powerpc/ieee1275/init.c: Likewise.
47012 (grub_machine_init): Call `grub_pc_partition_map_init',
47013 `grub_amiga_partition_map_init' and
47014 `grub_apple_partition_map_init'.
47015 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
47016 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
47017 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
47018 `partition.h' and `pc_partition.h'.
47019 (grub_setup_SOURCES): Remove
47020 `disk/i386/pc/partition.c'. Add `kern/partition.c',
47021 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
47022 (grub_emu_SOURCES): Likewise.
47023 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
47024 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
47025 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
47026 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
47027 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
47028 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
47029 (grubof_SOURCES): Likewise.
47030 * disk/i386/pc/partition.c: File removed.
47031 * disk/powerpc/ieee1275/partition.c: Likewise.
47032 * include/grub/powerpc/ieee1275/partition.h: Likewise.
47033 * include/grub/i386/pc/partition.h: Likewise.
47034 * kern/partition.c: New file.
47035 * partmap/amiga.c: Likewise.
47036 * partmap/apple.c: Likewise.
47037 * partmap/pc.c: Likewise.
47038 * include/grub/partition.h: Likewise..
47039 * include/grub/pc_partition.h: Likewise.
47040 * util/grub-emu.c: Include <grub/partition.h> instead of
47041 <grub/machine/partition.h>.
47042 (main): Call `grub_pc_partition_map_init',
47043 `grub_amiga_partition_map_init' and
47044 `grub_apple_partition_map_init' and deinitialize afterwards.
47045 * util/i386/pc/biosdisk.c: Include `#include
47046 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
47047 `<grub/machine/partition.h>'.
47048 * util/i386/pc/grub-setup.c: Likewise.
47049 * util/i386/pc/biosdisk.c: Likewise.
47050 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
47051 partition information in case of a PC partition.
47052 * util/i386/pc/grub-setup.c: Include `#include
47053 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
47054 `<grub/machine/partition.h>'.
47055 (setup): Only access the PC specific partition information in case
47056 of a PC partition.
47057
0ef4ced9 470582004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 47059
0ef4ced9 47060 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
47061 (grub_longjmp): Likewise.
47062 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
47063 20.
47064 * normal/powerpc/setjmp.S: New file.
47065 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47066 `normal/powerpc/setjmp.S'.
47067 (grubof_CFLAGS): Add `-DGRUBOF'.
47068 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
47069 [GRUB_UTIL && !GRUBOF].
f19dbdb7 47070
19950e29 470712004-11-16 Marco Gerards <metgerards@student.han.nl>
47072
47073 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
47074 property named `name'. Correctly handle the error returned by
47075 `grub_ieee1275_finddevice' if a device can not be opened.
47076
a2fea427 470772004-11-02 Hollis Blanchard <hollis@penguinppc.org>
47078
47079 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
47080 `actual' for negativity.
47081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
47082 kern/fshelp.c.
47083
41ea0ea3 470842004-11-01 Marco Gerards <metgerards@student.han.nl>
47085
47086 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
47087 (PAGE_OFFSET): New macro.
47088 (CRTC_ADDR_PORT): Likewise.
47089 (CRTC_DATA_PORT): Likewise.
47090 (START_ADDR_HIGH_REGISTER): Likewise.
47091 (START_ADDR_LOW_REGISTER): Likewise.
47092 (GRAPHICS_ADDR_PORT): Likewise.
47093 (GRAPHICS_DATA_PORT): Likewise.
47094 (READ_MAP_REGISTER): Likewise.
47095 (INPUT_STATUS1_REGISTER): Likewise.
47096 (INPUT_STATUS1_VERTR_BIT): Likewise.
47097 (page): New variable.
47098 (wait_vretrace): New function.
47099 (set_read_map): Likewise.
47100 (set_start_address): Likewise.
47101 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
47102 the right page.
47103 (check_vga_mem): Take the page into account.
47104 (write_char): Likewise.
47105 (write_cursor): Likewise.
47106 (scroll_up): Likewise. Copy the page to the page that is not
47107 shown and switch between both pages.
47108 (grub_vga_putchar): Fix off by one error.
47109 (grub_vga_cls): Wait for the vertical retrace. Take the page into
47110 account.
47111
ad0bd20b 471122004-11-01 Marco Gerards <metgerards@student.han.nl>
47113
47114 Add support for iso9660 (including rockridge).
f19dbdb7 47115
ad0bd20b 47116 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47117 (iso9660_mod_SOURCES): New variable.
47118 (iso9660_mod_CFLAGS): Likewise.
47119 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47120 * include/grub/fs.h (grub_iso9660_init): New prototype.
47121 * util/grub-emu.c (main): Call `grub_iso9660_init'.
47122 * fs/iso9660.c: New file.
47123
47124 * include/grub/misc.h (grub_strncat): New prototype.
47125 * kern/misc.c (grub_strncat): New function.
f19dbdb7 47126
ad0bd20b 47127 * fs/hfs.c (grub_hfs_mount): Translate the error
47128 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
47129 * fs/jfs.c (grub_jfs_mount): Likewise.
47130 * fs/ufs.c (grub_ufs_mount): Likewise.
47131
a5477a59 471322004-10-28 Hollis Blanchard <hollis@penguinppc.org>
47133
47134 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
47135 which initialized BAT registers.
47136 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
47137 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
47138 Move from here...
47139 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
47140 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
47141 ... to here.
47142 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
47143 (grub_mapclaim): Likewise.
47144 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
47145 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
47146 hand.
47147
9304c1f8 471482004-10-19 Hollis Blanchard <hollis@penguinppc.org>
47149
47150 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
47151 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
47152 -ffreestanding and -msoft-float.
47153
86f4ae25 471542004-10-15 Hollis Blanchard <hollis@penguinppc.org>
47155
47156 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
47157 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
47158 set in grub_ieee1275_flags.
47159
38912228 471602004-10-14 Hollis Blanchard <hollis@penguinppc.org>
47161
47162 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
47163 prototype.
47164 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
47165 grub_console_init first.
47166 Change the memory range used for grub_ieee1275_claim and
47167 grub_mm_init_region.
47168 Print an error message if the claim fails.
47169 Include <grub/misc.h>.
47170
d1923dc8 471712004-10-13 Hollis Blanchard <hollis@penguinppc.org>
47172
47173 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
47174 Call grub_children_iterate for device nodes of type `scsi',
47175 `ide', or `ata'.
47176 (grub_ofdisk_open): Remove manual device alias resolution.
47177 Fix memory leak when device cannot be opened.
f19dbdb7 47178 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 47179 (grub_children_iterate): New prototype.
47180 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
47181 New function.
47182 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
47183 Return -1 if args.size was -1.
47184
4512e4f3 471852004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47186
47187 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
47188 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
47189 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
47190 Open Firmware's memory for it; claim memory from _start to _end.
47191 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
47192 (_end): New extern.
47193 (_start): Zero BSS from __bss_start to _end.
47194 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
47195 New extern.
47196 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
47197
4d61feb0 471982004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47199
ad0bd20b 47200 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
47201 -1 if args.base was -1.
4d61feb0 47202
026fa2f9 472032004-10-08 Hollis Blanchard <hollis@penguinppc.org>
47204
47205 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
47206 escape sequence instead of a literal ^L. Also call
47207 grub_ofconsole_gotoxy.
47208
9f2220ef 472092004-10-03 Hollis Blanchard <hollis@penguinppc.org>
47210
47211 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
47212 void * arguments to grub_addr_t. All callers updated. Also make
47213 the `result' argument optional.
47214 (grub_ieee1275_release): change void * arguments to grub_addr_t.
47215 All callers updated.
47216
8a572cd7 472172004-09-22 Hollis Blanchard <hollis@penguinppc.org>
47218
47219 * commands/ls.c (grub_ls_list_files): Use the string following the
47220 initial ')', if present, as the filesystem path.
47221 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
47222
47223 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
47224
18aa81f2 472252004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
47226
47227 Make the source code of the menu interface more readable.
f19dbdb7 47228
18aa81f2 47229 * normal/menu.c: Include grub/mm.h.
47230 (TERM_WIDTH): New macro.
47231 (TERM_HEIGHT): Likewise.
47232 (TERM_INFO_HEIGHT): Likewise.
47233 (TERM_MARGIN): Likewise.
47234 (TERM_SCROLL_WIDTH): Likewise.
47235 (TERM_TOP_BORDER_Y): Likewise.
47236 (TERM_LEFT_BORDER_X): Likewise.
47237 (TERM_BORDER_WIDTH): Likewise.
47238 (TERM_MESSAGE_HEIGHT): Likewise.
47239 (TERM_BORDER_HEIGHT): Likewise.
47240 (TERM_NUM_ENTRIES): Likewise.
47241 (TERM_FIRST_ENTRY_Y): Likewise.
47242 (TERM_ENTRY_WIDTH): Likewise.
47243 (TERM_CURSOR_X): Likewise.
47244 (draw_border): Use macros instead of magic numbers.
47245 (print_entry): Likewise.
47246 (print_entries): Likewise.
47247 (run_menu): Likewise. Also, handle the key 'e'.
47248 (run_menu_entry): Ignore empty command lines.
47249 (print_message): Added a new argument EDIT. If EDIT is true,
47250 print a different message.
47251 (init_page): Likewise.
47252 (edit_menu_entry): New function. Not implemented yet.
47253
b47efe30 472542004-09-17 Marco Gerards <metgerards@student.han.nl>
47255
47256 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
47257 can be loaded from normal mode.
f19dbdb7 47258
b47efe30 47259 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
47260 `multiboot.mod'.
47261 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
47262 (multiboot_mod_CFLAGS): New variables.
47263 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 47264 * loader/i386/pc/multiboot_normal.c: Likewise.
47265
b47efe30 47266 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
47267 attribute `unused'.
f19dbdb7 47268
b47efe30 47269 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
47270 `fdiro' to read the mode information from instead of `diro'.
47271
47272 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
47273 looking up a symlink.
47274
47275 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
47276 macro.
47277 * normal/command.c (grub_command_execute): Don't parse the
47278 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
47279 flags of the command.
47280
47281 * normal/menu.c (grub_menu_run): Fix typo.
47282
da75ac71 472832004-09-14 Hollis Blanchard <hollis@penguinppc.org>
47284
47285 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
47286
47287 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
47288 `y + 1' instead of `y - 1'.
47289
47290 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 47291
062b24c2 472922004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
47293
47294 From Hollis Blanchard <hollis@penguinppc.org>:
47295 * kern/misc.c (memmove): New alias for grub_memmove.
47296 (memcmp): New alias for grub_memcmp.
47297 (memset): New alias for grub_memset.
f19dbdb7 47298 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 47299 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 47300 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 47301 (grub_ieee1275_get_property): Likewise.
f19dbdb7 47302
8ddad845 473032004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
47304
47305 Added normal mode command `chainloader' as module chain.mod, which
47306 depends on normal.mod and _chain.mod.
f19dbdb7 47307
8ddad845 47308 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
47309 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
47310 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
47311 Deleted prototype.
47312 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
47313 but arguments parsing moved to ...
47314 (grub_chainloader_cmd): ... here. New function.
47315 * include/grub/i386/pc/chainloader.h: New file.
47316 * loader/i386/pc/chainloader_normal.c: Likewise.
47317
2c1f4ce3 473182004-09-11 Marco Gerards <metgerards@student.han.nl>
47319
47320 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
47321 (grub_mkimage_LDFLAGS): Likewise.
47322 (grub_emu_SOURCES): Likewise.
47323 (kernel_img_HEADERS): Added fshelp.h.
47324 * fs/ext2.c: Include <grub/fshelp.h>.
47325 (FILETYPE_REG): New macro.
47326 (FILETYPE_INO_REG): Likewise.
47327 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
47328 Changed all users.
47329 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
47330 all users.
47331 (grub_fshelp_node): New struct.
47332 (grub_ext2_data): Added member `diropen'. Changed member `inode'
47333 to a pointer.
47334 (grub_ext2_get_file_block): Removed function.
47335 (grub_ext2_read_block): New function.
47336 (grub_ext2_read_file): Replaced parameter `data' by `node'.
47337 This function was written.
47338 (grub_ext2_mount): Read the root inode. Create a diropen struct.
47339 (grub_ext2_find_file): Removed function.
47340 (grub_ext2_read_symlink): New function.
47341 (grub_ext2_iterate_dir): Likewise.
47342 (grub_ext2_open): Rewritten.
47343 (grub_ext2_dir): Rewritten.
47344 * include/grub/fshelp.h: New file.
47345 * fs/fshelp.c: Likewise.
47346
3c52136a 473472004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
47348
47349 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
47350 (print_message): Add a missing newline.
47351 (run_menu): Added timeout support.
47352 (run_menu_entry): New local function.
47353 (grub_menu_run): Added support for booting.
47354
47355 * kern/loader.c (grub_loader_is_loaded): New function.
47356
47357 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
47358 (grub_get_rtc): Exported.
47359
47360 * include/grub/i386/pc/time.h: Include grub/symbol.h.
47361 (grub_get_rtc): Exported.
47362
47363 * include/grub/normal.h (struct grub_command_list): Remove
47364 constant from the member `command'.
47365
47366 * include/grub/loader.h (grub_loader_is_loaded): Declared.
47367
47368 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
47369
47370 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
47371
aa033560 473722004-08-28 Marco Gerards <metgerards@student.han.nl>
47373
47374 Add support for the JFS filesystem.
47375
47376 * fs/jfs.c: New file.
47377 * include/grub/fs.h (grub_jfs_init): New prototype.
47378 (grub_jfs_fini): New prototype.
47379 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
47380 (grub_emu_SOURCES): Likewise.
47381 (pkgdata_MODULES): Add jfs.mod.
47382 (jfs_mod_SOURCES): New variable.
47383 (jfs_mod_CFLAGS): Likewise.
47384 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
47385 (grubof_SOURCES): Likewise.
47386 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
47387
47388 * fs/fat.c (grub_fat_find_dir): Convert the filename little
47389 endian to the host endian.
47390 (grub_fat_utf16_to_utf8): Move function from there...
47391 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 47392 the endianness of the source string anymore.
aa033560 47393 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
47394
94bc45af 473952004-08-24 Marco Gerards <metgerards@student.han.nl>
47396
47397 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
47398 (grub_boot_fini) [GRUB_UTIL]: Likewise.
47399 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
47400 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 47401
94bc45af 47402 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
47403 (grub_hfs_iterate_dir): Make the function static. Add prototypes
47404 for `node_found' and `it_dir'.
47405 (grub_hfs_dir): Add prototype for `dir_hook'.
47406
47407 * fs/minix.c (grub_minix_get_file_block): Add prototype for
47408 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
47409 and `indir32' to silence a gcc warning.
47410
47411 * include/grub/fs.h (grub_hfs_init): New prototype.
47412 (grub_hfs_fini): Likewise.
f19dbdb7 47413
47414
97543f08 474152004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47416
47417 Each disk device has its own id now. This is useful to make use
47418 of multiple disk devices.
f19dbdb7 47419
97543f08 47420 * include/grub/disk.h (grub_disk_dev_id): New enum.
47421 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47422 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47423
47424 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47425 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47426
47427 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47428 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47429
47430 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47431 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47432
47433 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47434 "id" which is used by the cache manager.
47435
47436 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47437 of just "GRUB".
47438
64372eb4 474392004-08-18 Marco Gerards <metgerards@student.han.nl>
47440
47441 * fs/hfs.c: New file.
47442 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47443 (grub_emu_SOURCES): Likewise.
47444 (pkgdata_MODULES): Add hfs.mod.
47445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47446 (grubof_SOURCES): Likewise.
47447 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47448
47449 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47450 * kern/misc.c (grub_strncasecmp): Add function.
47451
cc61b58f 474522004-08-14 Marco Gerards <metgerards@student.han.nl>
47453
47454 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47455 with parentheses.
47456
47457 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47458 (grub_ext2_dir): In case the directory entry type is unknown, read
47459 it from the inode.
47460
0ef123f6 474612004-08-02 Peter Bruin <pjbruin@dds.nl>
47462
47463 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47464 grub_load_linux instead of grub_rescue_cmd_linux as second
47465 argument of grub_rescue_register_command.
47466
47467 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47468
a447c5df 474692004-07-27 Marco Gerards <metgerards@student.han.nl>
47470
47471 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47472 function.
47473 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47474 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47475 `loader/powerpc/ieee1275/linux.c',
47476 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47477 * include/grub/powerpc/ieee1275/ieee1275.h
47478 (grub_ieee1275_release): New prototype.
47479 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47480 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47481 normal, boot, linux and linux_normal.
47482 * loader/powerpc/ieee1275/linux.c: New file.
47483 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47484
5a9e3546 474852004-07-12 Marco Gerards <metgerards@student.han.nl>
47486
47487 * normal/arg.c (grub_arg_parse): Correct error handling after
47488 reallocating the argumentlist (check if `argl' is not null instead
47489 of checking if `args' is not null).
47490 * kern/mm.c (grub_realloc): Return the same pointer when using the
47491 same region, instead of returning the header address.
47492
e15199cb 474932004-07-11 Marco Gerards <metgerards@student.han.nl>
47494
47495 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47496 one block instead of two when looking for the initial partition.
47497 (grub_partition_probe): Initialize the local variable `p' with 0.
47498 Use base 10 for the grub_strtoul call.
47499 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47500 need for one local variable.
47501 (grub_strtoul): Don't add the new value to `num', instead of that
47502 just assign it.
47503
020616c2 475042004-07-11 Marco Gerards <metgerards@student.han.nl>
47505
47506 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47507 (pxeboot_img_SOURCES): New variable.
47508 (pxeboot_img_ASFLAGS): Likewise.
47509 (pxeboot_img_LDFLAGS): Likewise.
47510 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47511 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47512 <lode_leroy@hotmail.com>.
47513
6c51eb64 475142004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47515
47516 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47517 there was no input.
47518
cfb12aff 475192004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47520
47521 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47522 the history buffer logic.
47523
6eabba74 475242004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47525
47526 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47527 (FILETYPE_INO_SYMLINK): New macros.
47528 (grub_ext2_find_file): Check if the node is a directory using the
47529 inode stat information instead of using the filetype in the
47530 dirent. Exclude the first character of an absolute symlink.
47531 (grub_ext2_dir): Mask out the filetype part of the mode member of
47532 the inode.
47533
66e19ef8 475342004-05-24 Marco Gerards <metgerards@student.han.nl>
47535
47536 Add support for UFS version 1 and 2. Add support for the minix
47537 filesystem version 1 and 2, both the variants with 14 and 30 long
47538 filenames.
f19dbdb7 47539
66e19ef8 47540 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47541 fs/minix.c.
47542 (grub_emu_SOURCES): Likewise.
47543 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47544 (ufs_mod_SOURCES): New variable.
47545 (ufs_mod_CFLAGS): Likewise.
47546 (minix_mod_SOURCES): Likewise.
47547 (minix_mod_CFLAGS): Likewise.
47548 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47549 fs/minix.c.
47550 (grubof_SOURCES): Likewise.
47551 * fs/ufs.c: New file.
47552 * fs/minix.c: New file.
47553 * include/grub/fs.h (grub_ufs_init): New prototype.
47554 (grub_ufs_fini): Likewise.
47555 (grub_minix_init): Likewise.
47556 (grub_minix_fini): Likewise.
47557 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47558 minix fs.
47559
cc2e748a 475602004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47561
47562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47563 commands/ls.c, commands/terminal.c, commands/boot.c,
47564 commands/cmp.c and commands/cat.c.
47565 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47566
47567 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47568 "env.h"
47569
4b13b216 475702004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47571
47572 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47573 and grub_, respectively. Because the conversion is trivial and
47574 mechanical, I omit the details here. Please refer to the CVS
47575 if you need more information.
47576
6a142551 475772004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47578
47579 * include/pupa: Renamed to ...
47580 * include/grub: ... this.
47581 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47582 * util/i386/pc/grub-mkimage.c: ... this.
47583 * util/i386/pc/pupa-setup.c: Renamed to ...
47584 * util/i386/pc/grub-setup.c: ... this.
47585 * util/pupa-emu.c: Renamed to ...
47586 * util/grub-emu.c: ... this.
47587
e56cdf21 475882004-03-29 Marco Gerards <metgerards@student.han.nl>
47589
47590 Add support for the newworld apple macintosh (PPC). This has been
47591 tested on the powerbook 2000 only. It only adds support for
47592 generic ieee1275 functions, console and disk support. This should
47593 be easy to port to other architectures with support for Open
47594 Firmware.
f19dbdb7 47595
e56cdf21 47596 * configure.ac: Accept the powerpc as host_cpu. In the case of
47597 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47598 specific tests are only executed while building for the i386.
47599 Inverse test for crosscompile.
47600 * genmk.rb (Utility): Allow assembler files.
47601 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47602 * conf/powerpc-ieee1275.rmk: New file.
47603 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47604 * disk/powerpc/ieee1275/partition.c: Likewise.
47605 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47606 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47607 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47608 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47609 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47610 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47611 * include/pupa/powerpc/ieee1275/loader.h
47612 * include/pupa/powerpc/setjmp.h: Likewise.
47613 * include/pupa/powerpc/types.h: Likewise.
47614 * kern/powerpc/ieee1275/init.c: Likewise.
47615 * kern/powerpc/ieee1275/openfw.c: Likewise.
47616 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47617
47618 These files were written by Johan Rydberg
47619 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 47620
e56cdf21 47621 * boot/powerpc/ieee1275/cmain.c: New file.
47622 * boot/powerpc/ieee1275/crt0.S: Likewise.
47623 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47624 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47625
8c8cc205 476262004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47627
47628 * Makefile.in: Update copyright.
47629 * genmodsrc.sh: Likewise.
47630 * gensymlist.sh: Likewise.
47631 * term/i386/pc/vga.c: Indent correctly.
47632
47633 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47634 bugreporting address.
47635 * util/i386/pc/pupa-setup.c (usage): Likewise,
47636 (main): Call pupa_ext2_init and pupa_ext2_fini.
47637
f19dbdb7 47638 * fs/fat.c (log2): Renamed to ...
8c8cc205 47639 (fat_log2): ... this.
47640 All callers changed.
47641 * kern/misc.c (memcpy): Alias to pupa_memmove.
47642 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47643 lvalue cast.
47644 * util/console.c (pupa_ncurses_fini): Return 0.
47645
47646 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47647 Move fail label here.
47648 [__GNU__]: Don't warn when using stat.
47649 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47650 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47651 long int. Use strtol instead of strtoul.
f19dbdb7 47652
db1771cf 476532004-03-14 Marco Gerards <metgerards@student.han.nl>
47654
47655 * commands/boot.c: New file.
47656 * commands/cat.c: Likewise.
47657 * commands/cmp.c: Likewise.
47658 * commands/ls.c: Likewise.
47659 * commands/terminal.c: Likewise.
47660 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47661 (pupa_register_command): Changed interface to match the new
47662 argument parser.
47663 (pupa_command_execute): Changed (almost rewritten) so it uses
47664 pupa_split_command. Added support for setting variables using the
47665 syntax `foo=bar'.
47666 (rescue_command): Changed to work with the new argument parser.
47667 (terminal_command): Moved from here to commands/terminal.c.
47668 (set_command): New function.
47669 (unset_command): New function.
47670 (insmod_command): New function.
47671 (rmmod_command): New function.
47672 (lsmod_command): New function.
47673 (pupa_command_init): Don't initialize the command terminal
47674 anymore. Initialize the commands set, unset, insmod, rmmod and
47675 lsmod.
47676 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47677 (kernel_img_HEADERS): Add arg.h and env.h.
47678 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47679 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47680 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47681 normal/arg.c.
47682 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47683 terminal.mod.
47684 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47685 (boot_mod_SOURCES): New variable.
47686 (terminal_mod_SOURCES): Likewise.
47687 (ls_mod_SOURCES): Likewise.
47688 (cmp_mod_SOURCES): Likewise.
47689 (cat_mod_SOURCES): Likewise.
47690
47691 * normal/arg.c: New file.
47692 * kern/env.c: Likewise.
47693 * include/pupa/arg.h: Likewise.
47694 * include/pupa/env.h: Likewise.
47695 * font/manager.c (font_command): Changed to match argument parsing
47696 interface changes.
47697 (PUPA_MOD_INIT): Likewise.
47698 * hello/hello.c (pupa_cmd_hello): Likewise.
47699 (PUPA_MOD_INIT): Likewise.
47700 * include/pupa/disk.h: Include <pupa/device.h>.
47701 (pupa_print_partinfo): New prototype.
47702 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47703 (pupa_dl_get_prefix): Likewise.
47704 * include/pupa/misc.h: Include <pupa/err.h>.
47705 (pupa_isgraph): New prototype.
47706 (pupa_isdigit): Likewise.
47707 (pupa_split_cmdline): Likewise.
47708 * include/pupa/normal.h: Include <pupa/arg.h>.
47709 (pupa_command): Changed the prototype of the member `func' to
47710 match the argument parsing interface. Added member `options'.
47711 (pupa_register_command): Updated to match function.
47712 (pupa_arg_parse): New prototype.
47713 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47714 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47715 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47716 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47717 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47718 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47719 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47720 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47721 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47722 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47723 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47724 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47725 * kern/disk.c: Include <pupa/file.h>.
47726 (pupa_print_partinfo): New function.
47727 * kern/dl.c: Include <pupa/env.h>.
47728 (pupa_dl_dir): Variable removed.
47729 (pupa_dl_load): Use the environment variable `prefix' instead of
47730 the variable pupa_dl_dir.
47731 (pupa_dl_set_prefix): Function removed.
47732 (pupa_dl_get_prefix): Likewise.
47733 * kern/i386/pc/init.c: Include <pupa/env.h>.
47734 (pupa_machine_init): Use the environment variable `prefix' instead of
47735 using pupa_dl_set_prefix to set the prefix.
47736 * kern/main.c: Include <pupa/env.h>.
47737 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47738 using pupa_dl_get_prefix to get the prefix.
47739 * kern/misc.c: Include <pupa/env.h>.
47740 (pupa_isdigit): New function.
47741 (pupa_isgraph): Likewise.
47742 (pupa_ftoa): Likewise.
47743 (pupa_vsprintf): Added support for printing values of the type
47744 `double'. Make it possible to format variable output when using
47745 formatting like `%1.2%f'.
47746 (pupa_split_cmdline): New function.
47747 * kern/rescue.c: Include <pupa/env.h>.
47748 (next_word): Removed function.
47749 (pupa_rescue_cmd_prefix): Likewise.
47750 (pupa_rescue_cmd_set): New function.
47751 (pupa_rescue_cmd_unset): New function.
47752 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47753 split the command line instead of splitting it here. Added
47754 support for setting variables using the syntax `foo=bar'. Don't
47755 initialize the prefix command anymore. Initialized the set and
47756 unset commands.
47757 * normal/cmdline.c: Include <pupa/env.h>.
47758 (pupa_tab_complete): Added prototypes for print_simple_completion,
47759 print_partition_completion, add_completion, iterate_commands,
47760 iterate_dev, iterate_part and iterate_dir. Moved code to print
47761 partition information from here to kern/disk.c.
fe6b695a 47762 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 47763 * normal/main.c: Include <pupa/env.h>.
47764 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47765 instead of using pupa_dl_get_prefix to get the prefix.
47766 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47767 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47768 warning.
47769 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47770 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47771 ((unused))' to silence a gcc warning.
47772 (pupa_vga_setcolor): Likewise.
47773 (debug_command): Changed to match argument parsing
47774 interface changes.
47775 * util/pupa-emu.c: Include <pupa/env.h>.
47776 (options): Added 0's for unused fields to silence a gcc warning.
47777 (argp): Likewise.
47778 (main): Use the environment variable `prefix' instead of using
47779 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47780 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47781 and terminal.
47782
47783 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47784 * util/misc.c: Include <malloc.h>.
47785 (pupa_malloc): Rewritten so errors are correctly reported.
47786 (pupa_realloc): Likewise.
47787 (pupa_memalign): Likewise.
47788 (pupa_mm_init_region): Declare unused variables with
47789 `__attribute__ ((unused))' to silence a gcc warning.
47790 * normal/i386/setjmp.S: Remove tab at the end of the file to
47791 silence a gcc warning.
47792 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47793 variables with `__attribute__ ((unused))' to silence a gcc
47794 warning.
47795 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47796 local variable i unsigned to silence a gcc warning.
47797
47798 * kern/term.c: Include <pupa/misc.h>.
47799 (pupa_more_lines): New variable.
47800 (pupa_more): Likewise.
47801 (pupa_putcode): When the pager is active pause at the end of every
47802 screen.
47803 (pupa_set_more): New function.
47804 * include/pupa/term.h (pupa_set_more): New prototype.
47805
47806
3b1139cb 478072004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47808
47809 Now this project is GRUB 2 rather than PUPA. The location of
47810 the CVS repository was moved to GRUB's.
f19dbdb7 47811
3b1139cb 47812 * configure.ac: Use bug-grub as the reporting address.
47813 Use GRUB instead of PUPA.
47814 Change the version number to 1.90.
47815
8367695c 478162004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47817
47818 * genkernsyms.sh: Updated copyright information.
47819 * genmk.rb: Likewise.
47820 * genmodsrc.sh: Likewise.
47821 * gensymlist.sh: Likewise.
47822 * boot/i386/pc/boot.S: Likewise.
47823 * boot/i386/pc/diskboot.S: Likewise.
47824 * disk/i386/pc/biosdisk.c: Likewise.
47825 * disk/i386/pc/partition.c: Likewise.
47826 * font/manager.c: Likewise.
47827 * fs/ext2.c: Likewise.
47828 * fs/fat.c: Likewise.
47829 * include/pupa/boot.h: Likewise.
47830 * include/pupa/device.h: Likewise.
47831 * include/pupa/disk.h: Likewise.
47832 * include/pupa/dl.h: Likewise.
47833 * include/pupa/elf.h: Likewise.
47834 * include/pupa/err.h: Likewise.
47835 * include/pupa/file.h: Likewise.
47836 * include/pupa/font.h: Likewise.
47837 * include/pupa/fs.h: Likewise.
47838 * include/pupa/kernel.h: Likewise.
47839 * include/pupa/loader.h: Likewise.
47840 * include/pupa/misc.h: Likewise.
47841 * include/pupa/mm.h: Likewise.
47842 * include/pupa/net.h: Likewise.
47843 * include/pupa/normal.h: Likewise.
47844 * include/pupa/rescue.h: Likewise.
47845 * include/pupa/setjmp.h: Likewise.
47846 * include/pupa/symbol.h: Likewise.
47847 * include/pupa/term.h: Likewise.
47848 * include/pupa/types.h: Likewise.
47849 * include/pupa/i386/setjmp.h: Likewise.
47850 * include/pupa/i386/types.h: Likewise.
47851 * include/pupa/i386/pc/biosdisk.h: Likewise.
47852 * include/pupa/i386/pc/boot.h: Likewise.
47853 * include/pupa/i386/pc/console.h: Likewise.
47854 * include/pupa/i386/pc/init.h: Likewise.
47855 * include/pupa/i386/pc/kernel.h: Likewise.
47856 * include/pupa/i386/pc/linux.h: Likewise.
47857 * include/pupa/i386/pc/loader.h: Likewise.
47858 * include/pupa/i386/pc/memory.h: Likewise.
47859 * include/pupa/i386/pc/multiboot.h: Likewise.
47860 * include/pupa/i386/pc/partition.h: Likewise.
47861 * include/pupa/i386/pc/time.h: Likewise.
47862 * include/pupa/i386/pc/vga.h: Likewise.
47863 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47864 * include/pupa/util/getroot.h: Likewise.
47865 * include/pupa/util/misc.h: Likewise.
47866 * include/pupa/util/resolve.h: Likewise.
47867 * kern/device.c: Likewise.
47868 * kern/disk.c: Likewise.
47869 * kern/dl.c: Likewise.
47870 * kern/err.c: Likewise.
47871 * kern/file.c: Likewise.
47872 * kern/fs.c: Likewise.
47873 * kern/loader.c: Likewise.
47874 * kern/main.c: Likewise.
47875 * kern/misc.c: Likewise.
47876 * kern/mm.c: Likewise.
47877 * kern/rescue.c: Likewise.
47878 * kern/term.c: Likewise.
47879 * kern/i386/dl.c: Likewise.
47880 * kern/i386/pc/init.c: Likewise.
47881 * kern/i386/pc/lzo1x.S: Likewise.
47882 * kern/i386/pc/startup.S: Likewise.
47883 * loader/i386/pc/chainloader.c: Likewise.
47884 * loader/i386/pc/linux.c: Likewise.
47885 * loader/i386/pc/multiboot.c: Likewise.
47886 * normal/cmdline.c: Likewise.
47887 * normal/command.c: Likewise.
47888 * normal/main.c: Likewise.
47889 * normal/menu.c: Likewise.
47890 * normal/i386/setjmp.S: Likewise.
47891 * term/i386/pc/console.c: Likewise.
47892 * term/i386/pc/vga.c: Likewise.
47893 * util/console.c: Likewise.
47894 * util/genmoddep.c: Likewise.
47895 * util/misc.c: Likewise.
47896 * util/pupa-emu.c: Likewise.
47897 * util/resolve.c: Likewise.
47898 * util/unifont2pff.rb: Likewise.
47899 * util/i386/pc/biosdisk.c: Likewise.
47900 * util/i386/pc/getroot.c: Likewise.
47901 * util/i386/pc/pupa-mkimage.c: Likewise.
47902 * util/i386/pc/pupa-setup.c: Likewise.
47903
e6eced71 479042004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47905
47906 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47907 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47908 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47909 reading and reset it after reading.
47910 (pupa_ext2_close): Return PUPA_ERR_NONE.
47911
47912 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47913 Correct value.
47914 (struct linux_kernel_header): Add kernel_version and
47915 initrd_addr_max.
47916 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47917 pupa_file_read succeeds.
47918 (pupa_rescue_cmd_initrd): Implement.
47919
5aded270 479202003-12-03 Marco Gerards <metgerards@student.han.nl>
47921
47922 * fs/ext2.c (pupa_ext2_label): New function.
47923 (pupa_ext2_fs): Added label.
47924 * fs/fat.c (pupa_fat_label): New function.
47925 (pupa_fat_fs): Added label.
47926 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47927
47928 * kern/misc.c (pupa_strndup): New function.
47929 * include/pupa/misc.h (pupa_strndup): New prototype.
47930
47931 * include/pupa/normal.h: Include <pupa/err.h>.
47932 (pupa_set_history): New prototype.
47933 (pupa_iterate_commands): New prototype.
47934 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47935 <pupa/disk.h>, <pupa/file.h>.
47936 (hist_size): New variable.
47937 (hist_lines): Likewise.
47938 (hist_end): Likewise.
47939 (hist_used): Likewise.
47940 (pupa_set_history): New function.
47941 (pupa_history_get): Likewise.
47942 (pupa_history_add): Likewise.
47943 (pupa_history_replace): Likewise.
47944 (pupa_tab_complete): Likewise.
47945 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47946 completion shows partitionnames while completing partitions, this
47947 feature was suggested by Jeff Bailey.
47948 * normal/command.c (pupa_iterate_commands): New function.
47949 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47950 (pupa_normal_init): Initialize history buffer.
47951 (PUPA_MOD_INIT): Likewise.
47952 (pupa_normal_fini): Free the history buffer.
47953 (PUPA_MOD_FINI): Likewise.
47954
47955 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47956 key.
47957
47958 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47959 * configure.ac [i386]: Check for regparam bug.
47960 (NESTED_FUNC_ATTR) [! i386]: Defined.
47961
1f7315a3 479622003-11-17 Marco Gerards <metgerards@student.han.nl>
47963
47964 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47965 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47966 (pupa_emu_SOURCES): New variable.
47967 (pupa_emu_LDFLAGS): Likewise.
47968 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47969 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47970 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47971 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47972 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47973 (pupa_jmp_buf): New typedef.
47974 (pupa_setjmp) [PUPA_UTIL]: New macro.
47975 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47976 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47977 (pupa_refresh): New prototype.
47978 * include/pupa/util/getroot.h: New file.
47979 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47980 it.
47981 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47982 (pupa_rescue_cmd_cat): Likewise.
47983 (pupa_rescue_cmd_ls): Likewise.
47984 (pupa_rescue_cmd_testload): Likewise.
47985 (pupa_rescue_cmd_lsmod): Likewise.
47986 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47987 * normal/menu.c (run_menu): Likewise.
47988 * kern/term.c (pupa_cls): Likewise.
47989 (pupa_refresh): New function.
47990 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47991 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47992 * util/console.c: New file.
f19dbdb7 47993
1f7315a3 47994 * util/i386/pc/getroot.c: New file.
47995 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47996 (pupa_putchar): New function.
47997 (pupa_refresh): Likewise.
47998 (xgetcwd): Function moved to ...
47999 (strip_extra_slashes): Likewise.
48000 (get_prefix): Likewise.
f19dbdb7 48001 * util/i386/pc/getroot.c: ... here.
1f7315a3 48002 (find_root_device): Function moved and renamed to...
48003 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
48004 Changed all callers.
48005 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
48006 and renamed to...
48007 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
48008 Changed all callers.
48009 * util/misc.c (pupa_memalign): New function.
48010 (pupa_mm_init_region): Likewise.
48011 (pupa_register_exported_symbols): Likewise.
48012 (pupa_putchar): Function removed.
48013 * util/pupa-emu.c: New file.
48014
9a5c1ade 480152003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
48016
48017 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
48018 (_multiboot_mod_SOURCES): New variable.
48019 (_multiboot_mod_CFLAGS): Likewise.
48020 * loader/i386/pc/multiboot.c: New file.
48021 * include/pupa/i386/pc/multiboot.h: Likewise.
48022 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
48023 (pupa_multiboot_real_boot): New function.
48024 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
48025 (pupa_multiboot_real_boot): New prototype.
48026 (pupa_rescue_cmd_multiboot): Likewise
48027 (pupa_rescue_cmd_module): Likewise.
48028
48029 * kern/loader.c (pupa_loader_set): Continue when
48030 pupa_loader_unload_func() fails.
48031 (pupa_loader_unset): New function.
48032 * include/pupa/loader.h (pupa_loader_unset): New prototype.
48033
48034 * kern/misc.c (pupa_stpcpy): New function.
48035 * include/pupa/misc.h (pupa_stpcpy): New prototype.
48036
8e72a9c0 480372003-11-12 Marco Gerards <metgerards@student.han.nl>
48038
48039 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
48040 for available extensions.
48041
48042 * include/pupa/i386/pc/time.h: New file.
48043 * kern/disk.c: Include <pupa/machine/time.h>.
48044 (PUPA_CACHE_TIMEOUT): New macro.
48045 (pupa_last_time): New variable.
48046 (pupa_disk_open): Flush the cache when there was a timeout.
48047 (pupa_disk_close): Reset the timer.
48048 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
48049 pupa_currticks.
48050 * util/misc.c: Include <sys/times.h>
48051 (pupa_get_rtc): New function.
48052
c4adbd32 480532003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48054
48055 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
48056 as blocks.
48057 (pupa_ext2_get_file_block): Use blocks member.
48058
48059 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
48060 first block. Return -1 instead of pupa_errno on error.
48061
bfd30f06 480622003-10-27 Marco Gerards <metgerards@student.han.nl>
48063
48064 * README: In the pupa-mkimage example use _chain instead of chain
48065 and ext2 instead of fat.
48066 * TODO: Replace ext2fs with jfs as an example. Add an item for
48067 adding journal playback for ext2fs.
48068 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
48069 (pkgdata_MODULES): Added ext2.mod.
48070 (ext2_mod_SOURCES): New variable.
48071 (ext2_mod_CFLAGS): Likewise.
48072 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
48073 * include/pupa/misc.h (pupa_strncpy): New prototype.
48074 (pupa_strcat): Likewise.
48075 (pupa_strncmp): Likewise.
48076 * kern/misc.c (pupa_strcat): Enable function.
48077 (pupa_strncpy): New function.
48078 (pupa_strncmp): Likewise.
48079 * fs/ext2.c: New file.
f19dbdb7 48080
bfd30f06 48081 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
48082 when the read failed before retrying.
48083 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
48084 (_FILE_OFFSET_BITS): Likewise.
48085 * configure.ac: Added AC_SYS_LARGEFILE.
48086
98d15063 480872003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48088
48089 * genmk.rb (PModule#rule): Make sure to get only symbol names
48090 from the output of nm.
59cad637 48091 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 48092
18d9c7cd 480932003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48094
48095 I forgot to check in these changes for a long time. This adds
48096 incomplete support for VGA console, and this is still very
48097 buggy. Also, a lot of consideration is required for I18N,
48098 UNICODE, and VGA font issues. Therefore, assume that this is
48099 such that "better than nothing".
f19dbdb7 48100
18d9c7cd 48101 * font/manager.c: New file.
48102 * include/pupa/font.h: Likewise.
48103 * include/pupa/i386/pc/vga.h: Likewise.
48104 * term/i386/pc/vga.c: Likewise.
48105 * util/unifont2pff.rb: Likewise.
48106
48107 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
48108 (pkgdata_MODULES): Added vga.mod and font.mod.
48109 (vga_mod_SOURCES): New variables.
48110 (vga_mod_CFLAGS): Likewise.
48111 (font_mod_SOURCES): Likewise.
48112 (font_mod_CFLAGS): Likewise.
48113
48114 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
48115
48116 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 48117 (struct pupa_term): Added init and fini.
18d9c7cd 48118 Changed the argument of putchar to pupa_uint32_t.
48119
48120 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
48121 (pupa_console_real_putchar): New prototype.
48122 (pupa_console_putchar): Removed.
48123 (pupa_console_checkkey): Exported.
48124 (pupa_console_getkey): Likewise.
48125
48126 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
48127 characters.
48128
48129 * kern/term.c (pupa_term_set_current): Rewritten.
48130 (pupa_putchar): Likewise.
48131 (pupa_putcode): New function.
48132
48133 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
48134 (pupa_console_real_putchar): ... this.
48135 (pupa_vga_set_mode): New function.
48136 (pupa_vga_get_font): Likewise.
48137
48138 * normal/command.c: Include pupa/term.h.
48139 (terminal_command): New function.
48140 (pupa_command_init): Register the command "terminal".
48141
48142 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
48143 (DISP_UP): Likewise.
48144 (DISP_RIGHT): Likewise.
48145 (DISP_DOWN): Likewise.
48146 (DISP_HLINE): Likewise.
48147 (DISP_VLINE): Likewise.
48148 (DISP_UL): Likewise.
48149 (DISP_UR): Likewise.
48150 (DISP_LL): Likewise.
48151 (DISP_LR): Likewise.
48152
48153 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 48154
977329f5 481552003-02-08 NIIBE Yutaka <gniibe@m17n.org>
48156
48157 * util/resolve.c (pupa_util_resolve_dependencies): BUG
48158 FIX. Reverse the path_list.
48159
48160 * include/pupa/normal.h: Export pupa_register_command and
48161 pupa_unregister_command.
48162
48163 * hello/hello.c (pupa_cmd_hello): New module.
48164 * conf/i386-pc.rmk: Added hello.mod.
48165
1f5ab428 481662003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
48167
48168 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 48169
1f5ab428 48170 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
48171 (compress_kernel): New variable.
48172 (generate_image): Heavily modified to support compressing a
48173 large part of the core image.
48174
48175 * util/misc.c (pupa_util_read_image): Fix a file descriptor
48176 leak.
48177 (pupa_util_load_image): New function.
48178
48179 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
48180 (pupa_compressed_size): New variable.
48181 (codestart): Enable Gate A20 here.
48182 Decompress the compressed part of the core image.
48183 Rearrange the code to put functions and variables which are
48184 required for initialization in the non-compressed part.
48185 Include lzo1x.S.
48186
48187 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
48188 here.
48189
48190 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
48191
f19dbdb7 48192 * include/pupa/i386/pc/kernel.h
1f5ab428 48193 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
48194 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
48195 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48196 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48197 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
48198
48199 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
48200
48201 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
48202 (Utility#rule): Likewise.
48203
48204 * configure.ac: Check if LZO is available.
48205
ce5bf700 482062003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
48207
48208 * include/pupa/normal.h: New file.
48209 * include/pupa/setjmp.h: Likewise.
48210 * include/pupa/i386/setjmp.h: Likewise.
48211 * normal/cmdline.c: Likewise.
48212 * normal/command.c: Likewise.
48213 * normal/main.c: Likewise.
48214 * normal/menu.c: Likewise.
48215 * normal/i386/setjmp.S: Likewise.
f19dbdb7 48216
ce5bf700 48217 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
48218 (pupa_rescue_cmd_initrd): Likewise.
48219
48220 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
48221 Likewise.
48222
48223 * kern/i386/pc/startup.S (translation_table): New variable.
48224 (translate_keycode): New function.
48225 (pupa_console_getkey): Call translate_keycode.
48226
48227 * kern/rescue.c (attempt_normal_mode): New function.
48228 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
48229 it failed, print a message.
48230
48231 * kern/mm.c (pupa_real_malloc): Print more information when a
48232 free magic is broken.
48233 (pupa_free): If the first free header is not free actually, set
48234 it to P.
48235
48236 * kern/main.c (pupa_load_normal_mode): Just load the module
48237 "normal".
48238 (pupa_main): Don't print the message
48239 "Entering into rescue mode..." here.
48240
48241 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
48242 Declared.
48243 (pupa_rescue_cmd_initrd): Likewise.
48244 (pupa_rescue_cmd_initrd): Likewise.
48245
48246 * include/pupa/symbol.h (FUNCTION): Specify the type.
48247 (VARIABLE): Likewise.
48248
48249 * include/pupa/err.h (pupa_err_t): Added
48250 PUPA_ERR_UNKNOWN_COMMAND.
48251
48252 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
48253 (pupa_dl_get_prefix): Likewise.
48254
48255 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
48256 Added _chain.mod and _linux.mod instead of chain.mod and
48257 linux.mod.
48258 (chain_mod_SOURCES): Renamed to ...
48259 (_chain_mod_SOURCES): ... this.
48260 (chain_mod_CFLAGS): Renamed to ...
48261 (_chain_mod_CFLAGS): ... this.
48262 (linux_mod_SOURCES): Renamed to ...
48263 (_linux_mod_SOURCES): ... this.
48264 (linux_mod_CFLAGS): Renamed to ...
48265 (_linux_mod_CFLAGS): ... this.
48266 (normal_mod_SOURCES): New variable.
48267 (normal_mod_CFLAGS): Likewise.
48268 (normal_mod_ASFLAGS): Likewise.
48269
482702003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
48271
48272 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
48273 possible.
48274
fe6b695a 48275 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 48276 recursively.
48277 (pupa_dl_unref): Unrefer depending modules recursively.
48278 Don't call pupa_dl_unload implicitly, because PUPA can crash if
48279 a module is unloaded before one depending on that module is
48280 unloaded.
48281 (pupa_dl_unload): Unload depending modules explicitly,
48282 if possible.
48283
c04da074 482842003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
48285
48286 * include/pupa/i386/pc/linux.h: New file.
48287 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 48288
c04da074 48289 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
48290 Removed.
48291 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
48292 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
48293 of PUPA_CHAINLOADER_BOOT_SECTOR.
48294
48295 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
48296 (pupa_linux_prot_size): New variable.
48297 (pupa_linux_tmp_addr): Likewise.
48298 (pupa_linux_real_addr): Likewise.
48299 (pupa_linux_boot_zimage): New function.
48300 (pupa_linux_boot_bzimage): Likewise.
48301
48302 * kern/i386/pc/init.c (struct mem_region): New structure.
48303 (MAX_REGIONS): New macro.
48304 (mem_regions): New variable.
48305 (num_regions): Likewise.
48306 (pupa_os_area_addr): Likewise.
48307 (pupa_os_area_size): Likewise.
48308 (pupa_lower_mem): Likewise.
48309 (pupa_upper_mem): Likewise.
48310 (add_mem_region): New function.
48311 (compact_mem_regions): Likewise.
48312 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
48313 the size of the conventional memory and that of so-called upper
48314 memory (before the first memory hole).
48315 Instead of adding each found region to free memory, use
48316 add_mem_region and add them after removing overlaps.
48317 Also, add only 1/4 of the upper memory to free memory. The rest
48318 is used for loading OS images. Maybe this is ad hoc, but this
48319 makes it much easier to relocate OS images when booting.
48320
48321 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
48322 (pupa_enter_rescue_mode): Don't register initrd and module.
48323
48324 * kern/mm.c: Include pupa/dl.h.
48325
48326 * kern/main.c: Include pupa/file.h and pupa/device.h.
48327
48328 * kern/loader.c (pupa_loader_load_module_func): Removed.
48329 (pupa_loader_load_module): Likewise.
48330
48331 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
48332 ``.o''.
48333
48334 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
48335 (pupa_linux_tmp_addr): Likewise.
48336 (pupa_linux_real_addr): Likewise.
48337 (pupa_linux_boot_zimage): Likewise.
48338 (pupa_linux_boot_bzimage): Likewise.
48339
48340 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
48341 (pupa_upper_mem): Likewise.
48342 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
48343 module is too dangerous.
48344
48345 * include/pupa/loader.h (pupa_os_area_addr): Declared.
48346 (pupa_os_area_size): Likewise.
48347 (pupa_loader_set): Remove the first argument. Loader doesn't
48348 manage modules or initrd any longer.
48349 (pupa_loader_load_module): Removed.
48350
48351 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
48352 (linux_mod_SOURCES): New variable.
48353 (linux_mod_CFLAGS): Likewise.
48354
a13f9237 483552003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
48356
48357 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
48358 the length of a blocklist correctly.
48359
48360 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
48361 Use ioctl only if the OS file is a block device.
48362 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
48363 not very useful for normal files.
48364
48365 * kern/main.c (pupa_set_root_dev): New function.
48366 (pupa_load_normal_mode): Likewise.
48367 (pupa_main): Call those above.
48368
48369 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
48370 pupa_uint16_t.
48371
48372 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
48373
a5ffe966 483742003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
48375
48376 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
48377 (setup): Configure the installed partition information and the
48378 dl prefix.
48379
48380 * loader/i386/pc/chainloader.c (my_mod): New variable.
48381 (pupa_chainloader_unload): New function.
48382 (pupa_rescue_cmd_chainloader): Refer itself.
48383 (PUPA_MOD_INIT): Save its own module in MY_MOD.
48384
48385 * kern/i386/pc/startup.S (install_partition): Removed.
48386 (version_string): Likewise.
48387 (config_file): Likewise.
48388 (pupa_install_dos_part): New variable.
48389 (pupa_install_bsd_part): Likewise.
48390 (pupa_prefix): Likewise.
48391 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
48392
48393 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
48394 and pupa/misc.h.
48395 (make_install_device): New function.
48396 (pupa_machine_init): Set the dl prefix.
48397
48398 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
48399 (buf): Renamed to ...
48400 (linebuf): ... this.
48401 (pupa_rescue_cmd_prefix): New function.
48402 (pupa_rescue_cmd_insmod): Likewise.
48403 (pupa_rescue_cmd_rmmod): Likewise.
48404 (pupa_rescue_cmd_lsmod): Likewise.
48405 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
48406 rmmod and lsmod.
48407
48408 * kern/mm.c (pupa_memalign): If failed even after invalidating
48409 disk caches, unload unneeded modules and retry.
48410
48411 * kern/misc.c (pupa_memmove): New function.
48412 (pupa_memcpy): Removed.
48413 (pupa_strcpy): New function.
48414 (pupa_itoa): Made static.
48415
48416 * kern/dl.c (pupa_dl_iterate): New function.
48417 (pupa_dl_ref): Likewise.
48418 (pupa_dl_unref): Likewise.
48419 (pupa_dl_unload): Return if succeeded or not.
48420 (pupa_dl_unload_unneeded): New function.
48421 (pupa_dl_unload_all): Likewise.
48422 (pupa_dl_init): Renamed to ...
48423 (pupa_dl_set_prefix): ... this.
48424 (pupa_dl_get_prefix): New function.
48425
48426 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48427 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48428 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48429 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48430 (pupa_install_dos_part): Declared.
48431 (pupa_install_bsd_part): Likewise.
48432 (pupa_prefix): Likewise.
48433 (pupa_boot_drive): Likewise.
48434
48435 * include/pupa/types.h: Fix a typo.
48436
48437 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48438 pupa_memmove.
48439 (pupa_memmove): Declared.
48440 (pupa_strcpy): Likewise.
48441
48442 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48443 pupa_mod_init takes one argument, its own module.
48444 (pupa_dl_unload_unneeded): Declared.
48445 (pupa_dl_unload_all): Likewise.
48446 (pupa_dl_ref): Likewise.
48447 (pupa_dl_unref): Likewise.
48448 (pupa_dl_iterate): Likewise.
48449 (pupa_dl_init): Renamed to ...
48450 (pupa_dl_set_prefix): ... this.
48451 (pupa_dl_get_prefix): Declared.
48452
48453 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 48454 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 48455 unloaded.
48456 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48457 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48458
48459 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48460 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48461
012d7999 484622003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48463
48464 * util/i386/pc/pupa-setup.c (setup): Define the internal
48465 function find_first_partition_start at the top level, because GCC
48466 3.0.x cannot compile internal functions in deeper scopes
48467 correctly.
48468 (find_root_device): Use lstat instead of stat.
48469 Don't follow symbolic links.
48470 Fix the path-constructing code.
48471
48472 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48473 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48474 by a BLKGETSIZE ioctl first, because block devices don't fill
48475 the member st_mode of the structure stat on Linux.
48476 [__linux__] (linux_find_partition): Use a temporary buffer
48477 REAL_DEV for the working space. Copy it to DEV before returning.
48478 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48479 buffer cache consistent.
48480 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48481 strncmp. The previous value was merely wrong.
48482 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48483
48484 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48485 FAT size is 12. The previous value was merely wrong.
48486
48487 * kern/main.c (pupa_main): Don't split the starting message from
48488 newlines.
48489
48490 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48491 LF, because BIOS goes crazy about character attributes in this
48492 case.
48493
1cc73a62 484942003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48495
48496 * include/i386/pc/util/biosdisk.h: New file.
48497 * util/i386/pc/biosdisk.c: Likewise.
48498 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 48499
1cc73a62 48500 * Makefile.in (INCLUDE_DISTFILES): Added
48501 include/pupa/i386/pc/util/biosdisk.h.
48502 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48503 directory util/i386/pc.
48504 (install-local): Added a rule for sbin_UTILITIES.
48505 (uninstall): Likewise.
48506
48507 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48508
48509 * util/misc.c (xrealloc): New function.
48510 (pupa_malloc): Likewise.
48511 (pupa_free): Likewise.
48512 (pupa_realloc): Likewise.
48513 (pupa_stop): Likewise.
48514 (pupa_putchar): Likewise.
48515
48516 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48517
48518 * include/pupa/util/misc.h (xrealloc): Declared.
48519
48520 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48521 macro.
48522 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48523 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48524
48525 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48526 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48527
48528 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48529 way should be implemented.
48530 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48531
48532 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48533 the size of NAME for safety.
48534 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48535 0x88.
48536
48537 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48538 (pupa_setup_SOURCES): Likewise.
48539
48540 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48541
08b70fe8 485422002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48543
48544 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48545 bunch of pushl's from pusha, because this destroys the return
48546 value.
48547
62ddcc8f 485482002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48549
48550 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48551 This means that any missing prototypes could be fatal. Also, you
48552 must take care when writing assembly code. See the comments at
48553 the beginning of startup.S, for more details.
f19dbdb7 48554
62ddcc8f 48555 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48556 compilation mechanism.
48557 (pupa_chainloader_real_boot): Likewise.
48558 (pupa_biosdisk_rw_int13_extensions): Likewise.
48559 (pupa_biosdisk_rw_standard): Likewise.
48560 (pupa_biosdisk_check_int13_extensions): Likewise.
48561 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48562 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48563 (pupa_get_memsize): Likewise.
48564 (pupa_get_mmap_entry): Likewise.
48565 (pupa_console_putchar): Likewise.
48566 (pupa_console_setcursor): Likewise.
48567 (pupa_getrtsecs): Use pushl instead of push.
48568
48569 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48570 memory instead of the stack for a mmap entry, because some
48571 BIOSes may ignore the maximum size and overflow.
48572
48573 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48574
48575 * genmk.rb (PModule#rule): Compile automatically generated
48576 sources with module-specific CFLAGS as well as other sources.
48577
9962ed99 485782002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48579
48580 * configure.ac: Check ld.
48581 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48582 respectively, before checking endianness and sizes.
48583
48584 * Makefile.in (LD): New variable.
f19dbdb7 48585
abdfc3c5 485862002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48587
48588 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48589
6a161fa9 485902002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48591
48592 * Changelog: New file.
48593